/* ============================================================
       NEWS PAGES — NAMESPACED STYLES
       All selectors are prefixed to avoid conflicts with homepage.
       ============================================================ */

/* ========== INTERNAL PAGE NAV OVERRIDE ========== */
/* Force nav to appear in scrolled/white state on internal pages */
.news-page .main-nav,
.news-detail .main-nav {
    margin-top: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08) !important;
}

.news-page .nav-brand-text,
.news-page .nav-link-custom,
.news-detail .nav-brand-text,
.news-detail .nav-link-custom {
    color: var(--dark-text) !important;
}

.news-page .nav-link-custom:hover,
.news-detail .nav-link-custom:hover {
    color: var(--secondary-blue) !important;
}

.news-page .nav-link-custom::after,
.news-detail .nav-link-custom::after {
    background: var(--secondary-blue) !important;
}

.news-page .nav-apply-btn,
.news-detail .nav-apply-btn {
    background: var(--accent-gold) !important;
    color: var(--deep-navy) !important;
    border-color: var(--accent-gold) !important;
}

.news-page .nav-apply-btn:hover,
.news-detail .nav-apply-btn:hover {
    background: #c49a24 !important;
    border-color: #c49a24 !important;
}

.news-page .nav-search-btn,
.news-detail .nav-search-btn {
    color: var(--muted-text) !important;
}

.news-page .nav-logo,
.news-detail .nav-logo {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
}

.news-page .nav-inner,
.news-detail .nav-inner {
    height: 72px !important;
}

/* ========== BREADCRUMB ========== */
.news-breadcrumb {
    margin-bottom: 1.5rem;
}

.news-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.82rem;
}

.news-breadcrumb li {
    color: rgba(255, 255, 255, 0.5);
}

.news-breadcrumb li a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s;
}

.news-breadcrumb li a:hover {
    color: var(--accent-gold);
}

.news-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Dark variant for detail page */
.news-detail .news-breadcrumb li {
    color: var(--muted-text);
}

.news-detail .news-breadcrumb li a {
    color: var(--muted-text);
}

.news-detail .news-breadcrumb li a:hover {
    color: var(--secondary-blue);
}

.news-detail .news-breadcrumb li:not(:last-child)::after {
    color: var(--border-light);
}

/* ========== NEWS PAGE HERO ========== */
.news-page-hero {
    position: relative;
    height: 380px;
    overflow: hidden;
    margin-top: 0;
}

.news-page-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 0, 0, 0.78) 0%,
        rgba(75, 0, 0, 0.88) 45%,
        rgba(35, 0, 0, 0.97) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
    /* account for fixed nav */
}

.news-page-hero-overlay .section-label {
    color: var(--accent-gold);
}

.news-page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.news-detail-page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.news-page-hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 550px;
    line-height: 1.8;
}

/* .news-detail-page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--deep-navy);
    margin-bottom: 1rem;
    line-height: 1.15;
} */

.news-detail-page-hero-desc {
    font-size: 1.05rem;
    color: var(--white);
    /* max-width: 550px; */
    line-height: 1.8;
}

@media (max-width: 767px) {
    .news-page-hero {
        height: 70vh;
    }

    .news-page-hero-overlay {
        padding-top: 60px;
    }
}

/* ========== NEWS LISTING ========== */
.news-listing {
    padding: 4rem 0 5rem;
    background: var(--white);
}

/* Top Bar */
.news-listing-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-listing-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin: 0;
}

.news-listing-count {
    font-size: 0.82rem;
    color: var(--muted-text);
    display: block;
    margin-top: 0.25rem;
}

.news-search-box {
    position: relative;
    width: 280px;
}

.news-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-text);
    font-size: 0.85rem;
}

.news-search-box input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1.5px solid var(--border-light);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--dark-text);
    background: var(--light-bg);
    outline: none;
    transition:
        border-color 0.3s,
        background 0.3s;
}

.news-search-box input:focus {
    border-color: var(--secondary-blue);
    background: var(--white);
}

.news-search-box input::placeholder {
    color: var(--muted-text);
}

@media (max-width: 575px) {
    .news-search-box {
        width: 100%;
    }
}

