/* --- CSS Variables --- */
:root {
    --primary: #1a56db;
    --primary-dark: #1242b4;
    --primary-light: #dbeafe;
    --secondary: #1e3a5f;
    --accent: #e63946;
    --accent-dark: #c1121f;
    --white: #ffffff;
    --light: #f3f6fc;
    --light-border: #e2e8f0;
    --muted: #64748b;
    --dark: #0f172a;
    --text: #1e293b;
    --text-light: #475569;

    --font-heading: "Outfit", sans-serif;
    --font-body: "Noto Sans", sans-serif;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.16);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Suppress Microsoft Edge / IE native password reveal & clear icons */
input::-ms-reveal,
input::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: #ffffff;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   FIXED SITE HEADER (TOP BAR + PRIMARY NAV)
   ============================================================ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
    #primary-nav .nav-brand {
        display: none !important;
        max-width: 0 !important;
        opacity: 0 !important;
        margin: 0 !important;
    }
}

/* ============================================================
   TOP BAR
   ============================================================ */
#top-bar {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='rgba%2830,58,95,0.18%29' stroke-width='2' stroke-linecap='square'%3E%3Cpolygon points='32,24 40,32 32,40 24,32'/%3E%3Cpolygon points='32,16 48,32 32,48 16,32'/%3E%3Cpolygon points='32,8 56,32 32,56 8,32'/%3E%3Cpolygon points='32,0 64,32 32,64 0,32'/%3E%3Cpath d='M0,24 L24,0 M0,16 L16,0 M0,8 L8,0'/%3E%3Cpath d='M40,0 L64,24 M48,0 L64,16 M56,0 L64,8'/%3E%3Cpath d='M0,40 L24,64 M0,48 L16,64 M0,56 L8,64'/%3E%3Cpath d='M40,64 L64,40 M48,64 L64,48 M56,64 L64,56'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 64px 64px;
    color: #1e293b;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 1050;
}

#top-bar a {
    color: #334155;
    transition: color 0.2s ease;
}

#top-bar a:hover {
    color: #1a56db;
}

.top-bar-divider {
    width: 1px;
    height: 16px;
    background: #cbd5e1;
}

/* Pure White Card holding top-bar data */
.top-bar-data-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1;
}

.top-bar-data-card i,
.top-bar-data-card .icon-black {
    color: #000000 !important;
    font-size: 0.92rem;
    margin-right: 7px;
}

.top-bar-card-sep {
    width: 1px;
    height: 14px;
    background: #cbd5e1;
    margin: 0 12px;
    flex-shrink: 0;
}

.top-bar-card-link {
    color: #1e293b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.top-bar-card-link:hover {
    color: #1a56db;
}

/* Mobile Toggler inside Top Bar */
.top-bar-toggler {
    padding: 5px 8px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.top-bar-toggler:hover,
.top-bar-toggler:focus {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.15) !important;
}

.top-bar-toggler .navbar-toggler-icon {
    width: 22px !important;
    height: 22px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

#top-bar .social-icon {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
}
#top-bar .social-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.top-bar-logo {
    text-decoration: none;
    transition: opacity var(--transition);
}
.top-bar-logo:hover {
    opacity: 0.85;
}

.top-bar-logo-img {
    height: 75px !important;
    width: auto !important;
    flex-shrink: 0;
    object-fit: contain;
    margin-left: 0;
}



.top-bar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.18);
}

.top-bar-saved {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 20px;
    transition: all var(--transition);
}
.top-bar-saved:hover,
.top-bar-saved.active {
    color: #fff;
    background: rgba(230, 57, 70, 0.85);
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(26, 86, 219, 0.25);
    transition: transform var(--transition);
}
.logo-icon.small {
    width: 34px;
    height: 34px;
    font-size: 16px;
    display: inline-flex;
    border-radius: var(--radius-sm);
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.6px;
    line-height: 1;
    display: block;
}

/* Search Pill */
.masthead-search .search-container {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--light-border);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}
.masthead-search .search-container:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.15);
    background: var(--white);
}
.masthead-search .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 14.5px;
    padding: 8px 16px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    color: var(--text);
}
.masthead-search .form-control:focus {
    box-shadow: none;
    outline: none;
    background: transparent;
}

