/* ===========================================================
   Global Arabic and Islamic Center — Design System
   Palette derived from the logo: navy, royal blue, gold.
   =========================================================== */

:root {
  --navy: #173a6b;
  --navy-dark: #0f2949;
  --royal: #2563c9;
  --gold: #c9962e;
  --gold-light: #e3b85a;
  --offwhite: #fbfaf7;
  --white: #ffffff;
  --charcoal: #666666;
  --muted: #000000;
  --line: #ece7dd;

  --shadow-sm: 0 2px 8px rgba(23, 58, 107, 0.08);
  --shadow-md: 0 8px 28px rgba(23, 58, 107, 0.12);
  --radius: 14px;
  --maxw: 1760px;

  --serif: "Poppins", "Inter", sans-serif;
  --sans: "Open Sans", system-ui, -apple-system, sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--offwhite);
  line-height: 1.7;
  font-size: 14px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--serif); color: var(--navy); line-height: 1.3; font-weight: 600; }
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

a { color: var(--royal); text-decoration: none; }
img { max-width: 100%; display: block; }
.arabic { font-family: var(--arabic); direction: rtl; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; transform: translateY(-150%); background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-md); }
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px, 5vw, 90px); }
.section { padding: 76px 0; }
.section--tint { background: var(--white); }
.center { text-align: center; }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
  color: var(--gold); margin-bottom: 14px;
}
.section-title { font-size: 26px; margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 680px; margin: 0 auto 44px; }
.section-sub.left { margin-left: 0; }

.gold-rule { width: 64px; height: 3px; background: var(--gold); border-radius: 3px; margin: 0 auto 26px; }
.center .gold-rule { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 14px;
  cursor: pointer; border: 2px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #3a2a06; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-dark); color: #dfe7f3; font-size: .74rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #dfe7f3; }
.topbar .creds { color: var(--gold-light); font-weight: 500; }
.topbar .tb-contact { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Header / nav ---------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; min-height: 122px; gap: 12px; }
.nav > nav[aria-label="Primary navigation"] { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 17px; text-decoration: none; }
.brand img { height: 112px; width: auto; }
.brand-name-text {
  font-family: "Roboto Condensed", var(--sans);
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
@media (max-width: 900px) {
  .brand-name-text { font-size: 1.15rem; }
}
@media (max-width: 600px) {
  .brand-name-text { display: none; }
}

.menu { display: flex; align-items: center; gap: 3px; list-style: none; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 15px 12px; color: var(--navy); font-weight: 700; font-size: 17px; border-radius: 8px; }
.menu > li > a:hover { background: var(--offwhite); color: var(--royal); }
.menu .has-drop > a::after { content: "▾"; margin-left: 6px; font-size: 11px; color: var(--gold); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--white);
  box-shadow: var(--shadow-md); border-radius: 12px; padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; border: 1px solid var(--line);
}
.menu .has-drop:hover .dropdown, .menu .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.menu a[aria-current="page"] { background: var(--offwhite); color: var(--royal); }
.dropdown a { display: block; padding: 10px 13px; border-radius: 8px; color: var(--charcoal); font-size: 15px; }
.dropdown a:hover { background: var(--offwhite); color: var(--royal); }

/* ---------- Main Nav Connect Links ---------- */
.nav-connect-item,
.nav-social-item {
  display: flex;
  align-items: center;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.nav-connect-links,
.nav-social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-connect-btn,
.nav-social-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border: 1px solid transparent;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 41, 73, 0.16);
  transition: all .22s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-connect-fb,
.nav-social-facebook {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.28);
}
.nav-connect-ig,
.nav-social-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(225, 48, 108, 0.28);
}
.nav-connect-x,
.nav-social-x {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.nav-connect-yt,
.nav-social-youtube {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 2px 6px rgba(255, 0, 0, 0.28);
}
.nav-connect-wa,
.nav-social-whatsapp {
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.28);
}
.nav-connect-mail,
.nav-social-email {
  background: #ea4335;
  border-color: #ea4335;
  box-shadow: 0 2px 6px rgba(234, 67, 53, 0.28);
}
.nav-connect-btn svg,
.nav-social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform .22s ease, filter .22s ease;
}
.nav-connect-ig svg,
.nav-social-instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.nav-connect-ig .icon-dot,
.nav-social-instagram .icon-dot {
  fill: currentColor;
  stroke: none;
}
.nav-connect-btn:hover,
.nav-social-link:hover {
  color: var(--white);
  transform: translateY(-2px) scale(1.08);
}
.nav-connect-fb:hover,
.nav-social-facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.3), 0 0 16px rgba(24, 119, 242, 0.65), 0 6px 14px rgba(24, 119, 242, 0.35);
}
.nav-connect-ig:hover,
.nav-social-instagram:hover {
  background: linear-gradient(135deg, #9640cf 0%, #ff2e2e 50%, #fdb954 100%);
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(253, 29, 29, 0.3), 0 0 16px rgba(225, 48, 108, 0.65), 0 6px 14px rgba(225, 48, 108, 0.35);
}
.nav-connect-x:hover,
.nav-social-x:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3), 0 0 16px rgba(0, 0, 0, 0.5), 0 6px 14px rgba(0, 0, 0, 0.35);
}
.nav-connect-yt:hover,
.nav-social-youtube:hover {
  background: #cc0000;
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.3), 0 0 16px rgba(255, 0, 0, 0.65), 0 6px 14px rgba(255, 0, 0, 0.35);
}
.nav-connect-wa:hover,
.nav-social-whatsapp:hover {
  background: #20bd5a;
  border-color: #20bd5a;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3), 0 0 16px rgba(37, 211, 102, 0.65), 0 6px 14px rgba(37, 211, 102, 0.35);
}
.nav-connect-mail:hover,
.nav-social-email:hover {
  background: #d93025;
  border-color: #d93025;
  box-shadow: 0 0 0 2px rgba(234, 67, 53, 0.3), 0 0 16px rgba(234, 67, 53, 0.65), 0 6px 14px rgba(234, 67, 53, 0.35);
}
.nav-connect-btn:hover svg,
.nav-social-link:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}
.nav-connect-btn:focus-visible,
.nav-social-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(37, 99, 201, 0.3), 0 0 18px rgba(37, 99, 201, 0.65);
}

