:root {
    --festival-maroon: #570707;
    --festival-dark: #210202;
    --festival-gold: #d9a315;
    --festival-gold-light: #f2cf67;
    --festival-cream: #f8f0df;
    --festival-text: #432e27;
    --festival-muted: #8b766d;
}

.festival-page {
    width: 100%;
    overflow: hidden;
    background: var(--festival-cream);
}

.festival-page *,
.festival-page *::before,
.festival-page *::after {
    box-sizing: border-box;
}


/* HERO */

.festival-hero {
    padding: 90px 20px 80px;

    text-align: center;

    color: #fff;

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(217,163,21,.15),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #3c0707,
            #160202
        );
}

.festival-symbol {
    width: 45px;
    height: 45px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--festival-gold);

    border:
        1px solid
        rgba(217,163,21,.5);

    border-radius: 50%;

    font-size: 21px;
}

.festival-eyebrow {
    display: block;

    color: var(--festival-gold-light);

    font-family: Arial, sans-serif;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 12px;
}

.festival-hero h1 {
    margin: 0;

    color: white;

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size: clamp(30px,4vw,48px);

    line-height: 1.4;
}

.festival-hero h1 span {
    color: var(--festival-gold);

    padding: 0 8px;
}

.festival-line {
    width: 70px;
    height: 3px;

    margin: 20px auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--festival-gold),
            transparent
        );
}

.festival-hero p {
    max-width: 700px;

    margin: auto;

    color: rgba(255,255,255,.65);

    font-family:
        "Noto Sans Tamil",
        Arial,
        sans-serif;

    font-size: 13px;

    line-height: 1.9;
}


/* INTRO */

.festival-intro {
    padding: 55px 20px 25px;

    background: var(--festival-cream);
}

.intro-card {
    width: min(950px,94%);

    margin: auto;

    padding: 25px 30px;

    display: flex;
    align-items: center;

    gap: 22px;

    border:
        1px solid
        rgba(217,163,21,.25);

    border-radius: 14px;

    background:
        rgba(255,255,255,.65);

    box-shadow:
        0 15px 40px rgba(80,30,0,.06);
}

.intro-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--festival-gold);

    border-radius: 50%;

    background: #fff8e9;

    font-size: 22px;
}

.intro-card span {
    display: block;

    color: #b47700;

    font-family: Arial, sans-serif;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 2px;
}

.intro-card h2 {
    margin: 6px 0;

    color: var(--festival-maroon);

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 22px;
}

.intro-card p {
    margin: 0;

    color: var(--festival-muted);

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 11px;

    line-height: 1.8;
}


/* TABLE SECTION */

.festival-table-section {
    padding: 35px 20px 85px;

    background: var(--festival-cream);
}

.festival-container {
    width: min(1180px,94%);

    margin: auto;

    overflow: hidden;

    background: white;

    border-radius: 18px;

    box-shadow:
        0 20px 55px rgba(70,25,0,.10);
}


/* TABLE HEADING */

.festival-table-heading {
    padding: 28px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid
        rgba(90,8,8,.08);
}

.festival-table-heading span {
    display: block;

    color: #bd8000;

    font-family: Arial, sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
}

.festival-table-heading h2 {
    margin: 6px 0 0;

    color: var(--festival-maroon);

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 25px;
}

.festival-count {
    display: flex;
    align-items: baseline;

    gap: 6px;
}

.festival-count strong {
    color: var(--festival-maroon);

    font-family: Arial, sans-serif;

    font-size: 25px;
}

.festival-count small {
    color: #947e73;

    font-family: Arial, sans-serif;

    font-size: 10px;
}


/* TABLE */

.festival-table-wrapper {
    overflow-x: auto;
}

.festival-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
}

.festival-table thead {
    background:
        linear-gradient(
            135deg,
            #5c0808,
            #3c0505
        );
}

.festival-table th {
    padding: 17px 15px;

    color: var(--festival-gold-light);

    text-align: left;

    font-family: Arial, sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.festival-table th:nth-child(1) {
    width: 55px;

    text-align: center;
}

.festival-table th:nth-child(2) {
    width: 145px;
}

.festival-table th:nth-child(3) {
    width: 28%;
}

.festival-table th:nth-child(4) {
    width: 36%;
}

.festival-table th:nth-child(5) {
    width: 105px;

    text-align: center;
}

.festival-table td {
    padding: 18px 15px;

    border-bottom:
        1px solid
        rgba(90,8,8,.08);

    vertical-align: middle;
}

.festival-table tbody tr {
    transition: background .25s ease;
}

.festival-table tbody tr:hover {
    background: #fffaf0;
}


/* NUMBER */

.festival-number {
    color: #b59b8e;

    text-align: center;

    font-family: Arial, sans-serif;

    font-size: 11px;
    font-weight: 700;
}


/* DAY */

.festival-day span {
    display: inline-block;

    padding: 8px 10px;

    color: var(--festival-maroon);

    background: #fff6df;

    border:
        1px solid
        rgba(217,163,21,.25);

    border-radius: 7px;

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 11px;
    font-weight: 800;
}


/* POOJA */

.festival-pooja strong {
    display: block;

    color: var(--festival-maroon);

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 13px;

    line-height: 1.7;
}

.festival-pooja small {
    display: block;

    margin-top: 4px;

    color: #967e73;

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 10px;

    line-height: 1.6;
}


/* SPONSOR */

.festival-sponsor strong {
    display: block;

    color: #4b342c;

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 12px;

    line-height: 1.8;
}


/* PHOTO */

.festival-photo {
    text-align: center;
}

.festival-photo-btn {
    width: 68px;
    height: 68px;

    padding: 3px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(217,163,21,.55);

    border-radius: 50%;

    background: #fff9ed;

    overflow: hidden;

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.festival-photo-btn:hover {
    transform: scale(1.08);

    box-shadow:
        0 8px 22px rgba(90,8,8,.17);
}

.festival-photo-btn img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}

.photo-placeholder {
    display: none;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--festival-gold);

    background: #fff5dc;

    font-size: 22px;
}


