/* ==========================================================================
   KHAWLAN PRESS — Al Jazeera-Inspired Arabic News Portal
   Theme: aljazeera.net — White nav, orange accent, dark header/footer
   ========================================================================== */



/* ── VARIABLES ─────────────────────────────────────────────────────────────── */
:root {
    --font-main: "Alyamama", serif;
    --font-secondary: "IBM Plex Sans Arabic", sans-serif;

    /* Sky Fresh Theme Accent */
    --red: #00A8E8;
    --red-dark: #0077B6;
    --red-light: #90E0EF;

    /* Backgrounds */
    --bg: hsl(0, 0%, 100%);
    --bg-2: #ffffff;
    --bg-3: #E8E8E8;
    --surface: #FFFFFF;

    /* Borders */
    --border: #E0E0E0;
    --border-2: #CCCCCC;

    /* Text */
    --text-1: #1A1A1A;
    --text-2: #3D3D3D;
    --text-3: #767676;
    --text-4: #A0A0A0;

    /* Legacy aliases */
    --brand-red: var(--red);
    --brand-blue: #0077B6;
    --text-primary: var(--text-1);
    --text-secondary: var(--text-2);
    --text-muted: var(--text-3);
    --bg-main: var(--surface);
    --bg-surface: var(--bg-2);
    --bg-surface-light: var(--bg);
    --border-light: var(--border);
    --border-dark: var(--border-2);

    /* Header */
    --topbar-bg: #00A8E8;
    --nav-bg: #FFFFFF;
    --nav-text: #1D1D1D;
    --nav-border: #E0E0E0;

    /* Section title bar */
    --section-bar: #00A8E8;
    --section-bar-accent: #0077B6;

    --link-color: #1A1A1A;

    --container: 1280px;
    --t: 0.18s ease;
}

html[data-theme="dark"] {
    --bg: #141414;
    --bg-2: #1E1E1E;
    --bg-3: #272727;
    --surface: #1E1E1E;

    --border: #333333;
    --border-2: #444444;

    --text-1: #F2F2F2;
    --text-2: #C8C8C8;
    --text-3: #909090;
    --text-4: #666666;

    --link-color: #F2F2F2;
    --topbar-bg: #0A0A0A;
    --nav-bg: #1A1A1A;
    --nav-text: #F2F2F2;
    --nav-border: #333333;
    --section-bar: #111111;
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.6;
    direction: rtl;
    background: var(--bg-2);
    color: var(--text-1);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--t);
}

a:hover {
    color: var(--red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    color: transparent;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ── CONTAINER ─────────────────────────────────────────────────────────────── */
.container,
.classic-main-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 12px;
}

.ad-container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ── SITE HEADER ───────────────────────────────────────────────────────────── */
.site-header {
    background: var(--bg);
}

/* ── TOP UTILITY BAR ───────────────────────────────────────────────────────── */
.top-bar {
    background: var(--topbar-bg);
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 12px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right {
    color: #888;
    font-family: var(--font-main);
    font-size: 12px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 2px;
}

.top-bar-left a {
    color: #777;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background var(--t), color var(--t);
}

.top-bar-left a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ── BRANDING AREA ─────────────────────────────────────────────────────────── */
.branding-area {
    background: var(--bg);

    border-bottom: 1px solid var(--border);
}

.branding-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Logo */
.site-logo {
    text-decoration: none;
    display: block;
    flex-shrink: 0;
}

.site-logo h1 {
    font-family: var(--font-main);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1;
    letter-spacing: -1px;
}

.site-logo h1 span {
    color: var(--red);
}

.site-logo h1 .logo-red {
    color: var(--red);
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-3);
    font-family: var(--font-main);
    font-weight: 400;
    margin-top: 2px;
    display: block;
}

/* Ad banner zone */
.header-ad-space {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    overflow: hidden;
}

/* ── MAIN NAVIGATION ─── Al Jazeera: WHITE bar, dark text, orange active ─── */
.main-nav-wrapper {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #d2d2d2;

}

.main-nav-inner {
    display: flex;
    align-items: stretch;
    height: 48px;
    gap: 0;
}

/* Nav Logo - Al Jazeera Style */
.nav-site-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--red);
    padding: 0 24px;
    height: 48px;
    /* Match nav height */
    text-decoration: none;
    color: #fff;
    margin-right: -16px;
    /* Touch the edge of container if it has padding */
    margin-left: 20px;
    flex-shrink: 0;
    transition: background var(--t);
}

