/* =========================================================
   TEMPLE POOJA ITEMS
   PREMIUM ROYAL HERITAGE DESIGN
========================================================= */

.pooja-page {

    --maroon: #671622;
    --maroon-dark: #38070e;
    --maroon-light: #861f31;

    --copper: #c75c27;
    --copper-dark: #963a17;

    --gold: #d99a22;
    --gold-light: #f2cb67;

    --cream: #f7ead8;
    --cream-dark: #ead5ba;

    --ivory: #fffaf2;
    --text: #35231d;
    --muted: #786257;

    min-height: 100vh;

    color: var(--text);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(217,154,34,.11),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #f8eddd,
            #ead7bc
        );

    overflow: hidden;
}


/* =========================================================
   HERO
========================================================= */

.pooja-hero {

    position: relative;

    min-height: 350px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 12%,
            rgba(242,203,103,.14),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #27050c 0%,
            #480c15 38%,
            #691622 65%,
            #33070e 100%
        );
}


.hero-pattern {

    position: absolute;

    inset: 0;

    opacity: .35;

    background:
        radial-gradient(
            circle at 15% 85%,
            rgba(199,92,39,.12),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(217,154,34,.10),
            transparent 25%
        );
}


.hero-inner {

    position: relative;

    z-index: 2;

    width: min(900px,92%);

    padding: 70px 20px 75px;
}


.hero-label {

    display: block;

    margin-bottom: 12px;

    color: var(--gold-light);

    font-family: Georgia,serif;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 6px;
}


.hero-symbol {

    margin-bottom: 7px;

    color: rgba(242,203,103,.75);

    font-size: 18px;
}


.pooja-hero h1 {

    margin: 0;

    color: #fff;

    font-family:
        "Noto Serif Tamil",
        "Noto Sans Tamil",
        "Nirmala UI",
        serif;

    font-size:
        clamp(42px,5vw,68px);

    font-weight: 800;

    line-height: 1.3;

    text-shadow:
        0 8px 30px
        rgba(0,0,0,.28);
}


.pooja-hero h1 span {

    display: block;

    margin-top: 7px;

    color:
        rgba(255,255,255,.68);

    font-family: Georgia,serif;

    font-size: 18px;

    font-weight: 400;

    letter-spacing: 1px;
}


.hero-line {

    position: relative;

    width: 72px;

    height: 3px;

    margin: 20px auto;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--copper),
            var(--gold-light),
            var(--copper)
        );
}


.hero-line::before,
.hero-line::after {

    content: "";

    position: absolute;

    top: 50%;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--gold-light);

    transform: translateY(-50%);
}


.hero-line::before {
    left: -15px;
}

.hero-line::after {
    right: -15px;
}


.pooja-hero p {

    max-width: 720px;

    margin: auto;

    color:
        rgba(255,255,255,.72);

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   CONTENT
========================================================= */

.pooja-content {

    padding:
        58px 4%
        95px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(217,154,34,.09),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #f7ead8,
            #ead6ba
        );
}


.content-container {

    width: min(1450px,100%);

    margin: auto;
}


/* =========================================================
   BACK
========================================================= */

.back-wrapper {

    margin-bottom: 42px;
}


.back-button {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding:
        8px 18px 8px 9px;

    border:
        1px solid
        rgba(103,22,34,.20);

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #721a2a,
            #39070e
        );

    color: #fff;

    text-decoration: none;

    font-size: 12px;

    box-shadow:
        0 10px 28px
        rgba(55,12,20,.16);

    transition: .3s ease;
}


.back-icon {

    width: 29px;
    height: 29px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold)
        );

    color: var(--maroon-dark);

    font-size: 16px;
}


.back-button:hover {

    transform: translateX(-5px);

    box-shadow:
        0 16px 35px
        rgba(55,12,20,.23);
}


/* =========================================================
   HEADING
========================================================= */

.section-heading {

    max-width: 850px;

    margin:
        0 auto
        44px;

    text-align: center;
}


