/* ---------- Hero ---------- */
    .dathon-hero {
    position: relative;
    height: 100vh;
    background: url('../img/community.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    }

    /* Dark overlay */
    .dathon-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
    to bottom,
    rgba(10, 10, 25, 0.7),
    rgba(10, 10, 25, 0.85)
  );
    backdrop-filter: blur(4px);
    }

    /* Content */
    .dathon-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    }

    /* Heading */
    .dathon-hero h1 {
    font-size: clamp(3.2rem, 12vw, 5rem);
    font-weight: 800;
    margin: 20px 0;
    color: #fff;
    letter-spacing: -1px;
    }

    /* Subtext */
    .subtext {
    font-size: clamp(14px, 2.5vw, 18px);
    opacity: 0.65;
    margin: 5px 0;
    }

    /* Avatars */
    .mentee-avatars-datathon {
    flex-wrap: wrap;
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    justify-content: center;
    }
    
    .mentee-avatars-datathon img,
    .mentee-avatars-datathon .more {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    margin-left: -8px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s forwards;
    }

    .mentee-avatars-datathon img:first-child {
    margin-left: 0;
    }

    .mentee-avatars-datathon .more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    }

    .moretext{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    margin-left: 4px;
    }

    /* Animation keyframes */
    @keyframes fadeInUp {
    to {
    opacity: 1;
    transform: translateY(0);
    }
    }

    /* Stagger effect */
    .mentee-avatars-datathon img:nth-child(1) { animation-delay: 0.2s; }
    .mentee-avatars-datathon img:nth-child(2) { animation-delay: 0.4s; }
    .mentee-avatars-datathon img:nth-child(3) { animation-delay: 0.6s; }
    .mentee-avatars-datathon .more { animation-delay: 0.8s; }

    
