/* =========================================================
   SPECIAL POOJA
   PREMIUM TEMPLE DESIGN
========================================================= */

:root {
    --sp-maroon: #5a0808;
    --sp-dark: #210303;
    --sp-deep: #120101;
    --sp-gold: #d9a315;
    --sp-gold-light: #f2cf67;
    --sp-cream: #f8f0df;
    --sp-white: #ffffff;
    --sp-text: #3d2924;
    --sp-muted: #846f67;
}


/* =========================================================
   PAGE
========================================================= */

.special-pooja-page {
    width: 100%;
    overflow: hidden;
    background: var(--sp-cream);
}

.special-pooja-page *,
.special-pooja-page *::before,
.special-pooja-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   HERO
========================================================= */

.special-pooja-hero {
    position: relative;

    padding: 90px 20px 80px;

    text-align: center;

    color: #fff;

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(217,163,21,0.14),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #3b0707,
            #170202
        );
}

.hero-symbol {
    width: 44px;
    height: 44px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--sp-gold);

    border:
        1px solid
        rgba(217,163,21,0.45);

    border-radius: 50%;

    font-size: 22px;
}

.hero-eyebrow {
    display: block;

    color: var(--sp-gold-light);

    font-family: Arial, sans-serif;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 12px;
}

.special-pooja-hero h1 {
    margin: 0;

    color: #fff;

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.4;

    font-weight: 800;
}

.special-pooja-hero h1 span {
    color: var(--sp-gold);

    padding: 0 8px;
}

.hero-line {
    width: 70px;
    height: 3px;

    margin: 20px auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--sp-gold),
            transparent
        );
}

.special-pooja-hero p {
    max-width: 700px;

    margin: auto;

    color:
        rgba(255,255,255,0.65);

    font-family:
        "Noto Sans Tamil",
        Arial,
        sans-serif;

    font-size: 13px;

    line-height: 1.9;
}


/* =========================================================
   FILTER
========================================================= */

.pooja-filter-section {
    padding: 48px 20px 35px;

    background: var(--sp-cream);
}

.pooja-filter-container {
    width: min(1180px, 94%);

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.filter-heading span {
    display: block;

    color: #b67900;

    font-family: Arial, sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2.5px;

    margin-bottom: 7px;
}

.filter-heading h2 {
    margin: 0;

    color: var(--sp-maroon);

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size: 23px;
}


/* =========================================================
   FILTER BOX
========================================================= */

.filter-box {
    min-width: 430px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 10px 12px;

    background: #ffffff;

    border:
        1px solid
        rgba(90,8,8,0.08);

    border-radius: 12px;

    box-shadow:
        0 12px 35px rgba(80,30,0,0.08);
}

.filter-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--sp-gold);

    border-radius: 8px;

    background: #fff8e8;

    font-size: 20px;
}

.filter-field {
    flex: 1;
}

.filter-field label {
    display: block;

    margin-bottom: 2px;

    color: #9a8178;

    font-family: Arial, sans-serif;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}

