﻿

/* =========================================
   TEMPLE NEWS LISTING
========================================= */

.news-listing-heading {
    padding: 60px 0 50px;
    background: radial-gradient(circle at top right, rgba(212,167,44,.12), transparent 38%), var(--temple-paper);
    border-bottom: 1px solid rgba(111,23,23,.1);
}

.news-listing-heading-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.news-listing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #a66a19;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.news-listing-heading h1 {
    margin: 0;
    color: var(--temple-maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
}

    .news-listing-heading h1 span {
        color: var(--temple-saffron);
    }

.news-listing-heading-line {
    width: 90px;
    height: 3px;
    margin: 18px auto 22px;
    border-radius: 10px;
    background: linear-gradient(90deg, #e5b957, var(--temple-maroon), #e5b957);
}

.news-listing-heading p {
    max-width: 680px;
    margin: auto;
    color: #76665a;
    font-size: 1rem;
    line-height: 1.85;
}

/* Sections */

.news-pinned-section,
.news-listing-section {
    padding: 55px 0;
}

.news-pinned-section {
    background: #fffaf0;
    border-bottom: 1px solid rgba(111,23,23,.08);
}

.news-listing-section {
    background: #fffdf9;
}

.news-listing-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.news-listing-section-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    background: var(--temple-maroon);
    font-size: 1.1rem;
}

