/* ======================================
   NECJOGHA â€“ Base Styles
====================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

a {
    color: #01748B;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

/* ======================================
   HEADER â€” multi-row layout
====================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(15,23,42,0.10);
}

/* â”€â”€ Top utility bar â”€â”€ */
.hdr-topbar {
    background: #0c1e3b;
    padding: 5px 0;
}

.hdr-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hdr-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.hdr-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hdr-social {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hdr-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.hdr-social-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.10);
    text-decoration: none;
}

.hdr-topbar-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 13px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.hdr-topbar-sub-btn:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
    text-decoration: none;
}

/* â”€â”€ Main nav bar â”€â”€ */
.hdr-main {
    background: #ffffff;
    border-bottom: 1px solid #e8edf4;
}

/* Make hdr-main the positioning context for the mobile nav */
.hdr-main { position: relative; }

.hdr-main-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    height: 72px;
}

.hdr-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.hdr-logo img {
    height: 54px;
    width: auto;
    display: block;
}

.hdr-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.hdr-nav-link {
    padding: 6px 13px;
    font-size: 15.5px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.hdr-nav-link:hover {
    background: #f1f5f9;
    color: #0f766e;
    text-decoration: none;
}

.hdr-nav-admin {
    color: #64748b;
    font-size: 12.5px;
}

/* -- Events dropdown -- */
.hdr-nav-item {
    position: relative;
}
.hdr-nav-link--ddl {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}
.hdr-ddl-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}
.hdr-nav-dropdown.is-open .hdr-ddl-chevron {
    transform: rotate(180deg);
}
.hdr-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 190px;
    max-width: 240px;
    width: max-content;
    padding: 8px 0;
    z-index: 9900;
}
.hdr-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
}
.hdr-nav-dropdown.is-open .hdr-dropdown {
    display: block;
    animation: hdrDdlFade 0.15s ease;
}
@keyframes hdrDdlFade {
    from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hdr-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.hdr-dropdown-link > span,
.hdr-dropdown-link > svg {
    flex-shrink: 0;
}
.hdr-dropdown-link:hover {
    background: #f0fdf4;
    color: #16a34a;
}
.hdr-dropdown-link svg {
    flex-shrink: 0;
    color: #94a3b8;
    transition: color 0.15s;
}
.hdr-dropdown-link:hover svg {
    color: #16a34a;
}
.hdr-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}
.hdr-dropdown-label {
    display: block;
    padding: 4px 16px 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.hdr-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 20px;
    margin-left: auto;
    flex-shrink: 0;
}

.hdr-ctas {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* â”€â”€ Language switcher â”€â”€ */
.hdr-lang {
    position: relative;
}

.hdr-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    padding: 4px 9px;
    color: rgba(255,255,255,0.8);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.hdr-lang-btn:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.hdr-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(15,23,42,0.14);
    padding: 6px 0;
    list-style: none;
    min-width: 160px;
    z-index: 2000;
}

/* CSS fallback: keep open while focus is inside the widget */
.hdr-lang:focus-within .hdr-lang-menu {
    display: block;
}

.hdr-lang-menu.is-open { display: block; }

.hdr-lang-opt {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.12s;
}

