/**
 * Telegraph Egypt - Unified Stylesheet
 * Generated and deduplicated across all templates
 */

/* ==========================================================================
   1. CORE VARIABLES & BASE STYLES
   ========================================================================== */

:root {
      --primary: #1e50e2;
      --primary-hover: #153eb3;
      --accent: #e53935;
      --dark-bg: #0f141e;
      --page-bg: #f5f0e8;
      --text-main: #191b1d;
      --text-secondary: #5e6472;
      --text-muted: #8b92a2;
      --border-color: #ebeef3;
      --border-light: #f1f3f7;
      --card-bg: #ffffff;
      --bg-soft: #f8fafc;
      --radius-sm: 4px;
      --radius-md: 8px;
      --radius-lg: 12px;
      --radius-full: 9999px;
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
      --shadow-card: 0 4px 20px rgba(0,0,0,0.05);
      --font-heading: 'Tajawal', system-ui, -apple-system, sans-serif;
      --font-body: 'Tajawal', system-ui, -apple-system, sans-serif;
      --container-max: 1440px;
    }

    [data-theme="dark"] {
      --page-bg: #0b0f17;
      --text-main: #f1f5f9;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;
      --border-color: #272d3b;
      --border-light: #1e2430;
      --card-bg: #151b26;
      --bg-soft: #0b0f17;
      background-color: #0b0f17;
    }

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: var(--font-body);
      color: var(--text-main);
      background-color: var(--page-bg);
      line-height: 1.6;
      font-size: 15px;
      overflow-x: hidden;
      transition: background-color 0.25s ease, color 0.25s ease;
    }

    a {
      color: inherit;
      text-decoration: none;
      transition: color 0.2s ease, transform 0.2s ease;
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
      object-fit: cover;
    }

    button, input {
      font-family: inherit;
      border: none;
      outline: none;
    }

    .site-container {
      max-width: var(--container-max);
      margin: 0 auto;
      padding: 0 24px;
      box-sizing: border-box;
    }
  
.header-actions { position: relative; }
.header-search-panel[hidden] { display: none; }
.header-search-panel { position: absolute; top: calc(100% + 16px); left: 0; z-index: 200; width: min(360px, calc(100vw - 32px)); padding: 14px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.header-search-panel form { display: flex; gap: 8px; }
.header-search-panel input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-soft); color: var(--text-main); font-family: var(--font-body); }
.header-search-panel button { padding: 8px 14px; background: var(--primary); color: white; border-radius: 8px; cursor: pointer; }

.brand-logo { align-items: center; }
.site-logo-image { display: block; width: 240px; max-width: 100%; height: auto; }
@media (max-width: 640px) { .site-logo-image { width: 170px; } }

.header-brand-group { display: flex; align-items: center; gap: 36px; min-width: 0; }
.masthead-team { display: flex; align-items: center; gap: 24px; font-family: var(--font-body); }
.masthead-person { display: flex; flex-direction: column; align-items: center; gap: 8px; white-space: nowrap; line-height: 1.4; }
.masthead-person + .masthead-person { border-right: 1px solid #246459; padding-right: 24px; }
.masthead-person span { font-size: 14px; font-weight: 700; }
.masthead-person strong { font-size: 19px; font-weight:700; }
@media (max-width: 900px) { .header-brand-group { gap: 20px; } .masthead-team { gap: 14px; } .masthead-person + .masthead-person { padding-right: 14px; } .masthead-person span { font-size: 12px; } .masthead-person strong { font-size: 16px; } }
@media (max-width: 640px) { .header-brand-group { flex-wrap: wrap; gap: 14px; } .masthead-team { gap: 12px; } .masthead-person span { font-size: 11px; } .masthead-person strong { font-size: 14px; } }

/* ==========================================================================
   2. GLOBAL UI COMPONENTS
   ========================================================================== */

.badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 8px;
      border-radius: var(--radius-sm);
      font-size: 11px;
      font-weight: 700;
      font-family: var(--font-heading);
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    .badge-primary {
      background-color: var(--primary);
      color: #ffffff;
    }
    .badge-accent {
      background-color: var(--accent);
      color: #ffffff;
    }
    .badge-exclusive {
      background: #12161f;
      color: #fff;
      font-size: 10px;
    }

    .meta-row {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 8px;
      font-family: var(--font-body);
    }
    .meta-row img {
      width: 22px;
      height: 22px;
      border-radius: var(--radius-full);
    }
    .meta-author {
      font-weight: 600;
      color: var(--text-secondary);
    }
    .meta-dot {
      display: inline-block;
      width: 3px;
      height: 3px;
      background: currentColor;
      border-radius: 50%;
    }

    .section-title-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 2px solid var(--border-color);
      padding-bottom: 12px;
      margin-bottom: 24px;
    }
    .section-title {
      font-family: var(--font-heading);
      font-size: 20px;
      font-weight:700;
      position: relative;
      color: var(--text-main);
    }
    .section-title::after {
      content: '';
      position: absolute;
      bottom: -14px;
      right: 0;
      width: 48px;
      height: 2px;
      background: var(--primary);
    }

    .btn-outline {
      border: 1px solid var(--border-color);
      background: transparent;
      padding: 6px 14px;
      border-radius: var(--radius-sm);
      color: var(--text-main);
      cursor: pointer;
      font-weight: 600;
      font-size: 13px;
      transition: all 0.2s ease;
    }
    .btn-outline:hover {
      background: var(--bg-soft);
      border-color: var(--text-muted);
    }

    .bookmark-btn {
      background: transparent;
      cursor: pointer;
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px;
      border-radius: 50%;
      transition: color 0.2s ease;
    }
    .bookmark-btn:hover {
      color: var(--primary);
    }

/* ==========================================================================
   3. HEADER & NAVIGATION LAYOUT
   ========================================================================== */

/* Top Breaking Ticker */
    .ticker-bar {
      border-bottom: 1px solid var(--border-color);
      background: var(--bg-soft);
      font-size: 12px;
      padding: 7px 0;
    }
    .ticker-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .ticker-content {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .ticker-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--accent);
      font-weight:700;
      font-family: var(--font-heading);
    }
    .ticker-headline {
      color: var(--text-main);
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 580px;
    }
    .quick-nav-links {
      display: flex;
      align-items: center;
      gap: 16px;
      color: var(--text-secondary);
      font-size: 12px;
    }
    .quick-nav-links a:hover {
      color: var(--primary);
    }

    /* Main Branding Header */
    .main-header {
      padding: 24px 0;
      border-bottom: 1px solid var(--border-color);
    }
    .header-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 32px;
    }
    .brand-logo {
      display: flex;
      align-items: baseline;
      gap: 6px;
      font-family: var(--font-heading);
      font-weight:700;
      font-size: 28px;
      letter-spacing: -0.5px;
      color: var(--text-main);
    }
    .brand-logo span.red-dot {
      color: var(--accent);
    }
    .brand-logo small {
      font-size: 14px;
      color: var(--text-muted);
      font-weight: 700;
      margin-right: 4px;
    }

    /* Search Input Pill */
    .header-search {
      position: relative;
      max-width: 460px;
      margin: 0 auto;
      width: 100%;
    }
    .search-input-pill {
      width: 100%;
      background: var(--bg-soft);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-full);
      padding: 10px 42px 10px 18px;
      font-size: 13px;
      color: var(--text-main);
      transition: all 0.2s ease;
    }
    .search-input-pill:focus {
      background: #ffffff;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(30, 80, 226, 0.12);
    }
    .search-icon-btn {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      background: transparent;
      cursor: pointer;
    }

    /* Header Actions */
    .header-actions {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .action-icon-link {
      color: var(--text-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      padding: 6px;
      border-radius: 50%;
      transition: color 0.2s;
    }
    .action-icon-link:hover {
      color: var(--primary);
    }
    .btn-subscribe {
      background: var(--primary);
      color: #fff;
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 13px;
      padding: 8px 18px;
      border-radius: var(--radius-full);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      transition: background 0.2s ease;
    }
    .btn-subscribe:hover {
      background: var(--primary-hover);
    }

    /* Primary Sticky Navigation */
    .primary-nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--card-bg);
      border-bottom: 1px solid var(--border-color);
      box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 52px;
    }
    .nav-menu {
      display: flex;
      align-items: center;
      gap: 28px;
      list-style: none;
    }
    .nav-item {
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 15px;
      color: var(--text-main);
      position: relative;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .nav-item.active, .nav-item:hover {
      color: var(--primary);
    }
    .nav-item.active::after {
      content: '';
      position: absolute;
      bottom: -15px;
      right: 0;
      left: 0;
      height: 2px;
      background: var(--primary);
    }
    .social-icons-strip {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--text-muted);
    }
    .social-icons-strip a:hover {
      color: var(--primary);
    }

/* ==========================================================================
   4. HERO SECTION & LEAD SLIDER
   ========================================================================== */

