/* Custom Fonts (using system fonts for this code, but heavily controlling weight) */

: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 {
/* Use Raleway or whatever font you prefer */
    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;
}

.header {
    background-color: #0A0A0A; 
    
    /* Keep position: sticky; */
    position: sticky; 
    top: 0; 
    z-index: 1000;
    
    /* REMOVED: position: relative; */
    
    /* ... (rest of your background styles) ... */
    background-image: 
        radial-gradient(at 15% 15%, rgba(230, 43, 31, 0.3) 0%, transparent 40%),
        radial-gradient(at 85% 85%, rgba(0, 70, 100, 0.3) 0%, transparent 40%),
        url('../images/ted\ talk\(1\).jpg');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    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);}
.login-btn { text-decoration: none; color: var(--ted-red); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.menu-toggle i.fa-th {
    /* FIX: Set the icon color to the distinctive red */
    color: var(--tedx-red, #E62B1F); 
    
    /* Ensure size is adequate (adjust if needed) */
    font-size: 24px; 
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer;z-index: 2001; }


/* ================== Hero Section ================== */
.hero-section {
    position: relative;
    padding: var(--hero-padding-y) 0;
    min-height: 80vh; 
    overflow: hidden;
    /* 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;
}

.hero-content {
    align-items: center; /* Center vertically against the image */
    gap: 50px;
    position: relative;
}

/* Text Content Styling - Updated for dramatic glow effect */
.text-content {
    flex: 1.5;
    z-index: 2; 
    order: 1; 
    /* Add a general slight blur/glow effect to the whole text block if needed */
    /* filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1)); */
}

/* Title Styling - Updated for prominent glow */
.independently {
    font-size: 64px;
    font-weight: 700; 
    letter-spacing: 4px; 
    margin-bottom: -15px; 
    color: var(--text-light);
    /* NEW: More intense, multi-layered shadow for glowing effect */
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.6), /* Stronger, closer glow */
        0 0 15px rgba(255, 255, 255, 0.3), /* Wider, softer glow */
        0 0 20px rgba(255, 255, 255, 0.1); /* Even wider, faint glow */
}

.independently .red-color {
    font-weight: 700; 
    color: var(--ted-red);
    /* NEW: Enhanced shadow for red text - stronger depth and subtle glow */
    text-shadow: 
        3px 3px 8px rgba(0, 0, 0, 0.9), /* Darker, offset shadow for depth */
        0 0 10px rgba(230, 43, 31, 0.7), /* Closer red glow */
        0 0 20px rgba(230, 43, 31, 0.4); /* Wider red glow */
}
.organized-ted {
    font-size: 64px;
    font-weight: 700; 
    letter-spacing: 4px;
    margin-bottom: 25px;
    color: var(--text-light);
    /* NEW: More intense, multi-layered shadow for glowing effect */
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.6), 
        0 0 15px rgba(255, 255, 255, 0.3), 
        0 0 20px rgba(255, 255, 255, 0.1);
}
.ted-color {
    color: var(--ted-red);
    font-weight: 700; 
    /* NEW: Enhanced shadow for red text - stronger depth and subtle glow */
    text-shadow: 
        3px 3px 8px rgba(0, 0, 0, 0.9), 
        0 0 10px rgba(230, 43, 31, 0.7), 
        0 0 20px rgba(230, 43, 31, 0.4);
}

/* Event Details & CTA (Kept same) */
.event-details { display: flex; align-items: center; gap: 40px; font-size: 16px; margin-bottom: 40px; }
.detail i { color: var(--ted-red); font-size: 18px; }
.superscript { font-size: 0.7em; vertical-align: super; }
.cta-buttons { display: flex; align-items: center; gap: 20px; }
.btn { text-decoration: none; font-size: 14px; font-weight: 600; padding: 12px 25px; border-radius: 5px; transition: all 0.3s; text-transform: uppercase; }
.tickets-btn { background-color: var(--ted-red); color: var(--text-light); border: 2px solid var(--ted-red); }
.learn-more-btn { background-color: transparent; color: var(--text-light); border: none; display: flex; align-items: center; gap: 8px; padding-left: 0; }
.learn-more-btn:hover { color: var(--ted-red); }


/* ================== Image Placeholder (Cleaned) ================== */
.image-placeholder {
    flex: 1;
    min-height: 400px;
    position: relative;
    margin-left: auto;
    max-width: 500px;

    z-index: 1; 
    order: 2; /* Image appears second (on the right) on desktop */
    overflow: hidden; /* Important for the image itself */
}

/* Your image styling */
.responsive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    
      /* box-shadow: 0 0 80px 40px #f30303 inset; */
  border-radius: 10px;
    /* filter: drop-shadow(0 0 15px #ff1a1a); */
}


/* ================== Responsive Design (Mobile First Adjustments) ================== */

