@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@400..800&family=Noto+Sans+Arabic:wght@100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Vazirmatn:wght@100..900&display=swap');


:root {
  --bg: #f7f4f5;
  --surface: #ffffff;
  --surface-2: #fbf8f9;
  --brand: #6d0d29;
  --brand-2: #8f183a;
  --brand-3: #4a091b;
  --gold: #d2a24c;
  --text: #221a1c;
  --muted: #706268;
  --line: #eadfe2;
  --shadow: 0 18px 40px rgba(84, 10, 31, 0.10);
  --radius: 24px;
  --container: 1320px;
  --header-height: 94px;
  --ticker-speed: 36s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(210,162,76,.10), transparent 18%),
    linear-gradient(180deg, #fbf8f9 0%, #f5f0f1 100%);
  min-height: 100vh;
}

body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 24px));
  margin-inline: auto;
}

.topbar {
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.verse {
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  color: #fff;
}

strong#liveDate {
    font-weight: 500;
}

strong#liveTime {
    font-weight: 500;
}

 

.time-meta {
  display: flex;
  align-items: center;
  gap: 0px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.92);
}

.time-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px;
  font-size: 11px;
  color: #ababab;
}

strong#liveDate, strong#liveTime {
  color: #fff;
}

.main-header {
  position: relative;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0px;
  padding: 0;
}

.drawer-btn,
.icon-btn,
.ghost-btn,
.solid-btn,
.lang-btn,
.search-btn {
  border: 0;
  cursor: pointer;
  transition: .22s ease;
  font: inherit;
}

.drawer-btn,
.icon-btn,
.search-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(84,10,31,.08);
}

.drawer-btn:hover,
.icon-btn:hover,
.search-btn:hover,
.ghost-btn:hover,
.solid-btn:hover,
.lang-btn:hover {
  transform: translateY(-1px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy { min-width: 0; }
.brand-title {
  margin: 0 0 5px;
  font-size: 28px;
  line-height: 1.12;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ghost-btn,
.solid-btn,
.lang-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
}

.ghost-btn,
.lang-btn {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
}

.solid-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 26px rgba(109,13,41,.18);
}

.nav-shell {
  border-top: 1px solid rgba(109,13,41,.09);
  border-bottom: 1px solid rgba(109,13,41,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.90));
}

.nav-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.search-wrap {
  width: 24vw !important;
  position: relative;
}

.nav-link {
  display: flex;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  padding: 0px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  transition: .22s ease;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

.search-input {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  padding: 0 14px 0 46px;
  color: var(--text);
  outline: none;
  box-shadow: none;
  padding-right: 0;
}

.search-wrap svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  max-height: 360px;
  overflow: auto;
  z-index: 25;
}

.search-results.open { display: block; }

.search-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: .18s ease;
}

.drawer-btn, .icon-btn, .ghost-btn, .solid-btn, .lang-btn, .search-btn {
  border: 0;
  box-shadow: none;
}

.search-item:hover { background: rgba(109,13,41,.05); }

.thumb-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
}

a.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.langbtntxt { display: flex; }

a.solid-btn {
  border-radius: 400px;
  padding: 10px 25px;
  min-height: 0;
  font-size: 14px;
}

.thumb-badge img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  opacity: .92;
}

.ticker {
    margin-top: 18px;
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    color: #fff;
    /* box-shadow: var(--shadow); */
}

.ticker-label {
    min-height: 27px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    background: #701429;
    text-transform: uppercase;
    font-size: 14px;
    border: 1px solid rgb(0 0 0 / 12%);
    white-space: nowrap;
    color: #ffffff;
    border-radius: 414px;
    margin: 8px;
    margin-right: 0;
}

.article-card-vertical .thumb {
    background-color: #701429;
    background-size: cover;
    max-height: 145px;
        border-radius: 20px;
}

section.ticker { border-radius: 400px; border: 1px solid rgba(109,13,41,.08); }

.ticker-track {
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 58px;
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  gap: 34px;
  animation: tickerMove var(--ticker-speed) linear infinite;
  padding-inline: 20px;
  will-change: transform;
}

.ticker-content a {
    color: #0d0d0d;
    font-weight: 700;
    font-size: 14px;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.8fr .85fr;
  gap: 22px;
  align-items: start;
}

.card,
.hero-card,
.mini-card,
.post-card,
.feature-card,
.widget,
.newsletter,
.quote-card {
  background: var(--surface);
  border: 1px solid rgba(109,13,41,.08);
  border-radius: var(--radius);
  /* box-shadow: var(--shadow); */
}

.hero-card {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at right top, rgba(255,255,255,.10), transparent 22%),
    radial-gradient(circle at left bottom, rgba(210,162,76,.20), transparent 18%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 520px;
  padding: 26px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.035em;
  max-width: 850px;
}

.hero-excerpt {
  margin: 0;
  color: rgba(255,255,255,.88);
  line-height: 1.9;
  font-size: 16px;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: absolute;
  right: 0px;
  bottom: 0px;
}

a#newsHeroLink {
  width: max-content;
  border-radius: 400px;
  padding: 10px 25px;
  min-height: max-content;
}

.hero-primary,
.hero-secondary {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.hero-primary {
  background: var(--gold);
  color: #402700;
}

.hero-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  min-height: 100%;
}

.hero-logo-panel,
.hero-clock-panel {
  border-radius: 22px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}

.hero-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.hero-logo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.hero-logo-panel img {
  width: min(92%, 330px);
  height: auto;
  object-fit: contain;
  opacity: .95;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.16));
  position: relative;
  z-index: 1;
}

.hero-clock-panel { padding: 18px; }

.clock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.clock-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31,122,77,.18);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.status-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #59ff8d;
  box-shadow: 0 0 0 6px rgba(89,255,141,.12);
}

.clock-value {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  font-weight: 800;
  color: #fff;
}

.clock-sub {
  margin: 8px 0 0;
  color: rgba(255,255,255,.84);
  line-height: 1.7;
  font-size: 14px;
}