/* Mobile drawer connect styling */
.mobile-menu-connect,
.mobile-menu-socials {
  margin-top: 10px;
  padding: 16px 22px 14px;
  border-top: 1px solid var(--line);
}
.mobile-connect-label,
.mobile-socials-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
}
.mobile-menu-connect .nav-connect-links,
.mobile-menu-socials .nav-social-links {
  gap: 10px;
}
.mobile-menu-connect .nav-connect-btn,
.mobile-menu-socials .nav-social-link {
  width: 38px;
  height: 38px;
}
.mobile-menu-connect .nav-connect-btn svg,
.mobile-menu-socials .nav-social-link svg {
  width: 17px;
  height: 17px;
}

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 30px; height: 3px; background: var(--navy); border-radius: 3px; margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--royal) 130%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .10; z-index: 2; pointer-events: none;
  background-image: radial-gradient(circle at 80% 20%, var(--gold) 0, transparent 38%),
                    radial-gradient(circle at 12% 85%, var(--royal) 0, transparent 42%); }
.hero-bgs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; }
.hero-bg.active { opacity: 0.18; }
.hero .container { position: relative; z-index: 3; padding-top: 48px; padding-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
.slides { position: relative; min-height: 200px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; max-width: 720px; }
.slide.active { opacity: 1; pointer-events: auto; position: relative; }
.slide h1 { color: var(--white); font-size: 36px; margin-bottom: 14px; }
.slide p { color: #e6ecf6; margin-bottom: 24px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.dots { display: flex; gap: 10px; margin-top: 24px; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.dots button.active { background: var(--gold); width: 30px; border-radius: 6px; }

/* ---------- Hero hadith ---------- */
.hero-hadith {
  position: relative;
  padding: 34px 36px 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-top: 4px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 24px 55px rgba(15, 41, 73, .28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hadith-label { display: inline-block; margin-bottom: 22px; color: var(--gold-light); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hadith-mark { position: absolute; top: 5px; right: 22px; color: rgba(255, 255, 255, .1); font-family: var(--serif); font-size: 7rem; line-height: 1; }
.hadith-slides { position: relative; height: 310px; }
.hadith-slide { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .55s ease, transform .55s ease; }
.hadith-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hero-hadith blockquote { position: relative; z-index: 1; width: 100%; align-self: center; }
.hero-hadith .hadith-arabic { color: var(--white); font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 700; line-height: 1.8; text-align: center; }
.hero-hadith .hadith-english { max-width: 460px; margin: 16px auto 20px; color: #edf2fa; font-family: var(--serif); font-size: 1.08rem; font-weight: 500; line-height: 1.65; text-align: center; }
.hero-hadith cite { display: block; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); color: var(--gold-light); font-size: .8rem; font-style: normal; font-weight: 600; text-align: center; }

/* ---------- Hero CTA form ---------- */
.hero-cta { position: relative; }
.trial-form {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 30px 60px rgba(15, 41, 73, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 4px solid var(--gold);
}
.trial-form h2 {
  font-size: 1.35rem; color: var(--navy); margin-bottom: 4px; font-weight: 700;
}
.trial-sub { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.trial-form .field { margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
.trial-form label {
  display: block; font-size: 0.72rem; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.trial-form input, .trial-form select, .trial-form textarea {
  width: 100%; font-family: var(--sans); font-size: .92rem; color: var(--charcoal);
  background: rgba(23, 58, 107, 0.04); border: 1.5px solid transparent; border-radius: 8px;
  padding: 10px 14px; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.trial-form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9962e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
  padding-right: 32px;
}
.trial-form input:focus, .trial-form select:focus, .trial-form textarea:focus {
  outline: none; border-color: var(--royal); box-shadow: 0 4px 12px rgba(37,99,201,.08);
  background: var(--white);
}
.trial-form textarea { resize: vertical; min-height: 44px; }
.trial-submit {
  width: 100%; justify-content: center; padding: 12px 24px; margin-top: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #3a2a06; border: none; border-radius: 8px; font-size: 0.95rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(201, 150, 46, 0.25); transition: all 0.25s ease;
}
.trial-submit:hover {
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201, 150, 46, 0.4);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}
.trial-note { font-size: .7rem; color: var(--muted); margin-top: 10px; text-align: center; line-height: 1.4; }

/* ---------- Trust strip ---------- */
.trust { background: var(--white); margin-top: -1px; }
.trust .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 0; }
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-item .ic { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--offwhite);
  display: grid; place-items: center; font-size: 1.4rem; color: var(--gold); border: 1px solid var(--line); }
.trust-item .ic img { width: 26px; height: 26px; }
.trust-item h4 { margin-bottom: 3px; }
.trust-item p { color: var(--muted); margin: 0; }

/* ---------- Program / course cards ---------- */
.cards { display: grid; gap: 24px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-thumb { width: 100%; height: 180px; overflow: hidden; position: relative; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-thumb img { transform: scale(1.06); }
.card-content { padding: 44px 26px 30px; position: relative; flex-grow: 1; display: flex; flex-direction: column; }
.card .ic {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; background: linear-gradient(135deg, var(--navy), var(--royal)); color: var(--gold-light);
  position: absolute; top: -30px; left: 26px; margin-bottom: 0;
  box-shadow: var(--shadow-sm); z-index: 2; border: 3px solid var(--white);
}
.card .ic img { width: 34px; height: 34px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 16px; }
.card ul { list-style: none; margin-bottom: 22px; flex-grow: 1; }
.card ul li { padding: 4px 0 4px 22px; position: relative; color: var(--charcoal); }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.card .link { font-weight: 600; color: var(--royal); margin-top: auto; }
.card .link::after { content: " →"; }

/* ---------- Why choose us ---------- */
.why { background: var(--navy); color: #e6ecf6; }
.why h2 { color: var(--white); }
.why .section-sub { color: #b9c6dd; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
@media (max-width: 600px) {
  .why-grid-split { grid-template-columns: 1fr; }
}
.why-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 22px; display: flex; gap: 13px; align-items: center; }
.why-item .tick { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.why-item span { font-weight: 500; color: var(--white); }

/* ---------- Ayah centerpiece ---------- */
.ayah { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); color: var(--navy-dark); text-align: center; }
.ayah .container { max-width: 820px; }
.ayah .mark { font-size: 3rem; font-family: var(--serif); line-height: .6; color: rgba(15,41,73,.35); }
.ayah blockquote { font-family: var(--serif); font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-style: italic; margin: 14px 0 18px; }
.ayah cite { font-style: normal; font-weight: 600; font-size: .95rem; }

/* ---------- Female teachers / split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .media { background: linear-gradient(135deg, var(--navy), var(--royal)); border-radius: var(--radius);
  min-height: 320px; display: grid; place-items: center; box-shadow: var(--shadow-md); overflow: hidden; }
.split .media img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.split .media.photo { background: none; }
.split .media.photo img { padding: 0; object-fit: cover; }
.who-we-are-gallery { position: relative; width: 100%; height: 380px; }
.who-we-are-gallery .gallery-large { width: 75%; height: 85%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.who-we-are-gallery .gallery-large img { width: 100%; height: 100%; object-fit: cover; }
.who-we-are-gallery .gallery-small { position: absolute; bottom: 0; right: 0; width: 55%; height: 60%; border-radius: var(--radius); border: 6px solid var(--white); overflow: hidden; box-shadow: var(--shadow-md); z-index: 2; }
.who-we-are-gallery .gallery-small img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .who-we-are-gallery { height: 320px; }
}
.split h2 { margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 16px; }

/* ---------- Split intro section ---------- */
.intro-copy p { margin-bottom: 18px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.testi .stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.testi p { font-size: .96rem; color: var(--charcoal); margin-bottom: 18px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .av { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; font-weight: 700; }
.testi .who b { color: var(--navy); font-family: var(--serif); }
.testi .who small { color: var(--muted); display: block; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; color: var(--white); text-align: center; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark), var(--royal)); }
.cta-banner::before { content: ""; position: absolute; inset: 0; opacity: .12; z-index: 1;
  background-image: url("../img/cta-bg.png"); background-size: cover; background-position: center; }
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.cta-banner p { color: #d7e0f0; max-width: 600px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #c4d0e4; padding: 60px 0 0; font-size: .92rem; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; }
.footer a { color: #c4d0e4; }
.footer ul a { overflow-wrap: anywhere; }
.footer a:hover { color: var(--gold-light); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer .fbrand img { height: 84px; width: auto; margin-bottom: 14px; background: #fff;
  padding: 8px 12px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.footer .fbrand p { color: #9fb0cc; }
.footer .community-links { display: flex; gap: 10px; margin-top: 18px; }
.footer .community-link { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: #e8eef8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,.12); transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.footer .community-link svg { width: 19px; height: 19px; fill: currentColor; }
.footer .community-instagram svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer .community-instagram .icon-dot { fill: currentColor; stroke: none; }
.footer .community-link:hover { color: var(--white); border-color: transparent; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.22); }
.footer .community-whatsapp:hover { background: #25d366; }
.footer .community-instagram:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045); }
.footer .community-x:hover { background: #050505; }
.footer .community-facebook:hover { background: #1877f2; }
.footer .community-youtube:hover { background: #ff0000; }
.footer .community-link:focus-visible { outline: 3px solid rgba(242, 196, 84, .55); outline-offset: 3px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; color: #8095b3; font-size: .85rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 58px; height: 58px;
  border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.5); transition: transform .2s ease, box-shadow .2s ease; }
.wa-float svg { width: 29px; height: 29px; fill: currentColor; }
.wa-float:hover { color: #fff; transform: scale(1.08); box-shadow: 0 10px 26px rgba(37,211,102,.55); }
.wa-float:focus-visible { outline: 3px solid rgba(37, 211, 102, .35); outline-offset: 4px; }

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; }

/* ---------- Interior pages ---------- */
.page-hero { position: relative; overflow: hidden; min-height: 360px; display: grid; align-items: center; color: var(--white); background: linear-gradient(120deg, rgba(15,41,73,.97), rgba(23,58,107,.91)); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,41,73,.92) 0%, rgba(15,41,73,.62) 52%, rgba(15,41,73,.2) 100%); z-index: 1; }
.page-hero.has-image { background-size: cover; background-position: center; }
.page-hero .container { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; }
.page-hero .hero-copy-inner { max-width: 760px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 4rem); margin: 8px 0 18px; }
.page-hero p { color: #e6ecf6; font-size: 1.08rem; max-width: 680px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #cad6e8; font-size: .83rem; }
.breadcrumbs a { color: var(--gold-light); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; opacity: .7; }

.prose { max-width: 820px; }
.prose p, .prose ul, .prose ol { margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose h2, .prose h3 { margin: 30px 0 12px; }
.lead { font-size: 1.08rem; color: var(--muted); }
.note { padding: 18px 22px; border-left: 4px solid var(--gold); background: #fff8e8; border-radius: 0 10px 10px 0; }
.muted { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.feature-box .number { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); font-weight: 800; margin-bottom: 16px; }
.feature-box .book-cover { display: block; width: auto; max-width: 100%; height: 172px; margin: 2px auto 22px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 10px 20px rgba(15, 41, 73, .14); }
.feature-box h3 { font-size: 1.06rem; margin-bottom: 8px; }
.feature-box p { color: var(--muted); }
.feature-box p.arabic { font-weight: 700; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-tile { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: .2s ease; overflow: hidden; }
.course-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-tile-thumb { width: calc(100% + 52px); height: 188px; object-fit: cover; margin: -26px -26px 22px; border-bottom: 1px solid var(--line); }
.course-tile .tag, .pill { display: inline-flex; align-self: flex-start; padding: 5px 10px; border-radius: 999px; color: var(--royal); background: #edf3ff; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.course-tile h3 { font-size: 1.1rem; margin-bottom: 9px; }
.course-tile p { color: var(--muted); margin-bottom: 16px; }
.course-tile .link { margin-top: auto; font-weight: 700; }
.course-tile.is-hidden { display: none; }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.filter-btn { border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: 9px 17px; cursor: pointer; font-weight: 700; }
.filter-btn:hover, .filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.accordion { max-width: 940px; margin: 0 auto; display: grid; gap: 12px; }
.accordion-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; border: 0; background: var(--white); color: var(--navy); cursor: pointer; text-align: left; font-weight: 700; }
.accordion-trigger::after { content: "+"; color: var(--gold); font-size: 1.35rem; }
.accordion-trigger[aria-expanded="true"]::after { content: "−"; }
.accordion-panel { padding: 0 22px 20px; color: var(--muted); }
.accordion-panel[hidden] { display: none; }
.accordion-panel ul { padding-left: 20px; margin-top: 10px; }

.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.teacher-department { margin-top: 68px; }
.teacher-department-heading { margin-bottom: 30px; text-align: center; }
.teacher-department-heading h2 { margin-top: 8px; font-size: clamp(1.65rem, 3vw, 2.15rem); }
.teacher-department .teacher-grid { max-width: 790px; margin: 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.teacher-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 38px 30px 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0, var(--white) 190px);
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 41, 73, .08);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.teacher-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--navy), var(--gold)); }
.teacher-card:hover { transform: translateY(-6px); border-color: #d5c08b; box-shadow: 0 18px 38px rgba(15, 41, 73, .14); }
.teacher-avatar {
  position: relative;
  width: 168px;
  height: 168px;
  flex: 0 0 168px;
  display: block;
  margin: 0 auto 24px;
  object-fit: cover;
  object-position: center top;
  background: var(--navy);
  border: 5px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #ead9aa, 0 12px 26px rgba(15, 41, 73, .18);
}
.teacher-card h3 { display: grid; place-items: center; width: 100%; min-height: 3.304rem; max-width: 290px; font-size: 1.18rem; line-height: 1.4; }
.teacher-card .role { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; margin: 10px 0 17px; padding: 6px 13px; color: var(--navy); background: #f5ecd7; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.3; }
.teacher-card p { max-width: 330px; margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.7; }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.fee-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.fee-table caption { padding: 20px; color: var(--navy); font-weight: 800; text-align: left; font-size: 1.05rem; }
.fee-table th { background: var(--navy); color: var(--white); text-align: left; }
.fee-table th, .fee-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.fee-table tbody tr:nth-child(even) { background: #fcfaf5; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--navy); font-weight: 700; font-size: .82rem; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #d9dfe8; border-radius: 9px; background: #fbfcfe; padding: 12px 14px; color: var(--charcoal); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-status { margin-top: 14px; color: var(--navy); font-weight: 700; }

.empty-state { max-width: 850px; margin: 0 auto; padding: clamp(30px, 6vw, 70px); text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.empty-state img { width: min(100%, 520px); height: 280px; object-fit: cover; margin: 0 auto 26px; border-radius: var(--radius); }
.empty-state h2 { margin-bottom: 12px; }
.empty-state p { max-width: 590px; margin: 0 auto 24px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.contact-item b { display: block; color: var(--navy); margin-bottom: 4px; }
.legal { max-width: 900px; margin: 0 auto; }
.legal h2 { margin: 32px 0 10px; }
.legal p, .legal ul { margin-bottom: 16px; }
.legal ul { padding-left: 22px; }
.error-page { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 70px 20px; }
.error-code { font-size: clamp(5rem, 18vw, 10rem); color: var(--gold); line-height: 1; font-family: var(--serif); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .menu > li > a { padding: 12px 8px; font-size: 15px; }
  .nav-connect-item, .nav-social-item { margin-left: 6px; padding-left: 8px; }
  .nav-connect-links, .nav-social-links { gap: 4px; }
  .nav-connect-btn, .nav-social-link { width: 30px; height: 30px; }
  .nav-connect-btn svg, .nav-social-link svg { width: 13.5px; height: 13.5px; }
}
@media (max-width: 1100px) {
  .menu { display: none; }
  .hamburger { display: block; }
  .mobile-menu.open { display: block; background: var(--white); border-top: 1px solid var(--line); padding: 10px 0; }
  .mobile-menu a { display: block; padding: 13px 22px; color: var(--navy); font-weight: 600; font-size: 1rem; }
  .mobile-menu a:hover { background: var(--offwhite); }
  .mobile-menu .sub { padding-left: 38px; font-size: .9rem; color: var(--muted); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-cta { order: -1; }
  .trust .grid, .why-grid, .testi-grid, .cards.cols-3 { grid-template-columns: 1fr 1fr; }
  .split, .footer .cols { grid-template-columns: 1fr; }
  .feature-grid, .course-grid, .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .split .media { min-height: 220px; }
}
@media (max-width: 920px) { .container { padding: 0 24px; } }
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .hero-hadith { padding: 28px 22px 26px; }
  .hadith-slides { height: 340px; }
  .hero-hadith .hadith-arabic { font-size: 1.65rem; }
  .trust .grid, .why-grid, .testi-grid, .cards.cols-3, .cards.cols-2 { grid-template-columns: 1fr; }
  .topbar .tb-contact { display: none; }
  .topbar .container { justify-content: center; padding-top: 5px; padding-bottom: 5px; text-align: center; }
  .footer .cols { gap: 28px; }
  .feature-grid, .course-grid, .teacher-grid, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .page-hero { min-height: 310px; }
}

/* ===========================================================
   Video Library Component Styles
   =========================================================== */
.video-spotlight {
  background: linear-gradient(135deg, #122b52 0%, #091a33 100%);
  border: 1px solid rgba(201, 150, 46, 0.28);
  border-radius: 20px;
  color: var(--white);
  padding: 36px;
  margin-bottom: 48px;
  box-shadow: 0 16px 40px rgba(15, 41, 73, 0.25);
  position: relative;
  overflow: hidden;
}
.video-spotlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c9962e, #e3b85a, #2563c9);
}
.video-spotlight-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}
.video-spotlight-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  cursor: pointer;
  background: #000;
}
.video-spotlight-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.video-spotlight-media:hover .video-spotlight-thumb {
  transform: scale(1.04);
}
.video-spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(201, 150, 46, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.video-spotlight-media:hover .play-btn-large {
  transform: scale(1.1);
  background: #e3b85a;
  box-shadow: 0 0 0 12px rgba(201, 150, 46, 0.45);
}
.play-btn-large svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  margin-left: 4px;
}
.video-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 150, 46, 0.22);
  color: #ffd875;
  border: 1px solid rgba(201, 150, 46, 0.45);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.video-spotlight-title {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 14px;
}
.video-spotlight-desc {
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 22px;
}
.video-spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  font-size: 0.86rem;
  color: #94a3b8;
}
.video-spotlight-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.video-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Controls: Search, Filter, Counter */
.video-controls {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.video-controls-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.video-search-wrap {
  position: relative;
  flex: 1 1 280px;
  max-width: 440px;
}
.video-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--offwhite);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--navy);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.video-search-input:focus {
  outline: none;
  border-color: var(--royal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 201, 0.12);
}
.video-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #94a3b8;
  pointer-events: none;
}
.video-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: none;
}
.video-count-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}
.video-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.video-pill-btn {
  border: 1px solid var(--line);
  background: var(--offwhite);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.video-pill-btn:hover {
  background: #edf3ff;
  border-color: #b9d2fd;
  color: var(--royal);
}
.video-pill-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 2px 6px rgba(23, 58, 107, 0.2);
}

/* Video Grid & Cards */
.video-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.video-card:hover {
  transform: translateY(-5px);
  border-color: #d1d9e5;
  box-shadow: var(--shadow-md);
}
.video-card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}
.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.video-card-thumb-wrap:hover .video-card-thumb {
  transform: scale(1.05);
}
.video-card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.video-card-thumb-wrap:hover .video-card-play-overlay {
  background: rgba(15, 23, 42, 0.55);
}
.video-card-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background 0.2s;
}
.video-card-thumb-wrap:hover .video-card-play-icon {
  transform: scale(1.12);
  background: #e3b85a;
}
.video-card-play-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 2px;
}
.video-card-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.video-card-topic-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.video-card-topic-tag.topic-arabic { background: #1e40af; }
.video-card-topic-tag.topic-quran { background: #047857; }
.video-card-topic-tag.topic-islamic { background: #b45309; }
.video-card-topic-tag.topic-general { background: #374151; }

.video-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.video-card-series {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--royal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.video-card-title {
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
  cursor: pointer;
}
.video-card-title:hover {
  color: var(--royal);
}
.video-card-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: #64748b;
}
.video-card-instructor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #334155;
}
.video-card-instructor svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}
.video-card-level {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.video-card-actions {
  padding: 12px 20px 16px;
  background: #fafbfc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.video-card-watch-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.video-card-watch-btn:hover {
  background: var(--royal);
}
.video-card-trial-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.video-card-trial-btn:hover {
  color: #b07d1e;
  text-decoration: underline;
}

/* Video Theater Modal */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s ease forwards;
}
.video-modal-backdrop.is-open {
  display: flex;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.video-modal-container {
  background: var(--white);
  border-radius: 18px;
  max-width: 960px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}
@keyframes modalSlideUp {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.video-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}
.video-modal-close-btn:hover {
  background: #000;
  transform: scale(1.08);
}
.video-modal-close-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.video-modal-player-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background: #000;
}
.video-modal-player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-body {
  padding: 28px 32px 32px;
}
.video-modal-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.video-modal-title {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 12px;
}
.video-modal-instructor-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 18px;
}
.video-modal-desc {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 24px;
  white-space: pre-line;
}
.video-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 980px) {
  .video-spotlight-inner { grid-template-columns: 1fr; }
  .video-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .video-cards-grid { grid-template-columns: 1fr; }
  .video-spotlight { padding: 22px; }
  .video-controls { padding: 16px; }
  .video-controls-header { flex-direction: column; align-items: stretch; }
  .video-search-wrap { max-width: 100%; }
  .video-modal-body { padding: 20px 18px; }
  .video-modal-actions { flex-direction: column; align-items: stretch; }
  .video-modal-actions .btn { text-align: center; }
}
