/* ═══════════════════════════════════════════════════
   DRASHTIKON NEWS — CLIENT STYLESHEET
   Fonts: Playfair Display (headlines) · Source Serif 4 (body) · Barlow Condensed (UI)
═══════════════════════════════════════════════════ */

/* ── CSS Variables ───────────────────────────────── */
:root {
    --dn-red: #cf080d;
    --dn-red-dark: #a00007;
    --dn-blue: #1a2c45;
    --dn-blue-dark: #0f1e30;
    --dn-yellow: #feed00;
    --dn-black: #0d0d0d;
    --dn-dark: #1a1a1a;
    --dn-text: #1c1c1c;
    --dn-muted: #6b6b6b;
    --dn-border: #e8e8e8;
    --dn-bg: #f7f5f2;
    --dn-white: #ffffff;
    --dn-shadow: 0 2px 12px rgba(0, 0, 0, .07);
    --dn-shadow-lg: 0 8px 32px rgba(0, 0, 0, .13);
    --dn-font-display: 'Playfair Display', Georgia, serif;
    --dn-font-body: 'Source Serif 4', Georgia, serif;
    --dn-font-ui: 'Barlow Condensed', sans-serif;
    --dn-radius: 8px;
    --dn-container: 1200px;
}

/* ── Reset & Base ────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--dn-font-body);
    background: var(--dn-bg);
    color: var(--dn-text);
    font-size: 16px;
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ── Container ───────────────────────────────────── */
.dn-container,
.container {
    max-width: var(--dn-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.site-header {
    background: var(--dn-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* Top bar */
.header-top {
    border-bottom: 1px solid var(--dn-border);
    padding: 9px 0;
}

.header-top .dn-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-logo {
    flex-shrink: 0;
}

.site-logo {
    height: 52px;
    width: auto;
}

/* Social icons */
.header-social {
    display: flex;
    gap: 5px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--dn-border);
    color: var(--dn-muted);
    font-size: 14px;
    transition: all .2s ease;
    flex-shrink: 0;
}

.social-btn:hover {
    transform: translateY(-2px);
    color: var(--dn-white);
}

.social-btn.fb:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-btn.tw:hover {
    background: #000;
    border-color: #000;
}

.social-btn.ig:hover {
    background: #e1306c;
    border-color: #e1306c;
}

.social-btn.yt:hover {
    background: #ff0000;
    border-color: #ff0000;
}

/* Date */
.header-date {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    color: var(--dn-muted);
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

/* Navbar */
.site-nav {
    background: var(--dn-red);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nav-links {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.nav-links li a {
    display: block;
    padding: 13px 15px;
    font-family: var(--dn-font-ui);
    font-weight: 700;
    font-size: 15px;
    color: rgba(255, 255, 255, .88);
    letter-spacing: .4px;
    position: relative;
    transition: color .2s;
    white-space: nowrap;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 3px;
    background: var(--dn-yellow);
    transition: left .2s, right .2s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--dn-yellow);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    left: 8px;
    right: 8px;
}

/* Nav dropdown */
.nav-links li.has-dropdown {
    position: relative;
}

/* Suppress the ::after underline bar on the dropdown trigger —
   it is a non-navigating toggle so the hover indicator is unwanted. */
.nav-links li.has-dropdown > a::after {
    display: none;
}

.dropdown-caret {
    font-size: 10px;
    margin-left: 3px;
    vertical-align: middle;
    transition: transform .2s;
}

.nav-links li.has-dropdown:hover .dropdown-caret {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dn-white);
    min-width: 160px;
    border-radius: 0 0 var(--dn-radius) var(--dn-radius);
    box-shadow: var(--dn-shadow-lg);
    padding: 6px 0;
    z-index: 300;
    list-style: none;
    margin: 0;
}

.nav-links li.has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 9px 18px;
    font-family: var(--dn-font-ui);
    font-weight: 600;
    font-size: 14px;
    color: var(--dn-text);
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.nav-dropdown li a:hover {
    background: var(--dn-red-dark);
    color: var(--dn-white);
}

/* Load more button */
.load-more-wrap {
    text-align: center;
    padding: 24px 0 8px;
}

.btn-load-more {
    display: inline-block;
    padding: 10px 32px;
    background: var(--dn-red);
    color: var(--dn-white);
    font-family: var(--dn-font-ui);
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}

.btn-load-more:hover {
    background: var(--dn-red-dark);
}

.btn-load-more:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* Nav search */
.nav-search form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    overflow: hidden;
    transition: background .2s;
}

.nav-search form:focus-within {
    background: rgba(255, 255, 255, .25);
}

.nav-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--dn-font-body);
    font-size: 13px;
    padding: 7px 14px;
    width: 180px;
    transition: width .3s;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, .6);
}

.nav-search input:focus {
    width: 220px;
}

.nav-search button {
    background: transparent;
    border: none;
    color: #fff;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: color .2s;
}

.nav-search button:hover {
    color: var(--dn-yellow);
}