.section-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1.8fr .85fr;
  gap: 60px;
  align-items: start;
}


.whetherbxapp{
margin-top: 25px;
}

.stack { display: grid; gap: 10px; }
.card { padding: 18px; }

.card-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title,
.card-title {
  margin: 0;
  color: var(--brand);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.section-subtitle {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.view-all { color: var(--brand); font-weight: 800; }

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}

.feature-card {
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fcf8f9);
  display: grid;
  grid-template-columns: 1fr;
}

.feature-banner {
  min-height: 260px;
  background: linear-gradient(135deg, rgba(109,13,41,.98), rgba(143,24,58,.96));
  position: relative;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.feature-banner::before {
  content: "";
  position: absolute;
  right: -24px;
  top: -12px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(210,162,76,.22), transparent 65%);
}

.feature-banner .watermark {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 140px;
  opacity: .14;
  filter: grayscale(1) contrast(1.1);
}

.feature-meta,
.post-meta,
.mini-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(109,13,41,.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.feature-title {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.18;
  font-weight: 800;
  max-width: 750px;
  position: relative;
  z-index: 1;
}

.feature-body,
.post-body,
.mini-body,
.quote-body { padding: 18px; }

.feature-excerpt,
.post-excerpt,
.mini-excerpt,
.quote-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
}

.mini-stack { display: grid; gap: 12px; }

.mini-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: .2s ease;
}

.mini-card:hover,
.post-card:hover,
.feature-card:hover { transform: translateY(-2px); }

.mini-thumb {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mini-thumb img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  opacity: .92;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fdf9fa);
  transition: .22s ease;
}

.post-top {
  padding: 16px;
  min-height: 150px;
  background: linear-gradient(135deg, rgba(109,13,41,.96), rgba(143,24,58,.95));
  position: relative;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.post-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at right top, rgba(255,255,255,.10), transparent 30%);
  pointer-events: none;
}

.post-logo {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 68px;
  opacity: .14;
}

.post-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.compact-list {
    display: grid;
    gap: 5px;
    align-content: start;
}

.section-head {
    border-bottom: solid 0px #0000001a !important;
}


span.news-mini-source {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}




.compact-link,
.section-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: .18s ease;
}

.compact-link:hover,
.section-link-card:hover {
  background: rgba(109,13,41,.05);
  border-color: rgba(109,13,41,.18);
}

.arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(109,13,41,.08);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-weight: 800;
}

.widget { padding: 18px; }

.section-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.section-link-card { font-weight: 700; font-size: 14px; }

.quote-card {
  overflow: hidden;
 }

.quote-body { padding: 22px; }

.quote-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0px;
    border-radius: 0;
    background: rgba(255, 255, 255, .10);
    border: 0px solid rgba(255, 255, 255, .14);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #6f6f6f;
}

section#quoteCard {
    border: 1px solid rgb(0 0 0 / 11%);
    padding: 1px 10px;
}

.quote-text {
    color: rgb(0 0 0 / 90%);
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.95;
    font-family: "Rubik", sans-serif;
}

h2#newsHeroTitle { text-transform:capitalize; }

.quote-source {
  margin-top: 14px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 700;
}

.newsletter {
  padding: 22px;
  background: linear-gradient(135deg, #5b0c23, #8f183a);
  color: #fff;
  overflow: hidden;
}

.newsletter p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.84);
  line-height: 1.85;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter-form input {
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,.72); }

.newsletter-form button {
  min-width: 132px;
  border-radius: 14px;
  border: 0;
  background: var(--gold);
  color: #412700;
  font-weight: 800;
  cursor: pointer;
  padding: 0 18px;
}

.newsletter-msg {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.86);
}

.footer {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand));
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
    padding: 28px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.footer p,
