:root {
    --primary-color: hsl(347, 100%, 85%);
    --secondary-color: #00b894;
    --accent-color: #fdcb6e;
    --background-color: #f7f9fc;
    --text-color: #2d3436;
    --shadow-heavy: 0 15px 30px rgba(0, 0, 0, 0.25);
    --gold: #ffc107;
    --silver: #bdbdbd;
    --bronze: #e65100;
    --gradient-rainbow: linear-gradient(135deg, #ffe9f3 0%, #ffcff9 25%, #bdedff 50%, #e3f8fd 75%, #e7fffd 100%);
    /* Define block heights (MODIFIED --h-3rd) */
    --h-1st: 200px;
    --h-2nd: 150px;
    --h-3rd: 150px;
    /* INCREASED SIZE */
    /* Calculate vertical alignment offset based on the largest block (1st place) */
    --offset-2nd: calc(var(--h-1st) - var(--h-2nd));
    /* 200px - 150px = 50px */
    --offset-3rd: calc(var(--h-1st) - var(--h-3rd));
    /* 200px - 150px = 50px */
    /* MODIFIED */
}
/* Remove bottom space below footer only for this page */
body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body {
    background: hsl(0, 3%, 44%);
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    padding-bottom: 50px;
    font-size: 16px;
}

            /* 🔹 Popup overlay */
            
            .popup-ad {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.6);
                display: none;
                /* hidden by default */
                justify-content: center;
                align-items: center;
                z-index: 9999;
                animation: fadeIn 0.3s ease-in-out;
            }
            /* 🔹 Popup box */
            
            .popup-content {
                background: #fff;
                border-radius: 16px;
                padding: 25px 30px;
                max-width: 500px;
                width: 90%;
                text-align: center;
                position: relative;
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
                animation: slideUp 0.4s ease;
            }
            /* 🔹 Close button */
            
            .close-btn {
                position: absolute;
                top: 10px;
                right: 15px;
                border: none;
                background: transparent;
                font-size: 26px;
                cursor: pointer;
                color: #666;
                transition: color 0.2s;
            }
            
            .close-btn:hover {
                color: #000;
            }
            /* 🔹 Title */
            
            .popup-title {
                font-family: 'Poppins', sans-serif;
                font-size: 22px;
                font-weight: 700;
                color: #333;
                margin-bottom: 15px;
            }
            /* 🔹 Video styling */
            
            .video-wrapper iframe {
                border-radius: 10px;
                width: 100%;
            }
            /* 🔹 Paragraph */
            
            .popup-text {
                font-size: 16px;
                color: #555;
                margin-top: 15px;
                line-height: 1.5;
            }
            /* 🔹 Animations */
            
            @keyframes fadeIn {
                from {
                    opacity: 0;
                }
                to {
                    opacity: 1;
                }
            }
            
            @keyframes slideUp {
                from {
                    transform: translateY(40px);
                    opacity: 0;
                }
                to {
                    transform: translateY(0);
                    opacity: 1;
                }
            }

h1 {
    font-size: 4.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-shadow: 4px 4px 0px var(--accent-color);
    animation: bounceIn 1s ease-out;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    width: 100%;
}

.category-subheading {
    text-align: center;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 3px dashed var(--accent-color);
    padding-bottom: 0.5rem;
    font-weight: 500;
}

.month-card {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-heavy);
    transition: all 0.5s ease;
    border: 5px solid rgba(0, 0, 0, 0.05);
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 5%;
    min-height: 550px;
    perspective: 1000px;
    padding-top: 1rem;
    overflow-x: auto;
}