.filter-field select {
    width: 100%;

    padding: 5px 30px 5px 0;

    border: 0;
    outline: none;

    color: var(--sp-maroon);

    background: transparent;

    font-family:
        "Noto Sans Tamil",
        Arial,
        sans-serif;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.reset-filter {
    padding: 11px 15px;

    border: 1px solid rgba(90,8,8,0.15);

    border-radius: 7px;

    color: var(--sp-maroon);

    background: #fffaf1;

    font-family: Arial, sans-serif;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.reset-filter:hover {
    color: #fff;

    background: var(--sp-maroon);
}


/* =========================================================
   TABLE SECTION
========================================================= */

.special-pooja-table-section {
    padding: 35px 20px 90px;

    background: var(--sp-cream);
}

.table-container {
    width: min(1180px, 94%);

    margin: auto;

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 20px 55px rgba(70,25,0,0.10);
}


/* =========================================================
   TABLE TOP
========================================================= */

.table-top {
    padding: 28px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid
        rgba(90,8,8,0.08);
}

.table-top span {
    display: block;

    color: #bd8000;

    font-family: Arial, sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 6px;
}

.table-top h2 {
    margin: 0;

    color: var(--sp-maroon);

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size: 25px;
}

.result-count {
    display: flex;
    align-items: baseline;

    gap: 7px;

    color: #927d73;

    font-family: Arial, sans-serif;
}

.result-count strong {
    color: var(--sp-maroon);

    font-size: 25px;
}

.result-count span {
    margin: 0;

    color: #927d73;

    letter-spacing: 0;

    font-size: 10px;
}


/* =========================================================
   TABLE
========================================================= */

.pooja-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.special-pooja-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
}

.special-pooja-table thead {
    background:
        linear-gradient(
            135deg,
            #5c0808,
            #3c0505
        );
}

.special-pooja-table th {
    padding: 17px 15px;

    color: var(--sp-gold-light);

    text-align: left;

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.special-pooja-table th:first-child {
    text-align: center;
}

.special-pooja-table th:nth-child(1) {
    width: 55px;
}

.special-pooja-table th:nth-child(2) {
    width: 105px;
}

.special-pooja-table th:nth-child(3) {
    width: 32%;
}

.special-pooja-table th:nth-child(4) {
    width: 32%;
}

.special-pooja-table th:nth-child(5) {
    width: 105px;
    text-align: center;
}

.special-pooja-table td {
    padding: 17px 15px;

    border-bottom:
        1px solid
        rgba(90,8,8,0.08);

    vertical-align: middle;
}

.special-pooja-table tbody tr {
    transition:
        background 0.25s ease;
}

.special-pooja-table tbody tr:hover {
    background: #fffaf0;
}


/* =========================================================
   NUMBER
========================================================= */

.row-number {
    color: #b69b8d;

    text-align: center;

    font-family: Arial, sans-serif;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   MONTH
========================================================= */

.month-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 58px;

    padding: 8px 10px;

    color: var(--sp-maroon);

    background: #fff6df;

    border:
        1px solid
        rgba(217,163,21,0.25);

    border-radius: 7px;

    font-family:
        "Noto Sans Tamil",
        Arial,
        sans-serif;

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   POOJA
========================================================= */

.pooja-name-cell strong {
    display: block;

    color: var(--sp-maroon);

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size: 14px;

    line-height: 1.6;
}

.pooja-name-cell small {
    display: block;

    margin-top: 4px;

    color: #967e73;

    font-family:
        "Noto Sans Tamil",
        Arial,
        sans-serif;

    font-size: 10px;

    line-height: 1.6;
}


/* =========================================================
   SPONSOR
========================================================= */

.sponsor-cell strong {
    display: block;

    color: #4a3029;

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size: 12px;

    line-height: 1.7;
}

.sponsor-cell span {
    display: block;

    margin-top: 3px;

    color: #a1877b;

    font-family:
        "Noto Sans Tamil",
        Arial,
        sans-serif;

    font-size: 9px;
}


/* =========================================================
   PHOTO
========================================================= */

.photo-cell {
    text-align: center;
}

.sponsor-photo-button {
    width: 68px;
    height: 68px;

    padding: 3px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(217,163,21,0.55);

    border-radius: 50%;

    background: #fffaf0;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sponsor-photo-button:hover {
    transform: scale(1.08);

    box-shadow:
        0 8px 22px rgba(90,8,8,0.16);
}

.sponsor-photo-button img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}

.photo-fallback {
    display: none;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    color: var(--sp-gold);

    border-radius: 50%;

    background: #fff5dc;

    font-size: 23px;
}


/* =========================================================
   NO RESULTS
========================================================= */

.no-results {
    display: none;

    padding: 70px 20px;

    text-align: center;
}

.no-result-icon {
    width: 55px;
    height: 55px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--sp-gold);

    border:
        1px solid
        rgba(217,163,21,0.4);

    border-radius: 50%;
}

.no-results h3 {
    margin: 17px 0 7px;

    color: var(--sp-maroon);

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 20px;
}

.no-results p {
    margin: 0;

    color: #927c72;

    font-size: 12px;
}


/* =========================================================
   NOTE
========================================================= */

.pooja-note {
    padding: 0 20px 85px;

    background: var(--sp-cream);
}

.note-inner {
    width: min(900px, 94%);

    margin: auto;

    padding: 22px 28px;

    display: flex;
    align-items: center;

    gap: 20px;

    border:
        1px solid
        rgba(217,163,21,0.22);

    border-radius: 12px;

    background: rgba(255,255,255,0.55);
}

.note-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--sp-gold);

    border-radius: 50%;

    background: #fff8e9;

    font-size: 21px;
}

.note-inner span {
    display: block;

    color: #b47700;

    font-family: Arial, sans-serif;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 5px;
}