.footer li,
.footer a {
  margin: 0;
  color: rgba(255,255,255,.84);
  line-height: 1.85;
  font-size: 14px;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.drawer.open { display: block; }

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19,10,12,.48);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: min(390px, 92vw);
  background: #fff;
  padding: 18px;
  overflow: auto;
  box-shadow: 16px 0 42px rgba(0,0,0,.14);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.drawer-nav {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.drawer-nav a {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 700;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
}

.search-modal.open { display: block; }

.search-modal-card {
  position: absolute;
  top: 8vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.search-big { position: relative; }

.search-big input {
  width: 100%;
  height: 58px;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 0 18px 0 52px;
  font-size: 16px;
  outline: none;
}

.search-big svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.ghost-btn, .solid-btn, .lang-btn {
  display: flex;
  align-items: center;
}

@media (max-width: 1180px) {
  .hero-grid,
  .section-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-menu,
  .search-wrap { display: none; }
  .section-links { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .brand-subtitle { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .ticker { grid-template-columns: 1fr; }
  .ticker-label { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); }
  .mini-card { grid-template-columns: 72px 1fr; }
  .mini-thumb { width: 72px; height: 72px; }
  .newsletter-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  
  .brand-logo-wrap {
        width: 253px;
        height: 80px;
        /* margin-left: -39px; */
        border-radius: 18px;
    }
  
  .brand-title { font-size: 20px; }
  .header-actions { display: none; }
  .hero-card, .hero-inner { min-height: auto; }
  .hero-title { font-size: 28px; }
}

/* Slider Controls */
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.slider-controls {
  display: flex;
  gap: 4px;
  padding: 0px;
  padding-right: 17px;
  border-radius: 99px;
  border: 0px solid rgb(255 255 255 / 7%);
  backdrop-filter: blur(8px);
}

span#newsBadge { padding: 2px 15px; text-transform: uppercase; font-size: 11px; background: #0000; }
p#newsHeroExcerpt { line-height: 1.4; color: #c1c1c1; max-width: 80%; }
span#newsHeroDate { font-size: 11px; background: #0000; border: 0; backdrop-filter: none; padding: 0; }
span#newsHeroSource { font-size: 11px; background: #0000; border: 0; backdrop-filter: none; padding: 0; }

.flxx { display: flex; align-items: center; gap: 5px; }

.icon-btn-slider {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s, transform 0.1s;
}
.icon-btn-slider:hover { background: rgba(255,255,255,0.15); }
.icon-btn-slider:active { transform: scale(0.95); }

img#brandLogo {
    filter: none;
    max-height: 85px;
    position: relative;
}

a#navScrolledLogo > img { height: 70px; padding-top: 0px; }

/* Hero Slider Dots */
.hero-dots { display: flex; gap: 8px; align-items: center; margin-left: 10px; }
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 11%);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.active { background: #fff; transform: scale(1.2); }

/* Mini Headlines Navigation */
.mini-nav-btns { display: flex; gap: 4px; }
.mini-nav-btns .icon-btn {
  width: 28px; height: 28px; padding: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: rgba(112, 20, 41, 0.08); color: var(--brand, #701429);
}
.mini-nav-btns .icon-btn:hover:not(:disabled) { background: rgba(112, 20, 41, 0.15); }
.mini-nav-btns .icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Directional Slide Animations */
.slide-in-right { animation: slideInR 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.slide-in-left { animation: slideInL 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

@keyframes slideInR { 0% { opacity: 0; transform: translateX(30px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes slideInL { 0% { opacity: 0; transform: translateX(-30px); } 100% { opacity: 1; transform: translateX(0); } }

.hero-copy.news-hero-copy.slide-in-right { height: 100%; padding: 30px; }
.hero-copy.news-hero-copy.slide-in-left { height: 100%; padding: 30px; }

@media (min-width: 992px) { #openDrawerBtn { display: none !important; } }

/* Sticky Nav Styles */
.nav-shell { transition: background-color 0.2s ease; z-index: 1000; }
.nav-shell.scrolled {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); animation: navSlideDown 0.3s ease;
  border-top: none; padding: 5px 5px; padding-top: 0;
}
@keyframes navSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

#navScrolledLogo { display: none; align-items: center; margin-right: 12px; flex-shrink: 0; }
.nav-shell.scrolled #navScrolledLogo { display: flex; }
.nobgcrds {
    background: #0000;
    border: 0;
    box-shadow: none;
    max-width: 80vw;
    overflow: hidden;
}
.hero-inner.news-hero-inner { display: flex; align-items: center; }
.hero-copy.news-hero-copy.slide-in-right { width: 100%; height: 100%; }

/* ==========================================================================
   V2: PROFESSIONAL MAGAZINE LAYOUTS (DRAGGABLE SLIDERS & WIDE CARDS)
   ========================================================================== */

.layout-standard-list { display: flex; flex-direction: column; gap: 10px; }

/* 1. Wide Flex Card (Standard) */
.article-card-standard {
  display: flex; flex-direction: row; align-items: stretch;
  background: #ffffff00;
    border: 1px solid #eadfe200; border-radius: 12px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card-standard .thumb {
    width: 300px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--line);
    border-right: 1px solid var(--line);
    border-radius: 20px;
    background-color: #701429;
    background-size: cover;
    max-height: 140px;
}
.article-card-standard .content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.article-card-standard .meta { font-size: 0.78rem; color: var(--brand); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.article-card-standard .title { font-size: 1.25rem; margin: 0 0 10px 0; font-weight: 700; line-height: 1.4; color: var(--text); }
.article-card-standard .excerpt { font-size: 0.95rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* RTL fixes for Wide Flex Card */
html[lang^="ar"] .article-card-standard .thumb { border-right: none; border-left: 1px solid var(--line); }

@media (max-width: 768px) {
  .article-card-standard { flex-direction: column; }
  .article-card-standard .thumb { width: 100%; height: 220px; border-right: none; border-left: none; border-bottom: 1px solid var(--line); }
}

/* 2. Horizontal Mini Card (Side lists) */
.article-card-horizontal {
  display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; text-decoration: none; color: inherit;
  transition: background 0.2s, box-shadow 0.2s; align-items: center; flex-grow: 1;
}
.article-card-horizontal:hover { background: var(--surface-2); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.article-card-horizontal .thumb { width: 110px; height: 110px; border-radius: 8px; flex-shrink: 0; background-size: cover; background-position: center; }
.article-card-horizontal .content { display: flex; flex-direction: column; }
.article-card-horizontal .title { font-size: 1rem; margin: 0; font-weight: 700; line-height: 1.35; color: var(--text); }
.article-card-horizontal .meta { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* 3. Hero Overlay Card */
.article-card-overlay {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; border-radius: 16px; padding: 32px; text-decoration: none; color: white;
  background-size: cover; background-position: center; overflow: hidden;
  transition: transform 0.2s; border: 1px solid var(--line);
}
.article-card-overlay:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.15); }
.article-card-overlay .content { position: relative; z-index: 2; max-width: 800px; }
.article-card-overlay .badge { display: inline-block; background: var(--brand); color: white; padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; letter-spacing: 0.05em; }
.article-card-overlay .title { font-size: 2rem; margin: 0 0 10px 0; font-weight: 800; line-height: 1.3; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.article-card-overlay .excerpt { font-size: 1.05rem; color: rgba(255,255,255,0.9); margin: 0 0 16px 0; line-height: 1.6; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.article-card-overlay .meta { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }

/* 4. Vertical Card (For Sliders) */
a.article-card-vertical {
    background: #0000;
    border: 0;
}
.article-card-vertical {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
 .article-card-vertical .thumb { height: 200px; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.article-card-vertical .content { padding: 18px; display: flex; flex-direction: column; flex-grow: 1; }
.article-card-vertical .meta { font-size: 0.78rem; color: var(--brand); margin-bottom: 8px; font-weight: 700; }
.article-card-vertical .title { font-size: 1.15rem; margin: 0 0 10px 0; font-weight: 700; line-height: 1.4; color: var(--text); }
.article-card-vertical .excerpt { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.6; flex-grow: 1; }


.side-featured {
    margin-bottom: 30px;
}

/* DRAGGABLE SLIDER LOGIC */
.modern-slider-container { 
  width: 100%; 
  position: relative; 
  /* Removed 'max-width: 40vw' and 'overflow: hidden' to allow buttons to show correctly across the full width */
  margin: 0; 
  padding: 0; 
}

.modern-slider-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab; padding-bottom: 20px; 
}
.modern-slider-track::-webkit-scrollbar { display: none; }
.modern-slider-track.active { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }

/* The magic trick: disables text highlighting and child pointer events while dragging */
.modern-slider-track.active * {
     user-select: none;
}

.slider-item { flex: 0 0 320px; scroll-snap-align: start; }
@media (max-width: 600px) { .slider-item { flex: 0 0 280px; } }

/* Navigation Buttons Styles */
.slider-nav-btn {
  position: absolute;
  top: calc(50% - 10px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(109,13,41,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--brand);
  transition: all 0.2s ease;
  opacity: 0.95;
}

.slider-nav-btn:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-50%) scale(1.05);
}

.slider-prev { left: -12px; }
.slider-next { right: -12px; }

/* Hide arrows on smaller mobile devices where swiping is natural */
@media (max-width: 768px) {
  .slider-nav-btn { display: none; }
}


/* =========================================
   Professional Shimmer (Skeleton) UI
   ========================================= */

.skeleton {
  background: linear-gradient(100deg, var(--surface-2) 40%, #f0ebec 50%, var(--surface-2) 60%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-dark {
  background: linear-gradient(100deg, rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.08) 60%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.skel-line { height: 12px; border-radius: 6px; margin-bottom: 8px; }
.skel-line.title { height: 16px; width: 85%; }
.skel-line.long { width: 90%; }
.skel-line.med { width: 65%; }
.skel-line.short { width: 40%; }
.skel-lines { display: flex; flex-direction: column; justify-content: center; width: 100%; }

.nav-skeleton { display: flex; gap: 24px; align-items: center; width: 100%; padding-left: 10px; }
.ticker-skeleton { display: flex; gap: 34px; align-items: center; padding-left: 20px; width: 100%; }

.skeleton-mini {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 10px;
  align-items: center;
}
.skeleton-mini .skel-thumb { width: 88px; height: 72px; border-radius: 14px; flex-shrink: 0; }




h2#newsHeroTitle {
    font-size: 33px;
    line-height: 1.3;
}
h4.news-mini-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-hero-overlay {
    opacity: 0;
}

.rv {
    background: linear-gradient(135deg, var(--surface), var(--surface-2)) !important;
    border-radius: 18px;
    border: 1px solid var(--line) !important;
}

a.article-card-horizontal {
    background: #0000;
    margin-bottom: 11px;
}
a.article-card-horizontal {
    border: 0;
    padding: 0;
}


.nav-shell {
    display: none;
}
.nav-shell.scrolled {
    display: flex;
}

nav#fxmainNav {
    width: max-content;
    display: flex;
    gap: 20px;
}

input#searchInput {
    border: solid 1px #3333331f;
}


a.article-card-overlay {
    background-color: #701429;
}


.article-card-horizontal .content {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.progpost {
    margin-top: 15px;
}

.layout-side-list {
    margin-bottom: 50px;
}



.rrsecc {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 104px;
}


.vspace50 {
  height: 50px;
}


section#sections {
    padding: 0;
}

.bgone {
    position: fixed;
    height: 100vh;
    z-index: -2;
}

img.bgimgmain {
    margin-top: 8vh;
    opacity: 0.35;
}

.langbtntxt {
    font-family: "Rubik", sans-serif;
    letter-spacing: -1px;
        font-size: 14px;
}


h4.title.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.nav-shell.scrolled {
    padding-bottom: 0;
}








/* Fixed Social Sidebar */
.social-sidebar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-left: none;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
   font-family: 'Cairo', sans-serif;
   border-top-right-radius: 10px;
   border-bottom-right-radius: 10px;
}

.social-sidebar-title {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding: 12px 8px;
  border-bottom: 1px solid #e5e5e5;
  line-height: 1.4;
  font-weight: 600;
}

.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #171717;
  border-bottom: 1px solid #e5e5e5;
  transition: all 0.2s ease;
}

.social-sidebar a:last-child {
  border-bottom: none;
}

.social-sidebar a:hover {
  background-color: #f9fafb;
  color: #701429; /* Brand maroon color */
}

.social-sidebar svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hide on smaller screens to prevent overlapping content */
@media (max-width: 1100px) {
  .social-sidebar {
    display: none;
  }
}

/* Custom Red Sign Up Button */
.signup-btn {
  background: #e62020 !important; /* Flipboard Red */
  box-shadow: 0 14px 26px rgba(230, 32, 32, 0.2) !important;
}
.signup-btn:hover {
  background: #c81919 !important;
}

/* Signup Modal Base */
.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.signup-modal.open { display: flex; }

/* Modal Card */
.signup-modal-card {
  position: relative;
  z-index: 10000;
  background: #151515; /* Dark background like Flipboard */
  color: #ffffff;
  border-radius: 6px;
  padding: 40px;
  width: min(740px, calc(100% - 32px));
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  font-family: 'Inter', sans-serif;
}

/* Close Button */
.signup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}
.signup-close:hover { color: #fff; }

/* Grid Layout */
.signup-grid {
  display: flex;
  gap: 32px;
}

/* Left Side Typography */
.signup-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.signup-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.signup-desc {
  color: #999;
  font-size: 15px;
  margin: 0 0 24px;
  line-height: 1.5;
}
.signup-action-btn {
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 26px rgba(109, 13, 41, .18);
    border-radius: 400px;
}
.signup-action-btn:hover { background: #d31e1e; }

/* Vertical Divider */
.signup-divider {
  width: 1px;
  background: #333;
}

/* Right Side Elements */
.signup-right {
  flex: 1.3;
  display: flex;
  gap: 20px;
  align-items: center;
}
.signup-apps { flex: 1; }
.signup-app-text {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.4;
}
.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.store-badge {
  height: 40px;
  width: auto;
  cursor: pointer;
}
.signup-qr {
  flex-shrink: 0;
  background: #fff;
  padding: 6px;
  border-radius: 4px;
}
.signup-qr img {
  width: 110px;
  height: 110px;
  display: block;
}

/* 1. The Pointer Arrow (Only shows in floating mode) */
.signup-modal.is-floating .signup-modal-card::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 42px; /* Adjust this value if you need to slide the arrow left/right to perfectly align with your header button */
  width: 14px;
  height: 14px;
  background: #151515; /* Matches the card background */
  border-top: 1px solid #2a2a2a; /* Matches the card border */
  border-left: 1px solid #2a2a2a;
  transform: rotate(45deg); /* Rotates a square to make a triangle */
  border-radius: 2px 0 0 0; /* Softens the very tip of the arrow */
}

/* 2. Scroll Hide Transitions */
.signup-modal.is-floating {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 3. The class we will trigger with JavaScript to hide it */
.signup-modal.is-floating.hidden-by-scroll {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}



/* Mobile Responsiveness */
@media (max-width: 700px) {
  .signup-grid { flex-direction: column; gap: 24px; }
  .signup-divider { width: 100%; height: 1px; }
  .signup-right { flex-direction: column-reverse; text-align: center; }
  .app-buttons { align-items: center; flex-direction: row; justify-content: center; flex-wrap: wrap;}
  .signup-modal-card { padding: 30px 20px; }
}


/* Auto-Show Floating Mode Override */
.signup-modal.is-floating {
  position: absolute;
  top: 110px; /* Sits below the header */
  right: max(12px, calc((100vw - 1320px) / 2)); /* Aligns perfectly with your right container edge */
  left: auto;
  bottom: auto;
  pointer-events: none; /* Lets the user click the website behind it */
}

.signup-modal.is-floating .drawer-backdrop {
  display: none; /* Hide the dark background overlay */
}

.signup-modal.is-floating .signup-modal-card {
    pointer-events: auto;
    width: auto;
    max-width: 680px;
    padding: 24px 32px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: floatInPopup 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin-right: 20px;
    margin-top: 10px;
}

/* The smooth fade and slide-up animation */
@keyframes floatInPopup {
  0% { 
    opacity: 0; 
    transform: translateY(40px) scale(0.95); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* On mobile, make the floating box sit at the bottom instead of the top right */
@media (max-width: 768px) {
  .signup-modal.is-floating {
    position: fixed;
    top: auto;
    bottom: 20px;
    right: 12px;
    left: 12px;
  }
}



a.solid-btnn {
    display: flex;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    padding: 0px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--text);
    transition: .22s ease;
    font-size: 14px;
    margin-right: 13px;
}












section#twit {
    margin: 0;
    display: flex;
    gap: 15px;
}






/* ==========================================================================
   80vh HEADER SECTION FIX (Responsive Viewport Height)
   ========================================================================== */

#headersec {
  height: 75vh;
  display: flex;
  flex-direction: column;
}

#headersec .hero-grid {
  flex: 1; /* Takes up the remaining space after the ticker */
  min-height: 0; /* Crucial: Prevents children from blowing out the 80vh height */
  height: 100%;
}

/* Force the main hero image card to respect the new dynamic height */
.news-hero-card {
  height: 100%;
  min-height: 0 !important; /* Overrides the previous 520px / 420px min-heights */
}

.news-hero-inner {
  height: 100%;
  min-height: 0 !important; /* Overrides the previous 520px min-height */
}

/* Make the right sidebar stretch to match the hero card's height */
.stack.rsecc {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stack.rsecc .card:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Allow the side news list to scroll if there are too many items to fit in 80vh */
#newsMiniGrid {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px; /* A little breathing room for the scrollbar */
  
  /* Optional: Make the scrollbar look sleek */
  scrollbar-width: thin;
  scrollbar-color: rgba(112, 20, 41, 0.4) transparent;
}

/* Remove the fixed 80vh on tablets and mobile so the layout stacks naturally */
@media (max-width: 980px) {
  #headersec {
    height: auto;
    min-height: 80vh;
  }
  
  #headersec .hero-grid,
  .news-hero-card, 
  .news-hero-inner, 
  .stack.rsecc,
  .stack.rsecc .card:first-child {
    height: auto;
  }
  
  #newsMiniGrid {
    overflow-y: visible;
  }
}



/* Pause ticker animation on hover */
.ticker:hover .ticker-content {
  animation-play-state: paused;
}

















/* ==========================================================================
   PREMIUM VIDEO SLIDER (HOVER TO PLAY)
   ========================================================================== */

#videolatest {
  display: block; /* Overrides the default split grid */
  margin-top: 50px;
}


.audcrds {
    background: #0000;
    border: 0;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.video-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.video-thumb-img, 
.video-thumb-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The animated webp preview is hidden by default */
.video-thumb-preview {
  opacity: 0;
  z-index: 2;
}

/* Hover Effects */
.video-card:hover .video-thumb-preview {
  opacity: 1; /* Fade in the playing preview */
}

.video-card:hover .video-thumb-img,
.video-card:hover .video-thumb-preview {
  transform: scale(1.06); /* Smooth zoom */
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  transition: background 0.3s ease;
}

.video-card:hover .video-play-overlay {
  background: rgba(0,0,0,0.02);
}

/* Glassmorphism Play Button */
.video-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.video-card:hover .video-play-icon {
  transform: scale(1.15);
  background: var(--brand);
  border-color: var(--brand);
}

.video-card-info {
  padding: 0 4px;
}

.video-playlist-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.video-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
}

.video-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.video-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.video-badge-free { background: #ecfdf5; color: #059669; }
.video-badge-paid { background: #fef2f2; color: #dc2626; }


.vidcrds {
    background: #0000;
    border: 0;
}


span.video-badge {
    border: solid 1px;
    border-radius: 400px;
    font-size: 10px;
    display: flex;
    align-items: center;
    padding: 1px 10px;
}


footer.footer {
    position: relative;
}

img.ftrwm {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}








/* ==========================================================================
   PREMIUM AUDIO DISCOVERY SLIDER & WAVEFORMS
   ========================================================================== */

#audiolatest {
  display: block;
  margin-top: 50px;
}

.audio-card {
  background: #0000;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  height: 100%;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

 
.audio-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.audio-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
 }

.audio-play-btn:hover {
  transform: scale(1.05);
}

.audio-play-btn:active {
  transform: scale(0.95);
}

.audio-play-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  margin-left: 3px; /* visual center for play icon */
  transition: margin 0.1s;
}

.audio-play-btn.playing svg {
  margin-left: 0; /* center pause icon */
}

.audio-info {
  flex-grow: 1;
  min-width: 0;
}

.audio-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-series {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  font-weight: 600;
}

.audio-time-display {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

/* Siri-Style Waveform (Fluid & Glowing) */
.audio-waveform-wrapper {
  position: relative;
  height: 54px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.5px;
  /* Fades out the left and right edges smoothly */
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0.05));
  mask-image: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0.05));
}

.wave-bar {
  flex: 1;
  background-color: #a9a9a9; 
  border-radius: 4px;
  min-width: 2px;
  opacity: 0.6;
  transform-origin: center;
  will-change: height;
  transition: background 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* The Siri Gradient & Glow for the played portion */
.wave-bar.active {
  background: linear-gradient(to bottom, #90133b, #701429, #d13458);
  opacity: 1;
  /* box-shadow: 0 0 10px rgba(124, 58, 237, 0.4); */
}

.audio-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}

.audio-date-badge {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}



/* User Avatar & Dropdown Styles */
.user-menu-wrap { position: relative; }
.header-avatar { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; object-fit: cover; border: 2px solid rgba(112, 20, 41, 0.2); transition: 0.2s; }
.header-avatar:hover { border-color: var(--brand); }
.user-dropdown { position: absolute; top: 120%; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 220px; display: none; flex-direction: column; overflow: hidden; z-index: 1000; }
.user-dropdown.show { display: flex; }
.user-dropdown-header { padding: 16px; border-bottom: 1px solid var(--line); background: #f9fafb; }
.user-dropdown a { padding: 12px 16px; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.user-dropdown a:hover { background: rgba(112, 20, 41, 0.05); color: var(--brand); }
.user-dropdown i { font-size: 18px; color: var(--muted); transition: 0.2s; }
.user-dropdown a:hover i { color: var(--brand); }




section.card {
    border: 1px solid rgb(0 0 0 / 11%);
}


section.card.vidcrds {
    border: 0;
}


.lgtopbar {
    background: #c3c3c336;
    color: #000;
}

em.unamee {
    font-style: normal;
}

a.cusbardta {
    border-bottom: solid 1px #3333331f;
}



.lgtopbar-inner {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
    flex-wrap: wrap;
}

.lgtoolbardata {
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}




/* --- DARK THEME OVERRIDES --- */
 
html.dark-theme body {
    background-color: #0d0d0d; /* Fills in the rest of the page background */
}
html.dark-theme .topbar {
    background: linear-gradient(90deg, #161616, #0d0d0d);
    border-bottom: 1px solid rgb(255 255 255 / 6%);
}
html.dark-theme .main-header {
    background: #0d0d0d;
}
html.dark-theme .nav-link:hover, 
html.dark-theme .nav-link.active {
    color: #9b7b66;
}
html.dark-theme .ticker-label {
    background: #0d0d0d;
}
html.dark-theme .nav-shell.scrolled {
    background: #0d0d0d;
}
 
html.dark-theme .audio-play-btn {
    background: linear-gradient(90deg, #161616, #0d0d0d);
}
html.dark-theme * a.nav-link {
    color: #f9f6f2;
    font-weight: 500;
}
html.dark-theme * a.lang-btn {
    background: #0000;
    color: #fff;
}
 html.dark-theme * button#openSearchBtn {
    background: #0000;
}
 
html.dark-theme * button#openSearchBtn > svg {
    color: #fff;
}
html.dark-theme * h2.section-title {
    color: #0d0d0d;
}
html.dark-theme * a.view-all {
    color: #333 !important;
}
html.dark-theme * span.meta {
    color: #333;
}
html.dark-theme * h3.card-title {
    color: #0d0d0d;
}
html.dark-theme * .thumb {
    background-color: #0d0d0d;
}
html.dark-theme * footer.footer {
    background: linear-gradient(90deg, #161616, #0d0d0d);
}
html.dark-theme * img.ftrwm {
    opacity: 0.3;
}
html.dark-theme * span.news-mini-source {
    color: #6b6b6b;
}
html.dark-theme * a.section-link-card {
    color: #333 !important;
}



/* --- AUTHENTICATED VIDEO STYLES --- */
body.user-logged-in .video-badge { 
    display: none !important; 
}

.save-vid-btn { 
    display: none; 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    z-index: 10; 
    background: rgba(15, 15, 17, 0.6); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.2); 
    width: 36px; height: 36px; 
    border-radius: 50%; 
    cursor: pointer; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(4px);
    transition: 0.2s;
}
body.user-logged-in .save-vid-btn { 
    display: flex; 
}
.save-vid-btn:hover { 
    background: var(--brand); 
    transform: scale(1.05); 
}
.save-vid-btn.saved { 
    background: #fff; 
    color: var(--brand); 
    border-color: #fff; 
}



section.card.nobgcrds.section-articles {
    border: 0;
}

.section-books {
    border: 0 !important;
}

.section-lectures {
    border: 0 !important;
}

.book-format {
    margin-top: 20px;
}


p.excerpt.line-clamp-2 {
    line-height: 1.3;
    margin: 0 0 6px 0;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}




span.thumb-text {
    text-transform: capitalize;
}


div#preloaderBlockEn {
    align-items: center;
    justify-content: center;
}

.topbar {
    direction: ltr !important;
}



html[lang="ar"] *:not(i):not(.bx):not(.bxs) {
    font-family: 'Rubik', sans-serif !important;
}

html[lang="ar"] * .mini-nav-btns {
    direction: ltr;
}

html[lang="ar"] * div#videoSliderTrack {
    direction: ltr;
    
}

html[lang="ar"] * div#audioSliderTrack {
    direction: ltr;
}

html[lang="ar"] * .modern-slider-track {
    direction: ltr;
}


html[lang="ar"] * .slider-controls {
    direction: ltr;
}

 html[lang="ar"] * i.bx.bx-chevron-right {
    transform: rotate(180deg);
}

html[lang="ar"] * i.bx.bx-chevron-left {
    transform: rotate(180deg);
}

html[lang="ar"] * div#userDropdown {
    left: 0;
    right: auto;
}

