:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --background-color: #f1faee;
    --text-color: #333;
    --white: #ffffff;
    --font-main: 'Encode Sans Condensed', sans-serif
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.6
}

/* Header & Nav */
.site-header {
    background: var(--white);
    color: var(--secondary-color);
    padding: 10px 0;
    position: sticky;
    /* Sticky as requested */
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 70px;
    /* CLS Fix: Reserve space, but NO FLEX here to avoid breaking layout */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: auto;
    /* push nav-links to the right on desktop */
}

.logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ── Burger Toggle (hidden on desktop, shown on mobile) ────── */
.mobile-toggle-wrap {
    display: none;
    /* hidden on desktop */
}

.mobile-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.burger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 18px;
}

.burger-icon span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: #111;
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}

/* optional: middle bar shorter for style */
.burger-icon span:nth-child(2) {
    width: 70%;
}


/* Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #eff1f3 4%, #e2e2e2 25%, #eff1f3 36%);
    background-size: 1000px 100%;
}

/* Desktop Navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    /* Tighter gap to fit all items */
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #111;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    /* Smaller to fit 7 items */
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
    white-space: nowrap;
    /* PREVENTS WRAPPING */
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links i {
    margin-right: 5px;
}

/* Dropdown Menu (Desktop) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
    list-style: none;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: var(--text-color);
    padding: 12px 20px;
    font-size: 0.95rem;
    display: block;
}

.dropdown-menu a:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

/* ── Mobile / Tablet Nav (≤1024px) ───────────────── */
@media (max-width: 1024px) {
    .nav-container {
        position: relative;
        justify-content: space-between;
        gap: 0;
    }

    .mobile-toggle-wrap {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        z-index: 2;
    }

    /* Logo absolutely centered between burger and actions */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
        margin-left: -20px;
    }

    .logo img {
        height: 36px;
        /* slightly smaller on mobile */
    }

    /* Desktop nav hidden */
    .nav-links {
        display: none !important;
    }

    /* Keep search + dark-mode toggle visible on the right */
    .header-actions {
        display: flex !important;
        align-items: center;
        gap: 6px;
    }
}

/* dark-mode burger bars */
[data-theme="dark"] .burger-icon span {
    background: #e2e8f0;
}

/* Burger ≡ → X swap when menu is open */
.mobile-menu-trigger.is-open .burger-icon span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-trigger.is-open .burger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-trigger.is-open .burger-icon span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   FOXIZ-STYLE OFF-CANVAS — Full-width top-dropdown
   ============================================================ */
.offcanvas {
    position: fixed;
    top: 70px;
    /* sits just below sticky header */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    z-index: 1999;
    transition: max-height 0.35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}

.offcanvas.active {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

[data-theme="dark"] .offcanvas {
    background: #111827;
}

/* Inner scroll container */
.offcanvas-inner {
    padding: 20px 20px 32px;
    max-width: 700px;
    margin: 0 auto;
}

/* ── Search bar ── */
.oc-search-wrap {
    margin-bottom: 24px;
}

.oc-search-form {
    display: flex;
    align-items: center;
    background: #f4f4f5;
    border-radius: 50px;
    padding: 10px 16px;
    gap: 10px;
}

[data-theme="dark"] .oc-search-form {
    background: #1e2130;
}

.oc-search-icon {
    color: #999;
    font-size: .9rem;
    flex-shrink: 0;
}

.oc-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: .95rem;
    font-family: inherit;
    color: #111;
    outline: none;
}

[data-theme="dark"] .oc-search-input {
    color: #e2e8f0;
}

.oc-search-input::placeholder {
    color: #aaa;
}

.oc-search-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: .85rem;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.oc-search-submit:hover {
    color: #e10600;
}

/* ── Sections ── */
.oc-section {
    margin-bottom: 24px;
}

.oc-section-title {
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #e10600;
    margin-bottom: 10px;
}

.oc-divider {
    height: 1px;
    background: #e5e7eb;
    margin-bottom: 16px;
}

[data-theme="dark"] .oc-divider {
    background: #2d3748;
}

/* ── 2-column link grid ── */
.oc-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    list-style: none;
}

.oc-links-grid li {
    border-bottom: 1px solid #f0f0f0;
}

[data-theme="dark"] .oc-links-grid li {
    border-bottom-color: #2d3748;
}

.oc-links-grid a {
    display: block;
    padding: 12px 4px;
    font-size: .92rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    transition: color .2s;
}

[data-theme="dark"] .oc-links-grid a {
    color: #e2e8f0;
}

.oc-links-grid a:hover {
    color: #e10600;
}

.oc-links-grid a i {
    margin-right: 6px;
    font-size: .8rem;
}


/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: 60vh;
}

/* News Grid - RESTORED */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    margin: 10px 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: border 0.3s;
}

.read-more:hover {
    border-bottom-color: var(--secondary-color);
}

/* Footer */
footer {
    background: #111;
    color: #888;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 5px solid var(--primary-color);
}

/* Responsive Menu */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}

/* Single Post & Sidebar Layout - RESTORED */
.single-post-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    /* Left-Right Layout */
    gap: 40px;
}

/* Sidebar Styles */
.sidebar-widget {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #111;
}

.widget-title-slash {
    color: #e10600;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -1px;
}

.widget-list {
    list-style: none;
}

.widget-list li {
    margin-bottom: 12px;
}

.widget-list a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: color 0.3s;
}

.widget-list a:hover {
    color: var(--primary-color);
}

