﻿:root {
    --maroon: #7A1F2B;
    --maroon-deep: #59141C;
    --gold: #D9A441;
    --gold-soft: #F0D9A6;
    --green: #2F5233;
    --ivory: #F8F3E7;
    --card: #FFFDF8;
    --ink: #2B1E1A;
    --ink-soft: #5B4A3F;
    --line: #E4D6BC;
}

.classes-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.classes-page {
    background: var(--ivory);
    color: var(--ink);
    font-family: 'Mukta', sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

    .classes-page h1,
    .classes-page h2,
    .classes-page h3,
    .classes-page h4 {
        font-family: 'Yatra One', cursive;
        font-weight: 400;
        color: var(--maroon-deep);
    }

    .classes-page .eyebrow {
        font-family: 'Rajdhani', sans-serif;
        font-weight: 600;
        letter-spacing: .22em;
        text-transform: uppercase;
        font-size: .78rem;
        color: var(--green);
    }

    /* ================= HERO ================= */
    .classes-page .hero {
        position: relative;
        background: radial-gradient(ellipse at 15% -10%, rgba(217,164,65,.35), transparent 55%), radial-gradient(ellipse at 100% 0%, rgba(47,82,51,.25), transparent 50%), linear-gradient(180deg, var(--maroon-deep) 0%, var(--maroon) 100%);
        color: var(--ivory);
        padding: 90px 8vw 70px;
        overflow: hidden;
    }

        .classes-page .hero::after {
            content: "";
            position: absolute;
            inset: 0;
            background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 26px);
            pointer-events: none;
        }

    .classes-page .hero-inner {
        position: relative;
        max-width: 1080px;
        margin: 0 auto;
        text-align: center;
    }

    .classes-page .seal {
        width: 92px;
        height: 92px;
        margin: 0 auto 26px;
        border-radius: 50%;
        border: 2px solid var(--gold);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Yatra One', cursive;
        font-size: 1.5rem;
        color: var(--gold);
        background: rgba(255,255,255,.04);
        position: relative;
    }

        .classes-page .seal::before {
            content: "";
            position: absolute;
            inset: -9px;
            border: 1px dashed rgba(217,164,65,.5);
            border-radius: 50%;
        }

    .classes-page .hero .eyebrow {
        color: var(--gold-soft);
    }

    .classes-page .hero h1 {
        font-size: clamp(2.1rem, 4.6vw, 3.4rem);
        margin: 16px 0 10px;
        line-height: 1.15;
        color: var(--ivory);
    }

    .classes-page .hero .sub {
        max-width: 640px;
        margin: 0 auto;
        font-size: 1.08rem;
        color: #EFE4D2;
    }

/* ================= CONTAINER & SECTIONS ================= */
.classes-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 70px 8vw 20px;
}

.classes-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px dashed var(--line);
}

    .classes-section:last-child {
        border-bottom: none;
    }

.classes-page .section-head {
    max-width: 700px;
    margin-bottom: 32px;
}

    .classes-page .section-head h2 {
        font-size: clamp(1.6rem, 3vw, 2.1rem);
        margin-top: 8px;
    }

        .classes-page .section-head h2 span {
            color: var(--ink-soft);
            font-family: 'Mukta', sans-serif;
            font-size: .55em;
            display: block;
            margin-top: 4px;
            letter-spacing: .02em;
        }

.classes-page .section-desc {
    color: var(--ink-soft);
    margin-top: 12px;
    font-size: .98rem;
}

/* ================= TAB TITLE (Summer/Winter/etc labels) ================= */
.classes-page .tab-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0 14px;
}

    .classes-page .tab-title span {
        font-family: 'Rajdhani', sans-serif;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        font-size: .85rem;
        color: var(--maroon);
        background: var(--gold-soft);
        padding: 6px 16px;
        border-radius: 999px;
        border: 1px solid var(--gold);
    }

    .classes-page .tab-title::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }

