:root {
    --ted-red: #E62B1F;
    --dark-bg: #0A0A0A;
    --text-light: #FFFFFF;
    --text-faded: #AAAAAA;
    --hero-padding-y: 120px;
}
.team-page-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto; /* Centers the content */
    padding: 20px; /* Optional: adds a bit of inner space */
}

/* Ensure the title is centered within the new container */
.team-section .section-title {
    text-align: center; 
    margin-bottom: 60px; 
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif; 
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Container */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures logo and nav are far apart */
}

.header {
    background-color: var(--dark-bg); 
    position: sticky; 
    top: 0; 
    /* FIX 1: Ensure the header is always on top of everything */
    z-index: 2000; 
    
    /* Background treatment to simulate the dark, blurred backdrop */
    background-color: #0A0A0A; 
    
    /* Layered Background: Gradients (for color hints) + Image (for texture) */
    background-image: 
        /* 1. Gradient 1 (Red hint - Increased opacity for visibility) */
        radial-gradient(at 15% 15%, rgba(230, 43, 31, 0.3) 0%, transparent 40%),
        /* 2. Gradient 2 (Blue hint - Increased opacity for visibility) */
        radial-gradient(at 85% 85%, rgba(0, 70, 100, 0.3) 0%, transparent 40%),
        /* 3. Repeating Pattern Image */
        url('../images/ted\ talk\(1\).jpg'); /* <<< CHECK THIS FILE NAME >>> */
    
    /* Control how the layers are sized and repeated */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Gradients don't repeat, pattern does */
    
    /* Blend the layers */
    background-blend-mode: overlay;
    padding: 15px 0;
}
/* No compensating padding is needed for position: sticky */
.header .container {
    justify-content: space-between;
}
.logo {
    font-size: 40px;
    font-weight: 700;
    color: var(--ted-red);
}

.x{
   color: white;
}
.navbar ul { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
}
.navbar a { 
    text-decoration: none; 
    color: var(--text-faded); 
    font-size: 20px; 
    font-weight: 600; 
    transition: color 0.3s; 
}
.navbar a:hover { color: var(--text-light); }
.navbar a.active { color: var(--ted-red);}

/* Desktop Login Button */
.login-btn { 
    text-decoration: none; 
    color: var(--ted-red); 
    font-size: 20px; /* Matched to other links */
    font-weight: 600;
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

/* Mobile Toggle Icon (Hidden on Desktop) */
.menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer;
    z-index: 2001;
}

.menu-toggle i {
    color: var(--ted-red); 
    font-size: 30px;
}



/* ================== Responsive Adjustments ================== */