/* Category Filter */
.news-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.news-filter-btn {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.45rem 1.2rem;
    border: 1.5px solid var(--border-light);
    border-radius: 3px;
    background: transparent;
    color: var(--muted-text);
    cursor: pointer;
    transition: all 0.3s;
}

.news-filter-btn:hover {
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

.news-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Listing Layout: Main + Sidebar */
.news-listing-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 991px) {
    .news-listing-body {
        grid-template-columns: 1fr;
    }
}

/* ========== FEATURED NEWS ========== */
.news-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
}

.news-featured-image {
    border-radius: 4px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-featured:hover .news-featured-image img {
    transform: scale(1.03);
}

.news-featured-content {
    padding: 1rem 0;
}

.news-featured-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.news-featured-title a {
    color: var(--dark-text);
    transition: color 0.3s;
}

.news-featured-title a:hover {
    color: var(--secondary-blue);
}

.news-featured-excerpt {
    font-size: 0.95rem;
    color: var(--muted-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .news-featured {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-featured-image img {
        height: 250px;
    }

    .news-featured-title {
        font-size: 1.3rem;
    }
}

/* ========== NEWS CARD (shared between listing & detail) ========== */
.news-card-category {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--deep-navy);
    display: inline-block;
    margin-right: 1rem;
}

.news-detail-card-category {
    /* position: absolute; */
    top: 1rem;
    left: 1rem;
    background: var(--accent-gold);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--deep-navy);
    display: inline-block;
    margin-right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    z-index: 1;
}

.news-card-date {
    font-size: 0.78rem;
    color: var(--muted-text);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-card-date i {
    font-size: 0.72rem;
}

.news-card-readmore {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition:
        color 0.3s,
        gap 0.3s;
}

.news-card-readmore:hover {
    color: var(--primary);
    gap: 0.6rem;
}

.news-card-readmore .news-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.news-card-readmore:hover .news-arrow {
    transform: translateX(3px);
}

/* ========== NEWS GRID ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== NEWS CARD ITEM ========== */
.news-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.news-card-image {
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-category-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: var(--accent-gold);
    color: var(--deep-navy);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 2px;
    z-index: 1;
}

.news-card-content {
    padding: 1.25rem 1.35rem 1.5rem;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: var(--dark-text);
    transition: color 0.3s;
}

.news-card-title a:hover {
    color: var(--secondary-blue);
}

.news-card-excerpt {
    font-size: 0.85rem;
    color: var(--muted-text);
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== PAGINATION ========== */
.news-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.news-pagination ul {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-text);
    border: 1.5px solid var(--border-light);
    border-radius: 3px;
    transition: all 0.3s;
}

.news-pagination li a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--light-bg);
}

.news-pagination li.active a {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.news-pagination li.disabled a {
    opacity: 0.4;
    pointer-events: none;
}

/* ========== SIDEBAR ========== */
.news-sidebar-section {
    margin-bottom: 2.5rem;
}

.news-sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-gold);
    position: relative;
}

/* Sidebar Categories */
.news-sidebar-categories {
    padding: 0;
    margin: 0;
    list-style: none;
}

.news-sidebar-categories li {
    margin-bottom: 0.5rem;
}

.news-sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--dark-text);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    transition:
        color 0.3s,
        padding-left 0.3s;
}

.news-sidebar-categories a:hover {
    color: var(--secondary-blue);
    padding-left: 0.3rem;
}

.news-sidebar-categories a span {
    font-size: 0.75rem;
    color: var(--muted-text);
    background: var(--light-bg);
    padding: 0.15rem 0.55rem;
    border-radius: 10px;
}

/* Sidebar Popular News */
.news-sidebar-popular {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-popular-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: transform 0.3s;
}

.news-popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-popular-item:hover {
    transform: translateX(3px);
}

.news-popular-item img {
    width: 80px;
    height: 55px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.news-popular-item h5 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    color: var(--dark-text);
    transition: color 0.3s;
}

.news-popular-item:hover h5 {
    color: var(--secondary-blue);
}

.news-popular-item span {
    font-size: 0.72rem;
    color: var(--muted-text);
}