.widget-post-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.widget-post-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-list li {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* V3 Single Post Components */
.post-main {
    background: #fff;
    padding: 0;
    border-radius: 8px;
}

.post-header {
    margin-bottom: 20px;
    background: transparent;
    padding: 0;
    border-left: none;
}

.post-title-main {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.post-meta-enhanced {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #555;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.meta-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.meta-share a {
    color: #666;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.meta-share a:hover {
    color: var(--primary-color);
}

.read-time {
    color: #888;
    font-size: 0.85rem;
}

.featured-image {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    overflow-x: hidden;
    /* prevent TinyMCE content from causing horizontal scroll */
}

/* Make ALL images inside post content responsive — overrides TinyMCE width/height attrs */
.post-content-body img,
.post-content-body figure img {
    max-width: 100% !important;
    width: auto !important;
    /* overrides TinyMCE inline style="width:Npx" */
    height: auto !important;
    display: block;
    border-radius: 6px;
}

/* Wrap any pre/code blocks so they don't overflow either */
.post-content-body pre,
.post-content-body table {
    max-width: 100%;
    overflow-x: auto;
}

.post-content-body p {
    margin-bottom: 20px;
}

.post-content-body h2,
.post-content-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* ── Related Posts Block ──────────────────────────────────── */
.related-posts-block {
    margin: 36px 0 28px;
    padding-top: 28px;
    border-top: 2px solid #f0f0f0;
}

.related-posts-title {
    font-size: 1rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.related-posts-title span {
    color: #999;
    font-weight: 600;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.rp-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .15s;
    padding: 10px;
}

.rp-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.rp-img-wrap {
    flex-shrink: 0;
    width: 90px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.rp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rp-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.5rem;
}

.rp-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rp-cat-badge {
    font-size: .68rem;
    font-weight: 700;
    color: #e10600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.rp-title {
    font-size: .88rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rp-date {
    font-size: .72rem;
    color: #999;
    margin-top: auto;
}

/* Dark mode */
[data-theme="dark"] .related-posts-block {
    border-top-color: #333;
}

[data-theme="dark"] .rp-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .rp-title {
    color: #eee;
}

[data-theme="dark"] .related-posts-title {
    color: #aaa;
}

/* Responsive: stack on small screens */
@media (max-width: 540px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Inline Related Card (inside post content, after para 3 & 6) ─── */
.rpi-card {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-left: 4px solid #e10600;
    border-radius: 10px;
    padding: 12px;
    margin: 24px 0;
    transition: box-shadow .2s, transform .15s;
}

.rpi-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .09);
    transform: translateY(-2px);
}

.rpi-img {
    flex-shrink: 0;
    width: 110px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.rpi-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rpi-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.6rem;
}

.rpi-body {
    flex: 1;
    min-width: 0;
}

.rpi-label {
    display: inline-block;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #e10600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

[data-theme="dark"] .rpi-card {
    background: #1e1e1e;
    border-color: #333;
    border-left-color: #e10600;
}

[data-theme="dark"] .rpi-label {
    color: #ff4444;
}

@media (max-width: 480px) {
    .rpi-img {
        width: 80px;
        height: 62px;
    }
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--secondary-color);
}

/* Responsive Single Post */
@media (max-width: 768px) {
    .single-post-container {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
    }

    .meta-share {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }

    .post-title-main {
        font-size: 1.8rem;
    }
}

/* =========================================
   MODERN NEWSPAPER HERO SECTION
   ========================================= */
.hero-wrapper {
    display: flex;
    gap: 20px;
    /* reduced from 30px */
    margin-bottom: 40px;
    align-items: stretch;
    /* equal height across all 3 columns */
}

/* Base modifications for hero cards */
.hero-wrapper .news-card {
    box-shadow: none;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden;
    transform: none;
    /* override default jump */
    margin: 0;
    /* Removing old margin to use flex gaps */
}

.hero-wrapper .news-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    /* Refined hover shadow */
}

/* Container for image zoom */
.hero-wrapper .news-card img {
    transition: transform 0.3s ease-out;
    /* Smooth zoom */
    display: block;
    /* Remove bottom gap */
}

.hero-wrapper .news-card:hover img {
    transform: scale(1.05);
    /* Image zoom */
}

.hero-wrapper .news-card:hover .news-title a {
    color: #e10600;
    /* Title hover red */
    transition: color 0.3s ease;
}

/* Typography Overrides */
.hero-wrapper .news-category {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    display: block;
}

.hero-wrapper .news-title {
    color: #111;
    font-weight: 800;
    margin: 0;
    line-height: 1.35;
}

/* Hide default read more */
.hero-wrapper .read-more {
    display: none;
}

/* --- Left Column (small stacked cards) --- */
.hero-left {
    flex: 0 0 22%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* reduced from 20px */
}

.hero-left .hero-card-small {
    flex: 1;
    /* equal height split across left cards */
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hero-left .hero-card-small img {
    height: 130px;
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
}

.hero-left .news-content {
    padding: 10px 12px 12px;
    /* tighter than old 16px */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-left .news-category {
    margin-bottom: 4px !important;
}

.hero-left .news-title {
    font-size: 14px;
    line-height: 1.4;
}

/* --- Center Column --- */
.hero-center {
    flex: 1;
    /* take remaining space after left 22% and right 24% */
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* ── Featured / Large Card — image with text overlay ———————— */
.hero-center .hero-card-large {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: none;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.hero-center .hero-card-large:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
}

.hero-center .hero-card-large img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform .35s ease;
}

.hero-center .hero-card-large:hover img {
    transform: scale(1.04);
}

/* Gradient overlay — sits at bottom of image */
.hero-center .hero-card-large .news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .4) 55%, transparent 100%);
    padding: 48px 18px 18px;
    border-radius: 0 0 10px 10px;
}

.hero-center .hero-card-large .news-category {
    display: inline-block;
    background: #e10600;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-center .hero-card-large .news-title {
    color: #fff;
    font-size: 22px;
    line-height: 1.35;
    margin: 0;
    letter-spacing: -.2px;
}

.hero-center .hero-card-large .news-title a {
    color: #fff;
}

.hero-center .hero-card-large .news-title a:hover {
    color: #f4c430;
}

.hero-center .hero-card-large .news-excerpt {
    display: none;
}

/* ── 2 Bottom Cards ————————————————————————— */
.hero-center-bottom {
    display: flex;
    gap: 14px;
    flex: 1;
    /* grow to fill remaining center column height */
    min-height: 0;
}

.hero-center-bottom .hero-card-horizontal {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-center-bottom .hero-card-horizontal img {
    flex: 1;
    /* grow to fill available card height */
    min-height: 100px;
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
}

.hero-center-bottom .news-content {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-center-bottom .news-title {
    font-size: 14px;
    line-height: 1.4;
}

/* --- Right Column (Most Read) --- */
.hero-right {
    flex: 0 0 24%;
    display: flex;
    flex-direction: column;
}

.hero-section-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 20px 0;
    padding-bottom: 0;
    text-transform: uppercase;
    flex-shrink: 0;
}

.most-read-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Stretch list to take available space */
}

.hero-right .hero-card-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 0;
    padding: 10px 0;
    background: transparent;
    flex: 1;
}