@media (max-width: 992px) {


    .desktop-nav { display: none; } 
    
    /* Show the toggle button */
    .menu-toggle { display: block; }
    
    /* 1. Mobile Menu Container (Initial State) */
    .navbar {
        position: absolute; 
        top: 100%; /* Position right below the header */
        left: 0;
        width: 100%;
        
        /* Max-height transition setup */ 
        max-height: 0;
        overflow: hidden; 
        transition: max-height 0.5s ease-in-out; 
        
        background-color: var(--dark-bg); 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        /* FIX 2: Z-index just below the header, but above content */
        z-index: 1999; 
    }


/* 2. Mobile Menu (Active State) */
    .navbar.active-nav {
        /* Fix for menu cutoff */
        max-height: 600px; 
        overflow-y: auto;
    }

    /* 3. Vertical Stack for Links */
    .navbar ul {
        display: flex;
        flex-direction: column; 
        padding: 20px 0;
        gap: 0; 
    }

    .navbar ul li {
        text-align: center;
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid #1a1a1a; 
    }
    
    .navbar ul li:last-child {
        border-bottom: none;
    }
    .navbar a {
        font-size: 20px; /* Large, tappable size */
        padding: 0; /* Padding is on the <li> element now */
        display: block; 
    }
    /* 4. Login Item Styling */
    .mobile-login-item {
        /* FIX 3: Force display if it was hidden elsewhere */
        display: block !important; 
        margin-top: 10px; 
        padding: 15px 0 20px 0; 
        border-top: 1px solid #1a1a1a; /* Divider above login */
        border-bottom: none; 
    }
    .navbar a.login-btn {
        display: flex; 
        justify-content: center; 
        align-items: center;
        color: var(--ted-red) !important; 
        font-weight: 700;
        font-size: 20px;
    }

    
    .about-us-container {
        flex-direction: column; 
        gap: 40px;
    }

    .about-us-text-col {
        flex: none; 
        width: 100%;
        text-align: center;
    }
    .about-us-text-col p {
        text-align: left; /* Keep paragraph text left-aligned for readability */
        padding: 0 10px;
    }
    .about-us-text-col .section-subheading {
        text-align: center;
    }

    .about-us-image-col {
       flex: none; 
        width: 100%;
        padding-top: 0;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .college-image-wrapper, .secondary-image-wrapper {
        max-width: 90%; 
        margin: 0 auto; 
    }
    .logo {
    font-size: 30px;
    font-weight: 700;
    color: var(--ted-red);
}
}


/* ############################################################################################################################################################################################# */



/* ################################################################################################################# */
/* ================== Footer Section Styles ================== */
/* ================== General Variables (Ensure consistency with your site) ================== */

:root {
    --footer-bg: #000;
    --text-light: #fff;
    --text-faded: #ccc;
    --tedx-red: #E62B1F;
    --social-icon-bg: #333;
}

.main-footer {
    background-color: var(--footer-bg);
    color: var(--text-faded);
    padding: 60px 0 20px 0; /* Padding top, bottom */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px; /* Separates main footer from sub-footer */
    border-bottom: 1px solid #1a1a1a;
    text-align: left;
}

/* --- Column Proportions Fix (Desktop Alignment) --- */
.footer-col {
    min-width: 0; 
    /* Ensures the text within the column flows correctly */
    text-align: left; 
}

/* Column 1: Logo & Branding (Takes the majority of the available space) */
.branding-col {
    /* FIX: Takes double the space compared to the smallest column */
    flex: 2; 
    max-width: 400px; /* Optional: Sets an upper limit for large screens */
}

/* Column 2: Useful Links (Content-sized) */
.links-col {
    /* FIX: Fixed width based on content size */
    flex: 0 0 160px; 
}

/* Column 3: Contact Info (Content-sized) */
.contact-col {
    /* FIX: Fixed width based on content size (slightly wider due to email) */
    flex: 0 0 280px; 
}

/* --- Branding Column Styles --- */
.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}
.tedx-red { color: var(--tedx-red); }
.tagline {
    font-size: 12px;
    color: #ffffff;
    margin-top: 5px;
}

/* --- Links & Contact Headings --- */
.footer-heading {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* --- Links Column --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: var(--text-faded);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--tedx-red); }
.footer-links i {
    font-size: 10px;
    margin-right: 10px;
    color: #555;
}

/* --- Contact Column --- */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Organizer Label Styling (The red button) */
.organizer {
    background-color: var(--tedx-red);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--text-faded);
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.contact-item a {
    color: var(--text-faded);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--tedx-red);
}

/* Social Links */
.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: var(--social-icon-bg);
    color: var(--text-faded);
    border-radius: 5px;
    font-size: 16px;
    margin-right: 10px;
    transition: background-color 0.2s, color 0.2s;
}

.social-links a:hover {
    background-color: var(--tedx-red);
    color: var(--text-light);
}


/* ================== Sub-Footer (Copyright) ================== */

.sub-footer {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.sub-footer-links a {
    color: var(--text-faded);
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.2s;
}

.sub-footer-links a:hover {
    color: var(--tedx-red);
}

.copyright .tedx-red {
    font-weight: 600;
}

/* ================== Responsive Adjustments (Mobile/Tablet) ================== */

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center; 
    }

    .footer-col {
        min-width: 100%;
        flex: none; /* Override desktop flex proportions */
        max-width: 100%;
        text-align: center; 
    }
    
    .footer-col.branding-col {
        padding-bottom: 20px;
        border-bottom: 1px solid #1a1a1a;
    }
    
    /* FIX: Center the content block of links/contact info */
    .links-col,
    .contact-col {
        text-align: center; /* Ensures the headings are centered */
    }

    /* FIX: Ensure lists and contact items are properly contained/centered */
    .footer-links {
        /* This centers the entire <ul> block */
        margin: 0 auto; 
        max-width: 250px; 
        text-align: left; /* Aligns the link text left within the centered block */
    }

    /* Center the organizer button */
    .organizer {
        margin: 0 auto 20px auto; 
        display: block; /* Ensures margin: auto works */
        width: fit-content;
    }
    
    /* Center text/icon items that were 'display: flex' on desktop */
    .contact-item {
        /* Use margin auto on the contact item container */
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
        width: fit-content; /* Only take the space needed */
        display: flex;
        justify-content: flex-start;
    }

    /* Social links center the block */
    .social-links {
        text-align: center;
        margin-top: 20px;
    }

    .sub-footer {
        flex-direction: column;
        text-align: center;
    }

    .sub-footer-links {
        order: 2; /* Move links below copyright on mobile */
        margin-top: 15px;
    }

    .sub-footer-links a {
        display: block;
        margin: 5px 0;
    }
}