/* Sidebar Share Buttons (detail page) */
.news-sidebar-share {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-sidebar-share-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    background: var(--light-bg);
    border-radius: 3px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dark-text);
    transition: all 0.3s;
}

.news-sidebar-share-btn i {
    width: 18px;
    text-align: center;
}

.news-sidebar-share-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========== NEWS DETAIL PAGE ========== */

/* Detail Hero */
.news-detail-hero {
    padding: 6rem 0 2rem;
    background: var(--white);
    margin-top: 72px;
    /* offset for fixed nav */
}

.news-detail-hero-content {
    max-width: 900px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.news-detail-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.news-detail-subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
    line-height: 1.8;
    max-width: 750px;
}

/* Featured Image */
.news-detail-featured-image {
    margin: 3rem auto 0;
    max-width: 1300px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.news-detail-featured-image img {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 560px;
    object-fit: cover;
}

/* Detail Body */
.news-detail-body {
    padding: 0 0 5rem;
    background: var(--white);
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3.5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .news-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Article Content */
.news-detail-article {
    max-width: 100%;
}

.news-article-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--dark-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.news-detail-article p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.news-detail-article h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-detail-article h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

/* Article List */
.news-article-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.news-article-list li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-text);
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.news-article-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.news-article-list li strong {
    font-weight: 700;
    color: var(--primary);
}

/* Article Blockquote */
.news-article-blockquote {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    background: var(--light-bg);
    border-left: 4px solid var(--accent-gold);
    border-radius: 0 4px 4px 0;
}

.news-article-blockquote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.news-article-blockquote cite {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
    color: var(--muted-text);
}

/* Article Image */
.news-article-image {
    margin: 2.5rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.news-article-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.4s;
}

.news-article-image:hover img {
    transform: scale(1.01);
}

.news-article-caption {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--muted-text);
    font-style: italic;
    line-height: 1.5;
}

/* Article Gallery */
.news-article-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 2.5rem 0;
}

.news-gallery-item {
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.news-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
    cursor: zoom-in;
}

.news-gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 575px) {
    .news-article-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .news-gallery-item img {
        height: 140px;
    }
}

/* Article Footer */
.news-article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Tags */
.news-article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-article-tags-label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-right: 0.25rem;
}

.news-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-text);
    padding: 0.3rem 0.85rem;
    background: var(--light-bg);
    border-radius: 20px;
    transition: all 0.3s;
}

.news-tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* Share */
.news-article-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-article-share-label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-right: 0.25rem;
}

.news-share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--muted-text);
    font-size: 0.82rem;
    transition: all 0.3s;
}

.news-share-btn:hover {
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
    background: var(--light-bg);
}

/* Back to News Link */
.news-back-link {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.news-back-link a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted-text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition:
        color 0.3s,
        gap 0.3s;
}

.news-back-link a:hover {
    color: var(--primary);
    gap: 0.7rem;
}

/* Related News Section */
.news-detail-related {
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.news-detail-related-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 2rem;
}

/* ========== NEWS CARD HIDE STATE (for filtering) ========== */
.news-card.hidden-by-filter {
    display: none;
}

.news-featured.hidden-by-filter {
    display: none;
}

/* ========== NO RESULTS MESSAGE ========== */
.news-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted-text);
    font-size: 1.05rem;
    display: none;
}

.news-no-results.visible {
    display: block;
}

.news-no-results i {
    font-size: 2.5rem;
    color: var(--border-light);
    display: block;
    margin-bottom: 1rem;
}

/* ========== NEWS CARD AUTHOR ========== */
.news-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.news-card-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid var(--border-light);
}
.news-card-author-name {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.2;
}
.news-card-author-role {
    font-size: 0.68rem;
    color: var(--muted-text);
    font-weight: 400;
    display: block;
}

/* Featured card author (slightly larger) */
.news-featured .news-card-author-avatar {
    width: 30px;
    height: 30px;
}
.news-featured .news-card-author-name {
    font-size: 0.82rem;
}

/* ========== SKELETON LOADING CARDS ========== */