/* Global Badges */
.category-badge {
    display: inline-block;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.masthead-search .search-btn {
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(26, 86, 219, 0.2);
}
.masthead-search .search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(26, 86, 219, 0.3);
}
.masthead-search .search-btn i {
    font-size: 14px;
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
#breaking-bar {
    background: var(--accent);
    color: #fff;
    padding: 7px 0;
    overflow: hidden;
}

.breaking-label {
    background: rgba(0, 0, 0, 0.25);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 14px;
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
}
.ticker-content {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    animation: ticker 28s linear infinite;
}
@keyframes ticker {
    0% {
        transform: translateX(110%);
    }
    100% {
        transform: translateX(-110%);
    }
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
#primary-nav {
    background: var(--primary);
    padding: 0;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.25);
}

#primary-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    margin: 6px 0;
}
#primary-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Brand mark: hidden while the top-bar logo is in view, fades in once the
   page scrolls and the nav becomes the only visible header element. */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    text-decoration: none;
    transition:
        max-width var(--transition),
        opacity var(--transition),
        margin var(--transition);
}
.nav-brand-img { height: 75px !important; width: auto !important; max-width: 350px !important; flex-shrink: 0; object-fit: contain; margin-left: 0; }

#primary-nav .nav-link {
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13.5px;
    padding: 14px 16px !important;
    border-bottom: 3px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
#primary-nav .nav-link:hover,
#primary-nav .nav-link.active {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

/* "Izindi" overflow menu: opens on hover for mouse/desktop users,
   while Bootstrap's click/tap toggle still covers touch devices. */
@media (hover: hover) and (min-width: 992px) {
    #primary-nav .nav-item-more:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: navDropdownIn 0.15s ease-out;
    }
}
@keyframes navDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ============================================================
   GLOBAL NAV SEARCH
   ============================================================ */
@media (min-width: 992px) {
    .navbar-collapse { 
        flex-wrap: nowrap !important; 
        align-items: center !important; 
    }
    .navbar-nav { 
        margin-top: auto !important; 
        margin-bottom: auto !important; 
        align-items: center !important;
    }
}



.nav-search-wrap {
    position: relative;
    width: 100%;
    max-width: 240px;
    padding: 10px 0;
}
.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    padding: 3px 4px 3px 14px;
    transition:
        background var(--transition),
        border-color var(--transition);
}
.nav-search:focus-within {
    background: #fff;
    border-color: #fff;
}
.nav-search-icon {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    flex-shrink: 0;
    transition: color var(--transition);
}
.nav-search:focus-within .nav-search-icon {
    color: var(--muted);
}
.nav-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 10px;
}
.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.nav-search:focus-within .nav-search-input {
    color: var(--text);
}
.nav-search:focus-within .nav-search-input::placeholder {
    color: var(--muted);
}
.nav-search-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.nav-search-submit:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

/* Light-background variant: same shape/behaviour as the header search,
   recoloured for use on a white page (e.g. the search results page). */
.nav-search-light {
    max-width: none;
    padding: 0;
}
.nav-search-light .nav-search {
    background: var(--light);
    border: 1px solid var(--light-border);
    padding: 4px 4px 4px 18px;
}
.nav-search-light .nav-search:focus-within {
    background: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.12);
}
.nav-search-light .nav-search-icon {
    color: var(--muted);
}
.nav-search-light .nav-search-input {
    color: var(--text);
    font-size: 15px;
    padding: 10px 12px;
}
.nav-search-light .nav-search-input::placeholder {
    color: var(--muted);
}
.nav-search-light .nav-search-submit {
    width: 38px;
    height: 38px;
}

.nav-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1050;
    max-height: 420px;
    overflow-y: auto;
}
.nav-search-results.show {
    display: block;
}

.nav-search-section-title {
    font-family: var(--font-heading);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    padding: 10px 14px 4px;
}
.nav-search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--text);
    transition: background var(--transition);
}
.nav-search-result-item:hover {
    background: var(--light);
    color: var(--text);
}
.nav-search-result-item img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--light);
}
.nav-search-result-item .nsr-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-search-result-item .nsr-cat {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}
.nav-search-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 14px 10px;
}
.nav-search-more {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    background: var(--light);
    text-decoration: none;
    border-top: 1px solid var(--light-border);
}
.nav-search-empty,
.nav-search-loading {
    padding: 18px 14px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
#main-content {
    padding: 48px 0 64px;
} /* Increased vertical rhythm */

