:root {
  --bg: #f8efe6;
  --paper: #fffaf4;
  --ink: #221814;
  --muted: #79665b;
  --soft: #ead8c8;
  --line: rgba(34, 24, 20, .12);
  --brand: #c86b3f;
  --brand-dark: #8f3f27;
  --dark: #17110e;
  --dark-2: #241812;
  --gold: #e6a86b;
  --radius: 26px;
  --shadow: 0 22px 60px rgba(30, 18, 11, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Tahoma, Arial, "Noto Kufi Arabic", "Noto Sans Arabic", sans-serif;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(248, 239, 230, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--brand-dark);
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 63, 39, .35);
  border-radius: 50%;
  color: var(--brand);
  letter-spacing: 0;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 30px);
  font-size: 15px;
  font-weight: 700;
}
.main-nav a {
  opacity: .78;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { opacity: 1; border-color: var(--brand); }
.lang-switcher {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 9px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.lang-switcher button.active { background: var(--dark); color: #fff; }
.nav-toggle { display: none; }

.section, .section-light, .section-soft, .section-dark {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}
.section-light { background: var(--paper); }
.section-soft { background: #f0e2d4; }
.section-dark {
  background: radial-gradient(circle at 18% 20%, rgba(200, 107, 63, .18), transparent 28%), linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(255,255,255,.04) 0 1px, transparent 1px 16px);
  opacity: .25;
  pointer-events: none;
}
.hero-bg-word {
  position: absolute;
  left: -3vw;
  bottom: 4vw;
  font-size: clamp(74px, 16vw, 250px);
  font-weight: 900;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .04);
  line-height: .9;
  direction: ltr;
  user-select: none;
}
.hero-media {
  position: relative;
  min-height: 520px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}
.hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(23,17,14,.42));
}
.media-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  background: rgba(255, 250, 244, .92);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  box-shadow: 0 10px 32px rgba(0,0,0,.2);
}
.hero-content { position: relative; z-index: 2; max-width: 650px; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}
.section-dark .eyebrow, .section-dark .kicker { color: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin: 14px 0 22px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 1.08;
  letter-spacing: -.05em;
}
.hero-lead {
  max-width: 620px;
  color: rgba(255,255,255,.82);
  font-size: clamp(17px, 2vw, 22px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.16); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.34); color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: rgba(143,63,39,.35); color: var(--brand-dark); background: #fff7ef; }
.creator-card {
  position: absolute;
  z-index: 4;
  bottom: 42px;
  left: clamp(18px, 5vw, 72px);
  width: min(340px, calc(100% - 36px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(14px);
}
.creator-card img {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  object-fit: cover;
  background: #fff;
}
.creator-card strong { display: block; }
.creator-card span { color: rgba(255,255,255,.72); font-size: 14px; }

.section-heading {
  max-width: 840px;
  margin: 0 auto 34px;
  text-align: center;
}
.section-heading.narrow { max-width: 760px; }
.section-heading h2, .category-head h1 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.17;
  letter-spacing: -.03em;
}
.section-heading p, .category-head p { color: var(--muted); font-size: 18px; }
.quick-stats {
  max-width: 960px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quick-stats div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.quick-stats strong { display: block; color: var(--brand-dark); font-size: 38px; line-height: 1; }
.quick-stats span { color: var(--muted); }

.video-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.video-card {
  position: relative;
  min-height: 370px;
  border-radius: 30px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
}
.video-card.large { min-height: 520px; }
.video-card img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .45s ease; }
.video-card:hover img { transform: scale(1.04); }
.video-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.08) 58%, transparent);
}
.play {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: var(--brand-dark);
  direction: ltr;
}
.video-caption {
  position: absolute;
  z-index: 2;
  right: 22px;
  left: 22px;
  bottom: 22px;
  color: #fff;
}
.video-caption small {
  display: inline-flex;
  background: var(--brand);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 900;
}
.video-caption h3 { margin: 0; font-size: 22px; line-height: 1.3; }
.center-action { text-align: center; margin-top: 28px; }