/* 1. Tablet/Small Desktop Adjustments (max-width: 992px) */
@media (max-width: 992px) {
    /* Header/Nav Adjustments (for mobile menu) */
    .login-btn, .navbar { display: none; }


    .menu-toggle { display: block; }
    
    /* Hero Content Mobile/Tablet Reordering */
    .hero-content {
        flex-direction: column;
        gap: 30px;
        align-items: center; 
        text-align: center;
    }
    
    /* CRUCIAL: Reverting the order back to structural (Image first, then Text) */
    .image-placeholder {
        order: 1; /* Image first on mobile */
        width: 100%;
        max-width: 600px; 
        min-height: 250px;
        margin-bottom: 30px;
    }
    
    .text-content {
        order: 2; /* Text content second on mobile */
        text-align: left; 
        width: 100%;
    }
    
    /* Title size reduction */
    .independently,
    .organized-ted {
        font-size: 48px;
        /* Reduce shadow effect on mobile for better readability */
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.4), 
            0 0 10px rgba(255, 255, 255, 0.1);
    }
    .independently .red-color,
    .ted-color {
        text-shadow: 
            2px 2px 5px rgba(0, 0, 0, 0.8), 
            0 0 10px rgba(230, 43, 31, 0.5);
    }
    
    /* Event details and buttons adjustment */
    .event-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        justify-content: flex-start;
    }
}

/* 2. Mobile Adjustments (max-width: 768px) */
@media (max-width: 768px) {
    /* Further title size reduction */
    .independently,
    .organized-ted {
        font-size: 36px;
        letter-spacing: 2px;
    }
}
    .cta-buttons {
        flex-direction: column;
        width: 30%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

/* --- Mobile Menu State --- */

/* This class will be added/removed by JavaScript */
.navbar.active-nav {
    display: flex; /* Make the menu container visible */
    position: absolute;
    top: 100%; /* Position right below the header */
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    flex-direction: column; /* Stack menu items vertically */
    align-items: center;
}

.navbar.active-nav ul {
    flex-direction: column;
    gap: 10px; /* Spacing between stacked items */
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

.navbar.active-nav ul li {
    width: 100%;
}

.navbar.active-nav a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
}

/* Also show the login button when the menu is active */
.header .container .login-btn.active-nav {
    display: flex; /* Make the login button visible */
    position: absolute;
    top: 25px; /* Adjust this value to position it relative to the header */
    right: 5%; /* Align with the container edge */
    z-index: 1001; /* Ensure it's above the menu */
}

/* --- Text Glow Animation --- */

/* Keyframes for the 'breathing' glow effect on the red text */
@keyframes pulse-glow {
    0%, 100% {
        /* Default intense glow state */
        text-shadow: 
            3px 3px 8px rgba(0, 0, 0, 0.9), 
            0 0 10px rgba(230, 43, 31, 0.7), 
            0 0 20px rgba(230, 43, 31, 0.4);
    }
    50% {
        /* Slightly brighter/wider peak glow state */
        text-shadow: 
            3px 3px 8px rgba(0, 0, 0, 1), 
            0 0 15px rgba(230, 43, 31, 0.9), /* Brighter */
            0 0 30px rgba(230, 43, 31, 0.6); /* Wider */
    }
}

/* Apply the animation to the elements that will be targeted by JS */
.red-color.pulsing,
.ted-color.pulsing {
    animation: pulse-glow 2.5s infinite alternate ease-in-out; /* Slow, gentle loop */
}


/* --- Fade and Slide-Up Animation (New) --- */

/* 1. Initial State: Hidden and slightly below its final position */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
}

/* 2. Final State: Visible and in its final position (triggered by JS) */
.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Add staggered delay to elements for a sequential look */
.fade-in-up:nth-child(1) { transition-delay: 0.1s; } /* Title Line 1 */
.fade-in-up:nth-child(2) { transition-delay: 0.2s; } /* Title Line 2 */
.fade-in-up:nth-child(3) { transition-delay: 0.4s; } /* Details */
.fade-in-up:nth-child(4) { transition-delay: 0.5s; } /* Buttons */

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

/* ================== Welcome Section ================== */
.welcome-section {
    background-color: #000; /* Solid black background for this section */
    padding: 80px 0; /* Add top/bottom padding */
    text-align: center;
    color: var(--text-light); /* Inherit light text color */
}

.welcome-container {
    width: 95%; /* Adjust from 90% or 100% to ensure margin */
    max-width: 1200px; /* Tighter container max-width */
    margin: 0 auto;
}