.nav-site-logo:hover {
    background: var(--red-dark);
}

.nav-site-logo h1 {
    font-family: var(--font-main);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.5px;
}

.nav-site-logo h1 span {
    display: block;
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin-top: -2px;
}

.main-nav {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.main-nav ul {
    display: flex;
    align-items: stretch;
    height: 48px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav ul::-webkit-scrollbar {
    display: none;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    height: 100%;
    color: var(--nav-text);
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-main);
    padding: 0 16px;
    white-space: nowrap;
    border-left: 1px solid var(--nav-border);
    position: relative;
    transition: color var(--t), background var(--t);
}

.main-nav ul li:first-child a {
    border-left: none;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    opacity: 0;
    transition: opacity var(--t);
}

.main-nav ul li a:hover {
    background: var(--bg-2);
    color: var(--red);
}

.main-nav ul li a.active {
    color: var(--red);
    font-weight: 900;
}

.main-nav ul li a.active::after {
    opacity: 1;
}

/* Nav actions (search, theme, mobile) */
.nav-actions {
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 2px;
    border-right: 1px solid var(--nav-border);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--nav-text);
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t), color var(--t);
    text-decoration: none;
}

.nav-btn:hover {
    background: var(--bg-2);
    color: var(--red);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--nav-text);
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background var(--t);
}

.mobile-menu-btn:hover {
    background: var(--bg-2);
}

/* ── BREAKING TICKER ───────────────────────────────────────────────────────── */
.breaking-ticker-wrap {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    height: 40px;
}

.ticker-inner {
    display: flex;
    align-items: center;
    height: 100%;
}

.ticker-label {
    background: transparent;
    color: var(--red);
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 14px;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    position: relative;
    border-left: 2px solid var(--border);
}

.ticker-label::before {
    display: none;
}

.ticker-content {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 12px;
}

#breaking-news-list {
    position: absolute;
    top: 0;
    width: 100%;
    transition: top 0.4s ease;
}

#breaking-news-list li {
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#breaking-news-list li a {
    color: var(--text-1);
}

#breaking-news-list li a:hover {
    color: var(--red);
}

/* ── SEARCH MODAL ──────────────────────────────────────────────────────────── */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 70px;
    backdrop-filter: blur(3px);
}

.search-modal-content {
    background: var(--surface);
    border-top: 4px solid var(--red);
    border-radius: 4px;
    padding: 28px;
    width: 92%;
    max-width: 540px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.close-search {
    position: absolute;
    top: 8px;
    left: 14px;
    font-size: 28px;
    color: var(--text-3);
    cursor: pointer;
    line-height: 1;
    transition: color var(--t);
    background: none;
    border: none;
}

.close-search:hover {
    color: var(--red);
}

.search-modal form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.search-modal input {
    flex: 1;
    border: 1.5px solid var(--border-2);
    background: var(--bg-2);
    color: var(--text-1);
    padding: 10px 14px;
    font-size: 15px;
    font-family: var(--font-main);
    border-radius: 3px;
    outline: none;
    transition: border-color var(--t);
}

.search-modal input:focus {
    border-color: var(--red);
}

.search-modal button[type="submit"] {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    border-radius: 3px;
    transition: background var(--t);
}

.search-modal button[type="submit"]:hover {
    background: var(--red-dark);
}

/* ── iOS INSTALL MODAL ─────────────────────────────────────────────────────── */
.ios-install-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ios-install-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ios-install-modal-sheet {
    position: relative;
    background: var(--surface);
    border-radius: 16px 16px 0 0;
    padding: 22px 22px 34px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
}

.ios-install-handle {
    width: 38px;
    height: 4px;
    background: var(--border-2);
    border-radius: 2px;
    margin: 0 auto 18px;
}

.ios-install-close {
    position: absolute;
    top: 12px;
    left: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-3);
    transition: color var(--t);
}

.ios-install-close:hover {
    color: var(--red);
}

.ios-install-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 14px;
    overflow: hidden;
}

.ios-install-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-1);
    text-align: center;
    margin-bottom: 4px;
}