html[lang="ar"] * div#miniAudioPlayer {
    direction: ltr;
}



.preloader-lang-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-content: center;
    justify-content: center;
}

div#preloaderBlockAr {
    align-items: center;
}























/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (APP-STYLE)
   ========================================================================== */

.mobile-bottom-nav {
  display: none; /* Hidden on desktop by default */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  z-index: 9999;
  justify-content: space-around;
  align-items: center;
  /* padding-bottom env handles the safe area on iPhones with a notch */
  padding-bottom: env(safe-area-inset-bottom); 
  transition: background 0.3s ease;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  flex: 1;
  transition: color 0.2s ease;
  font-family: 'Inter', 'Rubik', sans-serif;
}

.mobile-nav-item i {
  font-size: 24px;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--brand);
}

.mobile-nav-item:active i {
  transform: scale(0.9);
}

/* Dark theme overrides */
html.dark-theme .mobile-bottom-nav {
  background: #0d0d0d;
  border-top: 0px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Prevent content and footers from hiding behind the fixed nav */
  body {
    padding-bottom: 65px; 
  }
  
  /* Hide the old floating social sidebar on mobile to prevent clutter */
  .social-sidebar {
    display: none !important;
  }

  section#twit {
    display: none;
}

.nav-shell.scrolled {
    display: none;
}