.hero-right .hero-card-list:hover {
    box-shadow: none;
}

.hero-right .hero-card-list:last-child {
    border-bottom: none;
}

/* The badge container needs to take up fixed space */
.hero-right .hero-card-list {
    position: relative;
    padding-left: 40px;
    /* Space for the red circle */
}

/* Red Circular Node */
.rank-badge {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: #e10600;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    z-index: 10;
}

.hero-right .news-content {
    padding: 0 16px 0 0;
    flex: 1;
}

.hero-right .news-title {
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-right .news-category {
    display: none;
}

.hero-right .hero-card-list img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Advertisement Box */
.hero-ad-box {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    text-align: center;
    padding: 24px;
    margin-top: 20px;
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* =========================================
   RESPONSIVE HERO SECTION
   ========================================= */

/* Tablet (2 Columns) */
@media (max-width: 1024px) {
    .hero-wrapper {
        flex-wrap: wrap;
    }

    .hero-center {
        flex: 0 0 calc(65% - 15px);
    }

    .hero-right {
        flex: 0 0 calc(35% - 15px);
    }

    /* Left column moves below and becomes a horizontal row */
    .hero-left {
        flex: 0 0 100%;
        flex-direction: row;
        /* Stack horizontally */
        margin-top: 10px;
        padding-top: 30px;
        border-top: 1px solid #e5e5e5;
    }
}

/* Mobile (Single Stacked Column) */
@media (max-width: 768px) {
    .hero-wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Enforce stacking order using flex order */
    .hero-center {
        order: 1;
        flex: 0 0 auto;
    }

    .hero-right {
        order: 2;
        flex: 0 0 auto;
    }

    .hero-left {
        order: 3;
        flex: 0 0 auto;
        flex-direction: column;
        /* Stack vertically again */
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

    /* Adjust Center Dominant font sizes */
    .hero-center .hero-card-large .news-title {
        font-size: 18px;
    }

    .hero-center .hero-card-large img {
        height: 250px;
    }

    /* Adjust Center Bottom row to stack */
    .hero-center-bottom {
        flex-direction: column;
    }

    .hero-center-bottom .hero-card-horizontal img {
        height: 200px;
        /* Better ratio for full width */
    }
}

/* ==========================================
   MOVIE REVIEW STAR RATING BLOCK
   ========================================== */
.movie-rating-block {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff8f8;
    border: 1px solid #f5c6c6;
    border-left: 4px solid #e10600;
    border-radius: 6px;
    padding: 14px 20px;
    margin: 16px 0 24px 0;
}

.movie-rating-stars {
    display: flex;
    gap: 4px;
}

.rating-star {
    font-size: 28px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.rating-star.filled {
    color: #e10600;
}

.rating-star.empty {
    color: #ddd;
}

.movie-rating-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rating-score {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1d3557;
    line-height: 1;
}

.rating-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e10600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   MOVIE REVIEW CARDS (Homepage + Category Archive)
   ========================================== */
.movie-review-section {
    margin-top: 0;
}

.movie-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.movie-cards-archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* Each card: poster left, details right */
.movie-card-archive {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}

.movie-card-archive:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Left: Poster (9:16 portrait) */
.movie-card-poster {
    width: 110px;
    min-width: 110px;
    aspect-ratio: 9/16;
    overflow: hidden;
    background: #1d3557;
    flex-shrink: 0;
}

.movie-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.movie-card-archive:hover .movie-card-poster img {
    transform: scale(1.05);
}

.movie-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1d3557, #2d4d7b);
}

/* Right: Movie Details */
.movie-card-details {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.movie-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1d3557;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Star row on card */
.movie-card-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.mcs {
    font-size: 18px;
    line-height: 1;
}

.mcs-filled {
    color: #e10600;
}

.mcs-empty {
    color: #ddd;
}

.movie-card-rating-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1d3557;
    margin-left: 4px;
}

.movie-card-rating-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e10600;
    text-transform: uppercase;
    margin-left: 4px;
    letter-spacing: 0.3px;
}

/* Meta list: Language, Genre, Date, Duration */
.movie-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.movie-meta-list li {
    font-size: 0.82rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.movie-meta-list li i {
    color: #e10600;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.movie-read-review {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e10600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 600px) {
    .movie-cards-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-poster {
        width: 90px;
        min-width: 90px;
    }
}

/* ==========================================
   MUSIC VIDEO NEWS — PORTRAIT OVERLAY CARDS
   ========================================== */
.mvn-section {
    margin: 32px 0 0 0;
}

.mvn-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 16px;
}

.mvn-view-all {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e10600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
    margin-bottom: 6px;
}

.mvn-view-all:hover {
    color: #1d3557;
}

/* 5-column grid, equal width */
.mvn-scroll-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* Each card: portrait image with dark overlay text */
.mvn-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: #fff;
    aspect-ratio: 3/4;
    background: #1d3557;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mvn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* Full-bleed image */
.mvn-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mvn-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mvn-card:hover .mvn-card-img img {
    transform: scale(1.07);
}

.mvn-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d3557, #e10600);
}

/* Bottom gradient overlay */
.mvn-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.45) 50%,
            rgba(0, 0, 0, 0.05) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 12px 12px;
    gap: 6px;
}