/* Shimmer animation */
@keyframes news-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Base shimmer element */
.news-skeleton-line {
    background: linear-gradient(90deg, #e2e8f0 25%, #f0f3f7 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: news-shimmer 1.5s ease-in-out infinite;
    border-radius: 3px;
    display: block;
}

/* ===== REGULAR CARD SKELETON ===== */
.news-card-skeleton {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.news-card-skeleton-image {
    width: 100%;
    height: 210px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f0f3f7 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: news-shimmer 1.5s ease-in-out infinite;
}

.news-card-skeleton-content {
    padding: 1.25rem 1.35rem 1.5rem;
}

/* Date line */
.news-card-skeleton-date {
    height: 10px;
    width: 35%;
    margin-bottom: 0.85rem;
}

/* Author row */
.news-card-skeleton-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.news-card-skeleton-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e2e8f0 25%, #f0f3f7 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: news-shimmer 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.news-card-skeleton-author-name {
    height: 10px;
    width: 45%;
}

/* Title lines */
.news-card-skeleton-title-1 {
    height: 14px;
    width: 85%;
    margin-bottom: 0.45rem;
}

.news-card-skeleton-title-2 {
    height: 14px;
    width: 60%;
    margin-bottom: 0.6rem;
}

/* Excerpt lines */
.news-card-skeleton-excerpt-1 {
    height: 10px;
    width: 100%;
    margin-bottom: 0.4rem;
}

.news-card-skeleton-excerpt-2 {
    height: 10px;
    width: 70%;
    margin-bottom: 1rem;
}

/* Read more line */
.news-card-skeleton-readmore {
    height: 10px;
    width: 25%;
}

/* ===== FEATURED CARD SKELETON ===== */
.news-featured-skeleton {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
}

.news-featured-skeleton-image {
    width: 100%;
    height: 380px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f0f3f7 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: news-shimmer 1.5s ease-in-out infinite;
}

.news-featured-skeleton-content {
    padding: 1rem 0;
}

/* Featured meta line (category + date) */
.news-featured-skeleton-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-featured-skeleton-category {
    height: 12px;
    width: 60px;
}

.news-featured-skeleton-date {
    height: 10px;
    width: 90px;
}

/* Featured author */
.news-featured-skeleton-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.news-featured-skeleton-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e2e8f0 25%, #f0f3f7 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: news-shimmer 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.news-featured-skeleton-author-name {
    height: 12px;
    width: 50%;
}

/* Featured title lines */
.news-featured-skeleton-title-1 {
    height: 22px;
    width: 90%;
    margin-bottom: 0.5rem;
}

.news-featured-skeleton-title-2 {
    height: 22px;
    width: 70%;
    margin-bottom: 1rem;
}

/* Featured excerpt lines */
.news-featured-skeleton-excerpt-1 {
    height: 11px;
    width: 100%;
    margin-bottom: 0.4rem;
}

.news-featured-skeleton-excerpt-2 {
    height: 11px;
    width: 100%;
    margin-bottom: 0.4rem;
}

.news-featured-skeleton-excerpt-3 {
    height: 11px;
    width: 55%;
    margin-bottom: 1.5rem;
}

/* Featured read more */
.news-featured-skeleton-readmore {
    height: 12px;
    width: 80px;
}

/* ===== RESPONSIVE — SKELETON ===== */
@media (max-width: 767px) {
    .news-featured-skeleton {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .news-featured-skeleton-image {
        height: 250px;
    }
    .news-featured-skeleton-title-1,
    .news-featured-skeleton-title-2 {
        height: 18px;
    }
}

/* ========== HERO AUTHOR (detail page) ========== */
.news-hero-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.news-hero-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}
.news-hero-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.news-hero-author-name {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--deep-navy);
}
.news-hero-author-meta {
    font-size: 0.78rem;
    color: var(--deep-navy);
}

@media (max-width: 767px) {
    .news-hero-author {
        flex-wrap: wrap;
    }
    .news-hero-author-avatar {
        width: 36px;
        height: 36px;
    }
    .news-hero-author-name {
        font-size: 0.82rem;
    }
}