.section-label {

    display: block;

    margin-bottom: 9px;

    color: var(--copper);

    font-family: Georgia,serif;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 5px;
}


.section-heading h2 {

    margin: 0;

    color: var(--maroon);

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size:
        clamp(34px,4vw,50px);

    font-weight: 800;

    line-height: 1.35;
}


.heading-decoration {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin: 14px auto 18px;
}


.heading-decoration span {

    width: 55px;
    height: 2px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold)
        );
}


.heading-decoration span:last-child {

    background:
        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );
}


.heading-decoration i {

    color: var(--gold);

    font-size: 13px;

    font-style: normal;
}


.section-heading p {

    max-width: 720px;

    margin: auto;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   FILTER
========================================================= */

.filter-area {

    display: flex;

    justify-content: flex-end;

    margin-bottom: 27px;
}


.filter-box {

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        6px 7px 6px 14px;

    border:
        1px solid
        rgba(103,22,34,.14);

    border-radius: 50px;

    background:
        rgba(255,250,242,.86);

    box-shadow:
        0 10px 28px
        rgba(55,12,20,.07);

    backdrop-filter: blur(12px);
}


.filter-icon {

    color: var(--gold);

    font-size: 14px;
}


.filter-box label {

    color: var(--maroon);

    font-size: 11px;

    font-weight: 800;
}


.filter-box select {

    min-width: 175px;

    padding:
        9px 16px;

    border:
        1px solid
        rgba(103,22,34,.18);

    border-radius: 50px;

    outline: none;

    cursor: pointer;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #701a2a,
            #39070e
        );

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   YEAR DROPDOWN OPTIONS VISIBILITY FIX
========================================================= */

.filter-box select option {

    color: #35231d !important;

    background: #fffaf2 !important;

    font-size: 13px;

    font-weight: 700;
}


.filter-box select option:checked {

    color: #ffffff !important;

    background: #701a2a !important;
}


.filter-box select:focus {

    border-color: var(--gold);

    box-shadow:
        0 0 0 3px
        rgba(217,154,34,.15);
}


/* =========================================================
   GRID
========================================================= */

.pooja-grid {

    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 24px;
}


/* =========================================================
   CARD
========================================================= */

.pooja-card {

    position: relative;

    min-width: 0;

    min-height: 535px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        rgba(103,22,34,.13);

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #f5e5d2
        );

    color: var(--text);

    text-decoration: none;

    box-shadow:
        0 18px 48px
        rgba(52,10,17,.10);

    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;
}


.pooja-card:hover {

    transform:
        translateY(-9px);

    border-color:
        rgba(217,154,34,.45);

    box-shadow:
        0 30px 75px
        rgba(52,10,17,.19);
}


.card-top-line {

    position: absolute;

    z-index: 10;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--maroon-dark),
            var(--maroon),
            var(--copper),
            var(--gold)
        );
}


/* Different card grading */

.pooja-card:nth-child(4n+2) {

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #f5e1d0,
            #e8c5a7
        );
}


.pooja-card:nth-child(4n+3) {

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #f5ecd4,
            #e6d3a8
        );
}


.pooja-card:nth-child(4n+4) {

    background:
        linear-gradient(
            145deg,
            #fffdf7,
            #edf0df,
            #dce4c9
        );
}


/* =========================================================
   IMAGE
========================================================= */

.card-image {

    position: relative;

    height: 225px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #4a0c15,
            #22050a
        );
}


.card-image img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .7s
        cubic-bezier(.2,.7,.2,1);
}


.pooja-card:hover
.card-image img {

    transform: scale(1.08);
}


.card-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 35%,
            rgba(30,4,10,.50)
        );

    pointer-events: none;
}


/* =========================================================
   IMAGE SHINE
========================================================= */

.image-shine {

    position: absolute;

    z-index: 5;

    top: 0;
    left: -120%;

    width: 65%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.22),
            transparent
        );

    transform: skewX(-18deg);

    transition:
        left .8s ease;

    pointer-events: none;
}