/* Mobile nav toggler */
.nav-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px 4px;
    cursor: pointer;
}

.nav-toggler span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s;
}

/* LIVE Ticker bar */
.ticker-bar {
    background: #c0392b;
    height: 36px;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    height: 36px;
    max-width: var(--dn-container);
    margin: 0 auto;
    padding: 0 20px;
}

.ticker-label {
    flex-shrink: 0;
    background: #a93226;
    color: #fff;
    font-family: var(--dn-font-ui);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 2px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-right: 14px;
}

.ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.ticker-track a {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    padding: 0 6px 0 0;
    letter-spacing: .3px;
    transition: color .2s;
    flex-shrink: 0;
}

.ticker-track a:hover {
    color: var(--dn-yellow);
}

.ticker-sep {
    color: rgba(255,255,255,.5);
    font-size: 8px;
    padding: 0 10px;
    flex-shrink: 0;
}


/* ══════════════════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════════════════ */
.dn-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dn-border);
}

.dn-section-head h2 {
    font-family: var(--dn-font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--dn-text);
    flex-shrink: 0;
    line-height: 1;
}

.dn-section-head .dn-accent {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--dn-red), transparent);
}

.dn-section-head .dn-tag {
    flex-shrink: 0;
    font-family: var(--dn-font-ui);
    font-size: 11px;
    font-weight: 700;
    color: var(--dn-white);
    background: var(--dn-red);
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   LATEST NEWS CAROUSEL
══════════════════════════════════════════════════ */
.latest-section {
    padding: 36px 0;
}

.latest-scroll-outer {
    overflow: hidden;
    position: relative;
}

.latest-scroll-outer::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--dn-bg));
    pointer-events: none;
    z-index: 1;
}

.latest-scroll {
    display: flex;
    gap: 20px;
    transition: transform .5s ease;
    will-change: transform;
}

.latest-card {
    min-width: calc(33.333% - 14px);
    background: var(--dn-white);
    border-radius: var(--dn-radius);
    overflow: hidden;
    box-shadow: var(--dn-shadow);
    transition: transform .25s, box-shadow .25s;
    flex-shrink: 0;
    cursor: pointer;
}

.latest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dn-shadow-lg);
}

.latest-card-img {
    position: relative;
    overflow: hidden;
}

.latest-card-img img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}

.latest-card:hover .latest-card-img img {
    transform: scale(1.05);
}

.latest-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(4px);
    color: var(--dn-white);
    font-family: var(--dn-font-ui);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.latest-card-body {
    padding: 16px;
}

