/* ============================================================
   V249 TECH — BOLD FIRE PROTECTION DESIGN (Reference Style)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --red:        #e82323;
  --red-dark:   #b81a1a;
  --red-glow:   rgba(232,35,35,0.35);
  --red-soft:   rgba(232,35,35,0.12);

  --bg:         #0e0e0e;
  --bg-2:       #161616;
  --bg-3:       #1e1e1e;
  --bg-card:    #1a1a1a;
  --bg-hover:   #222222;

  --gold:       #f5a623;
  --green:      #22c55e;
  --text-1:     #ffffff;
  --text-2:     #cccccc;
  --text-3:     #888888;
  --border:     rgba(255,255,255,0.07);
  --border-red: rgba(232,35,35,0.3);

  --header-h: 68px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--red) var(--bg-2); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

body {
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 15px;
  color: var(--text-1);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,p { margin: 0; }
ul,ol { margin: 0; padding: 0; }

.sr-only {
  position: absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); border:0;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: min(1260px, calc(100% - 32px));
  margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,14,14,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--red);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 46px; height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--red);
  box-shadow: 0 0 16px var(--red-glow);
}

.brand strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
}

.brand strong em {
  color: var(--red);
  font-style: normal;
}

.brand small {
  display: block;
  color: var(--text-3);
  font-size: 0.7rem;
  margin-top: 3px;
  letter-spacing: 0.03em;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav a[aria-current], .nav a:hover {
  color: var(--red);
  background: var(--red-soft);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.visitors {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.74rem;
  color: var(--text-3);
  white-space: nowrap;
}

.visitors::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0.4; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 4px 18px var(--red-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,35,35,0.5);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-sm { min-height: 36px; padding: 0 16px; font-size: 0.83rem; }

.btn-text {
  background: none; border: none;
  color: var(--text-3); font-size: 0.83rem;
  cursor: pointer; font-family: 'Cairo',sans-serif;
  font-weight: 600; padding: 4px 8px;
  border-radius: 6px; transition: color 0.2s;
}
.btn-text:hover { color: var(--red); }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-btn span:not(.sr-only) {
  display: block; width: 18px; height: 1.5px;
  background: #fff;
}

/* ── HERO BANNER ─────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-start;
}

/* Full background image */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero_banner.png');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

/* Dark gradient overlays */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14,14,14,0.96) 0%,
    rgba(14,14,14,0.7) 45%,
    rgba(14,14,14,0.15) 100%
  );
}

/* Red streak at bottom */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}

.hero .container { position: relative; z-index: 1; padding-top: 54px; padding-bottom: 72px; }

/* Left brand stamp */
.hero-stamp {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-stamp img {
  width: 52px; height: 52px;
  border-radius: 10px;
  border: 2px solid var(--red);
  box-shadow: 0 0 20px var(--red-glow);
}

.hero-stamp-text strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.07em;
  color: #fff;
  line-height: 1;
}

.hero-stamp-text strong em { color: var(--red); font-style: normal; }

.hero-stamp-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-copy { max-width: 16em; }

.hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.hero-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 16px;
  background: var(--red);
  border-radius: 2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,35,35,0.15);
  border: 1px solid var(--border-red);
  border-radius: 100px;
  padding: 5px 14px 5px 8px;
  color: #ff8a8a;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.2); }

h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

h1 span { color: var(--red); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text-2);
}

