/* Event Page Specific Theme - Purple */
:root {
  --hue: 268;

  /* Primary Colors */
  --first-color: hsl(var(--hue), 75%, 60%);       /* Vivid Purple */
  --first-color-alt: hsl(var(--hue), 75%, 50%);   /* Darker Purple */
  --first-color-light: hsl(var(--hue), 85%, 75%); /* Light Purple */
  --first-color-dark: hsl(var(--hue), 75%, 30%);  /* Deep Purple */

  /* Text Colors */
  --title-color: hsl(0, 0%, 100%);                /* White */
  --text-color: hsl(var(--hue), 20%, 95%);        /* Off-white/lavender tint */
  --text-color-light: hsl(var(--hue), 15%, 85%);
  --text-color-dark: hsl(var(--hue), 30%, 15%);

  /* Backgrounds */
  /* A rich, deep purple gradient for the body */
  --body-color: linear-gradient(
    135deg,
    hsl(268, 93%, 39%) 0%,
    hsl(281, 60%, 16%) 50%,
    hsl(260, 43%, 25%) 100%
  );

  --container-color: hsla(268, 50%, 15%, 0.6);    /* Semi-transparent dark purple */
  --container-color-alt: hsl(268, 40%, 25%);

  --sub: hsl(var(--hue), 20%, 90%);

  /* Accent Colors */
  --accent-orange: hsl(30, 90%, 65%);             /* Gold/Orange accent (complementary) */
  --accent-red: hsl(340, 85%, 60%);               /* Pink/Magenta accent */

  --shadow-color: hsla(268, 50%, 10%, 0.3);

  /* Update card shadow to match purple theme */
  --card-shadow:
    0 4px 6px hsla(268, 75%, 40%, 0.2),
    0 1px 3px hsla(0, 0%, 0%, 0.2);

  /* Lighter container for sponsor sections */
  --container-color-light: hsla(268, 50%, 20%, 0.4);
}

    body {
        background: var(--body-color);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    }

    /* Hero Section Overlay */
    .conference-hero {
        position: relative;
    }

    .conference-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }

    .conference-hero > * {
        position: relative;
        z-index: 2;
    }
/* Ensure buttons and other elements use the new variables */
.button {
    background-color: var(--first-color);
}

.button:hover {
    background-color: var(--first-color-alt);
}