.pooja-card:hover .image-shine {

    left: 140%;
}


/* =========================================================
   YEAR
========================================================= */

.year-badge {

    position: absolute;

    z-index: 8;

    top: 14px;
    right: 14px;

    padding:
        7px 14px;

    border:
        1px solid
        rgba(244,207,106,.55);

    border-radius: 50px;

    background:
        rgba(55,7,15,.88);

    color: #fff;

    font-family: Georgia,serif;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    backdrop-filter: blur(8px);
}


/* =========================================================
   NUMBER
========================================================= */

.number-badge {

    position: absolute;

    z-index: 8;

    left: 16px;
    bottom: 15px;

    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(244,207,106,.45);

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(103,22,34,.95),
            rgba(55,7,15,.95)
        );

    color: var(--gold-light);

    font-family: Georgia,serif;

    font-size: 11px;

    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(0,0,0,.20);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.card-content {

    position: relative;

    z-index: 3;

    flex: 1;

    display: flex;

    flex-direction: column;

    padding:
        21px
        22px
        18px;
}


.card-label {

    display: block;

    margin-bottom: 8px;

    color: var(--copper);

    font-family: Georgia,serif;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 2.5px;
}


.card-content h3 {

    min-height: 65px;

    margin:
        0
        0
        10px;

    color: var(--maroon);

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size: 21px;

    font-weight: 800;

    line-height: 1.5;
}


.card-content p {

    margin: 0;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================================
   VIEW MORE
   FINAL BUTTON ALIGNMENT
========================================================= */

.view-more {

    position: relative;

    width: 100%;
    max-width: 100%;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;

    margin-top: auto;

    padding: 8px 8px 8px 18px;
    box-sizing: border-box;
    overflow: hidden;

    border: 1px solid rgba(216,154,36,.42);
    border-radius: 14px;

    color: #fff8e9;

    background: linear-gradient(
        135deg,
        #510811 0%,
        #701421 45%,
        #982a28 100%
    );

    box-shadow:
        0 10px 25px rgba(55,12,20,.18),
        inset 0 1px 0 rgba(255,255,255,.12);

    font-family: Georgia,"Noto Sans Tamil",sans-serif;
    font-size: 11px;
    font-weight: 800;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.view-more::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 80%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.20), transparent);
    transform: skewX(-22deg);
    transition: left .75s ease;
    pointer-events: none;
}

.view-more::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,211,107,.17), transparent 70%);
    pointer-events: none;
}

.view-more > span:first-child {
    position: relative;
    z-index: 3;
    flex: 1;
    min-width: 0;
    display: block;
    margin: 0;
    padding: 0;
    color: #fff8e9;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow {
    position: relative;
    z-index: 5;
    width: 43px;
    height: 43px;
    min-width: 43px;
    min-height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 0 0 12px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.40);
    border-radius: 11px;
    background: linear-gradient(145deg, #fff6bd 0%, #f5d36b 48%, #d99b1f 100%);
    color: #4b0710;
    font-family: Arial,sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0,0,0,.23), inset 0 1px 0 rgba(255,255,255,.80);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}

.arrow::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(75,7,16,.20);
    border-radius: 7px;
    pointer-events: none;
}

.pooja-card:hover .view-more {
    transform: translateY(-3px);
    border-color: rgba(245,211,107,.78);
    box-shadow:
        0 17px 34px rgba(55,12,20,.27),
        0 0 25px rgba(216,154,36,.10),
        inset 0 1px 0 rgba(255,255,255,.15);
}

.pooja-card:hover .view-more::before {
    left: 135%;
}

.pooja-card:hover .arrow {
    transform: translateX(6px) rotate(-3deg) scale(1.06);
    box-shadow:
        0 11px 24px rgba(75,7,16,.30),
        0 0 18px rgba(245,211,107,.25),
        inset 0 1px 0 rgba(255,255,255,.85);
}