.hero-badge svg { color: var(--red); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Facts strip (right side of hero) */
.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-fact {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(20,20,20,0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s;
}

.hero-fact:hover {
  border-color: var(--red);
  transform: translateX(-4px);
}

.hero-fact-icon {
  width: 46px; height: 46px;
  background: var(--red-soft);
  border: 1px solid var(--border-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.hero-fact-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.hero-fact-text span {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 2px;
  display: block;
}

/* ── Feature Strip ───────────────────────────────────────── */
.feature-strip {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: var(--border);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-inline-start: 1px solid var(--border);
  transition: background 0.2s;
}

.feature-item:first-child { border-inline-start: 0; }
.feature-item:hover { background: var(--bg-3); }

.feature-icon {
  font-size: 1.6rem;
  width: 44px;
  flex-shrink: 0;
  text-align: center;
}

.feature-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.feature-text span {
  font-size: 0.74rem;
  color: var(--text-3);
  display: block;
  margin-top: 3px;
}

/* ── Index Band (section shortcuts) ─────────────────────── */
.index-band {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.index-grid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 18px;
  border-inline-start: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.index-grid a:first-child { border-inline-start: 0; }

.index-grid a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.index-grid a:hover { background: var(--bg-3); }
.index-grid a:hover::after { transform: scaleX(1); transform-origin: left; }

.index-grid span {
  font-family: 'Rajdhani', sans-serif;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.index-grid strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.index-grid em {
  color: var(--text-3);
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-head-text {}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kicker::before {
  content: '';
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--red);
  border-radius: 1px;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.section-text {
  color: var(--text-2);
  max-width: 42rem;
  margin-top: 12px;
  line-height: 1.8;
}

/* ── Split layout (About) ───────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

/* ── Designer Card ──────────────────────────────────────── */
.designer {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.designer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.designer:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px var(--border-red);
}

.designer img {
  width: 100%; height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center 18%;
  background: var(--bg-3);
}

.designer-body { padding: 24px; }

.designer h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 4px;
}

.designer-en {
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--text-3);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
}

.creds {
  display: flex; flex-wrap: wrap; gap: 7px;
  list-style: none; margin-top: 12px;
}

.creds li {
  background: var(--red-soft);
  border: 1px solid var(--border-red);
  color: #ff9a9a;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--red);
  transition: gap 0.2s;
}

.text-link::after { content: '←'; }
.text-link:hover { gap: 10px; }

/* ── Store grid: programs and courses use the same card ── */
.store-grid,
#programList,
#courseList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 8px;
  background: transparent;
  border: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #171717;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
}

.product-card:hover { border-color: rgba(232,35,35,0.4); }

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: #111;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-fallback {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-media .badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
}

.product-eye {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(14,14,14,0.82);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
}

.product-eye svg,
.product-view svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 12px;
  flex: 1;
}

.product-body h3 {
  font-size: 1.02rem;
  line-height: 1.4;
}

.product-body p {
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.product-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.product-view:hover { border-color: var(--red); color: #fff; }

.product-download {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e82323, #b81818);
  color: #fff;
  font-weight: 700;
}

.product-download:hover { color: #fff; }

.product-download.is-muted {
  background: #2a2a2a;
  color: #aaa;
}

.product-page { padding: 36px 0 64px; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.product-hero-media {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-hero-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }

.product-copy h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.3; margin: 10px 0; }

.product-copy .lead { color: var(--text-2); margin-top: 8px; }

.product-copy .product-download { margin-top: 18px; max-width: 280px; }

.product-back {
  color: var(--text-3);
  font-size: 0.88rem;
}

.product-back:hover { color: #fff; }

/* Program card */
.entry {
  background: #171717;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.entry:hover {
  border-color: rgba(232,35,35,0.35);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.entry-body {
  padding: 22px 24px 18px;
}

.entry-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.entry h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  flex: 1;
}

.entry p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 100%;
}

/* Download button — full width red */
.entry-actions {
  display: block;
  margin-top: 0;
}

.entry-actions:empty { display: none; }

.entry-actions .btn {
  display: flex;
  width: 100%;
  border-radius: 0 0 9px 9px;
  min-height: 50px;
  font-size: 1rem;
  border-top: 1px solid rgba(232,35,35,0.2);
  background: linear-gradient(135deg, #e82323, #b81818);
  color: #fff;
  border-color: transparent;
  box-shadow: none;
  border-radius: 0;
}

.entry-actions .btn:hover {
  background: linear-gradient(135deg, #ff2a2a, #d11f1f);
  transform: none;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}

/* ── Course Grid — product-card style (reference 2) ──────── */

.course-card {
  background: #171717;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border-color: rgba(232,35,35,0.4);
}

.course-card-img {
  position: relative;
  background: #222;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.course-card-img-inner {
  font-size: 3.5rem;
  line-height: 1;
  opacity: 0.85;
}

.course-card-wishlist {
  position: absolute;
  top: 10px; inset-inline-start: 10px;
  width: 30px; height: 30px;
  background: rgba(20,20,20,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.course-card-wishlist:hover { background: rgba(232,35,35,0.3); }

.course-card-badge {
  position: absolute;
  top: 10px; inset-inline-end: 10px;
}

.course-card-body {
  padding: 14px 14px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-card-track {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-level {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.stars {
  display: flex; gap: 2px;
  color: var(--gold);
  font-size: 0.78rem;
}

.course-card-reviews {
  font-size: 0.72rem;
  color: var(--text-3);
}

.course-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.price-free {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--red);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
}

.price-label {
  font-size: 0.7rem;
  color: var(--text-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

.course-card-foot {
  padding: 12px 14px;
  margin-top: auto;
}

.course-card-foot .btn {
  width: 100%;
  min-height: 40px;
  font-size: 0.85rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 3px 12px rgba(232,35,35,0.3);
}

.course-card-foot .btn:hover {
  box-shadow: 0 6px 20px rgba(232,35,35,0.45);
  transform: none;
}

.course-card-foot .btn svg {
  margin-inline-end: 4px;
}

/* Soon card overlay */
.course-card.is-soon .course-card-img::after {
  content: 'قريباً';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.video {
  width: min(100%, 640px);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  border-radius: 8px;
  margin-top: 14px;
}

.empty-note {
  padding: 32px;
  color: var(--text-3);
  text-align: center;
  font-size: 0.92rem;
  background: #171717;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid;
}

.badge.open {
  color: var(--green);
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.08);
}

.badge.open::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.badge.soon {
  color: var(--gold);
  border-color: rgba(245,166,35,0.35);
  background: rgba(245,166,35,0.07);
}

.video {
  width: min(100%, 640px);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  border-radius: 8px;
}

.empty-note {
  padding: 28px;
  color: var(--text-3);
  text-align: center;
  font-size: 0.92rem;
  background: var(--bg-card);
  border-radius: 12px;
}

/* ── Join Form (Registration) ───────────────────────────── */
.join-grid { align-items: start; }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.span-2 { grid-column: 1 / -1; }

.panel label,
.admin-login label {
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  font: inherit;
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

textarea { resize: vertical; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232,35,35,0.15);
}

input::placeholder, textarea::placeholder { color: var(--text-3); }
select option { background: var(--bg-card); }

#joinForm .btn { width: 100%; margin-top: 18px; min-height: 50px; font-size: 1rem; }

.form-note {
  min-height: 1.4em;
  margin-top: 10px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 600;
}

.form-note.is-error { color: var(--red); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 28px 0 36px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.5;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-3);
  font-size: 0.84rem;
}

.footer strong {
  font-family: 'Rajdhani', sans-serif;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.footer a { color: var(--red); font-weight: 600; }
.footer a:hover { opacity: 0.75; }

/* ── Admin ───────────────────────────────────────────────── */
.admin {
  width: min(1080px, calc(100% - 40px));
  margin: 32px auto 64px;
  display: grid;
  gap: 16px;
}

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-actions { display: flex; gap: 8px; align-items: center; }

.admin-login { width: min(420px, 100%); margin-inline: auto; }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.admin h1, .admin h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: #fff;
}

.admin .panel h1, .admin .panel h2 { margin-bottom: 14px; }
.admin .panel { display: grid; gap: 14px; }

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.admin-row p { color: var(--text-2); font-size: 0.9rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.row-actions button {
  border: 1px solid var(--border);
  background: transparent;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 6px;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}

.row-actions button:hover {
  border-color: var(--red);
  color: var(--red);
}

table { width: 100%; border-collapse: collapse; }

th, td {
  text-align: start;
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.88rem;
}

th {
  font-size: 0.73rem;
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td { color: var(--text-2); }

/* ── Focus ───────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(22px); }
  to   { opacity:1; transform: translateY(0); }
}

.hero-copy > * {
  animation: fadeUp 0.55s ease both;
}

.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.14s; }
.hero-copy > :nth-child(3) { animation-delay: 0.22s; }
.hero-copy > :nth-child(4) { animation-delay: 0.30s; }
.hero-copy > :nth-child(5) { animation-delay: 0.38s; }
.hero-copy > :nth-child(6) { animation-delay: 0.44s; }

.hero-facts > * {
  animation: fadeUp 0.6s ease both;
}
.hero-facts > :nth-child(1) { animation-delay: 0.2s; }
.hero-facts > :nth-child(2) { animation-delay: 0.32s; }
.hero-facts > :nth-child(3) { animation-delay: 0.44s; }

/* ── Responsive 1024px ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-facts { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .hero-fact { flex: 1 1 200px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ── Responsive 980px ────────────────────────────────────── */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: flex; }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; inset-inline: 0;
    background: rgba(14,14,14,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    gap: 0;
    z-index: 99;
  }

  .nav.open a {
    border-bottom: 1px solid var(--border);
    padding: 13px 0;
    border-radius: 0;
  }

  .index-grid { grid-template-columns: 1fr 1fr; }
  .index-grid a { border-inline-start: 0; border-top: 1px solid var(--border); }
  .index-grid a:nth-child(-n + 2) { border-top: 0; }

  .split, .admin-grid, .product-layout { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
}

/* ── Responsive 680px ────────────────────────────────────── */
@media (max-width: 680px) {
  .container { width: min(1260px, calc(100% - 20px)); }
  .hero { min-height: auto; }
  .hero .container { padding-block: 40px; }
  .fields { grid-template-columns: 1fr; }
  .index-grid { grid-template-columns: 1fr; }
  .index-grid a { border-top: 1px solid var(--border); min-height: 0; }
  .index-grid a:first-child { border-top: 0; }
  .designer { grid-template-columns: 1fr; }
  .designer img { height: 260px; min-height: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item { border-inline-start: 0 !important; border-top: 1px solid var(--border); }
  .feature-item:first-child { border-top: 0; }
  .section { padding: 50px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .admin-row { flex-direction: column; align-items: flex-start; }
  .entry-top { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
  #joinForm .btn { width: 100%; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