/* MESSAGE */

.festival-message {
    padding: 0 20px 85px;

    background: var(--festival-cream);
}

.festival-message-inner {
    width: min(850px,94%);

    margin: auto;

    padding: 24px 28px;

    display: flex;
    align-items: center;

    gap: 20px;

    border:
        1px solid
        rgba(217,163,21,.22);

    border-radius: 13px;

    background: rgba(255,255,255,.55);
}

.message-symbol {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--festival-gold);

    background: #fff8e9;

    border-radius: 50%;
}

.festival-message span {
    color: #b47700;

    font-family: Arial, sans-serif;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 2px;
}

.festival-message h3 {
    margin: 5px 0;

    color: var(--festival-maroon);

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 19px;
}

.festival-message p {
    margin: 0;

    color: #806c63;

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 11px;

    line-height: 1.8;
}


/* MODAL */

.festival-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;
}

.festival-modal.active {
    display: flex;
}

.festival-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(20,2,2,.87);

    backdrop-filter: blur(7px);
}

.festival-modal-box {
    position: relative;
    z-index: 2;

    width: min(500px,94vw);

    padding: 20px;

    text-align: center;

    border:
        1px solid
        rgba(217,163,21,.45);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #3b0707,
            #180202
        );

    animation:
        festivalModalIn .3s ease;
}

@keyframes festivalModalIn {

    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

.festival-modal-box img {
    width: 100%;

    max-height: 65vh;

    object-fit: contain;

    border-radius: 10px;
}

.festival-modal-box h3 {
    margin: 17px 0 3px;

    color: white;

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 15px;
}

.festival-modal-close {
    position: absolute;

    top: -14px;
    right: -14px;

    width: 36px;
    height: 36px;

    color: white;

    border:
        1px solid
        rgba(217,163,21,.6);

    border-radius: 50%;

    background: var(--festival-maroon);

    font-size: 22px;

    cursor: pointer;
}


/* MOBILE */

@media (max-width: 700px) {

    .festival-hero {
        padding: 65px 17px;
    }

    .festival-hero h1 {
        font-size: 28px;
    }

    .festival-hero h1 span {
        display: none;
    }

    .festival-intro {
        padding: 35px 15px 20px;
    }

    .intro-card {
        width: 100%;

        align-items: flex-start;

        padding: 20px;
    }

    .intro-card h2 {
        font-size: 19px;
    }

    .festival-table-section {
        padding:
            20px 12px
            60px;
    }

    .festival-container {
        width: 100%;
    }

}


/* MOBILE CARDS */

@media (max-width: 620px) {

    .festival-table-wrapper {
        overflow: visible;
    }

    .festival-table,
    .festival-table tbody {
        display: block;

        width: 100%;
    }

    .festival-table thead {
        display: none;
    }

    .festival-table tr {
        display: grid;

        grid-template-columns:
            75px 1fr 70px;

        gap: 12px;

        margin:
            0 12px 14px;

        padding: 16px;

        border:
            1px solid
            rgba(90,8,8,.09);

        border-radius: 13px;

        background: white;

        box-shadow:
            0 7px 22px rgba(80,30,0,.06);
    }

    .festival-table td {
        display: block;

        padding: 0;

        border: 0;
    }

    .festival-number {
        display: none !important;
    }

    .festival-day {
        grid-column: 1;

        grid-row: 1 / 3;
    }

    .festival-pooja {
        grid-column: 2;

        grid-row: 1;
    }

    .festival-sponsor {
        grid-column: 2;

        grid-row: 2;
    }

    .festival-photo {
        grid-column: 3;

        grid-row: 1 / 3;

        display: flex !important;

        align-items: center;
        justify-content: center;
    }

    .festival-day span {
        width: 100%;

        padding: 9px 4px;

        font-size: 9px;

        text-align: center;
    }

    .festival-pooja strong {
        font-size: 12px;
    }

    .festival-sponsor strong {
        font-size: 10px;
    }

    .festival-photo-btn {
        width: 57px;
        height: 57px;
    }

    .festival-table-heading {
        padding: 22px 20px;
    }

    .festival-table-heading h2 {
        font-size: 21px;
    }

}

@media (max-width: 430px) {

    .festival-table tr {
        grid-template-columns:
            62px 1fr 60px;

        gap: 8px;

        padding: 13px;
    }

    .festival-photo-btn {
        width: 50px;
        height: 50px;
    }

    .festival-message-inner {
        align-items: flex-start;

        padding: 18px;
    }

}