/* Specific overrides for sections if needed */
.section__title {
    color: var(--title-color);
}
.speaker-avatar-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--first-color);
  margin: 0 auto 1.5rem;
  overflow: hidden;
  background: radial-gradient(
    circle at top,
    rgba(255,255,255,0.12),
    rgba(0,0,0,0.25)
  );
}

    .speaker-avatar {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 50%;
        transform: scale(1.1);
    }

    .speaker-circle {
        width: 140px;
        height: 140px;
        border: 3px solid var(--first-color);
        border-radius: 50%;
        margin: 0 auto 1.5rem;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    
    /* Sponsor Marquee Styles */
    .sponsors-section {
        margin-top: 6rem;
        background: #0A0E1A;
        padding: 4rem 0;
        position: relative;
        overflow: hidden;
    }
    
    .sponsors-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    }
    
    .sponsors-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    }
    
    .sponsors-title {
        text-align: center;
        color: #fff;
        font-size: 1.5rem;
        margin-bottom: 2rem;
        font-weight: 300;
        letter-spacing: 2px;
        text-transform: uppercase;
    }
    
    .sponsors-title span {
        color: var(--first-color);
        
        font-weight: 600;
    }
    
    .marquee-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
    
    .marquee-track {
        display: flex;
        gap: 3rem;
        animation: scroll 40s linear infinite;
        width: max-content;
    }
    
    .marquee-track:hover {
        animation-play-state: paused;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
    
    .sponsor-logo {
        height: 80px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
        filter: brightness(1) contrast(1);
        transition: all 0.3s ease;
    }
    
    .sponsor-logo:hover {
        transform: scale(1.1);
        filter: brightness(1.1) contrast(1.1);
    }
    
    /* Media Coverage Cards - Enhanced Styling */
    .mediacoverage {
        padding: 3rem 0;
    }
    
    .media-grid {
        display: flex;
        gap: 2rem;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 2.5rem;
        padding: 0 1rem;
    }
    
    .media-card {
        position: relative;
        background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 16px;
        padding: 1.5rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        overflow: hidden;
        min-width: 160px;
    }
    
    .media-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
        transition: left 0.5s ease;
    }
    
    .media-card:hover::before {
        left: 100%;
    }
    
    .media-card:hover {
        transform: translateY(-8px) scale(1.02);
        border-color: rgba(212, 175, 55, 0.4);
        box-shadow: 
            0 20px 40px rgba(0,0,0,0.3),
            0 0 30px rgba(212, 175, 55, 0.15),
            inset 0 0 20px rgba(255,255,255,0.03);
    }
    
    .media-icon {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .media-icon img {
        height: 50px;
        width: auto;
        max-width: 140px;
        object-fit: contain;
        filter: brightness(1.1) contrast(1.05);
        transition: all 0.4s ease;
    }
    
    .media-card:hover .media-icon img {
        transform: scale(1.1);
        filter: brightness(1.2) contrast(1.1);
    }
    
    .media-label {
        position: relative;
        z-index: 1;
        color: rgba(255,255,255,0.9);
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: all 0.3s ease;
    }
    
    .media-card:hover .media-label {
        color: var(--first-color);
    }
    
    .card-glow {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.256) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }
    
    .media-card:hover .card-glow {
        opacity: 1;
    }
    
    /* Floating animation for media cards */
    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-5px);
        }
    }
    
    .media-card {
        animation: float 4s ease-in-out infinite;
    }
    
    .media-card:nth-child(2) {
        animation-delay: 1s;
    }
    
    .media-card:nth-child(3) {
        animation-delay: 2s;
    }
    
    .media-card:nth-child(4) {
        animation-delay: 0.5s;
    }
    
    .media-card:nth-child(5) {
        animation-delay: 1.5s;
    }
    
    /* Supporting Coverage Section - Same animations */
    .supportingcoverage .media-card:nth-child(1) {
        animation-delay: 0s;
    }
    
    .supportingcoverage .media-card:nth-child(2) {
        animation-delay: 0.8s;
    }
    
    .supportingcoverage .media-card:nth-child(3) {
        animation-delay: 1.6s;
    }
    
    .supportingcoverage .media-card:nth-child(4) {
        animation-delay: 0.4s;
    }
    
    .supportingcoverage .media-card:nth-child(5) {
        animation-delay: 1.2s;
    }
    
    .media-card:hover {
        animation: none;
    }
    
    /* Tier 1 - Gold Metallic using CSS gradients */
    .tier-gold {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* .tier-gold .sponsor-logo {
        position: relative;
        z-index: 1;
     
        border: 2px solid rgba(255, 215, 0, 0.8);
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.4),
            0 0 45px rgba(255, 215, 0, 0.2),
            inset 0 0 20px rgba(255, 215, 0, 0.1);
    }
     */
  
    
 

    /* SVG Filters for Metallic Effects */
    .svg-filters {
        position: absolute;
        width: 0;
        height: 0;
    }
    
    /* Footer Styles */
    .event-footer {
        background: #2b023cc8;
        padding: 3rem 0 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 4rem;     
        padding-top: 1rem;
    }
    
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .footer-logo {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-logo img {
        height: 50px;
        width: auto;
    }
    
    .footer-logo span {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .footer-links {
        display: flex;
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }
    
    .footer-links a:hover {
        color: var(--first-color);
    }
    
    .footer-copyright {
        text-align: center;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.85rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .sponsors-section {
            padding: 2.5rem 0;
        }
        
        .sponsors-title {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
        }
        
        .sponsor-logo {
            height: 60px;
            max-width: 140px;
        }
        
        .marquee-track {
            gap: 2rem;
        }
        
        .footer-content {
            flex-direction: column;
            text-align: center;
        }
        
        .footer-links {
            justify-content: center;
        }
    }
    
    @media (max-width: 480px) {
        .sponsor-logo {
            height: 50px;
            max-width: 120px;
        }
        
        .marquee-track {
            gap: 1.5rem;
        }
    }

    /* TED-Style Video Grid Styles */
    .ted-video-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-top: 3rem;
        padding: 0 1rem;

    }

    .ted-video-card {
        background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 1rem;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
    }

    .ted-video-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
        transition: left 0.5s ease;
        z-index: 1;
        pointer-events: none;
    }

    .ted-video-card:hover::before {
        left: 100%;
    }

    .ted-video-card:hover {
        transform: translateY(-8px);
        border-color: rgba(220, 38, 38, 0.4);
        box-shadow: 
            0 20px 40px rgba(0,0,0,0.3),
            0 0 30px rgba(220, 38, 38, 0.15),
            inset 0 0 20px rgba(255,255,255,0.03);
    }

    .ted-video-thumbnail {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
        overflow: hidden;
        background: rgba(0,0,0,0.3);
    }

    .ted-video-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .ted-video-card:hover .ted-video-thumbnail img {
        transform: scale(1.08);
    }

    .ted-video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        opacity: 0;
        z-index: 2;
    }

    .ted-video-card:hover .ted-video-overlay {
        background: rgba(0,0,0,0.5);
        opacity: 1;
    }

    .ted-play-icon {
        font-size: 4rem;
        color: white;
        transform: scale(0.8);
        transition: all 0.3s ease;
    }

    .ted-video-card:hover .ted-play-icon {
        transform: scale(1);
        color: var(--first-color);
    }

    .ted-video-duration {
        position: absolute;
        bottom: 0.75rem;
        right: 0.75rem;
        background: rgba(0,0,0,0.85);
        color: white;
        padding: 0.25rem 0.6rem;
        border-radius: 0.25rem;
        font-size: 0.85rem;
        font-weight: 600;
        z-index: 3;
        backdrop-filter: blur(4px);
    }

    .ted-video-info {
        padding: 1.25rem;
    }

    .ted-video-title {
        color: var(--title-color);
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 3em;
        transition: color 0.3s ease;
    }

    .ted-video-card:hover .ted-video-title {
        color: var(--first-color);
    }

    .ted-video-speaker {
        color: var(--text-color-light);
        font-size: 0.9rem;
        font-weight: 400;
        margin: 0;
    }
    

    /* Video Modal Styles */
    .video-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.9);
        backdrop-filter: blur(10px);
        animation: fadeIn 0.3s ease;
    }

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

    .video-modal-content {
        position: relative;
        width: 90%;
        max-width: 1200px;
        margin: 5% auto;
        animation: slideDown 0.4s ease;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .video-modal-close {
        position: absolute;
        top: -40px;
        right: 0;
        color: white;
        font-size: 2.5rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .video-modal-close:hover {
        color: var(--first-color);
        transform: rotate(90deg);
    }

    .video-modal-wrapper {
        position: relative;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
        background: #000;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    }

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

    /* Responsive Design */
    @media screen and (max-width: 992px) {
        .ted-video-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }

        .ted-play-icon {
            font-size: 3rem;
        }

        .video-modal-content {
            width: 95%;
            margin: 10% auto;
        }
    }

    @media screen and (max-width: 576px) {
        .ted-video-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
            padding: 0 0.5rem;
        }

        .ted-video-title {
            font-size: 1rem;
        }

        .ted-video-speaker {
            font-size: 0.85rem;
        }

        .ted-play-icon {
            font-size: 2.5rem;
        }

        .video-modal-content {
            width: 100%;
            margin: 20% auto;
        }

        .video-modal-close {
            top: -35px;
            font-size: 2rem;
        }
    }

/* Standardized Speaker Styles */
/* Speakers grid - Full width section with maximum width cards */
.speakers-section {
    width: 100%;
    max-width: 100% !important;
    padding: 4rem 0;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 2.5rem; /* Increased gap between cards */
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem; /* Almost no side padding */
    margin: 3rem auto 0;
}


@media (max-width: 1200px) {
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1rem;
    }
}