.ticker-label.translatable {
    width: max-content;
    position: absolute;
    top: -20px;
}

section.ticker {
    position: relative;
    overflow: visible;
}

.container.header-inner {
    display: flex;
    justify-content: space-between;
}

div#heroActionsContainer {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
}

div#newsHeroExcerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


h2#newsHeroTitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-copy.news-hero-copy.slide-in-right {
    min-height: 65vh !important;
}
.hero-copy.news-hero-copy.slide-in-left {
    min-height: 50vh !important;
}

button#forceLiveBtn {
    font-size: 8px;
}

.system-controls-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.verse {
    font-size: 10px;
}

span.time-chip {
    padding-left: 0;
}

.verse {
    font-size: 10px;
    padding-bottom: 10px;
}

.audio-card {
    max-width: 93vw;
}

section.card.nobgcrds.rv {
    max-width: 100%;
}

.tickhldr {
    padding-top: 15px;
}

html[lang="ar"] * .ticker-label.translatable {
    top: -9px;
    border-bottom: solid 1px #ffffff1f;
    margin-right: 0;
    border-bottom-left-radius: 10px;
}

.ticker-label.translatable {
    top: -9px;
    border-bottom: solid 1px #ffffff1f;
    margin-left: 0;
    border-bottom-right-radius: 10px;
}