/* Category badge — site red, matching Bollywood feel */
.mvn-cat-badge {
    display: inline-block;
    background: #e10600;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

/* Title */
.mvn-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #fff;
    /* 3-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* Read time */
.mvn-read-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .mvn-scroll-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: horizontal scroll, show 2 cards */
@media (max-width: 768px) {
    .mvn-scroll-row {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .mvn-card {
        min-width: 175px;
        scroll-snap-align: start;
        aspect-ratio: 3/4;
    }
}

/* ==========================================
   TV SERIAL NEWS — 2-ROW EDITORIAL GRID
   ========================================== */
.tvs-section {
    margin: 32px 0 0 0;
}

.tvs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 16px;
}

/* ---- Card Base ---- */
.tvs-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tvs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ---- Card Image ---- */
.tvs-card-img {
    width: 100%;
    overflow: hidden;
    background: #1d3557;
}

.tvs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tvs-card:hover .tvs-card-img img {
    transform: scale(1.05);
}

.tvs-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d3557, #2d4d7b);
}

/* ---- Card Body ---- */
.tvs-card-body {
    padding: 12px 14px 14px;
}

.tvs-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tvs-cat-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #e10600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tvs-meta-sep {
    color: #bbb;
    font-size: 0.75rem;
}

.tvs-meta-date {
    font-size: 0.75rem;
    color: #888;
}

.tvs-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Row 1: 4 large cards ---- */
.tvs-grid-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.tvs-card-large .tvs-card-img {
    aspect-ratio: 16/10;
    /* Landscape image */
}

.tvs-card-large .tvs-card-title {
    font-size: 1.05rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* ---- Row 2: 6 smaller cards ---- */
.tvs-grid-bottom {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.tvs-card-small .tvs-card-img {
    aspect-ratio: 16/9;
}

.tvs-card-small .tvs-card-body {
    padding: 10px 12px 12px;
}

.tvs-card-small .tvs-card-title {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Tablet */
@media (max-width: 1024px) {
    .tvs-grid-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .tvs-grid-bottom {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .tvs-grid-top {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .tvs-grid-bottom {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 8px;
    }

    .tvs-card-small {
        min-width: 160px;
        scroll-snap-align: start;
    }
}

/* ==========================================
   PRESS RELEASE — 2-COLUMN HORIZONTAL LIST
   ========================================== */
.pr-section {
    margin: 32px 0 0 0;
}

.pr-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 16px;
}

/* 2-column wrapper */
.pr-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}

/* Each column is a stack of items */
.pr-col {
    display: flex;
    flex-direction: column;
}

/* Single list item — thumbnail left, text right */
.pr-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.pr-item:last-child {
    border-bottom: none;
}

.pr-item:hover .pr-item-title {
    color: #e10600;
}

/* Thumbnail */
.pr-item-img {
    width: 130px;
    min-width: 130px;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    background: #1d3557;
    flex-shrink: 0;
}

.pr-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pr-item:hover .pr-item-img img {
    transform: scale(1.05);
}

.pr-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d3557, #e10600);
}

/* Text area */
.pr-item-body {
    flex: 1;
    min-width: 0;
}

.pr-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pr-cat-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #e10600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pr-meta-sep {
    color: #ccc;
    font-size: 0.75rem;
}

.pr-meta-date {
    font-size: 0.75rem;
    color: #888;
}

.pr-item-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

/* Tablet */
@media (max-width: 900px) {
    .pr-two-col {
        grid-template-columns: 1fr;
    }

    .pr-item-img {
        width: 110px;
        min-width: 110px;
    }
}

/* Mobile */
@media (max-width: 500px) {
    .pr-item-img {
        width: 85px;
        min-width: 85px;
    }

    .pr-item-title {
        font-size: 0.88rem;
    }
}

/* ==========================================
   VIDEO CATEGORY — 4-COLUMN PLAY CARD GRID
   ========================================== */
.vid-section {
    margin: 32px 0 0 0;
}

.vid-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 16px;
}

/* 4-column grid */
.vid-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Card */
.vid-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border: 1px solid #f0f0f0;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.vid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Image container with relative positioning for play button */
.vid-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #111;
}

.vid-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.32s ease;
}

.vid-card:hover .vid-card-img img {
    transform: scale(1.06);
}

.vid-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d3557, #e10600);
}

/* ---- Centered Play Button ---- */
.vid-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s ease, background 0.22s ease;
    pointer-events: none;
}

.vid-play-btn i {
    font-size: 18px;
    color: #e10600;
    margin-left: 3px;
    /* optical center */
}

.vid-card:hover .vid-play-btn {
    transform: translate(-50%, -50%) scale(1.12);
    background: #e10600;
}

.vid-card:hover .vid-play-btn i {
    color: #fff;
}

/* Card body */
.vid-card-body {
    padding: 12px 14px 14px;
}