.content-area {
    background: var(--white);
    border-radius: 12px; /* Enforced 12px border-radius */
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-wrapper {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    position: relative;
    text-align: center;
    border-radius: 12px;
}
.ad-wrapper.top-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}
.ad-wrapper.top-banner img {
    height: 90px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Sidebar Ad Stack Widget */
.ad-wrapper.sidebar-ad {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-wrapper.sidebar-ad img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.ad-wrapper.mid-article {
    margin: 24px 0;
}
.ad-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    padding: 6px 10px;
    border-radius: 999px;
    text-align: left;
    letter-spacing: 0.35px;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
}
.ad-image,
.ad-wrapper video {
    display: block;
    width: 100%;
    object-fit: cover;
}

/* Advertise CTA Button */
.btn-advertise {
    transition: all 0.3s ease;
}
.btn-advertise:hover {
    background-color: var(--accent-dark) !important;
    transform: translateY(-2px);
}
/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-border);
}
.section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.section-title::before {
    content: "";
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}
.section-title .cat-icon {
    color: var(--primary);
    font-size: 0.95rem;
}
.section-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-more:hover {
    color: var(--primary-dark);
}

/* ============================================================
   FEATURED HERO ARTICLE
   ============================================================ */
.hero-article {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}
.hero-article img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.hero-article:hover img {
    transform: scale(1.03);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 20, 50, 0.88) 40%,
        rgba(10, 20, 50, 0.2) 100%
    );
}
.hero-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 24px;
    color: #fff;
}
.hero-body .category-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    display: inline-block;
}
.hero-body h2 {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
}
.hero-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-border);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.article-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card:hover .article-card-img img {
    transform: scale(1.06);
}
.article-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card-body h3 {
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-body h3 a {
    color: var(--dark);
}
.article-card-body h3 a:hover {
    color: var(--primary);
}
.article-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    flex: 1;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: auto;
    flex-wrap: wrap;
}
.article-meta .cat-link {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
}
.article-meta .separator {
    color: var(--light-border);
}

/* ============================================================
   SMALL / LIST ARTICLE CARD
   ============================================================ */
.article-list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-border);
}
.article-list-item:last-child {
    border-bottom: none;
}
.article-list-img {
    width: 80px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.article-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-list-body {
    flex: 1;
    min-width: 0;
}
.article-list-body h4 {
    font-size: 0.84rem;
    font-weight: 700;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-list-body h4 a {
    color: var(--dark);
}
.article-list-body h4 a:hover {
    color: var(--primary);
}
.article-list-body .meta {
    font-size: 11px;
    color: var(--muted);
}

/* ============================================================
   CATEGORY BADGE
   ============================================================ */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
}
.category-badge.accent {
    background: var(--accent);
}

/* Breaking badge */
.badge-breaking {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 3px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.65;
    }
}

/* ============================================================
   ARTICLE VIEW PAGE
   ============================================================ */
.article-header {
    margin-bottom: 24px;
}
.article-header .article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 12px 0 16px;
    color: var(--dark);
}
.article-header .article-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--light-border);
    border-bottom: 1px solid var(--light-border);
}
.article-header .article-meta .author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text);
}
.article-header .article-meta i {
    color: var(--primary);
}
.article-featured-image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
}
.article-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 480px;
    object-fit: cover;
}
.article-gallery #articleImageCarousel .carousel-inner,
.article-gallery #articleImageCarousel .carousel-item,
.article-gallery #articleImageCarousel .carousel-item img {
    aspect-ratio: 16 / 9;
    max-height: 480px;
    object-fit: cover;
}
.article-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
}
.article-body p {
    margin-bottom: 1.3rem;
}
.article-body h2 {
    font-size: 1.4rem;
    margin: 2rem 0 0.8rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-border);
}
.article-body h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.6rem;
}
.article-body img {
    border-radius: var(--radius-md);
    margin: 16px 0;
    max-width: 100%;
    height: auto;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow-x: auto;
    display: table;
}
.article-body table td,
.article-body table th {
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
}
.article-body table th {
    background-color: #f8fafc;
    font-weight: 700;
}
.article-body ul,
.article-body ol {
    margin: 1rem 0 1.5rem 1.8rem;
}
.article-body hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