/* ---------- event-highlights  ---------- */
    .event-highlights {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    padding: clamp(0.75rem, 3vw, 2.5rem);

    /* GLASS */
    background: rgba(255, 255, 255, 0.);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.4);

    max-width: 1100px;
    margin: -60px auto 0;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(96, 44, 109, 0.2);
    overflow: hidden; /* 🔑 prevents scroll */
    }

    .highlight-card {
    flex: 1 1 0; /* 🔑 allows equal shrinking */
    min-width: 0; /* 🔑 allows text to shrink */
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    padding: clamp(0.75rem, 2.5vw, 1.5rem);

    /* CARD GLASS */
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    border: 1px solid rgba(217, 134, 56, 0.25);

    box-shadow: 0 12px 30px rgba(96, 44, 109, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(96, 44, 109, 0.25);
    }

    /* Icons scale with screen */
    .icon {
    width: clamp(32px, 6vw, 52px);
    height: clamp(32px, 6vw, 52px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: clamp(0.9rem, 3vw, 1.4rem);
    color: #ffffff;
    flex-shrink: 0;

    /* Floating effect */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    /* Brand gradients (luxury) */
    .date-icon {
    background: linear-gradient(135deg, #602C6D, #8a4a96);
    }

    .prize-icon {
    background: linear-gradient(135deg, #D98638, #f1b072);
    }

    .location-icon {
    background: linear-gradient(135deg, #7b3fe4, #ec4899);
    }

    /* Text scales smoothly */
    .text .label {
    font-size: clamp(0.6rem, 2vw, 0.75rem);
    font-weight: 700;
    color: #602C6D;
    text-transform: uppercase;
    white-space: nowrap;
    }

    .text h4 {
    font-size: clamp(0.75rem, 2.8vw, 1rem);
    font-weight: 800;
    color: #000;
    line-height: 1.2;
    }


/* ---------- Overview ---------- */
    .event-overview {
    background: #f5f3f7; /* soft light background */
    padding: 80px 20px;
    }

    .overview-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    }

    /* Heading */
    .event-overview h2 {
    grid-column: 1 / -1;
    font-size: 42px;
    font-weight: 800;
    color: #3b1e6d; /* deep purple */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    }

    .star {
    color: #f5a623;
    font-size: 40px;
    }

    /* Text */
    .overview-text {
    color: #5a4a6a;
    font-size: 18px;
    line-height: 1.8;
    }

    .overview-text p {
    margin-bottom: 24px;
    }

    .overview-text strong {
    color: #3b1e6d;
    font-weight: 700;
    }

    /* Image */
    .overview-image img {
    width: 100%;
    border-radius: 12px;
    display: block;
    }

    /* Responsive */
    @media (max-width: 900px) {
    .overview-container {
        grid-template-columns: 1fr;
    }

    .event-overview h2 {
        font-size: 32px;
    }

    .overview-text {
        font-size: 16px;
    }
    }

/* ---------- Challenge ---------- */
    .challenge-tracks {
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    background: linear-gradient(180deg, #faf7ff, #ffffff);
    }

    .section-header {
    max-width: 720px;
    margin-bottom: 3rem;
    }

    .section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #2e1065;
    }

    .section-header p {
    margin-top: 0.5rem;
    color: #6b21a8;
    font-size: 1rem;
    }

    .tracks-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    }

    .track-card {
    padding: 2rem;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(91, 24, 154, 0.12);
    border-top: 6px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .track-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(91, 24, 154, 0.18);
    }

    .track-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #2e1065;
    }

    /* Track color accents */
    .track-card.health {
    border-color: #ec4899;
    }

    .track-card.education {
    border-color: #8b5cf6;
    }

    .track-card.climate {
    border-color: #f59e0b;
    }

    .track-block {
    margin-bottom: 1.25rem;
    }

    .track-block:last-child {
    margin-bottom: 0;
    }

    .label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b5cf6;
    margin-bottom: 0.35rem;
    }

    .track-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3b0764;
    }

/* ---------- Judges ---------- */
    .judges-mentors {
    padding: clamp(3rem, 6vw, 5rem) 5.5rem;
    background: #ffffff;
    }

    /* Grid */
    .judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;   /* controls overall width */
    width: 100%;
    margin: 0 auto;
    justify-items: center;
    }

    /* Card */
    .judge-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 18px 40px rgba(96, 44, 109, 0.22);
    background: #000;
    }

    /* Image */
    .judge-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    }

    .judge-card:hover img {
    transform: scale(1.04);
    }

    /* LinkedIn icon */
    .judge-linkedin {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #0A66C2;
    display: grid;
    place-items: center;
    font-weight: 800;
    text-decoration: none;
    z-index: 3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    }

    .judge-linkedin:hover {
    background: #0A66C2;
    color: #ffffff;
    transform: scale(0.8);

    }

    /* Name strip (always visible) */
    .judge-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.75)
    );
    color: #ffffff;
    z-index: 2;
    }

    .judge-name h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
    color: #fff;
    }

    /* Hover info panel (no blur) */
    .judge-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0),
    rgba(96, 44, 109, 0.9)
    );
    padding: 1.5rem;
    padding-bottom: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .judge-card:hover .judge-info {
    opacity: 1;
    transform: translateY(0);
    }

    /* Info text */
    .judge-info .role {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    }

    .judge-info .location {
    font-size: 0.75rem;
    font-weight: 800;
    color: #D98638;
    }

    @media (max-width: 480px) {
    .judges-mentors {
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    background: #ffffff;
    }
    }

/* ---------- Winners ---------- */
    .winners {
    position: relative;
    padding: clamp(4rem, 7vw, 6rem) 1.5rem;
    background: #ffffff;
    overflow: hidden;
    }

    /* Decorative background */
    .winners-bg {
    position: absolute;
    inset: 0;
    background:
    radial-gradient(circle at top left, rgba(217, 134, 56, 0.18), transparent 45%),
    radial-gradient(circle at bottom right, rgba(96, 44, 109, 0.25), transparent 50%);
    z-index: 0;
    }

    /* Ensure content sits above background */
    .winners > * {
    position: relative;
    z-index: 1;
    }

    /* Grid */
    .winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    }

    /* Card */
    .winner-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(96, 44, 109, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    }

    /* Image */
    .winner-image {
    position: relative;
    height: 220px;
    }

    .winner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    }

    /* Badge */
    .badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    }

    .badge.gold {
    background: #D98638;
    color: #ffffff;
    }

    .badge.silver {
    background: #602C6D;
    color: #ffffff;
    }

    /* Content */
    .winner-content {
    padding: 2.5rem;
    }

    .winner-content h3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #602C6D;
    }

    .winner-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #8a4a96;
    margin-bottom: 1.25rem;
    }

    .winner-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #4b1f56;
    margin-bottom: 1rem;
    }

    /* First place emphasis */
    .winner-card.first {
    transform: translateY(-10px);
    box-shadow: 0 35px 80px rgba(217, 134, 56, 0.35);
    }

    /* Mobile */
    @media (max-width: 480px) {
    .winner-content {
    padding: 2rem;
    }
    }

