html,
body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

main {
    flex: 1;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 55px;   /* Topbar height */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header{
    --page-header-image: url("images/academic-banner.jpg");
}

h2 {
    color: #004d99;
}

/* Prevent Layout Shift */
.main-content {
    margin-top: 55px;
}

/* Page section animation */
.page-section {
    display: none;
}

.page-section.active-section {
    display: block;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    margin-bottom: 40px;
}

.curriculum-section {
    text-align: center;
    padding: 60px 20px;
}

.curriculum-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.curriculum-card {
    width: 260px;
    padding: 30px;
    border-radius: 18px;

    /* ✅ New Box Color */
    background: linear-gradient(135deg, #6ecfff, #1b76ff);

    /* Text & Border */
    border: none;
    color: white;
    font-weight: 500;

    /* Shadow + Hover Animation */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.curriculum-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}


.curriculum-card h3 {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 600;
}

.curriculum-card p {
    font-size: 19px;
    margin: 0;
    opacity: 0.85;
}

.clubs-section {
    padding: 60px 20px;
    text-align: center;
    margin: 0 auto;
}

.section-title {
    font-size: 2em;
    color: #004d99;
    margin-bottom: 40px;
    margin-top: 10px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 3px;
    background-color: #004d99;
    display: block;
    margin: 10px auto 0;
    border-radius: 3px;
}

.section-card {
    margin: 30px;
}

.clubs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
}

.club-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 35px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;

    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.club-card.english:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #1e88e5;
}

.club-card.maths:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #43a047;
}

.club-card.science:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #6a1b9a;
}

.club-card.hindi:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #ef6c00;
}

.club-card.social:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #00897b;
}

.club-card.it:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #3949ab;
}

.club-card.vidhya:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #d81b60;
}

.club-card.arts:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #E91E63;
}

.club-card.sports:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #43A047;
}

.club-card.quizzes:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #FB8C00;
}

.club-card.creative:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #FBC02D;
}

.club-card.band:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #8E44AD;
}

.club-card.guide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #26A69A;
}

.club-card.smart:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px #4A90E2;
}



.club-icon {
    font-size: 2.5em;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

.club-name {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.club-desc {
    font-size: 1em;
    color: #444;
    line-height: 1.6;
}

.english .club-icon {
    background: #1e88e5;
}

.english .club-name {
    color: #1565c0;
}

.maths .club-icon {
    background: #43a047;
}

.maths .club-name {
    color: #2e7d32;
}

.science .club-icon {
    background: #6a1b9a;
}

.science .club-name {
    color: #4a148c;
}

.hindi .club-icon {
    background: #ef6c00;
}

.hindi .club-name {
    color: #e65100;
}

.social .club-icon {
    background: #00897b;
}

.social .club-name {
    color: #00695c;
}

.it .club-icon {
    background: #3949ab;
}

.it .club-name {
    color: #283593;
}

.vidhya .club-icon {
    background: #d81b60;
}

.vidhya .club-name {
    color: #ad1457;
}

.arts .club-icon {
    background: #E91E63;
}

.arts .club-name {
    color: #EC4899;
}

.sports .club-icon {
    background: #43A047;
}

.sports .club-name {
    color: #22C55E;
}

.quizzes .club-icon {
    background: #FB8C00;
}

.quizzes .club-name {
    color: #F97316;
}

.creative .club-icon {
    background: #FBC02D;

}

.creative .club-name {
    color: #EAB308;
}

.band .club-icon {
    background: #8E44AD;
    
}

.band .club-name {
    color: #A855F7;
    
}

.guide .club-icon {
    background: #26A69A;
    
}

.guide .club-name {
    color: #14B8A6;
    
}

.smart .club-icon {
    background: #4A90E2;
    
}

.smart .club-name {
    color: #3B82F6;
    
}



@media (max-width: 600px) {
    .club-card {
        padding: 25px 15px;
    }

    .club-icon {
        width: 70px;
        height: 70px;
        font-size: 2em;
    }

    .club-name {
        font-size: 1.2em;
    }
}

footer {
    background-color: #333;
    color: white;
    padding: 5px 0;
    text-align: center;
    position: relative;
    bottom: 0%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    background: #004d99;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.footer p {
    margin: 0;
}
/* =====================================================
   MOBILE RESPONSIVE OVERRIDES
   Desktop rules above are untouched.
   ===================================================== */
@media (max-width: 600px) {
    .curriculum-card {
        width: 88%;
    }

    .club-card {
        min-height: auto;
        padding: 25px 15px;
    }

    .section-title {
        font-size: 1.6em;
    }

    .curriculum-wrapper {
        gap: 20px;
    }
}

@media (max-width: 400px) {
    .curriculum-card {
        width: 100%;
        padding: 20px;
    }
}

/* Guarantee single-column stacking for the Programs/Clubs
   cards on phones. auto-fit + minmax(300px, 1fr) should
   already do this, but this explicit rule protects against
   the cards being squeezed into cramped multi-column rows
   on narrow devices. */
@media (max-width: 640px) {
    .clubs-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}