@media (max-width: 768px) {
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }
}


/* Maximum width speaker cards */
.speaker-card {
    background: rgba(255, 240, 211, 0.093);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1rem; /* Compact padding for maximum width */
    width: 100%;
    height: 100%;
    min-width: 0; /* Allow cards to shrink */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    border-radius: 1.5rem;
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}



.speaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.6s ease;
}

.speaker-card:hover::before {
    left: 100%;
}

.speaker-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--first-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(120, 10, 136, 0.1);
}

.speaker-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.speaker-linkedin {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--first-color), #0a66c2);
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.speaker-linkedin:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}
.speaker-youtube{
        width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--first-color), #c20a0a);
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.speaker-youtube:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}

/* Speaker circles - slightly smaller to fit wider layout */
.speaker-circle {
    width: 150px;
    height: 150px;
    border: 3px solid var(--first-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(220, 38, 38, 0.05), rgba(255,255,255,0.02));
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


.speaker-circle::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--first-color), transparent);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.speaker-card:hover .speaker-circle::after {
    opacity: 1;
}

.speaker-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-avatar {
    transform: scale(1.08);
}

/* Speaker info text */
.speaker-name {
    color: var(--first-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.speaker-role {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.speaker-bio {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 100%;
}



    /* Creative Sponsor Card Styles */
    .sponsor-section-wrapper {
        background: var(--container-color-light);
        padding: 4rem 0;
    }

    .sponsor-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
        padding: 0 1rem;
    }
    /* ============================================================
       MEDIA COVERAGE & SUPPORTING PARTNERS
       One card family, one grid system.
       - Cards are static: no float / bob / staggered offset animation.
       - The blue hover highlight is preserved.
       - Both walls sit on the page .container boundaries, so the two
         sections share the same left/right edges, gaps and card size.
       ============================================================ */
    .media-wall {
        /* Shared rhythm. A fixed logo band plus a reserved name box keeps
           every card the same height, so rows stay on one baseline whatever
           a logo's aspect ratio or a name's length happens to be. */
        --wall-gap: 1.25rem;
        --logo-band: 6rem;
        --name-lines: 2;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--wall-gap);
        margin-top: 3rem;
        padding: 0; /* the page .container already supplies the gutter */
    }

    /* Supporting Partners keeps its two authored rows so the second one can be
       centred; it still uses the coverage grid's columns, gaps and edges. */
    .media-wall.media-wall-support {
        display: flex;
        flex-direction: column;
        gap: var(--wall-gap);
    }

    .media-wall-support .support-row {
        display: grid;
        gap: var(--wall-gap);
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* Shared card: same background, border, radius and shadow as before */
    .media-wall-card {
        position: relative;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        cursor: pointer;
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        overflow: hidden;
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    /* Hover: the blue highlight, unchanged. No lift and no float - the card
       stays exactly where the grid puts it. */
    .media-wall-card:hover {
        transform: scale(1.05);
        z-index: 3;
        border-color: rgba(138, 43, 226, 0.5);
        box-shadow:
            0 30px 60px rgba(0, 0, 0, 0.4),
            0 0 60px rgba(138, 43, 226, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    /* Glowing border effect on hover */
    .media-wall-card::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg,
            rgba(138, 43, 226, 0.3),
            rgba(30, 144, 255, 0.3),
            rgba(138, 43, 226, 0.3));
        border-radius: 22px;
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
        filter: blur(8px);
    }

    .media-wall-card:hover::before {
        opacity: 1;
    }

    /* Inner glow effect */
    .media-wall-card::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 120%;
        height: 120%;
        background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }

    .media-wall-card:hover::after {
        opacity: 1;
    }

    /* Logo: the dominant element. A fixed band gives every logo the same
       amount of room and the same optical centre line, while max-width /
       max-height + contain keep each logo's own aspect ratio intact. */
    .media-wall-card .sponsor-logo-wrapper {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: var(--logo-band);
        flex: 0 0 var(--logo-band);
    }

    .media-wall-card .sponsor-logo-wrapper img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: contrast(0.95) brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.1));
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    /* Every logo now shares the band, so the legacy "large" variant can no
       longer make its card taller than the rest of its row. */
    .media-wall-card.supporting-large .sponsor-logo-wrapper img {
        max-height: 100%;
    }

    .media-wall-card:hover .sponsor-logo-wrapper img {
        filter: contrast(1.1) brightness(1.2) drop-shadow(0 4px 16px rgba(138, 43, 226, 0.3));
        transform: scale(1.08);
    }

    /* Name: secondary to the logo, on a reserved two-line box so a wrapping
       name never changes the card's height. */
    .media-wall-card .sponsor-name {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: calc(var(--name-lines) * 1.25em);
        margin-top: 0;
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.25;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        text-align: center;
        overflow-wrap: break-word;
        transition: all 0.4s ease;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    .media-wall-card:hover .sponsor-name {
        color: rgba(255, 255, 255, 1);
        letter-spacing: 1.2px;
        text-shadow: 0 2px 4px rgba(138, 43, 226, 0.5);
    }

    /* Desktop: six columns for Media Coverage and for the first partner row.
       The second partner row centres its five cards on that same six-column
       track, so every card in both sections is exactly the same width. */
    @media screen and (min-width: 993px) {
        .media-wall.media-wall-coverage,
        .media-wall-support .support-row-1 {
            grid-template-columns: repeat(6, minmax(0, 1fr));
        }

        .media-wall-support .support-row-2 {
            grid-template-columns: repeat(5, calc((100% - 5 * var(--wall-gap)) / 6));
            justify-content: center;
        }
    }

    /* Narrow desktops: the six columns get tighter, so trim the name a touch
       and keep every name on at most two lines - that is what holds all the
       cards in both sections to one common height. */
    @media screen and (min-width: 993px) and (max-width: 1199px) {
        .media-wall {
            --wall-gap: 1rem;
        }

        .media-wall-card .sponsor-name {
            font-size: 0.875rem;
            letter-spacing: 0.5px;
        }
    }

    /* Tablet: four columns. The partner rows flow into one continuous grid so
       both sections keep identical columns, gaps and outer edges. */
    @media screen and (max-width: 992px) {
        .media-wall {
            --wall-gap: 1rem;
        }

        .media-wall,
        .media-wall.media-wall-support {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .media-wall-support .support-row {
            display: contents;
        }
    }

    /* Small tablet / large phone: three columns */
    @media screen and (max-width: 768px) {
        .media-wall {
            --logo-band: 7rem;
        }

        .media-wall,
        .media-wall.media-wall-support {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .media-wall-card .sponsor-name {
            font-size: 0.9rem;
        }
    }

    /* Narrow three-column range: the cards get slim, so the name steps down
       again and stays on two lines. */
    @media screen and (max-width: 640px) {
        .media-wall {
            --logo-band: 6rem;
        }

        .media-wall-card .sponsor-name {
            font-size: 0.8rem;
            letter-spacing: 0.4px;
        }
    }

    /* Phone: two columns */
    @media screen and (max-width: 480px) {
        .media-wall {
            --wall-gap: 0.875rem;
            --logo-band: 7rem;
        }

        .media-wall,
        .media-wall.media-wall-support {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .media-wall-card {
            padding: 1rem 0.75rem;
            gap: 0.625rem;
        }

        .media-wall-card .sponsor-name {
            font-size: 0.85rem;
            letter-spacing: 0.5px;
        }
    }

    /* Smallest phones: the two columns get very narrow, so the name steps down
       once more rather than spilling onto a third line. */
    @media screen and (max-width: 350px) {
        .media-wall-card {
            padding: 0.875rem 0.5rem;
        }

        .media-wall-card .sponsor-name {
            font-size: 0.75rem;
            letter-spacing: 0.3px;
        }
    }
    
    /* 3-4-3 Pattern Grid for Supporting Partners */
    .supporting-pattern {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1.5rem;
        margin-top: 3rem;
        padding: 0 1rem;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .supporting-pattern .sponsor-card:nth-child(1),
    .supporting-pattern .sponsor-card:nth-child(2),
    .supporting-pattern .sponsor-card:nth-child(3) {
        grid-column: span 4;
    }
    
    .supporting-pattern .sponsor-card:nth-child(4),
    .supporting-pattern .sponsor-card:nth-child(5),
    .supporting-pattern .sponsor-card:nth-child(6),
    .supporting-pattern .sponsor-card:nth-child(7) {
        grid-column: span 3;
    }
    
    .supporting-pattern .sponsor-card:nth-child(8),
    .supporting-pattern .sponsor-card:nth-child(9),
    .supporting-pattern .sponsor-card:nth-child(10) {
        grid-column: span 4;
    }
    
    .supporting-pattern .sponsor-card:nth-child(11),
    .supporting-pattern .sponsor-card:nth-child(12),
    .supporting-pattern .sponsor-card:nth-child(13),
    .supporting-pattern .sponsor-card:nth-child(14) {
        grid-column: span 3;
    }
    
    @media screen and (max-width: 992px) {
        .supporting-pattern {
            grid-template-columns: repeat(6, 1fr);
            gap: 1.25rem;
        }
        
        .supporting-pattern .sponsor-card:nth-child(1),
        .supporting-pattern .sponsor-card:nth-child(2),
        .supporting-pattern .sponsor-card:nth-child(3),
        .supporting-pattern .sponsor-card:nth-child(8),
        .supporting-pattern .sponsor-card:nth-child(9),
        .supporting-pattern .sponsor-card:nth-child(10) {
            grid-column: span 3;
        }
        
        .supporting-pattern .sponsor-card:nth-child(4),
        .supporting-pattern .sponsor-card:nth-child(5),
        .supporting-pattern .sponsor-card:nth-child(6),
        .supporting-pattern .sponsor-card:nth-child(7),
        .supporting-pattern .sponsor-card:nth-child(11),
        .supporting-pattern .sponsor-card:nth-child(12),
        .supporting-pattern .sponsor-card:nth-child(13),
        .supporting-pattern .sponsor-card:nth-child(14) {
            grid-column: span 3;
        }
    }
    
    @media screen and (max-width: 576px) {
        .supporting-pattern {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
        
        .supporting-pattern .sponsor-card {
            grid-column: span 1 !important;
            min-height: 140px;
        }
    }
    /* Media wall styles are defined above (staggered grid layout) */

    .sponsor-card {
        position: relative;
        background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 1.25rem;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        overflow: hidden;
        aspect-ratio: 1;
        min-height: 180px;
    }

    .sponsor-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
        transition: left 0.6s ease;
    }

    .sponsor-card:hover::before {
        left: 100%;
    }

    .sponsor-card:hover {
        transform: translateY(-12px) scale(1.02);
        border-color: rgba(220, 38, 38, 0.4);
        box-shadow:
            0 25px 50px rgb(0, 255, 21),
            0 0 40px rgba(220, 38, 38, 0.2),
            inset 0 0 30px rgba(255,255,255,0.05);
        background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    }

    .sponsor-logo-wrapper {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        flex: 1;
    }

    .sponsor-logo-wrapper img {
        max-width: 100%;
        max-height: 100px;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: brightness(1.1) contrast(1.05);
        transition: all 0.4s ease;
    }

    .sponsor-card:hover .sponsor-logo-wrapper img {
        transform: scale(1.1);
        filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 15px rgba(220, 38, 38, 0.3));
    }

    .sponsor-name {
        position: relative;
        z-index: 1;
        color: rgba(255,255,255,0.85);
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-align: center;
        transition: all 0.3s ease;
        margin-top: auto;
    }

    .sponsor-card:hover .sponsor-name {
        color: var(--first-color);
        letter-spacing: 1px;
    }

    .sponsor-glow {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }

    .sponsor-card:hover .sponsor-glow {
        opacity: 1;
    }

    /* Responsive Sponsor Grid */
    @media screen and (max-width: 992px) {
        .sponsor-grid {
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 1.5rem;
        }

        .sponsor-card {
            min-height: 160px;
            padding: 1.5rem 1rem;
        }

        .sponsor-logo-wrapper img {
            max-height: 80px;
        }
    }

    @media screen and (max-width: 576px) {
        .sponsor-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            padding: 0 0.5rem;
        }

        .sponsor-card {
            min-height: 140px;
            padding: 1.25rem 0.75rem;
        }

        .sponsor-logo-wrapper img {
            max-height: 60px;
        }

        .sponsor-name {
            font-size: 0.75rem;
        }
    }


/* Footer glow */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(27, 192, 242, 0.6), rgb(118, 29, 146), rgba(234, 15, 250, 0.701), transparent);
    background-size: 200% 100%;
    animation: gradientMove 6s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scroll up button animation */
.scrollup {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scrollup:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Card link arrow animation */
.card-link {
    position: relative;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(5px);
}

.card-link:hover {
    color: #ff6b35;
}