.latest-card-body h4 {
    font-family: var(--dn-font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dn-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.latest-card-body h4 a {
    color: inherit;
    transition: color .2s;
}

.latest-card-body h4 a:hover {
    color: var(--dn-red);
}

.latest-card-meta {
    font-size: 12px;
    color: var(--dn-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--dn-border);
    background: var(--dn-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dn-muted);
    font-size: 14px;
    transition: all .2s;
}

.carousel-btn:hover {
    background: var(--dn-red);
    border-color: var(--dn-red);
    color: #fff;
}

/* ══════════════════════════════════════════════════
   CATEGORY HIGHLIGHTS (Homepage)
══════════════════════════════════════════════════ */
.highlights-section {
    padding: 0 0 40px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.highlight-card {
    background: var(--dn-white);
    border-radius: var(--dn-radius);
    overflow: hidden;
    box-shadow: var(--dn-shadow);
    transition: transform .25s, box-shadow .25s;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dn-shadow-lg);
}

.highlight-card .img-wrap {
    position: relative;
    overflow: hidden;
}

.highlight-card .img-wrap img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.highlight-card:hover .img-wrap img {
    transform: scale(1.04);
}

.highlight-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(4px);
    color: var(--dn-white);
    font-family: var(--dn-font-ui);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
}

.highlight-body {
    padding: 18px;
}

.highlight-body h3 {
    font-family: var(--dn-font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dn-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.highlight-body h3 a {
    color: inherit;
    transition: color .2s;
}

.highlight-body h3 a:hover {
    color: var(--dn-red);
}

.highlight-meta {
    font-size: 12px;
    color: var(--dn-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ══════════════════════════════════════════════════
   CATEGORY PAGE
══════════════════════════════════════════════════ */
.cat-page-header {
    background: linear-gradient(135deg, var(--dn-red) 0%, var(--dn-red-dark) 100%);
    padding: 28px 0;
    margin-bottom: 32px;
}

.cat-page-header .dn-container {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.cat-page-header h1 {
    font-family: var(--dn-font-display);
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.cat-page-header .cat-count {
    font-family: var(--dn-font-ui);
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: .5px;
}

.cat-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    padding-bottom: 48px;
}

/* News list items */
.news-list-item {
    display: flex;
    background: var(--dn-white);
    border-radius: var(--dn-radius);
    overflow: hidden;
    box-shadow: var(--dn-shadow);
    transition: box-shadow .25s, transform .25s;
    margin-bottom: 16px;
    cursor: pointer;
}

.news-list-item:hover {
    box-shadow: var(--dn-shadow-lg);
    transform: translateX(4px);
}

.news-list-thumb {
    width: 180px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-list-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.news-list-item:hover .news-list-thumb img {
    transform: scale(1.06);
}

.news-list-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-cat {
    font-family: var(--dn-font-ui);
    font-size: 10px;
    font-weight: 700;
    color: var(--dn-red);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.news-list-body h3 {
    font-family: var(--dn-font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dn-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-body h3 a {
    color: inherit;
}

.news-list-body h3 a:hover {
    color: var(--dn-red);
}

.news-list-meta {
    font-size: 12px;
    color: var(--dn-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar */
.sidebar-box {
    background: var(--dn-white);
    border-radius: var(--dn-radius);
    box-shadow: var(--dn-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-box-head {
    padding: 13px 18px;
    background: var(--dn-black);
    color: var(--dn-white);
    font-family: var(--dn-font-ui);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-left: 4px solid var(--dn-red);
}

.sidebar-news-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--dn-border);
    transition: background .2s;
    cursor: pointer;
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-item:hover {
    background: #fafafa;
}

.sidebar-news-item img {
    width: 60px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-news-item p {
    font-family: var(--dn-font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dn-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-ad {
    margin: 12px 16px 16px;
    height: 250px;
    background: #f0f0f0;
    border: 2px dashed var(--dn-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-family: var(--dn-font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════
   HOMEPAGE — YOUTUBE VIDEOS SECTION
══════════════════════════════════════════════════ */
.home-videos-section {
    padding: 24px 0 16px;
}

.home-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.home-video-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--dn-radius);
    overflow: hidden;
    background: var(--dn-white);
    border: 1px solid var(--dn-border);
    transition: transform .2s, box-shadow .2s;
    color: var(--dn-text);
}

.home-video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--dn-shadow-lg);
}

.home-video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.home-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.home-video-card:hover .home-video-thumb img {
    transform: scale(1.05);
}

.home-video-dur {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0,0,0,.78);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: var(--dn-font-ui);
}

.home-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.25);
    opacity: 0;
    transition: opacity .25s;
}

.home-video-card:hover .home-video-play {
    opacity: 1;
}

.home-video-play i {
    font-size: 36px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}

.home-video-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-video-body h4 {
    font-family: var(--dn-font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dn-text);
    margin: 0;
}

.home-video-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--dn-muted);
    margin-top: auto;
}

.home-video-meta i {
    margin-right: 3px;
}

@media (max-width: 900px) {
    .home-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination (CI4 pager override) */
.dn-pagination {
    display: flex;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.dn-pagination .page-item .page-link {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px !important;
    font-family: var(--dn-font-ui);
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--dn-border);
    color: var(--dn-text);
    transition: all .2s;
}

.dn-pagination .page-item .page-link:hover,
.dn-pagination .page-item.active .page-link {
    background: var(--dn-red);
    border-color: var(--dn-red);
    color: var(--dn-white);
}

/* ══════════════════════════════════════════════════
   NEWS DETAIL PAGE
══════════════════════════════════════════════════ */
.detail-section {
    padding: 28px 0 48px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

.breadcrumb-nav {
    font-size: 13px;
    color: var(--dn-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--dn-red);
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--dn-muted);
    font-size: 11px;
}

.article-cat-label {
    font-family: var(--dn-font-ui);
    font-size: 11px;
    font-weight: 700;
    color: var(--dn-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-cat-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--dn-red);
    flex-shrink: 0;
}

.article-title {
    font-family: var(--dn-font-display);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dn-text);
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--dn-border);
    border-bottom: 1px solid var(--dn-border);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.article-author {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--dn-text);
}

.article-date {
    font-size: 13px;
    color: var(--dn-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Share Bar (below headline) ─────────────────── */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.share-bar .btn {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity .2s;
}

.share-bar .btn:hover {
    opacity: .85;
    color: #fff;
}

.share-btn-whatsapp                  { background: #25D366; color: #fff; }
.share-btn-whatsapp:hover            { background: #25D366; color: #fff; }
.share-btn-facebook                  { background: #1877F2; color: #fff; }
.share-btn-facebook:hover            { background: #1877F2; color: #fff; }
.share-btn-twitter                   { background: #1DA1F2; color: #fff; }
.share-btn-twitter:hover             { background: #1DA1F2; color: #fff; }
.share-btn-copy                      { background: #555;    color: #fff; }
.share-btn-copy:hover                { background: #555;    color: #fff; }
.share-btn-copy.copied               { background: #27ae60; color: #fff; }
.share-btn-copy.copied:hover         { background: #27ae60; color: #fff; }

@media (max-width: 480px) {
    .share-bar .btn { font-size: 12px; padding: 5px 10px; }
}

.article-hero-img {
    border-radius: var(--dn-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.article-hero-img img {
    width: 100%;
    display: block;
}

.article-hero-img figcaption {
    font-size: 13px;
    color: var(--dn-muted);
    padding: 8px 0;
    font-style: italic;
}

.article-hero-video {
    border-radius: var(--dn-radius);
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 16/9;
}

.article-hero-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.article-body {
    font-family: var(--dn-font-body);
    font-size: 18px;
    line-height: 1.85;
    color: #2a2a2a;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body blockquote {
    border-left: 4px solid var(--dn-red);
    padding: 14px 20px;
    margin: 28px 0;
    background: #fff8f8;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    font-size: 20px;
    color: var(--dn-red-dark);
}

.article-body img {
    max-width: 100%;
    border-radius: var(--dn-radius);
    margin: 16px 0;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--dn-border);
}

.tag-chip {
    padding: 5px 14px;
    background: var(--dn-bg);
    border: 1px solid var(--dn-border);
    border-radius: 20px;
    font-family: var(--dn-font-ui);
    font-size: 12px;
    font-weight: 700;
    color: var(--dn-muted);
    transition: all .2s;
    cursor: pointer;
}

.tag-chip:hover {
    background: var(--dn-red);
    color: #fff;
    border-color: var(--dn-red);
}

/* Related news sidebar */
.related-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--dn-border);
    transition: background .2s;
    cursor: pointer;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    background: #fafafa;
}

.related-num {
    font-family: var(--dn-font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--dn-border);
    flex-shrink: 0;
    line-height: 1;
}

.related-item p {
    font-family: var(--dn-font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dn-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item .related-meta {
    font-size: 11px;
    color: var(--dn-muted);
    margin-top: 4px;
}

.related-item img {
    width: 60px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   E-PAPER PAGE
══════════════════════════════════════════════════ */
.epaper-page-header {
    background: linear-gradient(135deg, var(--dn-dark) 0%, #2d2d2d 100%);
    padding: 24px 0;
    margin-bottom: 32px;
}

.epaper-page-header .dn-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.epaper-page-header h1 {
    font-family: var(--dn-font-display);
    font-size: 30px;
    font-weight: 800;
    color: var(--dn-white);
}

.epaper-page-header h1 span {
    color: var(--dn-yellow);
}

.epaper-date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.epaper-date-filter label {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    font-weight: 600;
    letter-spacing: .5px;
}

.epaper-date-filter input[type="date"] {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--dn-white);
    border-radius: 4px;
    padding: 7px 12px;
    font-family: var(--dn-font-body);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.epaper-page {
    padding-bottom: 48px;
}

.epaper-section {
    margin-bottom: 40px;
}

.epaper-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dn-border);
}

.epaper-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--dn-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dn-white);
    font-size: 15px;
    flex-shrink: 0;
}

.epaper-section-icon.today {
    background: var(--dn-yellow);
    color: var(--dn-black);
}

.epaper-section-icon.special {
    background: #6c4ef2;
}

.epaper-section-head h2 {
    font-family: var(--dn-font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--dn-text);
}

.epaper-date-badge {
    font-family: var(--dn-font-ui);
    font-size: 11px;
    font-weight: 700;
    background: var(--dn-yellow);
    color: var(--dn-black);
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
}

/* Epaper grid */
.epaper-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.epaper-grid-today {
    grid-template-columns: repeat(4, 1fr);
}

.epaper-grid-main {
    grid-template-columns: repeat(3, 1fr);
}

/* Epaper card */
.epaper-card {
    background: var(--dn-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--dn-shadow);
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    border: 2px solid transparent;
}

.epaper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
    border-color: var(--dn-red);
}

.epaper-card.today-card {
    border-color: var(--dn-yellow);
}

.epaper-card.today-card:hover {
    border-color: var(--dn-red);
}

.epaper-thumb-wrap {
    aspect-ratio: 400 / 560;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.epaper-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.epaper-card:hover .epaper-thumb-wrap img {
    transform: scale(1.04);
}

.epaper-no-thumb {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    gap: 8px;
    font-size: 13px;
}

.epaper-today-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--dn-yellow);
    color: var(--dn-black);
    font-family: var(--dn-font-ui);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
}

.epaper-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(207, 8, 13, .85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .25s;
    gap: 8px;
}

.epaper-card:hover .epaper-view-overlay {
    opacity: 1;
}

.epaper-view-overlay i {
    font-size: 26px;
}

.epaper-view-overlay span {
    font-family: var(--dn-font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.epaper-card-caption {
    padding: 10px 12px;
}

.epaper-edition-name {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--dn-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epaper-edition-date {
    font-size: 11px;
    color: var(--dn-muted);
    margin-top: 2px;
}

/* PDF Viewer Modal */
#pdfViewerModal .modal-dialog {
    max-width: 90vw;
}

#pdfViewerModal .modal-body {
    padding: 0;
    background: #404040;
}

#pdfViewerModal .modal-header {
    background: #2c2c2c;
    color: #fff;
    border-bottom: none;
    padding: 10px 16px;
}

#pdfViewerModal .modal-header .btn-close {
    filter: invert(1);
}

#pdfViewerCanvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.pdf-controls {
    background: #2c2c2c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
    font-size: .85rem;
    flex-wrap: wrap;
}

.pdf-controls button {
    background: #444;
    border: none;
    color: #fff;
    padding: 5px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background .2s;
}

.pdf-controls button:hover {
    background: var(--dn-red);
}

.pdf-controls button:disabled {
    opacity: .4;
    cursor: default;
}

#pdfLoading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: #ccc;
    font-size: 1rem;
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.site-footer {
    background: var(--dn-black);
    color: rgba(255, 255, 255, .75);
    padding: 48px 0 0;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, .92);
    padding: 6px 12px;
    border-radius: 6px;
    opacity: 1;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .5);
}

.footer-about {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .5);
    margin-top: 12px;
}

.footer-brand .footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-brand .social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .08);
    border: none;
    color: rgba(255, 255, 255, .6);
}

.footer-brand .social-btn:hover {
    background: var(--dn-red);
    color: #fff;
    transform: translateY(-2px);
}

.footer-contact {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    line-height: 1.5;
}

.footer-contact-item i {
    color: var(--dn-red);
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, .5);
    transition: color .2s;
}

.footer-contact-item a:hover {
    color: var(--dn-white);
}

.footer-reg {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-reg p {
    font-family: var(--dn-font-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, .3);
    letter-spacing: .4px;
}

.footer-reg p span {
    color: rgba(255, 255, 255, .5);
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-right: 4px;
}

.footer-heart {
    color: var(--dn-red);
}

.footer-col h4 {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--dn-white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, .1);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

.footer-col ul li a::before {
    content: '›';
    color: var(--dn-red);
}

.footer-col ul li a:hover {
    color: var(--dn-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-family: var(--dn-font-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, .3);
    letter-spacing: .5px;
}

/* ══════════════════════════════════════════════════
   POLICY PAGES  (Privacy · Terms · Cookies)
══════════════════════════════════════════════════ */
.policy-header {
    background: var(--dn-black);
    color: var(--dn-white);
    padding: 40px 0 36px;
    margin-bottom: 0;
}

.policy-header h1 {
    font-family: var(--dn-font-display);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.policy-date {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
    letter-spacing: .5px;
}

.policy-wrap {
    padding: 48px 0 64px;
    max-width: 820px;
}

.policy-intro {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dn-muted);
    margin-bottom: 16px;
    border-left: 3px solid var(--dn-red);
    padding-left: 16px;
}

.policy-content h2 {
    font-family: var(--dn-font-ui);
    font-size: 18px;
    font-weight: 700;
    color: var(--dn-black);
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dn-border);
}

.policy-content h3 {
    font-family: var(--dn-font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--dn-text);
    margin-top: 22px;
    margin-bottom: 10px;
}

.policy-content p {
    font-size: 15px;
    line-height: 1.85;
    color: #3a3a3a;
    margin-bottom: 14px;
}

.policy-content ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 16px;
}

.policy-content ul li {
    font-size: 15px;
    line-height: 1.75;
    color: #3a3a3a;
    margin-bottom: 6px;
}

.policy-content a {
    color: var(--dn-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.policy-content a:hover {
    color: var(--dn-red-dark);
}

.policy-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    font-family: monospace;
    color: var(--dn-text);
}

.policy-contact {
    background: var(--dn-bg);
    border: 1px solid var(--dn-border);
    border-left: 4px solid var(--dn-red);
    border-radius: var(--dn-radius);
    padding: 20px 24px;
    margin-top: 16px;
}

.policy-contact p {
    margin-bottom: 6px;
    font-size: 14px;
}

.policy-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--dn-radius);
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.7;
    color: #5a4500;
}

.policy-note i {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Cookie table */
.cookie-table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cookie-table th {
    background: var(--dn-black);
    color: var(--dn-white);
    font-family: var(--dn-font-ui);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 12px 14px;
    text-align: left;
}

.cookie-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--dn-border);
    color: #3a3a3a;
    vertical-align: top;
    line-height: 1.6;
}

.cookie-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.cookie-table tbody tr:hover td {
    background: #f0f0f0;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .epaper-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .epaper-grid-today {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .cat-layout {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .latest-card {
        min-width: calc(50% - 10px);
    }

    .news-list-thumb {
        width: 130px;
    }
}

@media (max-width: 768px) {

    /* Mobile nav */
    .nav-search {
        display: none;
    }

    .nav-toggler {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dn-red);
        z-index: 200;
        padding: 8px 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        padding: 12px 20px;
    }

    .nav-links li a::after {
        display: none;
    }

    /* Mobile dropdown — static, expands inline */
    .nav-links li.has-dropdown:hover .nav-dropdown {
        display: none;
    }

    .nav-links li.has-dropdown.open .nav-dropdown {
        display: block;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0, 0, 0, .18);
        padding: 2px 0;
    }

    .nav-dropdown li a {
        padding-left: 32px;
        color: rgba(255, 255, 255, .85);
        font-size: 13px;
    }

    .nav-dropdown li a:hover {
        background: rgba(0, 0, 0, .2);
        color: var(--dn-yellow);
    }

    .nav-links li.has-dropdown.open .dropdown-caret {
        transform: rotate(180deg);
    }

    .site-nav {
        position: relative;
    }

    .header-social,
    .header-date {
        display: none;
    }

    .site-logo {
        height: 42px;
    }

    .article-title {
        font-size: 26px;
    }

    .article-body {
        font-size: 16px;
    }

    .epaper-grid,
    .epaper-grid-today,
    .epaper-grid-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cat-page-header h1 {
        font-size: 28px;
    }

    .latest-card {
        min-width: 85%;
    }
}

@media (max-width: 480px) {
    .dn-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .news-list-item {
        flex-direction: column;
    }

    .news-list-thumb {
        width: 100%;
    }

    .news-list-thumb img {
        height: 200px;
    }
}

/* ══════════════════════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════════════════════ */
.icon-xs {
    font-size: 10px;
}

.icon-sm {
    font-size: 12px;
}

.dn-muted-text {
    color: var(--dn-muted);
}

.breadcrumb-current {
    color: var(--dn-muted);
}

/* Empty states */
.dn-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--dn-muted);
}

.dn-empty p {
    font-family: var(--dn-font-ui);
    font-size: 15px;
    font-weight: 600;
    margin-top: 10px;
}

/* Sidebar category link */
.sidebar-cat-link {
    display: block;
    width: 100%;
    font-family: var(--dn-font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--dn-text);
    transition: color .2s;
}

.sidebar-cat-link:hover,
.sidebar-cat-link.active {
    color: var(--dn-red);
}

.sidebar-cat-link .cat-arrow {
    color: var(--dn-red);
    margin-right: 4px;
}

/* No-PDF card overlay */
.epaper-no-pdf-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.epaper-no-pdf-label {
    color: #fff;
    font-size: 11px;
    background: #555;
    padding: 4px 10px;
    border-radius: 3px;
    font-family: var(--dn-font-ui);
    font-weight: 700;
    letter-spacing: .5px;
}

/* ══════════════════════════════════════════════════
   EPAPER READER PAGE
══════════════════════════════════════════════════ */
.epaper-header-meta {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ep-btn-ghost {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
}

.ep-btn-ghost:hover {
    background: var(--dn-red);
    border-color: var(--dn-red);
    color: #fff;
}

/* ══════════════════════════════════════════════════
   EPAPER READER PAGE  (single clean block)
══════════════════════════════════════════════════ */
.epaper-reader {
    background: #2b2b2b;
    min-height: 80vh;
}

/* Full-width sticky bar */
.epaper-reader-toolbar {
    background: var(--dn-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 2px solid var(--dn-blue-dark);
}

/* Inner container — centered 1200px, flex row */
.ep-toolbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LEFT — title + date, pushes center+right away */
.ep-toolbar-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: auto;
}

.ep-title {
    font-family: var(--dn-font-ui);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
}

.ep-title-date {
    font-family: var(--dn-font-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
}

/* CENTER — nav + zoom */
.ep-toolbar-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ep-toolbar-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, .2);
    margin: 0 4px;
}

.ep-zoom-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ep-zoom-display {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 5px;
    height: 32px;
    padding: 0 12px;
    min-width: 52px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ep-page-info {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    line-height: 1;
    color: rgba(255, 255, 255, .6);
    min-width: 50px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Nav pill — wraps Prev + page count + Next */
.ep-nav-pill {
    display: flex;
    align-items: center;
    height: 32px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 5px;
    overflow: hidden;
}

.ep-nav-pill .ep-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    width: 32px;
    padding: 0;
    height: 32px;
}

.ep-nav-pill .ep-btn:hover:not(:disabled) {
    background: var(--dn-red);
}

.ep-nav-pill .ep-page-info {
    padding: 0 12px;
    border-left: 1px solid rgba(255, 255, 255, .28);
    border-right: 1px solid rgba(255, 255, 255, .28);
    min-width: 58px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RIGHT — back button, pushes to far right */
.ep-toolbar-right {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Icon-only button (square 32×32) */
.ep-btn-icon {
    width: 32px;
    padding: 0;
}

/* WhatsApp share button */
.ep-btn-whatsapp {
    background: rgba(37, 211, 102, .15);
    border-color: rgba(37, 211, 102, .35);
    color: #25d366;
}

.ep-btn-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

/* Buttons */
.ep-btn {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    height: 32px;
    padding: 0 14px;
    border-radius: 5px;
    font-family: var(--dn-font-ui);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .2s, border-color .2s;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
}

.ep-btn:hover {
    background: var(--dn-red);
    border-color: var(--dn-red);
    color: #fff;
}

.ep-btn:disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

.ep-btn-ghost {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .28);
}

.ep-btn-ghost:hover {
    background: var(--dn-red);
    border-color: var(--dn-red);
    color: #fff;
}

/* Canvas area */
.epaper-canvas-wrap {
    background: #2b2b2b;
    padding: 24px 0;
    min-height: 70vh;
}

.epaper-canvas-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#pdfViewerCanvas {
    display: block;
    max-width: 100%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
    border-radius: 4px;
}

#pdfLoading {
    color: rgba(255, 255, 255, .6);
    font-family: var(--dn-font-ui);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 10px;
}

#pdfError {
    color: #ff6b6b;
    font-family: var(--dn-font-ui);
    font-size: 15px;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#pdfError a {
    color: #fff;
    text-decoration: underline;
}

.pdf-canvas-hidden {
    display: none !important;
}

/* No PDF page */
.epaper-no-pdf-page {
    padding: 60px 20px;
    text-align: center;
    color: var(--dn-muted);
}

.epaper-no-pdf-page p {
    font-family: var(--dn-font-ui);
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
}

.ep-btn-center {
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .ep-toolbar-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ep-toolbar-left {
        margin-right: 0;
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .ep-toolbar-right {
        margin-left: 0;
    }
}

/* ══════════════════════════════════════════════════
   TEAM PAGE
══════════════════════════════════════════════════ */
.team-hero {
    background: var(--dn-white);
    border-bottom: 1px solid var(--dn-border);
    padding: 36px 0 28px;
}

.team-hero-title {
    font-family: var(--dn-font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--dn-blue);
    margin: 0 0 6px;
}

.team-hero-sub {
    font-family: var(--dn-font-ui);
    font-size: 15px;
    color: var(--dn-muted);
    margin: 0;
}

.team-page {
    padding: 40px 0 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--dn-white);
    border-radius: 12px;
    box-shadow: var(--dn-shadow);
    padding: 32px 24px 28px;
    text-align: center;
    transition: box-shadow .25s, transform .25s;
    border-top: 3px solid transparent;
}

.team-card:hover {
    box-shadow: var(--dn-shadow-lg);
    transform: translateY(-3px);
    border-top-color: var(--dn-red);
}

.team-card-photo-wrap {
    display: inline-block;
    margin-bottom: 18px;
}

.team-card-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--dn-border);
    transition: border-color .25s;
    display: block;
}