.article-gallery-item {
    position: relative;
    height: 160px;
    background: var(--light);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}
.article-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.article-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 14px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--secondary);
    margin: 1.5rem 0;
}

/* ============================================================
   LIKE BUTTON
   ============================================================ */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 2px solid var(--light-border);
    color: var(--muted);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 14px;
}
.like-btn:hover {
    background: var(--light);
    border-color: var(--light-border);
    color: var(--accent);
}
.like-btn.liked {
    background: rgba(230, 57, 70, 0.08);
    border-color: rgba(230, 57, 70, 0.2);
    color: var(--accent);
}
.like-btn.liked .fa-heart {
    animation: like-burst 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes like-burst {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5) rotate(-10deg);
        color: var(--accent-dark);
    }
    100% {
        transform: scale(1);
    }
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 2px solid var(--light-border);
    color: var(--muted);
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 14px;
}
.share-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Social Ghost Buttons */
.social-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--light);
    border: none;
    border-radius: 30px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition);
}
.social-btn-ghost.fb i {
    color: #1877f2;
}
.social-btn-ghost.tw i {
    color: #000000;
}
.social-btn-ghost.wa i {
    color: #25d366;
}
.social-btn-ghost:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* ============================================================
   COMMENTS SECTION
   ============================================================ */
.comments-section {
    margin-top: 40px;
}
.comment-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}
.comment-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--primary);
}
.comment-bubble {
    flex: 1;
    background: #f8fafc;
    border: 1px solid var(--light-border);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    padding: 12px 16px;
}
.comment-bubble .comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    align-items: center;
}
.comment-name {
    font-weight: 700;
    font-size: 13.5px;
}
.comment-time {
    font-size: 11px;
    color: var(--muted);
}
.comment-text {
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.modern-comment-box .comment-input-wrapper {
    border: 1px solid var(--light-border);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.modern-comment-box .comment-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.modern-comment-box textarea:focus,
.modern-comment-box input:focus {
    outline: none;
    box-shadow: none;
}
/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.widget {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--light-border);
    overflow: hidden;
}
.widget-header {
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}
.widget-body {
    padding: 14px 16px;
}

.trending-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--light-border);
    min-width: 28px;
}
.trending-num.top {
    color: var(--accent);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination .page-link {
    color: var(--primary);
    border-color: var(--light-border);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 13px;
    transition: all var(--transition);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}
.pagination .page-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 40px;
}

.footer-top {
    padding: 48px 0 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-brand .logo-name {
    color: #fff;
    font-size: 1.35rem;
}
.footer-logo-img {
    height: 95px;
    width: auto;
    object-fit: contain;
    
}

.footer-about {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 8px;
    break-inside: avoid;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13.5px;
    display: block;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: #fff;
}
.footer-links-cols {
    column-count: 2;
    column-gap: 18px;
}

/* Full-width pill newsletter form, echoing the header search bar so the
   footer's "creative" CTA feels like part of the same design system. */
.footer-newsletter-form {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 4px 4px 4px 18px;
    transition:
        background var(--transition),
        border-color var(--transition);
}
.footer-newsletter-form:focus-within {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}
.footer-newsletter-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    flex-shrink: 0;
}
.footer-newsletter-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 14px;
}
.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.footer-newsletter-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}
.footer-newsletter-submit:hover {
    background: var(--accent-dark);
    transform: scale(1.06);
}
.footer-newsletter-submit:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

.social-links {
    display: flex;
    gap: 8px;
}
.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.social-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}
.social-btn.facebook {
    background: #1877f2;
    border-color: #1877f2;
}
.social-btn.twitter {
    background: #000;
    border-color: #333;
}
.social-btn.instagram {
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
    border: none;
}
.social-btn.youtube {
    background: #ff0000;
    border-color: #ff0000;
}

