@charset "utf-8";

:root {
  --brand: #67682c;
  --brand-dark: #4c4d1f;
  --brand-soft: #8d9150;
  --sand: #f7f4ea;
  --ink: #1f2418;
  --muted: #66705a;
  --line: #d9ddc8;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(39, 46, 21, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(141, 145, 80, 0.16), transparent 26%),
    linear-gradient(180deg, #fbfaf5 0%, #f3f6ee 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

iframe {
  border: 0;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.weather-strip {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.top-strip {
  background: var(--brand);
  color: #fff;
}

.top-strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  font-size: 14px;
}

.top-strip-links,
.main-nav,
.footer-links,
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.top-strip-links a,
.main-nav a,
.footer-links a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.top-strip-links a:hover,
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.16);
}

.site-header {
  padding: 28px 0 18px;
}

.header-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.brand-card,
.promo-card,
.panel,
.story-card,
.category-card,
.mini-card,
.article-card,
.social-card,
.footer-column,
.video-link-card,
.empty-state {
  background: var(--card);
  border: 1px solid rgba(103, 104, 44, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.brand-card img {
  width: min(260px, 100%);
  height: auto;
}

.brand-card p,
.section-head p,
.story-meta,
.article-meta,
.footer-note,
.card-copy,
.panel p {
  color: var(--muted);
}

.promo-card {
  overflow: hidden;
  min-height: 220px;
  position: relative;
}

.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(20, 25, 12, 0.72));
  color: #fff;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(251, 250, 245, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(103, 104, 44, 0.12);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 12px 0;
}

.search-badge {
  color: var(--brand);
  font-weight: 700;
}

.section {
  padding: 30px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2,
.section-head h1,
.hero-copy h1,
.story-card h3,
.article-body h1,
.footer-column h3,
.video-card h3 {
  margin: 0;
  font-family: "Cairo", sans-serif;
  color: var(--brand-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.button.button-ghost {
  background: rgba(103, 104, 44, 0.1);
  color: var(--brand-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 22px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 470px;
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px;
  background: linear-gradient(180deg, transparent 5%, rgba(18, 24, 10, 0.85) 100%);
  color: #fff;
}

.eyebrow,
.platform-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
  margin: 14px 0 10px;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.story-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  align-items: center;
}

.story-card img,
.article-card img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.story-card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
}

.dual-panels,
.category-grid,
.video-grid,
.article-grid,
.list-grid,
.footer-grid,
.admin-shortcuts {
  display: grid;
  gap: 20px;
}

.dual-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 24px;
}

.panel-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.mini-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  box-shadow: none;
}

.mini-card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card,
.article-card,
.video-card,
.social-card,
.footer-column {
  overflow: hidden;
}

.category-card-media,
.article-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.category-card-copy,
.article-card-copy,
.video-card-copy,
.social-card-copy,
.footer-column {
  padding: 18px;
}

.video-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.video-stack {
  display: grid;
  gap: 18px;
}

.video-embed,
.video-feature {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
}

.video-embed::before,
.video-feature::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-embed iframe,
.video-feature iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.social-card {
  min-height: 100%;
}

.social-card-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.article-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
}

.article-body,
.sidebar-stack {
  display: grid;
  gap: 18px;
}

.article-body .panel {
  padding: 0;
  overflow: hidden;
}

.article-body-image {
  max-height: 560px;
  overflow: hidden;
}

.article-body-image img {
  width: 100%;
  object-fit: cover;
}

.article-content {
  padding: 28px;
  line-height: 2;
  font-size: 18px;
}

.article-content p {
  margin-top: 0;
}

.sidebar-stack .panel {
  padding: 20px;
}

.list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card-copy h3,
.category-card-copy h3,
.story-card h3,
.mini-card h3,
.video-card-copy h3 {
  margin: 0 0 10px;
  line-height: 1.5;
  font-size: 22px;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.sponsor-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sponsor-row a,
.sponsor-row img {
  width: 100%;
  border-radius: var(--radius);
}

.community-bar {
  padding: 22px 0 44px;
}

.footer-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-column li a {
  color: var(--muted);
}

.footer-column li a:hover {
  color: var(--brand-dark);
}

.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 10px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 0 22px;
  font-size: 14px;
}

.social-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  margin-bottom: 18px;
}

.empty-state {
  padding: 26px;
}

@media (max-width: 1100px) {
  .category-grid,
  .footer-grid,
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-grid,
  .dual-panels,
  .video-grid,
  .article-grid,
  .header-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .promo-card {
    min-height: 180px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .top-strip-inner,
  .nav-inner,
  .site-footer-inner,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav,
  .top-strip-links,
  .footer-links,
  .social-links {
    justify-content: center;
  }

  .category-grid,
  .footer-grid,
  .social-grid,
  .list-grid,
  .sponsor-row {
    grid-template-columns: 1fr;
  }

  .story-card,
  .mini-card {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 22px 18px;
    font-size: 17px;
  }

  .hero-overlay {
    padding: 22px;
  }
}
