/* EXTRACURRICULAR.CSS - Professional Sleek Design */


/* Awards & ECA with centered tabs, carousels, and certificates */


/* ===================================
   PAGE ANIMATION
   =================================== */

#awards {
    animation: fadeIn 0.8s ease-out;
}


/* ===================================
   PROFESSIONAL TAB NAVIGATION
   =================================== */

.tabs-wrapper {
    display: flex;
    justify-content: center;
    margin: var(--space-3xl) 0 var(--space-2xl);
    position: relative;
    z-index: 100;
}

.tabs-container {
    display: inline-flex;
    gap: var(--space-sm);
    background-color: var(--color-bg-ash);
    padding: var(--space-xs);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}


/* Mobile: Sticky tabs */

@media screen and (max-width: 768px) {
    .tabs-wrapper {
        position: sticky;
        top: 15vh;
        margin: var(--space-lg) 0;
        background: linear-gradient(to bottom, var(--color-bg-main) 0%, var(--color-bg-main) 85%, transparent 100%);
        padding: var(--space-md) 0 var(--space-xl);
        z-index: 100;
        transition: all 0.3s ease;
    }
    .tabs-wrapper.scrolled {
        top: 8vh;
        padding: var(--space-sm) 0 var(--space-lg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    .tabs-container {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-xs);
        border-radius: var(--radius-md);
        background-color: rgba(245, 245, 245, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        /* Enable horizontal scrolling with snap */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
}

@media screen and (max-width: 600px) {
    .tabs-wrapper {
        top: 12vh;
        margin: var(--space-sm) 0;
        padding: var(--space-sm) 0 var(--space-lg);
    }
    .tabs-wrapper.scrolled {
        top: 7vh;
        padding: var(--space-xs) 0 var(--space-md);
    }
}


/* ===================================
   TAB BUTTON STYLING - CORRECTED
   =================================== */

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    scroll-snap-align: start;
}

.tab-icon {
    font-size: 1.1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tab-label {
    transition: all 0.3s ease;
}


/* DESKTOP: Hover state */

.tab-btn:hover {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.5);
}

.tab-btn:hover .tab-icon {
    opacity: 1;
    transform: scale(1.1);
}


/* DESKTOP: Active state */

.tab-btn.active {
    background-color: var(--color-bg-main);
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn.active .tab-icon {
    opacity: 1;
}


/* Active tab animation */

@keyframes tabActivate {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.tab-btn.active {
    animation: tabActivate 0.3s ease;
}


/* ===================================
   MOBILE SPECIFIC TAB STYLES
   =================================== */


/* Mobile: Better tab button styling */

@media screen and (max-width: 768px) {
    .tab-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-xs);
        flex-shrink: 0;
        min-width: auto;
        border-radius: var(--radius-sm);
        /* Prevent tap highlight on mobile */
        -webkit-tap-highlight-color: transparent;
    }
    /* MOBILE ONLY: Active state with gradient */
    .tab-btn.active {
        background: linear-gradient(135deg, var(--color-primary) 0%, rgb(80, 80, 80) 100%);
        color: var(--color-white);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    .tab-btn.active .tab-icon {
        opacity: 1;
        filter: brightness(1.2);
    }
    /* Ensure label stays white when active on mobile */
    .tab-btn.active .tab-label {
        color: var(--color-white);
    }
}

@media screen and (max-width: 600px) {
    .tab-btn {
        padding: var(--space-sm);
        gap: var(--space-xs);
        -webkit-tap-highlight-color: transparent;
    }
    .tab-label {
        font-size: 0.75rem;
    }
    /* Ensure label stays white when active on mobile */
    .tab-btn.active .tab-label {
        color: var(--color-white);
    }
}


/* ===================================
   TAB CONTENT
   =================================== */

.tab-contents {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
    animation: fadeInContent 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===================================
   PROFESSIONAL TIMELINE
   =================================== */

.timeline-wrapper {
    position: relative;
    padding: var(--space-2xl) 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 8px;
    bottom: var(--space-3xl);  /* This replaces bottom: 0; */
    width: 2px;
    background: linear-gradient(to bottom, var(--color-award-1-solid) 0%, var(--color-award-2-solid) 33%, var(--color-award-3-solid) 66%, var(--color-award-5-solid) 100%);
}


/* ===================================
   COMPACT TIMELINE (FOR QUICK SCANNING)
   =================================== */

.timeline-wrapper.compact .timeline-entry {
    margin-bottom: var(--space-xl);
}

.timeline-wrapper.compact .timeline-content {
    padding: var(--space-md) var(--space-lg);
}

.timeline-wrapper.compact .content-header {
    margin-bottom: var(--space-sm);
}

.timeline-wrapper.compact .header-left h3 {
    font-size: var(--font-size-lg);
    margin: var(--space-xs) 0;
}

.timeline-wrapper.compact .entry-org {
    font-size: var(--font-size-xs);
    margin-bottom: var(--space-sm);
}


/* ===================================
   TIMELINE ENTRY
   =================================== */

.timeline-entry {
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--space-3xl);
    opacity: 0;
    animation: slideIn 0.6s ease forwards;
}

.timeline-entry:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-entry:nth-child(2) {
    animation-delay: 0.15s;
}

.timeline-entry:nth-child(3) {
    animation-delay: 0.2s;
}

.timeline-entry:nth-child(4) {
    animation-delay: 0.25s;
}

.timeline-entry:nth-child(5) {
    animation-delay: 0.3s;
}

.timeline-entry:nth-child(6) {
    animation-delay: 0.35s;
}

.timeline-entry:nth-child(7) {
    animation-delay: 0.4s;
}

.timeline-entry:nth-child(8) {
    animation-delay: 0.45s;
}

.timeline-entry:nth-child(9) {
    animation-delay: 0.5s;
}

.timeline-entry:nth-child(10) {
    animation-delay: 0.55s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ===================================
   TIMELINE MARKER (DOT)
   =================================== */

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 16px;
    height: 16px;
    background-color: var(--color-bg-main);
    border: 3px solid var(--color-secondary);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.timeline-entry[data-category="competition"] .timeline-marker {
    border-color: var(--color-award-1-solid);
}

.timeline-entry[data-category="academic"] .timeline-marker {
    border-color: var(--color-award-2-solid);
}

.timeline-entry[data-category="leadership"] .timeline-marker {
    border-color: var(--color-award-3-solid);
}

.timeline-entry[data-category="recognition"] .timeline-marker {
    border-color: var(--color-award-5-solid);
}

.timeline-entry:hover .timeline-marker {
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}


/* ===================================
   TIMELINE CONTENT CARD
   =================================== */

.timeline-content {
    background-color: var(--color-bg-main);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.timeline-entry[data-category="competition"] .timeline-content {
    border-left-color: var(--color-award-1-solid);
}

.timeline-entry[data-category="academic"] .timeline-content {
    border-left-color: var(--color-award-2-solid);
}

.timeline-entry[data-category="leadership"] .timeline-content {
    border-left-color: var(--color-award-3-solid);
}

.timeline-entry[data-category="recognition"] .timeline-content {
    border-left-color: var(--color-award-5-solid);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}


/* ===================================
   CONTENT HEADER
   =================================== */

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.header-left h3 {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin: var(--space-sm) 0;
}

.entry-org {
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.entry-date {
    font-size: var(--font-size-sm);
    color: var(--color-secondary);
    font-weight: 500;
    white-space: nowrap;
}


/* ===================================
   ENTRY BADGE
   =================================== */

.entry-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    border-radius: 50px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-badge.competition {
    background-color: var(--color-award-1);
    color: rgb(25, 100, 120);
}

.entry-badge.academic {
    background-color: var(--color-award-2);
    color: rgb(150, 85, 40);
}

.entry-badge.leadership {
    background-color: var(--color-award-3);
    color: rgb(75, 90, 130);
}

.entry-badge.recognition {
    background-color: var(--color-award-5);
    color: rgb(60, 110, 100);
}


/* ===================================
   ENTRY DETAILS
   =================================== */

.entry-details {
    line-height: 1.7;
    color: var(--color-secondary);
}

.entry-details p {
    margin-bottom: var(--space-md);
}

.entry-details ul {
    list-style: none;
    padding-left: 0;
}

.entry-details ul li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.entry-details ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}


/* ===================================
   CATEGORY CONTENT
   =================================== */

.category-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
}


/* ===================================
   AWARD CARD
   =================================== */

.award-card {
    background-color: var(--color-bg-main);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.award-card:nth-child(1) {
    animation-delay: 0.1s;
}

.award-card:nth-child(2) {
    animation-delay: 0.2s;
}

.award-card:nth-child(3) {
    animation-delay: 0.3s;
}

.award-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.award-header {
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-bottom: 1px solid var(--color-border-light);
}

.award-header h3 {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.award-org {
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.award-date {
    font-size: var(--font-size-xs);
    color: var(--color-secondary);
}

.award-content {
    padding: var(--space-lg);
}

.award-content p {
    line-height: 1.7;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}


/* ===================================
   PHOTO GALLERY SECTION
   =================================== */

.photo-gallery-section {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 2px solid var(--color-border-light);
}


/* Add this NEW section after line 634 */

.photo-gallery-section .photo-carousel {
    max-width: 600px;
    /* ← CHANGE THIS - Try 700px, 750px, 800px */
    margin: 0 auto;
}

.gallery-title {
    text-align: center;
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.photo-gallery-section .carousel-container {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.photo-gallery-section .carousel-track {
    aspect-ratio: 4 / 3;
}


/* ===================================
   PHOTO CAROUSEL
   =================================== */

.photo-carousel {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
}

.carousel-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-bg-ash);
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-img.active {
    opacity: 1;
    position: relative;
}


/* ===================================
   CAROUSEL CONTROLS
   =================================== */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


/* ===================================
   CAROUSEL DOTS
   =================================== */

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background-color: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}


/* ===================================
   CERTIFICATES GRID
   =================================== */

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: var(--space-2xl);
    padding: var(--space-xl) 0;
}

.certificate-card {
    background-color: var(--color-bg-main);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
}

.certificate-card:nth-child(1) {
    animation-delay: 0.1s;
}

.certificate-card:nth-child(2) {
    animation-delay: 0.2s;
}

.certificate-card:nth-child(3) {
    animation-delay: 0.3s;
}

.certificate-card:nth-child(4) {
    animation-delay: 0.4s;
}

.certificate-card:nth-child(5) {
    animation-delay: 0.5s;
}

.certificate-card:nth-child(6) {
    animation-delay: 0.6s;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--color-award-2-solid);
}

.cert-image-wrapper {
    width: 100%;
    flex: 1;
    overflow: hidden;
    background-color: var(--color-bg-ash);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.cert-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: var(--space-sm);
}

.certificate-card:hover .cert-image {
    transform: scale(1.05);
}

.cert-info {
    padding: var(--space-lg);
    background-color: var(--color-bg-main);
}

.cert-info h3 {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.cert-issuer {
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.cert-description {
    font-size: var(--font-size-sm);
    color: var(--color-secondary);
    line-height: 1.6;
}


/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media screen and (max-width: 768px) {
    .tabs-container {
        gap: 0.25rem;
        padding: 0.25rem;
    }
    .tab-icon {
        font-size: 1rem;
    }
    .timeline-wrapper::before {
        left: 10px;
    }
    .timeline-entry {
        padding-left: 40px;
    }
    .timeline-marker {
        left: 2px;
        width: 14px;
        height: 14px;
    }
    .timeline-content {
        padding: var(--space-lg);
    }
    .content-header {
        flex-direction: column;
    }
    .header-left h3 {
        font-size: var(--font-size-lg);
    }
    .category-content,
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    /* Add padding to content to avoid being hidden under sticky tabs */
    .tab-pane {
        padding-top: var(--space-md);
    }
}

@media screen and (max-width: 600px) {
    .tab-label {
        display: inline;
        font-size: 0.75rem;
    }
    .timeline-content {
        padding: var(--space-md);
    }
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .cert-image-wrapper {
        min-height: 250px;
    }
    .tab-pane {
        padding-top: var(--space-sm);
    }
}


/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* ===================================
   PROGRESS INDICATOR ENHANCEMENTS
   =================================== */

.section-progress {
    transition: opacity 0.3s ease;
}

.section-progress .progress-dot {
    transition: all 0.3s ease, transform 0.2s ease;
}


/* Hide progress indicator on mobile when tabs are visible */

@media screen and (max-width: 768px) {
    .section-progress {
        top: 45%;
        right: 0.5rem;
    }
    .progress-dot {
        width: 10px;
        height: 10px;
    }
    .progress-dot.active {
        transform: scale(1.4);
    }
    /* Adjust tooltip position for mobile */
    .progress-dot::before {
        right: 20px;
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

@media screen and (max-width: 600px) {
    .section-progress {
        right: 0.25rem;
    }
    .progress-dot {
        width: 8px;
        height: 8px;
    }
}

/* ===================================
   FIX BULLET POINTS OVERFLOW IN MOBILE - OTHER TABS
   =================================== */

@media screen and (max-width: 768px) {
    /* Fix for entry-list bullets in timeline content */
    .entry-list {
        padding-left: 0;
        margin-left: 0;
    }
    
    .entry-list li {
        padding-left: var(--space-lg);
        margin-left: 0;
    }
    
    .entry-list li::before {
        left: 0;
    }
    
    /* Fix for timeline content padding */
    .timeline-content {
        padding: var(--space-md);
        margin-left: 0;
    }
    
    /* Ensure category content has proper overflow */
    .category-content .timeline-content {
        overflow: hidden;
    }
}

@media screen and (max-width: 600px) {
    .entry-list li {
        padding-left: var(--space-md);
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: var(--space-sm) var(--space-md);
    }
}