.vid-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.vid-cat-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #e10600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.vid-meta-sep {
    color: #ccc;
    font-size: 0.75rem;
}

.vid-meta-date {
    font-size: 0.75rem;
    color: #888;
}

.vid-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.vid-card:hover .vid-card-title {
    color: #e10600;
}

/* Tablet */
@media (max-width: 900px) {
    .vid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 500px) {
    .vid-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .vid-play-btn {
        width: 40px;
        height: 40px;
    }

    .vid-play-btn i {
        font-size: 14px;
    }
}

/* Mobile logo size + offcanvas text colour fixes */
@media (max-width: 768px) {
    .logo {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    /* Ensure offcanvas header "Menu" title is white */
    .offcanvas-header h3 {
        color: #ffffff;
        font-size: 1rem;
    }

    /* Ensure all offcanvas links are white */
    .offcanvas-links a,
    .offcanvas-submenu a {
        color: #ffffff;
    }
}

/* ==========================================
   FILMY FUN — ASYMMETRIC EDITORIAL LAYOUT
   (1 big featured left + 3 list items right)
   ========================================== */
.ff-section {
    margin: 32px 0 0;
}

.ff-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 16px;
}

/* Main two-column frame: 60/40 split */
.ff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ---- Featured big card (left) ---- */
.ff-featured {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    height: 100%;
}

.ff-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.ff-featured-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #1d3557;
}

.ff-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ff-featured:hover .ff-featured-img img {
    transform: scale(1.05);
}

.ff-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e10600, #1d3557);
}

/* "Featured" badge on image */
.ff-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e10600;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
}

.ff-featured-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ff-featured-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111;
    line-height: 1.35;
    margin: 0;
}

.ff-featured-excerpt {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.ff-read-more {
    font-size: 0.8rem;
    font-weight: 800;
    color: #e10600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* ---- Right column: 3 list items ---- */
.ff-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ff-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.ff-list-item:last-child {
    border-bottom: none;
}

.ff-list-item:hover .ff-list-title {
    color: #e10600;
}

.ff-list-img {
    width: 110px;
    min-width: 110px;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    background: #1d3557;
    flex-shrink: 0;
}

.ff-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.ff-list-item:hover .ff-list-img img {
    transform: scale(1.05);
}

.ff-list-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d3557, #e10600);
}

.ff-list-body {
    flex: 1;
    min-width: 0;
}

.ff-list-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

/* Shared meta row */
.ff-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.ff-cat-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #e10600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ff-meta-sep {
    color: #ccc;
    font-size: 0.75rem;
}

.ff-meta-date {
    font-size: 0.75rem;
    color: #888;
}

/* Tablet */
@media (max-width: 900px) {
    .ff-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   CELEBRITY LIFE — 3-COLUMN TALL SPOTLIGHT
   (Full-bleed portrait cards with overlay)
   ========================================== */
.cl-section {
    margin: 32px 0 0;
}

.cl-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 16px;
}

/* 3-column equal grid */
.cl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

/* Card: tall portrait with overlay */
.cl-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    aspect-ratio: 2/3;
    background: #111;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

/* Featured (first) card — same height as others */
.cl-card-featured {
    aspect-ratio: 2/3;
}

/* Full-bleed image */
.cl-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.cl-card:hover .cl-card-img img {
    transform: scale(1.07);
}

.cl-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1d3557 0%, #e10600 100%);
}

/* Deep bottom overlay */
.cl-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.4) 45%,
            rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 14px 14px;
    gap: 6px;
}