.hdr-lang-opt:hover { background: #f1f5f9; }

.hdr-lang-opt .fi {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Hide Google Translate default banner */
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.skiptranslate {
    display: none !important;
}

/* â”€â”€ Header search bar â”€â”€ */
.hdr-search {
    display: flex;
    align-items: center;
    position: relative;
    gap: 0;
}

.hdr-search-icon {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

.hdr-search-input {
    width: 190px;
    padding: 7px 12px 7px 32px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    background: #f8fafc;
    color: #1e293b;
    transition: border-color 0.18s, background 0.18s, width 0.25s ease;
    outline: none;
}

.hdr-search-input:focus {
    border-color: #0f766e;
    background: #fff;
    width: 240px;
}

.hdr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.hdr-btn-cafe {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.hdr-btn-cafe:hover {
    background: #d1fae5;
    color: #065f46;
    text-decoration: none;
}

.hdr-btn-subscribe {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
}

.hdr-btn-subscribe:hover {
    background: #0d5f58;
    color: #fff;
    text-decoration: none;
}

/* â”€â”€ News ticker â€“ hides on scroll â”€â”€ */
.hdr-ticker {
    background: linear-gradient(90deg, #0c1e3b 0%, #014f59 100%);
    height: 34px;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: height 0.35s ease, opacity 0.35s ease;
    opacity: 1;
}

.hdr-ticker.is-hidden {
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.hdr-ticker-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hdr-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #14A64A;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hdr-ticker-viewport {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 16px;
}

.hdr-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: hdr-ticker-scroll 120s linear infinite;
    will-change: transform;
}

.hdr-ticker-track:hover {
    animation-play-state: paused;
}

.hdr-ticker-item {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding-right: 48px;
    transition: color 0.15s;
}

.hdr-ticker-item::after {
    content: 'Â·';
    position: absolute;
    margin-left: 20px;
    color: rgba(255,255,255,0.3);
}

.hdr-ticker-item:hover {
    color: #6ee7b7;
    text-decoration: none;
}

@keyframes hdr-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 1024px) {
    .hdr-nav-link { padding: 6px 8px; font-size: 13px; }
    .hdr-btn      { padding: 7px 11px; font-size: 12px; }
    .hdr-logo img { height: 46px; }
}

@media (max-width: 820px) {
    .hdr-nav { display: none; }
    .hdr-main-inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 540px) {
    /* Keep date visible on small screens; hide social and membership CTA */
    .hdr-social { display: none; }
    .hdr-btn-cafe { display: none; }
    .hdr-topbar-inner { justify-content: space-between; }
    .hdr-date { display: flex; }
    /* Hide search and newsletter on small screens as requested */
    .hdr-search, .hdr-btn-subscribe { display: none; }
}

/* Hamburger button (desktop hidden) */
.hdr-hamburger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #0f172a;
}
.hdr-hamburger svg { display: block; }

@media (max-width: 820px) {
    .hdr-hamburger { display: inline-flex; align-items: center; justify-content: center; }
    /* When nav is hidden by default, open it as a full-width stack when toggled */
    .hdr-nav {
        display: none;
    }
    .hdr-nav.is-open {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 12px 16px 18px;
        border-bottom: 1px solid #e8edf4;
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
        z-index: 995;
    }
    .hdr-nav-link { padding: 12px 10px; border-radius: 6px; display: block; }
}

/* Use a simple flex layout for the main header row on small screens */
@media (max-width: 820px) {
    .hdr-main-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        height: 64px;
    }
    .hdr-logo { order: 1; }
    .hdr-membership-mobile { order: 2; }
    .hdr-login-mobile { order: 3; }
    .hdr-hamburger { order: 4; }
    .hdr-ctas { order: 5; }
    .hdr-nav { order: 6; }
}

/* Prevent horizontal overflow caused by wide inputs on small screens */
html, body { overflow-x: hidden; }

/* Mobile membership button: hidden on desktop, shown beside logo on small screens */
.hdr-membership-mobile { display: none; }
.hdr-membership-mobile .hdr-dropdown { left: 0; right: auto; }

@media (max-width: 820px) {
    .hdr-membership-mobile { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
    .hdr-membership-mobile .hdr-dropdown { position: absolute; top: calc(100% + 8px); left: 8px; min-width: 170px; }
    .hdr-membership-label { display: inline-block; font-weight:700; font-size:13px; }
    .hdr-hamburger { margin-left: 6px; z-index: 1002; }
}

/* ======================================
   HERO SECTION
====================================== */

.hero-section {
    background: linear-gradient(135deg, #faf8fc, #f1f5f9);
    padding: 36px 0;
}

.hero-container {
    max-width: 1320px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 4fr 1.35fr;
    gap: 24px;
    align-items: start;
}

/* MAIN SLIDER */
.hero-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 460px;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: 0;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.72) 0%, rgba(3, 7, 18, 0.32) 50%, rgba(3, 7, 18, 0.04) 100%);
    padding: 28px 28px 52px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-overlay.has-video {
    pointer-events: none;
}

.hero-overlay.has-video .hero-content {
    pointer-events: auto;
}

.hero-content {
    width: min(96%, 860px);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    padding: 18px 28px 20px;
    background: rgba(1, 79, 89, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    opacity: 0;
    transform: translateY(36px);
}

.hero-slide.is-active .hero-content {
    animation: hero-content-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes hero-content-in {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-meta-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hero-tag {
    background: #14A64A;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-location {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #bfdbfe;
}

.hero-overlay h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    max-width: 28ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.hero-date {
    font-size: 14px;
    opacity: 0.9;
}

.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot.is-active {
    background: #14A64A;
    transform: scale(1.3);
}

.hero-title-link {
    text-decoration: none;
    color: inherit;
}

.hero-title-link:hover h1 {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ======================================
   SIDE CARDS (Trending Now)
====================================== */

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trending-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding: 6px 12px;
    background: linear-gradient(90deg, #0f766e, #01748B);
    border-left: 4px solid #14A64A;
    border-radius: 0 4px 4px 0;
    display: inline-block;
}

.side-card {
    position: relative;
    overflow: hidden;
    height: 122px;
    min-height: 122px;
    background: #0b1220;
}

.side-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.side-card-text-only {
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: auto;
    background: #07101d;
    padding: 18px 16px;
    border-radius: 14px;
}

.side-card-text-only .side-card-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-card-text-only .side-card-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
    width: auto;
    max-width: 100%;
}

.side-card-text-only .side-category,
.side-card-text-only .side-region {
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.side-card-overlay .side-region,
.side-card-text-only .side-region {
    color: #f8fafc;
}

.side-card-title-link {
    display: inline-block;
    text-decoration: none;
}
.side-card-title-link:hover .side-card-title {
    text-decoration: underline;
}

.side-card-text-only img {
    display: none !important;
}

/* â”€â”€ Overlay gradient: taller so both category + title are covered â”€â”€ */
.side-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    /* clip the text so it doesn't escape the card */
    overflow: hidden;
    padding: 8px 10px 8px;
    background: linear-gradient(
        to top,
        rgba(26, 58, 130, 0.97) 0%,
        rgba(26, 58, 130, 0.75) 60%,
        transparent 100%
    );
    /* tighter stack: flex column with a small gap */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.side-card-overlay.only-text {
    position: static;
    min-height: 170px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    gap: 2px;
}

/* Category label */
.side-category {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #bbf7d0;
    letter-spacing: 0.04em;
    margin-bottom: 0;   /* gap is on the parent now */
    flex-shrink: 0;
}

/* â”€â”€ Title: clip container, slide the text inside â”€â”€ */
.side-card-title-wrap {
    width: 100%;
    overflow: hidden;   /* clip â€” text slides underneath this edge */
}

.side-card h3,
.side-card-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    white-space: nowrap;
    /* width determined by text â€” lets JS measure scrollWidth */
    width: max-content;
    /* default: stationary */
    transform: translateX(0);
}

/*
   .is-marquee is toggled by JS when text overflows.
   The animation slides the text left to reveal the end,
   pauses, then slides back right â€” repeating forever.
*/
.side-card-title.is-marquee {
    animation: side-marquee var(--marquee-duration, 6s) ease-in-out var(--marquee-delay, 1.5s) infinite alternate;
}

@keyframes side-marquee {
    0%   { transform: translateX(0); }
    /* small pause at start */
    10%  { transform: translateX(0); }
    /* slide fully to the left to reveal the end */
    80%  { transform: translateX(var(--marquee-end, -80px)); }
    /* small pause at end before sliding back */
    100% { transform: translateX(var(--marquee-end, -80px)); }
}

/* ======================================
   COUNTRY TICKER
====================================== */

.latest-news-section {
    padding-top: 10px;
}

.latest-news-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 820px) {
    .latest-news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .latest-news-grid > .story-card:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 540px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .latest-news-grid > .story-card:nth-child(n+3) {
        display: none;
    }
}

.latest-card-horizontal {
    border-radius: 12px;
    gap: 18px;
    overflow: hidden;
    align-items: stretch;
    min-height: 220px;
}

a.story-card.latest-card-horizontal {
    display: flex;
    flex-wrap: nowrap;
}

.latest-card-horizontal .story-card-image {
    flex: 0 0 250px;
    min-width: 220px;
    overflow: hidden;
}

.latest-card-horizontal .story-card-image img {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

.latest-card-horizontal .story-content {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

.trending-card-text {
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}

a.trending-card-text:hover {
    transform: translateY(-4px);
}

.trending-card-text .story-content {
    padding: 24px 20px;
}

.trending-card-text .story-content h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #111827;
}

.trending-card-text .story-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 700;
}

.trending-card-text .story-region {
    background: #ecfeff;
    color: #0f766e;
    border-radius: 999px;
    padding: 3px 10px;
}

.latest-card-horizontal .story-content h3 {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 10px;
    display: block;
    overflow: visible;
    max-height: none;
    color: #111111;
}

.latest-card-horizontal .story-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    color: #6b7280;
}

.latest-card-horizontal .story-region {
    background: #ecfeff;
    color: #0f766e;
    border-radius: 999px;
    padding: 2px 10px;
}

.country-ticker-section {
    padding: 10px 0 0;
}

.country-ticker {
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.92), rgba(1, 79, 89, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.country-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    min-width: max-content;
    padding: 14px 0;
    animation: ticker-scroll 34s linear infinite;
}

.country-ticker-item {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ecfeff;
    white-space: nowrap;
}

.country-ticker-item::after {
    content: 'â€¢';
    margin-left: 34px;
    color: rgba(236, 254, 255, 0.55);
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.side-date {
    font-size: 12px;
    color: #d1d5db;
}

.side-card-empty {
    background: #0f172a;
}

/* ======================================
   CATEGORY SECTIONS
====================================== */

.section {
    padding: 36px 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

.category-header h2 {
    font-size: 22px;
}

.category-header a {
    font-weight: 600;
    font-size: 14px;
}

.category-count {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.view-all-link {
    font-size: 13px;
    font-weight: 700;
    color: #0f766e;
    text-decoration: none;
    border: 1px solid #0f766e;
    padding: 4px 12px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.view-all-link:hover {
    background: #0f766e;
    color: #ffffff;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

a.story-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.story-card.latest-card-horizontal {
    display: flex;
}

.story-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}

.story-card:hover {
    transform: translateY(-4px);
}

.story-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

a.story-card.latest-card-horizontal .story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    padding: 16px;
}

.story-content h3 {
    font-size: 16px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.story-content p {
    font-size: 14px;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 0;
}

.story-meta-top {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.story-region {
    background: #ecfeff;
    color: #0f766e;
    border-radius: 999px;
    padding: 1px 8px;
}

.story-date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

.homepage-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
    padding: 28px 0;
}

.homepage-category-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(16px, 3vw, 48px);
}

.homepage-category {
    min-width: 0;
}

.homepage-category--wide-feature {
    grid-column: 1 / -1;
}

.homepage-category--igad {
    grid-column: 1 / -1;
}

.homepage-igad-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.homepage-igad-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
}

.homepage-igad-card {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #172033;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
}

.homepage-igad-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.homepage-igad-card h3 {
    display: -webkit-box;
    min-height: 72px;
    overflow: hidden;
    padding: 14px;
    font-size: 16px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.homepage-igad-column--compact .homepage-igad-card {
    display: flex;
    align-items: flex-start;
}

.homepage-igad-column--compact .homepage-igad-card img {
    width: 36%;
    height: 112px;
    flex: 0 0 36%;
}

.homepage-igad-column--compact .homepage-igad-card h3 {
    min-height: 92px;
    padding: 10px;
    font-size: 15px;
    -webkit-line-clamp: 4;
}

.homepage-category-content {
    min-width: 0;
}

.homepage-category--wide-feature .homepage-category-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.homepage-category--wide-feature .homepage-category-lead {
    height: 100%;
    margin-bottom: 0;
}

.homepage-category--wide-feature .homepage-category-stories {
    align-content: stretch;
}

.homepage-category-grid > .wx-section {
    grid-column: 1 / -1;
}

.homepage-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid #252525;
}

.homepage-category-heading h2 {
    position: relative;
    margin: 0;
    padding: 8px 12px;
    background: #2da52e;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
}

.homepage-category-heading a {
    flex-shrink: 0;
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.homepage-category-lead,
.homepage-category-story {
    display: flex;
    min-width: 0;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
}

.homepage-category-lead {
    min-height: 260px;
    margin-bottom: 10px;
}

.homepage-category-lead > img {
    width: 38%;
    min-height: 100%;
    object-fit: cover;
}

.homepage-category-lead-content {
    min-width: 0;
    padding: 12px 16px;
}

.homepage-category-lead-content h3,
.homepage-category-story h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 17px;
    line-height: 1.4;
}

.homepage-category-lead-content .story-date,
.homepage-category-story .story-date {
    display: block;
    color: #728096;
}

.homepage-category-lead-content p {
    display: -webkit-box;
    margin: 12px 0 0;
    overflow: hidden;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.homepage-category-stories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.homepage-category-story {
    min-height: 128px;
    align-items: flex-start;
}

.homepage-category-story img {
    width: 42%;
    height: 104px;
    flex: 0 0 42%;
    margin: 10px 0 10px 10px;
    object-fit: cover;
}

.homepage-category-story > div {
    min-width: 0;
    padding: 10px;
}

.homepage-category-story h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.homepage-category-story .story-date {
    font-size: 12px;
}

.empty-state {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 18px;
    color: #64748b;
}

/* ======================================
   Admin
====================================== */

/* ======================================
   CATEGORY PAGE  (catpage-*)
====================================== */

/* â”€â”€ Banner â”€â”€ */
.catpage {
    background: #f1f5f9;
    min-height: calc(100vh - 72px);
}

.catpage-banner {
    background: linear-gradient(120deg, #0c1e3b 0%, #014f59 55%, #0f766e 100%);
    padding: 36px 0 32px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Category post image â€“ fades in from ~30% left â†’ fully visible on right */
.catpage-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--cat-img, none);
    background-size: cover;
    background-position: center right;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 28%, rgba(0,0,0,0.55) 52%, rgba(0,0,0,0.82) 72%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 28%, rgba(0,0,0,0.55) 52%, rgba(0,0,0,0.82) 72%, black 100%);
    opacity: 0.38;
    pointer-events: none;
    z-index: 0;
}

/* Dot grid pattern sits above the image */
.catpage-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: 1;
}

.catpage-banner-inner {
    position: relative;
    z-index: 2;
}

.catpage-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    margin-bottom: 18px;
    transition: color 0.15s;
    background: rgba(255,255,255,0.08);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
}

.catpage-back-btn:hover { color: #fff; background: rgba(255,255,255,0.14); text-decoration: none; }

.catpage-banner-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.catpage-title {
    display: inline-block;
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    background: #14A64A;
    padding: 6px 20px 8px;
    border-radius: 6px;
}

.catpage-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    font-weight: 500;
}

/* â”€â”€ Body â”€â”€ */
.catpage-body { padding: 28px 0 60px; }

/* â”€â”€ Sort bar â”€â”€ */
.catpage-sortbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.catpage-sortbar-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-right: 4px;
    white-space: nowrap;
}

.catpage-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.catpage-sort-btn:hover {
    background: #e2e8f0;
    color: #0f766e;
    border-color: #cbd5e1;
    text-decoration: none;
}

.catpage-sort-btn.active {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
}

.catpage-sort-btn.active svg { stroke: #fff; }

/* â”€â”€ Grid â”€â”€ */
.catpage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* â”€â”€ Card â”€â”€ */
.catpage-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15,23,42,0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1.5px solid #f1f5f9;
}

.catpage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(15,23,42,0.13);
    text-decoration: none;
    border-color: #e2e8f0;
}