.ios-install-subtitle {
    font-size: 13px;
    color: var(--text-3);
    text-align: center;
    margin-bottom: 16px;
}

.ios-install-steps {
    list-style: none;
}

.ios-install-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-2);
}

.ios-install-step-icon {
    width: 30px;
    height: 30px;
    background: var(--bg-2);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--red);
}

.ios-install-arrow-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-3);
    margin-top: 14px;
    justify-content: center;
}

.ios-install-arrow-hint svg {
    color: var(--red);
    flex-shrink: 0;
}

/* ── FLOATING DARK MODE BUTTON ─────────────────────────────────────────────── */
.floating-dark-mode {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 888;
    background: var(--red);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    transition: transform var(--t), box-shadow var(--t);
}

.floating-dark-mode:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.36);
}

/* ── MAIN CONTENT WRAPPER ──────────────────────────────────────────────────── */
.classic-main-container {
    padding-top: 16px;
    padding-bottom: 40px;
}

/* ── 2-COLUMN HOMEPAGE LAYOUT ──────────────────────────────────────────────── */
.idx-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.idx-main {
    min-width: 0;
}

.main-sidebar {
    min-width: 0;
    position: sticky;
    top: 20px;
}

@media (max-width: 992px) {
    .idx-layout {
        grid-template-columns: 1fr;
    }

    .main-sidebar {
        position: static;
    }
}

/* ── SECTION TITLE STYLE — Al Jazeera ─────────────────────────────────────── */
/* Dark bar with right-side orange accent stripe */
.section-title,
.cat-section-header h3,
.sidebar-box-title,
.classic-section-title {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 900;
    color: var(--text-1) !important;
    background: transparent !important;
    padding: 4px 14px;
    display: block;
    letter-spacing: 0.3px;
    border-right: 4px solid var(--red) !important;
    border-top: none !important;
    margin: 0 !important;
    text-transform: none;
}

.sidebar-box-title {
    background: var(--surface) !important;
    color: var(--text-1) !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.10) !important;
    position: relative;
    z-index: 2;
}

/* ── SIDEBAR BOXES ─────────────────────────────────────────────────────────── */
.sidebar-box {
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 2px;
}

/* Sidebar Latest */
.sidebar-thumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-thumb-list li {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    transition: background var(--t);
}

.sidebar-thumb-list li:hover {
    background: transparent;
}

.sidebar-thumb-list li:last-child {
    border-bottom: none;
}

.sidebar-thumb-list .s-thumb {
    flex: 0 0 62px;
    height: 48px;
    overflow: hidden;
    background: var(--bg-3);
    border-radius: 2px;
}

.sidebar-thumb-list .s-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-thumb-list li:hover .s-thumb img {
    transform: scale(1.06);
}

.sidebar-thumb-list .s-info h5 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.45;
    margin: 0;
}

.sidebar-thumb-list .s-info h5 a {
    color: inherit;
}

.sidebar-thumb-list .s-info h5 a:hover {
    text-decoration: underline;
}

.sidebar-thumb-list .s-meta {
    font-size: 10.5px;
    color: var(--text-4);
    margin-top: 3px;
}

/* Sidebar More Link */
.sidebar-more-link {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    transition: background var(--t);
    letter-spacing: 0.3px;
}

.sidebar-more-link:hover {
    background: var(--bg-3);
    color: var(--red);
}

/* Sidebar Numbered List (Most Read) */
.sidebar-numbered-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: nr;
}

.sidebar-numbered-list li {
    counter-increment: nr;
    position: relative;
    padding: 12px 46px 12px 12px;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
    transition: background var(--t);
}

.sidebar-numbered-list li:hover {
    background: transparent;
}

.sidebar-numbered-list li:last-child {
    border-bottom: none;
}

.sidebar-numbered-list li::before {
    content: counter(nr);
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 24px;
    font-weight: 900;
    color: var(--bg-3);
    line-height: 1;
    font-family: var(--font-main);
}

html[data-theme="dark"] .sidebar-numbered-list li::before {
    color: var(--border);
}

.sidebar-numbered-list h5 {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    line-height: 1.45;
}

.sidebar-numbered-list h5 a {
    color: var(--text-1);
}

.sidebar-numbered-list h5 a:hover {
    text-decoration: underline;
}

