/* =========================================
   SHREE RAM HOSPITAL - NEWSPAPER PAGE
========================================= */

.newspaper-page {
    --news-red: #e31e24;
    --news-blue: #1f3c88;
    --news-dark: #10213c;
    --news-bg: #f4f6fa;
    background: var(--news-bg);
    color: #263449;
    font-family: "Poppins", Arial, sans-serif;
}

.newspaper-page *,
.newspaper-lightbox * {
    box-sizing: border-box;
}

/* HERO */

.newspaper-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 22px;
    overflow: hidden;
    background:
        linear-gradient(
            115deg,
            rgba(8, 23, 45, .96),
            rgba(31, 60, 136, .88)
        ),
        url("../images/newspaper/newspaper-banner.jpg")
        center / cover no-repeat;
    color: #fff;
    text-align: center;
}

.newspaper-hero::before {
    content: "NEWS";
    position: absolute;
    right: -20px;
    bottom: -65px;
    color: rgba(255, 255, 255, .045);
    font-size: clamp(100px, 20vw, 240px);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.newspaper-hero-content {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
}

.newspaper-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 30px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.newspaper-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.2;
}

.newspaper-hero-content > p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .87);
    font-size: 15px;
    line-height: 1.9;
}

.newspaper-hero-line {
    width: 75px;
    height: 4px;
    margin: 26px auto 0;
    border-radius: 5px;
    background: var(--news-red);
}

/* INTRODUCTION */

.newspaper-intro {
    padding: 65px 20px 25px;
    text-align: center;
}

.newspaper-section-label {
    color: var(--news-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.newspaper-intro h2 {
    margin: 12px 0;
    color: var(--news-dark);
    font-size: clamp(25px, 3.2vw, 36px);
    font-weight: 700;
}

.newspaper-intro > p {
    max-width: 720px;
    margin: 0 auto;
    color: #68758a;
    font-size: 14px;
    line-height: 1.9;
}

/* GALLERY CONTAINER */

.newspaper-gallery-section {
    padding: 25px 20px 75px;
}

.newspaper-gallery-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

/* FILTERS */

.newspaper-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}

.newspaper-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 19px;
    border: 1px solid #dfe5ef;
    border-radius: 30px;
    background: #fff;
    color: #45536a;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: .25s ease;
}

.newspaper-filter:hover,
.newspaper-filter.active {
    border-color: var(--news-red);
    background: var(--news-red);
    color: #fff;
}

/* RESULTS */

.newspaper-results-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    color: #6a7689;
    font-size: 13px;
}

.newspaper-results-info strong {
    color: var(--news-dark);
}

.newspaper-current-category {
    padding: 6px 12px;
    border-radius: 20px;
    background: #e7ecf8;
    color: var(--news-blue);
    font-size: 12px;
    font-weight: 600;
}

/* GRID */

.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* CARD */

.newspaper-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e7ebf2;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 25px rgba(18, 39, 73, .055);
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.newspaper-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(18, 39, 73, .12);
}

.newspaper-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #edf0f5;
}

.newspaper-image-button {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #edf0f5;
    cursor: zoom-in;
}

.newspaper-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    background: #f0f0ed;
    transition: transform .4s ease;
}

.newspaper-card:hover .newspaper-image-button img {
    transform: scale(1.035);
}

.newspaper-zoom-icon {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(10, 26, 50, .68);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: opacity .3s ease;
}

.newspaper-zoom-icon span {
    font-size: 35px;
}

.newspaper-image-button:hover .newspaper-zoom-icon,
.newspaper-image-button:focus-visible .newspaper-zoom-icon {
    opacity: 1;
}

.newspaper-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 7px 12px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--news-red);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.newspaper-image-missing {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8290a4;
}

.newspaper-image-missing span {
    font-size: 50px;
}

.newspaper-image-missing p {
    font-size: 12px;
}

/* CARD CONTENT */

.newspaper-card-content {
    padding: 21px 21px 18px;
}

.newspaper-publication {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--news-red);
    font-size: 12px;
    font-weight: 600;
}

.newspaper-publication-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff0f0;
    color: var(--news-red);
    font-size: 16px;
}