.short-grid, .collection-grid, .social-board {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.short-grid { grid-template-columns: repeat(4, 1fr); }
.short-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 28px;
  background: #111;
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  box-shadow: var(--shadow);
}
.short-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
  transition: transform .45s ease;
}
.short-card:hover img { transform: scale(1.05); }
.short-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 65%);
}
.short-card strong, .short-card span { position: relative; z-index: 2; }
.short-card strong { font-size: 21px; }
.short-card span { opacity: .78; }

.collection-grid { grid-template-columns: repeat(3, 1fr); }
.collection-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(75, 43, 26, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.collection-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.collection-card img { width: 100%; height: 240px; object-fit: cover; }
.collection-card div { padding: 24px; }
.collection-card span { color: var(--brand); font-weight: 900; }
.collection-card h3 { margin: 6px 0 8px; font-size: 25px; }
.collection-card p { color: var(--muted); margin: 0; }

.mini-about {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.about-photo {
  max-width: 430px;
  margin-inline: auto;
  border-radius: 42px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { max-width: 680px; }
.about-copy h2 { font-size: clamp(32px, 5vw, 68px); line-height: 1.12; margin: 12px 0 18px; }
.about-copy p { color: rgba(255,255,255,.78); font-size: 19px; }

.social-board { grid-template-columns: repeat(3, 1fr); }
.social-board a {
  min-height: 130px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 14px 38px rgba(75, 43, 26, .07);
}
.social-board span {
  width: 54px;
  height: 54px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
  direction: ltr;
}
.social-board strong { font-size: 20px; }
.social-board em { color: var(--muted); font-style: normal; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff8f1;
  color: var(--muted);
}

.inside-page { background: var(--bg); }
.page-hero { padding: 60px clamp(18px, 5vw, 72px); }
.category-head {
  max-width: 900px;
  margin: 20px auto 32px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}
.article-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.article-list article {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.article-list img { width: 100%; height: 190px; object-fit: cover; }
.article-list div { padding: 20px; }
.article-list small { color: var(--brand); font-weight: 900; }
.article-list h2 { margin: 4px 0 8px; }
.article-list p { margin: 0; color: var(--muted); }

body[dir="ltr"] .site-header { direction: ltr; }
body[dir="ltr"] .main-nav { direction: ltr; }
body[dir="ltr"] .hero { direction: ltr; }
body[dir="ltr"] .media-badge { left: 24px; right: auto; }
body[dir="ltr"] .play { left: 22px; right: auto; }
body[dir="ltr"] .video-caption { left: 22px; right: 22px; }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: auto auto 1fr; }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: start;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font-size: 20px;
  }
  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .lang-switcher { justify-self: end; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 52px; }
  .hero-media { min-height: 390px; order: 2; }
  .hero-media img { min-height: 390px; }
  .creator-card { position: relative; bottom: auto; left: auto; margin-top: 24px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card, .video-card.large { min-height: 380px; }
  .short-grid, .collection-grid, .social-board { grid-template-columns: repeat(2, 1fr); }
  .mini-about { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { gap: 10px; padding: 12px 14px; }
  .brand { letter-spacing: .08em; }
  .brand-mark { width: 28px; height: 28px; }
  .lang-switcher button { padding: 6px 7px; font-size: 12px; }
  .section, .section-light, .section-soft, .section-dark { padding: 50px 16px; }
  .hero h1 { font-size: 42px; }
  .hero-media, .hero-media img { min-height: 330px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .quick-stats, .short-grid, .collection-grid, .social-board { grid-template-columns: 1fr; }
  .short-card { min-height: 320px; }
  .footer { flex-direction: column; text-align: center; }
  .article-list article { grid-template-columns: 1fr; }
  .article-list img { height: 230px; }
}