/* =========================================================
   HIDDEN
========================================================= */

.pooja-card.is-hidden {

    display: none;
}


/* =========================================================
   NO RESULTS
========================================================= */

.no-results {

    display: none;

    grid-column: 1/-1;

    padding: 65px 25px;

    text-align: center;

    border:
        1px solid
        rgba(217,154,34,.30);

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #f2e1cb
        );

    box-shadow:
        0 18px 48px
        rgba(52,10,17,.10);
}


.no-results-icon {

    color: var(--gold);

    font-size: 34px;

    margin-bottom: 10px;
}


.no-results h3 {

    margin: 0 0 8px;

    color: var(--maroon);

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size: 22px;
}


.no-results p {

    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 48px;
}


.page-btn {

    min-height: 40px;

    padding:
        0 17px;

    border:
        1px solid
        rgba(103,22,34,.18);

    border-radius: 50px;

    background:
        rgba(255,250,242,.82);

    color: var(--maroon);

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition: .3s ease;
}


.page-btn:hover:not(:disabled) {

    background:
        linear-gradient(
            135deg,
            #681521,
            #39070e
        );

    color: #fff;

    border-color: var(--maroon);

    transform: translateY(-2px);
}


.page-btn:disabled {

    opacity: .35;

    cursor: not-allowed;
}


.page-numbers {

    display: flex;

    gap: 6px;
}


.page-number {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(217,154,34,.35);

    border-radius: 50%;

    background:
        rgba(255,250,242,.72);

    color: var(--maroon);

    font-family: Georgia,serif;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: .25s ease;
}


.page-number:hover {

    background:
        rgba(217,154,34,.15);

    transform:
        translateY(-2px);
}


.page-number.active {

    background:
        linear-gradient(
            135deg,
            #681521,
            #39070e
        );

    border-color: var(--maroon);

    color: #fff;

    box-shadow:
        0 7px 18px
        rgba(55,12,20,.20);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:1200px) {

    .pooja-grid {

        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

}


@media (max-width:900px) {

    .pooja-grid {

        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap: 20px;
    }

    .pooja-card {

        min-height: 520px;
    }

}


@media (max-width:650px) {

    .pooja-hero {

        min-height: 290px;
    }

    .hero-inner {

        padding:
            52px 18px 58px;
    }

    .hero-label {

        font-size: 8px;

        letter-spacing: 4px;
    }

    .pooja-hero h1 {

        font-size: 36px;
    }

    .pooja-hero h1 span {

        font-size: 14px;
    }

    .pooja-hero p {

        font-size: 12.5px;
    }

    .pooja-content {

        padding:
            43px 18px 70px;
    }

    .section-heading h2 {

        font-size: 31px;
    }

    .section-heading p {

        font-size: 13px;
    }

    .filter-area {

        justify-content: center;
    }

    .filter-box {

        width: 100%;

        justify-content:
            space-between;
    }

    .filter-box select {

        min-width: 140px;

        flex: 1;
    }

    .pooja-grid {

        grid-template-columns: 1fr;

        gap: 19px;
    }

    .pooja-card {

        min-height: 515px;

        border-radius: 20px;
    }

    .card-image {

        height: 220px;
    }

    .card-content h3 {

        min-height: auto;

        font-size: 21px;
    }

    .view-more {
        width: 100%;
        max-width: 100%;
        min-height: 55px;
        padding: 7px 7px 7px 15px;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        flex: 0 0 40px;
        margin: 0 0 0 10px;
        padding: 0;
        box-sizing: border-box;
    }

    .pagination {

        flex-wrap: wrap;
    }

}


@media (max-width:420px) {

    .pooja-hero h1 {

        font-size: 31px;
    }

    .section-heading h2 {

        font-size: 28px;
    }

    .card-image {

        height: 205px;
    }

    .card-content h3 {

        font-size: 20px;
    }

    .arrow {

        width: 36px;
        height: 36px;
    }

}