/* ==========================================================================
   JANSCOPE — Main Stylesheet
   Premium news portal + digital marketing agency
   --------------------------------------------------------------------------
   Table of contents:
   01. Design tokens & reset          08. Cards & grids
   02. Base & typography              09. Sidebar widgets
   03. Utilities & buttons            10. Article page
   04. Topbar / Header / Nav          11. Services / About / Contact
   05. Breaking ticker                12. Newsletter & Footer
   06. Search overlay & misc UI       13. Animations
   07. Homepage sections              14. Responsive
   ========================================================================== */

/* ================= 01. TOKENS & RESET ================= */
:root {
    --primary:       #10234B;
    --primary-2:     #1B3A7A;
    --primary-dark:  #0A1730;
    --accent:        #E8323E;
    --accent-2:      #F05548;
    --accent-dark:   #C41E2F;
    --gold:          #F5A623;
    --ink:           #161A22;
    --muted:         #667085;
    --bg:            #F4F6FA;
    --white:         #FFFFFF;
    --border:        #E5E8F0;
    --radius:        14px;
    --radius-sm:     9px;
    --shadow-sm:     0 2px 10px rgba(16,35,75,.06);
    --shadow:        0 6px 24px rgba(16,35,75,.10);
    --shadow-lg:     0 14px 44px rgba(16,35,75,.16);
    --font-head:     'Poppins', 'Segoe UI', sans-serif;
    --font-body:     'Inter', 'Segoe UI', sans-serif;
    --container:     1200px;
    --tr:            .28s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.28; font-weight: 700; }

/* ================= 02. BASE ================= */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 44px 0; }
.alt-bg  { background: var(--white); }

.no-scroll { overflow: hidden; }

/* ================= 03. UTILITIES & BUTTONS ================= */
.d-none-md { display: inline; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 50px;
    font-weight: 600; font-size: 15px; font-family: var(--font-head);
    transition: var(--tr); white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); box-shadow: var(--shadow); }

.btn-accent   { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 6px 18px rgba(232,50,62,.35); }
.btn-accent:hover { box-shadow: 0 10px 26px rgba(232,50,62,.45); transform: translateY(-2px); }

.btn-light    { background: #fff; color: var(--primary); }
.btn-light:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.btn-outline  { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-outline-light { border: 2px solid rgba(255,255,255,.75); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--primary); }

.btn-sm   { padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 10px; }

/* Section heads */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 24px;
}
.section-head.center-head { flex-direction: column; text-align: center; gap: 6px; }
.section-sub { color: var(--muted); }

.section-title {
    display: flex; align-items: center; gap: 12px;
    font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--primary);
}
.section-title .bar { width: 6px; height: 26px; border-radius: 4px; background: var(--bar, var(--accent)); flex: none; }

.view-all { font-weight: 600; font-size: 14px; color: var(--accent); flex: none; transition: var(--tr); }
.view-all:hover { gap: 6px; color: var(--accent-dark); letter-spacing: .2px; }

.kicker {
    display: inline-block; font-family: var(--font-head); font-weight: 600;
    font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 10px;
}

/* Category badge */
.cat-badge {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    background: var(--cat, var(--primary)); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    transition: var(--tr); text-decoration: none;
}
.cat-badge:hover { filter: brightness(1.15); transform: translateY(-1px); }
.cat-badge.on-img {
    position: absolute; top: 14px; right: 14px; left: auto; z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,.35);
}

/* Category SVG & Image Icon Styling */
.cat-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 1.3em;
    height: 1.3em;
    line-height: 1;
    margin-right: 4px;
}

.cat-icon-svg svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 1.3em !important;
    max-height: 1.3em !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.cat-icon-img {
    width: 1.3em;
    height: 1.3em;
    vertical-align: middle;
    object-fit: contain;
    margin-right: 4px;
}