.podium {
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    cursor: pointer;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.podium:hover {
    transform: translateY(-20px) scale(1.03);
    z-index: 20;
}

.podium img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid;  /* ← Changed from 8px to 2px */
    box-shadow: var(--shadow-heavy);
    margin-bottom: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.podium.first img {
    border-color: var(--gold);
}

.podium.second img {
    border-color: var(--silver);
    margin-top: 40px;
    margin-bottom: -25px;
}

.podium.third img {
    border-color: var(--bronze);
    margin-top: 80px;
    margin-bottom: -40px;
}

.podium .block {
    width: 100%;
    text-align: center;
    padding: 1.5rem 1rem;
    font-weight: 600;
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2), 0 15px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.podium.first .block {
    background: linear-gradient(145deg, var(--gold), #daa520);
    height: 230px;
    z-index: 3;
    transform: translateZ(0) translateY(0);
}

.podium.second .block {
    background: linear-gradient(145deg, var(--silver), #a9a9a9);
    height: 190px;
    z-index: 2;
    transform: translateZ(0) translateY(var(--offset-2nd));
}

.podium.third .block {
    background: linear-gradient(145deg, var(--bronze), #a0522d);
    height: 170px;
    z-index: 1;
    transform: translateZ(0) translateY(var(--offset-3rd));
}

.podium .text-content {
    padding: 10px 5px;
    border-radius: 8px;
    margin-bottom: 5px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.podium .rank-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-top: auto;
}

.podium .block strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.podium .block span {
    display: block;
    font-size: 1.1rem;
    margin-top: 0;
    font-weight: 400;
}

.podium .position,
.podium .block::after {
    content: none;
    display: none;
}

.sparkle::after {
    content: '🌟';
    position: absolute;
    font-size: 4rem;
    top: -100px;
    right: -20px;
    animation: sparkle 1s infinite alternate;
    z-index: 10;
}

.rank-number {
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.podium.first .rank-number {
    font-size: 48px;
}

.podium.second .rank-number {
    font-size: 38px;
}

.podium.third .rank-number {
    font-size: 32px;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    60% {
        opacity: 1;
        transform: translateY(20px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes sparkle {
    from {
        transform: scale(1);
        opacity: 0.8;
    }
    to {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ==================== RESPONSIVE - TIGHTER SPACING ON MOBILE ==================== */

@media (max-width: 1200px) {
    .podium {
        width: 220px;
    }
    .podium img {
        height: 220px;
    }
    .podium.first .block {
        height: 200px;
    }
    .podium.second .block,
    .podium.third .block {
        height: 160px;
    }
    .month-card {
        padding: 2.5rem;
        margin-bottom: 2.5rem; /* Reduced section spacing */
    }
}

@media (max-width: 992px) {
    .podium {
        width: 180px;
    }
    .podium img {
        height: 180px;
    }
    .podium.first .block {
        height: 180px;
    }
    .podium.second .block,
    .podium.third .block {
        height: 140px;
    }
    .podium .block strong {
        font-size: 1.5rem;
    }
    .podium-container {
        gap: 3%;
        padding-left: 2%;
        padding-right: 2%;
    }
    .month-card {
        padding: 2rem;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 2rem; /* Reduced */
    }
    h1 {
        font-size: 3.8rem;
        margin-bottom: 2rem;
    }
    .category-subheading {
        font-size: 1.7rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .podium {
        width: 150px;
    }
    .podium img {
        height: 150px;
    }
    .podium.first .block {
        height: 160px;
        padding: 1rem;
    }
    .podium.second .block,
    .podium.third .block {
        height: 130px;
        padding: 1rem;
    }
    .podium .block strong {
        font-size: 1.3rem;
    }
    .podium .block span {
        font-size: 1rem;
    }
    .podium-container {
        gap: 2%;
        padding-left: 1%;
        padding-right: 1%;
    }
    .month-card {
        padding: 1.5rem;
        margin-left: 5px;
        margin-right: 5px;
        margin-bottom: 1.5rem; /* Tighter */
    }
    h1 {
        font-size: 3.2rem;
        margin-bottom: 1.5rem;
    }
    .category-subheading {
        font-size: 1.5rem;
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 576px) {
    .month-card {
        padding: 1rem 0.8rem;
        margin: 0 0 2rem 0; /* Even tighter between sections */
        border-radius: 15px;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    .podium-container {
        gap: 1.5%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-top: 0.5rem; /* Reduced top padding inside podium area */
        min-height: 400px; /* Reduced overall height */
    }
    .podium {
        width: 115px;
    }
    .podium img {
        height: 115px;
    }
    .podium.first .block {
        height: 135px;
        padding: 0.7rem;
    }
    .podium.second .block,
    .podium.third .block {
        height: 105px;
        padding: 0.7rem;
    }
    .podium .block strong {
        font-size: 1.05rem;
    }
    .podium .block span {
        font-size: 0.85rem;
    }
    .podium .rank-number {
        font-size: 2.5rem !important;
    }
    .podium.first .rank-number {
        font-size: 34px !important;
    }
    .podium.second .rank-number {
        font-size: 28px !important;
    }
    .podium.third .rank-number {
        font-size: 24px !important;
    }
    .sparkle::after {
        font-size: 2.2rem;
        top: -55px;
    }
    h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .category-subheading {
        font-size: 1.3rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
}