/* Gold-tinted badge to stand out from other sections */
.cl-cat-badge {
    display: inline-block;
    background: linear-gradient(90deg, #e10600, #c90000);
    color: #fff;
    font-size: 0.63rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.cl-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cl-date {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
}

/* Tablet */
@media (max-width: 900px) {
    .cl-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cl-card-featured {
        aspect-ratio: 2/3;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .cl-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ff-list-img {
        width: 80px;
        min-width: 80px;
    }
}

/* Single post mobile padding fix */
@media (max-width: 600px) {
    main {
        margin: 10px auto;
        padding: 0 10px;
    }

    .single-post-container {
        gap: 16px;
    }
}

/* Author Bio Box */
.author-bio-box {
    margin-top: 32px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid #eee;
}

.author-bio-name {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #111;
}

.author-bio-text {
    margin: 0 0 12px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Post Share Bar */
.post-share-bar {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

[data-theme="dark"] .author-bio-box {
    background: var(--bg-card2);
    border-color: var(--border);
}

[data-theme="dark"] .author-bio-name {
    color: #f1f5f9;
}

[data-theme="dark"] .author-bio-text {
    color: var(--text-muted);
}

[data-theme="dark"] .post-share-bar {
    border-top-color: var(--border);
    color: var(--text-muted);
}

/* ============================================================
   DARK MODE SYSTEM
   Applied via: <html data-theme="dark">
   ============================================================ */
[data-theme="dark"] {
    --bg: #0f1117;
    --bg-card: #1a1d27;
    --bg-card2: #22263a;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #2d3748;
    --primary: #e63946;
    --header-bg: #13151f;
    --input-bg: #1e2130;
    --shadow: rgba(0, 0, 0, .4);
}

[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] .site-header {
    background: var(--header-bg);
    box-shadow: 0 2px 15px var(--shadow);
}

[data-theme="dark"] .nav-links a,
[data-theme="dark"] .logo {
    color: var(--text);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--primary);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px var(--shadow);
}

[data-theme="dark"] .dropdown-menu a {
    color: var(--text);
}

[data-theme="dark"] .dropdown-menu li {
    border-color: var(--border);
}

[data-theme="dark"] .dropdown-menu a:hover {
    background: var(--bg-card2);
}

[data-theme="dark"] .menu-btn {
    color: var(--text);
}

/* Cards & post blocks */
[data-theme="dark"] .news-card,
[data-theme="dark"] .post-card,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .latest-news-widget,
[data-theme="dark"] .cat-widget,
[data-theme="dark"] .post-main,
[data-theme="dark"] article {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] .news-card:hover {
    box-shadow: 0 8px 30px var(--shadow);
}

[data-theme="dark"] .news-card .card-title a {
    color: var(--text);
}

[data-theme="dark"] .news-card .card-meta,
[data-theme="dark"] .cat-label,
[data-theme="dark"] .post-meta,
[data-theme="dark"] small {
    color: var(--text-muted);
}

/* Single post */
[data-theme="dark"] .post-content-body,
[data-theme="dark"] .post-content-body p,
[data-theme="dark"] .post-content-body li,
[data-theme="dark"] .post-content-body td {
    color: var(--text);
}

[data-theme="dark"] .post-content-body h1,
[data-theme="dark"] .post-content-body h2,
[data-theme="dark"] .post-content-body h3,
[data-theme="dark"] .post-content-body h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .post-content-body a {
    color: var(--primary);
}

[data-theme="dark"] .post-content-body blockquote {
    border-left-color: var(--primary);
    background: var(--bg-card2);
    color: var(--text-muted);
}

/* Footer */
[data-theme="dark"] footer,
[data-theme="dark"] .site-footer {
    background: #0a0c14;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

[data-theme="dark"] footer a {
    color: var(--text-muted);
}

[data-theme="dark"] footer a:hover {
    color: var(--primary);
}

/* Latest news & widgets */
[data-theme="dark"] .latest-news-item,
[data-theme="dark"] .lni-text a {
    color: var(--text);
}

[data-theme="dark"] .latest-news-item+.latest-news-item {
    border-top-color: var(--border);
}

/* Breadcrumb */
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .breadcrumb a {
    color: var(--text-muted);
}

/* Category / archive pages */
[data-theme="dark"] .page-title,
[data-theme="dark"] .archive-header {
    color: var(--text);
}

[data-theme="dark"] .category-header {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Movie review rating box */
[data-theme="dark"] .rating-box {
    background: var(--bg-card2);
    border-color: var(--border);
}

/* Author bio box */
[data-theme="dark"] .author-bio-box {
    background: var(--bg-card2);
    border-color: var(--border);
}

/* Offcanvas mobile */
[data-theme="dark"] .offcanvas {
    background: var(--bg-card);
}

/* Skeleton shimmer — dark variant */
[data-theme="dark"] .skeleton {
    background: linear-gradient(to right, #1e2130 4%, #2d3748 25%, #1e2130 36%);
}

/* ---- Dark Mode Toggle Button ---- */
.dark-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    color: #111;
    padding: 6px 8px;
    border-radius: 8px;
    transition: color .2s, background .2s;
    line-height: 1;
    display: flex;
    align-items: center;
}

.dark-toggle:hover {
    background: rgba(0, 0, 0, .06);
}

[data-theme="dark"] .dark-toggle {
    color: #f1c40f;
}

[data-theme="dark"] .dark-toggle:hover {
    background: rgba(255, 255, 255, .08);
}

.dark-toggle .icon-moon {
    display: block;
}

.dark-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .dark-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .dark-toggle .icon-sun {
    display: block;
}

/* ---- Header actions group (search + dark toggle) ---- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
}

/* ---- Search Icon Button ---- */
.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #111;
    padding: 6px 8px;
    border-radius: 8px;
    transition: color .2s, background .2s;
    line-height: 1;
    display: flex;
    align-items: center;
}

.search-btn:hover {
    background: rgba(0, 0, 0, .06);
    color: var(--primary-color);
}

[data-theme="dark"] .search-btn {
    color: var(--text);
}

[data-theme="dark"] .search-btn:hover {
    background: rgba(255, 255, 255, .08);
}

/* ============================================================
   SEARCH OVERLAY / POPUP
   ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-popup {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 660px;
    margin: 0 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    overflow: hidden;
    transform: translateY(-24px) scale(.97);
    transition: transform .25s ease;
}

.search-overlay.active .search-popup {
    transform: translateY(0) scale(1);
}

[data-theme="dark"] .search-popup {
    background: #1a1d27;
    border: 1px solid #2d3748;
}

.search-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

[data-theme="dark"] .search-popup-header {
    border-bottom-color: #2d3748;
}

.search-popup-header i {
    color: #aaa;
    font-size: 1rem;
}

#search-popup-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 600;
    background: transparent;
    color: #111;
}

[data-theme="dark"] #search-popup-input {
    color: #e2e8f0;
}

[data-theme="dark"] #search-popup-input::placeholder {
    color: #64748b;
}

.search-close-btn {
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    font-size: .8rem;
    color: #555;
    padding: 4px 9px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    white-space: nowrap;
}

[data-theme="dark"] .search-close-btn {
    background: #2d3748;
    color: #94a3b8;
}

/* Search results inside popup */
.search-popup-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #fafafa;
}

[data-theme="dark"] .search-result-item {
    color: #e2e8f0;
    border-bottom-color: #2d3748;
}

[data-theme="dark"] .search-result-item:hover {
    background: #22263a;
}

.search-result-img {
    width: 54px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}

[data-theme="dark"] .search-result-img {
    background: #2d3748;
}

.search-result-text {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-cat {
    font-size: .74rem;
    color: #e63946;
    font-weight: 700;
    margin-top: 2px;
    display: block;
}

.search-result-date {
    font-size: .72rem;
    color: #aaa;
    display: block;
}

.search-popup-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

[data-theme="dark"] .search-popup-footer {
    border-top-color: #2d3748;
}

.search-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 700;
    color: #e63946;
    text-decoration: none;
}

.search-view-all:hover {
    text-decoration: underline;
}

.search-state {
    padding: 28px 20px;
    text-align: center;
    color: #aaa;
    font-size: .9rem;
}

[data-theme="dark"] .search-state {
    color: #64748b;
}

/* ============================================================
   SEARCH RESULTS (search.php) ARCHIVE PAGE
   ============================================================ */
.search-archive-header {
    padding: 20px 0 12px;
    border-bottom: 2px solid #e63946;
    margin-bottom: 24px;
}

.search-archive-header h1 {
    font-size: 1.4rem;
    font-weight: 800;
}

.search-archive-header h1 span {
    color: #e63946;
}

.search-archive-count {
    color: #888;
    font-size: .85rem;
    margin-top: 4px;
}

[data-theme="dark"] .search-archive-header h1 {
    color: #f1f5f9;
}

[data-theme="dark"] .search-archive-count {
    color: #64748b;
}

.search-form-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.search-form-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 600;
    outline: none;
    background: #fff;
    color: #111;
    transition: border .2s;
}

.search-form-bar input:focus {
    border-color: #e63946;
}

[data-theme="dark"] .search-form-bar input {
    background: #1e2130;
    border-color: #2d3748;
    color: #e2e8f0;
}

.search-form-bar button {
    background: #e63946;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 800;
    font-size: .95rem;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.search-form-bar button:hover {
    background: #c0303c;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.search-no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

[data-theme="dark"] .search-no-results {
    color: #475569;
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 40px 0 20px;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pg-btn:hover {
    background: #e10600;
    color: #fff;
    border-color: #e10600;
}

.pg-btn.pg-active {
    background: #e10600;
    color: #fff;
    border-color: #e10600;
    pointer-events: none;
}

.pg-btn.pg-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.pg-ellipsis {
    padding: 0 4px;
    color: #94a3b8;
    font-weight: 600;
}

.pg-info {
    font-size: 0.8rem;
    color: #64748b;
    margin-left: 8px;
}

[data-theme="dark"] .pg-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .pg-btn:hover,
[data-theme="dark"] .pg-btn.pg-active {
    background: #e10600;
    border-color: #e10600;
    color: #fff;
}

/* ============================================================
   SOCIAL MEDIA FEED SECTION
   ============================================================ */
.sf-section {
    padding: 0 0 36px;
}

.sf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sf-embed-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .sf-embed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .sf-embed-grid {
        grid-template-columns: 1fr;
    }
}


/* ── Embed frame inside a card ── */
.sf-embed-frame {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* let embed fill the card */
}

/* YouTube: 16:9 responsive iframe */
.sf-embed-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* Facebook plugin */
.sf-embed-fb iframe {
    aspect-ratio: unset;
    min-height: 250px;
    flex-grow: 1;
}

/* Instagram blockquote resets */
.sf-embed-ig {
    overflow: hidden;
    background: #fff;
}

.sf-embed-ig .instagram-media {
    margin: 0 !important;
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Twitter blockquote */
.sf-embed-tw {
    background: #fff;
    overflow: hidden;
}

.sf-embed-tw .twitter-tweet {
    margin: 0 auto;
    width: 100% !important;
}

/* ── Base Card ── */
.sf-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* force equal heights */
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #111;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
    transition: transform .25s, box-shadow .25s;
    position: relative;
}

.sf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
}

/* ── Top brand strip ── */
.sf-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #fff;
    font-weight: 800;
}

.sf-platform-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.sf-platform-name {
    font-size: .85rem;
    letter-spacing: .3px;
}

.sf-card-date {
    font-size: .72rem;
    margin-left: auto;
    opacity: .8;
}

/* Platform colours */
.sf-youtube .sf-card-top {
    background: #ff0000;
}

.sf-facebook .sf-card-top {
    background: #1877f2;
}

.sf-instagram .sf-card-top {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.sf-twitter .sf-card-top {
    background: #000;
}

/* ── Thumbnail (YouTube) ── */
.sf-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
}

.sf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.sf-card:hover .sf-thumb img {
    transform: scale(1.04);
}

.sf-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity .25s;
}

.sf-card:hover .sf-play-btn {
    opacity: 1;
}

/* ── Body ── */
.sf-card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sf-no-thumb {
    justify-content: center;
    min-height: 80px;
}

.sf-post-title {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.45;
    color: #111;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-date {
    font-size: .75rem;
    color: #999;
}

/* ── CTA bar ── */
.sf-cta {
    padding: 10px 14px;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-top: 1px solid #f0f0f0;
    color: #e10600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sf-cta i {
    font-size: .7rem;
}

/* Dark mode */
[data-theme="dark"] .sf-card {
    background: #1e2130;
    color: #e2e8f0;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}

[data-theme="dark"] .sf-post-title {
    color: #e2e8f0;
}

[data-theme="dark"] .sf-cta {
    border-top-color: #2d3748;
}

/* ── Share & Follow Section ── */
.sf-share-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .sf-share-wrap {
        grid-template-columns: 1fr;
    }
}

/* Left: latest post preview */
.sf-latest-post {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .07);
}

.sf-post-img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.sf-post-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.sf-post-img-wrap:hover img {
    transform: scale(1.04);
}

.sf-post-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e10600;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 4px 10px;
    border-radius: 4px;
}