/* â”€â”€ Card image â”€â”€ */
.catpage-card-img-wrap {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #0c1e3b;
}

.catpage-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.catpage-card:hover .catpage-card-img-wrap img {
    transform: scale(1.04);
}

/* stats pill overlay (views + comments) */
.catpage-card-stats {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
}

.catpage-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,0,0,0.58);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* â”€â”€ Card body â”€â”€ */
.catpage-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.catpage-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
}

.catpage-card-author {
    font-weight: 700;
    color: #374151;
}

.catpage-card-region {
    background: #ecfdf5;
    color: #065f46;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
    font-size: 11px;
    border: 1px solid #a7f3d0;
}

.catpage-card-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #0c1e3b;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.catpage-card:hover .catpage-card-title { color: #0f766e; }

.catpage-card-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catpage-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.catpage-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
}

.catpage-read-more {
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
}

/* â”€â”€ Empty state â”€â”€ */
.catpage-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 70px 20px;
    text-align: center;
    color: #64748b;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 1024px) {
    .catpage-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .catpage-title { font-size: 26px; }
    .catpage-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .catpage-grid { grid-template-columns: 1fr; }
    .catpage-sortbar { gap: 6px; }
    .catpage-sort-btn { font-size: 11.5px; padding: 5px 10px; }
}

