/* ==========================================================================
   MARKAZ-UL-HUFFAZ — PUBLIC WEBSITE DESIGN SYSTEM
   Brand Tokens:
     - Primary Green: #24474f (~60% visual hierarchy)
     - Gold:          #ab8126 (~30% visual hierarchy)
     - Darker Green:  #1d2e2e (~10% visual hierarchy)
   ========================================================================== */

:root {
  --muh-primary: #24474f;
  --muh-primary-dark: #1a343a;
  --muh-primary-light: #f0f5f4;
  --muh-primary-tint: #e4eeec;

  --muh-gold: #ab8126;
  --muh-gold-dark: #8c671b;
  --muh-gold-light: #faf5ec;
  --muh-gold-border: #e8d7b3;

  --muh-dark: #1d2e2e;
  --muh-dark-surface: #152222;

  --muh-white: #ffffff;
  --muh-bg: #f9fbfb;
  --muh-bg-alt: #f2f6f5;
  --muh-text: #1a2527;
  --muh-text-muted: #536467;
  --muh-text-light: #809295;
  --muh-border: #dbe4e2;
  --muh-border-light: #edf2f1;

  --muh-radius-sm: 6px;
  --muh-radius-md: 10px;
  --muh-radius-lg: 16px;
  --muh-radius-pill: 9999px;

  --muh-shadow-sm: 0 2px 4px rgba(29, 46, 46, 0.04);
  --muh-shadow-md: 0 6px 18px rgba(29, 46, 46, 0.07);
  --muh-shadow-lg: 0 16px 36px rgba(29, 46, 46, 0.1);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Segoe UI Arabic", "Traditional Arabic", "Amiri", "Tahoma", serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--muh-bg);
  color: var(--muh-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

/* ==========================================================================
   TOP IDENTITY BAR & HEADER
   ========================================================================== */

.top-bar {
  background-color: var(--muh-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 0.45rem 1.5rem;
  border-bottom: 1px solid rgba(171, 129, 38, 0.3);
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-arabic {
  font-family: var(--font-arabic);
  color: #d6b265;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-header {
  background-color: var(--muh-primary);
  color: var(--muh-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(29, 46, 46, 0.15);
  border-bottom: 2px solid var(--muh-gold);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.site-brand-logo {
  height: 48px;
  width: auto;
  border-radius: var(--muh-radius-sm);
  background: var(--muh-white);
  padding: 2px;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
}

.site-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muh-white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.site-brand-sub {
  font-size: 0.75rem;
  color: #e0d0a5;
  letter-spacing: 0.03em;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f7dfa5;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--muh-gold);
  border-radius: 2px;
}

.nav-cta-btn {
  background-color: var(--muh-gold);
  color: var(--muh-white);
  padding: 0.5rem 1.2rem;
  border-radius: var(--muh-radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-cta-btn:hover {
  background-color: var(--muh-gold-dark);
  transform: translateY(-1px);
  color: var(--muh-white);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--muh-white);
  padding: 0.4rem 0.65rem;
  border-radius: var(--muh-radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */

.page-wrapper {
  flex: 1;
}

.section {
  padding: 4.5rem 1.5rem;
}

.section-sm {
  padding: 2.5rem 1.5rem;
}

.section-alt {
  background-color: var(--muh-bg-alt);
}

.section-dark {
  background-color: var(--muh-dark);
  color: var(--muh-white);
}

.section-primary {
  background-color: var(--muh-primary);
  color: var(--muh-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muh-gold);
  margin-bottom: 0.5rem;
}

.section-dark .section-tag {
  color: #dfbe73;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--muh-primary);
  margin-bottom: 0.75rem;
}

.section-dark .section-title {
  color: var(--muh-white);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muh-text-muted);
}

.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  background: linear-gradient(145deg, var(--muh-primary) 0%, var(--muh-dark) 100%);
  color: var(--muh-white);
  padding: 5rem 1.5rem 5.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--muh-gold);
}

.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: radial-gradient(#ab8126 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(171, 129, 38, 0.2);
  border: 1px solid rgba(171, 129, 38, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: var(--muh-radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f7dfa5;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--muh-white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-title span {
  color: #dfbe73;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.25rem;
  line-height: 1.6;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-media-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(171, 129, 38, 0.4);
  border-radius: var(--muh-radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-media-card:hover {
  border-color: var(--muh-gold);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--muh-radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.hero-caption {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(29, 46, 46, 0.75);
  border: 1px solid rgba(171, 129, 38, 0.35);
  border-radius: var(--muh-radius-sm);
  text-align: center;
}

.hero-caption-phrase {
  font-size: 0.9375rem;
  color: #f7dfa5;
  line-height: 1.5;
  font-weight: 500;
}

.hero-caption-phrase strong {
  color: var(--muh-white);
  font-weight: 700;
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.hero-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(171, 129, 38, 0.25);
  border-radius: var(--muh-radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.hero-highlight-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-highlight-item strong {
  color: #dfbe73;
  margin-right: 0.35rem;
}

.hero-emblem-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(171, 129, 38, 0.35);
  border-radius: var(--muh-radius-lg);
  padding: 2.25rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-emblem-img {
  max-width: 220px;
  margin: 0 auto 1.5rem auto;
  border-radius: var(--muh-radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-emblem-motto {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  color: #dfbe73;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.hero-emblem-trans {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--muh-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--muh-gold);
  color: var(--muh-white);
}

.btn-primary:hover {
  background-color: var(--muh-gold-dark);
  color: var(--muh-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(171, 129, 38, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--muh-white);
}

.btn-secondary:hover {
  border-color: var(--muh-white);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--muh-white);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--muh-primary);
  color: var(--muh-primary);
}

.btn-outline-primary:hover {
  background-color: var(--muh-primary);
  color: var(--muh-white);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   FEATURE & VALUE CARDS
   ========================================================================== */

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--muh-white);
  border: 1px solid var(--muh-border);
  border-radius: var(--muh-radius-md);
  padding: 2rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--muh-shadow-md);
  border-color: var(--muh-gold);
}

.feature-card-icon {
  width: 46px;
  height: 46px;
  background-color: var(--muh-primary-light);
  border: 1px solid var(--muh-border);
  border-radius: var(--muh-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--muh-primary);
  margin-bottom: 1.25rem;
}

.feature-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--muh-primary);
  margin-bottom: 0.6rem;
}

.feature-card-desc {
  font-size: 0.9375rem;
  color: var(--muh-text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   SCHOOL OWNER / FOUNDER PROFILE (Observation 3)
   ========================================================================== */

.founder-card {
  background: var(--muh-white);
  border: 1px solid var(--muh-border);
  border-top: 4px solid var(--muh-gold);
  border-radius: var(--muh-radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--muh-shadow-md);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .founder-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
}

.founder-image-col {
  display: flex;
  justify-content: center;
}

.founder-image-frame {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--muh-gold) 0%, var(--muh-primary) 100%);
  box-shadow: 0 12px 32px rgba(29, 46, 46, 0.2);
}

.founder-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--muh-white);
}

.founder-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--muh-primary);
  color: #f7dfa5;
  border: 1px solid var(--muh-gold);
  padding: 0.35rem 0.85rem;
  border-radius: var(--muh-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.founder-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--muh-primary);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.founder-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muh-gold-dark);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.founder-bio p {
  font-size: 0.9375rem;
  color: var(--muh-text);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.founder-bio p:last-child {
  margin-bottom: 1.5rem;
}

.founder-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .founder-actions {
    justify-content: center;
  }
}

/* ==========================================================================
   PROGRAMMES & PATHWAYS DETAILED STYLING (Observation 2)
   ========================================================================== */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
}

.program-card {
  background: var(--muh-white);
  border: 1px solid var(--muh-border);
  border-radius: var(--muh-radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--muh-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--muh-shadow-lg);
  border-color: var(--muh-gold);
}

.program-card.featured {
  border-top: 5px solid var(--muh-gold);
  box-shadow: var(--muh-shadow-md);
}

.program-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--muh-radius-pill);
  background: var(--muh-gold-light);
  color: var(--muh-gold-dark);
  border: 1px solid var(--muh-gold-border);
  margin-bottom: 1rem;
}

.program-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--muh-primary);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.program-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muh-gold-dark);
  margin-bottom: 1rem;
}