/* ================= TABLES ================= */
.table-wrapper {
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 18px 40px -24px rgba(89,20,28,.35);
}

.uniform-table, .syllabus-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

    .uniform-table th, .uniform-table td,
    .syllabus-table th, .syllabus-table td {
        padding: 13px 18px;
        text-align: left;
        border-bottom: 1px solid var(--line);
        font-size: .95rem;
    }

    .uniform-table th, .syllabus-table th {
        background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%);
        color: var(--gold-soft);
        font-family: 'Rajdhani', sans-serif;
        font-weight: 700;
        letter-spacing: .05em;
        text-transform: uppercase;
        font-size: .78rem;
    }

    .uniform-table tr:last-child td,
    .syllabus-table tr:last-child td {
        border-bottom: none;
    }

    .uniform-table tr:nth-child(even) td,
    .syllabus-table tr:nth-child(even) td {
        background-color: #FBF4E9;
    }

    .uniform-table tr:hover td,
    .syllabus-table tr:hover td {
        background-color: var(--gold-soft);
        transition: background-color .2s ease;
    }

/* ================= NOTES ================= */
.classes-page .note {
    font-style: italic;
    color: var(--ink-soft);
    margin-top: 14px;
    font-size: .92rem;
}

.classes-page .note-strip {
    margin-top: 26px;
    background: var(--card);
    border: 1px dashed var(--gold);
    border-radius: 12px;
    padding: 16px 22px;
    color: var(--ink-soft);
    font-size: .92rem;
    text-align: center;
}

/* ================= SYLLABUS CARDS ================= */
.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 6px;
}

.syllabus-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 20px 22px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .syllabus-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 34px -20px rgba(89,20,28,.35);
        border-color: var(--maroon);
    }

    .syllabus-card h4 {
        font-size: 1.02rem;
        margin-bottom: 8px;
        color: var(--maroon);
    }

    .syllabus-card p {
        font-size: .9rem;
        color: var(--ink-soft);
    }

/* ================= ACTIVITY CARDS ================= */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 10px;
}

.activity-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .activity-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 34px -20px rgba(89,20,28,.4);
        border-color: var(--gold);
    }

.classes-page .facility-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--maroon);
    color: var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Yatra One', cursive;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.activity-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.activity-card p {
    font-size: .9rem;
    color: var(--ink-soft);
}

/* ================= RULES CARDS ================= */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.rules-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 26px 22px;
    position: relative;
}

    .rules-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 26px;
        width: 46px;
        height: 3px;
        background: var(--gold);
        border-radius: 3px;
    }

    .rules-card h3 {
        font-size: 1.15rem;
        margin-bottom: 14px;
        padding-top: 8px;
    }

.rules-list {
    list-style: none;
    padding-left: 0;
}

    .rules-list li {
        position: relative;
        padding-left: 24px;
        margin-bottom: 10px;
        font-size: .92rem;
        color: var(--ink-soft);
        line-height: 1.6;
    }

        .rules-list li::before {
            content: "❖";
            position: absolute;
            left: 0;
            color: var(--gold);
            font-size: .85rem;
        }

/* ================= FOOTER NOTE ================= */
.classes-footer-note {
    text-align: center;
    padding: 40px 8vw 60px;
    color: var(--ink-soft);
    font-size: .88rem;
    border-top: 1px solid var(--line);
    max-width: 1080px;
    margin: 0 auto;
}

    .classes-footer-note .school-name {
        font-family: 'Yatra One', cursive;
        font-size: 1.2rem;
        color: var(--maroon);
        display: block;
        margin-bottom: 6px;
    }

/* ================= RESPONSIVE ================= */
@media (max-width: 820px) {
    .classes-page .hero h1 {
        font-size: 1.8rem;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .syllabus-grid, .activity-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .activity-card, .syllabus-card {
        transition: none;
    }
}