section#newsSection {
    margin-top: 10px;
    width: 94vw !important;
}

.ostag {
  display: none;
}

html.dark-theme * button#openDrawerBtn {
    background: #0000;
    filter: sepia(1);
    display: none;
}

.audio-player-wrap {
    max-width: 89vw;
}


html.dark-theme * a.nav-item {
    color: #ffffff99;
}

html.dark-theme * .mobile-menu-sheet .user-name {
    color: #fff;
}

html.dark-theme * .mobile-menu-sheet .user-email {
    color: #757575;
}

html.dark-theme * .mobile-menu-sheet .nav-item i {
    color: #eeeeee94;
}


a.brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container.topbar-inner {
    display: flex;
    justify-content: center;
    gap: 8px;
}


div#loggedInTopBar {
    position: sticky;
    top: 0;
    z-index: 9999999999999999;
    background: #f0e7e3 !important;
}


.hero-copy.news-hero-copy.slide-in-right {
    display: flex;
    justify-content: flex-start;
    min-height: 50vh !important;
}

h2#newsHeroTitle {
    font-size: 20px;
}

div#newsHeroExcerpt {
    font-size: 13px;
}

a#newsHeroLink {
    font-size: 13px;
}




}


section#twit {
    flex-wrap: wrap;
}


/* --- Live Stream Hero Integration --- */
#live-stream-layer {
    position: absolute; inset: 0; z-index: 1; opacity: 0; 
    pointer-events: none; transition: opacity 0.4s ease; background: #000;
}
#live-stream-layer.active {
    opacity: 1; pointer-events: auto;
}