/* --- Welcome Title Styling (Glow & Reflection) --- */
/* --- Welcome Title Styling (Glow & Reflection) --- */
.welcome-title {
    font-family: 'Raleway', sans-serif;
    font-size: 58px; 
    font-weight: 900;
    letter-spacing: 1.5px; 
    color: #fff;
    margin-bottom: 70px; 
    
    /* Ensure it remains inline-block and nowrap on desktop */
    display: inline-block; 
    white-space: nowrap; 
    overflow: hidden; 
    max-width: 100%; /* Import it doesn't exceed the parent container */

    /* Glow Effect (Same) */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.7), 
        0 0 25px rgba(255, 255, 255, 0.5), 
        0 0 40px rgba(255, 255, 255, 0.3);
    
    /* Reflection Effect */
    -webkit-box-reflect: below -30px linear-gradient(transparent, rgba(255, 255, 255, 0.3)); 
    
    position: relative;
    z-index: 2;
}

/* Red part of the title (Same as before) */
.welcome-title .tedx-red-text {
    color: var(--ted-red);
    text-shadow: 
        0 0 10px rgba(230, 43, 31, 0.9),
        0 0 25px rgba(230, 43, 31, 0.6),
        0 0 40px rgba(230, 43, 31, 0.4);
}

/* --- Welcome Paragraph Styling --- */
.welcome-text {
    font-family: 'Raleway', sans-serif; /* Keep consistent font */
    font-size: 16px;
    font-weight: 600;
    line-height: 1.8; /* Improved readability */
    max-width: 800px; /* Constrain width for better reading experience */
    margin: 0 auto; /* Center the paragraph */
    color: #ccc; /* Slightly softer white for readability */
}

/* Red part of the paragraph (inline) */
.welcome-text .tedx-red-text {
    color: var(--ted-red); /* Use the TEDx red for highlights */
    font-weight: 700; /* Make it bold for emphasis */
}
.reasons-section .tedx-red-text {
    color: var(--ted-red); /* Use the TEDx red for highlights */
    font-weight: 700; /* Make it bold for emphasis */
}


/* ================== Responsive Adjustments for Welcome Section ================== */

@media (max-width: 992px) {
    .welcome-section {
        padding: 60px 0;
    }

    .welcome-title {
        /* Allow wrapping on tablets/small desktops */
        white-space: normal; 
        font-size: 40px; 
        letter-spacing: 1px; 
        margin-bottom: 50px;
        -webkit-box-reflect: below -20px linear-gradient(transparent, rgba(255, 255, 255, 0.3));
    }

    .welcome-text {
        font-size: 15px;
        padding: 0 15px; /* Add some horizontal padding */
    }
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 40px 0;
    }

    .welcome-title {
        white-space: normal; /* Confirmed wrapping */
        font-size: 32px; 
        margin-bottom: 40px;
        -webkit-box-reflect: below -15px linear-gradient(transparent, rgba(255, 255, 255, 0.3)); 
    }
    .welcome-text {
        font-size: 14px;
        line-height: 1.7;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 28px; /* Very small screens */
        letter-spacing: 1px;
        -webkit-box-reflect: below -12px linear-gradient(transparent, rgba(255, 255, 255, 0.3));
    }
}



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

.reasons-section {
    /* Base dark color */
    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\(2\).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: 100px 0;
    text-align: center;
}

.reasons-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* IMPORTANT FIXES (Ensure child elements are transparent) */
.reasons-container, .reasons-grid {
    background-color: transparent !important;
}

/* Reusing .section-title from Speakers section */
.reasons-section .section-title {
    margin-bottom: 60px;
}

/* --- Reasons Grid Layout --- */
.reasons-grid {
    display: grid;
    /* Desktop: 3 columns with even spacing */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

/* --- Reason Card Styling --- */
.reason-card {
    background-color: #000000; /* Darker grey background for the card */
    padding: 30px;
    border-radius: 15px;
    height: 100%; /* Ensure all cards are the same height */
    text-align: left;
    
    /* Subtle red outline/indicator as seen in image */
    border-left: 5px solid var(--ted-red); 
    
    /* Transition for the staggered animation */
    transition: opacity 1s ease-out, transform 0.8s ease-out;
    transition-delay: var(--reason-delay, 0s); 
}

.reason-card:hover {
    /* 1. Lift the card slightly */
    transform: translateY(-5px); 
    
    /* 2. Add a pronounced shadow/glow using the TEDx red color */
    box-shadow: 0 15px 30px rgba(230, 43, 31, 0.4); 
    
    /* 3. Optional: Subtle background change */
    background-color: #262626; 
}

/* Use the existing .fade-in-up to define the animation */
.reason-card.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}


.reason-card .card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
}

.reason-card .card-text {
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
}


/* ================== Responsive Adjustments for Reasons Section ================== */