/* Sidebar Opinions */
.opinion-item {
    display: flex;
    gap: 9px;
    padding: 9px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    text-decoration: none;
    transition: background var(--t);
}

.opinion-item:hover {
    background: var(--bg-2);
}

.opinion-item:last-child {
    border-bottom: none;
}

.opinion-item .thumb {
    flex: 0 0 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-3);
    border: 2px solid var(--border);
}

.opinion-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opinion-item .info .author {
    font-size: 11px;
    color: var(--red);
    font-weight: 800;
    margin-bottom: 2px;
}

.opinion-item .info h5 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
    line-height: 1.45;
    transition: color var(--t);
}

.opinion-item:hover .info h5 {
    color: var(--red);
}

/* ── HERO SLIDER ───────────────────────────────────────────────────────────── */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
    border-radius: 2px;
}

.hero-slide-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    flex: 0 0 100%;
    max-width: 100%;
}

.hero-slide a {
    display: block;
    text-decoration: none;
    position: relative;
}

.hero-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-slide:hover .hero-img-wrap img {
    transform: scale(1.03);
}

.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
    padding: 54px 18px 16px;
}

.hero-cat-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.hero-caption h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.45;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.hero-caption .hero-meta {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    margin-top: 7px;
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: background var(--t), transform var(--t);
}

.hero-dot.active {
    background: var(--red);
    transform: scale(1.35);
}

/* ── CATEGORY SECTIONS ─────────────────────────────────────────────────────── */
.cat-section {
    margin-bottom: 16px;
    border-radius: 2px;
    overflow: hidden;
}

.cat-section-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 0;
    background: transparent;
    border-bottom: 2px solid var(--border);
}

.cat-section-header h3 {
    font-size: 16px !important;
    padding: 8px 12px !important;
    color: var(--text-1) !important;
}

.cat-section-header a.more-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-3);
    padding: 0 14px;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border);
    transition: color var(--t);
    text-decoration: none;
    white-space: nowrap;
}

.cat-section-header a.more-link:hover {
    color: var(--red);
}

/* Category content area */
.cat-content-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
}

/* Featured Card */
.cat-featured {
    padding: 12px;
}

.cat-featured a {
    display: block;
    text-decoration: none;
}

.cat-featured .img-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-3);
    margin-bottom: 9px;
    border-radius: 2px;
}

.cat-featured .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cat-featured a:hover .img-wrap img {
    transform: scale(1.04);
}

.cat-featured h4 {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1.5;
    margin: 0;
    transition: color var(--t);
}

.cat-featured a:hover h4 {
    text-decoration: underline;
}

.cat-featured .post-meta {
    font-size: 11px;
    color: var(--text-4);
    margin-top: 5px;
}

/* Cat List */
.cat-list {
    border-top: 1px solid var(--border);
}

.cat-list-item {
    display: flex;
    flex-direction: row-reverse;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background var(--t);
}

.cat-list-item:hover {
    background: transparent;
}

.cat-list-item:last-child {
    border-bottom: none;
}

.cat-list-item .thumb {
    flex: 0 0 100px;
    aspect-ratio: 16/9;
    height: auto;
    overflow: hidden;
    background: var(--bg-3);
    border-radius: 4px;
}

.cat-list-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-list-item:hover .thumb img {
    transform: scale(1.05);
}

.cat-list-item .info {
    flex: 1;
}

.cat-list-item .info h5 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1.45;
    margin: 0 0 4px;
    transition: color var(--t);
}

.cat-list-item:hover .info h5 {
    text-decoration: underline;
}

.cat-list-item .info .meta {
    font-size: 11px;
    color: var(--text-4);
}

/* Category Grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ── MAIN SIDEBAR ──────────────────────────────────────────────────────────── */
.main-sidebar {
    min-width: 0;
}

/* ── AD SLOTS ──────────────────────────────────────────────────────────────── */
.ad-slot-container {
    overflow: hidden;
    display: none;
}

.ad-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

[data-position="header"] .ad-image {
    max-height: 250px;
}

[data-position="footer"] .ad-image {
    max-height: 90px;
}

[data-position="sidebar"] .ad-image {
    aspect-ratio: 1 / 1;
    max-height: none;
    object-fit: cover;
}