/* Updated controls to sit nicely inline */
.live-player-controls {
    display: none; align-items: center; gap: 10px;
    background: rgba(0,0,0,0.5); padding: 6px 14px; border-radius: 999px;
    backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1);
    animation: fadeIn 0.3s ease; width: fit-content;
}
.live-player-controls.active { display: flex; }

.live-btn-trigger {
    display: flex; align-items: center; gap: 8px; border: 1px solid rgba(230,0,0,0.5); 
    background: rgba(230,0,0,0.15); color: white; cursor: pointer; 
    border-radius: 999px; padding: 10px 18px; font-weight: bold; 
    transition: all 0.3s; font-family: inherit; font-size: 12px;
}
.live-btn-trigger:hover { background: rgba(230,0,0,0.4); transform: translateY(-1px); }

/* Hide standard hero text when live is active */
.hero-card.live-active .hero-title,
.hero-card.live-active .hero-excerpt,
.hero-card.live-active .news-meta-row,
.hero-card.live-active #newsHeroLink,
.hero-card.live-active #newsBadge {
    display: none !important;
}

.live-controls-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; }
.live-controls-btn svg { width: 20px; height: 20px; fill: white; transition: transform 0.2s; }
.live-controls-btn:hover svg { transform: scale(1.1); }
.volume-slider { width: 60px; accent-color: #e60000; cursor: pointer; height: 4px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Live Badge inside the Video Player --- */
.live-badge-top {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #e6000087;
    color: white;
    padding: 2px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    border-radius: 400px;
}
.live-badge-top .live-dot {
    width: 8px; 
    height: 8px; 
    background-color: #fff; 
    border-radius: 50%; 
    animation: pulseLive 1.5s infinite;
}


div#newsHeroExcerpt {
    line-height: 1.5;
}