@media (max-width: 992px) {
    .reasons-section {
        padding: 80px 0;
    }
    .reasons-grid {
        /* Tablet: 2 columns */
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
    .reason-card {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .reasons-section {
        padding: 60px 0;
    }
    .reasons-grid {
        /* Mobile: 1 column */
        grid-template-columns: 1fr; 
        gap: 15px;
    }
}


/* ################################################################## */
/* ================== About Section Styles (FINAL ALIGNMENT & SPACING FIX) ================== */

.about-section {
    background-color: #000;
    padding: 50px 0;
    /* Removed text-align: center; from here to avoid issues with content */
}

.about-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section .section-title {
    color: #ccc;
    /* FIX: Add top margin for space above the word "ABOUT" */
    margin-top: 0; /* Keep this at 0, or add a small value if needed */
    /* Add a large margin below the word "ABOUT" */
    margin-bottom: 60px; /* Keep this value consistent */
    
    /* Ensure the h2 element is treated as a block for correct spacing */
    display: block; 
    
    /* Keep centering properties (though they should be inline now) */
    text-align: center;
}

/* Main Wrapper for the entire content (Tabs/Text + Video) */
.about-main-wrapper {
    display: flex; 
    gap: 80px; 
    align-items: flex-start; 
    text-align: left;
    /* These ensure the flex container block itself is horizontally centered 
       within the .about-container, which it should be by default due to 
       .about-container's margin: 0 auto, but we keep them for safety. */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ================= LEFT SIDE: Tabs and Text Content ================= */

.about-left-top-area {
    flex: 1; 
    display: flex;
    flex-direction: column;
}

/* Tabs Navigation Styling - These buttons are a single column */
.about-tabs-nav {
    display: flex;
    flex-direction: column;
    width: 200px; 
    flex-shrink: 0; 
    margin-bottom: 0; 
}

.tab-button {
    background-color: #000000;
    color: var(--text-light, #fff);
    width: 500px;
    padding: 15px 20px;
    margin-bottom: 2px;
    border-radius: 20px; /* Included from your code */
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    border-left: 5px solid transparent;
}

.tab-button.active {
    background-color: var(--ted-red, #E62B1F); 
    color: #fff;
    border-left: 5px solid var(--ted-red, #E62B1F);
    box-shadow: 0 0 15px rgba(230, 43, 31, 0.5); 
}

.tab-button:not(.active):hover {
    background-color: #262626;
}

/* Text Content (Sits directly below the tabs) */
.about-text-content {
    margin-top: 40px; 
    color: var(--text-faded, #ccc);
    line-height: 1.8;
    font-size: 16px;
}

.tab-content {
    display: none;
    font-weight: 500;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* ================= RIGHT SIDE: Video Player Area ================= */

.about-video-side {
    flex: 1; 
    padding-top: 5px; 
    text-align: left;
}

.video-title {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
}

/* Main Video Player (CRITICAL: Responsive embed container) */
.main-video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    margin-bottom: 10px;
    background-color: #000;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* Simplified Video Grid/Playlist (Placeholders) */
.video-grid-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 5px;
    padding: 5px 0;
}

.video-item {
    background-color: #333; 
    color: #888;
    text-align: center;
    font-size: 8px;
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0; 
    cursor: pointer;
    line-height: 0;
    border-radius: 2px;
}

/* Video Footer (Controls & Links) */
.video-footer {
    padding-top: 10px;
    font-size: 14px;
}

.video-controls-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    color: #ccc;
}

.video-share-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-grow: 1;
}

/* ================== Responsive Adjustments for Mobile View ================== */

@media (max-width: 992px) {
    /* Stack the two main columns (Tabs/Text and Video) */
    /* Stack the two main columns (Tabs/Text and Video) */
    .about-main-wrapper {
        flex-direction: column; 
        gap: 40px; 
    }
    
    /* Ensure both the left (tabs/text) and right (video) areas take full width */
    .about-left-top-area,
    .about-video-side {
        width: 100%;
        flex: none; 
    }

    /* Tabs are horizontal, span full width */
    .about-tabs-nav {
        flex-direction: row;
        width: 100%;
        margin-right: 0;
    }
    
    .tab-button {
        flex-grow: 1; 
        text-align: center;
        border-left: none; 
        border-bottom: 3px solid transparent; 
        margin-bottom: 0;
    }

    .tab-button.active {
    background-color: var(--ted-red, #E62B1F); 
        box-shadow: none;
        border-left: none; 
    }
    
    /* Text Content */
    .about-text-content {
        margin-top: 20px;
        padding-top: 0; 
    }

    
    /* Video Grid Adjustment */
    .video-grid-gallery {
        grid-template-columns: repeat(4, 1fr); 
    }
}

@media (max-width: 600px) {
    .about-section {
        padding: 60px 0;
    }
    .about-section .section-title {
        /* Reduce margin on mobile if necessary */
        margin-bottom: 40px;
    }
    .video-grid-gallery {
        grid-template-columns: repeat(3, 1fr); 
    }
}


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