.program-desc {
  font-size: 0.9375rem;
  color: var(--muh-text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.program-list-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muh-primary);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.program-list li {
  font-size: 0.875rem;
  color: var(--muh-text);
  padding: 0.4rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-bottom: 1px dashed var(--muh-border-light);
  line-height: 1.45;
}

.program-list li:last-child {
  border-bottom: none;
}

.program-list li::before {
  content: "✓";
  color: var(--muh-gold);
  font-weight: 700;
  flex-shrink: 0;
}

.program-footnote {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--muh-text-muted);
  background: var(--muh-bg-alt);
  padding: 0.75rem 1rem;
  border-radius: var(--muh-radius-sm);
  border-left: 3px solid var(--muh-gold);
  margin-top: auto;
  margin-bottom: 1.25rem;
}

/* What makes Markaz different callout */
.distinction-pathways-prominent {
  background: linear-gradient(135deg, var(--muh-primary) 0%, var(--muh-dark) 100%);
  color: var(--muh-white);
  border: 2px solid var(--muh-gold);
  border-radius: var(--muh-radius-md);
  padding: 1.6rem 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 12px 28px rgba(29, 46, 46, 0.25);
  text-align: center;
}

.distinction-pathways-prominent p {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f7dfa5;
  line-height: 1.55;
  margin: 0;
}