/* Footer Bottom - Dark Imigongo Design */
.footer-bottom {
    background-color: #080e1a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='rgba%28255,255,255,0.13%29' stroke-width='2' stroke-linecap='square'%3E%3Cpolygon points='32,24 40,32 32,40 24,32'/%3E%3Cpolygon points='32,16 48,32 32,48 16,32'/%3E%3Cpolygon points='32,8 56,32 32,56 8,32'/%3E%3Cpolygon points='32,0 64,32 32,64 0,32'/%3E%3Cpath d='M0,24 L24,0 M0,16 L16,0 M0,8 L8,0'/%3E%3Cpath d='M40,0 L64,24 M48,0 L64,16 M56,0 L64,8'/%3E%3Cpath d='M0,40 L24,64 M0,48 L16,64 M0,56 L8,64'/%3E%3Cpath d='M40,64 L64,40 M48,64 L64,48 M56,64 L64,56'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 64px 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.footer-bottom a {
    color: #ffffff;
    font-weight: 600;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-bottom a:hover {
    color: #60a5fa;
    opacity: 0.95;
}

.footer-bottom #scrollTop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 5px 14px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 12.5px;
    transition: all 0.2s ease;
}

.footer-bottom #scrollTop:hover {
    background: rgba(26, 86, 219, 0.85);
    border-color: #1a56db;
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-info p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-info i {
    color: var(--primary);
    width: 14px;
}

/* ============================================================
   NEWSLETTER MODAL
   ============================================================ */
.newsletter-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.newsletter-modal-inner {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    color: #fff;
    padding: 40px 32px;
    text-align: center;
}
.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
.newsletter-modal-inner h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.newsletter-modal-inner p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}
.newsletter-modal-inner .form-control {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.newsletter-modal-inner .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 700;
}
.newsletter-modal-inner .btn-primary:hover {
    background: rgba(255, 255, 255, 0.35);
}
.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
}

/* ============================================================
   ADMIN DASHBOARD (shared styles)
   ============================================================ */
.admin-sidebar {
    background: var(--secondary);
    min-height: 100vh;
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.admin-sidebar .sidebar-brand {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar .sidebar-brand .logo-name {
    color: #fff;
    font-size: 1.2rem;
}
.admin-sidebar .sidebar-brand .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
}
.admin-nav {
    padding: 12px 0;
    flex: 1;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: var(--primary);
}
.admin-nav a i {
    width: 18px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}
.admin-nav a:hover i,
.admin-nav a.active i {
    color: #fff;
}

.admin-content {
    margin-left: 240px;
    padding: 28px;
}

@media (max-width: 991px) {
    .admin-content {
        margin-left: 0;
        padding: 16px;
    }
}

.stat-card {
    border-radius: var(--radius-md);
    padding: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}
.stat-card .stat-icon {
    font-size: 2.2rem;
    opacity: 0.7;
}
.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
}
.stat-card .stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary {
    color: var(--primary) !important;
}
.bg-primary-light {
    background: var(--primary-light);
}
.border-primary {
    border-color: var(--primary) !important;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.alert-success-custom {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13px;
}
.alert-error-custom {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13px;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-load 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-load {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .hero-article img {
        height: 240px;
    }
    .hero-body h2 {
        font-size: 1.1rem;
    }
    .article-header .article-title {
        font-size: 1.4rem;
    }
    .logo-name {
        font-size: 1.3rem;
    }
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    #primary-nav .nav-link {
        padding: 10px 14px !important;
    }
}

/* ============================================================
   GOOGLE TRANSLATE SUPPRESSION (Completely hide all widgets, banners, logos)
   ============================================================ */
iframe.skiptranslate,
iframe[class*="skiptranslate"],
iframe[src*="translate.google"],
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-ORHb-OEVmcd-ti6hGc,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.VIpgJd-y6EKJ-lGUD4,
.goog-te-balloon-frame,
.goog-te-gadget-icon,
.goog-te-gadget-simple,
.goog-te-gadget,
.goog-logo-link,
.goog-te-menu-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight,
body > .skiptranslate:not(#google_translate_element),
body > div.skiptranslate,
#google_translate_element {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    max-height: 0 !important;
    max-width: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    z-index: -9999 !important;
}

html,
html body,
body {
    top: 0px !important;
    margin-top: 0px !important;
    position: static !important;
}

font {
    background-color: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 991.98px) {
    #top-bar {
        padding: 6px 0 !important;
    }

    .top-bar-logo-img {
        height: 38px !important;
        max-height: 38px !important;
        width: auto !important;
        max-width: 145px !important;
    }

    .top-bar-data-card {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
    }

    .top-bar-data-card i,
    .top-bar-data-card .icon-black {
        font-size: 0.82rem !important;
        margin-right: 5px !important;
    }

    #primary-nav {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        min-height: 0 !important;
    }

    #primary-nav .container-xl {
        padding: 0 12px !important;
        display: block !important;
    }

    #primary-nav .nav-brand {
        display: none !important;
    }

    #primary-nav > .container-xl > .navbar-toggler {
        display: none !important;
    }

    #primary-nav .navbar-collapse {
        background: #1a56db !important;
        padding: 12px 16px !important;
        border-radius: 0 0 12px 12px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
        margin-top: 0 !important;
        flex-basis: 100% !important;
        width: 100% !important;
    }

    #primary-nav .nav-link {
        padding: 9px 12px !important;
    }
}