.newspaper-card-content h3 {
    margin: 0 0 12px;
    color: var(--news-dark);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.newspaper-description {
    margin: 0;
    color: #68758a;
    font-size: 12px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.newspaper-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #edf0f5;
}

.newspaper-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #788499;
    font-size: 11px;
}

.newspaper-view-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--news-blue);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.newspaper-view-link:hover {
    color: var(--news-red);
}

/* EMPTY AND ERROR STATES */

.newspaper-empty {
    padding: 65px 20px;
    border: 1px dashed #d8deea;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.newspaper-empty-icon {
    font-size: 52px;
}

.newspaper-empty h3 {
    margin: 15px 0 8px;
    color: var(--news-dark);
    font-size: 23px;
}

.newspaper-empty p {
    margin: 0;
    color: #748096;
    font-size: 13px;
    line-height: 1.8;
}

.newspaper-message {
    margin: 20px 0;
    padding: 15px 18px;
    border-radius: 7px;
    font-size: 13px;
}

.newspaper-error {
    border: 1px solid #f4c5c5;
    background: #fff0f0;
    color: #b42323;
}

/* PAGINATION */

.newspaper-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 45px;
}

.newspaper-page-link {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid #dfe5ef;
    border-radius: 6px;
    background: #fff;
    color: #34435c;
    font-size: 13px;
    text-decoration: none;
    transition: .2s ease;
}

.newspaper-page-link:hover,
.newspaper-page-link.active {
    border-color: var(--news-blue);
    background: var(--news-blue);
    color: #fff;
}

.newspaper-page-arrow {
    padding-right: 15px;
    padding-left: 15px;
}

/* CLOSING SECTION */

.newspaper-closing {
    padding: 52px 20px;
    background: var(--news-dark);
    color: #fff;
    text-align: center;
}

.newspaper-closing-inner {
    width: min(850px, 100%);
    margin: 0 auto;
}

.newspaper-closing-inner > span {
    color: #ff777b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.newspaper-closing h2 {
    margin: 15px 0;
    color: #fff;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.5;
}

.newspaper-closing p {
    margin: 0;
    color: #d1d8e5;
    font-size: 13px;
    line-height: 1.9;
}

/* LIGHTBOX */

body.newspaper-lightbox-open {
    overflow: hidden;
}

.newspaper-lightbox[hidden] {
    display: none !important;
}

.newspaper-lightbox {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 20px 25px;
    background: rgba(5, 12, 25, .94);
}

.newspaper-lightbox-close {
    position: absolute;
    top: 15px;
    right: 24px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

.newspaper-lightbox-close:hover {
    background: var(--news-red);
}

.newspaper-lightbox-content {
    display: flex;
    max-width: 1100px;
    width: 100%;
    max-height: 100%;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.newspaper-lightbox-content h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
}

.newspaper-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    object-fit: contain;
    background: #fff;
}

.newspaper-original-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 5px;
    background: var(--news-red);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.newspaper-original-link:hover {
    background: #bd151a;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .newspaper-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .newspaper-card-image {
        height: 260px;
    }
}

@media (max-width: 600px) {
    .newspaper-hero {
        min-height: 290px;
        padding: 55px 18px;
    }

    .newspaper-hero-content > p {
        font-size: 13px;
    }

    .newspaper-intro {
        padding-top: 45px;
    }

    .newspaper-gallery-section {
        padding: 20px 14px 50px;
    }

    .newspaper-filter-bar {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 25px;
    }

    .newspaper-filter {
        min-height: 38px;
        padding: 8px 13px;
        font-size: 11px;
    }

    .newspaper-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .newspaper-card-image {
        height: 300px;
    }

    .newspaper-card-content {
        padding: 18px;
    }

    .newspaper-card-content h3 {
        font-size: 16px;
    }

    .newspaper-results-info {
        font-size: 11px;
    }

    .newspaper-pagination {
        gap: 5px;
    }

    .newspaper-page-link {
        min-width: 36px;
        min-height: 38px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .newspaper-page-arrow {
        padding-right: 10px;
        padding-left: 10px;
    }
}