/* News meta line */
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.8px; color: var(--muted); }
.news-meta.light { color: rgba(255,255,255,.85); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14.5px; font-weight: 500; }
.alert-success { background: #E7F8EF; color: #0E7A45; border: 1px solid #B8EBCF; }
.alert-error   { background: #FDECEE; color: #B4232F; border: 1px solid #F5C6CC; }

/* Advertisement slots */
.ad-slot { text-align: center; margin: 26px 0; }
.ad-label { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #A0A8B8; margin-bottom: 6px; }
.ad-box {
    display: flex; align-items: center; justify-content: center;
    min-height: 90px; margin: 0 auto; padding: 18px;
    background: repeating-linear-gradient(45deg, #F0F2F8, #F0F2F8 12px, #E9ECF4 12px, #E9ECF4 24px);
    border: 1.5px dashed #C3CBDC; border-radius: var(--radius-sm);
    color: #8A93A8; font-size: 13px; font-weight: 600; letter-spacing: 1px;
}
.ad-box.ad-sidebar_rect { min-height: 250px; }
.ad-box.ad-article_inline { min-height: 110px; }

/* ================= 04. TOPBAR / HEADER / NAV ================= */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,.85); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-cta { color: var(--gold); font-weight: 600; transition: var(--tr); }
.topbar-cta:hover { color: #fff; }

/* Google Preferred Source Button */
.google-pref-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #ffffff; color: #1a1a1a;
    font-family: var(--font-head); font-size: 12px; font-weight: 700;
    padding: 4px 13px; border-radius: 50px; text-decoration: none;
    transition: all .2s ease; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.google-pref-btn:hover { background: #f8f9fa; color: #000; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.3); }

/* Multi-Language Selector Dropdown */
.lang-selector-wrap { position: relative; display: inline-block; }
.lang-selector-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #111a2e; border: 1px solid rgba(255,255,255,.2);
    color: #ffffff; font-family: var(--font-head); font-size: 13px; font-weight: 700;
    padding: 4px 12px; border-radius: 50px; cursor: pointer; transition: all .2s ease;
}
.lang-selector-btn:hover { background: #1e293b; border-color: rgba(255,255,255,.4); }
.lang-flag { font-size: 13px; opacity: .95; line-height: 1; }
.lang-arrow { font-size: 9px; opacity: .8; transition: transform .2s ease; }
.lang-selector-wrap.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #1e293b; border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
    padding: 8px 0; min-width: 170px; max-height: 320px; overflow-y: auto;
    z-index: 1000; display: none; list-style: none; margin: 0;
}
.lang-selector-wrap.open .lang-dropdown-menu { display: block; animation: langDropIn .2s ease; }
@keyframes langDropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.lang-dropdown-menu li a {
    display: flex; align-items: center; gap: 10px; padding: 8px 16px;
    color: #e2e8f0; font-size: 13.5px; font-weight: 600; text-decoration: none;
    transition: background .15s ease;
}
.lang-dropdown-menu li a:hover { background: rgba(255,255,255,.1); color: #ffffff; }

.topbar-social, .footer-social { display: flex; align-items: center; gap: 8px; }

.soc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: #ffffff; color: #111a2e;
    transition: all .2s ease; box-shadow: 0 2px 5px rgba(0,0,0,.2);
    text-decoration: none;
}
.soc-btn svg { display: block; flex-shrink: 0; }
.soc-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.soc-btn-facebook:hover { background: #1877F2; color: #fff; }
.soc-btn-twitter:hover, .soc-btn-x:hover { background: #000000; color: #fff; }
.soc-btn-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.soc-btn-linkedin:hover { background: #0A66C2; color: #fff; }
.soc-btn-youtube:hover { background: #FF0000; color: #fff; }
.soc-btn-telegram:hover { background: #229ED9; color: #fff; }
.soc-btn-whatsapp:hover { background: #25D366; color: #fff; }

/* Header */
.site-header { background: #fff; padding: 16px 0; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-logo { width: 46px; height: 46px; }
.brand-text { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: -.5px; }
.brand-text span { color: var(--accent); }

.header-inner .ad-slot { margin: 0; flex: 1; max-width: 760px; }
.header-inner .ad-box { min-height: 78px; }

/* Header actions (search + hamburger group) */
.header-actions { display: none; align-items: center; gap: 4px; }

/* Search toggle variants */
.search-toggle-mob { display: none; } /* hidden on desktop */
.search-toggle-desk { display: inline-flex; } /* shown in nav on desktop */

/* Hamburger */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; z-index: 60; }
.menu-toggle span { width: 26px; height: 3px; background: var(--primary); border-radius: 3px; transition: var(--tr); }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav */
.main-nav {
    background: var(--primary); position: sticky; top: 0; z-index: 200;
    transition: box-shadow var(--tr); overflow: visible;
}
.main-nav.scrolled { box-shadow: 0 8px 24px rgba(10,23,48,.35); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; overflow: visible; }
.nav-menu { display: flex; align-items: stretch; flex-wrap: nowrap; overflow: visible; scrollbar-width: none; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu a {
    display: flex; align-items: center; padding: 14px 16px;
    color: rgba(255,255,255,.92); font-size: 14.5px; font-weight: 600; font-family: var(--font-head);
    white-space: nowrap; position: relative; transition: var(--tr);
}
.nav-menu a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px;
    height: 3px; border-radius: 3px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: var(--tr);
}
.nav-menu a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-services { color: var(--gold) !important; }

/* Hide mobile-only drawer elements on desktop */
.mob-drawer-header, .mob-drawer-social { display: none; }


/* Dynamic More Dropdown Menu */
.nav-dropdown-wrap { position: relative; list-style: none; }
.nav-dropdown-toggle {
    display: flex !important; align-items: center; gap: 4px; padding: 14px 16px !important;
    cursor: pointer;
}
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 4px); right: 0;
    background: #111a2e; border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.55);
    padding: 8px 0; min-width: 210px;
    z-index: 9999;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    list-style: none; margin: 0;
}
.nav-dropdown-wrap:hover .nav-dropdown-menu,
.nav-dropdown-wrap.open .nav-dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
}
.nav-dropdown-menu li { list-style: none; margin: 0; }
.nav-dropdown-menu li a {
    display: flex !important; align-items: center; gap: 10px; padding: 11px 18px !important;
    color: rgba(255,255,255,0.9) !important; font-size: 14px; font-weight: 600;
    white-space: nowrap; text-decoration: none; transition: background .15s ease;
    background: transparent !important;
}
.nav-dropdown-menu li a::after { display: none !important; }
.nav-dropdown-menu li a:hover { background: rgba(255,255,255,0.12) !important; color: #ffffff !important; }
.nav-dropdown-menu li + li { border-top: 1px solid rgba(255,255,255,0.06); }

.search-toggle {
    color: #fff; padding: 12px 14px; flex: none;
    display: inline-flex; align-items: center; transition: var(--tr);
}
.search-toggle:hover { color: var(--gold); transform: scale(1.1); }

/* ================= 05. BREAKING TICKER ================= */
.breaking-bar { background: #fff; border-bottom: 1px solid var(--border); }
.breaking-inner { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.breaking-label {
    flex: none; background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 6px; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,50,62,.45); } 50% { box-shadow: 0 0 0 7px rgba(232,50,62,0); } }

.ticker-wrap { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker { display: inline-flex; white-space: nowrap; animation: ticker 38s linear infinite; will-change: transform; }
.ticker-item { margin-right: 42px; } /* margin (not gap) keeps the -50% loop seamless */
.ticker:hover { animation-play-state: paused; }
.ticker-item { font-size: 13.8px; color: var(--ink); font-weight: 500; position: relative; }
.ticker-item::before { content: '•'; color: var(--accent); margin-right: 8px; }
.ticker-item:hover { color: var(--accent); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= 06. SEARCH OVERLAY & MISC ================= */
.search-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(10,23,48,.96); backdrop-filter: blur(6px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px; opacity: 0; visibility: hidden; transition: var(--tr);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-close { position: absolute; top: 26px; right: 30px; color: #fff; font-size: 30px; opacity: .8; transition: var(--tr); }
.search-close:hover { opacity: 1; transform: rotate(90deg); }
.search-overlay-form { display: flex; width: min(640px, 100%); border-radius: 60px; overflow: hidden; box-shadow: var(--shadow-lg); transform: translateY(20px); transition: var(--tr); }
.search-overlay.open .search-overlay-form { transform: translateY(0); }
.search-overlay-form input { flex: 1; border: 0; outline: 0; padding: 20px 28px; font-size: 18px; background: #fff; }
.search-overlay-form button { background: var(--accent); color: #fff; padding: 0 34px; font-weight: 700; font-family: var(--font-head); }
.search-overlay-form button:hover { background: var(--accent-dark); }
.search-hint { color: rgba(255,255,255,.6); margin-top: 18px; font-size: 14px; }

.reading-progress {
    position: fixed; top: 0; left: 0; height: 3.5px; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--gold)); z-index: 200;
}

.back-to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 80;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: 22px; line-height: 1;
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: var(--tr);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }

/* ---------- Push notification opt-in widget ---------- */
.push-bell {
    position: fixed; left: 20px; bottom: 24px; z-index: 80;
    display: flex; align-items: stretch; gap: 0;
    background: var(--primary); color: #fff; border-radius: 999px;
    box-shadow: var(--shadow-lg); overflow: hidden;
    animation: pushBellIn .35s ease;
}
.push-bell[hidden] { display: none; }
.push-bell-btn {
    display: flex; align-items: center; gap: 8px; border: 0; background: transparent;
    color: #fff; font: 600 13.5px/1 inherit; cursor: pointer;
    padding: 12px 14px 12px 16px; white-space: nowrap;
}
.push-bell-icon { font-size: 16px; }
.push-bell.is-on .push-bell-btn { cursor: default; }
.push-bell-close {
    border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
    width: 34px; font-size: 13px; flex-shrink: 0;
}
.push-bell-close:hover { background: rgba(255,255,255,.22); }
@keyframes pushBellIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) { .push-bell-text { max-width: 150px; overflow: hidden; text-overflow: ellipsis; } }

/* ================= 07. HOMEPAGE SECTIONS ================= */

/* Hero */
.hero-section { padding: 28px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.85fr 1fr; gap: 20px; align-items: stretch; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; height: 100%; }

.hero-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); width: 100%; height: 100%; }
.hero-card a { display: block; width: 100%; height: 100%; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s ease; display: block; }
.hero-card:hover img { transform: scale(1.04); }
.hero-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,23,48,0) 20%, rgba(10,23,48,.50) 55%, rgba(10,23,48,.92) 100%);
    pointer-events: none;
    z-index: 1;
}
.hero-main { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hero-small { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hero-slider { width: 100%; height: auto; aspect-ratio: 16 / 9; }

.hero-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px; color: #fff; }
.hero-main .hero-overlay h1, .hero-main .hero-overlay h2, .hero-main .hero-overlay .hero-title { font-size: clamp(22px, 2.7vw, 32px); margin: 12px 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-main .hero-overlay p { font-size: 15px; color: rgba(255,255,255,.88); max-width: 90%; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-small .hero-overlay { padding: 18px; }
.hero-small h2 { font-size: 17.5px; margin: 10px 0 8px; text-shadow: 0 2px 10px rgba(0,0,0,.45); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Trending strip */
.trending-section { padding: 30px 0 10px; }
.trending-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}
.trend-card {
    display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius);
    border: 1px solid var(--border); transition: var(--tr);
    overflow: hidden; height: 100%;
}
.trend-card a {
    display: flex; flex-direction: column; gap: 0;
    height: 100%; text-decoration: none; color: inherit;
}
.trend-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent);
}
/* Thumbnail */
.trend-thumb {
    position: relative; overflow: hidden;
    aspect-ratio: 16 / 9; width: 100%;
    background: var(--bg);
}
.trend-thumb img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    display: block; transition: transform .5s ease;
}
.trend-card:hover .trend-thumb img { transform: scale(1.06); }
.trend-header {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 14px 16px 4px;
}
.trend-big-num {
    font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.6px var(--accent); flex: none;
}
.trend-card-body {
    display: flex; flex-direction: column; flex: 1; justify-content: space-between;
    padding: 0 16px 16px;
}
.trend-card-body h3 {
    font-size: 14.5px; font-weight: 700; color: var(--primary); margin: 8px 0 10px;
    line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 990px) {
    .trending-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
    .trending-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ================= 08. CARDS & GRIDS ================= */
.layout-2col { display: grid; grid-template-columns: 1fr 330px; gap: 36px; align-items: start; }
.content-col { min-width: 0; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.layout-2col .news-grid { grid-template-columns: repeat(2, 1fr); }
.news-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.news-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); transition: var(--tr);
    display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
/* Image wrapper — always 16:9, never crops text or image edges */
.news-card-img {
    position: relative; display: block;
    width: 100%; aspect-ratio: 16 / 9;
    overflow: hidden; flex: none;
}
.news-card-img img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block; transition: transform .5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card-title { font-size: 16.8px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-title a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s ease; }
.news-card-title a:hover { background-size: 100% 2px; }
.news-card-excerpt { font-size: 13.8px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }

/* Horizontal card */
.news-card-row {
    display: flex; gap: 16px; background: #fff; padding: 14px;
    border-radius: var(--radius); border: 1px solid var(--border); transition: var(--tr);
}
.news-card-row:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.news-card-row .row-thumb {
    flex: none; width: 128px; border-radius: var(--radius-sm);
    overflow: hidden; aspect-ratio: 3/2; align-self: flex-start;
}
.news-card-row .row-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.news-card-row .row-body { min-width: 0; display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.news-card-row h3 { font-size: 15.2px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-row h3 a:hover { color: var(--accent); }
.news-card-row .cat-badge { font-size: 10.5px; padding: 3px 9px; align-self: flex-start; }
.news-card-row.big { padding: 18px; }
.news-card-row.big .row-thumb { width: 240px; aspect-ratio: 4/3; }
.news-card-row.big p { font-size: 14px; color: var(--muted); }

/* Category sections */
.cat-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: start; }
.cat-lead { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: var(--tr); }
.cat-lead:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
/* Category lead image — 16:9, never crops */
.cat-lead-imglink { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.cat-lead-imglink img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .5s ease; }
.cat-lead:hover .cat-lead-imglink img { transform: scale(1.04); }
/* Keep old .cat-lead a img selector for compatibility */
.cat-lead > a > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.cat-lead-body { padding: 20px 22px 24px; }
.cat-lead-body h3 { font-size: 20px; margin-bottom: 8px; }
.cat-lead-body h3 a { color: var(--primary); text-decoration: none; }
.cat-lead-body h3 a:hover { color: var(--accent); }
.cat-lead-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.cat-list { display: grid; gap: 14px; }

/* Services promo (homepage) */
.services-promo {
    padding: 60px 0; color: #fff;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(232,50,62,.35), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, rgba(245,166,35,.22), transparent 55%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.services-promo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.services-promo-head h2 { font-size: clamp(24px, 3.2vw, 34px); max-width: 640px; }
.services-promo-head h2 em { font-style: normal; color: var(--gold); }
.services-promo-head p { color: rgba(255,255,255,.75); margin-top: 10px; max-width: 560px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius); padding: 26px 24px;
    backdrop-filter: blur(6px); transition: var(--tr); display: block;
}
.service-card:hover { background: rgba(255,255,255,.13); transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,.3); }
.service-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; font-size: 26px; background: rgba(255,255,255,.12); border-radius: 14px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 13.8px; color: rgba(255,255,255,.72); margin-bottom: 14px; }
.service-link { font-size: 13.5px; font-weight: 700; color: var(--gold); }

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff; padding: 42px 0;
}
.cta-banner.inline { border-radius: var(--radius); padding: 34px 30px; margin: 30px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(21px, 2.8vw, 28px); margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,.88); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-actions.center { justify-content: center; }
.cta-banner .btn-accent { background: #fff; color: var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.cta-banner .btn-accent:hover { transform: translateY(-2px); }

/* ================= 09. SIDEBAR ================= */
.sidebar { display: grid; gap: 26px; position: sticky; top: 74px; }

.widget { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 22px; }
.widget-title { font-size: 17.5px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--bg); position: relative; }
.widget-title span { position: relative; }
.widget-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--accent); }

.sidebar-search { display: flex; border: 1.5px solid var(--border); border-radius: 50px; overflow: hidden; transition: var(--tr); }
.sidebar-search:focus-within { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.sidebar-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 11px 18px; background: transparent; }
.sidebar-search button { padding: 0 16px; font-size: 15px; }

/* ============ STAY UPDATED SIDEBAR WIDGET ============ */
.widget-stay-updated {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}

.stay-updated-title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #0f172a;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.stay-updated-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #e11d48;
    border-radius: 2px;
}

.stay-updated-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stay-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stay-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.stay-wa { background: #ecfdf5; border: 1px solid #a7f3d0; }
.stay-tg { background: #f0f9ff; border: 1px solid #bae6fd; }
.stay-yt { background: #fef2f2; border: 1px solid #fecaca; }
.stay-ig { background: #fdf2f8; border: 1px solid #fbcfe8; }

.stay-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.stay-icon-wa { background: #25D366; }
.stay-icon-tg { background: #0088cc; }
.stay-icon-yt { background: #FF0000; }
.stay-icon-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.stay-info { display: flex; flex-direction: column; gap: 2px; }
.stay-name { font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.stay-sub  { font-size: 12.5px; font-weight: 500; color: #64748b; line-height: 1.2; }

.widget-trending { display: grid; gap: 4px; }
.trend-item { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.trend-item:last-child { border-bottom: 0; }
.trend-item h4 { font-size: 14.3px; line-height: 1.4; margin-bottom: 5px; transition: var(--tr); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend-item:hover h4 { color: var(--accent); }
.trend-num {
    flex: none; width: 34px; height: 34px; border-radius: 10px;
    background: var(--bg); color: var(--accent); font-family: var(--font-head);
    font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px;
}

.widget-cats li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 4px; border-bottom: 1px dashed var(--border); font-weight: 500; font-size: 14.5px;
    transition: var(--tr);
}
.widget-cats li:last-child a { border-bottom: 0; }
.widget-cats li a:hover { color: var(--accent); padding-left: 8px; }
.cat-count { background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; }

.widget-cta {
    background:
        radial-gradient(400px 200px at 110% -20%, rgba(232,50,62,.45), transparent 60%),
        linear-gradient(150deg, var(--primary), var(--primary-dark));
    color: #fff; border: 0; text-align: center;
}
.widget-cta h3 { font-size: 19px; margin-bottom: 10px; }
.widget-cta p { font-size: 13.8px; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.widget-cta .btn-block { margin-top: 12px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud.center { justify-content: center; margin-top: 18px; }
.tag-cloud a {
    padding: 6px 14px; border-radius: 50px; background: var(--bg);
    font-size: 12.8px; font-weight: 600; color: var(--ink); transition: var(--tr);
}
.tag-cloud a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ================= 10. ARTICLE PAGE ================= */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.2px; color: var(--muted); padding: 18px 0 4px; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb em { font-style: normal; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }
.breadcrumb.light, .breadcrumb.light a { color: rgba(255,255,255,.85); }

.article-wrap { padding: 10px 0 40px; }
.article-header h1 { font-size: clamp(24px, 3.4vw, 36px); margin: 14px 0 12px; letter-spacing: -.4px; }
.article-standfirst { font-size: 17.5px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; }

.editors-pick {
    display: inline-block; margin-left: 10px; padding: 5px 12px; border-radius: 6px;
    background: var(--gold); color: #4A3000; font-size: 11.5px; font-weight: 800;
    letter-spacing: .8px; text-transform: uppercase;
}

.article-byline {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.author-chip { display: flex; align-items: center; gap: 12px; }
.author-chip small { display: block; color: var(--muted); font-size: 12.5px; }
.author-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 19px;
    display: flex; align-items: center; justify-content: center;
}
.author-avatar.big { width: 64px; height: 64px; font-size: 27px; }
.article-meta-items { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }

/* ============ ARTICLE SOCIAL SHARE BAR ============ */
.article-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 24px;
}

.share-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    flex: none;
}

.share-circle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.share-circle svg {
    width: 20px;
    height: 20px;
    display: block;
}

.share-fb { background: #1877F2; }
.share-x  { background: #14171A; }
.share-wa { background: #25D366; }

/* Native Share Red Circle Icon Button */
.share-native {
    background: #e11d48;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.share-native:hover {
    background: #be123c;
}

/* Google Preferred Source Card */
.google-pref-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: #334155;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-left: 4px;
}

.google-pref-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.google-pref-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: #334155;
}

.article-hero-img { margin: 18px 0 8px; }
/* Featured image — full-width, 16:9, never cropped */
.article-hero-img figure {
    width: 100%; aspect-ratio: 16 / 9;
    overflow: hidden; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.article-hero-img img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.article-hero-img figcaption { font-size: 12.5px; color: var(--muted); padding-top: 8px; text-align: center; }

.article-body { font-size: 17.2px; line-height: 1.85; color: #2A2F3A; padding: 14px 0 8px; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 23px; color: var(--primary); margin: 30px 0 14px; padding-left: 14px; border-left: 4px solid var(--accent); }
.article-body h3 { font-size: 19px; color: var(--primary); margin: 24px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.article-body blockquote {
    margin: 24px 0; padding: 20px 26px; background: var(--bg);
    border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 18.5px; font-style: italic; color: var(--primary);
}
/* Custom Rich News Blocks */
.news-box { padding: 18px 22px; border-radius: 12px; margin: 24px 0; border-left: 5px solid var(--accent); background: #F8FAFC; box-shadow: var(--shadow-sm); }
.news-box h4 { margin: 0 0 8px 0; font-size: 16px; font-family: var(--font-head); font-weight: 700; color: var(--primary); }
.news-box p:last-child { margin-bottom: 0; }
.news-box.highlights { background: #F0F9FF; border-left-color: #0284C7; }
.news-box.highlights h4 { color: #0369A1; }
.news-box.breaking { background: #FEF2F2; border-left-color: #DC2626; }
.news-box.breaking h4 { color: #991B1B; }
.news-box.factcheck { background: #F0FDF4; border-left-color: #16A34A; }
.news-box.factcheck h4 { color: #166534; }
.news-box.statscard { background: #FAF5FF; border-left-color: #9333EA; text-align: center; }
.news-box.statscard h4 { color: #6B21A8; }
.news-quote { position: relative; padding: 22px 28px; background: linear-gradient(135deg, #1E293B, #0F172A); color: #fff; border-radius: 14px; font-size: 19px; font-style: italic; margin: 26px 0; box-shadow: var(--shadow); }
.news-quote p { color: #F1F5F9; margin-bottom: 8px; }
.news-quote cite { display: block; font-size: 13px; font-style: normal; margin-top: 8px; color: #38BDF8; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.news-related { background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 10px; padding: 14px 18px; margin: 20px 0; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.news-related span { background: #F59E0B; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; }

.article-body .ad-slot { margin: 26px 0; }

/* ============ RESPONSIVE & ELEGANT ARTICLE TABLES ============ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border-radius: var(--radius, 14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.article-body table,
.article-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #1e293b;
    text-align: left;
    background: #ffffff;
}

.article-body table thead,
.article-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #cbd5e1;
}

.article-body table th,
.article-table th {
    padding: 14px 18px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0f172a;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}

.article-body table td,
.article-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #334155;
}

.article-body table tbody tr:nth-child(even),
.article-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.article-body table tbody tr:hover,
.article-table tbody tr:hover {
    background: #f1f5f9;
    transition: background 0.15s ease;
}

.article-body table tbody tr:last-child td,
.article-table tbody tr:last-child td {
    border-bottom: none;
}

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 18px 0; border-top: 1px solid var(--border); margin-top: 10px; font-size: 14px; }
.article-tags a { padding: 6px 15px; background: var(--bg); border-radius: 50px; font-size: 13px; font-weight: 600; transition: var(--tr); }
.article-tags a:hover { background: var(--accent); color: #fff; }

.author-box {
    display: flex; gap: 18px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; margin: 22px 0; box-shadow: var(--shadow-sm);
}
.author-box h4 { font-size: 17px; }
.author-role { color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.author-box p { font-size: 14px; color: var(--muted); }
.author-box a { color: var(--accent); }

/* ================= 10.1 AUTHOR BOX & PROFILES (BIG MEDIA STANDARD) ================= */
.author-box-pro {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 28px 0;
    box-shadow: 0 4px 20px rgba(16, 35, 75, 0.05);
    transition: var(--tr);
}
.author-box-pro:hover {
    box-shadow: 0 8px 30px rgba(16, 35, 75, 0.09);
    border-color: #CBD5E1;
}
.author-box-pro-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.author-box-avatar {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    text-decoration: none;
    display: block;
}
.author-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #E2E8F0;
}
.author-box-avatar .avatar-monogram {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #FFFFFF;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 35, 75, 0.2);
}
.avatar-verified-tick {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #FFFFFF;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.author-box-content {
    flex: 1;
    min-width: 0;
}
.author-box-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}
.author-box-title-row h4 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}
.author-box-title-row h4 a {
    color: inherit;
    transition: color .2s ease;
}
.author-box-title-row h4 a:hover {
    color: var(--accent);
}
.verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    letter-spacing: 0.2px;
}
.author-role-line {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}
.author-bio-snippet {
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 12px;
}
.author-beats-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.beat-mini-tag {
    background: #F1F5F9;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}
.author-box-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px dashed #E2E8F0;
}
.author-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F8FAFC;
    color: var(--primary);
    border: 1px solid #CBD5E1;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all .2s ease;
}
.author-profile-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateX(2px);
}
.author-mini-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}
.author-mini-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.author-mini-socials a:hover {
    background: var(--primary);
    color: #FFFFFF;
}

/* ================= AUTHOR PROFILE PAGE (author.php) ================= */
.author-hero-wrap {
    padding: 24px 0 36px;
}
.author-profile-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(16, 35, 75, 0.06);
    overflow: hidden;
}
.author-profile-main {
    display: flex;
    gap: 32px;
    padding: 36px;
    align-items: flex-start;
}
.author-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
}
.author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.author-avatar-monogram {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #1E3A8A 100%);
    color: #FFFFFF;
    font-size: 46px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #FFFFFF;
    box-shadow: 0 8px 24px rgba(16, 35, 75, 0.2);
}
.verified-checkmark-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #FFFFFF;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.author-profile-info {
    flex: 1;
    min-width: 0;
}
.author-headline-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.author-name {
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}
.author-verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}
.author-badge-pill {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}
.author-designation {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}
.author-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.author-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 4px 10px;
    border-radius: 6px;
}
.author-bio-content {
    font-size: 15.5px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 18px;
}
.author-beats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.beats-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.beat-tag {
    background: #EEF2FF;
    color: #3730A3;
    border: 1px solid #C7D2FE;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}
.author-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid #F1F5F9;
}
.author-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #F8FAFC;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat-box {
    padding: 20px 24px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stat-box:last-child {
    border-right: none;
}
.stat-number {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.author-ethics-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 36px;
    background: #FFFFFF;
    font-size: 13px;
    color: #475569;
}
.author-ethics-footer .ethics-icon {
    flex-shrink: 0;
}

/* ================= STORIES SECTION ON AUTHOR PAGE ================= */
.author-stories-section {
    padding: 24px 0 50px;
}
.author-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-pill {
    padding: 6px 14px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    transition: all .2s ease;
}
.filter-pill:hover,
.filter-pill.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}
.controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.sort-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
}
.sort-link {
    color: var(--muted);
    transition: color .2s ease;
}
.sort-link.active,
.sort-link:hover {
    color: var(--accent);
    font-weight: 700;
}
.author-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.author-story-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--tr);
}
.author-story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #CBD5E1;
}
.story-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0F172A;
}
.story-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.author-story-card:hover .story-card-thumb img {
    transform: scale(1.05);
}
.story-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.story-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.story-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}
.story-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.story-card-title {
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary);
    margin-bottom: 10px;
}
.story-card-title a {
    color: inherit;
    transition: color .2s ease;
}
.story-card-title a:hover {
    color: var(--accent);
}
.story-card-excerpt {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.story-card-footer {
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
}
.read-story-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s ease;
}
.read-story-link:hover {
    gap: 8px;
}
.editorial-trust-banner {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.trust-banner-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.trust-banner-text p {
    font-size: 14px;
    color: #64748B;
    max-width: 780px;
    margin: 0;
}

/* ================= AUTHORS DIRECTORY (authors.php) ================= */
.authors-dir-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    padding: 50px 0;
}
.authors-dir-hero-inner {
    max-width: 800px;
}
.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.authors-dir-hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}
.authors-dir-hero p {
    font-size: 16.5px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 24px;
}
.dir-summary-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.dir-stat-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 18px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}
.dir-stat-item strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}
.dir-stat-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.authors-dir-section {
    padding: 40px 0 60px;
}
.authors-dir-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.author-card-modern {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--tr);
}
.author-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #CBD5E1;
}
.author-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.author-card-avatar {
    position: relative;
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    text-decoration: none;
}
.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #E2E8F0;
}
.author-monogram-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 35, 75, 0.15);
}
.verified-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #FFFFFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.author-card-info {
    flex: 1;
    min-width: 0;
}
.author-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 2px;
}
.author-card-name a {
    color: inherit;
    transition: color .2s ease;
}
.author-card-name a:hover {
    color: var(--accent);
}
.author-card-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}
.author-card-loc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--muted);
}
.author-card-bio {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 14px;
    flex: 1;
}
.author-card-beats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
}
.beat-pill {
    background: #F1F5F9;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.author-card-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px dashed #E2E8F0;
    border-bottom: 1px dashed #E2E8F0;
    margin-bottom: 16px;
}
.metric-col strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}
.metric-col span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
}
.metric-social {
    display: flex;
    align-items: center;
    gap: 6px;
}
.metric-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.metric-social a:hover {
    background: var(--primary);
    color: #FFFFFF;
}
.btn-author-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: #F8FAFC;
    color: var(--primary);
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: all .2s ease;
}
.btn-author-view:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}
.author-join-banner {
    padding-bottom: 50px;
}
.join-banner-box {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    box-shadow: var(--shadow-sm);
}
.join-banner-text h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}
.join-banner-text p {
    font-size: 15px;
    color: #64748B;
    max-width: 650px;
    margin: 0;
}
.join-banner-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .author-profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }
    .author-headline-row,
    .author-meta-line,
    .author-beats-row,
    .author-actions-bar {
        justify-content: center;
    }
    .author-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-box:nth-child(2) {
        border-right: none;
    }
    .author-articles-grid,
    .authors-dir-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .author-articles-grid,
    .authors-dir-grid {
        grid-template-columns: 1fr;
    }
    .author-stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-box {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .stat-box:last-child {
        border-bottom: none;
    }
    .author-box-pro-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

.related-section { margin-top: 34px; }

/* ================= 11. PAGE HERO / SERVICES / ABOUT / CONTACT ================= */
.page-hero {
    background: var(--primary); /* fallback for browsers without color-mix() */
    background:
        radial-gradient(600px 300px at 90% -20%, color-mix(in srgb, var(--cat, #10234B) 55%, transparent), transparent 65%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; padding: 44px 0;
}
.page-hero h1 { font-size: clamp(26px, 3.6vw, 36px); margin: 8px 0 8px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; }

.hero-search { display: flex; gap: 10px; max-width: 560px; margin-top: 20px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; border-radius: 50px; padding: 13px 22px; font-size: 15px; }

/* Empty states / 404 */
.empty-state { text-align: center; padding: 56px 24px; background: #fff; border-radius: var(--radius); border: 1px dashed var(--border); }
.empty-state h2 { color: var(--primary); margin-bottom: 8px; }
.empty-state p { color: var(--muted); }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.big-404 { padding: 70px 24px; }
.big-404-num {
    display: block; font-family: var(--font-head); font-size: clamp(80px, 16vw, 140px); font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px;
}
.big-404 .hero-search { margin: 26px auto 0; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.pagination a {
    min-width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #fff; border: 1px solid var(--border); font-weight: 600; transition: var(--tr);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Services page */
.services-hero {
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(232,50,62,.4), transparent 60%),
        radial-gradient(700px 380px at -5% 115%, rgba(245,166,35,.2), transparent 55%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; text-align: center; padding: 72px 0 60px;
}
.services-hero h1 { font-size: clamp(28px, 4.4vw, 44px); max-width: 800px; margin: 0 auto 14px; }
.services-hero h1 em { font-style: normal; color: var(--gold); }
.services-hero > .container > p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto 26px; font-size: 17px; }
.hero-stats { display: flex; justify-content: center; gap: clamp(24px, 6vw, 70px); flex-wrap: wrap; margin-top: 44px; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats strong { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: var(--gold); }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.75); letter-spacing: .5px; }

.services-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-detail-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 26px; transition: var(--tr); scroll-margin-top: 90px;
    display: flex; flex-direction: column;
}
.service-detail-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon.big { width: 60px; height: 60px; font-size: 30px; border-radius: 16px; background: var(--bg); margin-bottom: 18px; }
.service-detail-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--primary); }
.service-detail-card > p { font-size: 14.2px; color: var(--muted); margin-bottom: 16px; }
.service-detail-card ul { margin-bottom: 20px; flex: 1; }
.service-detail-card ul li { font-size: 14px; padding: 5px 0; color: #3A4152; }
.service-detail-card .btn { align-self: flex-start; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 28px 22px; text-align: center; position: relative; transition: var(--tr); }
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.process-step span {
    display: inline-flex; width: 52px; height: 52px; border-radius: 50%;
    align-items: center; justify-content: center; margin-bottom: 14px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
    font-family: var(--font-head); font-size: 22px; font-weight: 800;
}
.process-step h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.process-step p { font-size: 13.6px; color: var(--muted); }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 30px 22px; text-align: center; font-size: 34px; transition: var(--tr); }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-card h3 { font-size: 17px; margin: 12px 0 8px; color: var(--primary); }
.why-card p { font-size: 13.6px; color: var(--muted); }

/* About page */
.prose-wrap { max-width: 860px; }
.prose { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: clamp(24px, 4vw, 44px); margin-bottom: 26px; }
.prose h2 { color: var(--primary); font-size: 23px; margin: 26px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; color: #3A4152; }
.prose ul { margin: 0 0 16px 20px; }
.prose li { margin-bottom: 8px; color: #3A4152; list-style: disc; }
.prose a { color: var(--accent); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

.stats-band {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius); padding: 30px; margin-bottom: 26px; text-align: center; color: #fff;
}
.stats-band strong { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--gold); }
.stats-band span { font-size: 13px; color: rgba(255,255,255,.8); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.contact-form-wrap { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: clamp(22px, 3.5vw, 36px); }
.contact-form-wrap .section-title { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 15px; outline: 0; background: var(--bg); transition: var(--tr);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(16,35,75,.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.contact-info { display: grid; gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: var(--tr); }
.info-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.info-card h3 { font-size: 15.5px; color: var(--primary); margin-bottom: 6px; }
.info-card p { font-size: 14.2px; color: var(--muted); }
.info-card a:hover { color: var(--accent); }
.map-placeholder {
    min-height: 160px; display: flex; align-items: center; justify-content: center;
    background: repeating-linear-gradient(45deg, #F0F2F8, #F0F2F8 12px, #E9ECF4 12px, #E9ECF4 24px);
    border-style: dashed; color: #8A93A8; font-weight: 600; font-size: 14px;
}

.results-list { display: grid; gap: 16px; }

/* ================= 12. NEWSLETTER & FOOTER ================= */
.newsletter-section {
    background:
        radial-gradient(700px 320px at 90% 0%, rgba(232,50,62,.35), transparent 60%),
        linear-gradient(120deg, var(--primary-2), var(--primary-dark));
    padding: 46px 0; color: #fff;
}
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.newsletter-text h2 { font-size: clamp(21px, 2.6vw, 27px); margin-bottom: 6px; }
.newsletter-text p { color: rgba(255,255,255,.78); max-width: 480px; font-size: 14.8px; }
.newsletter-right { flex: 1; max-width: 480px; min-width: 300px; display: grid; gap: 10px; }
.newsletter-right .alert { margin: 0; }
.newsletter-form { display: flex; gap: 0; border-radius: 50px; overflow: hidden; box-shadow: var(--shadow-lg); }
.newsletter-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 15px 24px; font-size: 15px; }
.newsletter-form button {
    background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
    padding: 0 28px; font-weight: 700; font-family: var(--font-head); white-space: nowrap; transition: var(--tr);
}
.newsletter-form button:hover { filter: brightness(1.1); }

.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.72); }
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 34px;
    padding: 56px 20px 44px;
}
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 2.5px; background: var(--accent); border-radius: 3px; }
.footer-col ul { display: grid; gap: 9px; font-size: 14px; }
.footer-col a { transition: var(--tr); }
.footer-col ul a:hover { color: #fff; padding-left: 5px; }
.footer-about p { font-size: 14px; margin: 16px 0 18px; }
.brand-footer .brand-text { color: #fff; }
.footer-social { display: flex; gap: 9px; }
.footer-contact ul { gap: 12px; }
.footer-contact .btn { margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; font-size: 13.4px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom a { color: var(--gold); font-weight: 600; }

/* ================= 13. ANIMATIONS ================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ================= 14. RESPONSIVE ================= */
@media (max-width: 1080px) {
    .layout-2col { grid-template-columns: 1fr 300px; gap: 28px; }
    .news-grid, .news-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .services-detail-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .header-inner .ad-slot { display: none; }   /* hide header ad on smaller screens */
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
    /* Use aspect-ratio on mobile so images never crop */
    .hero-main,
    .hero-slider { aspect-ratio: 16 / 9; min-height: auto; height: auto; }
    .hero-small  { aspect-ratio: 16 / 9; min-height: auto; height: auto; }
    .cat-layout { grid-template-columns: 1fr; }
    .layout-2col { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(2, 1fr); align-items: start; }
    .contact-grid { grid-template-columns: 1fr; }
    .services-promo-head { flex-direction: column; align-items: flex-start; }

    /* Hide mobile-only elements inside drawer */
    .mob-drawer-header { display: flex; }
    .mob-drawer-social { display: flex; }

    /* Collapse main-nav bar on mobile — BUT keep it in DOM (NOT display:none)
       so the position:fixed drawer inside it still works */
    .main-nav {
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        position: static !important;
        z-index: 300;
    }
    .nav-inner {
        height: 0;
        min-height: 0;
        overflow: visible;
        padding: 0;
    }

    /* Show header-actions (search + hamburger) */
    .header-actions { display: flex; }
    .search-toggle-mob { display: inline-flex; color: var(--primary); padding: 10px; }
    .search-toggle-mob:hover { color: var(--accent); }
    .menu-toggle { display: flex; }

    /* ─── Mobile Nav Drawer (Professional) ─── */

    /* Overlay backdrop — solid dark, absolutely NO blur */
    body.menu-open::after {
        content: ''; position: fixed; inset: 0;
        background: rgba(5,10,25,.60);
        z-index: 299;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Drawer panel */
    .nav-menu {
        position: fixed; top: 0; right: 0; bottom: 0; left: auto;
        width: 300px; max-width: 85vw;
        background: #0d1b38;
        flex-direction: column; align-items: stretch;
        padding: 0; gap: 0; overflow-y: auto; overflow-x: hidden;
        z-index: 300;
        transform: translateX(105%); transition: transform .3s cubic-bezier(.4,0,.2,1);
        box-shadow: -8px 0 40px rgba(0,0,0,.5);
        scrollbar-width: none;
    }
    .nav-menu::-webkit-scrollbar { display: none; }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu a::after { display: none; }

    /* ─ Drawer Header (Logo + Close Button) ─ */
    .mob-drawer-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 18px;
        border-bottom: 1px solid rgba(255,255,255,.12);
        background: rgba(255,255,255,.05);
        flex-shrink: 0;
    }
    .mob-drawer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
    .mob-drawer-brand img { width: 34px; height: 34px; border-radius: 8px; }
    .mob-drawer-brand-text { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
    .mob-drawer-brand-text span { color: var(--accent); }
    .mob-drawer-close {
        width: 34px; height: 34px; border-radius: 50%;
        background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); font-size: 16px; line-height: 1;
        display: flex; align-items: center; justify-content: center;
        border: none; cursor: pointer; transition: background .2s ease;
        flex-shrink: 0;
    }
    .mob-drawer-close:hover { background: var(--accent); color: #fff; }

    /* ─ Drawer Nav Links ─ */
    .nav-menu > li:not(.mob-drawer-header):not(.mob-drawer-social) > a {
        padding: 13px 18px; font-size: 15px; font-weight: 600;
        color: rgba(255,255,255,.85) !important;
        border-bottom: 1px solid rgba(255,255,255,.06);
        display: flex; align-items: center; gap: 8px;
        transition: background .15s ease, color .15s ease;
        line-height: 1.4;
    }
    .nav-menu > li:not(.mob-drawer-header):not(.mob-drawer-social) > a:hover { background: rgba(255,255,255,.07); color: #fff !important; }
    .nav-menu > li.nav-dropdown-wrap > .nav-dropdown-toggle {
        padding: 13px 18px !important; font-size: 15px; font-weight: 600;
        justify-content: space-between !important;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    /* ─ Mobile More Accordion ─ */
    .nav-dropdown-menu {
        position: static !important; opacity: 1 !important; visibility: visible !important;
        pointer-events: auto !important; transform: none !important;
        background: rgba(255,255,255,.04) !important;
        border: none !important; border-radius: 0 !important;
        box-shadow: none !important; padding: 0 !important;
        min-width: unset !important; z-index: auto !important;
        max-height: 0; overflow: hidden;
        transition: max-height .35s cubic-bezier(.4,0,.2,1) !important;
        display: block !important;
    }
    .nav-dropdown-wrap.open .nav-dropdown-menu { max-height: 500px !important; }
    .nav-dropdown-menu li a {
        padding: 12px 22px 12px 38px !important;
        font-size: 14.5px !important; font-weight: 500 !important;
        border-bottom: 1px solid rgba(255,255,255,.05) !important;
        color: rgba(255,255,255,.75) !important;
        background: transparent !important;
        white-space: normal !important;
    }
    .nav-dropdown-menu li a:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
    .nav-dropdown-menu li + li { border-top: none !important; }

    /* ─ Drawer Social Links ─ */
    .mob-drawer-social {
        display: flex !important; align-items: center !important; gap: 10px !important;
        padding: 16px 18px 20px !important; border-top: 1px solid rgba(255,255,255,.1) !important;
        flex-wrap: wrap !important; margin-top: auto !important; list-style: none !important;
    }
    .mob-drawer-social-label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.5); width: 100%; margin-bottom: 6px; }
    .mob-soc-btn {
        width: 38px !important; height: 38px !important; padding: 0 !important;
        border-radius: 10px !important; border-bottom: none !important;
        display: inline-flex !important; align-items: center !important; justify-content: center !important;
        background: rgba(255,255,255,.12); color: #ffffff !important;
        transition: transform .2s ease, filter .2s ease !important;
        text-decoration: none !important; flex: none !important;
    }
    .mob-soc-btn:hover { transform: translateY(-2px) !important; filter: brightness(1.15) !important; }
    .mob-soc-btn svg { width: 18px !important; height: 18px !important; display: block !important; }
    .mob-soc-facebook { background: #1877F2 !important; color: #fff !important; }
    .mob-soc-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; color: #fff !important; }
    .mob-soc-youtube { background: #FF0000 !important; color: #fff !important; }
    .mob-soc-twitter, .mob-soc-x { background: #14171A !important; color: #fff !important; }
    .mob-soc-telegram { background: #229ED9 !important; color: #fff !important; }
    .mob-soc-linkedin { background: #0A66C2 !important; color: #fff !important; }
}

@media (max-width: 640px) {
    .d-none-md { display: none; }
    /* Topbar: hide heavy elements on small phones */
    .topbar-inner { flex-wrap: wrap; justify-content: space-between; padding: 4px 0; min-height: 36px; }
    .topbar-left { gap: 8px; }
    .topbar-right { gap: 8px; }
    .google-pref-btn { font-size: 11px; padding: 3px 9px; }
    .google-pref-btn span:last-child { display: none; } /* Hide 'Preferred Source' text, keep G icon */
    .pref-src-text { display: none; }
    .topbar-date { font-size: 12px; }
    .topbar-tagline { display: none; }
    .topbar-social { display: none; }
    .lang-selector-btn { font-size: 12px; padding: 3px 9px; gap: 5px; }
    .brand-text { font-size: 24px; }
    .brand-logo { width: 36px; height: 36px; }

    .hero-main,
    .hero-slider { aspect-ratio: 16 / 9; min-height: auto; height: auto; }
    .hero-small  { aspect-ratio: 16 / 9; min-height: auto; height: auto; }
    .hero-side { grid-template-columns: 1fr; height: auto; }
    .hero-main .hero-overlay { padding: 18px 46px 18px 18px !important; }
    .hero-main .hero-overlay h1 { font-size: 18px !important; line-height: 1.3 !important; word-break: break-word; overflow-wrap: break-word; }
    .hero-main .hero-overlay p { font-size: 13px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .news-grid, .news-grid.cols-3, .layout-2col .news-grid { grid-template-columns: 1fr; }
    .services-grid, .services-detail-grid { grid-template-columns: 1fr; }
    .process-grid, .why-grid, .stats-band { grid-template-columns: repeat(2, 1fr); }
    .sidebar { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 44px; }
    .footer-bottom-inner { justify-content: center; text-align: center; }

    .news-card-row.big { flex-direction: column; }
    .news-card-row.big .row-thumb { width: 100%; }
    .newsletter-form { flex-direction: column; border-radius: var(--radius); gap: 0; }
    .newsletter-form input { border-radius: var(--radius) var(--radius) 0 0; }
    .newsletter-form button { padding: 14px; border-radius: 0 0 var(--radius) var(--radius); }
    .cta-inner { flex-direction: column; text-align: center; }
    .article-byline { flex-direction: column; align-items: flex-start; }
    .breaking-label { font-size: 10.5px; padding: 5px 10px; }
    .hero-stats strong { font-size: 25px; }
}

/* ==========================================================================
   15. V2 — HERO SLIDER, ANIMATIONS & COMMENTS (NewsHub upgrade)
   ========================================================================== */

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slide.active { position: relative; opacity: 1; visibility: visible; z-index: 2; }
.hero-slide .hero-overlay > * { transform: translateY(18px); opacity: 0; transition: all .6s cubic-bezier(.2,.7,.3,1); }
.hero-slide.active .hero-overlay > * { transform: none; opacity: 1; }
.hero-slide.active .hero-overlay .cat-badge { transition-delay: .15s; }
.hero-slide.active .hero-overlay h1 { transition-delay: .28s; }
.hero-slide.active .hero-overlay p { transition-delay: .4s; }
.hero-slide.active .hero-overlay .news-meta { transition-delay: .5s; }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(10,23,48,.45); color: #fff; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); transition: var(--tr); opacity: 0;
}
.hero-slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--accent); transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots { position: absolute; bottom: 18px; right: 22px; z-index: 10; display: flex; gap: 7px; }
.slider-dots .dot {
    width: 9px; height: 9px; border-radius: 20px; padding: 0;
    background: rgba(255,255,255,.45); transition: var(--tr);
}
.slider-dots .dot.active { width: 26px; background: #fff; }

/* ---------- Animated section backgrounds ---------- */
.hero-section {
    position: relative;
    background:
        radial-gradient(600px 200px at 15% 0%, rgba(232,50,62,.06), transparent 60%),
        radial-gradient(700px 240px at 90% 10%, rgba(27,58,122,.07), transparent 60%);
}
.section-title .bar { animation: barGrow .5s cubic-bezier(.2,.7,.3,1) both; transform-origin: bottom; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Button shine sweep ---------- */
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::after {
    content: ''; position: absolute; top: -60%; left: -80%; width: 45%; height: 220%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-22deg); transition: left .7s ease;
}
.btn-accent:hover::after { left: 135%; }

/* ---------- Card image sheen ---------- */
.news-card-img::after, .cat-lead a::after {
    content: ''; position: absolute; top: 0; left: -90%; width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-20deg); transition: left .8s ease; pointer-events: none;
}
.news-card:hover .news-card-img::after, .cat-lead:hover a::after { left: 140%; }
.cat-lead a { position: relative; display: block; overflow: hidden; }

/* ---------- Floating animation for widgets ---------- */
.widget-cta { animation: floatY 5s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Gradient headline text ---------- */
.services-hero h1 em, .services-promo-head h2 em {
    background: linear-gradient(90deg, var(--gold), #FFD98E, var(--gold));
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ---------- Page entrance ---------- */
#main-content { animation: pageIn .45s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Count-up numbers ---------- */
.hero-stats strong, .stats-band strong { display: inline-block; }

/* ---------- Comments ---------- */
.comments-section { margin-top: 36px; }
.comment-list { display: grid; gap: 16px; margin: 20px 0 26px; }
.comment-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; animation: fadeUp .4s ease both; }
.comment-item .author-avatar { width: 42px; height: 42px; font-size: 17px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.comment-head strong { font-family: var(--font-head); font-size: 14.5px; color: var(--primary); }
.comment-head small { color: var(--muted); font-size: 12px; }
.comment-body p { font-size: 14.5px; color: #3A4152; line-height: 1.7; }
.comment-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.comment-form-wrap h3 { color: var(--primary); margin-bottom: 14px; }
.comment-note { font-size: 12.8px; color: var(--muted); margin-top: 10px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Slider responsive ---------- */
@media (max-width: 900px) {
    .hero-slide { position: absolute; }
    .hero-slide.active { position: relative; }
    .slider-arrow { opacity: 1; width: 38px; height: 38px; font-size: 22px; }
}

/* ============ MOBILE BOTTOM NAVIGATION BAR ============ */
.mob-bottom-nav {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 60px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #475569;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    gap: 3px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.mob-nav-item svg {
    transition: transform 0.15s ease;
}

.mob-nav-item:hover, .mob-nav-item:active {
    color: #e11d48;
}

.mob-nav-item.active {
    color: #e11d48;
    font-weight: 700;
}

.mob-nav-item.active svg {
    stroke: #e11d48;
    transform: translateY(-1px);
}

/* Deals tab - Amazon orange accent matching user screenshot */
.mob-nav-deals {
    color: #d97706;
}

.mob-nav-deals svg {
    stroke: #d97706;
}

.mob-nav-deals:hover, .mob-nav-deals.active {
    color: #b45309;
}

.mob-nav-deals.active svg {
    stroke: #b45309;
}

@media (max-width: 900px) {
    .mob-bottom-nav {
        display: flex !important;
    }
    body {
        padding-bottom: 64px !important;
    }
    .back-to-top {
        bottom: 74px !important;
    }
    .push-bell {
        bottom: 74px !important;
    }
}