.hero-section {
      padding: 32px 0 24px;
    }
    .hero-grid-layout {
      display: grid;
      grid-template-columns: 49.7fr 27.8fr 22.6fr;
      gap: 24px;
    }

    /* Column 1: Big Lead Card */
    .lead-card {
      position: relative;
      border-radius: var(--radius-md);
      overflow: hidden;
      background-color: #0b0f17;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      min-height: 440px;
    }
    .lead-card-media {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }
    .lead-card-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .lead-card:hover .lead-card-media img {
      transform: scale(1.03);
    }
    .lead-card-gradient {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0.1) 20%, rgba(10,14,24,0.92) 90%);
    }
    .lead-card-content {
      position: relative;
      z-index: 2;
      padding: 24px;
      color: #ffffff;
    }
    .lead-title {
      font-family: var(--font-heading);
      font-size: 26px;
      font-weight:700;
      line-height: 1.35;
      margin: 10px 0;
      color: #ffffff;
    }
    .lead-title a:hover {
      color: #cbd5e1;
    }
    .lead-sublinks {
      border-top: 1px solid rgba(255,255,255,0.16);
      margin-top: 16px;
      padding-top: 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .sublink-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: #e2e8f0;
      font-weight: 500;
    }
    .sublink-item:hover {
      color: #ffffff;
      text-decoration: underline;
    }
    .sublink-item::before {
      content: '+';
      color: var(--primary);
      font-weight:700;
    }

    /* Additional mini card under lead */
    .lead-secondary-item {
      margin-top: 16px;
      display: flex;
      gap: 16px;
      padding: 14px;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      background: var(--card-bg);
      align-items: center;
    }
    .lead-secondary-thumb {
      width: 130px;
      height: 90px;
      flex-shrink: 0;
      border-radius: var(--radius-sm);
      overflow: hidden;
    }

    /* Column 2: Center Stack Cards */
    .center-cards-stack {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .mid-article-card {
      display: flex;
      gap: 16px;
      border-radius: var(--radius-md);
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border-color);
    }
    .mid-article-card:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }
    .mid-card-media {
      position: relative;
      width: 105px;
      height: 105px;
      flex-shrink: 0;
      border-radius: var(--radius-sm);
      overflow: hidden;
    }
    .mid-card-media img {
      display: block;
      width: 100%;
      height: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
    }
    .mid-card-body {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .mid-card-title {
      font-family: var(--font-heading);
      font-size: 16px;
      font-weight: 700;
      line-height: 1.4;
      color: var(--text-main);
    }
    .mid-card-title:hover {
      color: var(--primary);
    }

    /* Column 3: Subscription & Trending */
    .right-sidebar-stack {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .trending-box {
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 16px;
      background: var(--card-bg);
    }
    .trending-header {
      font-family: var(--font-heading);
      font-size: 14px;
      font-weight:700;
      color: var(--primary);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Royal Blue Subscription Card */
    .subscription-promo-card {
      background: linear-gradient(145deg, #1848cc, #123bb0);
      color: #ffffff;
      padding: 24px;
      border-radius: var(--radius-md);
      box-shadow: 0 10px 25px rgba(24, 72, 204, 0.22);
      text-align: center;
    }
    .sub-promo-title {
      font-family: var(--font-heading);
      font-size: 20px;
      font-weight:700;
      line-height: 1.3;
      margin-bottom: 6px;
    }
    .sub-promo-desc {
      font-size: 12px;
      opacity: 0.9;
      margin-bottom: 16px;
    }
    .sub-price-pill {
      font-family: var(--font-heading);
      font-size: 32px;
      font-weight:700;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }
    .sub-price-pill span.currency {
      font-size: 18px;
      font-weight: 700;
    }
    .sub-price-pill span.period {
      font-size: 13px;
      font-weight: 500;
      opacity: 0.8;
    }
    .sub-perks-list {
      list-style: none;
      text-align: right;
      font-size: 13px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 22px;
    }
    .sub-perks-list li {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .sub-perks-list svg {
      flex-shrink: 0;
      color: #93c5fd;
    }
    .btn-sub-action {
      background: #000000;
      color: #ffffff;
      width: 100%;
      padding: 12px;
      font-size: 14px;
      font-weight:700;
      font-family: var(--font-heading);
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: background 0.2s ease;
    }
    .btn-sub-action:hover {
      background: #111827;
    }

/* ==========================================================================
   5. EDITORIAL & OPINION GRID
   ========================================================================== */

.main-editorial-section {
      padding: 32px 0;
      border-top: 1px solid var(--border-color);
    }
    .editorial-grid {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 36px;
    }

    /* Left Editorial Flow (Articles) */
    .impact-banner-card {
      position: relative;
      border-radius: var(--radius-md);
      overflow: hidden;
      min-height: 380px;
      display: flex;
      align-items: flex-end;
      margin-bottom: 28px;
    }
    .impact-banner-card img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .impact-banner-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(10,14,24,0.95) 100%);
    }
    .impact-banner-content {
      position: relative;
      z-index: 2;
      padding: 24px;
      color: #fff;
    }
    .impact-banner-content h2 {
      font-family: var(--font-heading);
      font-size: 28px;
      font-weight:700;
      line-height: 1.3;
      margin: 10px 0;
    }

    /* Detailed Row Cards */
    .row-card-item {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 20px;
      padding: 20px 0;
      border-bottom: 1px solid var(--border-color);
    }
    .row-thumb-wrap {
      position: relative;
      height: 160px;
      border-radius: var(--radius-sm);
      overflow: hidden;
    }
    .row-content h3 {
      font-family: var(--font-heading);
      font-size: 18px;
      font-weight:700;
      line-height: 1.4;
      margin-bottom: 8px;
    }
    .row-content h3:hover {
      color: var(--primary);
    }
    .row-excerpt {
      font-size: 13.5px;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 12px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .row-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    /* In-feed Newsletter Box */
    .infeed-newsletter {
      background: var(--bg-soft);
      border: 1px dashed var(--primary);
      border-radius: var(--radius-md);
      padding: 24px;
      margin: 32px 0;
      display: flex;
      align-items: center;
      gap: 24px;
    }
    .infeed-nl-icon {
      font-size: 40px;
      color: var(--primary);
    }
    .infeed-nl-info h4 {
      font-family: var(--font-heading);
      font-size: 18px;
      font-weight:700;
      margin-bottom: 4px;
    }
    .infeed-nl-info p {
      font-size: 12px;
      color: var(--text-secondary);
    }
    .infeed-nl-form {
      display: flex;
      gap: 8px;
      flex: 1;
      max-width: 420px;
    }
    .infeed-nl-form input {
      flex: 1;
      padding: 10px 14px;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      font-size: 13px;
    }
    .infeed-nl-form button {
      background: var(--primary);
      color: #fff;
      font-weight: 700;
      padding: 0 18px;
      border-radius: var(--radius-sm);
      cursor: pointer;
    }

    /* Right Sidebar Widgets */
    .sidebar-widget {
      margin-bottom: 36px;
    }
    .social-counters-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    .social-count-box {
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      padding: 12px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }
    .social-count-box svg {
      width: 22px;
      height: 22px;
    }
    .social-count-box span.name {
      font-weight: 700;
      font-size: 13px;
    }
    .social-count-box span.count {
      font-size: 11px;
      color: var(--text-muted);
    }

    /* Numbered Rank Stories */
    .ranked-stories-list {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .ranked-item {
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }
    .rank-number {
      font-family: var(--font-heading);
      font-size: 26px;
      font-weight:700;
      color: #cbd5e1;
      line-height: 1;
      min-width: 32px;
    }
    .rank-body h5 {
      font-family: var(--font-heading);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.4;
      color: var(--text-main);
    }
    .rank-body h5:hover {
      color: var(--primary);
    }

/* ==========================================================================
   6. MUST READ & MULTIMEDIA
   ========================================================================== */

.must-read-section {
      background: #090c12;
      color: #ffffff;
      padding: 44px 0;
      margin: 32px 0;
    }
    .must-read-header {
      border-bottom: 1px solid rgba(255,255,255,0.12);
      padding-bottom: 12px;
      margin-bottom: 24px;
    }
    .must-read-header h2 {
      font-family: var(--font-heading);
      font-size: 22px;
      font-weight:700;
      color: #ffffff;
    }
    .must-read-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr;
      gap: 24px;
    }
    .must-focal-card {
      background: rgba(255,255,255,0.04);
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.08);
    }
    .must-focal-thumb {
      height: 240px;
      width: 100%;
    }
    .must-focal-body {
      padding: 20px;
    }
    .must-focal-title {
      font-family: var(--font-heading);
      font-size: 20px;
      font-weight:700;
      margin: 10px 0;
      line-height: 1.35;
    }
    .must-focal-title a:hover {
      color: #93c5fd;
    }

    .must-side-stack {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .must-mini-card {
      position: relative;
      height: 185px;
      border-radius: var(--radius-md);
      overflow: hidden;
      display: flex;
      align-items: flex-end;
      padding: 16px;
    }
    .must-mini-card img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .must-mini-gradient {
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0.1) 100%);
    }
    .must-mini-content {
      position: relative;
      z-index: 2;
    }
    .must-mini-title {
      font-family: var(--font-heading);
      font-size: 14px;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.35;
      margin-top: 4px;
    }

    /* 4-Column Grid (More Latest News) */
    .more-news-section {
      padding: 32px 0 50px;
    }
    .four-col-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 22px;
      margin-bottom: 36px;
    }
    .grid-card-item {
      display: flex;
      flex-direction: column;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      overflow: hidden;
      background: var(--card-bg);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .grid-card-item:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-card);
    }
    .grid-card-media {
      position: relative;
      height: 170px;
      width: 100%;
    }
    .grid-card-body {
      padding: 16px;
      display: flex;
      flex-direction: column;
      flex: 1;
      justify-content: space-between;
    }
    .grid-card-title {
      font-family: var(--font-heading);
      font-size: 15px;
      font-weight: 700;
      line-height: 1.4;
      margin: 8px 0;
      color: var(--text-main);
    }
    .grid-card-title:hover {
      color: var(--primary);
    }
    .load-more-wrap {
      text-align: center;
    }
    .btn-load-more {
      background: var(--bg-soft);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      padding: 10px 36px;
      font-weight: 700;
      font-family: var(--font-heading);
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-load-more:hover {
      background: var(--text-main);
      color: #fff;
    }

/* ==========================================================================
   7. SECTION & CATEGORY PAGE
   ========================================================================== */

.section-page{padding-top:24px;padding-bottom:44px}.section-page-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;border-bottom:1px solid var(--border-color);padding-bottom:20px;margin-bottom:26px}.section-page-heading>div>span{color:#0574ba;font-size:12px;font-weight:700}.section-page-heading h1{font-family:var(--font-heading);font-size:36px;font-weight:700;line-height:1.4;margin:6px 0 0}.section-page-heading p{color:var(--text-muted);font-size:14px;line-height:1.8;margin:0}.section-page-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}.section-news-main{min-width:0}.section-featured-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:20px}.section-featured{position:relative;isolation:isolate;min-height:440px;display:flex;align-items:end;overflow:hidden;border-radius:var(--radius-md);background:#001126}.section-featured>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.section-featured::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 20%,rgba(0,12,28,.95) 100%)}.section-featured-content{padding:26px;color:#fff}.section-featured-content h2{font-family:var(--font-heading);font-size:29px;line-height:1.5;margin:12px 0 14px;font-weight:700}.section-featured-content time{font-size:11px;color:#cbd5e1}.section-featured-side{display:grid;gap:18px}.section-news-card{overflow:hidden;border:1px solid var(--border-color);border-radius:var(--radius-md);background:var(--card-bg);min-width:0}.section-news-card[hidden]{display:none}.section-card-image{display:block;aspect-ratio:16/9;overflow:hidden}.section-card-image img{display:block;width:100%;height:100%;object-fit:cover}.section-card-body{padding:14px}.section-card-category{font-size:11px;font-weight:700;color:#0574ba}.section-card-body h3{font-family:var(--font-heading);font-size:18px;line-height:1.7;font-weight:700;margin:7px 0 12px}.section-card-body time{font-size:11px;color:var(--text-muted)}.section-card-body h3 a:hover{color:#0574ba}.section-featured-side .section-card-image{aspect-ratio:2.3}.section-featured-side .section-card-body{padding:10px 14px}.section-featured-side h3{font-size:16px;margin-bottom:6px}.section-list-heading{display:flex;align-items:center;justify-content:space-between;margin:30px 0 18px;border-bottom:1px solid var(--border-color);padding-bottom:12px}.section-list-heading h2{font-size:22px;font-weight:700;border-inline-start:4px solid #ee853b;padding-inline-start:10px}.section-list-heading>span{font-size:12px;color:var(--text-muted)}.section-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.section-pagination{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:28px}.section-pagination button{font:inherit;font-size:13px;padding:9px 14px;border:1px solid var(--border-color);border-radius:6px;background:var(--card-bg);color:var(--text-main);cursor:pointer}.section-pagination button[aria-current="page"]{background:#0574ba;color:white;border-color:#0574ba}.section-pagination button:disabled{opacity:.4;cursor:default}.section-page-sidebar{display:grid;gap:24px}.section-sidebar-ad>span{display:block;text-align:center;color:var(--text-muted);font-size:10px;margin-bottom:8px}.section-sidebar-ad img{width:100%;height:auto;display:block;border-radius:var(--radius-md)}.section-categories{padding:18px;border:1px solid var(--border-color);background:var(--card-bg);border-radius:var(--radius-md)}.section-categories h2{font-size:21px;font-weight:700;margin:0 0 12px}.section-categories>a{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border-color);font-size:14px}.section-categories>a:last-child{border:0}.section-categories>a[aria-current="page"]{color:#0574ba;font-weight:700}[data-theme="dark"] .section-card-category,[data-theme="dark"] .section-page-heading>div>span,[data-theme="dark"] .section-categories>a[aria-current="page"]{color:#79c9ff}@media(max-width:1100px){.section-page-layout{grid-template-columns:minmax(0,1fr) 250px;gap:22px}.section-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-featured-grid{grid-template-columns:1fr}.section-featured-side{grid-template-columns:1fr 1fr}.section-featured{min-height:380px}}@media(max-width:800px){.section-page-layout{grid-template-columns:1fr}.section-page-sidebar{grid-template-columns:1fr 1fr}.section-sidebar-ad img{max-width:300px;margin-inline:auto}.section-page-heading{align-items:start;flex-direction:column;gap:10px}}@media(max-width:540px){.section-page-heading h1{font-size:30px}.section-featured-content h2{font-size:25px}.section-featured-content{padding:20px}.section-news-grid,.section-featured-side{gap:12px}.section-card-body{padding:10px}.section-card-body h3{font-size:15px}.section-page-sidebar{grid-template-columns:1fr}.section-featured{min-height:350px}}

/* ==========================================================================
   8. ARTICLE & NEWS DETAILS PAGE
   ========================================================================== */

.article-page{padding-top:24px;padding-bottom:48px}.article-breadcrumb{display:flex;gap:10px;flex-wrap:wrap;color:var(--text-muted);font-size:12px;margin-bottom:26px}.article-breadcrumb a:hover{color:#0574ba}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:36px;align-items:start}.article-detail{min-width:0}.article-category{color:#0574ba;font-size:13px;font-weight:700}.article-detail h1{font-family:var(--font-heading);font-size:clamp(28px,3vw,44px);line-height:1.45;margin:12px 0 14px;color:var(--text-main);font-weight:700}.article-deck{font-size:18px;line-height:1.9;color:var(--text-secondary);margin-bottom:22px}.article-byline{display:flex;align-items:center;gap:12px;margin-bottom:20px}.article-byline img{border-radius:50%;object-fit:cover}.article-byline strong{font-size:13px}.article-byline p{font-size:11px;line-height:1.8;color:var(--text-muted);margin:4px 0 0}.article-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-block:1px solid var(--border-color);padding:12px 0}.article-tools>span{font-size:12px;color:var(--text-muted);margin-inline-end:8px}.article-tools button{font-family:inherit;font-size:12px;background:var(--card-bg);color:var(--text-main);border:1px solid var(--border-color);border-radius:6px;padding:8px 12px;cursor:pointer}.article-tools button:hover{color:#0574ba;border-color:#0574ba}.article-font-tools{display:flex;gap:6px;margin-inline-start:auto}#article-tool-status{font-size:12px;color:var(--text-muted);margin:4px 0;min-height:16px}.article-main-photo{margin:12px 0 26px}.article-main-photo img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius-md)}.article-main-photo figcaption{font-size:11px;color:var(--text-muted);margin-top:9px;line-height:1.8}.article-body{font-size:19px;line-height:2.1;color:var(--text-main);max-width:850px}.article-body p{margin:0 0 22px}.article-body h2{font-size:26px;line-height:1.6;margin:30px 0 14px;font-weight:700}.article-intro{font-weight:700}.article-body blockquote{border-inline-start:4px solid #ee853b;background:var(--card-bg);padding:20px 24px;margin:26px 0;font-weight:700;font-size:22px;border-radius:6px}.article-body ul{padding-inline-start:24px;margin:0 0 24px}.article-body .article-demo-note{font-size:12px;color:var(--text-muted)}.article-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-block:20px;border-block:1px solid var(--border-color);margin-top:24px;font-size:12px}.article-tags>span{margin-inline-end:8px;color:var(--text-muted)}.article-tags a{padding:7px 12px;background:#181d28;border:1px solid #181d28;border-radius:5px;transition:all .2s ease;text-decoration:none;color:#f5f5f5}.article-tags a:hover{color:#ffb27c;border-color:#414141;background:#252525}.article-related{margin-top:32px}.article-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.article-related h3{font-size:16px;line-height:1.7;margin:0}.article-sidebar{display:grid;gap:20px}.article-ad-label{text-align:center;color:var(--text-muted);font-size:10px;margin-bottom:-12px}.article-sidebar-ad{width:100%;height:auto;border-radius:var(--radius-md)}[data-theme="dark"] .article-category{color:#79c9ff}@media(max-width:1000px){.article-layout{grid-template-columns:minmax(0,1fr) 250px;gap:24px}}@media(max-width:800px){.article-layout{grid-template-columns:1fr}.article-sidebar{grid-template-columns:1fr 1fr;align-items:start}.article-ad-label{display:none}.article-body{font-size:18px}.article-deck{font-size:16px}}@media(max-width:540px){.article-related-grid{grid-template-columns:1fr}.article-sidebar{grid-template-columns:1fr}.article-sidebar-ad{max-width:300px;margin-inline:auto}.article-body h2{font-size:23px}.article-body blockquote{font-size:19px;padding:16px}.article-detail h1{font-size:28px}}@media print{.main-header,.primary-nav,.market-bar,.main-footer,.article-sidebar,.article-tools,.article-related,.article-tags,.article-breadcrumb,#article-tool-status{display:none!important}.article-layout{display:block}.article-body{max-width:none}.article-page{max-width:none}.article-main-photo img{max-height:300px;object-fit:contain}body{background:#fff!important;color:#000!important}}

/* Article details white surface */
.article-detail { background:#fff; padding:28px; border-radius:var(--radius-md); color:#191b1d; --text-main:#191b1d; --text-secondary:#4c5968; --text-muted:#687385; --card-bg:#f6f8fa; --border-color:#e2e7ec; }
.article-detail .article-detail-header h1 { color:#191b1d; }
.article-detail .article-category { color:#0574ba; }
@media(max-width:540px) { .article-detail { padding:18px 14px; } }

.article-top-ad { margin:0 auto 26px; text-align:center; }
.article-top-ad img { display:block; width:100%; max-width:970px; height:auto; margin-inline:auto; border-radius:var(--radius-sm); }

.article-byline .article-font-tools { margin-inline-start:auto; flex-shrink:0; }
.article-byline .article-font-tools button { font-family:inherit; font-size:13px; background:var(--card-bg); color:var(--text-main); border:1px solid var(--border-color); border-radius:6px; padding:8px 12px; cursor:pointer; }
.article-byline .article-font-tools button:hover { color:#0574ba; border-color:#0574ba; }
@media(max-width:540px) { .article-byline { flex-wrap:wrap; } }

.article-sharebar { justify-content:space-between; gap:14px; }
.article-publish-date { font-size:12px; color:var(--text-muted); line-height:1.8; }
.article-share-actions { display:flex; align-items:center; gap:7px; margin-inline-start:auto; }
.article-share-actions .article-social-icon,.article-share-actions button { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; padding:0; border:1px solid var(--border-color); border-radius:50%; background:transparent; color:#0574ba; cursor:pointer; }
.article-share-actions a:hover,.article-share-actions button:hover { background:#eaf5fc; color:#045b92; }
.article-share-actions a:focus-visible,.article-share-actions button:focus-visible { outline:2px solid #0574ba; outline-offset:3px; }
@media(max-width:540px){ .article-sharebar { align-items:flex-start; flex-direction:column; } .article-share-actions { align-self:flex-end; } }

.article-publish-brand { display:flex; align-items:center; gap:12px; min-width:0; }
.article-publish-brand img { display:block; width:82px; height:auto; flex-shrink:0; }
@media(max-width:540px) { .article-publish-brand { gap:8px; } .article-publish-brand img { width:70px; } }

/* Slightly smaller article headline */
.article-detail .article-detail-header h1 { font-size:clamp(26px,2.5vw,36px); }
@media(max-width:540px) { .article-detail .article-detail-header h1 { font-size:26px; } }

.article-detail-header .article-breadcrumb { margin-bottom:12px; }

/* Article detail dark theme */
[data-theme="dark"] .article-detail { background:#192230; color:#e7edf5; --text-main:#e7edf5; --text-secondary:#bdc8d6; --text-muted:#a3b0c2; --card-bg:#222e3f; --border-color:#354256; }
[data-theme="dark"] .article-detail .article-detail-header h1 { color:#f1f5f9; }
[data-theme="dark"] .article-detail .article-social-icon, [data-theme="dark"] .article-detail .article-share-actions button { color:#9bd5fb; }
[data-theme="dark"] .article-detail .article-share-actions a:hover, [data-theme="dark"] .article-detail .article-share-actions button:hover { background:#263b50; color:#fff; }
[data-theme="dark"] .article-detail .article-font-tools button:hover { color:#9bd5fb; border-color:#79c9ff; }
[data-theme="dark"] .article-detail .article-publish-brand img { background:#fff; border-radius:4px; padding:3px; }
[data-theme="dark"] .article-detail a:hover { color:#9bd5fb; }

.article-tools.article-sharebar { border-block: 0; }

/* ==========================================================================
   9. SITE FOOTER
   ========================================================================== */

.main-footer {
      background: #090c12;
      color: #94a3b8;
      border-top: 1px solid rgba(255,255,255,0.08);
      padding: 56px 0 24px;
      font-size: 13.5px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
      gap: 36px;
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .footer-brand h3 {
      font-family: var(--font-heading);
      color: #ffffff;
      font-size: 24px;
      font-weight:700;
      margin-bottom: 12px;
    }
    .footer-col .footer-col-title {
      font-family: var(--font-heading);
      color: #ffffff;
      font-size: 16px;
      font-weight:700;
      margin-bottom: 18px;
      position: relative;
    }
    .footer-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .footer-links a:hover {
      color: #ffffff;
      padding-inline-start: 4px;
    }
    .footer-nl-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 14px;
    }
    .footer-nl-input {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      color: #fff;
      font-size: 13px;
    }
    .footer-nl-btn {
      background: var(--primary);
      color: #ffffff;
      padding: 10px;
      border-radius: var(--radius-sm);
      font-weight: 700;
      font-family: var(--font-heading);
      cursor: pointer;
      transition: background 0.2s;
    }
    .footer-nl-btn:hover {
      background: var(--primary-hover);
    }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 24px;
      font-size: 12px;
      color: #64748b;
    }
    .footer-bottom-links {
      display: flex;
      gap: 18px;
    }

/* ==========================================================================
   10. RESPONSIVE & MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
      .hero-grid-layout {
        grid-template-columns: 1fr;
      }
      .editorial-grid {
        grid-template-columns: 1fr;
      }
      .four-col-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .header-grid {
        grid-template-columns: 1fr auto;
      }
      .header-search {
        display: none;
      }
    }
    @media (max-width: 640px) {
      .four-col-grid {
        grid-template-columns: 1fr;
      }
      .must-read-grid {
        grid-template-columns: 1fr;
      }
      .row-card-item {
        grid-template-columns: 1fr;
      }
      .footer-grid {
        grid-template-columns: 1fr;
      }
      .infeed-newsletter {
        flex-direction: column;
        text-align: center;
      }
      .infeed-nl-form {
        width: 100%;
        flex-direction: column;
      }
    }
  
/* Editorial lead story: image above article details */
.lead-card-editorial { min-height: 0; justify-content: flex-start; background: var(--card-bg); border-radius: 0; }
.lead-card-editorial .lead-card-media { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; overflow: hidden; background: #1c1b32; }
.lead-card-editorial .lead-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lead-story-label { position: absolute; top: 10px; right: 10px; padding: 5px 10px; border-radius: 3px; background: #0864b8; color: #fff; font-size: 11px; font-weight:700; line-height: 1.3; }
.lead-card-editorial .lead-card-content { padding: 22px 18px 16px; color: var(--text-main); }
.lead-editorial-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: 11px; }
.lead-category { color: #ed702d; font-weight: 700; }
.lead-card-editorial .lead-title { color: var(--text-main); font-size: clamp(22px, 2vw, 28px); font-weight:700; line-height: 1.4; margin: 10px 0; }
.lead-card-editorial .lead-title a:hover { color: var(--primary); }
.lead-summary { color: var(--text-secondary); font-size: 13px; line-height: 1.85; margin: 0; }
.lead-read-more { display: inline-flex; align-items: center; gap: 14px; color: #0864b8; font-size: 12px; font-weight:700; margin-top: 18px; }
.lead-read-more span { font-size: 23px; line-height: 1; }
@media (max-width: 640px) { .lead-card-editorial .lead-card-content { padding: 18px 12px 14px; } }


/* Image cover lead story */
.lead-card-cover { min-height: 580px; border-radius: var(--radius-md); background: #001126; isolation: isolate; }
.lead-card-cover .lead-card-media { position: absolute; inset: 0; height: 100%; width: 100%; }
.lead-card-cover .lead-card-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-card-cover .lead-card-gradient { background: linear-gradient(180deg, transparent 20%, rgba(0,16,35,.28) 38%, rgba(0,16,35,.93) 68%, #001023 100%); }
.lead-card-cover .lead-card-content { padding: 26px; color: #fff; }
.cover-category { display: inline-block; background: #ee853b; color: #171717; padding: 5px 16px; border-radius: 999px; font-size: 12px; line-height: 1.5; font-weight:700; }
.lead-card-cover .lead-title { color: #fff; font-size: clamp(25px,2.3vw,34px); font-weight:700; line-height: 1.25; margin: 12px 0 14px; }
.cover-meta { display: flex; align-items: center; gap: 8px; color: #b6c3d2; font-size: 11px; }
.cover-author { font-weight: 700; color: white; }
.cover-related { border-top: 1px solid rgba(255,255,255,.2); margin-top: 12px; padding-top: 10px; display: grid; gap: 9px; }
.cover-related a { display: flex; align-items: baseline; gap: 8px; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.5; }
.cover-related a:hover { color: #bacbff; }
.cover-plus { flex: 0 0 auto; font-size: 20px; font-weight: 400; line-height: 1; }
.cover-exclusive { background: #4270ff; color: #fff; padding: 1px 6px; font-size: 10px; margin-inline-end: 5px; border-radius: 2px; }
@media (max-width:640px) { .lead-card-cover { min-height: 530px; } .lead-card-cover .lead-card-content { padding: 20px; } .cover-related a { font-size: 13px; } }

/* Light editorial navigation */
.primary-nav { background: #fff; color: #253044; border-bottom: 1px solid #e2e7ec; box-shadow: none; }
.primary-nav .nav-menu { gap: 32px; }
.primary-nav .nav-item { color: #253044; transition: color .2s; }
.primary-nav .social-icons-strip, .primary-nav .social-icons-strip a { color: #657489; }
.primary-nav .nav-item.active, .primary-nav .nav-item:hover, .primary-nav .social-icons-strip a:hover { color: #0574ba; }
.primary-nav .nav-item.active::after { background: #ee853b; height: 3px; border-radius: 3px 3px 0 0; }
.primary-nav a:focus-visible { outline: 2px solid #0574ba; outline-offset: 5px; border-radius: 2px; }
[data-theme="dark"] .primary-nav { background: #151b26; border-bottom-color: #303c4e; }
[data-theme="dark"] .primary-nav .nav-item { color: #e2e8f0; }
[data-theme="dark"] .primary-nav .social-icons-strip, [data-theme="dark"] .primary-nav .social-icons-strip a { color: #a5b4c6; }
[data-theme="dark"] .primary-nav .nav-item.active, [data-theme="dark"] .primary-nav .nav-item:hover, [data-theme="dark"] .primary-nav .social-icons-strip a:hover { color: #79c9ff; }
@media (max-width: 640px) { .primary-nav .nav-menu { gap: 24px; } }
.lead-slider { position: relative; background: #001023; border-radius: var(--radius-md); overflow: hidden; }
.lead-slider .lead-slide[hidden] { display: none; }
.lead-slider .lead-slide .lead-card-content { padding-bottom: 72px; }
.lead-slider-controls { position: absolute; bottom: 18px; left: 24px; right: 24px; display: flex; align-items: center; gap: 12px; z-index: 3; color: #fff; }
.lead-slider-controls button { cursor: pointer; color: white; background: transparent; }
.lead-slider-arrow, .lead-slider-pause { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-size: 15px; }
.lead-slider-dots { display: flex; align-items: center; gap: 8px; }
.lead-slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4) !important; padding: 0; }
.lead-slider-dot[aria-pressed="true"] { width: 24px; border-radius: 8px; background: #fff !important; }
.lead-slider-pause { margin-inline-start: auto; }
.lead-slider button:focus-visible, .lead-slider:focus-visible { outline: 2px solid white; outline-offset: 4px; }

.lead-slider-controls, .lead-slider-controls button { color: #ee853b; }
.lead-slider-arrow { border-color: #ee853b; }
.lead-slider-dot { background: rgba(238,133,59,.4) !important; }
.lead-slider-dot[aria-pressed="true"] { background: #ee853b !important; }
.lead-slider button:focus-visible { outline-color: #ee853b; }

.lead-slider .lead-card:hover .lead-card-media img { transform: none; }

/* Header background artwork */
.main-header { --header-surface: #fff; background-color: var(--header-surface); background-image: linear-gradient(to right, transparent 30%, var(--header-surface) 78%), url("../images/header-skyline.webp"); background-size: 100% 100%, cover; background-position: center, center 65%; background-repeat: no-repeat; color: #191b1d; }
.main-header .masthead-team { color: #191b1d; }
.main-header .action-icon-link { color: #334155; }
.main-header .action-icon-link:hover { color: #0574ba; }

/* White backgrounds for the four middle news cards */
.hero-col-center.center-cards-stack { gap: 12px; }
.hero-col-center .mid-article-card { background: var(--card-bg); padding: 11px 13px; color: var(--text-main); border-radius: var(--radius-md); }
.hero-col-center .mid-article-card:last-child { padding-bottom: 11px; }
.hero-col-center .mid-card-media {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
}
.hero-col-center .mid-card-title { font-size: 14.5px; line-height: 1.35; margin-top: 4px; }
.hero-col-center .mid-article-card .meta-row { color: var(--text-muted); font-size: 11px; }

/* Dark theme surfaces and readable foregrounds */
[data-theme="dark"] { color-scheme: dark; --text-secondary: #b1bbca; --text-muted: #9ba8bb; }
[data-theme="dark"] .main-header { --header-surface: #151b26; color: var(--text-main); }
[data-theme="dark"] .main-header .masthead-team { color: var(--text-main); }
[data-theme="dark"] .main-header .action-icon-link { color: #e2e8f0; background: #253044; }
[data-theme="dark"] .main-header .action-icon-link:hover { color: #ffac70; background: #303e53; }
[data-theme="dark"] .masthead-person + .masthead-person { border-right-color: #64748b; }
[data-theme="dark"] .hero-col-center .mid-card-title { color: var(--text-main); }
[data-theme="dark"] .hero-col-center .mid-card-title a:hover { color: #79c9ff; }
[data-theme="dark"] .trending-header { color: #79c9ff; }
[data-theme="dark"] .search-input-pill:focus { background: var(--card-bg); }
[data-theme="dark"] .lead-read-more { color: #79c9ff; }

.market-bar { background: #e9e4db; padding: 3px 0; color: #14202d; font-size: 13px; }
.market-inner { display: flex; align-items: center; gap: 20px; }
.market-label { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 7px 12px; background: #f7f3ec; white-space: nowrap; }
.market-label svg { color: #ef5350; }
.market-quotes { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: thin; flex: 1; min-width: 0; }
.market-quote { display: flex; align-items: center; gap: 12px; background: #f7f3ec; padding: 2px 14px; white-space: nowrap; flex: 0 0 auto; line-height: 1.4; }
.market-name { font-weight:700; }
.market-value { font-size: 14px; }
.market-unit { font-size: 12px; }
.market-change { font-size: 12px; font-weight: 700; }
.market-change.down { color: #e13c3c; }
.market-change.up { color: #175e46; }
[data-theme="dark"] .market-bar { background: #101722; color: #e7edf5; }
[data-theme="dark"] .market-label, [data-theme="dark"] .market-quote { background: #1e2938; }
[data-theme="dark"] .market-change.down { color: #ff8585; }
[data-theme="dark"] .market-change.up { color: #7edbb1; }
@media(max-width:640px) { .market-inner { gap: 10px; } .market-label { padding: 7px; font-size: 11px; } .market-quotes { gap: 10px; } }

/* Dark market strip in both themes */
.market-bar, [data-theme="dark"] .market-bar { background: #181d28; color: #f5f5f5; }
.market-bar .market-quote, [data-theme="dark"] .market-bar .market-quote { background: transparent; color: #f5f5f5; }
.market-bar .market-name, .market-bar .market-value { color: #f5f5f5; }
.market-bar .market-unit { color: #c0c0c0; }
.market-bar .market-change.down, [data-theme="dark"] .market-bar .market-change.down { color: #ff8585; }
.market-bar .market-change.up, [data-theme="dark"] .market-bar .market-change.up { color: #7edbb1; }
.market-bar .market-quotes { scrollbar-color: #666 #181d28; gap: 0; }
.market-bar .market-quote { position: relative; }
.market-bar .market-quote + .market-quote::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); height: 16px; width: 1px; background: #666; }

.market-date { flex: 0 0 auto; white-space: nowrap; font-size: 13px; color: #f5f5f5; padding-inline-end: 16px; border-inline-end: 1px solid #666; }
.market-demo { color: #c5c5c5; font-size: 10px; border: 1px solid #555; border-radius: 3px; padding: 0 4px; }
/* Compact circular masthead actions */
.main-header .header-actions { display: flex; align-items: center; gap: 8px; position: relative; }
.main-header .action-icon-link, .main-header .header-action-btn { width: 36px; height: 36px; flex: 0 0 36px; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #dde5ec; background: #fff; color: #0574ba; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.main-header .action-icon-link svg, .main-header .header-action-btn svg { width: 18px; height: 18px; display: block; }
.main-header .action-icon-link:hover, .main-header .header-action-btn:hover, .main-header .action-icon-link[aria-expanded="true"], .main-header .header-action-btn[aria-expanded="true"] { background: #eaf5fc; border-color: #9ecce9; color: #045b92; }
.main-header .action-icon-link:focus-visible, .main-header .header-action-btn:focus-visible { outline: 2px solid #0574ba; outline-offset: 3px; }
[data-theme="dark"] .main-header .action-icon-link, [data-theme="dark"] .main-header .header-action-btn { background: #202c3b; border-color: #3b4b60; color: #a9dfff; }
[data-theme="dark"] .main-header .action-icon-link:hover, [data-theme="dark"] .main-header .header-action-btn:hover, [data-theme="dark"] .main-header .action-icon-link[aria-expanded="true"], [data-theme="dark"] .main-header .header-action-btn[aria-expanded="true"] { background: #2a3d52; border-color: #6ba8cf; color: #fff; }

/* Theme Toggle Sun & Moon icon switching */
.main-header .theme-toggle .icon-sun { display: none !important; }
.main-header .theme-toggle .icon-moon { display: block !important; }
[data-theme="dark"] .main-header .theme-toggle .icon-sun { display: block !important; color: #ffb74d; }
[data-theme="dark"] .main-header .theme-toggle .icon-moon { display: none !important; }

/* Social buttons in the main navigation */
.primary-nav .social-icons-strip { gap: 8px; }
.primary-nav .social-icons-strip a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #dfe7ef; border-radius: 50%; background: #f7fafc; color: #0574ba; transition: background-color .2s, color .2s, border-color .2s; }
.primary-nav .social-icons-strip a:hover { background: #0574ba; border-color: #0574ba; color: #fff; }
.primary-nav .social-icons-strip svg { display: block; width: 17px; height: 17px; }
[data-theme="dark"] .primary-nav .social-icons-strip a { background: #202c3b; border-color: #3b4b60; color: #a9dfff; }
[data-theme="dark"] .primary-nav .social-icons-strip a:hover { background: #0574ba; border-color: #0574ba; color: #fff; }

/* Most-read sidebar */
.most-read-widget { background: var(--card-bg); border-radius: var(--radius-md); padding: 20px 18px; color: var(--text-main); }
.most-read-widget h2 { font-family: var(--font-heading); font-size: 19px; font-weight:700; padding-bottom: 12px; border-bottom: 2px solid #ee853b; margin: 0 0 4px; }
.most-read-widget ol { list-style: none; padding: 0; margin: 0; counter-reset: popular; }
.most-read-widget li { counter-increment: popular; display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border-color); }
.most-read-widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.most-read-widget li::before { content: counter(popular, decimal-leading-zero); color: #ee853b; font-size: 26px; font-weight:700; line-height: 1.2; min-width: 32px; font-variant-numeric: tabular-nums; }
.most-read-widget a { font-family: var(--font-heading); font-size: 14px; font-weight: 700; line-height: 1.65; color: var(--text-main); }
.most-read-widget a:hover { color: #0574ba; }
[data-theme="dark"] .most-read-widget a:hover { color: #79c9ff; }

/* Advertisement below the lead slider */
.lead-ad-space { margin-top: 16px; min-height: 120px; padding: 12px 16px; border: 1px dashed var(--border-color); border-radius: var(--radius-md); background: var(--card-bg); color: var(--text-muted); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lead-ad-space > span { font-size: 10px; letter-spacing: 1px; }
.lead-ad-space > div { font-size: 14px; }

.sidebar-ad-space { margin-top: 0; min-height: 250px; }

.sidebar-image-ad { width: 100%; border-radius: var(--radius-md); overflow: hidden; }
.sidebar-image-ad img { display: block; width: 100%; height: auto; }

.main-section-ad { margin-top: 8px; margin-bottom: 28px; text-align: center; }
.main-section-ad img { display: block; width: 100%; max-width: 970px; height: auto; margin-inline: auto; border-radius: var(--radius-sm); }

/* Five news cards below the main advertisement */
.news-card-section { margin-bottom: 32px; }
.news-card-divider { height: 2px; background: var(--border-color); position: relative; margin-bottom: 18px; }
.news-card-divider::before { content: ""; position: absolute; inset-inline-start: 0; top: -2px; width: 50px; height: 5px; background: #ee853b; }
.news-card-row { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
.compact-news-card { min-width: 0; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.compact-news-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1e293b; }
.compact-news-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compact-news-body { padding: 12px 14px 16px; }
.compact-news-category { color: #0574ba; font-size: 12px; font-weight: 700; }
.compact-news-body .compact-news-title { font-family: var(--font-heading); font-size: 16px; font-weight: 700; line-height: 1.7; margin: 9px 0 0; color: var(--text-main); }
.compact-news-body .compact-news-title a:hover { color: #0574ba; }
[data-theme="dark"] .compact-news-category, [data-theme="dark"] .compact-news-body .compact-news-title a:hover { color: #79c9ff; }
@media (max-width: 1000px) { .news-card-row { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 640px) { .news-card-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } .compact-news-body { padding: 10px; } .compact-news-body .compact-news-title { font-size: 14px; } }
@media (max-width: 380px) { .news-card-row { grid-template-columns: 1fr; } }

.reports-files-heading-wrap { margin-bottom: 18px; border-bottom: 2px solid var(--border-color); }
.reports-files-heading-wrap h2 { display: inline-block; position: relative; margin: 0; padding-bottom: 12px; font-family: var(--font-heading); font-size: 22px; font-weight:700; color: var(--text-main); }
.reports-files-heading-wrap h2::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: 0; width: 50px; height: 4px; background: #ee853b; }
.reports-files-heading-wrap a:hover { color: #0574ba; }

/* Economy: lead story on the right */
.economy-section { margin-bottom: 36px; }
.economy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; direction: rtl; align-items: start; }
.economy-secondary { display: grid; gap: 22px; min-width: 0; }
.economy-top-stories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.economy-bottom-stories { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.economy-story { min-width: 0; color: var(--text-main); }
.economy-image { display: block; aspect-ratio: 1.48; overflow: hidden; border-radius: var(--radius-md); background: #1e293b; }
.economy-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.economy-lead .economy-image { aspect-ratio: 1.78; }
.economy-story h3 { font-family: var(--font-heading); font-size: 20px; font-weight:700; line-height: 1.5; margin: 10px 0 6px; }
.economy-lead h3 { font-size: clamp(25px,2.35vw,34px); margin-top: 22px; line-height: 1.6; }
.economy-bottom-stories h3 { font-size: 17px; }
.economy-story time { color: var(--text-muted); font-size: 11px; }
.economy-story h3 a:hover { color: #0574ba; }
[data-theme="dark"] .economy-story h3 a:hover { color: #79c9ff; }
@media(max-width: 900px) { .economy-layout { grid-template-columns: 1fr; } .economy-lead h3 { font-size: 26px; } }
@media(max-width: 540px) { .economy-top-stories, .economy-bottom-stories { grid-template-columns: 1fr; } .economy-secondary { gap: 18px; } .economy-story h3 { font-size: 20px; } .economy-image { aspect-ratio: 16 / 9; } }

/* Headlines over the two economy images */
.economy-top-stories .economy-story { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-md); background: #001126; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.economy-top-stories .economy-image { position: absolute; inset: 0; aspect-ratio: auto; border-radius: inherit; z-index: -2; }
.economy-top-stories .economy-story::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,12,28,.45) 48%, rgba(0,12,28,.94) 100%); z-index: -1; pointer-events: none; }
.economy-top-stories .economy-story h3 { margin: 60px 0 8px; font-size: 20px; line-height: 1.55; color: #fff; }
.economy-top-stories .economy-story h3 a { color: #fff; }
.economy-top-stories .economy-story h3 a:hover { color: #ffb780; }
.economy-top-stories .economy-story time { color: #d2deeb; }

/* Gold and currencies beneath the economy heading */
.economy-rates { display: flex; align-items: center; overflow-x: auto; gap: 0; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px 4px; margin-bottom: 22px; scrollbar-width: thin; }
.economy-rate { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1 0 auto; white-space: nowrap; padding: 2px 16px; font-size: 12px; color: var(--text-main); }
.economy-rate + .economy-rate { border-inline-start: 1px solid var(--border-color); }
.economy-rate strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.economy-rate small { color: var(--text-muted); font-size: 11px; }
.economy-rate .rate-up { color: #157a48; }
.economy-rate .rate-down { color: #c53838; }
[data-theme="dark"] .economy-rate .rate-up { color: #7edbb1; }
[data-theme="dark"] .economy-rate .rate-down { color: #ff8585; }

/* Scrolling demo stock ticker */
.stock-ticker { display:flex; align-items:stretch; background:#181d28; color:#f5f5f5; border-radius:var(--radius-md); overflow:hidden; margin-bottom:12px; min-width:0; }
.stock-ticker-label { display:flex; align-items:center; gap:8px; padding:10px 16px; background:#0574ba; font-size:13px; font-weight:700; flex-shrink:0; }
.stock-ticker-label small { font-size:9px; font-weight:400; opacity:.85; }
.stock-ticker-window { overflow:hidden; flex:1; min-width:0; direction:ltr; }
.stock-ticker-track { display:flex; width:max-content; animation:stock-scroll 35s linear infinite; }
.stock-ticker-group { display:flex; flex-shrink:0; align-items:center; }
.stock-ticker-item { display:flex; align-items:center; gap:12px; padding:12px 22px; position:relative; font-size:12px; white-space:nowrap; direction:rtl; }
.stock-ticker-item::after { content:""; width:1px; height:14px; background:#4b4b4b; position:absolute; right:0; top:50%; transform:translateY(-50%); }
.stock-ticker-item strong { font-variant-numeric:tabular-nums; }
.stock-up { color:#7edbb1; } .stock-down { color:#ff8585; }
.stock-ticker:hover .stock-ticker-track, .stock-ticker:focus-within .stock-ticker-track { animation-play-state:paused; }
@keyframes stock-scroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media(prefers-reduced-motion:reduce) { .stock-ticker-track { animation:none; } .stock-ticker-window { overflow-x:auto; } .stock-ticker-group[aria-hidden="true"] { display:none; } }

/* Full-width brown editors picks band */
.editors-picks-band { width:100%; background:#181d28; color:#fff8ef; padding:26px 0; margin: 4px 0 36px; }
.editors-picks-inner { display:flex; align-items:stretch; gap:26px; }
.editors-picks-label { flex:0 0 170px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-top:4px solid #ee853b; background:#141414; padding:18px; }
.editors-picks-label h2 { font-family:var(--font-heading); font-size:28px; font-weight:700; margin:0 0 8px; color:#fff8ef; }
.editors-picks-label > span { font-size:12px; color:#d9c1b3; }
.editors-picks-content { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; }
.editors-picks-slide { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; }
.editors-picks-slide[hidden] { display:none; }
.editors-picks-slide article { display:flex; align-items:center; gap:12px; padding:12px 20px; }
.editors-picks-slide article + article { border-inline-start:1px solid #444; }
.editors-picks-mark { color:#ee853b; font-size:19px; }
.editors-picks-slide h3 { font-family:var(--font-heading); font-size:18px; font-weight:700; line-height:1.9; margin:0; color:#fff8ef; }
.editors-picks-slide a:hover { color:#ffb27c; }
.editors-picks-controls { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:16px; }
.editors-picks-controls::before, .editors-picks-controls::after { content:""; flex:1; height:1px; background:#555; }
.editors-picks-controls button { width:9px; height:9px; border:0; padding:0; background:#b49a8b; cursor:pointer; }
.editors-picks-controls button[aria-pressed="true"] { background:#ee853b; }
.editors-picks-controls button:focus-visible { outline:2px solid #fff; outline-offset:4px; }
@media(max-width:900px) { .editors-picks-inner { flex-direction:column; gap:14px; } .editors-picks-label { flex-basis:auto; padding:14px; } .editors-picks-label h2 { font-size:24px; } .editors-picks-slide h3 { font-size:16px; } }
@media(max-width:640px) { .editors-picks-slide { grid-template-columns:1fr; } .editors-picks-slide article { padding:12px 0; } .editors-picks-slide article + article { border-inline-start:0; border-top:1px solid #444; } }

/* Refined editors picks with thumbnails */
.editors-picks-band { padding:28px 0; color:#f5f5f5; }
.editors-picks-inner { gap:24px; align-items:center; }
.editors-picks-label { flex:0 0 150px; background:transparent; border:0; border-inline-end:1px solid #414141; padding:10px 0 10px 22px; align-items:flex-start; }
.editors-picks-label h2 { font-size:26px; color:#fff; margin:0 0 10px; }
.editors-picks-label h2::before { content:""; display:block; width:30px; height:3px; margin-bottom:12px; background:#ee853b; }
.editors-picks-label > span { color:#a8a8a8; font-size:11px; }
.editors-picks-slide { gap:20px; }
.editors-picks-slide article { padding:0; gap:14px; align-items:center; }
.editors-picks-slide article + article { border:0; }
.editors-picks-thumb { width:86px; height:86px; flex:0 0 86px; overflow:hidden; border-radius:8px; background:#303030; }
.editors-picks-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.editors-picks-slide h3 { font-size:15px; line-height:1.75; color:#f5f5f5; font-weight:700; }
.editors-picks-controls { margin-top:20px; gap:7px; }
.editors-picks-controls::before, .editors-picks-controls::after { display:none; }
.editors-picks-controls button { border-radius:50%; width:6px; height:6px; background:#666; }
.editors-picks-controls button[aria-pressed="true"] { width:22px; border-radius:6px; background:#ee853b; }
@media(max-width:1100px) { .editors-picks-thumb { width:66px; height:76px; flex-basis:66px; } .editors-picks-slide { gap:16px; } .editors-picks-slide h3 { font-size:14px; } }
@media(max-width:900px) { .editors-picks-inner { align-items:stretch; } .editors-picks-label { flex-basis:auto; border:0; padding:0 0 8px; } .editors-picks-label h2::before { display:inline-block; width:4px; height:20px; margin:0 0 0 10px; vertical-align:middle; } .editors-picks-label > span { display:none; } }
@media(max-width:640px) { .editors-picks-slide { gap:16px; } .editors-picks-slide article + article { border-top:1px solid #353535; padding-top:16px; } .editors-picks-thumb { width:84px; height:76px; flex-basis:84px; } .editors-picks-slide h3 { font-size:16px; } }

/* Economy lead title over a taller image */
.economy-layout .economy-lead { position:relative; isolation:isolate; overflow:hidden; border-radius:var(--radius-md); background:#001126; min-height:540px; display:flex; flex-direction:column; justify-content:flex-end; padding:28px; }
.economy-layout .economy-lead .economy-image { position:absolute; inset:0; aspect-ratio:auto; border-radius:inherit; z-index:-2; }
.economy-layout .economy-lead::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 25%,rgba(0,12,28,.35) 50%,rgba(0,12,28,.95) 100%); z-index:-1; pointer-events:none; }
.economy-layout .economy-lead h3 { color:#fff; margin:160px 0 12px; font-size:clamp(26px,2.35vw,34px); line-height:1.55; }
.economy-layout .economy-lead h3 a { color:#fff; }
.economy-layout .economy-lead h3 a:hover { color:#ffb780; }
.economy-layout .economy-lead time { color:#d2deeb; }
@media(max-width:640px) { .economy-layout .economy-lead { min-height:420px; padding:22px; } .economy-layout .economy-lead h3 { font-size:26px; } }

/* Economy bottom cards match reports cards */
.economy-bottom-stories .economy-story { background:var(--card-bg); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; padding:0 0 14px; }
.economy-bottom-stories .economy-image { aspect-ratio:16 / 9; border-radius:0; }
.economy-bottom-stories .economy-story h3 { margin:12px 14px 8px; font-size:16px; font-weight:700; line-height:1.7; }
.economy-bottom-stories .economy-story time { display:block; margin:0 14px; }

/* Video section play indicators */
.video-section .must-focal-thumb { position:relative; }
.video-play-mark { position:absolute; top:16px; inset-inline-end:16px; width:44px; height:44px; border-radius:50%; background:#ee853b; color:#171717; display:grid; place-items:center; box-shadow:0 3px 14px rgba(0,0,0,.2); z-index:3; pointer-events:none; }
.video-section .must-focal-thumb .video-play-mark { top:50%; left:50%; right:auto; transform:translate(-50%,-50%); width:64px; height:64px; background:rgba(238,133,59,.96); }
.video-section .must-focal-thumb .video-play-mark svg { width:30px; height:30px; }
.video-section .must-read-header h2 { color:#fff; }

/* Redesigned video cards */
.video-showcase { background:#181d28; color:#fff; padding:34px 0 38px; margin-bottom:32px; }
.video-showcase-header { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #3b3b3b; padding-bottom:16px; margin-bottom:24px; }
.video-showcase-header h2 { margin:0; color:#fff; font-size:25px; font-family:var(--font-heading); font-weight:700; }
.video-showcase-header h2 span { color:#ee853b; margin-inline-end:8px; font-size:20px; }
.video-showcase-header > span { color:#aaa; font-size:13px; }
.video-showcase-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:28px; align-items:start; direction:rtl; }
.video-card { min-width:0; }
.video-card-image { display:block; position:relative; overflow:hidden; border-radius:10px; aspect-ratio:16 / 9; background:#303030; }
.video-card-image img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.video-card-image::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,.3),transparent 60%); pointer-events:none; }
.video-card-play { position:absolute; inset:0; margin:auto; width:48px; height:48px; display:grid; place-items:center; color:#fff; background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.75); border-radius:50%; z-index:1; transition:background .2s,border-color .2s; }
.video-card-featured .video-card-play { width:66px; height:66px; }
.video-card-image:hover .video-card-play { background:#ee853b; border-color:#ee853b; color:#171717; }
.video-card-category { display:block; color:#ee853b; font-size:11px; font-weight:700; margin-bottom:7px; }
.video-card-info h3 { font-family:var(--font-heading); font-size:18px; font-weight:700; line-height:1.7; color:#f5f5f5; margin:0; }
.video-card-info h3 a:hover { color:#ffb780; }
.video-card-featured .video-card-info { padding-top:16px; }
.video-card-featured h3 { font-size:26px; line-height:1.6; }
.video-card-info p { font-size:13px; line-height:1.8; color:#aaa; margin:10px 0 0; }
.video-showcase-list { display:grid; gap:20px; }
.video-card-small { display:grid; grid-template-columns:44% 1fr; gap:18px; align-items:center; padding-bottom:20px; border-bottom:1px solid #363636; }
.video-card-small:last-child { padding-bottom:0; border-bottom:0; }
.video-card-small .video-card-play { width:36px; height:36px; }
.video-card-image:focus-visible, .video-card-info a:focus-visible { outline:2px solid #ee853b; outline-offset:4px; }
@media(max-width:900px) { .video-showcase-grid { grid-template-columns:1fr; } .video-card-small { grid-template-columns:34% 1fr; } }
@media(max-width:540px) { .video-card-featured h3 { font-size:22px; } .video-card-small { gap:12px; grid-template-columns:40% 1fr; } .video-card-info h3 { font-size:15px; } .video-showcase { padding:26px 0; } }
@media(prefers-reduced-motion:reduce) { .video-card-image img, .video-card-play { transition:none; } }

.economy-rate-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 28px; width:28px; height:28px; border-radius:50%; background:#eaf5fc; color:#0574ba; font-family:var(--font-body); font-size:18px; font-weight:700; }
.economy-rate-icon.riyal { font-size:11px; }
.economy-rate-icon.gold { color:#ac7413; background:#fff4d8; }
[data-theme="dark"] .economy-rate-icon { background:#25384b; color:#a9dfff; }
[data-theme="dark"] .economy-rate-icon.gold { background:#42351e; color:#f1c467; }

/* Equal video cards in a compact row */
.video-showcase-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.video-card-tile { display:block; background:#12161f; border:1px solid #353535; border-radius:10px; overflow:hidden; }
.video-card-tile .video-card-image { border-radius:0; aspect-ratio:16 / 9; }
.video-card-tile .video-card-info { padding:14px 16px 18px; }
.video-card-tile .video-card-info h3 { font-size:17px; line-height:1.65; }
.video-card-tile .video-card-play { width:44px; height:44px; }
@media(max-width:900px) { .video-showcase-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .video-showcase-grid { gap:12px; } .video-card-tile .video-card-info { padding:12px; } .video-card-tile .video-card-info h3 { font-size:14px; } }
@media(max-width:360px) { .video-showcase-grid { grid-template-columns:1fr; } }

/* Five portrait reels */
.video-showcase-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; }
.video-card-tile { position:relative; isolation:isolate; aspect-ratio:9 / 16; background:#12161f; border-radius:12px; display:flex; flex-direction:column; justify-content:flex-end; }
.video-card-tile .video-card-image { position:absolute; inset:0; aspect-ratio:auto; border-radius:inherit; z-index:-1; }
.video-card-tile .video-card-image::after { background:linear-gradient(180deg,rgba(0,0,0,.08) 20%,rgba(0,0,0,.2) 45%,rgba(0,0,0,.9) 100%); }
.video-card-tile .video-card-info { padding:18px 16px; pointer-events:none; }
.video-card-tile .video-card-info a { pointer-events:auto; }
.video-card-tile .video-card-info h3 { font-size:17px; line-height:1.6; color:#fff; }
.video-card-tile .video-card-category { color:#ffb780; }
.video-card-tile .video-card-play { top:16px; bottom:auto; left:16px; right:auto; margin:0; width:38px; height:38px; background:rgba(0,0,0,.4); }
@media(max-width:1000px) { .video-showcase-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:640px) { .video-showcase-grid { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:14px; padding-bottom:12px; } .video-card-tile { flex:0 0 72%; scroll-snap-align:start; } .video-card-tile .video-card-info h3 { font-size:18px; } }

/* Demo match strip below sports heading */
.sports-matches { display:flex; align-items:stretch; gap:16px; margin-bottom:22px; padding:12px; background:var(--card-bg); border:1px solid var(--border-color); border-radius:var(--radius-md); }
.sports-matches-label { display:flex; flex-direction:column; justify-content:center; gap:7px; padding:0 12px; flex:0 0 auto; }
.sports-matches-label strong { color:var(--text-main); font-size:14px; }
.sports-matches-label small { color:var(--text-muted); font-size:10px; }
.sports-matches-track { display:flex; gap:12px; overflow-x:auto; min-width:0; flex:1; scrollbar-width:thin; }
.match-card { flex:1 0 230px; text-align:center; padding:10px 14px; border-inline-start:1px solid var(--border-color); }
.match-state { font-size:10px; color:var(--text-muted); }
.match-state.live { color:#d13d37; font-weight:700; }
.match-state.live::before { content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:currentColor; margin-inline-end:5px; }
.match-teams { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; margin:9px 0; color:var(--text-main); font-size:12px; font-weight:700; }
.match-teams strong { font-size:18px; color:#0574ba; white-space:nowrap; font-variant-numeric:tabular-nums; }
.match-card > small { font-size:10px; color:var(--text-muted); }
[data-theme="dark"] .match-state.live { color:#ff8585; }
[data-theme="dark"] .match-teams strong { color:#79c9ff; }
@media(max-width:640px) { .sports-matches { display:block; } .sports-matches-label { flex-direction:row; justify-content:space-between; padding:2px 2px 12px; } .match-card { flex-basis:230px; } }

.match-team { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-width:0; }
.match-team img { width:30px; height:30px; object-fit:contain; display:block; }
.match-team img[hidden] { display:none; }

/* Four stories per editors picks group */
.editors-picks-slide { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.editors-picks-thumb { width:64px; height:76px; flex-basis:64px; }
.editors-picks-slide h3 { font-size:14px; line-height:1.7; }
@media(max-width:1100px) { .editors-picks-slide { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; } }
@media(max-width:640px) { .editors-picks-slide { grid-template-columns:1fr; } .editors-picks-thumb { width:84px; height:76px; flex-basis:84px; } .editors-picks-slide h3 { font-size:16px; } }

/* Square editors picks thumbnails */
.editors-picks-thumb { width:72px; height:72px; flex-basis:72px; aspect-ratio:1; }
@media(max-width:640px) { .editors-picks-thumb { width:76px; height:76px; flex-basis:76px; } }

/* Two-line editors picks headlines */
.editors-picks-slide article { min-width:0; }
.editors-picks-slide h3 { min-width:0; }
.editors-picks-slide h3 a { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }

/* Balanced editors picks layout */
.editors-picks-band { padding:24px 0 22px; }
.editors-picks-inner { display:block; }
.editors-picks-label { display:flex; flex-direction:row; align-items:center; justify-content:space-between; padding:0 0 16px; margin-bottom:18px; border:0; border-bottom:1px solid #363636; background:transparent; }
.editors-picks-label h2 { margin:0; font-size:23px; line-height:1.4; }
.editors-picks-label h2::before { display:inline-block; width:4px; height:21px; margin:0 0 0 10px; background:#ee853b; border-radius:2px; vertical-align:middle; }
.editors-picks-label > span { display:block; font-size:12px; color:#999; }
.editors-picks-slide { grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.editors-picks-slide article { min-width:0; display:flex; align-items:center; gap:14px; padding:0; border:0; }
.editors-picks-slide article + article { border:0; padding:0; }
.editors-picks-thumb { width:88px; height:88px; flex:0 0 88px; aspect-ratio:1; border-radius:8px; }
.editors-picks-slide h3 { margin:0; font-size:16px; font-weight:700; line-height:1.8; color:#f5f5f5; min-width:0; }
.editors-picks-slide h3 a { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.editors-picks-controls { margin-top:20px; }
@media(max-width:1100px) { .editors-picks-slide { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 28px; } }
@media(max-width:640px) { .editors-picks-slide { grid-template-columns:1fr; gap:16px; } .editors-picks-thumb { width:76px; height:76px; flex-basis:76px; } .editors-picks-slide h3 { font-size:16px; } .editors-picks-label > span { font-size:11px; } }

/* Five editors picks cards per group */
.editors-picks-slide { grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px; }
.editors-picks-thumb { width:72px; height:72px; flex-basis:72px; }
.editors-picks-slide h3 { font-size:15px; }
@media(max-width:1100px) { .editors-picks-slide { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:800px) { .editors-picks-slide { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .editors-picks-slide { grid-template-columns:1fr; } .editors-picks-slide h3 { font-size:16px; } }

/* Reports: eight cards and a left most-read column */
.reports-with-sidebar { margin-bottom: 36px; }
.reports-with-sidebar .reports-files-heading-wrap { margin-bottom: 22px; border-bottom: 0; }
.reports-with-sidebar .reports-files-heading-wrap h2 { display: inline-block; position: relative; margin: 0; padding-bottom: 10px; font-family: var(--font-heading); font-size: 24px; font-weight:700; color: var(--text-main); }
.reports-with-sidebar .reports-files-heading-wrap h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 100%; height: 4px; background: #ee853b; border-radius: 2px; }
.reports-with-sidebar .reports-files-heading-wrap a { color: var(--text-main); text-decoration: none; }
.reports-with-sidebar .reports-files-heading-wrap a:hover { color: #0574ba; }
[data-theme="dark"] .reports-with-sidebar .reports-files-heading-wrap a:hover { color: #79c9ff; }

.reports-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; direction: rtl; align-items: start; }
.reports-with-sidebar .news-card-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.reports-with-sidebar .economy-story { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; padding: 0 0 14px; display: flex; flex-direction: column; min-width: 0; }
.reports-with-sidebar .economy-story .economy-image { aspect-ratio: 16 / 9; border-radius: 0; overflow: hidden; display: block; background: #1e293b; }
.reports-with-sidebar .economy-story .economy-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.reports-with-sidebar .economy-story:hover .economy-image img { transform: scale(1.04); }
.reports-with-sidebar .economy-story h3 { margin: 12px 14px 8px; font-family: var(--font-heading); font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--text-main); text-align: right; }
.reports-with-sidebar .economy-story h3 a { color: var(--text-main); text-decoration: none; transition: color .2s ease; }
.reports-with-sidebar .economy-story h3 a:hover { color: #0574ba; }
[data-theme="dark"] .reports-with-sidebar .economy-story h3 a:hover { color: #79c9ff; }
.reports-with-sidebar .economy-story time { display: block; margin: auto 14px 0; font-size: 11px; color: var(--text-muted); text-align: right; }

.reports-most-read { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px 20px; }
.reports-most-read > h2 { font-family: var(--font-heading); margin: 0 0 6px; padding-bottom: 12px; border-bottom: 3px solid #ee853b; color: var(--text-main); font-size: 21px; font-weight:700; text-align: right; }
.reports-most-read ol { padding: 0; margin: 0; list-style: none; counter-reset: reports-popular; }
.reports-most-read li { counter-increment: reports-popular; display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.reports-most-read li:last-child { border: 0; padding-bottom: 0; }
.reports-most-read li::before { content: counter(reports-popular, decimal-leading-zero); color: #ee853b; font-size: 24px; line-height: 1.2; font-weight:700; flex: 0 0 32px; font-family: var(--font-heading); }
.reports-most-read li a { color: var(--text-main); font-family: var(--font-heading); font-size: 14px; font-weight: 700; line-height: 1.7; text-decoration: none; transition: color .2s ease; }
.reports-most-read li a:hover { color: #0574ba; }
[data-theme="dark"] .reports-most-read li a:hover { color: #79c9ff; }

@media(max-width: 1100px) {
    .reports-content-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; }
    .reports-with-sidebar .news-card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 760px) {
    .reports-content-layout { grid-template-columns: 1fr; }
}
@media(max-width: 440px) {
    .reports-with-sidebar .news-card-row { grid-template-columns: 1fr; }
}

/* Full-width dark opinion section (Like Editors Picks / المنوعات) */
.free-space-section {
    width: 100%;
    background: #181d28;
    color: #f5f5f5;
    padding: 28px 0 34px;
    margin: 16px 0 36px;
}
.free-space-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #363636;
}
.free-space-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight:700;
    font-size: 24px;
    line-height: 1.4;
    color: #ffffff;
}
.free-space-header h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #ee853b;
    margin-inline-end: 10px;
    vertical-align: middle;
    border-radius: 2px;
}
.free-space-header h2 a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color .2s ease;
}
.free-space-header h2 a:hover {
    color: #ffb27c !important;
}
.free-space-header > span {
    color: #999999;
    font-size: 13px;
    font-weight: 500;
}
.free-space-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.opinion-card {
    min-width: 0;
    background: #12161f;
    border: 1px solid #333333;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.opinion-card:hover {
    border-color: #484848;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.opinion-card-portrait {
    display: grid;
    grid-template-columns: 35% minmax(0, 1fr);
    min-height: 150px;
    padding: 0;
}
.opinion-portrait {
    min-width: 0;
    background: #2e2e2e;
    overflow: hidden;
}
.opinion-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    object-position: center top;
    transform-origin: center top;
    border: 0;
    border-radius: 0;
    transition: transform .3s ease;
}
.opinion-card:hover .opinion-portrait img {
    transform: scale(1.04);
}
.opinion-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    min-width: 0;
}
.opinion-card-portrait .opinion-quote {
    position: absolute;
    top: 8px;
    inset-inline-end: 12px;
    font-family: Georgia, serif;
    font-size: 38px;
    line-height: 1;
    color: #ee853b;
    opacity: .35;
    pointer-events: none;
}
.opinion-card-portrait h3 {
    margin: 0 0 12px;
    padding: 0;
    position: relative;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
}
.opinion-card-portrait h3 a {
    color: #f5f5f5 !important;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    transition: color .2s ease;
}
.opinion-card-portrait h3 a:hover {
    color: #ffb27c !important;
}
.opinion-byline {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
}
.opinion-byline span {
    font-size: 11px;
    color: #9e9e9e;
}
.opinion-byline p {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
@media(max-width: 1100px) {
    .free-space-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .opinion-card-portrait {
        grid-template-columns: 34% minmax(0, 1fr);
    }
    .opinion-text {
        padding: 12px 14px;
    }
    .opinion-card-portrait h3 {
        font-size: 15px;
    }
}
@media(max-width: 640px) {
    .free-space-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding-bottom: 8px;
    }
    .opinion-card-portrait {
        flex: 0 0 86%;
        scroll-snap-align: start;
        grid-template-columns: 36% minmax(0, 1fr);
    }
    .opinion-text {
        padding: 14px 16px;
    }
    .opinion-card-portrait h3 {
        font-size: 16px;
    }
}

/* Telegraph section navigation */
.primary-nav .nav-inner { gap:16px; height:auto; min-height:52px; flex-wrap:wrap; padding-block:12px; }
.primary-nav .nav-menu { gap:16px; flex-wrap:wrap; overflow:visible; margin:0; padding:0; }
.primary-nav .nav-item { font-size:13px; white-space:nowrap; }
.primary-nav .social-icons-strip { margin-inline-start:auto; flex-shrink:0; gap:5px; }
.primary-nav .social-icons-strip a { width:28px; height:28px; flex-basis:28px; }
.nav-more { position:relative; }
.nav-more summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:6px; }
.nav-more summary::-webkit-details-marker { display:none; }
.nav-more summary::after { content:"⌄"; font-size:14px; }
.nav-more-menu { position:absolute; top:calc(100% + 14px); inset-inline-end:0; min-width:180px; padding:6px; margin:0; list-style:none; background:var(--card-bg); border:1px solid var(--border-color); border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.14); z-index:120; }
.nav-more-menu a { display:block; padding:10px 12px; color:var(--text-main); font-size:13px; white-space:nowrap; border-radius:4px; }
.nav-more-menu a:hover { background:var(--bg-soft); color:#0574ba; }
@media(max-width:640px) { .primary-nav .nav-menu { gap:14px 18px; } .primary-nav .nav-inner { padding-block:14px; } }

/* Brand-orange circular search button */
.main-header #search-toggle, [data-theme="dark"] .main-header #search-toggle { background:#ee853b !important; border:1px solid #ee853b !important; border-radius:50% !important; color:#fff !important; width:36px !important; height:36px !important; display:inline-flex !important; align-items:center !important; justify-content:center !important; padding:0 !important; cursor:pointer !important; }
.main-header #search-toggle:hover, .main-header #search-toggle[aria-expanded="true"], [data-theme="dark"] .main-header #search-toggle:hover, [data-theme="dark"] .main-header #search-toggle[aria-expanded="true"] { background:#df742d !important; border-color:#df742d !important; color:#fff !important; transform:translateY(-1px); }
.main-header #search-toggle svg, [data-theme="dark"] .main-header #search-toggle svg { color:#fff !important; stroke:#fff !important; width:18px !important; height:18px !important; display:block !important; }

/* Transparent site logo in the footer */
.footer-logo-link { display:inline-block; margin-bottom:18px; background:transparent; }
.footer-site-logo { display:block; width:220px; max-width:100%; height:auto; background:transparent; }

/* Desktop defaults for mobile header elements */
.mobile-menu-toggle-btn { display: none !important; }
.mobile-header-subrow { display: none !important; }
.desktop-masthead-team { display: flex; }
.market-quotes-clone { display: none !important; }
.mobile-nav-backdrop, .mobile-nav-drawer { display: none; }
.market-quotes-track { display: flex; align-items: center; }

/* Mobile Navigation Drawer Base */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--surface-color, #ffffff);
  color: var(--text-main, #191b1d);
  z-index: 9999;
  box-shadow: 0 0 35px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
[dir="rtl"] .mobile-nav-drawer, html[dir="rtl"] .mobile-nav-drawer {
  transform: translateX(105%);
}
.mobile-nav-drawer.open {
  transform: translateX(0) !important;
}
[data-theme="dark"] .mobile-nav-drawer {
  background: #151b26;
  color: #e2e8f0;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color, #e2e7ec);
}
.drawer-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .drawer-close-btn {
  color: #e2e8f0;
}
.drawer-search {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color, #e2e7ec);
}
.drawer-search form {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}
.drawer-search input {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color, #e2e7ec);
  padding: 0 42px 0 16px;
  font-family: inherit;
  font-size: 13px;
  background: var(--card-bg, #f6f8fa);
  color: var(--text-main);
}
.drawer-search button {
  position: absolute;
  inset-inline-end: 12px;
  background: none;
  border: none;
  color: #ee853b;
  cursor: pointer;
  display: inline-flex;
  padding: 0;
}
.drawer-nav {
  flex: 1;
  padding: 12px 10px;
}
.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.drawer-menu a.active, .drawer-menu a:hover {
  background: rgba(5,116,186,0.08);
  color: #0574ba;
}
[data-theme="dark"] .drawer-menu a {
  color: #e2e8f0;
}
[data-theme="dark"] .drawer-menu a.active, [data-theme="dark"] .drawer-menu a:hover {
  background: rgba(121,201,255,0.12);
  color: #79c9ff;
}
.drawer-services {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color, #e2e7ec);
  background: var(--card-bg, #f8fafc);
}
[data-theme="dark"] .drawer-services {
  background: #1a2230;
}
.drawer-services-title {
  display: block;
  font-size: 12px;
  font-weight:700;
  color: #ee853b;
  margin-bottom: 10px;
}
.drawer-service-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.drawer-service-links a {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  font-weight: 600;
}
.drawer-service-links a:hover {
  color: #0574ba;
}
[data-theme="dark"] .drawer-service-links a {
  color: #94a3b8;
}
[data-theme="dark"] .drawer-service-links a:hover {
  color: #79c9ff;
}
.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color, #e2e7ec);
  display: flex;
  justify-content: center;
}
.drawer-social {
  display: flex;
  gap: 10px;
}
.drawer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color, #e2e7ec);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0574ba;
  background: var(--surface-color, #fff);
  text-decoration: none;
}
[data-theme="dark"] .drawer-social a {
  background: #202c3b;
  color: #a9dfff;
  border-color: #3b4b60;
}

/* Responsive navigation and narrow screens */
@media(max-width:800px){
  /* Ticker moving animation on mobile */
  .market-bar {
    padding: 5px 0;
    overflow: hidden;
  }
  .market-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    padding-inline: 12px;
  }
  .market-date {
    font-size: 11px;
    flex: 0 0 auto;
    white-space: nowrap;
    padding-inline-end: 8px;
    border-inline-end: 1px solid #555;
    color: #f5f5f5;
  }
  .market-quotes {
    overflow: hidden !important;
    position: relative;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    display: flex;
    mask-image: linear-gradient(to right, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
  }
  .market-quotes-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: market-ticker-rtl 25s linear infinite;
  }
  .market-quotes:hover .market-quotes-track,
  .market-quotes:active .market-quotes-track {
    animation-play-state: paused;
  }
  .market-quotes-clone {
    display: flex !important;
    align-items: center;
  }
  @keyframes market-ticker-rtl {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  .market-quote {
    padding: 2px 10px;
    font-size: 11.5px;
    flex-shrink: 0;
  }
  .market-name {
    font-size: 11.5px;
  }
  .market-value {
    font-size: 12px;
  }

  /* Main Header on Mobile */
  .main-header {
    padding: 12px 0 10px;
  }
  .header-grid {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    width: 100%;
  }

  /* 1. Menu Button on Right (RTL start) */
  .mobile-menu-toggle-btn {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    order: 1;
    flex-shrink: 0;
  }
  .mobile-menu-toggle-btn .hamburger-bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ee853b;
    border-radius: 3px;
  }

  /* 2. Logo Centered in middle */
  .header-brand-group {
    order: 2;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }
  .brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .brand-logo .site-logo-image {
    max-height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
  }
  .desktop-masthead-team {
    display: none !important;
  }

  /* 3. Search & Dark Mode on Left (RTL end) */
  .header-actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin: 0;
  }
  .header-actions .search-toggle {
    order: 1;
  }
  .header-actions .theme-toggle {
    order: 2;
  }

  .header-search-panel {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    width: 100%;
    z-index: 150;
    background: var(--card-bg, #fff);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
  }
  .header-search-panel form {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .header-search-panel input {
    flex: 1;
    height: 38px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0 12px;
    font-family: inherit;
    font-size: 13px;
  }
  .header-search-panel button {
    height: 38px;
    padding: 0 16px;
    background: #ee853b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  /* 4. Centered Names & Social Media Subrow */
  .mobile-header-subrow {
    display: block !important;
    width: 100%;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--border-color, #e2e8f0);
  }
  [data-theme="dark"] .mobile-header-subrow {
    border-top-color: rgba(255,255,255,0.08);
  }
  .mobile-masthead-team {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
    text-align: center;
  }
  .mobile-masthead-team .masthead-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.35;
  }
  .mobile-masthead-team .masthead-person span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2px;
  }
  .mobile-masthead-team .masthead-person strong {
    font-size: 13.5px;
    font-weight:700;
    color: var(--text-main);
  }
  .mobile-masthead-team .masthead-person + .masthead-person {
    padding-inline-start: 16px;
    border-inline-start: 1.5px solid #0574ba;
  }

  /* 5. Centered Social Icons Under Names */
  .header-mobile-social {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
  .header-mobile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #dde5ec);
    background: var(--card-bg, #fff);
    color: #0574ba;
    transition: all .2s;
    text-decoration: none;
  }
  [data-theme="dark"] .header-mobile-social a {
    background: #202c3b;
    border-color: #3b4b60;
    color: #a9dfff;
  }
  .header-mobile-social a:hover {
    background: #0574ba;
    border-color: #0574ba;
    color: #fff;
  }

  /* Mobile Drawer is visible only on mobile */
  .mobile-nav-backdrop, .mobile-nav-drawer {
    display: flex;
  }

  .primary-nav .nav-inner {
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 48px;
    padding-block: 8px;
  }
  .primary-nav .nav-menu {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    scrollbar-width: none;
    padding: 7px 0;
  }
  .primary-nav .nav-menu::-webkit-scrollbar {
    display: none;
  }
  .primary-nav .nav-menu>li {
    flex-shrink: 0;
  }
  .primary-nav .nav-item.active::after {
    bottom: -6px;
  }
  .primary-nav .social-icons-strip {
    display: none;
  }
}

@media(max-width:380px){
  .site-container{padding-inline:12px}
  .brand-logo .site-logo-image{max-width:135px}
  .header-actions{gap:4px}
  .mobile-masthead-team{gap:10px}
  .mobile-masthead-team .masthead-person + .masthead-person{padding-inline-start:10px}
  .mobile-masthead-team .masthead-person strong{font-size:12.5px}
  .header-mobile-social a{width:29px;height:29px}
  .article-publish-brand{flex-wrap:wrap}
  .article-share-actions{flex-wrap:wrap}
  .section-card-body h3{overflow-wrap:anywhere}
}

html[data-theme="dark"] body { background-color:#0b0f17; }
html[data-theme="dark"] .primary-nav .nav-item { color:#e2e8f0; }
html[data-theme="dark"] .primary-nav .nav-item.active,html[data-theme="dark"] .primary-nav .nav-item:hover { color:#79c9ff; }
/* ==========================================================================
   MODULE 11: MODALS & OVERLAYS
   ========================================================================== */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease-out;
}
.custom-modal-backdrop[hidden] {
  display: none !important;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.custom-modal-card {
  background: var(--surface-color, #ffffff);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #e2e8f0);
  overflow: hidden;
  animation: modalSlideUp 0.25s ease-out;
}
@keyframes modalSlideUp {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.custom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--brand-primary, #0f2137);
  color: #ffffff;
}
.custom-modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #ee853b;
}
.custom-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.custom-modal-close:hover {
  opacity: 1;
}
.custom-modal-body {
  padding: 24px 20px;
  color: var(--text-primary, #1e293b);
  font-size: 16px;
  line-height: 1.8;
  max-height: 60vh;
  overflow-y: auto;
}
.custom-modal-footer {
  padding: 14px 20px;
  background: var(--surface-color-secondary, #f8fafc);
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color, #e2e8f0);
}
.custom-modal-image-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-modal-image-wrap img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.custom-modal-close-float {
  position: absolute;
  top: -40px;
  left: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
.article-summary-badge {
  background: var(--brand-primary, #0f2137);
  color: #ee853b;
  border: 1px solid #ee853b;
  border-radius: 18px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  margin-right: 8px;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.article-summary-badge:hover {
  background: #ee853b;
  color: #ffffff;
}

/* ==========================================================================
   MODULE 12: SERVICES PAGES (METALS, CURRENCIES, CRYPTO, PRAYER, WEATHER)
   ========================================================================== */
.service-page {
  padding-block: 40px 60px;
}
.service-header {
  text-align: center;
  margin-bottom: 40px;
}
.service-header h1 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight:700;
  color: var(--text-main);
  margin-bottom: 12px;
}
.service-header p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
}
.service-converter-card {
  max-width: 860px;
  margin: 0 auto 48px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}
.service-converter-card h2 {
  font-size: 18px;
  font-weight:700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ee853b;
}
.service-converter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: end;
}
.service-input-group label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.service-input, .service-select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.service-select option {
  background: #0f172a;
  color: #ffffff;
}
.service-input:focus, .service-select:focus {
  border-color: #ee853b;
}
.service-result-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}
.service-result-box label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.service-result-val {
  font-size: 24px;
  font-weight:700;
  color: #ee853b;
  line-height: 1.2;
}
.service-result-sub {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 4px;
}
.service-section-title {
  font-size: 22px;
  font-weight:700;
  margin-bottom: 20px;
  color: var(--text-main);
  position: relative;
  padding-bottom: 10px;
}
.service-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 44px;
  height: 3px;
  background: #ee853b;
}
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.service-item-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}
.service-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.service-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(238, 133, 59, 0.12);
  color: #ee853b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight:700;
  font-size: 18px;
}
.service-item-code {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
}
.service-item-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.service-item-price {
  font-size: 24px;
  font-weight:700;
  color: var(--text-main);
  line-height: 1.2;
}
.service-item-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.service-table-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.service-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 14px;
}
.service-table th {
  background: var(--surface-color-secondary, #f8fafc);
  padding: 14px 18px;
  font-weight:700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.service-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-main);
}
.service-table tr:last-child td {
  border-bottom: none;
}
.service-table tr:hover td {
  background: rgba(238, 133, 59, 0.03);
}
@media (max-width: 768px) {
  .service-converter-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODULE 12.1: CURRENCY PRICES FINTECH PORTAL REDESIGN
   ========================================================================== */

.currency-portal {
  padding-block: 28px 60px;
}

/* 1. Hero Banner */
.currency-hero-card {
  position: relative;
  background: linear-gradient(135deg, #0e1c2e 0%, #152c48 50%, #0c1a2d 100%);
  border-radius: 24px;
  padding: 36px 32px 32px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(10, 26, 47, 0.45);
  margin-bottom: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.currency-hero-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(238, 133, 59, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.currency-hero-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(5, 116, 186, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.currency-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.currency-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
}
.currency-live-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.currency-hero-timestamp {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.currency-hero-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight:700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 12px;
}
.currency-hero-title span.accent-text {
  color: #ee853b;
}
.currency-hero-desc {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.currency-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.currency-stat-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.currency-stat-chip span.label {
  font-size: 11.5px;
  color: #94a3b8;
}
.currency-stat-chip strong.val {
  font-size: 18px;
  font-weight:700;
  color: #ffffff;
  font-family: inherit;
}

/* 2. Featured Big Currencies Grid */
.currency-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.currency-section-heading h2 {
  font-size: 22px;
  font-weight:700;
  color: var(--text-main);
  position: relative;
  padding-bottom: 8px;
}
.currency-section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 48px;
  height: 3px;
  background: #ee853b;
  border-radius: 2px;
}
.currency-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.currency-card-featured {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.currency-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(5, 116, 186, 0.15);
  border-color: rgba(5, 116, 186, 0.4);
}
.currency-card-featured.usd-highlight {
  border-color: rgba(238, 133, 59, 0.4);
  background: linear-gradient(to bottom, var(--card-bg, #ffffff) 0%, rgba(238, 133, 59, 0.03) 100%);
}
.currency-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.currency-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.currency-flag-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.currency-names {
  display: flex;
  flex-direction: column;
}
.currency-code-pill {
  font-size: 11px;
  font-weight:700;
  color: #0574ba;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.currency-title {
  font-size: 16px;
  font-weight:700;
  color: var(--text-main);
  line-height: 1.3;
}
.currency-badge-trend {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.currency-badge-trend.up {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.currency-badge-trend.down {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
[data-theme="dark"] .currency-badge-trend.up {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
[data-theme="dark"] .currency-badge-trend.down {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.currency-main-rate-row {
  margin-bottom: 16px;
}
.currency-main-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.currency-big-rate {
  font-size: 32px;
  font-weight:700;
  color: var(--text-main);
  line-height: 1.1;
  font-family: inherit;
}
.currency-big-rate span.unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  margin-inline-start: 4px;
}

.currency-rates-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-soft, #f8fafc);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  margin-bottom: 16px;
}
.rate-item {
  display: flex;
  flex-direction: column;
}
.rate-item span.title {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.rate-item strong.val {
  font-size: 15px;
  font-weight:700;
  color: var(--text-main);
}
.rate-item.buy strong.val {
  color: #0574ba;
}
.rate-item.sell strong.val {
  color: #ee853b;
}

.currency-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color, #e2e8f0);
}
.currency-avg-stat {
  font-size: 11.5px;
  color: var(--text-muted);
}
.currency-avg-stat strong {
  color: var(--text-main);
}
.currency-quick-calc-btn {
  background: rgba(5, 116, 186, 0.08);
  border: 1px solid rgba(5, 116, 186, 0.2);
  color: #0574ba;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.currency-quick-calc-btn:hover {
  background: #0574ba;
  color: #ffffff;
  border-color: #0574ba;
}
[data-theme="dark"] .currency-quick-calc-btn {
  background: rgba(5, 116, 186, 0.2);
  color: #79c9ff;
  border-color: rgba(5, 116, 186, 0.4);
}
[data-theme="dark"] .currency-quick-calc-btn:hover {
  background: #0574ba;
  color: #ffffff;
}

/* 3. Smart Interactive Live Converter */
.smart-converter-card {
  background: linear-gradient(135deg, #0e1e32 0%, #152d4b 100%);
  border-radius: 24px;
  padding: 32px 36px;
  color: #ffffff;
  margin-bottom: 48px;
  box-shadow: 0 20px 40px -10px rgba(14, 30, 50, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.smart-converter-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.smart-converter-icon {
  width: 48px;
  height: 48px;
  background: rgba(238, 133, 59, 0.2);
  border: 1px solid rgba(238, 133, 59, 0.4);
  color: #ee853b;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.smart-converter-titles h2 {
  font-size: 22px;
  font-weight:700;
  color: #ffffff;
  margin: 0 0 4px;
}
.smart-converter-titles p {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0;
}
.converter-form-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.converter-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 16px 20px;
  transition: border-color 0.2s, background 0.2s;
}
.converter-box:focus-within {
  border-color: #ee853b;
  background: rgba(255, 255, 255, 0.09);
}
.converter-box label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.converter-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.converter-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 26px;
  font-weight:700;
  color: #ffffff;
  font-family: inherit;
  width: 100%;
}
.converter-select-wrap {
  position: relative;
  flex-shrink: 0;
}
.converter-select {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 8px 14px;
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}
.converter-select option {
  background: #0f172a;
  color: #ffffff;
}
.converter-swap-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ee853b;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(238, 133, 59, 0.4);
  transition: transform 0.3s ease, background 0.2s;
}
.converter-swap-btn:hover {
  transform: rotate(180deg) scale(1.05);
  background: #f09552;
}

/* Quick chips */
.converter-chips-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.converter-chips-row span.chips-label {
  font-size: 12px;
  color: #94a3b8;
}
.amount-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.amount-chip:hover {
  background: rgba(238, 133, 59, 0.25);
  border-color: #ee853b;
  color: #ffffff;
}

/* Result breakdown banner */
.converter-result-banner {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}
.result-calc-text {
  font-size: 13.5px;
  color: #94a3b8;
}
.result-calc-value {
  font-size: 30px;
  font-weight:700;
  color: #ee853b;
  line-height: 1.2;
}
.result-rate-formula {
  font-size: 12.5px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
}

/* 4. Filter Toolbar & Table View */
.currency-toolbar {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.currency-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.currency-search-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 10px 42px 10px 14px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.currency-search-input:focus {
  border-color: #0574ba;
  box-shadow: 0 0 0 3px rgba(5, 116, 186, 0.1);
}
.currency-search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.currency-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab-btn {
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.filter-tab-btn:hover {
  color: #0574ba;
  border-color: #0574ba;
}
.filter-tab-btn.active {
  background: #0574ba;
  color: #ffffff;
  border-color: #0574ba;
}
.currency-view-toggles {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-soft, #f8fafc);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #e2e8f0);
}
.view-toggle-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: inherit;
}
.view-toggle-btn.active {
  background: var(--card-bg, #ffffff);
  color: #0574ba;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Modern Banking Table */
.currency-table-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 48px;
}
.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fintech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 14px;
  white-space: nowrap;
}
.fintech-table th {
  background: var(--bg-soft, #f8fafc);
  padding: 16px 20px;
  font-weight:700;
  color: var(--text-secondary);
  font-size: 12.5px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  letter-spacing: 0.3px;
}
.fintech-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-main);
  vertical-align: middle;
}
.fintech-table tr:last-child td {
  border-bottom: none;
}
.fintech-table tr:hover td {
  background: rgba(5, 116, 186, 0.02);
}
.table-currency-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-flag {
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.table-currency-name {
  font-weight:700;
  font-size: 15px;
  color: var(--text-main);
}
.table-currency-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.rate-cell-bold {
  font-size: 17px;
  font-weight:700;
  color: var(--text-main);
}
.rate-cell-buy {
  font-size: 15px;
  font-weight:700;
  color: #0574ba;
}
.rate-cell-sell {
  font-size: 15px;
  font-weight:700;
  color: #ee853b;
}

/* 5. Egyptian Banks Comparison */
.banks-table-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 48px;
}
.bank-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bank-badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* 6. FAQ Section */
.currency-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
.faq-item-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.faq-item-card h3 {
  font-size: 16px;
  font-weight:700;
  color: #0574ba;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-item-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* 7. Related Services Cards */
.services-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.service-shortcut-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.service-shortcut-card:hover {
  transform: translateY(-2px);
  border-color: #0574ba;
  box-shadow: 0 8px 18px rgba(5, 116, 186, 0.1);
}
.service-shortcut-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(5, 116, 186, 0.1);
  color: #0574ba;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.service-shortcut-card.gold-theme .service-shortcut-icon {
  background: rgba(238, 133, 59, 0.12);
  color: #ee853b;
}
.service-shortcut-info h4 {
  font-size: 15px;
  font-weight:700;
  color: var(--text-main);
  margin: 0 0 2px;
}
.service-shortcut-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 800px) {
  .currency-hero-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .currency-hero-title {
    font-size: 24px;
  }
  .converter-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .converter-swap-btn {
    margin: -4px auto;
  }
  .smart-converter-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .currency-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .currency-filter-tabs {
    justify-content: center;
  }
  .currency-view-toggles {
    justify-content: center;
  }
  .currency-faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Prayer & Weather widgets */
.prayer-countdown-box {
  max-width: 760px;
  margin: 0 auto 36px;
  background: linear-gradient(135deg, #0f2137 0%, #173354 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 35px -10px rgba(15, 33, 55, 0.4);
}
.prayer-countdown-timer {
  font-size: clamp(36px, 6vw, 56px);
  font-weight:700;
  letter-spacing: 2px;
  color: #ee853b;
  margin: 12px 0 16px;
  font-family: inherit;
}
.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.prayer-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.prayer-card.active {
  border-color: #ee853b;
  box-shadow: 0 0 0 2px rgba(238, 133, 59, 0.2);
  background: rgba(238, 133, 59, 0.04);
}
.prayer-card-name {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.prayer-card-time {
  font-size: 20px;
  font-weight:700;
  color: var(--text-main);
}
.weather-search-bar {
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}
.weather-search-bar input {
  width: 100%;
  box-sizing: border-box;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.weather-search-bar input:focus {
  border-color: #ee853b;
}
.weather-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.weather-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.weather-card-top {
  padding: 24px;
  color: #ffffff;
  position: relative;
}
.weather-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 24px;
  background: var(--surface-color-secondary, #f8fafc);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.weather-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.weather-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}
.weather-stat-val {
  font-size: 13px;
  font-weight:700;
  color: var(--text-main);
}
.weather-toggle-btn {
  width: 100%;
  background: var(--card-bg, #ffffff);
  border: none;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--border-color, #e2e8f0);
}
.weather-forecast-list {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color, #e2e8f0);
  background: var(--card-bg, #ffffff);
}
.weather-forecast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  font-size: 13px;
}
.weather-forecast-row:last-child {
  border-bottom: none;
}

/* ==========================================================================
   MODULE 13: PAGINATION STYLES
   ========================================================================== */
.section-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 36px 0 24px;
  direction: rtl;
}

.section-pagination .pagination-btn {
  font-family: var(--font-body, inherit);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  background: var(--card-bg, #ffffff);
  color: var(--text-main, #0f172a);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.section-pagination .pagination-btn:hover:not(.disabled):not(.active) {
  background: #0574ba;
  color: #ffffff;
  border-color: #0574ba;
  transform: translateY(-1px);
}

.section-pagination .pagination-btn.active {
  background: #0574ba;
  color: #ffffff;
  border-color: #0574ba;
  cursor: default;
  font-weight: 700;
}

.section-pagination .pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--card-bg, #ffffff);
  color: var(--text-muted, #64748b);
  pointer-events: none;
}

[data-theme="dark"] .section-pagination .pagination-btn {
  background: var(--card-bg, #1a2232);
  border-color: var(--border-color, #2d3748);
  color: var(--text-main, #f1f5f9);
}

[data-theme="dark"] .section-pagination .pagination-btn.active {
  background: #0574ba;
  color: #ffffff;
  border-color: #0574ba;
}

[data-theme="dark"] .section-pagination .pagination-btn.disabled {
  opacity: 0.35;
  color: #94a3b8;
}

/* ==========================================================================
   MODULE 12.2: METALS & GOLD FINTECH PORTAL REDESIGN
   ========================================================================== */

.gold-portal {
  padding-block: 28px 60px;
}

.gold-hero-card {
  position: relative;
  background: linear-gradient(135deg, #151108 0%, #251b0a 50%, #151108 100%);
  border-radius: 24px;
  padding: 36px 32px 32px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(25, 18, 5, 0.5);
  margin-bottom: 36px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.gold-hero-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.gold-hero-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.gold-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.gold-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
}
.gold-live-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-ring-gold 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse-ring-gold {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.gold-hero-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight:700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 12px;
}
.gold-hero-title span.accent-gold {
  color: #fbbf24;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold-hero-desc {
  font-size: 15px;
  color: #e2e8f0;
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.gold-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
}
.gold-stat-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gold-stat-chip span.label {
  font-size: 11.5px;
  color: #cbd5e1;
}
.gold-stat-chip strong.val {
  font-size: 18px;
  font-weight:700;
  color: #fbbf24;
}

/* Gold Karat Grid */
.gold-karat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.gold-karat-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.gold-karat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
}
.gold-karat-card.featured-21k {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(to bottom, var(--card-bg, #ffffff) 0%, rgba(245, 158, 11, 0.04) 100%);
}
.gold-karat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.gold-karat-badge {
  font-size: 12px;
  font-weight:700;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
[data-theme="dark"] .gold-karat-badge {
  color: #fbbf24;
}
.gold-karat-title {
  font-size: 18px;
  font-weight:700;
  color: var(--text-main);
  margin: 0 0 2px;
}
.gold-karat-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}
.gold-karat-price-row {
  margin-bottom: 16px;
}
.gold-karat-price-row .label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.gold-karat-big-price {
  font-size: 30px;
  font-weight:700;
  color: #d97706;
  line-height: 1.1;
}
[data-theme="dark"] .gold-karat-big-price {
  color: #fbbf24;
}
.gold-karat-big-price span.unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  margin-inline-start: 4px;
}
.gold-karat-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-soft, #f8fafc);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  margin-bottom: 16px;
}
.gold-spread-item {
  display: flex;
  flex-direction: column;
}
.gold-spread-item span.title {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.gold-spread-item strong.val {
  font-size: 14px;
  font-weight:700;
  color: var(--text-main);
}
.gold-spread-item.buy strong.val {
  color: #0574ba;
}
.gold-spread-item.sell strong.val {
  color: #d97706;
}

/* Gold Bullion & Coins Showcase */
.gold-coins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.gold-coin-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}
.gold-coin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.12);
}
.gold-coin-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.gold-coin-info {
  flex: 1;
}
.gold-coin-title {
  font-size: 16px;
  font-weight:700;
  color: var(--text-main);
  margin: 0 0 2px;
}
.gold-coin-weight {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.gold-coin-price {
  font-size: 18px;
  font-weight:700;
  color: #d97706;
}
[data-theme="dark"] .gold-coin-price {
  color: #fbbf24;
}

/* Gold Smart Calculator */
.gold-smart-calc-card {
  background: linear-gradient(135deg, #181309 0%, #281d0a 100%);
  border-radius: 24px;
  padding: 32px 36px;
  color: #ffffff;
  margin-bottom: 48px;
  box-shadow: 0 20px 40px -10px rgba(24, 19, 9, 0.45);
  border: 1px solid rgba(245, 158, 11, 0.3);
  position: relative;
  overflow: hidden;
}
.gold-calc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .gold-calc-form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODULE 12.3: ATMOSPHERIC WEATHER PORTAL REDESIGN
   ========================================================================== */

.weather-portal {
  padding-block: 28px 60px;
}

.weather-hero-card {
  position: relative;
  background: linear-gradient(135deg, #091728 0%, #0d2847 50%, #091728 100%);
  border-radius: 24px;
  padding: 36px 32px 32px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(9, 23, 40, 0.5);
  margin-bottom: 36px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.weather-hero-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.weather-hero-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.weather-hero-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 28px;
}
.weather-spotlight-temp {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.weather-big-degree {
  font-size: clamp(48px, 8vw, 76px);
  font-weight:700;
  line-height: 1;
  color: #ffffff;
}
.weather-big-unit {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #38bdf8;
}
.weather-spotlight-desc {
  font-size: 20px;
  font-weight:700;
  color: #e0f2fe;
}
.weather-spotlight-sub {
  font-size: 14px;
  color: #94a3b8;
}

/* Weather Region Tabs */
.weather-region-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.weather-tab-btn {
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.weather-tab-btn:hover {
  color: #0284c7;
  border-color: #0284c7;
}
.weather-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* ==========================================================================
   MODULE 12.4: ISLAMIC PRAYER TIMES PORTAL REDESIGN
   ========================================================================== */

.prayer-portal {
  padding-block: 28px 60px;
}

.prayer-hero-card {
  position: relative;
  background: linear-gradient(135deg, #051b14 0%, #0d3829 50%, #051b14 100%);
  border-radius: 24px;
  padding: 36px 32px 32px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(5, 27, 20, 0.5);
  margin-bottom: 36px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.prayer-hero-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.prayer-hero-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(238, 133, 59, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.prayer-dates-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.prayer-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.prayer-date-pill.hijri {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.prayer-date-pill.gregorian {
  background: rgba(238, 133, 59, 0.15);
  border: 1px solid rgba(238, 133, 59, 0.35);
  color: #ee853b;
}
.prayer-date-pill.city {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Prayer Countdown Card */
.prayer-countdown-card {
  background: linear-gradient(135deg, #092019 0%, #113f30 100%);
  border-radius: 24px;
  padding: 36px 24px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 40px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px -10px rgba(9, 32, 25, 0.45);
  position: relative;
  overflow: hidden;
}
.prayer-countdown-digits {
  font-size: clamp(40px, 7vw, 68px);
  font-weight:700;
  letter-spacing: 3px;
  color: #34d399;
  font-family: inherit;
  margin: 10px 0;
  text-shadow: 0 4px 20px rgba(52, 211, 153, 0.3);
}

/* Modern Prayer Cards Grid */
.prayer-cards-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}
.prayer-card-item {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}
.prayer-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px -8px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}
.prayer-card-item.active-prayer {
  background: linear-gradient(to bottom, var(--card-bg, #ffffff) 0%, rgba(16, 185, 129, 0.06) 100%);
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 14px 30px -8px rgba(16, 185, 129, 0.25);
  transform: translateY(-4px);
}
.prayer-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}
.prayer-card-title {
  font-size: 16px;
  font-weight:700;
  color: var(--text-main);
  margin: 0 0 6px;
}
.prayer-card-time-val {
  font-size: 24px;
  font-weight:700;
  color: #0574ba;
  line-height: 1.1;
  margin-bottom: 6px;
}
.prayer-card-item.active-prayer .prayer-card-time-val {
  color: #10b981;
}
.prayer-card-desc-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Athkar Grid */
.athkar-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.thikr-item-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.thikr-item-title {
  font-size: 16px;
  font-weight:700;
  color: #10b981;
  margin: 0 0 10px;
}
.thikr-item-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-main);
  font-style: normal;
  margin: 0 0 14px;
}
.thikr-copy-btn {
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s ease;
  font-family: inherit;
}
.thikr-copy-btn:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}


@media (max-width: 640px) {
    .reports-with-sidebar .news-card-row .economy-story {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-rows: 1fr auto;
        direction: ltr;
        gap: 6px 12px;
        padding: 10px;
        align-items: start;
    }
    .reports-with-sidebar .news-card-row .economy-story .economy-image {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 112px;
        height: 90px;
        aspect-ratio: auto;
        border-radius: var(--radius-sm);
        align-self: center;
    }
    .reports-with-sidebar .news-card-row .economy-story h3 {
        grid-column: 2;
        grid-row: 1;
        direction: rtl;
        margin: 0;
        font-size: 14px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }
    .reports-with-sidebar .news-card-row .economy-story time {
        grid-column: 2;
        grid-row: 2;
        direction: rtl;
        margin: 0;
    }
}

@media (max-width: 640px) {
    .news-card-section > .news-card-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .news-card-section .compact-news-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        direction: ltr;
        gap: 12px;
        padding: 10px;
        align-items: center;
    }
    .news-card-section .compact-news-image {
        grid-column: 1;
        grid-row: 1;
        width: 112px;
        height: 90px;
        aspect-ratio: auto;
        border-radius: var(--radius-sm);
    }
    .news-card-section .compact-news-body {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        padding: 0;
        direction: rtl;
        text-align: right;
    }
    .news-card-section .compact-news-body .compact-news-title {
        margin: 5px 0 0;
        font-size: 14px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 640px) {
    .economy-section .economy-bottom-stories {
        grid-template-columns: minmax(0, 1fr);
    }
    .economy-section .economy-bottom-stories .economy-story {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-rows: 1fr auto;
        direction: ltr;
        gap: 6px 12px;
        align-items: start;
        padding: 10px;
    }
    .economy-section .economy-bottom-stories .economy-image {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 112px;
        height: 90px;
        aspect-ratio: auto;
        align-self: center;
    }
    .economy-section .economy-bottom-stories h3 {
        grid-column: 2;
        grid-row: 1;
        direction: rtl;
        text-align: right;
        margin: 0;
        font-size: 14px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }
    .economy-section .economy-bottom-stories time {
        grid-column: 2;
        grid-row: 2;
        direction: rtl;
        text-align: right;
        margin: 0;
    }
}

@media (max-width: 440px) {
    .main-footer .footer-grid > .footer-section-links { display: none; }
}

@media (max-width: 440px) {
    .main-footer .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
        padding-top: 20px;
        line-height: 1.8;
    }
    .main-footer .footer-bottom > p {
        justify-content: center;
        width: 100%;
        min-width: 0;
        margin: 0;
        font-size: 11px;
        overflow-wrap: anywhere;
    }
    .main-footer .footer-bottom .footer-copyright {
        flex-basis: 100%;
    }
    .main-footer .footer-bottom .footer-credit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
    }
    .main-footer .footer-bottom .footer-credit-divider { display: none; }
    .main-footer .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 16px;
        width: 100%;
        font-size: 11px;
    }
}

.article-reactions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 24px 0; }
.article-reaction { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; min-width: 0; min-height: 40px; padding: 5px 17px; border: 0; border-radius: 0; color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; transition: filter .15s ease; }
.article-reaction-like { background: #e0f2fe; color: #23658b; border-start-start-radius: 25px; border-end-start-radius: 25px; }
.article-reaction-dislike { background: #fde8eb; color: #a34455; border-start-end-radius: 25px; border-end-end-radius: 25px; }
.article-reaction[aria-pressed="true"] { box-shadow: none; filter: brightness(.9); }
.article-reaction:focus-visible { outline: 3px solid #0574ba; outline-offset: 3px; }
.article-reaction:disabled { opacity: .65; cursor: wait; }
.article-reaction-message { grid-column: 1 / -1; text-align: center; font-size: 12px; color: var(--text-muted); }
.article-reaction-message:empty { display: none; }

.article-reaction svg { width: 26px; height: 26px; flex: 0 0 26px; }
.article-reaction .reaction-thumb-down { transform: rotate(180deg); }
.article-reaction:hover:not(:disabled) { filter: brightness(.9); }
.article-reaction [data-count] { min-width: 1.5ch; font-variant-numeric: tabular-nums; }
.article-reaction-message:not(:empty) { padding-top: 10px; }

.article-reaction-dislike { flex-direction: row-reverse; }
.article-reaction [data-count] { direction: ltr; unicode-bidi: isolate; }

.article-reactions[hidden] { display: none; }

.main-footer .footer-developer { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 0px; padding-top: 20px; text-align: center; }
.main-footer .footer-developer > span { font-size: 12px; line-height: 1.6; color: #cbd5e1; }
.main-footer .footer-developer > a { display: inline-flex; justify-content: center; max-width: 100%; }
.main-footer .footer-developer img { display: block; width: 168px; max-width: 100%; height: auto; }

@media (max-width: 800px) {
    .article-related .article-related-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .article-related .compact-news-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); direction: ltr; align-items: center; gap: 12px; padding: 10px; }
    .article-related .compact-news-image { grid-column: 1; grid-row: 1; width: 112px; height: 90px; aspect-ratio: auto; border-radius: var(--radius-sm); }
    .article-related .compact-news-body { grid-column: 2; grid-row: 1; min-width: 0; padding: 0; direction: rtl; text-align: right; }
    .article-related .compact-news-body h3 { margin: 0; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
}

#header-search-panel { position:fixed; inset:0; width:100%; max-width:none; height:100%; height:100dvh; max-height:none; margin:0; padding:32px; box-sizing:border-box; border:0; border-radius:0; box-shadow:none; background:var(--card-bg,#fff); color:var(--text-main,#191b1d); overflow:auto; }
#header-search-panel[open] { display:flex; align-items:center; justify-content:center; }
#header-search-panel[hidden] { display:none; }
#header-search-panel::backdrop { background:rgba(0,0,0,.45); }
#header-search-panel .header-search-content { width:100%; max-width:760px; }
#header-search-panel h2 { margin:0 0 24px; font-family:var(--font-heading); font-size:clamp(24px,4vw,36px); text-align:center; }
#header-search-panel form { display:flex; gap:12px; width:100%; }
#header-search-panel input { width:100%; min-width:0; font-size:18px; padding:18px; }
#header-search-panel button[type="submit"] { flex:none; padding:14px 28px; font:inherit; font-weight:700; background:#0574ba; color:#fff; border:0; }
#header-search-panel .header-search-close { position:absolute; top:24px; inset-inline-end:24px; display:flex; align-items:center; justify-content:center; width:48px; height:48px; padding:0; border:1px solid var(--border-color,#ddd); border-radius:50%; background:transparent; color:inherit; font:36px/1 sans-serif; }
#header-search-panel button:focus-visible, #header-search-panel input:focus-visible { outline:3px solid #0574ba; outline-offset:3px; }
@media(max-width:540px) { #header-search-panel { padding:24px 16px; } #header-search-panel form { gap:8px; } #header-search-panel input { font-size:16px; padding:14px 12px; } #header-search-panel button[type="submit"] { padding:12px 18px; } }

.home-category-columns { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; margin-block:12px 40px; }
.home-category-column { min-width:0; }
.home-column-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:18px; }
.home-column-heading h2 { margin:0; font-family:var(--font-heading); font-size:21px; font-weight:700; }
.home-column-more { font-size:28px; line-height:1; color:var(--text-muted); }
.home-column-lead { position:relative; overflow:hidden; border-radius:var(--radius-md,12px); background:#181d28; }
.home-column-lead > a { display:block; aspect-ratio:1.6; position:relative; }
.home-column-lead img { width:100%; height:100%; object-fit:cover; display:block; }
.home-column-lead > a::after { content:""; position:absolute; inset:25% 0 0; background:linear-gradient(transparent,rgba(0,0,0,.85)); }
.home-column-lead h3 { position:absolute; z-index:1; inset-inline:16px; bottom:14px; margin:0; color:#fff; font-family:var(--font-heading); font-size:18px; line-height:1.65; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.home-column-stories { display:grid; gap:16px; margin-top:18px; }
.home-column-story { display:flex; align-items:center; gap:12px; overflow:hidden; border-radius:var(--radius-md,12px); background:var(--card-bg,#fff); min-width:0; }
.home-column-image { flex:0 0 36%; align-self:stretch; min-height:96px; }
.home-column-image img { display:block; width:100%; height:100%; object-fit:cover; aspect-ratio:4/3; }
.home-column-story h3 { min-width:0; padding:10px 0; padding-inline-end:12px; margin:0; font-family:var(--font-heading); font-size:14px; line-height:1.8; }
.home-column-story h3 a { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.home-category-column a:hover { color:#ee853b; }
@media(max-width:1100px) { .home-category-columns { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 24px; } }
@media(max-width:540px) { .home-category-columns { grid-template-columns:1fr; gap:32px; } .home-column-story { flex-direction:row-reverse; } .home-column-story h3 { padding-inline:12px 0; font-size:15px; flex:1; } .home-column-image { flex-basis:112px; } }

.main-footer .footer-copyright-row { grid-column:1 / -1; margin:0; text-align:center; font-size:12px; line-height:1.8; color:#cbd5e1; }

.reports-most-read-feature { margin:16px 0 4px; }
.reports-most-read-feature > a { display:block; position:relative; overflow:hidden; border-radius:8px; background:#181d28; aspect-ratio:4/3; }
.reports-most-read-feature img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; }
.reports-most-read-feature > a::after { content:""; position:absolute; inset:20% 0 0; z-index:1; background:linear-gradient(transparent,rgba(0,0,0,.95)); }
.reports-with-sidebar .reports-most-read .reports-most-read-feature h3 { position:absolute; z-index:2; inset-inline:12px; bottom:12px; margin:0; padding:0; color:#fff; font-family:var(--font-heading); font-size:14px; line-height:1.7; font-weight:700; text-shadow:0 1px 3px rgba(0,0,0,.6); display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; }
.reports-most-read ol.reports-most-read-rest { counter-reset:reports-popular 1; }

.china-news-band { position:relative; isolation:isolate; background:#bd1720; padding:32px 0; margin:12px 0 40px; overflow:hidden; }
.china-news-band .news-card-section { position:relative; z-index:1; margin-block:0; }
.china-news-band .reports-files-heading-wrap { border-color:rgba(255,222,0,.4); }
.china-news-band .reports-files-heading-wrap h2, .china-news-band .reports-files-heading-wrap h2 a { color:#fff; }
.china-news-band .reports-files-heading-wrap h2::before { background:#ffde00; }
.china-news-band .compact-news-card { background:#fff; color:#191b1d; }
.china-news-band .compact-news-body .compact-news-title a { color:#191b1d; }
.china-news-band .compact-news-category { color:#a71921; }
.china-news-band .compact-news-body .compact-news-title a:hover { color:#a71921; }
.china-news-stars { position:absolute; top:8px; left:24px; width:150px; height:100px; color:#ffde00; pointer-events:none; opacity:.8; }
.china-news-stars span { position:absolute; font:22px/1 sans-serif; }
.china-news-stars span:first-child { top:24px; left:0; font-size:62px; }
.china-news-stars span:nth-child(2) { top:0; left:74px; transform:rotate(-20deg); }
.china-news-stars span:nth-child(3) { top:22px; left:104px; transform:rotate(10deg); }
.china-news-stars span:nth-child(4) { top:53px; left:104px; transform:rotate(-10deg); }
.china-news-stars span:nth-child(5) { top:78px; left:74px; transform:rotate(20deg); }
@media(max-width:640px) { .china-news-band { padding-block:24px; } .china-news-stars { transform:scale(.65); transform-origin:top left; left:12px; opacity:.5; } }

.reports-with-sidebar .reports-most-read { background:#181d28; border-color:#363636; color:#f5f5f5; }
.reports-with-sidebar .reports-most-read > h2 { display:flex; align-items:center; gap:10px; color:#fff; border-bottom:1px solid #363636; padding-bottom:16px; font-size:23px; line-height:1.4; }
.reports-with-sidebar .reports-most-read > h2::before { content:""; display:block; width:4px; height:21px; flex:0 0 4px; border-radius:2px; background:#ee853b; }
.reports-with-sidebar .reports-most-read li { border-bottom-color:#363636; }
.reports-with-sidebar .reports-most-read li::before { color:#ee853b; }
.reports-with-sidebar .reports-most-read li a { color:#f5f5f5; }
.reports-with-sidebar .reports-most-read li a:hover { color:#ffb27c; }
.reports-with-sidebar .reports-most-read a:focus-visible { outline:2px solid #ee853b; outline-offset:4px; border-radius:3px; }

.article-sidebar-stories .article-sidebar-story-list { list-style:none; margin:0; padding:0; }
.article-sidebar-stories .article-sidebar-story-list li { display:block; padding:14px 0; }
.article-sidebar-stories .article-sidebar-story-list li::before { display:none; }
.article-sidebar-stories .article-sidebar-story-list li:last-child { padding-bottom:0; }
.article-sidebar-stories .article-sidebar-story-link { display:flex; align-items:center; gap:12px; width:100%; }
.article-sidebar-stories .article-sidebar-story-link img { display:block; flex:0 0 88px; width:88px; height:70px; object-fit:cover; border-radius:6px; }
.article-sidebar-stories .article-sidebar-story-link span { min-width:0; font-family:var(--font-heading); font-size:14px; font-weight:700; line-height:1.75; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }

.lead-slider-dots { gap:2px; }
.lead-slider-controls .lead-slider-dot { position:relative; width:28px; height:28px; min-width:28px; border-radius:0; background:transparent !important; }
.lead-slider-controls .lead-slider-dot::before { content:""; position:absolute; width:8px; height:8px; top:10px; left:10px; border-radius:50%; background:#ee853b; opacity:.55; }
.lead-slider-controls .lead-slider-dot[aria-pressed="true"]::before { width:20px; left:4px; border-radius:6px; opacity:1; }
.mid-article-card .meta-row time, .trending-box time, .trending-box span[style*="text-muted"], .economy-story time { color:#586574; }
[data-theme="dark"] .mid-article-card .meta-row time, [data-theme="dark"] .trending-box time, [data-theme="dark"] .trending-box span[style*="text-muted"], [data-theme="dark"] .economy-story time { color:#b6c2d0; }
.sports-matches .match-card small { color:#586574; }
[data-theme="dark"] .sports-matches .match-card small { color:#b6c2d0; }
.brand-logo .site-logo-image, .drawer-logo img { aspect-ratio:300/89; height:auto; }
.footer-developer img { aspect-ratio:166/28; object-fit:contain; }
@media(prefers-reduced-motion:reduce) { .market-quotes-track { animation:none !important; } }

.trending-box span[style*="text-muted"] { color:#586574 !important; }
[data-theme="dark"] .trending-box span[style*="text-muted"] { color:#b6c2d0 !important; }

.reports-with-sidebar .economy-story time { color:#586574; }
[data-theme="dark"] .reports-with-sidebar .economy-story time { color:#b6c2d0; }
.main-header .masthead-person span { min-height:20px; }
.main-header .masthead-person strong { min-height:27px; }
@media(max-width:1024px) {
    .main-header .header-grid { min-height:42px; }
    .main-header .mobile-masthead-team .masthead-person span { height:16px; min-height:16px; line-height:16px; }
    .main-header .mobile-masthead-team .masthead-person strong { height:20px; min-height:20px; line-height:20px; }
}

.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; clip-path:inset(50%) !important; white-space:nowrap !important; border:0 !important; }

@media(max-width:640px) {
    .section-page .section-featured-side, .section-page .section-news-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
    .section-page .section-news-card { display:grid; grid-template-columns:112px minmax(0,1fr); align-items:stretch; gap:12px; padding:10px; direction:ltr; }
    .section-page .section-news-card[hidden] { display:none; }
    .section-page .section-news-card .section-card-image { width:112px; height:90px; aspect-ratio:auto; align-self:center; border-radius:4px; }
    .section-page .section-news-card .section-card-image img { width:100%; height:100%; object-fit:cover; }
    .section-page .section-news-card .section-card-body { display:flex; flex-direction:column; justify-content:center; min-width:0; min-height:90px; padding:0; direction:rtl; text-align:right; }
    .section-page .section-news-card .section-card-category { display:none; }
    .section-page .section-news-card .section-card-body h3 { margin:0 0 8px; font-size:15px; line-height:1.7; font-weight:700; }
    .section-page .section-news-card .section-card-body time { display:block; margin-top:auto; font-size:11px; line-height:1.5; color:#586574; }
    .article-related .compact-news-body { display:flex; flex-direction:column; min-height:90px; justify-content:center; direction:rtl; text-align:right; }
    .article-related .compact-news-body time { display:block; margin-top:auto; padding-top:8px; font-size:11px; line-height:1.5; color:#586574; }
    .article-sidebar-stories .article-sidebar-story-link { direction:ltr; }
    .article-sidebar-stories .article-sidebar-story-link span { direction:rtl; text-align:right; }
    [data-theme="dark"] .section-page .section-news-card .section-card-body time,
    [data-theme="dark"] .article-related .compact-news-body time { color:#b6c2d0; }
}

.news-date { color:#475569 !important; direction:rtl; unicode-bidi:isolate; }
[data-theme="dark"] .news-date { color:#cbd5e1 !important; }
.lead-card-cover .news-date, .section-featured .news-date, .economy-lead .news-date, .economy-top-stories .news-date { color:#fff !important; background:rgba(0,0,0,.65); padding:2px 5px; border-radius:3px;  width:fit-content; }

.hero-col-left .trending-box{background:#181d28;border-color:#363636;color:#f5f5f5}.hero-col-left .trending-box .trending-header{color:#ee853b}.hero-col-left .trending-box h3 a{color:#f5f5f5}.hero-col-left .trending-box h3 a:hover{color:#ffb27c}.hero-col-left .trending-box p,.hero-col-left .trending-box .news-date{color:#cbd5e1!important}@media(max-width:767px){.egx-market-widget .egx-tab-group{display:none!important}}

.compact-news-body>.news-date,.section-card-body>.news-date,.economy-story>.news-date{display:block;margin:0 0 7px!important;padding:0!important;font-size:11px;line-height:1.6}.home-column-story-body{min-width:0;flex:1;padding:10px 0;padding-inline-end:12px}.home-column-story-body .news-date{display:block;font-size:11px;margin-bottom:6px}.home-column-story .home-column-story-body h3{padding:0}.hero-section .news-date{margin-bottom:6px}

.economy-story>.news-date{margin:10px 0 4px!important;padding:0!important;color:#ad4b08!important;font-size:12px;font-weight:600;opacity:1}
.economy-story>.news-date+h3{margin-top:0!important}
.reports-with-sidebar .economy-story>.news-date{margin:10px 14px 4px!important}
.reports-with-sidebar .economy-story>.news-date+h3{margin:0 14px 8px!important}
.compact-news-body>.news-date,.section-card-body>.news-date,.home-column-story-body>.news-date{color:#ad4b08!important;font-weight:600;opacity:1;margin-bottom:4px!important}
.editors-picks-slide{grid-template-columns:repeat(4,minmax(0,1fr))}
.editors-picks-story-body{min-width:0;flex:1;direction:rtl;text-align:right}
.editors-picks-story-body>.news-date,.opinion-text>.news-date{display:block;color:#ee853b!important;opacity:1;font-size:12px;font-weight:600;margin:0 0 5px!important;padding:0!important}
.editors-picks-story-body>h3{margin:0!important}
.video-card-info>.news-date{display:block;color:#fff!important;opacity:1;font-size:12px;font-weight:600;margin:0 0 5px!important}
.video-card-info>.news-date+h3{margin-top:0!important}
[data-theme="dark"] .economy-story>.news-date,[data-theme="dark"] .compact-news-body>.news-date,[data-theme="dark"] .section-card-body>.news-date,[data-theme="dark"] .home-column-story-body>.news-date{color:#ee853b!important}
@media(max-width:1100px){.editors-picks-slide{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.editors-picks-slide{grid-template-columns:1fr}}
@media(max-width:768px){.reports-with-sidebar .news-card-row .economy-story{grid-template-rows:auto 1fr;row-gap:4px}.reports-with-sidebar .news-card-row .economy-story>.news-date{grid-column:2;grid-row:1;margin:0!important}.reports-with-sidebar .news-card-row .economy-story>.news-date+h3{grid-column:2;grid-row:2;margin:0!important}.reports-with-sidebar .news-card-row .economy-story .economy-image{grid-row:1 / 3}}

.economy-section .economy-bottom-stories .economy-story > .news-date,
.reports-with-sidebar .reports-content-layout .economy-story > .news-date {
    display:block;
    margin:12px 14px 6px!important;
    padding:0!important;
    line-height:1.7;
}
.economy-section .economy-bottom-stories .economy-story > .news-date + h3,
.reports-with-sidebar .reports-content-layout .economy-story > .news-date + h3 {
    margin:0 14px 10px!important;
}
.video-showcase .video-card .video-card-info > .news-date,
[data-theme="dark"] .video-showcase .video-card .video-card-info > .news-date {
    color:#fff!important;
    opacity:1;
}
@media(max-width:768px){
    .economy-section .economy-bottom-stories .economy-story,
    .reports-with-sidebar .reports-content-layout .news-card-row .economy-story {
        padding:12px;
        grid-template-rows:auto 1fr;
        row-gap:6px;
        column-gap:14px;
    }
    .economy-section .economy-bottom-stories .economy-story > .news-date,
    .reports-with-sidebar .reports-content-layout .news-card-row .economy-story > .news-date {
        grid-column:2;
        grid-row:1;
        direction:rtl;
        text-align:right;
        margin:0!important;
    }
    .economy-section .economy-bottom-stories .economy-story > .news-date + h3,
    .reports-with-sidebar .reports-content-layout .news-card-row .economy-story > .news-date + h3 {
        grid-column:2;
        grid-row:2;
        margin:0!important;
    }
}

/* Trending category is a heading; keep its established visual spacing. */
.trending-box .trending-header{margin-top:0;line-height:1.5}