/* ── NEWS LIST (latest_news / most_read / search pages) ────────────────────── */
.news-list-item {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    text-decoration: none;
    background: var(--surface);
    transition: background var(--t);
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background: transparent;
}

.news-list-item .ni-thumb {
    flex: 0 0 160px;
    aspect-ratio: 16/9;
    height: auto;
    overflow: hidden;
    background: var(--bg-3);
    border-radius: 4px;
}

.news-list-item .ni-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-item:hover .ni-thumb img {
    transform: scale(1.04);
}

.news-list-item .ni-cat {
    font-size: 11px;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 4px;
}

.news-list-item .ni-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1.5;
    margin: 0 0 8px;
    transition: color var(--t);
}

.news-list-item:hover .ni-title {
    text-decoration: underline;
}

.news-list-item .ni-excerpt {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.news-list-item .ni-meta {
    font-size: 11px;
    color: var(--text-4);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── CATEGORY PAGE ─────────────────────────────────────────────────────────── */
.category-header {
    background: transparent;
    padding: 4px 14px;
    margin-bottom: 20px;
    border-right: 4px solid var(--red);
    border-bottom: 2px solid var(--border);
}

.category-header h1 {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-1);
    margin: 0;
}

.category-header .count {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 4px;
}

/* News card list */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Video Icon Overlay */
.video-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    color: #fff;
    transition: background 0.3s ease;
}

.video-icon-overlay svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-left: 3px;
}

.news-card:hover .video-icon-overlay,
.cat-featured a:hover .video-icon-overlay,
.cat-list-item:hover .video-icon-overlay,
.hero-slide a:hover .video-icon-overlay {
    background: var(--red);
}

.news-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    transition: background var(--t);
}

.news-card:last-child {
    border-bottom: none;
}

.news-card:hover {
    background: transparent;
}

.news-card .card-img {
    flex: 0 0 160px;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-3);
    border-radius: 4px;
}

.news-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .card-img img {
    transform: scale(1.04);
}

.news-card .card-body {
    flex: 1;
    padding: 0;
}

.news-card .card-cat {
    font-size: 11px;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 4px;
}

.news-card .card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1.5;
    margin: 0 0 8px;
    transition: color var(--t);
}

.news-card:hover .card-title {
    text-decoration: underline;
}

.news-card .card-meta {
    font-size: 12px;
    color: var(--text-4);
}

/* ── POST PAGE ─────────────────────────────────────────────────────────────── */
.post-header-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 16px;
    border-radius: 2px;
}

.post-title {
    font-family: var(--font-main);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-3);
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.post-meta-bar .cat-tag {
    background: var(--red);
    color: #fff;
    padding: 2px 9px;
    font-weight: 700;
    font-size: 11px;
    border-radius: 2px;
}

.post-content {
    font-size: 16px;
    line-height: 1.95;
    color: var(--text-2);
}

.post-content h2,
.post-content h3 {
    color: var(--text-1);
    margin: 22px 0 9px;
}

.post-content p {
    margin-bottom: 14px;
}

.post-content img {
    margin: 14px auto;
}

/* Share bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.share-bar .share-label {
    font-weight: 800;
    font-size: 13px;
    color: var(--text-1);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-main);
    border: none;
    color: #fff;
    transition: opacity var(--t);
    text-decoration: none;
    border-radius: 3px;
}

.share-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.share-btn.fb {
    background: #1877F2;
}

.share-btn.tw {
    background: #1DA1F2;
}

.share-btn.wa {
    background: #25D366;
}

.share-btn.tg {
    background: #229ED9;
}

/* ── SEARCH FORM (search page) ─────────────────────────────────────────────── */
.search-bar-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.search-bar-form input {
    flex: 1;
    border: 1.5px solid var(--border-2);
    background: var(--bg-2);
    color: var(--text-1);
    padding: 10px 14px;
    font-size: 15px;
    font-family: var(--font-main);
    border-radius: 3px;
    outline: none;
    transition: border-color var(--t);
}

.search-bar-form input:focus {
    border-color: var(--red);
}

.search-bar-form button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    border-radius: 3px;
    transition: background var(--t);
}

.search-bar-form button:hover {
    background: var(--red-dark);
}

/* ── PAGINATION ────────────────────────────────────────────────────────────── */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 22px 0;
    flex-wrap: wrap;
}