.cat-page-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ======================================
   SEARCH RESULTS PAGE  (srp-*)
====================================== */

.srp-page {
    background: #f1f5f9;
    min-height: calc(100vh - 72px);
    padding-bottom: 60px;
}

.srp-wrap { padding-top: 36px; }

.srp-header { margin-bottom: 20px; }

.srp-title {
    font-size: 26px;
    font-weight: 800;
    color: #0c1e3b;
    margin: 0 0 4px;
}

.srp-query { color: #0f766e; font-style: italic; }

.srp-count {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* â”€â”€ Search form â”€â”€ */
.srp-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.srp-form-field {
    position: relative;
    flex: 1;
    max-width: 560px;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.srp-form-field svg {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
}

.srp-form-field input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    outline: none;
    transition: border-color 0.18s;
}

.srp-form-field input:focus { border-color: #0f766e; }

.srp-search-btn {
    padding: 11px 22px;
    background: #0f766e;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.srp-search-btn:hover { background: #0d5f58; }

.srp-clear-btn {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s;
}
.srp-clear-btn:hover { background: #e2e8f0; text-decoration: none; }

/* â”€â”€ Empty state â”€â”€ */
.srp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
    font-size: 15px;
}

.srp-empty-hint { font-size: 13px; color: #94a3b8; }

/* â”€â”€ Results grid â”€â”€ */
.srp-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.srp-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15,23,42,0.06);
    border: 1.5px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}

.srp-card:hover {
    box-shadow: 0 8px 28px rgba(15,23,42,0.11);
    transform: translateY(-2px);
    border-color: #e2e8f0;
    text-decoration: none;
}

.srp-card-img {
    width: 200px;
    min-width: 200px;
    height: 140px;
    overflow: hidden;
    background: #0c1e3b;
    flex-shrink: 0;
}

.srp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.srp-card:hover .srp-card-img img { transform: scale(1.04); }

.srp-card-body {
    padding: 16px 20px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.srp-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.srp-cat {
    background: #ecfdf5;
    color: #065f46;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
}

.srp-region {
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
}

.srp-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0c1e3b;
    line-height: 1.35;
    margin: 0;
    transition: color 0.15s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srp-card:hover .srp-card-title { color: #0f766e; }

.srp-card-excerpt {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.srp-author { color: #475569; }

@media (max-width: 600px) {
    .srp-card { flex-direction: column; }
    .srp-card-img { width: 100%; min-width: unset; height: 160px; }
    .srp-card-body { padding: 14px; }
}

/* ======================================
   WEATHER SECTION  (wx-*)
====================================== */

.wx-section {
    background: linear-gradient(180deg, #eef2f7 0%, #e8edf4 100%);
    padding: 48px 0 40px;
    border-top: 1px solid #dde3ec;
    border-bottom: 1px solid #dde3ec;
}

.wx-header {
    margin-bottom: 28px;
}

.wx-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f766e;
    margin-bottom: 6px;
}

.wx-title {
    font-size: 28px;
    font-weight: 700;
    color: #0c1e3b;
    margin: 0;
}

.wx-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.wx-badge-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background: #16a34a;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(22,163,74,0.18);
}

.wx-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* â”€â”€ Grid â”€â”€ */
.wx-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

/* â”€â”€ Card â”€â”€ */
.wx-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px 14px;
    box-shadow: 0 2px 12px rgba(15,23,42,0.07);
    border: 1px solid #e8edf4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wx-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15,23,42,0.11);
}

.wx-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.wx-city {
    font-size: 15px;
    font-weight: 600;
    color: #0c1e3b;
    line-height: 1.2;
}

.wx-country {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #0f766e;
    margin-top: 3px;
}

.wx-icon {
    flex-shrink: 0;
    line-height: 0;
}

.wx-temp {
    font-size: 32px;
    font-weight: 700;
    color: #0c1e3b;
    line-height: 1;
    letter-spacing: -0.02em;
}

.wx-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.wx-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.wx-stat-label {
    color: #64748b;
    font-weight: 400;
}

.wx-stat-val {
    font-weight: 600;
    color: #0f766e;
    font-size: 12.5px;
}

.wx-stat-val small {
    font-size: 10px;
    font-weight: 500;
    color: #0f766e;
    margin-left: 1px;
}

.wx-source {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 1100px) {
    .wx-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .wx-grid { grid-template-columns: repeat(2, 1fr); }
    .wx-title { font-size: 22px; }
}

/* ======================================
   SINGLE POST PAGE
====================================== */

.post-page {
    background: #f8fafc;
    min-height: calc(100vh - 72px);
    padding-bottom: 60px;
    overflow-x: hidden;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Prevent grid children from overflowing their column */
.post-layout > * { min-width: 0; }

/* â”€â”€ Header â”€â”€ */
.post-header { margin-bottom: 22px; }

.post-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: #0b1220;
    margin: 12px 0 14px;
}

.post-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 13px;
    color: #64748b;
    align-items: center;
}

.post-byline strong { color: #1e293b; }

.byline-sep { color: #cbd5e1; }

.byline-comments {
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
}

.byline-comments:hover { text-decoration: underline; }

.byline-likes {
    color: #0c1e3b;
    font-weight: 600;
}

.post-cover {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.post-cover img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.post-cover iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

/* â”€â”€ Views â”€â”€ */
.post-views {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.views-icon { font-size: 15px; }

/* â”€â”€ Excerpt pull-quote â”€â”€ */
.post-excerpt {
    font-size: 18px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.65;
    border-left: 4px solid #14A64A;
    padding-left: 18px;
    margin-bottom: 28px;
}

/* â”€â”€ Body â”€â”€ */
.post-body {
    overflow-wrap: break-word;
    word-break: break-word;
}

.post-body p {
    font-size: 16px;
    line-height: 1.85;
    color: #374151;
    margin-bottom: 20px;
}

/* Quill-rendered content constraints */
.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin: 16px 0;
}

.post-body ol,
.post-body ul {
    padding-left: 22px;
    margin-bottom: 20px;
}

.post-body li {
    font-size: 16px;
    line-height: 1.85;
    color: #374151;
    margin-bottom: 6px;
}

.post-body h1,
.post-body h2,
.post-body h3 {
    font-weight: 700;
    color: #0b1220;
    margin: 28px 0 12px;
    line-height: 1.3;
}

.post-body blockquote {
    border-left: 4px solid #0f766e;
    padding-left: 16px;
    margin: 20px 0;
    color: #475569;
    font-style: italic;
}

/* â”€â”€ Share + Like row â”€â”€ */
.post-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.share-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-right: 2px;
}

.share-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.share-btn:hover { opacity: 0.85; }

.share-wa { background: #25D366; color: #fff; }
.share-tw { background: #000000; color: #fff; }
.share-li { background: #0A66C2; color: #fff; }
.share-fb { background: #1877F2; color: #fff; }
.share-em { background: #6b7280; color: #fff; }

.like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.like-btn:hover { border-color: #f43f5e; }

.like-btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.like-btn.liked {
    background: #fff1f2;
    border-color: #f43f5e;
    color: #f43f5e;
}

.like-heart { font-size: 16px; }

/* â”€â”€ Comments â”€â”€ */
.comments-section { margin-top: 10px; }

.comments-heading {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.no-comments {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.comment-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e, #14A64A);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-body { flex: 1; }

.comment-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    color: #64748b;
}

.comment-meta strong { color: #1e293b; font-size: 14px; }

.comment-body p {
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
    margin: 0;
}

/* â”€â”€ Comment form â”€â”€ */
.comment-form-wrap {
    background: #f8fafc;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin-top: 8px;
}

.comment-form-wrap h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.comment-note {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

.req-opt {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.comment-field-full { grid-column: 1 / -1; }

.comment-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.comment-form input,
.comment-form textarea {
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 9px 11px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

/* â”€â”€ Sidebar â”€â”€ */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
}

.widget-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
    color: #0f766e;
}

.related-list {
    display: flex;
    flex-direction: column;
}

.related-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 10px 0;
}

.related-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    color: inherit;
    padding: 2px 0;
}

.related-item:hover .related-title { color: #0f766e; }

.related-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: #1e293b;
    transition: color 0.15s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.related-date {
    font-size: 11px;
    color: #94a3b8;
}

/* â”€â”€ Country Network widget â”€â”€ */
.country-network-sub {
    font-size: 12px;
    color: #64748b;
    margin: -6px 0 14px;
    font-style: italic;
}

.country-flag-carousel {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
}

.country-flag-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.country-flag-slide.active {
    opacity: 1;
}

.country-flag-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.country-flag-name {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 9px 0;
    background: rgba(0, 0, 0, 0.45);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
}

/* â”€â”€ Newsletter widget â”€â”€ */
.newsletter-widget p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.55;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 900px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .post-title { font-size: 24px; }
    .comment-form-grid { grid-template-columns: 1fr; }
    .share-row { gap: 6px; }
    .share-btn { padding: 5px 10px; font-size: 11px; }
}

/* â”€â”€ Admin badges / comment preview â”€â”€ */
.pending-badge {
    display: inline-block;
    background: #f43f5e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
}

.comment-preview {
    font-size: 13px;
    color: #475569;
    max-width: 320px;
}

.btn-approve {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    background: #dcfce7;
    color: #166534;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-approve:hover { background: #bbf7d0; }

/* ======================================
   ADMIN PAGE
====================================== */

.admin-page {
    background: #f8fafc;
    min-height: calc(100vh - 72px);
}

.admin-head {
    margin-bottom: 20px;
}

.admin-head p {
    color: #475569;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert.success {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
}

.alert.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* â”€â”€ Quill editor â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.quill-editor-wrap {
    min-height: 220px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

.ql-toolbar.ql-snow {
    border-color: #e2e8f0 !important;
    border-radius: 8px 8px 0 0;
}

.ql-container.ql-snow {
    border-color: #e2e8f0 !important;
    border-radius: 0 0 8px 8px;
    font-size: 15px;
}

/* â”€â”€ Posts shortcut card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.posts-shortcut .posts-shortcut-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.posts-shortcut h2 { margin: 0 0 4px; }
.posts-shortcut p  { margin: 0; color: #64748b; font-size: 13px; }

.btn-primary {
    display: inline-block;
    padding: 10px 22px;
    background: #0f766e;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover { background: #0d6460; }

.btn-secondary {
    display: inline-block;
    padding: 8px 18px;
    background: #f1f5f9;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.btn-secondary:hover { background: #e2e8f0; }

/* â”€â”€ admin/posts.php header row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #0c1e3b;
    margin: 0;
}

.post-title-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
}

.post-title-link:hover { color: #0f766e; text-decoration: underline; }

.admin-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.admin-panel h2 {
    margin-bottom: 14px;
    font-size: 20px;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.full-width {
    grid-column: 1 / -1;
}

.admin-form input[type="text"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 11px;
    font-size: 14px;
    font-family: inherit;
}

.checkbox-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.btn-primary,
.btn-delete {
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: #0f766e;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0d5f58;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    padding: 10px;
    font-size: 14px;
}

.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

.btn-delete:hover {
    background: #fecaca;
}

/* Required field asterisk */
.req {
    color: #dc2626;
    font-weight: 700;
}

/* Form actions row (submit + cancel) */
.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.btn-cancel {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    text-decoration: none;
    border: 1px solid #cbd5e1;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

/* Edit button in posts table */
.btn-edit {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: #dbeafe;
    color: #1d4ed8;
    text-decoration: none;
    white-space: nowrap;
}

.btn-edit:hover {
    background: #bfdbfe;
}

/* Small delete button in category list */
.btn-delete-sm {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-delete-sm:hover {
    background: #fecaca;
}

/* Small primary button variant */
.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

/* Action cell with edit + delete side by side */
.action-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Admin helper note */
.admin-note {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}

/* Back link in edit mode */
.back-link {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Category manager */
.cat-manager {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.cat-label {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.cat-key {
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace;
}

.cat-add-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cat-add-form input[type="text"] {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
}

/* Current image thumbnail in edit form */
.current-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.current-thumb img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.current-thumb span {
    font-size: 12px;
    color: #64748b;
}

/* Flag badges in posts table */
.flag-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.flag-badge.trending {
    background: #dcfce7;
    color: #166534;
}

.flag-badge.breaking {
    background: #fef9c3;
    color: #854d0e;
}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-side {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 16px;
    }

    .hero-side > .side-card:nth-of-type(3) {
        display: none;
    }

    .trending-title {
        grid-column: 1 / -1;
    }

    .hero-main {
        min-height: 400px;
    }

    .hero-overlay h1 {
        font-size: 24px;
        max-width: 18ch;
    }

    .story-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .story-grid:not(.latest-news-grid) > .story-card:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 820px) {
    .homepage-category-grid {
        grid-template-columns: 1fr;
    }

    .homepage-igad-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage-category--wide-feature .homepage-category-content {
        grid-template-columns: 1fr;
    }

    .homepage-category-stories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-side > .side-card:nth-of-type(3) {
        display: none;
    }

    .story-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 24px 0;
    }

    .hero-side {
        display: flex;
    }

    .hero-overlay h1 {
        font-size: 22px;
        max-width: 18ch;
    }

    .side-card h3 {
        font-size: 18px;
    }

    .latest-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .story-grid:not(.latest-news-grid) > .story-card:nth-child(n+3) {
        display: none;
    }

    .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .homepage-category-container {
        padding: 0 16px;
    }

    .homepage-category-stories {
        grid-template-columns: 1fr;
    }

    .homepage-igad-grid {
        grid-template-columns: 1fr;
    }

    .homepage-category-lead {
        min-height: 170px;
    }

    .homepage-category-lead > img {
        width: 42%;
    }

    .country-ticker-track {
        gap: 24px;
        animation-duration: 40s;
    }
}

/* ======================================
   CLIMATE CAFÃ‰ CALENDAR  (ccafe-calendar, evt-*)
====================================== */

.ccafe-calendar {
    background: #ffffff;   /* white to match the bottom of the fade */
    padding: 120px 0 80px; /* extra top pad to clear the negative-margin overlap */
}

/* â”€â”€ Section header â”€â”€ */
.ccafe-cal-header {
    margin-bottom: 32px;
}

.ccafe-cal-title {
    font-size: 34px;
    font-weight: 800;
    color: #0c1e3b;
    margin: 6px 0 10px;
}

.ccafe-cal-sub {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    max-width: 560px;
}

/* â”€â”€ Toolbar â”€â”€ */
.ccafe-cal-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.ccafe-cal-search-wrap {
    position: relative;
    flex: 1;
    max-width: 380px;
    min-width: 180px;
}

.ccafe-cal-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.ccafe-cal-search-input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    outline: none;
    transition: border-color 0.18s;
}

.ccafe-cal-search-input:focus { border-color: #0f766e; }

/* â”€â”€ Filter tabs â”€â”€ */
.ccafe-filter-tabs {
    display: flex;
    gap: 4px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px;
}

.ccafe-filter-tab {
    padding: 6px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.ccafe-filter-tab:hover { color: #0f766e; }

.ccafe-filter-tab.active {
    background: #0f766e;
    color: #fff;
}

/* â”€â”€ Events grid (3-col, cards stack naturally) â”€â”€ */
.evt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* â”€â”€ Event card â”€â”€ */
.evt-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid #e8edf4;
    box-shadow: 0 2px 12px rgba(15,23,42,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.evt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(15,23,42,0.11);
}

/* â”€â”€ Card image or placeholder â”€â”€ */
.evt-card-img-wrap {
    height: 200px;
    min-height: 200px;
    overflow: hidden;
    position: relative;
    display: block;
    background: #0f766e;   /* fallback colour while image loads */
}

.evt-card-img-placeholder {
    background: linear-gradient(135deg, #0c4a6e 0%, #0f766e 60%, #065f46 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* live indicator dot for ongoing events */
.evt-live-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: evt-pulse 1.6s ease-in-out infinite;
}

@keyframes evt-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
    50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.evt-card-img-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.evt-card:hover .evt-card-img-photo { transform: scale(1.04); }

/* â”€â”€ Card body â”€â”€ */
.evt-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* â”€â”€ Badges row â”€â”€ */
.evt-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.evt-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid transparent;
}

.evt-badge-upcoming {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.evt-badge-ongoing {
    background: #ecfdf5;
    color: #065f46;
    border-color: #6ee7b7;
}

.evt-badge-completed {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.evt-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* â”€â”€ Title â”€â”€ */
.evt-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #0c1e3b;
    line-height: 1.35;
    margin: 0;
    transition: color 0.15s;
}

.evt-card:hover .evt-card-title { color: #0f766e; }

/* â”€â”€ Description (2-line clamp) â”€â”€ */
.evt-card-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* â”€â”€ Meta (date + location) â”€â”€ */
.evt-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 2px;
}

.evt-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.evt-meta-row svg { flex-shrink: 0; color: #0f766e; }

/* â”€â”€ Register button (upcoming) â”€â”€ */
.evt-register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 11px 16px;
    margin-top: 4px;
    background: #0f766e;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.evt-register-btn:hover { background: #0d5f58; text-decoration: none; color: #fff; }

/* â”€â”€ Attend button (ongoing) â”€â”€ */
.evt-attend-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    margin-top: 4px;
    background: #d97706;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
    position: relative;
    overflow: hidden;
}

.evt-attend-btn:hover { background: #b45309; text-decoration: none; color: #fff; }

.evt-attend-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: evt-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

/* â”€â”€ Summary button (completed) â”€â”€ */
.evt-summary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 16px;
    margin-top: 4px;
    background: transparent;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.evt-summary-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0c1e3b;
}

/* â”€â”€ Summary modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.evt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.evt-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.evt-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 600px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(15,23,42,0.25);
    transform: translateY(16px);
    transition: transform 0.2s ease;
}

.evt-modal-overlay.is-open .evt-modal {
    transform: translateY(0);
}

.evt-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: background 0.15s, color 0.15s;
}

.evt-modal-close:hover { background: #e2e8f0; color: #0c1e3b; }

.evt-modal-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0f766e;
    margin-bottom: 8px;
}

.evt-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #0c1e3b;
    line-height: 1.3;
    margin-bottom: 14px;
}

.evt-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid #f1f5f9;
}

.evt-modal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #475569;
    font-weight: 500;
}

.evt-modal-section { margin-bottom: 20px; }
.evt-modal-section:last-child { margin-bottom: 0; }

.evt-modal-section-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin-bottom: 6px;
}

.evt-modal-section-body {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.7;
}

/* â”€â”€ Empty / no-results states â”€â”€ */
.evt-empty,
.evt-no-results {
    grid-column: 1 / -1;
    padding: 50px 20px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}

.evt-clear-btn {
    background: none;
    border: none;
    color: #0f766e;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
    padding: 0;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 900px) {
    .evt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .evt-grid { grid-template-columns: 1fr; }
    .ccafe-cal-toolbar { flex-direction: column; align-items: flex-start; }
    .ccafe-cal-search-wrap { max-width: 100%; width: 100%; }
}

/* ======================================
   OVERLAY / TRANSPARENT HEADER
   Used on pages like Climate Cafes where
   the header floats over a full-bleed hero.
====================================== */

.site-header--overlay {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 100;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.site-header--overlay.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(255,255,255,0.94) !important;
    box-shadow: 0 10px 28px rgba(15,23,42,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-header--overlay .hdr-main {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.site-header--overlay .hdr-main-inner {
    height: 64px;
}

/* Prevent content jump when header becomes fixed */
body.hdr-fixed {
    padding-top: 72px; /* space for fixed header plus top offset */
}

/* Nav links over light-overlay hero */
.site-header--overlay .hdr-nav-link {
    color: #1e293b;
    font-size: 14.5px;
}

.site-header--overlay .hdr-nav-link:hover {
    background: rgba(255,255,255,0.6);
    color: #0f766e;
}

/* Active nav link (current page) */
.site-header--overlay .hdr-nav-link.is-active {
    color: #0f766e;
    background: rgba(255,255,255,0.55);
}

/* Language button styled for overlay (light bg variant) */
.hdr-lang--light .hdr-lang-btn {
    background: rgba(255,255,255,0.75);
    border: 1.5px solid rgba(0,0,0,0.12);
    color: #1e293b;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hdr-lang--light .hdr-lang-btn:hover {
    background: rgba(255,255,255,0.92);
    color: #0f766e;
}

/* ======================================
   CLIMATE CAFÃ‰ PAGE  (ccafe-*)
====================================== */

/* Page wrapper â€“ no top padding; hero fills from y=0 */
.ccafe-page {
    background: #f8fafc;
}

/* â”€â”€ Hero â”€â”€ */
.ccafe-hero {
    position: relative;
    height: 460px;
    display: flex;
    align-items: center;
    overflow: visible;   /* let white fade spill into next section */
    margin-bottom: -60px; /* pull calendar section up under the white fade */
}

.ccafe-hero-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: ccafeFadeInUp 0.72s ease forwards;
}

.ccafe-hero-reveal:nth-child(1) {
    animation-delay: 0.14s;
}

.ccafe-hero-reveal:nth-child(2) {
    animation-delay: 0.24s;
}

.ccafe-hero-reveal:nth-child(3) {
    animation-delay: 0.34s;
}

@keyframes ccafeFadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ccafe-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gradient: bottom fades to white (like screenshot 1), left panel keeps text readable */
.ccafe-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        /* Strong bottom-to-white fade â€” blends hero into page */
        linear-gradient(to top,
            #ffffff        0%,
            rgba(255,255,255,0.92) 15%,
            rgba(255,255,255,0.55) 35%,
            rgba(255,255,255,0.15) 55%,
            transparent    75%
        ),
        /* Subtle left overlay so dark text stays legible */
        linear-gradient(to right,
            rgba(255,255,255,0.65) 0%,
            rgba(255,255,255,0.25) 40%,
            transparent    65%
        );
    z-index: 1;
}

.ccafe-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 64px; /* clear the absolute header */
    max-width: 680px;
    width: min(100%, 680px);
    text-align: left;
    margin-left: 0;
}

/* Eyebrow / category label */
.ccafe-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ea580c;
    margin-bottom: 14px;
}

.ccafe-eyebrow svg {
    flex-shrink: 0;
}

/* Main headline */
.ccafe-hero-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.1;
    color: #0c1e3b;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow-wrap: normal;
}

/* Sub-description */
.ccafe-hero-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    max-width: 440px;
    margin: 0;
}

.ccafe-hero-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: ccafeFadeInUp 0.72s ease forwards;
}

.ccafe-hero-reveal:nth-of-type(1) {
    animation-delay: 0.1s;
}

.ccafe-hero-reveal:nth-of-type(2) {
    animation-delay: 0.2s;
}

.ccafe-hero-reveal:nth-of-type(3) {
    animation-delay: 0.3s;
}

@keyframes ccafeFadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA buttons inside hero */
.ccafe-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ccafe-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 26px;
    background: #0f766e;
    color: #fff;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s, transform 0.18s;
}

.ccafe-btn-primary:hover {
    background: #0d5f58;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.ccafe-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 22px;
    background: rgba(255,255,255,0.75);
    color: #0c1e3b;
    border: 2px solid rgba(15,118,110,0.35);
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background 0.18s, border-color 0.18s;
}

.ccafe-btn-outline:hover {
    background: rgba(255,255,255,0.92);
    border-color: #0f766e;
    text-decoration: none;
    color: #0f766e;
}

/* â”€â”€ Stat chips below hero title â”€â”€ */
.ccafe-hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.ccafe-stat {
    display: flex;
    flex-direction: column;
}

.ccafe-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #0f766e;
    line-height: 1;
}

.ccafe-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
    margin-top: 3px;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 768px) {
    .ccafe-hero { height: auto; min-height: 360px; }
    .ccafe-hero-inner { padding-top: 80px; padding-bottom: 40px; }
    .ccafe-hero-overlay {
        background: linear-gradient(to bottom,
            rgba(255,255,255,0.55) 0%,
            rgba(255,255,255,0.88) 60%,
            #f8fafc 100%);
    }
}

/* ======================================
   ADMIN POSTS MANAGER (apm-*)
====================================== */

.apm-page {
    background: #f1f5f9;
    min-height: calc(100vh - 72px);
    padding: 32px 0 60px;
}

.apm-wrap {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

/* â”€â”€ Page header â”€â”€ */
.apm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.apm-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0c1e3b;
}

.apm-header-left svg { color: #0f766e; flex-shrink: 0; }

.apm-header-left h1 {
    font-size: 22px;
    font-weight: 800;
    color: #0c1e3b;
    margin: 0;
}

.apm-total-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 10px;
}

.apm-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* â”€â”€ Buttons â”€â”€ */
.apm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    white-space: nowrap;
}

.apm-btn-primary {
    background: #0f766e;
    color: #fff;
}
.apm-btn-primary:hover { background: #0d5f58; color: #fff; }

.apm-btn-outline {
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
}
.apm-btn-outline:hover { background: #f8fafc; border-color: #9ca3af; }

.apm-btn-ghost {
    background: transparent;
    color: #64748b;
    border: 1.5px solid transparent;
}
.apm-btn-ghost:hover { background: #f1f5f9; color: #374151; }

/* â”€â”€ Notices â”€â”€ */
.apm-notice {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.apm-notice-success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}

.apm-notice-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}

/* â”€â”€ Filters bar â”€â”€ */
.apm-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.apm-filter-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 150px;
    max-width: 230px;
}

.apm-filter-search { max-width: 260px; }

.apm-filter-icon {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

.apm-filter-field input,
.apm-filter-field select {
    width: 100%;
    padding: 8px 10px 8px 32px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    background: #f8fafc;
    color: #1e293b;
    appearance: none;
    transition: border-color 0.18s, background 0.18s;
}

.apm-filter-field input:focus,
.apm-filter-field select:focus {
    outline: none;
    border-color: #0f766e;
    background: #fff;
}

/* â”€â”€ Results count bar â”€â”€ */
.apm-results-bar {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apm-results-bar strong { color: #1e293b; }

.apm-clear-link {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
    font-size: 12px;
    border-bottom: 1px solid #0f766e44;
}
.apm-clear-link:hover { border-bottom-color: #0f766e; }

/* â”€â”€ Empty states â”€â”€ */
.apm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 20px;
    background: #fff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    text-align: center;
}

.apm-empty a { color: #0f766e; font-weight: 600; }

/* â”€â”€ Table wrapper â”€â”€ */
.apm-table-wrap {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(15,23,42,0.06);
}

/* â”€â”€ Table â”€â”€ */
.apm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.apm-table thead {
    background: linear-gradient(90deg, #0c1e3b, #014f59);
    color: #e2e8f0;
}

.apm-table thead th {
    padding: 13px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
    color: #cbd5e1;
}

.th-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s;
}
.th-sort-link:hover { color: #fff; }

.apm-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s;
}

.apm-table tbody tr:last-child { border-bottom: none; }
.apm-table tbody tr:hover { background: #f8fafc; }

.apm-table td {
    padding: 12px 14px;
    vertical-align: middle;
    color: #374151;
}

/* column widths */
.col-thumb    { width: 52px; padding: 10px 10px; }
.col-title    { min-width: 220px; max-width: 340px; }
.col-cat      { white-space: nowrap; }
.col-region   { white-space: nowrap; }
.col-author   { white-space: nowrap; }
.col-views    { white-space: nowrap; text-align: center; }
.col-comments { white-space: nowrap; text-align: center; }
.col-flags    { white-space: nowrap; }
.col-date     { white-space: nowrap; color: #64748b; font-size: 12.5px; }
.col-actions  { white-space: nowrap; }

/* â”€â”€ Thumbnail â”€â”€ */
.apm-thumb {
    width: 46px;
    height: 34px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    border: 1.5px solid #e2e8f0;
}

.apm-thumb-empty {
    width: 46px;
    height: 34px;
    border-radius: 5px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed #cbd5e1;
}

/* â”€â”€ Post title link â”€â”€ */
.apm-post-title {
    font-weight: 600;
    color: #0c1e3b;
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.apm-post-title:hover { color: #0f766e; text-decoration: underline; }

/* â”€â”€ Category pill â”€â”€ */
.apm-cat-pill {
    display: inline-block;
    padding: 3px 9px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #a7f3d0;
}

/* â”€â”€ Stat cell (views/comments) â”€â”€ */
.apm-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

/* â”€â”€ Badges â”€â”€ */
.apm-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apm-badge-trending {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.apm-badge-latest {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde68a;
}

.apm-no-flag { color: #cbd5e1; }

/* â”€â”€ Action buttons â”€â”€ */
.apm-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    background: none;
    font-family: inherit;
}

.apm-action-edit {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.apm-action-edit:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.apm-action-delete {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}
.apm-action-delete:hover {
    background: #ffe4e6;
    border-color: #fda4af;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 900px) {
    .col-region, .col-author { display: none; }
}

@media (max-width: 640px) {
    .apm-filters { gap: 8px; }
    .apm-filter-field { max-width: 100%; min-width: 100%; }
    .col-cat, .col-flags { display: none; }
    .apm-table thead th,
    .apm-table td { padding: 10px 8px; }
}