ul.fterflx {
    display: flex;
    flex-direction: column;
    gap: 5px;
}



.ftrbgtext {
    width: max-content;
    max-width: 30vw;
}

.ftrsmlltxt {
    font-size: 13px;
    color: #d3d3d3;
    line-height: 1.5;
}

/* 
a.lang-btn {
    display: none;
} */

.search-wrap {
    max-width: 15vw;
}







/* ==========================================================================
   MOBILE MENU SHEET (DASHBOARD STYLE FOR PUBLIC SITE)
   ========================================================================== */

.mobile-menu-overlay {
  display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); z-index: 10001; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-menu-sheet {
  display: flex; flex-direction: column; position: fixed; bottom: -100%; left: 0; right: 0;
  background: var(--surface); border-radius: 20px 20px 0 0; z-index: 10002;
  padding: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom));
  transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 -10px 25px rgba(0,0,0,0.15); max-height: 85vh;
}
.mobile-menu-sheet.active { bottom: 0; }

.mobile-menu-sheet .sheet-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line);
}
.mobile-menu-sheet .sheet-body {
  flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px;
}
.mobile-menu-sheet .nav-item {
  padding: 14px 16px; font-size: 15px; display: flex; align-items: center; gap: 12px; color: var(--text); border-radius: 12px; transition: 0.2s; font-weight: 600; text-decoration: none;
}
.mobile-menu-sheet .nav-item:hover { background: var(--surface-2); color: var(--brand); }
.mobile-menu-sheet .nav-item i { font-size: 22px; color: var(--muted); }
.mobile-menu-sheet .nav-item:hover i { color: var(--brand); }
.mobile-menu-sheet .sheet-footer { margin-top: auto; }

.mobile-menu-sheet .user-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.mobile-menu-sheet .user-info { display: flex; flex-direction: column; }
.mobile-menu-sheet .user-name { font-size: 15px; font-weight: 700; color: var(--text); }
.mobile-menu-sheet .user-email { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Dark theme overrides */
html.dark-theme .mobile-menu-sheet { background: #111; }
html.dark-theme .mobile-menu-sheet .nav-item:hover { background: #1a1a1a;     color: #fff;
 }
html.dark-theme .mobile-menu-sheet .sheet-header { border-bottom-color: rgba(255,255,255,0.08); }








/* ==========================================================================
   MOBILE VIEWPORT & OVERFLOW FIXES
   ========================================================================== */

/* 1. Strictly prevent the body from ever expanding past the screen width */
html, body {
  max-width: 100vw;
  overflow-x: clip;
}

/* 2. Force long URLs and text inside posts to wrap instead of pushing out */
.rich-content, 
.rich-content p, 
.rich-content a,
.article-title {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* 3. Ensure breadcrumbs and meta info rows wrap to the next line if too long */
.article-hero nav, 
.article-meta-row {
  display: flex;
  flex-wrap: wrap !important;
}

/* 4. Ensure large embedded content (iframes, youtube, tables) don't break width */
.rich-content iframe,
.rich-content img,
.rich-content video {
  max-width: 100% !important;
  height: auto;
}

/* 5. Fix code/text blocks causing overflow */
.rich-content pre, 
.rich-content code {
  white-space: pre-wrap !important; /* Forces text inside to wrap */
  overflow-x: auto;
  max-width: 100%;
}



/* ==========================================================================
   POST PAGE MOBILE LAYOUT FIX
   ========================================================================== */

@media (max-width: 980px) {
  /* Force any post/article grid to stack vertically on mobile */
  .section-grid,
  .hero-grid,
  .article-grid,
  .post-layout,
  .single-post-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  /* Ensure the main article content takes the full width */
  .rich-content,
  .article-body,
  .post-content,
  .article-main-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Make sure the right sidebar drops below the article and takes full width */
  .stack.rsecc,
  .post-sidebar,
  .article-sidebar {
    width: 100% !important;
    margin-top: 30px !important;
  }


  div#readerArticleBody {
    width: 100vw;
}

.reader-article-head {
    width: 100vw;
}

section.reader-sidebar-card.fade-in-up {
    width: 100vw;
}


button#readerToolsFab {
    bottom: 9vh;
    z-index: 0;
}


aside.stack.rrsecc {
    width: 93vw;
}


section.card.nobgcrds.section-articles {
    max-width: 100vw;
}

.tab-btn {
    font-size: 9px;
    font-weight: 700;
}

.filter-tabs {
    gap: 2px;
}

button#openDrawerBtn {
    display: none;
}

.mobile-bottom-nav * .bx {
    transform: rotate(0) !important;
}

.mobile-menu-sheet * i.bx {
    transform: rotate(0) !important;
}

div#publicMobileMenuSheet {
    z-index: 99999999999;
}

.ftrbgtext {
    max-width: 100vw;
}

footer.footer {
    bottom: -8px;
}

p#preloaderDynamicEn {
    max-width: 60vw;
}


div#signupModal {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100vw;
    z-index: 9999999999999999999;
}

.signup-right {
    display: none;
}

.verse {
    display: none;
}

.signup-modal-card {
    top: 10vh;
    position: absolute;
}



}






html[lang="ar"] * a.video-card {
    display: flex;
    align-items: flex-end;
    text-align: right;
}

html[lang="ar"] * .video-meta-row {
    display: flex;
    justify-content: flex-end;
}

html[lang="ar"] * .audio-info {
    text-align: right;
}

html[lang="ar"] * .content {
    text-align: right;
}