/* ---------- Event impact ---------- */
    .event-impact-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    }

    /* Full-width hero image */
    .hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px;
    border-radius: 24px;
    }

    /* Glassmorphism overlay container */
    .impact-overlay {
    position: absolute;
    bottom: 20PX;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(0, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: clamp(1.5rem, 2vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
    border: 1px solid rgba(217, 134, 56, 0.3);
    box-shadow: 0 8px 30px rgba(96, 44, 109, 0.15);
    }

    /* Overlay header */
    .impact-overlay h2 {
    font-size: clamp(2rem, 4vw, 2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.05rem;
    }

    .impact-overlay p {
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    color: #fff;
    margin-bottom: 0.1rem;
    }

    /* Stats cards grid */
    .impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    }

    /* Individual glass stat card */
    .stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(217, 134, 56, 0.3);
    padding: 0.5rem 0.05rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(96, 44, 109, 0.1);
    transition: transform 0.3s ease;
    }

    .stat-card:hover {
    transform: translateY(-3px);
    }

    /* Stat number */
    .stat-card .number {
    font-size: clamp(1.5rem, 0.5vw, 1.3rem);
    color: #ffffff;
    display: block;
    margin-bottom: 0.05rem;
    }

    /* Stat label */
    .stat-card .label {
    font-size: clamp(0.65rem, 1.8vw, 0.5rem);
    color: #fff;
    }

    /* Mobile tweaks */
    @media (max-width: 768px) {
    .impact-overlay {
    width: 95%;
    padding: 1.5rem;
    }

    .impact-stats {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    }

    .stat-card {
    padding: 0.5rem;
    }
    }

    @media (max-width: 480px) {
    .impact-overlay {
    padding: 0.5rem;
    border-radius: 16px;
    }

    .impact-stats {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.4rem;
    }

    .stat-card .number {
    font-size: 0.61rem;
    }

    .stat-card .label {
    font-size: 0.45rem;
    }

    .stat-card .number {
    font-size: clamp(0.9rem, 0.5vw, 1.3rem);
    }
    }

/* ---------- Impact meaning ---------- */
    .impact-meaning {
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    background: #faf7ff;
    }

    .impact-meaning .container {
    max-width: 1000px;
    margin: 0 auto;
    }

    .impact-meaning h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    color: #602C6D;
    margin-bottom: 2rem;
    }

    .meaning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    }

    .meaning-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(96, 44, 109, 0.12);
    }

    .meaning-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #2e1065;
    margin-bottom: 0.4rem;
    }

    .meaning-card p {
    font-size: 0.9rem;
    color: #4b1f56;
    line-height: 1.5;
    }

    /* Highlight statement */
    .impact-summary {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-left: 5px solid #D98638;
    background: #ffffff;
    border-radius: 14px;
    font-weight: 700;
    color: #602C6D;
    }

    /* What's next */
    .whats-next {
    margin-top: 2.5rem;
    }

    .whats-next h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #602C6D;
    margin-bottom: 1rem;
    }

    .whats-next ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    padding-left: 0;
    list-style: none;
    }

    .whats-next li {
    background: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    color: #4b1f56;
    box-shadow: 0 8px 20px rgba(96, 44, 109, 0.1);
    }

/* ---------- Get Inolved ---------- */
    .get-involved {
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(96, 44, 109, 0.08),
        rgba(217, 134, 56, 0.08)
    );
    }

    .get-involved-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    }

    /* Header */
    .get-involved h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 900;
    color: #602C6D;
    margin-bottom: 0.75rem;
    }

    .get-involved p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: #4b1f56;
    margin-bottom: 2.5rem;
    }

    /* Contact cards */
    .contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
    }

    .contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(96, 44, 109, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(96, 44, 109, 0.2);
    }

    .contact-card .icon {
    font-size: 1.6rem;
    }

    .contact-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #602C6D;
    margin-bottom: 0.15rem;
    }

    .contact-card span {
    font-size: 0.85rem;
    color: #8a4a96;
    }

    .btn {
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    /* Mobile tweaks */
    @media (max-width: 480px) {
        .contact-card {
            padding: 1rem;
        }

        .btn {
            width: 100%;
            max-width: 320px;
            text-align: center;
        }

        .event-btn{
            text-align: center;
        }
    }