.team-card:hover .team-card-photo {
    border-color: var(--dn-red);
}

.team-card-name {
    margin: 0 0 5px;
    font-family: var(--dn-font-ui);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3px;
}

.team-card-name a {
    color: var(--dn-text);
    text-decoration: none;
}

.team-card-name a:hover {
    color: var(--dn-red);
}

.team-card-role {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--dn-red);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.team-card-bio {
    font-family: var(--dn-font-body);
    font-size: 13px;
    color: var(--dn-muted);
    line-height: 1.6;
    margin: 0;
}

/* Team page responsive */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════
   SEARCH PAGE
══════════════════════════════════════════════════ */
.search-page {
    padding: 32px 0 48px;
}

.search-form {
    margin-bottom: 28px;
}

.search-input-wrap {
    display: flex;
    border: 2px solid var(--dn-border);
    border-radius: var(--dn-radius);
    overflow: hidden;
    background: var(--dn-white);
    box-shadow: var(--dn-shadow);
}

.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 17px;
    font-family: var(--dn-font-body);
}

.search-input-wrap button {
    border: none;
    background: var(--dn-red);
    color: #fff;
    padding: 0 22px;
    font-size: 18px;
    cursor: pointer;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.search-filter-select {
    font-family: var(--dn-font-ui);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--dn-border);
    border-radius: 4px;
    padding: 6px 10px;
    background: var(--dn-white);
    cursor: pointer;
}

