:root {
    --ted-red: #E62B1F;
    --dark-bg: #0A0A0A;
    --text-light: #FFFFFF;
    --text-faded: #AAAAAA;
    --hero-padding-y: 120px;
}
* {
    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;
}

/* ================== About Us Page - Hero Section (New Template) ================== */

.about-us-page-hero {
        /* 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: 120px 0 80px 0; 
    text-align: center;
    color: var(--text-light);
}

.page-title {
    font-size: 56px; 
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light); 
    margin: 0 auto; 
    overflow: hidden; /* Keep this to hide text until typed */
}
/* Cursor Animation */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white; } /* Blinking color */
}

/* Apply the blinking effect to the cursor span */
/* Apply the blinking effect to the cursor span */
#typing-text {
    display: inline-block; /* Essential for responsiveness */
    /* The right border acts as the blinking cursor */
    border-right: 4px solid white; 
    animation: 
        blink-caret 0.75s step-end infinite;
}

@media (max-width: 768px) {
    .page-title {
        /* Reduce font size dramatically for mobile */
        font-size: 40px; 
        /* Allow the text to break onto new lines */
        word-break: break-word; 
    }
    
    #typing-text {
        /* Ensure the cursor size scales down */
        border-right-width: 2px;
    }
    
    /* Ensure the tagline is legible */
    .page-tagline {
        font-size: 14px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 35px;
    }
}
.red-text {
    color: var(--tedx-red, #E62B1F) !important; /* Ensures the red color overrides the white h1 color */
}

.page-tagline {
    font-size: 12px;
    color: var(--text-faded);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

/* ================== About Us Page - Content Section (New Template) ================== */

.about-us-content-section {
    background-color: black; 
    padding: 80px 0;
    display: block; 
    opacity: 1;
}

.about-us-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start; 
}   


.about-us-text-col {
    flex: 2; /* Takes more space */
    color: var(--text-faded);
    line-height: 1.7;
    font-size: 16px;
}

.about-us-text-col .section-subheading {
    font-size: 32px; 
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--tedx-red); /* TEDx Red accent */
}

.about-us-text-col .mission-heading {
    margin-top: 40px;
}

.about-us-text-col p {
    margin-bottom: 15px;
    text-align: justify; /* This is the property that aligns both sides */
    text-justify: inter-word; /* Optional: Helps with spacing between words */
}

.about-us-image-col {
    flex: 1; 
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    align-items: center; /* Centers wrappers horizontally */
    gap: 30px; /* Space between the three image blocks */
    padding-top: 0; 
}

.college-image-wrapper, .secondary-image-wrapper {
    text-align: center;
    background-color: var(--dark-gray); 
    /* REDUCED PADDING since captions are gone */
    padding: 15px; 
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 300px; 
    border: 1px solid var(--ted-red); 
    width: 100%;
}

.college-picture {
    width: 100%;
    height: auto;
    border-radius: 5px; 
    /* REMOVED BOTTOM MARGIN as captions are gone */
    margin-bottom: 0; 
    object-fit: cover;
}



/* ================== 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 {
        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 */
}

.page-tagline {
        font-size: 20px;

    }

@media (max-width: 768px){
    .page-tagline {
        font-size: 15px;

    }
}