.news-listing-section-title h2 {
    margin: 0 0 5px;
    color: var(--temple-maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 700;
}

.news-listing-section-title p {
    margin: 0;
    color: #76665a;
    font-size: .9rem;
}

/* Cards */

.news-listing-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(111,23,23,.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(67,13,13,.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .news-listing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 35px rgba(67,13,13,.12);
    }

.news-listing-image-wrapper {
    position: relative;
    height: 235px;
    overflow: hidden;
    background: #f3e7d1;
}

.news-listing-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.news-listing-card:hover .news-listing-image {
    transform: scale(1.05);
}

.news-listing-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: var(--temple-maroon);
    text-align: center;
    background: radial-gradient(circle, #fff9ed, #f3e4c8);
}

    .news-listing-placeholder i {
        color: #bd7b19;
        font-size: 2.8rem;
    }

    .news-listing-placeholder span {
        font-family: Georgia, "Times New Roman", serif;
        font-weight: 700;
    }

.news-listing-category,
.news-listing-pinned {
    position: absolute;
    top: 15px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 25px;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}

.news-listing-category {
    left: 15px;
    border: 1px solid rgba(242,212,119,.65);
    background: var(--temple-maroon);
}

.news-listing-pinned {
    right: 15px;
    background: #a66a19;
}

.news-listing-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.news-listing-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: #9b6b24;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.news-listing-card-body h3 {
    margin: 0 0 12px;
    color: var(--temple-maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.news-listing-card-body p {
    margin: 0 0 22px;
    color: #6d6056;
    font-size: .9rem;
    line-height: 1.8;
}

.news-listing-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: var(--temple-maroon);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}

    .news-listing-read-more:hover {
        gap: 15px;
        color: var(--temple-saffron);
    }

/* Results and pagination */

.news-listing-results {
    margin: -10px 0 24px;
    color: #76665a;
    font-size: .85rem;
}

.news-listing-pagination {
    margin-top: 42px;
}

    .news-listing-pagination .pagination {
        gap: 6px;
    }

    .news-listing-pagination .page-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 42px;
        min-height: 42px;
        border: 1px solid rgba(111,23,23,.15);
        border-radius: 7px !important;
        color: var(--temple-maroon);
        background: #fff;
        font-size: .88rem;
        font-weight: 600;
        box-shadow: none;
    }

        .news-listing-pagination .page-link:hover {
            border-color: var(--temple-maroon);
            color: #fff;
            background: var(--temple-maroon);
        }

    .news-listing-pagination .page-item.active .page-link {
        border-color: var(--temple-maroon);
        color: #fff;
        background: var(--temple-maroon);
    }

    .news-listing-pagination .page-item.disabled .page-link {
        color: #b6aaa0;
        background: #f7f3ed;
        pointer-events: none;
    }

.news-listing-page-info {
    margin: 14px 0 0;
    color: #76665a;
    font-size: .85rem;
    text-align: center;
}

/* Empty state */

.news-listing-empty {
    max-width: 650px;
    margin: 0 auto;
    padding: 50px 25px;
    border: 1px solid rgba(111,23,23,.12);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

    .news-listing-empty > i {
        margin-bottom: 18px;
        color: #bd7b19;
        font-size: 2.8rem;
    }

    .news-listing-empty h3 {
        margin-bottom: 10px;
        color: var(--temple-maroon);
        font-family: Georgia, "Times New Roman", serif;
        font-weight: 700;
    }

    .news-listing-empty p {
        margin-bottom: 22px;
        color: #76665a;
        line-height: 1.8;
    }

/* Responsive */

@media (max-width: 767.98px) {
    .news-listing-heading {
        padding: 42px 0 36px;
    }

    .news-pinned-section,
    .news-listing-section {
        padding: 38px 0;
    }

    .news-listing-heading p {
        font-size: .93rem;
    }

    .news-listing-section-title h2 {
        font-size: 1.4rem;
    }

    .news-listing-image-wrapper {
        height: 220px;
    }

    .news-listing-card-body {
        padding: 21px;
    }

    .news-listing-pagination .page-link {
        min-width: 38px;
        min-height: 38px;
        padding: 8px 10px;
        font-size: .82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-listing-card,
    .news-listing-image,
    .news-listing-read-more {
        transition: none;
    }

        .news-listing-card:hover,
        .news-listing-card:hover .news-listing-image {
            transform: none;
        }
}



/* =========================================
   TEMPLE NEWS DETAILS
========================================= */

.news-details-heading {
    padding: 90px 0 48px; /* Increased top padding from 55px to 90px to prevent top edge clipping */
    background: radial-gradient(circle at top right, rgba(212, 167, 44, .12), transparent 38%), var(--temple-paper);
    border-bottom: 1px solid rgba(111, 23, 23, .1);
}

.news-details-heading-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.news-details-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #a66a19;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.news-details-heading h1 {
    margin: 0;
    color: var(--temple-maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
}

    .news-details-heading h1 span {
        color: var(--temple-saffron);
    }

.news-details-heading-line {
    width: 85px;
    height: 3px;
    margin: 18px auto;
    border-radius: 10px;
    background: linear-gradient(90deg, #e5b957, var(--temple-maroon), #e5b957);
}

.news-details-heading p {
    max-width: 680px;
    margin: 0 auto;
    color: #76665a;
    font-size: 1rem;
    line-height: 1.8;
}

/* Main section */

.news-details-section {
    padding: 55px 0 80px;
    background: #fffdf9;
}

.news-details-card,
.news-details-sidebar {
    overflow: hidden;
    border: 1px solid rgba(111, 23, 23, .12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(67, 13, 13, .06);
}

.news-details-card {
    padding: 28px;
}

.news-details-breadcrumb {
    margin-bottom: 22px;
}

    .news-details-breadcrumb .breadcrumb {
        margin-bottom: 0;
        font-size: .84rem;
    }

    .news-details-breadcrumb a {
        color: var(--temple-maroon);
        text-decoration: none;
    }

        .news-details-breadcrumb a:hover {
            color: var(--temple-saffron);
        }

    .news-details-breadcrumb .breadcrumb-item.active {
        color: #817267;
    }

/* Article metadata */

.news-details-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 18px;
    color: #8a6a43;
    font-size: .78rem;
}

.news-details-category,
.news-details-date,
.news-details-important {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.news-details-category {
    color: var(--temple-maroon);
    font-weight: 700;
}

.news-details-important {
    color: #a66a19;
    font-weight: 700;
}

.news-details-title {
    margin: 0 0 24px;
    color: var(--temple-maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Featured image */

/*.news-details-image-wrapper {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 10px;
    background: #f3e7d1;
}*/

.news-details-image-wrapper {
    width: 100%;
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 10px;
    background: #f3e7d1;
}

/*.news-details-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}*/

.news-details-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
}
/* Mobile responsiveness */
@media (max-width: 767.98px) {
    .news-details-image-wrapper {
        margin-bottom: 22px;
    }

    .news-details-image {
        width: 100%;
        height: auto;
        max-height: none;
    }
}

/* Article content */

.news-details-content {
    color: #55483e;
    font-size: 1rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.news-article-text {
    white-space: pre-line;
}

/* Article footer */

.news-details-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid rgba(111, 23, 23, .12);
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--temple-maroon);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

    .news-back-link:hover {
        color: var(--temple-saffron);
    }

.news-footer-blessing {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a66a19;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

/* =========================================
   RECENT UPDATES SIDEBAR
========================================= */

.news-details-sidebar {
    position: sticky;
    top: 25px;
}

.news-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 23px;
    border-bottom: 1px solid rgba(111, 23, 23, .1);
    background: #fffaf0;
}

.news-sidebar-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: var(--temple-maroon);
    font-size: 1.1rem;
}

.news-sidebar-heading h3 {
    margin: 0 0 4px;
    color: var(--temple-maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.news-sidebar-heading p {
    margin: 0;
    color: #847468;
    font-size: .82rem;
}

.news-sidebar-list {
    padding: 0 20px;
}

.news-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(111, 23, 23, .09);
    color: inherit;
    text-decoration: none;
}

    .news-sidebar-item:last-child {
        border-bottom: 0;
    }

.news-sidebar-image,
.news-sidebar-placeholder {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    background: #f3e7d1;
}

.news-sidebar-image {
    object-fit: cover;
}

.news-sidebar-placeholder {
    color: var(--temple-maroon);
    font-size: 1.35rem;
}

.news-sidebar-item-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.news-sidebar-category {
    color: #a66a19;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.news-sidebar-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--temple-maroon);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-sidebar-date {
    color: #85776b;
    font-size: .75rem;
}

.news-sidebar-arrow {
    flex-shrink: 0;
    color: #b28a50;
    font-size: .75rem;
    transition: transform .2s ease;
}

.news-sidebar-item:hover .news-sidebar-title {
    color: var(--temple-saffron);
}

.news-sidebar-item:hover .news-sidebar-arrow {
    transform: translateX(4px);
}

.news-sidebar-empty {
    margin: 0;
    padding: 22px;
    color: #76665a;
    font-size: .9rem;
    line-height: 1.7;
}

.news-sidebar-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 20px 20px;
    padding: 12px 16px;
    border: 1px solid var(--temple-maroon);
    border-radius: 7px;
    color: var(--temple-maroon);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

    .news-sidebar-all-link:hover {
        color: #fff;
        background: var(--temple-maroon);
    }

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991.98px) {
    .news-details-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .news-details-heading {
        padding: 42px 0 36px;
    }

        .news-details-heading p {
            font-size: .93rem;
        }

    .news-details-section {
        padding: 35px 0 55px;
    }

    .news-details-card {
        padding: 20px;
    }

    .news-details-meta {
        gap: 10px 14px;
    }

    .news-details-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-sidebar-arrow,
    .news-sidebar-all-link {
        transition: none;
    }
}
