/**
 * Kamol Katha - Main Stylesheet
 * Premium bilingual news platform
 * Colors: Saffron (#FF9933), Royal Blue (#1A3C6E)
 */

/* ============================================
   TYPOGRAPHY
   ============================================ */
.font-bengali {
    font-family: 'Noto Sans Bengali', sans-serif;
}

.font-english {
    font-family: 'Inter', sans-serif;
}

/* Hero Headline */
.hero-headline {
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* Bengali font rendering - ensure headlines are bold and readable */
.font-bengali.article-headline,
.font-bengali h3,
.font-bengali.hero-title,
[lang="bn"] .article-headline,
[lang="bn"] h1,
[lang="bn"] .news-card h3,
[lang="bn"] .hero-title {
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

/* Section Headings */
.section-heading {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 28px 0 20px 0;
}

/* Article Headlines */
.article-headline {
    font-size: clamp(18px, 2.8vw, 26px);
    font-weight: 700;
    line-height: 1.4;
}

/* Card titles across the site — bold and prominent */
.news-card h3,
.news-card .card-title {
    font-size: clamp(17px, 2.5vw, 22px);
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #111827;
    margin-bottom: 10px;
}

/* Category section card headlines */
.news-card .font-semibold {
    font-weight: 750;
    color: #111827;
}

/* Sidebar / secondary headlines */
.side-headline {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 600;
    line-height: 1.4;
}

/* Body Text */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

/* Meta / Byline */
.meta-text {
    font-size: 13px;
    color: #6B7280;
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
#breaking-ticker {
    position: relative;
    z-index: 50;
}

.ticker-content {
    animation: marquee 35s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   HERO SECTION — Premium Upgrade
   ============================================ */
.hero-section {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}
.hero-section:hover {
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #1a1a2e;
}
/* Subtle bottom gradient overlay for text readability */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-section:hover .hero-image {
    transform: scale(1.03);
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(255,153,51,0.12), rgba(26,60,110,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-card {
    padding: 28px 32px 32px 32px;
    background: #FFFFFF;
    position: relative;
}
/* Subtle saffron accent line at top of content card */
.hero-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 3px;
    background: linear-gradient(90deg, #FF9933, #F59E0B);
    border-radius: 0 0 2px 2px;
}

.hero-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF9933, #F59E0B);
    color: #FFFFFF;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(255, 153, 51, 0.25);
}

.hero-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #0F2440;
    margin: 0 0 14px 0;
}

.hero-title a {
    color: #0F2440;
    text-decoration: none;
    background: linear-gradient(to right, #FF9933, #FF9933) no-repeat left 100%;
    background-size: 0 2px;
    transition: background-size 0.35s ease, color 0.25s ease;
}
.hero-title a:hover {
    color: #FF9933;
    background-size: 100% 2px;
}

.hero-excerpt {
    font-size: 16px;
    color: #5A6470;
    line-height: 1.75;
    margin: 0 0 20px 0;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #8895A7;
    padding-top: 4px;
}
.hero-meta span {
    display: inline-flex;
    align-items: center;
}
.hero-meta i {
    color: #FF9933;
    font-size: 13px;
}

.hero-meta-author {
    color: #4B5563;
    font-weight: 600;
}

.hero-gradient {
    background: linear-gradient(135deg, 
        rgba(255, 153, 51, 0.12) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(26, 60, 110, 0.05) 100%);
}

/* ============================================
   IMAGE-TEXT SEPARATION
   ============================================ */
/* All images and text must be in separate containers — no overlays */
.news-card .relative.overflow-hidden.aspect-video {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.news-card img.card-image {
    display: block;
    position: relative;
    z-index: 1;
}
/* Card content always appears below images */
.news-card > div:not(.relative) {
    position: relative;
    z-index: 2;
}
/* Article featured image wrapper */
.article-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.article-image-wrapper img.featured-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Hero Responsive */
@media (max-width: 640px) {
    .hero-image-wrapper,
    .hero-image-placeholder {
        height: 220px;
    }
    .hero-content-card {
        padding: 16px 18px 20px 18px;
    }
    .hero-title {
        font-size: 22px;
        font-weight: 800;
    }
    .hero-excerpt {
        font-size: 14px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-image-wrapper,
    .hero-image-placeholder {
        height: 320px;
    }
    .hero-title {
        font-size: 28px;
        font-weight: 800;
    }
}

/* ============================================
   TOP NAVIGATION — Premium Upgrade
   ============================================ */

/* ── Top Bar ──────────────────────────────── */
#main-header .bg-royal-blue {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── Language Switcher ────────────────────── */
#main-header #translate-btn {
    border-radius: 6px;
    padding: 4px 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
#main-header #translate-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── Search Icon ──────────────────────────── */
#main-header .fa-magnifying-glass {
    font-size: 15px;
    transition: opacity 0.25s ease;
}
#main-header a:hover .fa-magnifying-glass {
    opacity: 0.8;
}

/* ── Desktop Menu Links — Animated Underline ─ */
#main-header nav a.px-3.py-2 {
    position: relative;
    font-weight: 650;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}
#main-header nav a.px-3.py-2::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FF9933;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#main-header nav a.px-3.py-2:hover::after {
    width: calc(100% - 24px);
    left: 12px;
}
#main-header nav a.text-saffron::after {
    width: calc(100% - 24px);
    left: 12px;
}

/* ── Menu Separator ───────────────────────── */
#main-header nav span.text-gray-300 {
    color: rgba(0, 0, 0, 0.12);
    margin: 0 4px;
    font-weight: 300;
}