.search-date-tabs {
    display: flex;
    gap: 0;
    border: 1px solid var(--dn-border);
    border-radius: 4px;
    overflow: hidden;
}

.search-date-tab {
    font-family: var(--dn-font-ui);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    border-right: 1px solid var(--dn-border);
    background: var(--dn-white);
    margin: 0;
    transition: background .15s;
}

.search-date-tab:last-child { border-right: none; }
.search-date-tab input { display: none; }
.search-date-tab.active,
.search-date-tab:has(input:checked) {
    background: var(--dn-red);
    color: #fff;
}

.search-clear-filters {
    font-family: var(--dn-font-ui);
    font-size: 12px;
    color: var(--dn-red);
    text-decoration: underline;
}

.search-result-count {
    font-family: var(--dn-font-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--dn-muted);
    margin-bottom: 16px;
}

.search-result-card {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--dn-border);
}

.search-result-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-body {
    flex: 1;
    min-width: 0;
}

.search-result-cat {
    display: inline-block;
    font-family: var(--dn-font-ui);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--dn-red);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.search-result-body h3 {
    font-family: var(--dn-font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 2px 0 4px;
}

.search-result-body h3 a { color: var(--dn-text); }
.search-result-body h3 a:hover { color: var(--dn-red); }

.search-result-desc {
    font-size: 13px;
    color: var(--dn-muted);
    margin-bottom: 4px;
}

.search-result-meta {
    font-family: var(--dn-font-ui);
    font-size: 12px;
    color: var(--dn-muted);
    display: flex;
    gap: 14px;
}

.search-result-body mark {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

@media (max-width: 576px) {
    .search-result-thumb { width: 80px; height: 60px; }
    .search-date-tabs { flex-wrap: wrap; }
    .search-date-tab { font-size: 11px; padding: 5px 8px; }
    .search-filters { gap: 6px; }
}

/* ══════════════════════════════════════════════════
   CATEGORY COLOR PILL (news cards)
══════════════════════════════════════════════════ */
.news-cat-pill {
    display: inline-block;
    font-family: var(--dn-font-ui);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   A1: HIDE EMPTY AD CONTAINERS
══════════════════════════════════════════════════ */
.dn-sponsor:empty { display: none !important; }

/* ══════════════════════════════════════════════════
   A2: SECTION HEADINGS — site-wide
══════════════════════════════════════════════════ */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c0392b;
}
.section-heading h2, .section-heading h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    padding-left: 12px;
    border-left: 4px solid #c0392b;
    border-radius: 0;
}
.section-heading a {
    font-size: 0.8rem;
    color: #c0392b;
    text-decoration: none;
    white-space: nowrap;
}
.section-heading a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════
   A2: NEWS CARD
══════════════════════════════════════════════════ */
.news-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}
.news-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.news-card .card-body { padding: 0.75rem; }
.news-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}
.news-card .card-title a {
    color: inherit;
    text-decoration: none;
}
.news-card .card-title a:hover { color: #c0392b; }
.news-card .card-meta {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Category badge overlay on card image */
.card-img-wrapper { position: relative; }
.category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    z-index: 1;
}
.category-badge:hover { background: rgba(0, 0, 0, .80); color: #fff; }

/* ══════════════════════════════════════════════════
   A2: ARTICLE BODY TYPOGRAPHY (override)
══════════════════════════════════════════════════ */
.article-body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    border-left: 4px solid #c0392b;
    border-radius: 0;
    padding-left: 12px;
    margin: 2rem 0 0.8rem;
}
.article-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.6rem;
}
.article-body a { color: #c0392b; }
.article-body a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════
   A2: SIDEBAR NEWS LIST
══════════════════════════════════════════════════ */
.sidebar-news-list { list-style: none; padding: 0; margin: 0; }
.sidebar-news-list .sidebar-news-item {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.sidebar-news-list .sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-list .sidebar-news-item img {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.sidebar-news-list .sidebar-news-item .title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-news-list .sidebar-news-item .title a {
    color: inherit;
    text-decoration: none;
}
.sidebar-news-list .sidebar-news-item .title a:hover { color: #c0392b; }
.sidebar-news-list .sidebar-news-item .date { font-size: 0.72rem; color: #999; margin-top: 4px; }

/* Sticky sidebar */
.sidebar-sticky {
    position: sticky;
    top: 80px;
}

/* ══════════════════════════════════════════════════
   A2: SHARE BUTTONS (new)
══════════════════════════════════════════════════ */
.share-bar-new { display: flex; gap: 8px; flex-wrap: wrap; margin: 1rem 0; }
.share-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    color: #fff;
}
.share-btn-new:hover { opacity: 0.88; color: #fff; }
.share-btn-new.whatsapp { background: #25D366; }
.share-btn-new.facebook { background: #1877F2; }
.share-btn-new.twitter  { background: #1DA1F2; }
.share-btn-new.copy     { background: #6c757d; }

/* ══════════════════════════════════════════════════
   A2: AUTHOR BYLINE
══════════════════════════════════════════════════ */
.author-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 0.8rem 0 1.2rem;
}
.author-byline img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}
.author-byline .author-initials {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}
.author-byline .author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
}
.author-byline .author-name a { color: inherit; text-decoration: none; }
.author-byline .author-name a:hover { color: #c0392b; }
.author-byline .meta {
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════
   A2: IN-ARTICLE AD
══════════════════════════════════════════════════ */
.in-article-ad { text-center: center; margin: 1.5rem 0; }

/* ══════════════════════════════════════════════════
   A9: MOBILE RESPONSIVE (new rules)
══════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .sidebar-sticky { position: static; }
}
@media (max-width: 768px) {
    .news-card .card-title { font-size: 0.85rem; }
    .share-bar-new { gap: 6px; }
    .share-btn-new { padding: 5px 10px; font-size: 0.78rem; }
}
@media (max-width: 576px) {
    .share-btn-new span.label { display: none; }
}