/* Parents Stay Connected Card */
.parents-connected-box {
  background: var(--muh-white);
  border: 1px solid var(--muh-gold-border);
  border-left: 5px solid var(--muh-gold);
  border-radius: var(--muh-radius-md);
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: var(--muh-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 768px) {
  .parents-connected-box {
    flex-direction: column;
    text-align: center;
  }
}


/* ==========================================================================
   YOUTUBE SHOWCASE SECTION ("EXPERIENCE OUR LEARNING")
   Matches client reference video.ui.jpeg
   ========================================================================== */

.video-section {
  background-color: var(--muh-dark);
  color: var(--muh-white);
  padding: 5rem 1.5rem;
  border-top: 2px solid var(--muh-gold);
  border-bottom: 2px solid var(--muh-gold);
  position: relative;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.video-card {
  background: var(--muh-dark-surface);
  border: 1px solid rgba(171, 129, 38, 0.3);
  border-radius: var(--muh-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--muh-gold);
}

.video-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0b1313;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumb-img {
  transform: scale(1.03);
}

.video-play-btn {
  position: absolute;
  width: 60px;
  height: 42px;
  background-color: rgba(29, 46, 46, 0.85);
  border: 2px solid #dfbe73;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.video-play-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #dfbe73;
  margin-left: 3px;
}

.video-card:hover .video-play-btn {
  background-color: var(--muh-gold);
  border-color: var(--muh-white);
  transform: scale(1.1);
}

.video-card:hover .video-play-triangle {
  border-color: transparent transparent transparent var(--muh-white);
}

.video-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.video-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #dfbe73;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.video-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--muh-white);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-cta {
  margin-top: auto;
}

.video-cta-pill {
  display: block;
  text-align: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--muh-radius-pill);
  background-color: var(--muh-gold);
  color: var(--muh-white);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.video-cta-pill:hover {
  background-color: var(--muh-gold-dark);
  color: var(--muh-white);
  transform: translateY(-1px);
}

/* ==========================================================================
   CONTACT FORM & INFO
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info-panel {
  background-color: var(--muh-primary);
  color: var(--muh-white);
  border-radius: var(--muh-radius-lg);
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--muh-gold);
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info-desc {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(171, 129, 38, 0.2);
  border: 1px solid var(--muh-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dfbe73;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #dfbe73;
  margin-bottom: 0.2rem;
}

.contact-item-value {
  font-size: 0.9375rem;
  color: var(--muh-white);
  line-height: 1.4;
}

.contact-form-card {
  background: var(--muh-white);
  border: 1px solid var(--muh-border);
  border-radius: var(--muh-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--muh-shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muh-text);
  margin-bottom: 0.4rem;
}

.form-label span.req {
  color: #dc2626;
  margin-left: 0.2rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--muh-border);
  border-radius: var(--muh-radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--muh-text);
  background-color: var(--muh-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--muh-primary);
  box-shadow: 0 0 0 3px rgba(36, 71, 79, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}

.alert-box {
  padding: 1rem 1.25rem;
  border-radius: var(--muh-radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--muh-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 1.5rem 2rem 1.5rem;
  border-top: 3px solid var(--muh-gold);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
  background: var(--muh-white);
  padding: 2px;
  border-radius: var(--muh-radius-sm);
}

.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muh-white);
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.footer-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #dfbe73;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #dfbe73;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  gap: 0.4rem;
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.footer-bottom-row strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-bottom-tagline {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cards-grid-3,
  .video-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--muh-primary-dark);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid var(--muh-gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  .main-nav.open {
    display: flex;
  }
  .cards-grid-4,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-arabic {
    display: none;
  }
}


/* Homepage announcements: share public brand tokens and button styles. */
.announcements {
  scroll-margin-top: 7rem;
  background: radial-gradient(ellipse at top left, var(--muh-gold-border), transparent 50%),
    linear-gradient(135deg, var(--muh-gold-light), var(--muh-primary-tint));
  border-bottom: 1px solid var(--muh-gold-border);
}
.announcements .section-tag { color: var(--muh-gold-dark); }
.announcements .section-header { margin-bottom: 2.5rem; }
.announcement-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: start; }
.announcement-card { min-width: 0; background: var(--muh-white); border: 1px solid var(--muh-gold-border); border-radius: var(--muh-radius-lg); overflow: hidden; box-shadow: var(--muh-shadow-md); }
.announcement-heading { position: relative; isolation: isolate; padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(130deg, var(--muh-primary), var(--muh-primary-dark)); color: var(--muh-white); border-top: 4px solid var(--muh-gold); }
.announcement-heading::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: url("../images/announcements/halaqah-header.aac514e24e30.webp");
  background-size: cover; background-position: right center;
}
.announcement-heading-holiday::before {
  background-image: url("../images/announcements/holiday-header.ba42578eafdd.webp");
}
.announcement-heading-holiday { background: linear-gradient(130deg, var(--muh-dark), var(--muh-primary)); }
.announcement-heading::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(29, 46, 46, .96) 0%, rgba(29, 46, 46, .9) 45%, rgba(29, 46, 46, .82) 65%, rgba(29, 46, 46, .25) 100%);
}
.announcement-new {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-bottom: 1.25rem; padding: .4rem .8rem;
  border: 1px solid var(--muh-gold-border); border-radius: var(--muh-radius-pill);
  background: linear-gradient(135deg, #f7dfa5, #dfbe73);
  color: var(--muh-dark); box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
  font-size: .75rem; font-weight: 800; letter-spacing: .1em; line-height: 1.25;
}
.announcement-new span { font-size: 1rem; line-height: 1; }
.announcement-card .announcement-actions .btn {
  background: var(--muh-primary); color: var(--muh-white);
}
.announcement-card .announcement-actions .btn:hover {
  background: var(--muh-primary-dark);
}
.announcement-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #f7dfa5; margin-bottom: .75rem; }
.announcement-heading h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.05; letter-spacing: -.025em; max-width: 19ch; margin-bottom: .75rem; text-wrap: balance; }
.announcement-subtitle { color: #f7dfa5; font-size: clamp(1.05rem, 2vw, 1.3rem); font-style: italic; }
.announcement-tagline { margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid #dfbe73; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.5; color: var(--muh-white); }
.announcement-body { padding: clamp(1.25rem, 4vw, 3rem); color: var(--muh-text-muted); }
.announcement-lead { color: var(--muh-primary); font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 750; line-height: 1.3; margin-bottom: .6rem; }
.announcement-intro { max-width: 70ch; }
.announcement-content { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; margin-top: 2rem; align-items: start; }
.announcement-curriculum, .announcement-enrolment { min-width: 0; }
.announcement-enrolment { padding: 1.5rem; background: var(--muh-gold-light); border-radius: var(--muh-radius-md); }
.announcement-enquiry-note { margin-top: 1.25rem; font-size: .875rem; }
.announcement-body h4 { color: var(--muh-primary); font-size: 1rem; margin: 0 0 1rem; }
.announcement-topics { list-style: none; display: grid; gap: 1.25rem; counter-reset: topic; }
.announcement-topics li { position: relative; padding-left: 3rem; counter-increment: topic; }
.announcement-topics li::before { content: counter(topic, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; background: var(--muh-primary-light); border-radius: var(--muh-radius-sm); color: var(--muh-primary); font-weight: 700; font-size: .75rem; }
.announcement-topics strong, .announcement-topics span { display: block; }
.announcement-topics strong { color: var(--muh-primary); font-size: .9375rem; }
.announcement-topics span { font-size: .875rem; margin-top: .2rem; }
.announcement-details { margin: 0; padding: 0; }
.announcement-details > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; padding-top: .75rem; font-size: .875rem; }
.announcement-details dt { font-weight: 600; color: var(--muh-primary); }
.announcement-details dd { margin: 0; }
.announcement-fee { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 750; color: var(--muh-primary); }
.announcement-date { display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin-top: 1.25rem; padding: .85rem 1rem; background: var(--muh-gold-light); color: var(--muh-primary); border-radius: var(--muh-radius-sm); font-size: .875rem; font-weight: 650; }
.announcement-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.announcement-actions .btn { white-space: nowrap; padding-inline: 1.1rem; min-height: 44px; }
.announcement-phone, .announcement-contact a { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; color: var(--muh-primary); }
.announcement-phone { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.announcement-contact { margin-top: 1.5rem; text-align: center; font-size: .9375rem; color: var(--muh-text-muted); }
.announcements a:focus-visible { outline: 3px solid var(--muh-primary); outline-offset: 4px; }
.announcement-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .announcement-heading::after { background: linear-gradient(90deg, rgba(29, 46, 46, .94), rgba(29, 46, 46, .8)); }
  .announcement-content { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
}
@media (max-width: 480px) {
  .announcement-heading, .announcement-body { padding: 1.25rem; }
  .announcement-enrolment { padding: 1rem; }
  .announcement-details > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .announcement-actions { gap: .5rem; }
}