/* ── Logo ─────────────────────────────────── */
#main-header nav a.group img {
    transition: opacity 0.3s ease;
}
#main-header nav a.group:hover img {
    opacity: 0.88;
}

/* ============================================
   SECTION HEADERS — Premium Upgrade
   ============================================ */

/* ── Accent Bar ───────────────────────────── */
.section-heading .bg-saffron.rounded-full {
    width: 4px;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(255, 153, 51, 0.25);
}

/* ── View All Link — Arrow Hover ──────────── */
a.flex.items-center.gap-1.transition i.fa-arrow-right {
    transition: transform 0.25s ease;
}
a.flex.items-center.gap-1.transition:hover i.fa-arrow-right {
    transform: translateX(3px);
}

/* ============================================
   NEWS CARDS — Premium Upgrade
   ============================================ */
.news-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: pointer;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.09), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Card content area — refined internal spacing */
.news-card .p-4 {
    padding: 18px 20px 20px 20px;
}

/* Card image hover — subtle opacity shift, zero zoom */
.news-card .card-image {
    transition: opacity 0.35s ease;
}

.news-card:hover .card-image {
    opacity: 0.92;
}

/* ── Image Placeholder Icon ───────────────── */
.news-card .bg-gradient-to-br .fa-image {
    color: #C4C9D0;
}

/* Sparkle overlay */
.news-card .lottie-sparkle {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .lottie-sparkle {
    opacity: 1;
}

/* Category Badge — Premium refinement */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.16), rgba(255, 153, 51, 0.08));
    color: #CC6600;
    border: 1px solid rgba(255, 153, 51, 0.12);
}

/* ── Card Meta / Date ─────────────────────── */
.news-card .text-xs.text-gray-400 {
    color: #8895A7;
    font-weight: 500;
}

/* ── Card Excerpt ─────────────────────────── */
.news-card .text-sm.text-gray-500,
.news-card .text-xs.text-gray-500 {
    color: #5A6470;
    line-height: 1.65;
}

/* ── Card Title Hover ─────────────────────── */
.news-card h3 a,
.news-card .font-semibold a {
    transition: color 0.3s ease;
}

/* ======================
   Category Page Styles — Premium Upgrade (Phase 1)
   ====================== */

/* ── Category Logo Wrapper ────────────────── */
.category-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* ── Category Logo ────────────────────────── */
.category-logo {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

/* ── Category Logo Placeholder ────────────── */
.category-logo-placeholder {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,153,51,0.06), rgba(26,60,110,0.04));
    border-radius: 16px;
    border: 2px solid rgba(255, 153, 51, 0.14);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.category-logo-placeholder i {
    font-size: 3rem;
    color: #CC7A29;
}

/* ── Category Page Title ──────────────────── */
.category-page-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 750;
    color: #0F2440;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    padding-bottom: 20px;
    position: relative;
}

/* Saffron accent bar centered below title */
.category-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, #FF9933, #F59E0B);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .category-page-title {
        font-size: 1.75rem;
    }
    .category-logo {
        max-width: 140px;
        max-height: 140px;
    }
    .category-logo-placeholder {
        width: 100px;
        height: 100px;
    }
    .category-logo-placeholder i {
        font-size: 2.25rem;
    }
}

/* ── Category Description ─────────────────── */
.category-description {
    text-align: center;
    color: #5A6470;
    max-width: 42rem;
    margin: 0.75rem auto 1.5rem auto;
    font-size: 1.0625rem;
    line-height: 1.75;
    font-weight: 400;
}

@media (max-width: 640px) {
    .category-description {
        font-size: 0.9375rem;
    }
}

/* ── Category Description Divider ─────────── */
.category-description::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 1.5rem auto 0 auto;
}

/* ============================================
   EMPTY STATE — Premium Upgrade
   ============================================ */

/* ── Empty State Card ─────────────────────── */
.text-center.py-20 {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    padding: 56px 32px;
}

/* ── Empty State Icon ─────────────────────── */
.text-center.py-20 .fa-newspaper {
    color: #C4C9D0;
    font-size: 4rem;
    margin-bottom: 1.25rem;
    display: block;
}

/* ── Empty State Message ──────────────────── */
.text-center.py-20 p {
    color: #5A6470;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 26rem;
    margin: 0 auto;
}

/* ── Empty State — Sub-description (if added) */
.text-center.py-20 p + p {
    color: #8895A7;
    font-size: 0.9375rem;
    font-weight: 400;
    margin-top: 0.75rem;
}