.note-inner p {
    margin: 0;

    color: #7d685f;

    font-family:
        "Noto Sans Tamil",
        Arial,
        sans-serif;

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================================
   PHOTO MODAL
========================================================= */

.photo-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;
}

.photo-modal.active {
    display: flex;
}

.photo-modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(20,2,2,0.86);

    backdrop-filter: blur(7px);
}

.photo-modal-content {
    position: relative;
    z-index: 2;

    width: min(500px, 94vw);

    padding: 20px;

    text-align: center;

    border:
        1px solid
        rgba(217,163,21,0.45);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #3b0707,
            #180202
        );

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);

    animation:
        modalIn 0.3s ease;
}

@keyframes modalIn {

    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

.photo-modal-content img {
    width: 100%;
    max-height: 65vh;

    object-fit: contain;

    border-radius: 10px;
}

.photo-modal-content h3 {
    margin: 17px 0 3px;

    color: #fff;

    font-family:
        "Noto Sans Tamil",
        sans-serif;

    font-size: 16px;
}

.photo-modal-close {
    position: absolute;

    top: -14px;
    right: -14px;

    width: 36px;
    height: 36px;

    border:
        1px solid
        rgba(217,163,21,0.6);

    border-radius: 50%;

    color: #fff;

    background: var(--sp-maroon);

    font-size: 22px;

    cursor: pointer;

    z-index: 3;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .special-pooja-hero {
        padding: 65px 17px;
    }

    .special-pooja-hero h1 {
        font-size: 28px;
    }

    .special-pooja-hero h1 span {
        display: none;
    }

    .pooja-filter-container {
        width: 100%;

        flex-direction: column;

        align-items: stretch;
    }

    .filter-heading {
        text-align: center;
    }

    .filter-box {
        min-width: 0;

        width: 100%;
    }

    .special-pooja-table-section {
        padding:
            20px 12px
            65px;
    }

    .table-container {
        width: 100%;
    }

    .table-top {
        padding: 23px 20px;
    }

}


/* =========================================================
   MOBILE TABLE → CARDS
========================================================= */

@media (max-width: 650px) {

    .pooja-table-wrapper {
        overflow: visible;
    }

    .special-pooja-table,
    .special-pooja-table tbody {
        display: block;

        width: 100%;
    }

    .special-pooja-table thead {
        display: none;
    }

    .special-pooja-table tr {
        position: relative;

        display: grid;

        grid-template-columns:
            65px 1fr 80px;

        gap: 13px;

        margin: 0 12px 15px;

        padding: 17px;

        border:
            1px solid
            rgba(90,8,8,0.09);

        border-radius: 13px;

        background: #fff;

        box-shadow:
            0 7px 22px rgba(80,30,0,0.06);
    }

    .special-pooja-table td {
        display: block;

        padding: 0;

        border: 0;
    }

    .row-number {
        display: none !important;
    }

    .month-cell {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .pooja-name-cell {
        grid-column: 2;
        grid-row: 1;
    }

    .sponsor-cell {
        grid-column: 2;
        grid-row: 2;
    }

    .photo-cell {
        grid-column: 3;
        grid-row: 1 / 3;

        display: flex !important;

        align-items: center;
        justify-content: center;
    }

    .month-badge {
        min-width: 0;

        width: 100%;

        padding: 9px 5px;

        font-size: 10px;
    }

    .pooja-name-cell strong {
        font-size: 13px;
    }

    .sponsor-cell strong {
        font-size: 10px;

        line-height: 1.6;
    }

    .sponsor-cell span {
        font-size: 8px;
    }

    .sponsor-photo-button {
        width: 58px;
        height: 58px;
    }

    .table-top {
        align-items: flex-end;
    }

    .table-top h2 {
        font-size: 21px;
    }

    .result-count strong {
        font-size: 21px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .special-pooja-hero h1 {
        font-size: 24px;
    }

    .filter-box {
        gap: 8px;

        padding: 8px;
    }

    .filter-icon {
        width: 37px;
        height: 37px;
    }

    .reset-filter {
        padding: 10px;
    }

    .special-pooja-table tr {
        grid-template-columns:
            58px 1fr 65px;

        padding: 13px;

        gap: 9px;
    }

    .sponsor-photo-button {
        width: 52px;
        height: 52px;
    }

    .note-inner {
        align-items: flex-start;

        padding: 18px;
    }

}