/* ========== DETAIL AUTHOR BLOCK ========== */
.news-detail-author {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 3rem 0 0;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 4px;
    border-left: 4px solid var(--accent-gold);
}
.news-detail-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.news-detail-author-info {
    flex: 1;
}
.news-detail-author-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.2rem;
}
.news-detail-author-role {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--secondary-blue);
    display: block;
    margin-bottom: 0.75rem;
}
.news-detail-author-bio {
    font-size: 0.88rem;
    color: var(--muted-text);
    line-height: 1.75;
    margin-bottom: 0.85rem;
}
.news-detail-author-social {
    display: flex;
    gap: 0.5rem;
}
.news-detail-author-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--muted-text);
    font-size: 0.78rem;
    transition: all 0.3s;
}
.news-detail-author-social a:hover {
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
    background: var(--white);
}

@media (max-width: 575px) {
    .news-detail-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .news-detail-author-social {
        justify-content: center;
    }
}

/* ========== DETAIL IMAGE GALLERY ========== */
.news-detail-gallery {
    display: grid;
    gap: 0.75rem;
    margin: 2.5rem 0;
}

/* Gallery item */
.news-detail-gallery-item {
    position: relative;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    cursor: zoom-in;
}
.news-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-detail-gallery-item:hover img {
    transform: scale(1.05);
}

/* Hover overlay */
.news-detail-gallery-hover {
    position: absolute;
    inset: 0;
    background: rgba(7, 29, 43, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--white);
    font-size: 1.3rem;
}
.news-detail-gallery-item:hover .news-detail-gallery-hover {
    opacity: 1;
}

/* ---- Layout by image count (data-count) ---- */

/* 5 images: row1 = 3 items, row2 = 2 items (left-aligned) */
.news-detail-gallery[data-count="5"] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
}
.news-detail-gallery[data-count="5"] .news-detail-gallery-item img {
    height: 200px;
}
.news-detail-gallery[data-count="5"]
    .news-detail-gallery-item:nth-child(n + 4)
    img {
    height: 200px;
}

/* 4 images: 2x2 grid */
.news-detail-gallery[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
}
.news-detail-gallery[data-count="4"] .news-detail-gallery-item img {
    height: 240px;
}

/* 3 images: row1 = 1 large (full width), row2 = 2 smaller */
.news-detail-gallery[data-count="3"] {
    grid-template-columns: repeat(2, 1fr);
}
.news-detail-gallery[data-count="3"] .news-detail-gallery-item:first-child {
    grid-column: 1 / -1;
}
.news-detail-gallery[data-count="3"] .news-detail-gallery-item:first-child img {
    height: 300px;
}
.news-detail-gallery[data-count="3"]
    .news-detail-gallery-item:not(:first-child)
    img {
    height: 200px;
}

/* 2 images: side by side */
.news-detail-gallery[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}
.news-detail-gallery[data-count="2"] .news-detail-gallery-item img {
    height: 280px;
}

/* 1 image: full width */
.news-detail-gallery[data-count="1"] {
    grid-template-columns: 1fr;
}
.news-detail-gallery[data-count="1"] .news-detail-gallery-item img {
    height: auto;
    max-height: 450px;
}

/* Gallery responsive */
@media (max-width: 767px) {
    .news-detail-gallery[data-count="5"],
    .news-detail-gallery[data-count="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-detail-gallery[data-count="5"] .news-detail-gallery-item img,
    .news-detail-gallery[data-count="4"] .news-detail-gallery-item img {
        height: 180px;
    }
    .news-detail-gallery[data-count="3"]
        .news-detail-gallery-item:first-child
        img {
        height: 220px;
    }
    .news-detail-gallery[data-count="3"]
        .news-detail-gallery-item:not(:first-child)
        img {
        height: 180px;
    }
    .news-detail-gallery[data-count="2"] .news-detail-gallery-item img {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .news-detail-gallery[data-count="5"],
    .news-detail-gallery[data-count="4"],
    .news-detail-gallery[data-count="3"] {
        grid-template-columns: 1fr;
    }
    .news-detail-gallery[data-count="3"] .news-detail-gallery-item:first-child {
        grid-column: auto;
    }
    .news-detail-gallery .news-detail-gallery-item img {
        height: 200px !important;
    }
}