/* --- 1. BASE FADE IN UP CLASS (Add this to any element you want to animate) --- */
.fade-in-up {
    /* Initial state: Invisible and moved down */
    opacity: 0;
    transform: translateY(40px);
    
    /* Animation speed and type */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    
    /* You can add a delay here if you want elements to animate sequentially */
    /* transition-delay: 0.1s; */
}

/* --- 2. VISIBLE STATE CLASS (Added by JavaScript) --- */
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0); /* Move up to final position */
}

/* 
##########################################################################################
##########################################################################################
##########################################################################################
########################################################################################## */
:root {
    --primary-red: #e62b1e;
    --dark-bg: #141414;
    --card-bg: #222; /* Dark card background for faculty/core */
    --light-text: #ffffff;
    --secondary-text: #ccc;
    --subtle-line: #333;
}

/* Base Styles for the Team Section */
.team-page-content {
    background-color: var(--dark-bg);
    padding: 60px 5%;
    min-height: 100vh;
    color: var(--light-text);
}

.section-title {
    font-size: 3em;
    font-weight: 900;
    text-align: center;
    color: var(--primary-red);
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.team-block {
    max-width: 1200px;
    margin: 0 auto 60px auto; 
}

.block-heading {
    text-align: center;
    color: var(--light-text);
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 4px solid var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-sub-block {
    margin-bottom: 40px;
}

/* Sub Headings (Faculty Coordinators / Student Members) */
.sub-heading {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 5px;
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
}
.faculty-heading { margin-left: 20px; } 
.student-heading { margin-left: 20px; }

/* Main Grid for Cards */
.team-grid {
    display: grid;
    gap: 30px;
    padding: 0 20px;
}
.core-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.faculty-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 900px; 
    margin: 0 auto;
}
.student-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Card Styling */
.member-card {
    border-radius: 10px;
    padding: 25px; /* Increased padding to accommodate larger images */
    text-align: center;
    transition: transform 0.3s ease;
}

/* --- INCREASED PHOTO SIZES FOR ALL MEMBERS --- */

/* Base style for student/core photos (Largest size for prominence) */
.member-photo {
    /* Use 180px as the standard size for all teams (Core, Faculty, Student) */
    width: 200px; 
    height: 200px;
    
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light-text); 
    margin-bottom: 15px;
}





/* Core and Faculty Cards (Dark/Bordered) */
.core-card, .faculty-card {
    background-color: var(--card-bg); 
    border: 1px solid var(--primary-red);
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
}

.core-card .card-text,
.faculty-card .card-text {
    margin-top: 10px;
}

.core-card h4, .faculty-card h4 {
    color: var(--primary-red);
    margin: 5px 0;
    font-size: 1.2em;
}

.core-card .role, .faculty-card .role {
    margin: 0;
    font-size: 0.9em;
    color: var(--secondary-text);
}
.core-card .role-detail, .faculty-card .role-detail {
    font-size: 0.8em;
    color: var(--secondary-text);
}

/* Student Cards (Red Background, Circular Image) */
.student-card {
    background-color: var(--primary-red); 
    color: var(--light-text);
}

.student-card h4 {
    color: var(--light-text);
    margin: 0;
    font-size: 1.3em;
    text-transform: uppercase;
}

.student-card .year {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    margin-top: 5px;
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
    .member-card {
        padding: 15px;
    }
    .member-photo {
        width: 180px; 
        height: 180px;
    }
    .core-card .member-photo, 
    .faculty-card .member-photo {
        width: 180px; 
        height: 180px;
    }
}