.pagination-controls button,
.pagination-controls a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--border-2);
    background: var(--surface);
    color: var(--text-2);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    transition: all var(--t);
    text-decoration: none;
    border-radius: 3px;
}

.pagination-controls button:hover,
.pagination-controls a:hover {
    border-color: var(--red);
    color: var(--red);
}

.pagination-controls .active,
.pagination-controls button.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ── FOOTER ─── Light footer ────────────────────────────────────── */
.site-footer {
    background: var(--surface);
    color: var(--text-2);
    padding: 32px 0 0;
    margin-top: 30px;
    font-size: 13px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--border-2);
    display: inline-block;
}

.footer-col ul li {
    margin-bottom: 7px;
}

.footer-col ul li a {
    color: var(--text-3);
    transition: color var(--t);
}

.footer-col ul li a:hover {
    color: var(--red);
}

.footer-bottom {
    text-align: center;
    padding: 14px;
    color: #555;
    font-size: 12px;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {

    .idx-layout,
    .classic-2col-layout {
        grid-template-columns: 1fr 300px;
        gap: 14px;
    }
}

@media (max-width: 1024px) {

    .idx-layout,
    .classic-2col-layout {
        grid-template-columns: 1fr 260px;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .idx-layout,
    .classic-2col-layout {
        grid-template-columns: 1fr;
    }

    .branding-inner {
        flex-direction: column;
        gap: 10px;
    }

    .header-ad-space {
        max-width: 100%;
    }

    .site-logo h1 {
        font-size: 34px;
    }

    .top-bar-right {
        display: none;
    }

    /* Mobile nav */
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #1D1D1D;
        flex-direction: column;
        height: auto;
        overflow: visible;
        padding: 4px 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .main-nav ul.show {
        display: flex;
    }

    .main-nav ul li a {
        height: 46px;
        font-size: 14px;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        color: #f0f0f0;
        padding: 0 16px;
    }

    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        color: var(--red);
        background: rgba(255, 255, 255, 0.05);
    }

    .main-nav ul li a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav-wrapper {
        position: relative;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

    .hero-caption h2 {
        font-size: 17px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .news-list-item .ni-thumb {
        flex: 0 0 86px;
        height: 64px;
    }

    .main-sidebar {
        border-top: 2px solid var(--border);
        padding-top: 14px;
        margin-top: 14px;
    }

    .ad-container-wide {
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .classic-main-container {
        padding: 8px 8px 30px;
    }

    .ad-container-wide {
        padding: 0 !important;
    }

    .site-logo h1 {
        font-size: 28px;
    }

    .hero-caption h2 {
        font-size: 15px;
    }

    .breaking-ticker-wrap {
        height: 38px;
    }

    #breaking-news-list li {
        height: 38px;
        line-height: 38px;
    }
}

/* -- FONT WEIGHT UTILITIES --------------------------------------------------- */
.ibm-plex-sans-arabic-thin {
    font-family: var(--font-main);
    font-weight: 100;
    font-style: normal;
}

.ibm-plex-sans-arabic-extralight {
    font-family: var(--font-main);
    font-weight: 200;
    font-style: normal;
}

.ibm-plex-sans-arabic-light {
    font-family: var(--font-main);
    font-weight: 300;
    font-style: normal;
}

.ibm-plex-sans-arabic-regular {
    font-family: var(--font-main);
    font-weight: 400;
    font-style: normal;
}

.ibm-plex-sans-arabic-medium {
    font-family: var(--font-main);
    font-weight: 500;
    font-style: normal;
}

.ibm-plex-sans-arabic-semibold {
    font-family: var(--font-main);
    font-weight: 600;
    font-style: normal;
}

.ibm-plex-sans-arabic-bold {
    font-family: var(--font-main);
    font-weight: 700;
    font-style: normal;
}

/* -- ALYAMAMA FONT WEIGHT UTILITIES ------------------------------------------- */
.alyamama-light {
    font-family: "Alyamama", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.alyamama-regular {
    font-family: "Alyamama", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.alyamama-medium {
    font-family: "Alyamama", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.alyamama-semibold {
    font-family: "Alyamama", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.alyamama-bold {
    font-family: "Alyamama", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.alyamama-extrabold {
    font-family: "Alyamama", serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

.alyamama-black {
    font-family: "Alyamama", serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
}