@media (max-width: 380px) {
    .top-bar-logo-img {
        height: 32px !important;
        max-width: 115px !important;
    }

    .top-bar-data-card {
        padding: 4px 8px !important;
        font-size: 0.74rem !important;
    }

    .top-bar-data-card i,
    .top-bar-data-card .icon-black {
        font-size: 0.76rem !important;
        margin-right: 4px !important;
    }

    .top-bar-toggler {
        padding: 4px 6px !important;
    }

    .top-bar-toggler .navbar-toggler-icon {
        width: 18px !important;
        height: 18px !important;
    }
}


/* Multi-image carousel in article content and gallery */
.article-content-carousel .carousel-inner,
.article-content-carousel .carousel-item,
.article-content-carousel .carousel-item img {
    aspect-ratio: 16 / 9;
    max-height: 480px;
    object-fit: cover;
}
.article-content-carousel .carousel-control-prev,
.article-content-carousel .carousel-control-next,
.article-gallery #articleImageCarousel .carousel-control-prev,
.article-gallery #articleImageCarousel .carousel-control-next {
    width: 14%;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.article-content-carousel .carousel-control-prev:hover,
.article-content-carousel .carousel-control-next:hover,
.article-gallery #articleImageCarousel .carousel-control-prev:hover,
.article-gallery #articleImageCarousel .carousel-control-next:hover {
    opacity: 1;
}


/* Mobile layout: reduced margin space, full-card images and captions */
@media (max-width: 768px) {
    .content-area {
        padding: 16px 12px !important;
        border-radius: 10px !important;
    }
    .main-content .container-xl,
    main .container-xl {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .article-header {
        margin-bottom: 16px !important;
    }
    .article-featured-image {
        margin-bottom: 18px !important;
        border-radius: 8px !important;
    }
    .article-content-carousel,
    .article-gallery-carousel,
    .article-gallery {
        margin-top: 14px !important;
        margin-bottom: 16px !important;
    }
    .article-content-carousel .carousel-inner,
    .article-gallery-carousel .carousel-inner,
    .article-gallery .carousel-inner {
        border-radius: 8px !important;
    }
    .article-body img {
        margin: 10px 0 !important;
        border-radius: 8px !important;
    }
}

.carousel-caption-overlay {
    transition: opacity 0.3s ease;
}
.article-body figure {
    margin: 16px 0;
    text-align: center;
}
.article-body figure figcaption,
.article-body .image-caption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 6px;
    text-align: center;
    font-style: italic;
}

@media (max-width: 768px) {
    .container-xl {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .editorial-content {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
}

/* ==============================================================================
   DARK THEME SYSTEM
   ============================================================================== */
[data-theme="dark"] {
    --white: #1e293b;
    --light: #0f172a;
    --light-border: #334155;
    --muted: #94a3b8;
    --dark: #f8fafc;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
}

[data-theme="dark"] body {
    background-color: #0b1120 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .widget,
[data-theme="dark"] .content-area,
[data-theme="dark"] .dropdown-menu {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .article-card-body h3 a,
[data-theme="dark"] .article-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .widget-header,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: #f8fafc !important;
}

[data-theme="dark"] .text-dark {
    color: #f8fafc !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .article-excerpt {
    color: #94a3b8 !important;
}

[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border {
    border-color: #334155 !important;
}

[data-theme="dark"] .audio-reader-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
}