.sf-post-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sf-post-cat {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #e10600;
}

.sf-post-h {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    color: #111;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-post-h:hover {
    color: #e10600;
}

/* Right col */
.sf-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Share label */
.sf-share-label {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Share buttons grid */
.sf-share-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sf-sbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    transition: opacity .2s, transform .2s;
}

.sf-sbtn:hover {
    opacity: .88;
    transform: translateY(-2px);
}

.sf-sbtn-fb {
    background: #1877f2;
}

.sf-sbtn-tw {
    background: #000;
}

.sf-sbtn-wa {
    background: #25d366;
}

.sf-sbtn-tg {
    background: #0088cc;
}

/* YouTube strip */
.sf-yt-strip {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}

.sf-yt-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    text-decoration: none;
    background: #fff;
    align-items: center;
    transition: box-shadow .2s;
}

.sf-yt-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}

.sf-yt-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.sf-yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sf-yt-info {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sf-yt-label {
    font-size: .72rem;
    font-weight: 800;
    color: #888;
}

.sf-yt-title {
    font-size: .85rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dark mode for share section */
[data-theme="dark"] .sf-latest-post,
[data-theme="dark"] .sf-yt-card {
    background: #1e2130;
}

[data-theme="dark"] .sf-post-h,
[data-theme="dark"] .sf-yt-title {
    color: #e2e8f0;
}

/* =========================================================================
   FOXIZ-STYLE REDESIGNED FOOTER
========================================================================= */
.site-footer {
    background-color: #f7f7f7;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: inherit;
    color: #4b5563;
    padding-top: 60px;
    border-top: 1px solid #e5e7eb;
    position: relative;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

/* --- Columns --- */
.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.footer-mission {
    padding-right: 20px;
}

.quote-icon {
    display: inline-block;
    font-size: 30px;
    line-height: 1;
    color: #111827;
    font-family: Georgia, serif;
    font-weight: 900;
    margin-bottom: 10px;
}

.quote-icon::before {
    content: "//";
    font-style: italic;
    letter-spacing: -2px;
}

.mission-text {
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.highlight-letter {
    background-color: #fb3958;
    color: #fff;
    padding: 0 6px 2px 6px;
    display: inline-block;
}

/* --- Links & Badges --- */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
    display: block;
}

.footer-links a {
    color: #4b5563;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #e10600;
}

.badge {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    text-transform: capitalize;
}

.badge-new {
    background-color: #ff5722;
}

.badge-hot {
    background-color: #8bc34a;
}

.badge-trend {
    background-color: #e91e63;
}

/* --- Newsletter / RSS Contact --- */
.newsletter-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #6b7280;
}

.rss-contact-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s;
}

.contact-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 1.2rem;
}