/* Featured Badge */
.featured-badge {
    background: linear-gradient(135deg, #FF9933, #F59E0B);
    color: white;
}

/* Breaking Badge */
.breaking-badge {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border: none;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   SPACING & LAYOUT FIXES
   ============================================ */

/* News card paragraph spacing */
.news-card p,
.news-card .card-excerpt {
    line-height: 1.6;
}

/* Article body spacing - prevent text overlap */
.article-body br + br {
    display: none;
}

/* ============================================
   ARTICLE PAGE — Premium Upgrade (Phase 1)
   ============================================ */

/* ── Article Card Wrapper ─────────────────── */
article.bg-white.rounded-2xl {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    padding: 28px 32px 24px 32px;
}

@media (min-width: 768px) {
    article.bg-white.rounded-2xl {
        padding: 32px 40px 28px 40px;
    }
}

/* ── Article Title ────────────────────────── */
.article-title {
    font-size: clamp(1.625rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0F2440;
    margin-bottom: 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* ── Article Meta Row ─────────────────────── */
.article-meta {
    font-size: 14px;
    color: #8895A7;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.article-meta .category {
    color: #FF9933;
    font-weight: 650;
}

.article-meta .author {
    color: #4B5563;
    font-weight: 600;
}

.article-meta .date {
    font-weight: 500;
}

.article-meta .updated {
    color: #8895A7;
    font-style: italic;
    font-weight: 400;
}

/* ── Featured Media ───────────────────────── */

/* Media Wrapper */
.media-wrapper {
    display: block;
    margin-bottom: 8px;
    clear: both;
}

/* Full-width media (top/center/bottom) gets breathing room */
.media-wrapper.media-top,
.media-wrapper.media-center,
.media-wrapper.media-bottom {
    margin-bottom: 20px;
}

/* Featured Image / Video */
.featured-media {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

/* ── Image Caption ────────────────────────── */
.image-caption {
    display: block;
    padding: 12px 18px;
    background: #F8FAFB;
    border-left: 4px solid #FF9933;
    margin: 0;
    font-size: 14px;
    color: #5A6470;
    line-height: 1.55;
    border-radius: 0 0 12px 12px;
    font-style: italic;
}

/* ── Journalist Display (Author Box) ──────── */
.journalist-display {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FBFCFD 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 2px solid rgba(255, 153, 51, 0.22);
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
    clear: both;
    transition: box-shadow 0.3s ease;
}

.journalist-display:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.journalist-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #FF9933;
    box-shadow: 0 2px 10px rgba(255, 153, 51, 0.18);
    flex-shrink: 0;
}

.journalist-photo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,153,51,0.14), rgba(26,60,110,0.08));
    border: 2.5px solid rgba(255, 153, 51, 0.25);
    flex-shrink: 0;
}

.journalist-photo-placeholder i {
    font-size: 22px;
    color: #CC7A29;
}

.journalist-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.journalist-name {
    font-weight: 700;
    font-size: 16px;
    color: #0F2440;
    display: block;
    line-height: 1.3;
}

.journalist-designation {
    font-size: 13px;
    color: #8895A7;
    font-weight: 500;
    line-height: 1.3;
}

/* ── Article Body ─────────────────────────── */
.article-body {
    font-size: 18px;
    line-height: 1.85;
    color: #2D3748;
    margin-top: 25px;
    clear: both;
}

.article-body p {
    margin-bottom: 22px;
}

/* ── Social Share ─────────────────────────── */
.social-share {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.share-label {
    display: block;
    font-size: 14px;
    font-weight: 650;
    color: #4B5563;
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-share .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 19px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-share .share-btn i {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-share .share-btn.whatsapp  { background: #25D366; }
.social-share .share-btn.facebook  { background: #1877F2; }
.social-share .share-btn.twitter   { background: #000000; }
.social-share .share-btn.linkedin  { background: #0A66C2; }
.social-share .share-btn.copy-link { background: #4B5563; }

.social-share .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.social-share .share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Media Position Classes */
.media-left { float: left; margin: 0 25px 15px 0; max-width: 50%; }
.media-right { float: right; margin: 0 0 15px 25px; max-width: 50%; }
.media-center, .media-top, .media-bottom { float: none; width: 100%; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-title { font-size: 26px; }
    .article-body { font-size: 16px; }
    .media-left, .media-right { float: none; width: 100%; margin: 0 0 15px 0; }
    .share-buttons { gap: 8px; }
    .social-share .share-btn { width: 40px; height: 40px; font-size: 17px; }
}

/* Clearfix utility */
.clear-both {
    clear: both;
    display: block;
    width: 100%;
    height: 0;
    overflow: hidden;
}

/* News grid increased gap */
.news-grid {
    gap: 28px;
}

/* Card content inner spacing */
.card-content {
    padding: 16px 18px 20px 18px;
}

.card-content h3 {
    margin-bottom: 10px;
}

/* ============================================
   LINE CLAMP UTILITY
   ============================================ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Article Content Typography ───────────── */
.article-content {
    line-height: 1.85;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content p {
    margin-bottom: 24px;
}

/* ── Headings ─────────────────────────────── */
.article-content h2 {
    font-size: 26px;
    font-weight: 750;
    color: #0F2440;
    margin: 40px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #FF9933;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-size: 21px;
    font-weight: 650;
    color: #0F2440;
    margin: 32px 0 16px 0;
    line-height: 1.35;
}

/* ── Links ─────────────────────────────────── */
.article-content a {
    color: #FF9933;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.article-content a:hover {
    color: #E68A2E;
}

/* ── Blockquote ────────────────────────────── */
.article-content blockquote {
    border-left: 4px solid #FF9933;
    padding: 20px 24px;
    margin: 28px 0;
    background: rgba(255, 153, 51, 0.04);
    font-size: 18px;
    font-style: italic;
    color: #4B5563;
    border-radius: 0 12px 12px 0;
    line-height: 1.7;
}

/* ── Embedded Images ───────────────────────── */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 24px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.article-content figure {
    margin: 24px 0;
}

.article-content figcaption {
    font-size: 13px;
    color: #8895A7;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* ── Lists ─────────────────────────────────── */
.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 28px;
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.article-content ul li::marker {
    color: #FF9933;
}

.article-content ol li::marker {
    color: #8895A7;
    font-weight: 600;
}

/* ── Tables ────────────────────────────────── */
.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.article-content th,
.article-content td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    text-align: left;
}

.article-content th {
    background: linear-gradient(180deg, #F8FAFB, #F1F3F5);
    font-weight: 650;
    color: #0F2440;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-content td {
    background: #FFFFFF;
    color: #2D3748;
    font-size: 15px;
}

.article-content tr:last-child td {
    border-bottom: none;
}

/* ── Horizontal Rule ───────────────────────── */
.article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
    margin: 32px 0;
}

/* ── Article Tags ──────────────────────────── */

/* Tag container divider */
article > .py-6.border-t.border-gray-100.mt-6 {
    border-color: rgba(0, 0, 0, 0.06);
    padding-top: 22px;
    padding-bottom: 22px;
    margin-top: 28px;
}

/* Tags label */
article > .py-6.border-t.border-gray-100.mt-6 .text-sm.text-gray-500 {
    color: #8895A7;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Tag pills */
article > .py-6.border-t.border-gray-100.mt-6 a {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    background: #F8FAFB;
    color: #4B5563;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

article > .py-6.border-t.border-gray-100.mt-6 a:hover {
    background: rgba(255, 153, 51, 0.08);
    color: #FF9933;
    border-color: rgba(255, 153, 51, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 153, 51, 0.12);
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-facebook { background: #1877F2; }
.share-twitter { background: #000000; }
.share-whatsapp { background: #25D366; }
.share-linkedin { background: #0A66C2; }
.share-telegram { background: #0088cc; }
.share-copy { background: #6B7280; }

/* Share Pills (bottom section with text labels) */
.share-buttons-large {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.share-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #FFFFFF;
    white-space: nowrap;
}

.share-pill i {
    font-size: 17px;
}

.share-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.share-pill.whatsapp  { background: #25D366; }
.share-pill.whatsapp:hover { background: #1DA851; box-shadow: 0 6px 16px rgba(37,211,102,0.35); }

.share-pill.facebook { background: #1877F2; }
.share-pill.facebook:hover { background: #0D65D9; box-shadow: 0 6px 16px rgba(24,119,242,0.35); }

.share-pill.twitter  { background: #000000; }
.share-pill.twitter:hover { background: #1A1A1A; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }

.share-pill.linkedin { background: #0A66C2; }
.share-pill.linkedin:hover { background: #004182; box-shadow: 0 6px 16px rgba(10,102,194,0.35); }

.share-pill.telegram { background: #0088CC; }
.share-pill.telegram:hover { background: #006699; box-shadow: 0 6px 16px rgba(0,136,204,0.35); }

.share-pill.copy-link { background: #6B7280; }
.share-pill.copy-link:hover { background: #4B5563; box-shadow: 0 6px 16px rgba(107,114,128,0.35); }

/* Share Divider */
.share-divider {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.share-divider span {
    background: #FFFFFF;
    padding: 0 20px;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.share-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E5E7EB;
    z-index: 0;
}

/* Social Share Section Top */
.social-share-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.social-share-bottom {
    margin: 30px 0 15px 0;
    padding: 28px 10px 15px 10px;
    border-top: 2px solid #f0f0f0;
}

/* Responsive Share Pills */
@media (max-width: 640px) {
    .share-pill {
        padding: 10px 14px;
        font-size: 12px;
        gap: 5px;
        border-radius: 50px;
    }
    .share-pill i {
        font-size: 15px;
    }
    .share-pill span {
        display: none;
    }
    .share-buttons-large {
        gap: 6px;
    }
    .social-share-bottom {
        padding: 20px 5px 10px 5px;
    }
    .share-divider span {
        font-size: 12px;
        padding: 0 10px;
    }
}

@media (min-width: 641px) {
    .share-pill {
        padding: 12px 24px;
    }
}

/* ============================================
   BREADCRUMB — Premium Upgrade
   ============================================ */

.breadcrumb {
    padding: 10px 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.breadcrumb a {
    color: #8895A7;
    transition: color 0.3s ease;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #FF9933;
}

.breadcrumb .separator {
    color: #C4C9D0;
    margin: 0 10px;
    font-weight: 300;
}

/* Active breadcrumb item (category page) */
.breadcrumb .text-saffron.font-semibold {
    color: #FF9933;
    font-weight: 650;
}

/* Active breadcrumb item (single article page) */
.breadcrumb .text-gray-400 {
    color: #8895A7;
    font-weight: 500;
}

/* ============================================
   PAGINATION — Premium Upgrade
   ============================================ */

/* ── Container ────────────────────────────── */
nav[aria-label="Pagination"] {
    padding: 12px 0 8px 0;
}

/* ── All Page Links ───────────────────────── */
nav[aria-label="Pagination"] a {
    font-weight: 600;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    border-radius: 10px;
    padding: 9px 14px;
    color: #4B5563;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease;
}

/* ── Inactive Page Hover ──────────────────── */
nav[aria-label="Pagination"] a:not(.text-white):not(.opacity-50):hover {
    background: rgba(255, 153, 51, 0.08);
    color: #FF9933;
    transform: translateY(-1px);
}

/* ── Active Page ──────────────────────────── */
nav[aria-label="Pagination"] a.text-white {
    background: linear-gradient(135deg, #FF9933, #F59E0B);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 153, 51, 0.3);
}

nav[aria-label="Pagination"] a.text-white:hover {
    background: linear-gradient(135deg, #FF9933, #F59E0B);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 153, 51, 0.4);
}

/* ── Disabled Prev/Next ───────────────────── */
nav[aria-label="Pagination"] a.opacity-50 {
    opacity: 0.3;
    color: #C4C9D0;
    cursor: default;
}

nav[aria-label="Pagination"] a.opacity-50:hover {
    background: transparent;
    color: #C4C9D0;
    transform: none;
}

/* ── Ellipsis ─────────────────────────────── */
nav[aria-label="Pagination"] span {
    color: #C4C9D0;
    font-weight: 500;
    padding: 8px 2px;
}

/* Article container: contain floats without clipping (override overflow-hidden) */
.main-content > article {
    display: flow-root;
    overflow: visible;
}

/* ============================================
   ARTICLE FEATURED IMAGE
   ============================================ */
.article-image-wrapper {
    display: block;
    margin: 0 0 20px 0;
    padding: 0;
    overflow: hidden;
    background: #f8f9fa;
}

.article-image-wrapper img.featured-media {
    display: block;
    width: 100%;
    height: auto;
}

.article-image-wrapper video.featured-media {
    display: block;
    width: 100%;
    max-height: 560px;
    background: #000;
}

/* Media Position: Left */
.featured-media-left {
    float: none;
    width: 100%;
    max-width: 100%;
}

/* Media Position: Right */
.featured-media-right {
    float: none;
    width: 100%;
    max-width: 100%;
}

/* Media Position: Center (full width, centered) */
.featured-media-center {
    max-width: 100%;
}

@media (max-width: 640px) {
    .featured-media-left,
    .featured-media-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 16px 0;
    }
}

/* Media Caption (inside figure, below image/video) */
.media-caption {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #f8f9fa;
    line-height: 1.6;
    border-radius: 0 0 12px 12px;
    margin: 0;
}

.featured-media-left .media-caption,
.featured-media-right .media-caption {
    border-radius: 0 0 12px 12px;
}

@media (max-width: 640px) {
    .media-caption {
        padding: 8px 12px;
        font-size: 13px !important;
    }
}
/* ============================================
   PULL QUOTES
   ============================================ */
.pull-quote {
    float: right;
    width: 280px;
    margin: 10px 0 20px 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,153,51,0.08), rgba(26,60,110,0.03));
    border-left: 4px solid #FF9933;
    border-radius: 0 8px 8px 0;
    font-size: 18px;
    font-weight: 500;
    color: #0F2440;
    line-height: 1.5;
    font-style: italic;
}

@media (max-width: 640px) {
    .pull-quote {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
}

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot {
    overflow: hidden;
    text-align: center;
}

.ad-slot ins {
    display: block !important;
    margin: 0 auto;
}

/* ============================================
   PAGE LOADER
   ============================================ */
#page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   SEARCH HIGHLIGHT
   ============================================ */
.search-highlight {
    background: rgba(255, 153, 51, 0.25);
    padding: 0 2px;
    border-radius: 2px;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
#scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #FF9933;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(255,153,51,0.4);
    z-index: 30;
}

#scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#scroll-top:hover {
    background: #E68A2E;
}

/* ============================================
   SIDEBAR — Premium Upgrade
   ============================================ */

/* ── Sidebar Widget Cards ─────────────────────────────── */
.sidebar .bg-white.rounded-xl {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.sidebar .bg-white.rounded-xl:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ── Most Read: Ranking Numbers ───────────────────────── */
.sidebar a.flex.gap-3 > span.text-2xl.font-bold {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: color 0.25s ease;
}
.sidebar a.flex.gap-3:hover > span.text-2xl.font-bold {
    color: #FF9933;
}

/* ── Most Read: Title ─────────────────────────────────── */
.sidebar a.flex.gap-3 h4.text-sm.font-semibold {
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* ── Most Read: Date ──────────────────────────────────── */
.sidebar a.flex.gap-3 .text-xs.text-gray-500 {
    color: #8895A7;
    font-weight: 500;
}

/* ── Push Notification Widget ──────────────────────────── */
.push-notification-widget {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF5 100%);
    padding: 24px 20px 22px 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.push-notification-widget:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ── Bell Icon Container ───────────────────────────────── */
.push-notify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,153,51,0.12), rgba(255,153,51,0.05));
    margin-bottom: 14px;
}
.push-notify-icon i {
    font-size: 23px;
    color: #FF9933;
    line-height: 1;
}

/* ── Title ─────────────────────────────────────────────── */
.push-notify-title {
    font-size: 17px;
    font-weight: 750;
    color: #0F2440;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* ── Description ───────────────────────────────────────── */
.push-notify-desc {
    font-size: 13.5px;
    color: #5A6470;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* ── Enable Button ─────────────────────────────────────── */
.push-notify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    background: linear-gradient(135deg, #FF9933, #F59E0B);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}
.push-notify-btn i {
    font-size: 15px;
}
.push-notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.35);
    background: linear-gradient(135deg, #F59E0B, #E68A2E);
}
.push-notify-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 153, 51, 0.2);
}

/* ── State Icon (emoji inside icon container) ──────────── */
.push-notify-icon .state-icon {
    font-size: 24px;
    line-height: 1;
}

/* ── Loading State ─────────────────────────────────────── */
@keyframes push-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.push-notify-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: push-spin 0.6s linear infinite;
    flex-shrink: 0;
}
.push-notify-btn.loading {
    pointer-events: none;
    opacity: 0.85;
    cursor: wait;
    transform: none;
    box-shadow: none;
}
.push-notify-btn.loading:hover {
    transform: none;
    box-shadow: none;
}

/* ── Success State ─────────────────────────────────────── */
.push-notify-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.05));
}
.push-notify-btn.granted {
    background: linear-gradient(135deg, #10B981, #059669);
    pointer-events: none;
    opacity: 0.92;
    cursor: default;
}
.push-notify-btn.granted:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #10B981, #059669);
}
.push-notify-btn.granted i {
    color: #FFFFFF;
}

/* ── Denied State ──────────────────────────────────────── */
.push-notify-icon.denied {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.05));
}
.push-notify-desc.denied-text {
    color: #92400E;
}
.push-notify-btn.denied {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    color: #6B7280;
    pointer-events: none;
    cursor: not-allowed;
}
.push-notify-btn.denied:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
}

/* ── Unsupported State ─────────────────────────────────── */
.push-notify-icon.unsupported {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.12), rgba(156, 163, 175, 0.05));
}

/* ── DAM Advertisements — Global Premium Base ────────── */
.dam-ad {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    background: #FFFFFF;
    padding: 4px;
    transition: box-shadow 0.3s ease;
}
.dam-ad:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}
.dam-ad img {
    border-radius: 10px;
    display: block;
    width: 100%;
    height: auto;
}

/* ── DAM Sidebar Advertisements ───────────────────────── */
.sidebar .dam-ad {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    background: #FFFFFF;
    padding: 4px;
    transition: box-shadow 0.3s ease;
}
.sidebar .dam-ad:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}
.sidebar .dam-ad img {
    border-radius: 10px;
}

/* ── Sidebar Widget Headers ───────────────────────────── */
.sidebar h3.text-lg.font-bengali.font-bold {
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* ── Widget Accent Bar ────────────────────────────────── */
.sidebar h3 .w-1.h-6.bg-saffron.rounded-full {
    width: 4px;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(255, 153, 51, 0.2);
}

/* ── Follow Us Widget ─────────────────────────────────── */
.sidebar .bg-white.rounded-xl:last-of-type {
    padding: 18px 20px 20px 20px;
}

/* ── Social Buttons ───────────────────────────────────── */
.sidebar a[class*="bg-"][class*="hover:bg-"] {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}
.sidebar a[class*="bg-"][class*="hover:bg-"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* ── Most Read List Item Divider ──────────────────────── */
.sidebar .space-y-4 > a.flex.gap-3 {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding-left 0.25s ease;
}
.sidebar .space-y-4 > a.flex.gap-3:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.sidebar .space-y-4 > a.flex.gap-3:hover {
    padding-left: 3px;
}

/* ============================================
   STICKY SIDEBAR
   ============================================ */
@media (min-width: 1025px) {
    .sticky-sidebar {
        position: sticky;
        top: 120px;
    }
}

/* ============================================
   RELATED NEWS + SIDEBAR — Premium Phase 4
   ============================================ */

/* ── Related News Section Spacing ─────────── */
section.mt-12:has(.section-heading) {
    margin-top: 44px;
}

section.mt-12 .grid.gap-6 {
    gap: 26px;
}

/* ── Related News Card Title Hover ────────── */
.news-card h3 a {
    transition: color 0.25s ease;
}

/* ── Sidebar Container ────────────────────── */
.sidebar.sticky-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Override space-y-6 with uniform gap */
.sidebar aside.space-y-6 {
    gap: 24px;
}

/* ── Most Read List Item Polish ───────────── */
.sidebar .space-y-4 > a.flex.gap-3 {
    border-radius: 8px;
    padding: 6px 4px 14px 4px;
    margin: 0 -4px;
}

.sidebar .space-y-4 > a.flex.gap-3:last-child {
    padding-bottom: 6px;
}

/* ── Most Read Gold Numbers (Top 3) ───────── */
.sidebar a.flex.gap-3 > span.text-saffron.text-2xl.font-bold {
    color: #FF9933;
    text-shadow: 0 1px 3px rgba(255, 153, 51, 0.2);
}

/* ── Most Read Date/Time Alignment ────────── */
.sidebar a.flex.gap-3 .flex.items-center.gap-3.mt-1\.5 {
    gap: 12px;
}

/* ── Widget Internal Padding Consistency ──── */
.sidebar .bg-white.rounded-xl.p-5 {
    padding: 20px 22px 22px 22px;
}

/* ── Follow Us Widget Bottom Spacing ──────── */
.sidebar .bg-white.rounded-xl:last-of-type {
    padding-bottom: 22px;
}

/* ── Sidebar Divider Between Widgets ──────── */
.sidebar aside.space-y-6 > *:not(:last-child)::after {
    display: none;
}

/* ── Newsletter Input Focus Ring ──────────── */
.sidebar form input[type="email"]:focus-visible {
    outline: none;
    border-color: #FF9933;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.10);
}

/* ── Newsletter Subscribe Button Active ───── */
.sidebar form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ============================================
   PREV/NEXT NAV + COMMENTS — Premium Phase 5
   ============================================ */

/* ── Previous / Next Article Navigation ───── */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 8px;
}

.article-nav-prev,
.article-nav-next {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.25s ease, border-color 0.3s ease;
}

.article-nav-prev:hover,
.article-nav-next:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
    border-color: rgba(255, 153, 51, 0.15);
}

/* Arrow icon container */
.article-nav-prev .nav-icon,
.article-nav-next .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 153, 51, 0.08);
    color: #FF9933;
    font-size: 15px;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.article-nav-prev:hover .nav-icon,
.article-nav-next:hover .nav-icon {
    background: rgba(255, 153, 51, 0.14);
}

/* Navigation label ("Previous" / "Next") */
.article-nav-prev .nav-label,
.article-nav-next .nav-label {
    font-size: 11px;
    font-weight: 650;
    color: #8895A7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 2px;
}

/* Navigation title */
.article-nav-prev .nav-title,
.article-nav-next .nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.article-nav-prev:hover .nav-title,
.article-nav-next:hover .nav-title {
    color: #FF9933;
}

/* Right-align next nav */
.article-nav-next {
    text-align: right;
    justify-content: flex-end;
}

/* ── Comments Section Container ───────────── */
.comments-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.comments-section h2,
.comments-section h3 {
    font-size: 22px;
    font-weight: 750;
    color: #0F2440;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

/* ── Comment Item ─────────────────────────── */
.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-item:last-child {
    border-bottom: none;
}

/* ── Comment Avatar ────────────────────────── */
.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255,153,51,0.10), rgba(26,60,110,0.05));
}

.comment-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8EDF2, #DDE4EC);
    border: 2px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.comment-avatar-placeholder i {
    font-size: 17px;
    color: #8895A7;
}

/* ── Comment Body ─────────────────────────── */
.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: 15px;
    font-weight: 650;
    color: #0F2440;
    margin-bottom: 2px;
}

.comment-date {
    font-size: 12px;
    color: #8895A7;
    font-weight: 500;
    margin-bottom: 8px;
}

.comment-text {
    font-size: 15px;
    line-height: 1.65;
    color: #4B5563;
    margin-bottom: 8px;
}

/* ── Comment Reply Button ─────────────────── */
.comment-reply {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #8895A7;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: color 0.25s ease, background 0.25s ease;
}

.comment-reply:hover {
    color: #FF9933;
    background: rgba(255, 153, 51, 0.06);
}

.comment-reply i {
    font-size: 11px;
}

/* ── Nested Replies Indentation ───────────── */
.comment-replies {
    margin-left: 36px;
    padding-left: 16px;
    border-left: 2px solid rgba(255, 153, 51, 0.15);
}

/* ── Comments Empty State ──────────────────── */
.comments-empty {
    text-align: center;
    padding: 44px 24px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.comments-empty .empty-icon {
    display: block;
    font-size: 44px;
    color: #C4C9D0;
    margin-bottom: 16px;
}

.comments-empty h4 {
    font-size: 17px;
    font-weight: 650;
    color: #0F2440;
    margin-bottom: 6px;
}

.comments-empty p {
    font-size: 14px;
    color: #8895A7;
    max-width: 26rem;
    margin: 0 auto;
}

/* ── Comment Form ─────────────────────────── */
.comment-form {
    margin-top: 28px;
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.comment-form h3,
.comment-form h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0F2440;
    margin-bottom: 18px;
}

/* ── Form Inputs ──────────────────────────── */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
    color: #2D3748;
    background: #FFFFFF;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    border-color: #FF9933;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.10);
    outline: none;
}

.comment-form input::placeholder {
    color: #C4C9D0;
}

/* ── Textarea ──────────────────────────────── */
.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #2D3748;
    background: #FFFFFF;
    resize: vertical;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.comment-form textarea:focus {
    border-color: #FF9933;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.10);
    outline: none;
}

.comment-form textarea::placeholder {
    color: #C4C9D0;
}

/* ── Submit Button ─────────────────────────── */
.comment-form button[type="submit"],
.comment-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: linear-gradient(135deg, #FF9933, #F59E0B);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease;
    letter-spacing: 0.02em;
}

.comment-form button[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 153, 51, 0.3);
}

.comment-form button[type="submit"]:active,
.comment-form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── Form Labels ───────────────────────────── */
.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

/* ── Form Row Spacing ──────────────────────── */
.comment-form .form-group,
.comment-form .form-row {
    margin-bottom: 16px;
}

/* ── Validation Message ────────────────────── */
.comment-form .validation-message {
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.comment-form .validation-error {
    color: #DC2626;
}

.comment-form .validation-success {
    color: #16A34A;
}

/* ============================================
   FOOTER — Premium Upgrade
   ============================================ */

/* ── Footer Background ────────────────────── */
footer.bg-royal-blue {
    background: linear-gradient(180deg, #152C52 0%, #1A3C6E 40%, #0F2440 100%);
}

/* ── Newsletter Section ───────────────────── */
footer .border-b {
    border-color: rgba(255, 255, 255, 0.05) !important;
}
footer #newsletter-form input[type="email"] {
    border-radius: 10px;
    padding: 12px 18px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
footer #newsletter-form input[type="email"]:focus {
    border-color: #FF9933;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
    outline: none;
}
footer #newsletter-form button[type="submit"] {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
footer #newsletter-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 153, 51, 0.3);
}

/* ── Section Titles ───────────────────────── */
footer h5.text-saffron {
    font-weight: 700;
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 18px;
}
footer h5.text-saffron::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #FF9933;
    border-radius: 2px;
}

/* ── Footer Links ─────────────────────────── */
footer ul li a {
    position: relative;
    display: inline-block;
    padding-bottom: 1px;
    font-weight: 450;
    transition: color 0.3s ease;
}
footer ul li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FF9933;
    border-radius: 1px;
    transition: width 0.3s ease;
}
footer ul li a:hover::after {
    width: 100%;
}

/* ── Social Icons ─────────────────────────── */
footer a.w-10.h-10.rounded-full {
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
footer a.w-10.h-10.rounded-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
}

/* ── About Text ───────────────────────────── */
footer p.leading-relaxed {
    line-height: 1.78;
    font-weight: 400;
}

/* ── Copyright ────────────────────────────── */
footer .border-t {
    border-color: rgba(255, 255, 255, 0.05) !important;
}
footer .border-t p {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================================
   HOMEPAGE — Premium Polish (Phase 6)
   ============================================ */

/* ── Global Link Transition ───────────────── */
a[class*="hover:text-saffron"] {
    transition: color 0.3s ease;
}

/* ── Button Consistency ───────────────────── */
footer button[type="submit"],
.sidebar button[type="submit"] {
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ── Consistent Focus Rings ───────────────── */
input:focus,
textarea:focus {
    outline: none;
}

/* ── Smooth Page Background ───────────────── */
body {
    transition: background 0.3s ease;
}

/* ── Meta Text Consistency ────────────────── */
.meta-text,
.text-xs.text-gray-500,
time {
    color: #8895A7;
}

/* ── Consistent Image Hover ───────────────── */
img.card-image,
.news-card img[loading="lazy"] {
    transition: opacity 0.35s ease;
}

/* ============================================
   ARTICLE INFO BAR (Journalist + Excerpt fallback)
   ============================================ */
.article-info-bar {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    padding: 18px 24px;
    border-radius: 12px;
    margin: 0 0 24px 0;
    border-left: 4px solid #FF9933;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.info-caption {
    line-height: 1.6;
    padding: 4px 0;
}

.info-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 14px 0;
}

.info-journalist {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 640px) {
    .article-info-bar {
        padding: 14px 16px;
        margin: 0 0 18px 0;
    }
}


/* ============================================
   E-PAPER VIEWER
   ============================================ */
.epaper-header {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, #1A3C6E 0%, #2A5CA0 100%);
    color: #FFFFFF;
    border-radius: 14px;
    margin-bottom: 28px;
}
.epaper-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #FF9933;
    margin-bottom: 6px;
    line-height: 1.3;
}
.epaper-header .date {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 14px;
}
.epaper-cover {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    margin-top: 8px;
}

.epaper-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.epaper-page {
    width: 100%;
    max-width: 850px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.15);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}
.epaper-page:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.2);
}
.epaper-page img {
    width: 100%;
    height: auto;
    display: block;
}
.epaper-page-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    text-align: center;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.epaper-page:hover .epaper-page-hint {
    opacity: 1;
}

.epaper-page-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: #f3f4f6;
    color: #9CA3AF;
    font-size: 48px;
}
.epaper-page-placeholder p {
    font-size: 16px;
    margin-top: 12px;
    color: #6B7280;
}

.epaper-controls {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 850px;
    width: 100%;
}
.epaper-nav-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background: #FF9933;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.epaper-nav-btn:hover {
    background: #E08A2D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,153,51,0.3);
}
.epaper-nav-btn:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.epaper-nav-btn:disabled:hover {
    background: #D1D5DB;
    transform: none;
    box-shadow: none;
}
.epaper-nav-download {
    background: #1A3C6E;
}
.epaper-nav-download:hover {
    background: #0F2A50;
    box-shadow: 0 4px 12px rgba(26,60,110,0.3);
}
.epaper-nav-fullscreen {
    background: #10B981;
}
.epaper-nav-fullscreen:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.epaper-controls .page-info {
    font-weight: 600;
    color: #1A3C6E;
    min-width: 90px;
    text-align: center;
    font-size: 15px;
}

.epaper-thumbnails {
    max-width: 850px;
    margin: 0 auto 32px;
}
.epaper-thumbnail-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.epaper-thumbnail-grid::-webkit-scrollbar {
    height: 6px;
}
.epaper-thumbnail-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
.epaper-thumbnail-grid::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

.epaper-thumbnail {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #374151;
    padding: 6px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.epaper-thumbnail:hover {
    background: #f8f9fa;
    border-color: #E5E7EB;
}
.epaper-thumbnail.active {
    border-color: #FF9933;
    background: #FFF7ED;
}
.epaper-thumbnail img {
    width: 88px;
    height: 124px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
}
.epaper-thumbnail-placeholder {
    width: 88px;
    height: 124px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
    color: #9CA3AF;
    font-size: 18px;
    font-weight: 600;
}
.epaper-thumbnail-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
}
.epaper-thumbnail.active .epaper-thumbnail-label {
    color: #FF9933;
}

/* Fullscreen E-Paper Viewer */
.epaper-fullscreen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
}
.epaper-fullscreen-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    z-index: 10;
    flex-shrink: 0;
}
.epaper-fullscreen-topbar span {
    font-size: 15px;
    font-weight: 600;
}
.epaper-fs-actions {
    display: flex;
    gap: 8px;
}
.epaper-fs-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.epaper-fs-btn:hover {
    background: rgba(255,255,255,0.3);
}
.epaper-fs-close {
    background: #EF4444;
}
.epaper-fs-close:hover {
    background: #DC2626;
}
.epaper-fs-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: auto;
    padding: 20px;
}
.epaper-fs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.epaper-fs-nav:hover {
    background: rgba(255,255,255,0.3);
}
.epaper-fs-prev { left: 16px; }
.epaper-fs-next { right: 16px; }
.epaper-fs-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    max-width: 100%;
    max-height: 100%;
}
.epaper-fs-image-wrap img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    transform-origin: center center;
    cursor: grab;
}
@media (max-width: 768px) {
    .epaper-fs-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .epaper-fs-prev { left: 4px; }
    .epaper-fs-next { right: 4px; }
    .epaper-fs-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* ============================================
   LAZY LOADING IMAGES
   ============================================ */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

img.lazy-loaded {
    opacity: 1;
}