.contact-item a {
    text-decoration: none;
    color: #111827;
    font-size: 0.9rem;
}

/* --- Bottom Bar --- */
.footer-bottom {
    background-color: #fff;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bottom-left,
.bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-small img {
    max-height: 40px;
    width: auto;
    border-radius: 4px;
}

.copyright-text {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

.follow-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
    margin-right: 10px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-socials a {
    color: #111827;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.footer-socials a:hover {
    opacity: 0.7;
    color: #e10600;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.footer-bottom-links a {
    color: #111827;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #e10600;
}

.dot-sep {
    color: #d1d5db;
}

/* --- Scroll Top --- */
.scroll-top-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.scroll-top-btn:hover {
    background: #e10600;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-mission {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-links li {
        justify-content: center;
    }

    .bottom-flex {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .bottom-left,
    .bottom-right {
        flex-direction: column;
        gap: 15px;
    }

    .scroll-top-btn {
        right: 15px;
        bottom: 20px;
    }
}

/* --- Dark Mode Overrides (Optional Integration) --- */
[data-theme="dark"] .site-footer {
    background-color: #1e2130;
    background-image: radial-gradient(#2d3748 1px, transparent 1px);
    border-top: 1px solid #334155;
}

[data-theme="dark"] .footer-heading,
[data-theme="dark"] .mission-text,
[data-theme="dark"] .follow-text,
[data-theme="dark"] .footer-bottom-links a,
[data-theme="dark"] .footer-socials a,
[data-theme="dark"] .contact-item a {
    color: #f8fafc;
}

[data-theme="dark"] .quote-icon {
    color: #f8fafc;
}

[data-theme="dark"] .footer-links a {
    color: #cbd5e1;
}

[data-theme="dark"] .footer-bottom {
    background-color: #151828;
    border-top: 1px solid #334155;
}

[data-theme="dark"] .contact-item {
    background-color: #1e2130;
    border-color: #334155;
}

/* ==========================================
   GLOBAL HORIZONTAL SCROLL PREVENTION
   Fixes wide post content on mobile
   ========================================== */

/* Prevent the entire page from overflowing horizontally */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ---- Post Content Body: Constrain all children ---- */
.post-content-body {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Images inside post content must never exceed container */
.post-content-body img,
.post-content-body video,
.post-content-body iframe,
.post-content-body embed,
.post-content-body object {
    max-width: 100% !important;
    height: auto !important;
}

/* Tables: allow horizontal scroll within table only */
.post-content-body table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

/* Pre/code blocks */
.post-content-body pre,
.post-content-body code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---- Single Post Container: prevent sidebar from pushing layout ---- */
.single-post-container {
    max-width: 100%;
    overflow: hidden;
}

/* ---- Featured Image: always aspect-ratio correct ---- */
.featured-image {
    width: 100%;
    overflow: hidden;
}

.featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Mobile: ensure post article doesn't overflow ---- */
@media (max-width: 768px) {
    .post-main {
        max-width: 100%;
        overflow: hidden;
    }

    .post-content-body img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* WordPress-style wide/full-align images */
    .post-content-body .alignwide,
    .post-content-body .alignfull,
    .post-content-body .wp-block-image {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Inline styles with fixed widths from TinyMCE */
    .post-content-body [style*="width"] img {
        max-width: 100% !important;
    }
}
