/*
Theme Name: Rawdhatul Ilm Wal Huda
Theme URI: https://www.rawdha.org
Author: Rawdha Web Team
Description: Official theme for Rawdhatul Ilm Wal Huda — Garden of Islamic Knowledge & Guidance. Features teal and tan branding, Customizer-editable content, and responsive design.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: rawdha
*/

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Kill WordPress default content/block margins that cause gaps */
.wp-site-blocks, .entry-content, .wp-block-post-content,
body > div > div { margin-top: 0 !important; padding-top: 0 !important; }
.wp-block-group, .wp-block-columns { margin-top: 0; }
.is-layout-constrained > :first-child { margin-top: 0 !important; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  color: var(--foreground);
  background: var(--background);
  font-size: 1.125rem;
  line-height: 1.8;
  padding-top: 94px;
}
body,
input,
textarea,
select,
button,
p,
li,
blockquote,
figcaption,
table,
td,
th,
.page-header p,
.content-block,
.content-block p,
.content-block li,
.program-card p,
.info-card p,
.info-card li,
.resource-card p,
.contact-panel p,
.principal .message p,
.principal .signature,
.notice-item-body,
.programme-body,
.hero p,
.footer-tagline {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h3, h4, h5, h6 { font-weight: 500; letter-spacing: 0; }
.arabic {
  font-family: 'Noto Naskh Arabic', serif;
  direction: rtl;
  text-align: right;
  line-height: 2;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Variables ── */
:root {
  /* Brand colours */
  --gold:         #c4956a;
  --gold-deep:    #a07548;
  --brown:        #2d8a88;
  --cream:        #e0f0ef;
  --green:        #2d8a88;
  --espresso:     #c4956a;
  --sand:         #e0f0ef;
  --paper:        #e8f4f3;
  --ink:          #1f2d30;
  --saffron:      #d1a17a;
  --apricot:      #d7b39a;
  --coral:        #bf9a82;
  --peach:        #dfc1ae;
  --sky:          #d5e8eb;
  --mint:         #dfeaea;
  --lilac:        #e7e0db;

  /* Semantic tokens */
  --primary:      #2d8a88;
  --primary-fg:   #fff;
  --foreground:   #1f2d30;
  --background:   #e0f0ef;
  --card:         #cce6e5;
  --muted:        #5f6b6d;
  --secondary:    #c4956a;
  --border:       #8ec7c6;

  /* Gradients */
  --gold-gradient:  #a07548;
  --brown-surface:  #a07548;
  --warm-panel:     #faf6f1;
  --warm-highlight: #f6eee6;
  --deep-surface:   #6f4c2d;
  --hero-overlay:   linear-gradient(180deg, rgba(18, 44, 43, 0.58), rgba(18, 44, 43, 0.8));

  --container: 1200px;
}

/* ── Utility ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.gold-accent { color: var(--primary); }
.gold-bar { background: #a07548; height: 3px; width: 72px; margin: 0 auto; border-radius: 999px; }
.section-label {
  font-family: 'Crimson Pro', Georgia, serif;
  color: #a07548; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; font-size: 0.8rem; margin-bottom: 12px;
}
.page-section { padding: 96px 0; position: relative; }
.page-section.alt { background: #edf2ef; }
.page-header { text-align: center; margin-bottom: 48px; }
.page-header h1 { font-size: 2.8rem; font-weight: 600; margin-bottom: 16px; }
.page-header p { color: var(--muted); max-width: 680px; margin: 0 auto; font-size: 1.1rem; }
.full-width .content-block { max-width: 100%; }
.full-width .container { max-width: 100%; padding: 0 48px; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(232, 244, 243, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 138, 136, 0.12);
  box-shadow: 0 8px 28px rgba(31, 45, 48, 0.08);
}
.navbar::before {
  content: ""; display: block; height: 4px; width: 100%;
  background: #2d8a88;
}
.navbar::after { display: none; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 90px; gap: 16px; }
.navbar-brand {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.4rem;
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  padding: 8px 10px 8px 0;
  min-width: 0;
  flex: 0 1 520px;
}
.navbar-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.navbar-brand .brand-name {
  color: var(--primary);
  font-size: 1.62rem;
  line-height: 1;
  white-space: normal;
}
.navbar-tagline {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  color: rgba(31, 45, 48, 0.68);
  font-family: 'Crimson Pro', Georgia, serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}
.navbar-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  padding: 7px;
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 18px rgba(31,45,48,0.08);
}
.navbar-links { display: flex; gap: 0; align-items: center; justify-content: center; flex: 1 1 auto; min-width: 0; padding-right: 12px; }
.navbar-links { display: flex; gap: 0; align-items: center; }
.navbar-links > .nav-item { position: relative; }
.navbar-links > .nav-item > a {
  display: block; padding: 14px 7px;
  font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem; font-weight: 500; text-transform: none;
  letter-spacing: 0.02em; color: rgba(31, 45, 48, 0.86);
  transition: color 0.2s, background 0.2s, transform 0.2s;
  border-radius: 999px;
  white-space: nowrap;
}
.navbar-links > .nav-item > a:hover {
  color: var(--primary);
  background: rgba(45,138,136,0.08);
  transform: translateY(-1px);
}
/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: rgba(248, 251, 250, 0.98);
  border: 1px solid rgba(45, 138, 136, 0.12); border-radius: 16px;
  box-shadow: 0 18px 34px rgba(31, 45, 48, 0.10); padding: 10px 0; z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top left;
}
/* Invisible bridge fills the gap between the nav link and dropdown so hover isn't lost */
.nav-dropdown::before {
  content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.nav-dropdown a {
  display: block; padding: 10px 20px; font-size: 0.82rem; font-weight: 400;
  font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  color: var(--foreground); text-transform: none; letter-spacing: 0; transition: background 0.15s;
}
.nav-dropdown a:hover { background: rgba(196, 149, 106, 0.18); color: var(--primary); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 4px;
}
/* Search button — gold icon, no box */
.navbar-search-btn,
button.navbar-search-btn {
  background: rgba(45,138,136,0.08) !important; border: 1px solid rgba(45,138,136,0.14) !important; cursor: pointer; padding: 10px;
  color: var(--primary) !important; transition: opacity 0.2s, transform 0.2s, background 0.2s; display: flex; align-items: center;
  outline: none !important; box-shadow: none !important; margin: 0; line-height: 1;
  border-radius: 14px !important;
  width: 56px;
  height: 56px;
  justify-content: center;
}
.navbar-search-btn:hover { opacity: 0.95; transform: translateY(-1px); background: rgba(45,138,136,0.14) !important; }
.navbar-search-btn svg { stroke: var(--primary); }
/* Icon morphing */
.navbar-search-btn .icon-close { display: none; }
.navbar-search-btn .icon-search { display: block; }
.navbar-search-btn.open .icon-search { display: none; }
.navbar-search-btn.open .icon-close { display: block; }
.navbar-search-btn.open,
button.navbar-search-btn.open {
  background: rgba(45,138,136,0.18) !important;
  border-color: rgba(45,138,136,0.36) !important;
}
/* Search dropdown bar — animated */
.navbar-search-drop {
  position: absolute; left: 0; right: 0; top: 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: rgba(232,244,243,0.98);
  border-top: 1px solid rgba(45,138,136,0.12);
  border-bottom: 1px solid rgba(45,138,136,0.12);
  padding: 14px 24px;
  box-shadow: 0 10px 24px rgba(31,45,48,0.08);
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.navbar-search-drop.open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}
.navbar-search-form {
  display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 0 !important;
  max-width: var(--container); margin: 0 auto;
}
.navbar-search-form input[type="search"],
input[type="search"].navbar-search-form input {
  flex: 1 !important; width: 100% !important; padding: 10px 44px 10px 16px !important;
  font-size: 0.95rem !important; border: 1px solid var(--border) !important;
  border-radius: 6px !important; background: var(--card) !important; color: var(--foreground) !important;
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif !important; outline: none !important;
  margin: 0 !important; box-shadow: none !important; height: auto !important;
  -webkit-appearance: none !important; appearance: none !important;
}
.navbar-search-form input[type="search"]:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(45,138,136,0.18) !important; }
.navbar-search-form input[type="search"]::placeholder { color: hsl(220, 10%, 55%); }
.navbar-search-go,
button.navbar-search-go {
  position: absolute !important; right: 4px !important; top: 50% !important;
  transform: translateY(-50%) !important; background: #2d8a88 !important;
  border: none !important; border-radius: 6px !important; padding: 7px 10px !important;
  cursor: pointer !important; display: flex !important; align-items: center !important;
  color: #fff !important; transition: opacity 0.2s; line-height: 1;
}
.navbar-search-go:hover { opacity: 0.85; }
.navbar-search-go svg { stroke: #fff; }
/* Toggle */
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.navbar-toggle {
  background: rgba(45,138,136,0.08);
  border: 1px solid rgba(45,138,136,0.14);
  border-radius: 14px;
  padding: 10px;
}
.navbar-toggle svg { width: 24px; height: 24px; stroke: var(--primary); }
/* Mobile menu */
.mobile-menu { display: none; padding: 16px 20px 20px; border-top: 1px solid rgba(45,138,136,0.12); background: rgba(232,244,243,0.98); max-height: 80vh; overflow-y: auto; }
.mobile-menu .mobile-parent-row {
  display: flex; align-items: center;
}
.mobile-menu .mobile-parent-row .mobile-parent {
  flex: 1; font-weight: 600;
}
.mobile-sub-toggle {
  background: none; border: none; cursor: pointer; padding: 6px 4px 6px 10px;
  display: flex; align-items: center; color: var(--primary); flex-shrink: 0;
}
.mobile-sub-toggle svg { transition: transform 0.25s ease; }
.mobile-parent-row.open .mobile-sub-toggle svg { transform: rotate(180deg); }
.mobile-menu a { display: block; padding: 8px 0; font-size: 0.95rem; text-transform: none; font-weight: 500; color: rgba(31,45,48,0.88); font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif; letter-spacing: 0.01em; }
.mobile-menu .mobile-sub { padding-left: 16px; display: none; }
.mobile-menu .mobile-parent-row.open + .mobile-sub,
.mobile-menu .mobile-parent-row:has(.current-menu-ancestor) + .mobile-sub,
.mobile-menu .mobile-parent-row:has(.current-menu-item) + .mobile-sub { display: block; }
.mobile-menu .mobile-parent-row:has(.current-menu-item) .mobile-sub-toggle { color: #fff; }
.mobile-menu .mobile-sub a { font-weight: 400; text-transform: none; font-size: 0.82rem; color: rgba(31,45,48,0.72); padding: 5px 0; }
/* Active menu item — desktop */
.navbar-links > .nav-item.current-menu-item > a,
.navbar-links > .nav-item.current_page_item > a {
  color: var(--primary);
  background: rgba(45,138,136,0.10);
}
/* Active menu item — mobile */
.mobile-menu .current-menu-item > a,
.mobile-menu .current_page_item > a,
.mobile-menu a.current-menu-item,
.mobile-menu a.current_page_item {
  background: var(--primary); color: #fff; border-radius: 6px; padding: 6px 12px;
}
@media (max-width: 1100px) {
  .navbar-brand { font-size: 1.1rem; }
  .navbar-links { display: none; }
  .navbar-toggle { display: block; }
  .mobile-menu.open { display: block; }
}
@media (max-width: 768px) {
  body { padding-top: 88px; }
  .navbar .container { height: 82px; }
  .navbar-logo { width: 48px; height: 48px; padding: 6px; border-radius: 14px; }
  .navbar-brand { flex-basis: auto; }
  .navbar-brand .brand-name { font-size: 1.25rem; white-space: normal; }
  .navbar-tagline { display: none; }
}

/* ── Hero Carousel (inner pages still use this) ── */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; color: var(--primary-fg);
}
.hero.hero-home { min-height: 78vh; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 19, 22, 0.44), rgba(17, 19, 22, 0.66)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 36px 32px; border-radius: 28px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.hero-content .section-label { margin-bottom: 18px; }
.hero-label { color: rgba(255,255,255,0.96) !important; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.hero-wordmark { color: #fff; }
.hero h1 { font-size: 5rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 24px; color: #fff; text-shadow: 0 10px 34px rgba(0,0,0,0.48); }
.hero p { font-size: 1.18rem; opacity: 1; max-width: 660px; margin: 0 auto; color: rgba(255,255,255,0.98); text-shadow: 0 2px 10px rgba(0,0,0,0.42); }
.hero.hero-image-wash {
  min-height: 350px !important;
  justify-content: flex-start;
  text-align: left;
  color: var(--foreground);
  padding: 56px max(24px, calc((100vw - 1200px) / 2));
  background:
    linear-gradient(90deg, rgba(252, 248, 242, 0.90) 0%, rgba(252, 248, 242, 0.78) 54%, rgba(252, 248, 242, 0.06) 100%),
    var(--hero-image) var(--hero-position, center) / cover;
}
.hero-image-wash .hero-slides,
.hero-image-wash .hero-overlay {
  display: none;
}
.hero-image-wash .hero-content {
  max-width: 620px;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.hero-image-wash .section-label,
.hero-image-wash .hero-label {
  color: var(--primary) !important;
  text-shadow: none;
}
.hero-image-wash h1 {
  color: inherit;
  text-shadow: none;
}
.hero-image-wash p {
  margin: 18px 0 0;
  color: inherit;
  opacity: 0.78;
  text-shadow: none;
}
/* Carousel dots */
.hero-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.hero-dot {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--primary-fg);
  background: transparent; cursor: pointer; transition: background 0.3s; padding: 0;
}
.hero-dot.active { background: var(--primary); border-color: var(--primary); }
@media (max-width: 768px) {
  .hero.hero-home { min-height: 68vh; }
  .hero h1 { font-size: 3.5rem; }
  .hero-content { padding: 28px 22px; }
}

/* ── Editorial Hero (homepage) ── */
.hero-editorial {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 540px;
  height: 62vh;
}
.hero-photo {
  position: relative;
  overflow: hidden;
}
.hero-photo .hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-photo .hero-slide.active { opacity: 1; }
/* Ken Burns — ambient scale, felt not seen */
.hero-photo .hero-slide.active {
  animation: kenBurns 24s ease-in-out infinite;
}
.hero-text-panel {
  background: var(--cream);
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}
.hero-text-panel h1 {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 0;
}
.hero-tagline {
  color: var(--muted);
  font-size: 1rem;
  font-family: 'Crimson Pro', Georgia, serif;
  font-style: italic;
  margin-bottom: 32px;
}
/* Salah widget inside hero panel */
.hero-salah {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.hero-salah-label {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-salah-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hero-salah-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}
.hero-salah-time {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--gold);
}
.hero-salah-countdown {
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-salah-link {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 4px;
  transition: opacity 0.2s;
}
.hero-salah-link:hover { opacity: 0.75; }
.hero-admissions-link {
  display: inline-block;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foreground);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold);
  width: fit-content;
  transition: color 0.2s;
}
.hero-admissions-link:hover { color: var(--gold); }
@media (max-width: 1024px) {
  .hero-editorial { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo { min-height: 55vw; }
  .hero-text-panel { padding: 48px 32px; border-left: none; border-top: 1px solid var(--border); }
  .hero-text-panel h1 { font-size: 3rem; }
}
@media (max-width: 600px) {
  .hero-text-panel { padding: 40px 24px; }
  .hero-text-panel h1 { font-size: 2.4rem; }
}

/* ── Credentials Strip ── */
.credentials-strip {
  background: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 80px;
  gap: 0;
}
.credentials-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  text-align: center;
}
.credentials-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.credentials-label {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.credentials-divider {
  width: 1px;
  height: 36px;
  background: rgba(196, 149, 106, 0.34);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .credentials-strip { flex-wrap: wrap; padding: 16px 0; }
  .credentials-divider { display: none; }
  .credentials-item { padding: 8px 24px; }
}

/* ── Notices (homepage slim announcements) ── */
.home-notices {
  padding: 48px 0;
  background: var(--deep-surface);
}
.home-notices .section-label { color: #e0f0ef; margin-bottom: 24px; }
.notices-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.notice-item {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 0 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.notice-item:last-child { border-bottom: none; }
.notice-item::before {
  content: '';
  background: #e0f0ef;
  border-radius: 2px;
  align-self: stretch;
}
.notice-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notice-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.3;
}
.notice-text {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}
.notice-link {
  margin-top: 4px;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e0f0ef;
  border-bottom: 1px solid rgba(224, 240, 239, 0.42);
  padding-bottom: 1px;
  width: fit-content;
  transition: opacity 0.2s;
}
.notice-link:hover { opacity: 0.75; }

/* ── Principal Editorial ── */
.principal-editorial { background: linear-gradient(180deg, rgba(196, 149, 106, 0.22), rgba(196, 149, 106, 0.12)); }
.principal-editorial .section-label { color: var(--primary); }
.principal-editorial h2,
.principal-editorial h3 { color: var(--foreground); }
.principal-editorial .arabic { color: var(--primary); }
.principal-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.principal-left {
  padding-top: 8px;
  border-right: 1px solid rgba(45, 138, 136, 0.18);
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.principal-right { padding-left: 8px; }
.principal-right h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--foreground);
}
.principal-message p {
  color: var(--foreground);
  font-size: 1.08rem;
  line-height: 1.95;
  margin-bottom: 18px;
}
.principal-signature {
  margin-top: 32px;
  font-style: italic;
  color: var(--foreground);
  font-size: 1rem;
}
.principal-signature strong {
  display: block;
  font-style: normal;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: var(--foreground);
}
@media (max-width: 900px) {
  .principal-grid { grid-template-columns: 1fr; gap: 32px; }
  .principal-left { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(45, 138, 136, 0.18); padding-bottom: 32px; }
  .principal-right { padding-left: 0; }
}

/* ── Programmes List (prospectus style) ── */
.programmes { background: var(--background); }
.programmes-header { margin-bottom: 40px; }
.programmes-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: none;
}
.programme-row {
  display: block;
  background: var(--warm-panel);
  border: 1px solid rgba(31, 124, 136, 0.12);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 18px 36px rgba(44, 31, 20, 0.05);
}
.programme-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: rgba(45, 138, 136, 0.35);
  line-height: 1;
  margin-bottom: 18px;
}
.programme-body {
  flex: 1;
}
.programme-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.programme-meta h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--foreground);
  margin: 0;
}
.programme-detail {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.programme-body > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 680px;
}
.programme-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: opacity 0.2s;
}
.programme-link:hover { opacity: 0.75; }
@media (max-width: 768px) {
  .programmes-list { grid-template-columns: 1fr; }
  .programme-row { padding: 24px; }
  .programme-meta { flex-direction: column; gap: 4px; }
}

/* ── Announcements ── */
.announcements { padding: 72px 0; background: linear-gradient(180deg, rgba(196, 149, 106, 0.26), rgba(196, 149, 106, 0.10)); }
.announce-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 860px; margin: 0 auto; }
.announce-card {
  background: rgba(255,255,255,0.74); border: 1px solid rgba(160, 117, 72, 0.18); border-top: 4px solid #a07548; border-radius: 20px;
  padding: 36px; text-align: left; transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 18px 40px rgba(44, 31, 20, 0.06);
}
.announce-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(45, 138, 136, 0.12); }
.announce-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; color: var(--foreground); line-height: 1.3; }
.announce-card p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 18px; }
.announce-btn {
  display: inline-block; background: #a07548; color: var(--primary-fg);
  padding: 10px 24px; border-radius: 10px; font-weight: 600; font-size: 0.88rem;
  transition: opacity 0.2s;
}
.announce-btn:hover { opacity: 0.85; }

.homepage-video-tour {
  margin-top: 0;
  padding: 24px 0 24px;
  background: linear-gradient(180deg, rgba(196, 149, 106, 0.10), rgba(224, 240, 239, 0));
  position: relative;
  z-index: 1;
}

.homepage-video-tour-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 36px;
  text-align: center;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(160, 117, 72, 0.18);
  border-top: 4px solid #a07548;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(44, 31, 20, 0.06);
}

.homepage-video-tour-card h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--foreground);
}

.homepage-video-tour-card p:not(.section-label) {
  max-width: 42rem;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.8;
}

.homepage-video-tour-card .btn-primary {
  min-width: 220px;
}

@media (max-width: 768px) {
  .homepage-video-tour {
    margin-top: 0;
    padding-bottom: 16px;
  }

  .homepage-video-tour-card {
    padding: 28px 22px;
  }
}

/* ── Homepage Salah Widget ── */
.home-salah-widget {
  max-width: 860px;
  margin: 28px auto;
  box-sizing: border-box;
  padding: 18px 24px;
  background: var(--background);
  border: 1px solid var(--border);
  border-left: 4px solid #a07548;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-radius: 10px;
}
.home-salah-widget .sw-label {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
}
.home-salah-widget .sw-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.home-salah-widget .sw-prayer-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--foreground);
}
.home-salah-widget .sw-prayer-time {
  font-size: 1.05rem;
  color: #a07548;
  font-weight: 600;
}
.home-salah-widget .sw-countdown {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.95rem;
  color: var(--muted);
  background: rgba(196, 149, 106, 0.64);
  padding: 5px 12px;
  border-radius: 999px;
}
.home-salah-widget .sw-link {
  font-size: 0.9rem;
  color: #a07548;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.home-salah-widget .sw-link:hover {
  opacity: 0.8;
}
.home-salah-fallback {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 0 20px;
  text-align: center;
}
.home-salah-fallback a {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .home-salah-widget,
  .home-salah-fallback {
    margin-left: 20px;
    margin-right: 20px;
  }
}
@media (max-width: 600px) {
  .home-salah-widget {
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ── Principal ── */
.principal { padding: 96px 0; background: linear-gradient(180deg, rgba(196, 149, 106, 0.18), rgba(224, 240, 239, 0.82)); }
.principal .inner { max-width: 800px; margin: 0 auto; text-align: center; }
.principal h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; }
.principal .arabic { font-size: 1.3rem; margin-bottom: 24px; color: var(--primary); }
.principal .message p { color: #314447; font-size: 1.08rem; line-height: 1.95; margin-bottom: 18px; text-align: left; }
.principal .signature { margin-top: 32px; text-align: right; font-style: italic; color: var(--foreground); }
.principal .signature strong { display: block; font-style: normal; font-family: 'Playfair Display', Georgia, serif; }
.principal-home .principal-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(160, 117, 72, 0.16);
  border-top: 4px solid #a07548;
  border-radius: 24px;
  padding: 44px 48px;
  box-shadow: 0 18px 40px rgba(160, 117, 72, 0.08);
}
.principal-home .gold-bar { margin-left: auto; margin-right: auto; }
.principal-home .arabic { text-align: center; }
.principal-home .message a {
  color: var(--primary);
  font-weight: 700;
}
@media (max-width: 768px) {
  .principal-home .principal-card { padding: 28px 22px; }
}

/* ── Programs Grid ── */
.programs { padding: 96px 0; background: var(--background); }
.programs .header { text-align: center; margin-bottom: 64px; }
.programs h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; }
.programs .header p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 1.1rem; }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: stretch; }
.program-card {
  background: rgba(255,255,255,0.76); border: 1px solid rgba(160, 117, 72, 0.16); border-top: 4px solid #a07548; border-radius: 20px;
  padding: 32px; transition: transform 0.25s ease, box-shadow 0.25s ease; box-shadow: 0 18px 40px rgba(44, 31, 20, 0.06);
}
.program-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px -14px rgba(31, 124, 136, 0.22); }
.program-icon {
  width: 48px; height: 48px; border-radius: 8px; background: rgba(160, 117, 72, 0.14);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: #a07548; font-size: 1.4rem;
}
.program-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; color: var(--foreground); }
.program-card p { color: #4f5e60; line-height: 1.8; }
@media (max-width: 1024px) { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .programs-grid { grid-template-columns: 1fr; } }

/* ── Contact Form ── */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px;
  font-family: inherit; font-size: 1rem; margin-bottom: 20px; background: var(--background);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); outline: none; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  background: var(--gold-gradient); color: var(--primary-fg); border: none;
  padding: 14px 32px; border-radius: 6px; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: opacity 0.2s;
}
.contact-form button:hover { opacity: 0.9; }

/* ── Info Cards ── */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.info-card {
  background: var(--warm-panel); border: 1px solid rgba(160, 117, 72, 0.18); border-top: 4px solid #a07548; border-radius: 20px; padding: 32px; box-shadow: 0 12px 24px rgba(111, 76, 45, 0.06);
}
.info-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.info-card p, .info-card li { color: var(--muted); line-height: 1.7; }
.info-card ul { padding-left: 20px; list-style: disc; }
.info-card ul li { margin-bottom: 8px; }

/* Decorative Image Cards */
.feature-image-card,
.architecture-card {
  background: transparent;
  border: none;
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
  margin: 0;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
}

.feature-image-card img,
.architecture-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  background: transparent;
}

.feature-image-card {
  align-self: start;
}

.split-intro > * {
  min-width: 0;
}

/* ── Timetable & Schedule Cards ── */
.timetable { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.timetable thead th { background: #6f4c2d; color: var(--primary-fg); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.timetable thead th:first-child { border-radius: 6px 0 0 0; }
.timetable thead th:last-child { border-radius: 0 6px 0 0; }
.timetable tbody td { padding: 12px 16px; border-bottom: 1px solid rgba(160, 117, 72, 0.16); color: var(--muted); }
.timetable tbody tr:last-child td { border-bottom: none; }
.schedule-cards { display: grid; gap: 28px; margin-top: 32px; }
.schedule-card {
  background: var(--warm-panel);
  border: 1px solid rgba(160, 117, 72, 0.18);
  border-top: 4px solid #a07548;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 36px rgba(111, 76, 45, 0.07);
}
.schedule-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(160, 117, 72, 0.16);
}
.schedule-card-head h3 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--foreground);
}
.schedule-label {
  margin: 0;
  color: #a07548;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.schedule-table { margin: 0; }
.schedule-note {
  margin-top: 24px;
  padding: 24px 28px;
  background: rgba(160, 117, 72, 0.08);
}
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr !important; }
  .split-intro { grid-template-columns: 1fr !important; gap: 24px; }
  .feature-image-card {
    max-width: min(720px, 100%);
    margin: 0 auto;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3 !important;
    justify-self: stretch !important;
    align-self: start !important;
  }
  .feature-image-card img { height: 100% !important; }
  .architecture-gallery { grid-template-columns: 1fr; }
  .aalim-subjects-grid { grid-template-columns: 1fr !important; }
  .aalim-two-part { flex-direction: column; }
  .aalim-aims-list .info-card { padding: 16px !important; }
  .timetable, .timetable thead, .timetable tbody, .timetable th, .timetable td, .timetable tr { display: block; }
  .timetable thead { display: none; }
  .timetable tbody tr { background: var(--card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; padding: 16px; }
  .timetable tbody td { padding: 4px 0; border-bottom: none; }
  .timetable tbody td:first-child { font-weight: 600; color: var(--primary); font-size: 0.9rem; margin-bottom: 4px; }
  .timetable tbody td:last-child { color: var(--muted); font-size: 0.95rem; }
  .timetable tbody td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--foreground); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 2px; }
  .timetable tbody td:first-child[data-label]::before { display: none; }
  .schedule-card { padding: 22px 18px; border-radius: 20px; }
  .schedule-card-head { display: block; }
  .schedule-card-head h3 { margin-top: 6px; font-size: 1.35rem; }
  .schedule-note { padding: 20px; }
}

/* ── Quick Links ── */
.quick-links { padding: 80px 0; background: var(--secondary); }
.quick-links .info-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .quick-links .info-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .info-grid[style*="repeat(4"] { grid-template-columns: 1fr !important; } }

/* ── Card Links ── */
.card-link { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.card-link:hover { opacity: 0.8; }

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.wp-block-button__link,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}

.btn-primary {
  background: #2d8a88;
  color: var(--primary-fg);
  box-shadow: 0 14px 28px rgba(45, 138, 136, 0.22);
}

.btn-secondary {
  background: rgba(196, 149, 106, 0.18);
  color: #fff;
  border: 1px solid rgba(196, 149, 106, 0.35);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.button-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.fact-strip {
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.fact-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fact-item {
  background: linear-gradient(145deg, rgba(224, 240, 239, 0.98), rgba(224, 240, 239, 0.96));
  border: 1px solid rgba(45, 138, 136, 0.16);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 18px 34px rgba(45, 138, 136, 0.10);
}

.fact-strip .fact-item:nth-child(1) {
  background: linear-gradient(145deg, rgba(224, 240, 239, 0.98), rgba(224, 240, 239, 0.96));
  border-color: rgba(45, 138, 136, 0.24);
}

.fact-strip .fact-item:nth-child(2) {
  background: linear-gradient(145deg, rgba(214, 238, 237, 0.98), rgba(224, 240, 239, 0.96));
  border-color: rgba(45, 138, 136, 0.22);
}

.fact-strip .fact-item:nth-child(3) {
  background: linear-gradient(145deg, rgba(208, 236, 235, 0.98), rgba(224, 240, 239, 0.96));
  border-color: rgba(45, 138, 136, 0.24);
}

.fact-item strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  color: var(--foreground);
  margin-bottom: 6px;
}

.fact-item span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-band {
  background: rgba(255, 250, 245, 0.92);
  border-top: 1px solid rgba(45, 138, 136, 0.08);
  border-bottom: 1px solid rgba(45, 138, 136, 0.08);
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.highlight-panel {
  background: var(--warm-highlight);
  border: 1px solid rgba(160, 117, 72, 0.2);
  border-top: 4px solid #a07548;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 12px 24px rgba(111, 76, 45, 0.06);
}

.highlight-panel h3,
.highlight-panel h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

.highlight-panel p:last-child,
.feature-card p:last-child,
.resource-card p:last-child,
.contact-panel p:last-child {
  margin-bottom: 0;
}

.inline-video-trigger,
.video-tour-trigger {
  font: inherit;
}

.inline-video-trigger {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.video-tour-trigger.btn-secondary {
  appearance: none;
  cursor: pointer;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 120;
}

.video-modal.open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 31, 35, 0.72);
  backdrop-filter: blur(6px);
}

.video-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  background: rgba(244, 249, 248, 0.98);
  border: 1px solid rgba(45, 138, 136, 0.18);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(18, 44, 43, 0.24);
  padding: 28px;
  z-index: 1;
}

.video-modal-dialog h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--foreground);
}

.video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(45, 138, 136, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--foreground);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.video-modal-frame {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}

.video-modal-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
}

body.video-modal-open {
  overflow: hidden;
}

/* ════════════════════════════════════════════
   Homepage Cards
════════════════════════════════════════════ */
.home-pathway-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-pathway-card {
  background: #fff;
  border: 1px solid rgba(45, 138, 136, 0.12);
  border-radius: 10px;
  padding: 24px 24px 22px;
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 18px;
  min-height: 280px;
  box-shadow: 0 12px 28px rgba(31, 45, 48, 0.055);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-pathway-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 138, 136, 0.3);
  box-shadow: 0 16px 34px rgba(31, 45, 48, 0.085);
}

.home-pathway-number {
  display: block;
  color: rgba(45, 138, 136, 0.28);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  grid-row: 1 / span 2;
}

.home-pathway-copy { position: relative; }

.home-pathway-copy h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
  margin-top: 10px;
}

.home-pathway-copy h3 {
  margin: 0 0 12px;
  color: var(--foreground);
  font-size: 1.35rem;
}

.home-pathway-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.home-pathway-link {
  border-top: 1px solid rgba(45, 138, 136, 0.1);
  margin-top: 24px;
  padding-top: 16px;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.home-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.home-action-card {
  background: #fff !important;
  border: 1px solid rgba(45, 138, 136, 0.1) !important;
  border-radius: 18px !important;
  padding: 24px 24px 22px !important;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(31, 45, 48, 0.055) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  min-height: 342px;
}

.home-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 32px rgba(31, 45, 48, 0.085) !important;
  border-color: rgba(45, 138, 136, 0.28) !important;
}

.student-resource-card {
  background: #fff !important;
  border: 1px solid rgba(45, 138, 136, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(31, 45, 48, 0.055) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.student-resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 138, 136, 0.28) !important;
  box-shadow: 0 15px 32px rgba(31, 45, 48, 0.085) !important;
}

.home-action-card h3 {
  margin: 0 0 8px;
  color: var(--foreground);
  font-size: 1.18rem;
}

.home-action-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.home-action-link {
  color: #a07548;
  font-size: 0.86rem;
  font-weight: 800;
  margin-top: auto;
}

.jm-ui-preview {
  padding: 18px;
  border-radius: 14px;
  background: #e0f0ef;
  margin-bottom: 20px;
  height: 128px;
  display: flex;
  flex-direction: column;
}

.jm-ui-preview-top {
  display: block;
  width: 58px;
  height: 8px;
  border-radius: 999px;
  background: rgba(160, 117, 72, 0.34);
  margin-bottom: 14px;
}

.jm-ui-calendar-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.jm-ui-calendar-row span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 45, 48, 0.14);
}

.jm-ui-calendar-dots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-top: 16px;
}

.jm-ui-calendar-dots span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(45, 138, 136, 0.16);
}

.jm-ui-calendar-dots span:nth-child(3) { background: var(--primary); }

.jm-ui-resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(31, 45, 48, 0.12);
}

.jm-ui-resource-row strong,
.jm-ui-resource-row span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(31, 45, 48, 0.18);
}

.jm-ui-resource-row strong { width: 54%; }
.jm-ui-resource-row span { width: 25%; background: rgba(160, 117, 72, 0.28); }

.jm-ui-apply-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.jm-ui-apply-flow span {
  display: grid;
  justify-items: center;
}

.jm-ui-apply-flow strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.66);
  color: #a07548;
  font-size: 0.72rem;
}

.jm-ui-apply-flow span.active strong {
  background: var(--primary);
  color: #fff;
}

.jm-ui-apply-form,
.jm-ui-doc-lines {
  display: grid;
  gap: 7px;
  margin-top: auto;
}

.jm-ui-apply-form span,
.jm-ui-doc-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 45, 48, 0.15);
}

.jm-ui-apply-form span:first-child,
.jm-ui-doc-lines span:first-child { width: 82%; }

.jm-ui-apply-form span:last-child,
.jm-ui-doc-lines span:last-child {
  width: 58%;
  background: rgba(45, 138, 136, 0.18);
}

.achievement-flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flip-card {
  perspective: 900px;
  height: 220px;
  opacity: 0;
  transform: translateY(16px);
}

.achievement-flip-grid.is-visible .flip-card {
  animation: flipCardReveal 0.48s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: calc(var(--i, 0) * 0.07s);
}

@keyframes flipCardReveal {
  to { opacity: 1; transform: translateY(0); }
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.4,0,0.2,1);
  border-radius: 18px;
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.flip-front {
  background: #fff;
  border: 1px solid rgba(45, 138, 136, 0.1);
  box-shadow: 0 12px 28px rgba(31, 45, 48, 0.06);
}

.flip-back {
  background: var(--primary);
  color: #fff;
  transform: rotateY(180deg);
  box-shadow: 0 14px 30px rgba(31, 45, 48, 0.18);
}

.flip-title {
  color: var(--foreground);
  font-size: 1.12rem;
  margin: 0;
}

.flip-tap-hint {
  margin-top: 14px;
  color: #a07548;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flip-back p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.62;
  margin: 0 0 18px;
}

.flip-back-link {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.jm-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.jm-panel-grid-3 { grid-template-columns: repeat(3, 1fr); }

.jm-panel-card {
  border-radius: 18px;
  border: 1px solid rgba(45, 138, 136, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jm-panel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(31, 45, 48, 0.085);
}

.jm-panel-body {
  padding: 28px 26px 22px;
  flex: 1;
}

.jm-panel-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.jm-panel-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 10px;
}

.jm-panel-body p {
  font-size: 0.9rem;
  color: rgba(31, 45, 48, 0.62);
  line-height: 1.7;
}

.jm-panel-footer {
  border-top: 1px solid rgba(45, 138, 136, 0.09);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--foreground);
  text-decoration: none;
  background: #fff;
  transition: background 0.15s ease;
}

.jm-panel-footer:hover { background: #f8fbfa; }
.jm-panel-footer:hover .jm-panel-arrow { transform: translateX(5px); }
.jm-panel-arrow { transition: transform 0.2s ease; color: #a07548; flex-shrink: 0; }

.jm-panel-card.pc-gold .jm-panel-body { background: rgba(160,117,72,0.1); }
.jm-panel-card.pc-copper .jm-panel-body { background: rgba(166,115,77,0.11); }
.jm-panel-card.pc-umber .jm-panel-body { background: rgba(45,138,136,0.08); }
.jm-panel-card.pc-gold .jm-panel-eyebrow { color: #a07548; }
.jm-panel-card.pc-copper .jm-panel-eyebrow { color: #8d6242; }
.jm-panel-card.pc-umber .jm-panel-eyebrow { color: var(--primary); }

@media (max-width: 1100px) {
  .home-action-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .home-pathway-list { grid-template-columns: repeat(2, 1fr); }
  .achievement-flip-grid,
  .jm-panel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .home-action-grid,
  .achievement-flip-grid,
  .jm-panel-grid { grid-template-columns: 1fr; }
  .home-pathway-copy p {
    font-size: 1rem;
    line-height: 1.58;
  }
}

@media (prefers-reduced-motion: reduce) {
  .achievement-flip-grid.is-visible .flip-card { animation: none; opacity: 1; transform: none; }
  .flip-inner { transition: none; }
}

.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card,
.resource-card,
.contact-panel {
  background: var(--warm-panel);
  border: 1px solid rgba(160, 117, 72, 0.16);
  border-top: 4px solid #a07548;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 24px rgba(111, 76, 45, 0.06);
}

.accent-gold { border-top: 4px solid #c7a24d !important; }
.accent-copper { border-top: 4px solid #a6734d !important; }
.accent-rose { border-top: 4px solid #b18473 !important; }
.accent-umber { border-top: 4px solid #2d6770 !important; }
.accent-saffron { border-top: 4px solid #d6a983 !important; }
.accent-apricot { border-top: 4px solid #ddb392 !important; }
.accent-coral { border-top: 4px solid #c6947f !important; }
.accent-peach { border-top: 4px solid #e2bfaa !important; }
.accent-sky { border-top: 4px solid #8cbac1 !important; }
.accent-mint { border-top: 4px solid #a9c9c4 !important; }
.accent-lilac { border-top: 4px solid #cabdb4 !important; }

.tint-gold { background: rgba(160, 117, 72, 0.14) !important; }
.tint-copper { background: rgba(166, 115, 77, 0.14) !important; }
.tint-rose { background: rgba(177, 132, 115, 0.14) !important; }
.tint-umber { background: rgba(122, 75, 43, 0.12) !important; }
.tint-saffron { background: rgba(186, 142, 104, 0.14) !important; }
.tint-apricot { background: rgba(195, 154, 117, 0.14) !important; }
.tint-coral { background: rgba(184, 133, 114, 0.14) !important; }
.tint-peach { background: rgba(199, 156, 132, 0.14) !important; }
.tint-sky { background: rgba(160, 117, 72, 0.12) !important; }
.tint-mint { background: rgba(160, 117, 72, 0.12) !important; }
.tint-lilac { background: rgba(160, 117, 72, 0.12) !important; }

.eyebrow-gold { color: #a6734d !important; }
.eyebrow-copper { color: #8d6242 !important; }
.eyebrow-rose { color: #9a7265 !important; }
.eyebrow-umber { color: #2d8a88 !important; }
.eyebrow-saffron { color: #ba8e68 !important; }
.eyebrow-apricot { color: #c39a75 !important; }
.eyebrow-coral { color: #b88572 !important; }
.eyebrow-peach { color: #c79c84 !important; }
.eyebrow-sky { color: #4f8f98 !important; }
.eyebrow-mint { color: #5e9088 !important; }
.eyebrow-lilac { color: #8f857d !important; }

.chip-gold { background: rgba(196, 149, 106, 0.25) !important; }
.chip-copper { background: rgba(183, 106, 52, 0.14) !important; }
.chip-rose { background: rgba(168, 95, 90, 0.14) !important; }
.chip-umber { background: rgba(122, 75, 43, 0.14) !important; }
.chip-saffron { background: rgba(199, 162, 77, 0.18) !important; }
.chip-apricot { background: rgba(169, 203, 142, 0.18) !important; }
.chip-coral { background: rgba(112, 161, 103, 0.16) !important; }
.chip-peach { background: rgba(240, 163, 124, 0.16) !important; }
.chip-sky { background: rgba(189, 216, 241, 0.34) !important; }
.chip-mint { background: rgba(205, 232, 211, 0.34) !important; }
.chip-lilac { background: rgba(216, 200, 241, 0.34) !important; }

.feature-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pathway-card {
  background: var(--warm-panel);
  border: 1px solid rgba(160, 117, 72, 0.16);
  border-top: 4px solid #a07548;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 24px rgba(111, 76, 45, 0.06);
}

.pathway-card,
.info-card,
.resource-card,
.feature-card,
.contact-panel,
.table-card,
.highlight-panel,
.fact-item {
  position: relative;
  overflow: hidden;
}

.pathway-card::after,
.info-card::after,
.resource-card::after,
.feature-card::after,
.contact-panel::after,
.table-card::after,
.highlight-panel::after,
.fact-item::after {
  display: none;
}

.pathway-card + .pathway-card { margin-top: 24px; }

.pathway-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(196, 149, 106, 0.22);
  color: var(--foreground);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.detail-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 124, 136, 0.1);
  border-radius: 16px;
  padding: 16px 18px;
}

.detail-item strong {
  display: block;
  color: var(--foreground);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-item span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.resource-card {
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(111, 76, 45, 0.1);
}

.resource-card h3 { margin-top: 0; }

.table-card {
  background: var(--warm-panel);
  border: 1px solid rgba(160, 117, 72, 0.16);
  border-top: 4px solid #a07548;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 24px rgba(111, 76, 45, 0.06);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
}

.contact-stack {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-links a {
  color: var(--primary);
  font-weight: 700;
}

.btn-primary,
.btn-primary:visited,
.contact-links .btn-primary,
.contact-links .btn-primary:visited,
.contact-actions .btn-primary,
.contact-actions .btn-primary:visited {
  color: var(--primary) !important;
}

.btn-secondary,
.btn-secondary:visited,
.contact-links .btn-secondary,
.contact-links .btn-secondary:visited,
.contact-actions .btn-secondary,
.contact-actions .btn-secondary:visited {
  color: var(--primary) !important;
}

.copy-action,
.copy-action:visited,
.contact-links .copy-action,
.contact-links .copy-action:visited,
.contact-actions .copy-action,
.contact-actions .copy-action:visited {
  color: var(--foreground) !important;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(320px, 100%);
  margin: 40px auto 0;
}

.section-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 117, 72, 0.55), transparent);
}

.section-divider__ornament {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.section-divider__ornament::before,
.section-divider__ornament::after,
.section-divider__ornament span {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(160, 117, 72, 0.48);
  transform: rotate(45deg);
  border-radius: 6px;
}

.section-divider__ornament::after {
  inset: 8px;
  opacity: 0.72;
}

.section-divider__ornament span {
  inset: 15px;
  background: rgba(45, 138, 136, 0.14);
  border-color: transparent;
}

.section-divider--arch {
  position: relative;
  width: min(360px, 100%);
  height: 72px;
  margin-top: 48px;
}

.section-divider--arch::before,
.section-divider--arch::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.section-divider--arch::before {
  bottom: 12px;
  width: min(240px, 80%);
  height: 58px;
  border: 1px solid rgba(160, 117, 72, 0.4);
  border-bottom: 0;
  border-radius: 220px 220px 0 0 / 180px 180px 0 0;
}

.section-divider--arch::after {
  bottom: 0;
  width: 92px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(160, 117, 72, 0), rgba(160, 117, 72, 0.8), rgba(160, 117, 72, 0));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pattern-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.pattern-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(160, 117, 72, 0.16);
  border-radius: 24px;
  background: var(--warm-panel);
  box-shadow: 0 16px 34px rgba(31, 45, 48, 0.06);
  overflow: hidden;
}

.pattern-card::before {
  content: "";
  position: absolute;
  inset: auto -34px -46px auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 138, 136, 0.16), rgba(45, 138, 136, 0));
}

.pattern-card--arch::after,
.pattern-card--line::after {
  content: "";
  position: absolute;
  opacity: 0.5;
}

.pattern-card--arch::after {
  left: 28px;
  top: 28px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(160, 117, 72, 0.34);
  border-bottom: 0;
  border-radius: 120px 120px 0 0;
}

.pattern-card--line::after {
  left: 28px;
  right: 28px;
  top: 38px;
  height: 1px;
  background: linear-gradient(90deg, rgba(160, 117, 72, 0), rgba(160, 117, 72, 0.55), rgba(160, 117, 72, 0));
}

.pattern-card__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #8f6339;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pattern-card h3 {
  max-width: 14ch;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.pattern-card p {
  max-width: 32ch;
  color: var(--muted);
  margin-bottom: 0;
}

.timetable-intro {
  margin-bottom: 24px;
}

.timetable-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

.timetable-hint__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(45, 138, 136, 0.12);
}

.timetable-groups {
  display: grid;
  gap: 18px;
}

.timetable-group {
  background: var(--warm-panel);
  border: 1px solid rgba(160, 117, 72, 0.18);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(31, 45, 48, 0.06);
  overflow: hidden;
}

.timetable-group[open] {
  box-shadow: 0 20px 42px rgba(31, 45, 48, 0.08);
}

.timetable-group summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}

.timetable-group summary::-webkit-details-marker {
  display: none;
}

.timetable-group summary::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 10px;
  flex-shrink: 0;
  border-right: 2px solid rgba(45, 138, 136, 0.8);
  border-bottom: 2px solid rgba(45, 138, 136, 0.8);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.timetable-group[open] summary::after {
  transform: rotate(-135deg);
}

.timetable-group__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #8f6339;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timetable-group__title {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
}

.timetable-group__meta {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: nowrap;
}

.timetable-panel {
  padding: 0 24px 24px;
}

.timetable-panel p {
  color: var(--muted);
  margin-bottom: 16px;
}

.timetable tbody tr {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.timetable tbody tr:nth-child(even) td {
  background: rgba(45, 138, 136, 0.04);
}

.timetable tbody tr:hover,
.timetable tbody tr:focus-within {
  transform: translateX(4px);
}

.timetable tbody tr:hover td,
.timetable tbody tr:focus-within td {
  background: rgba(45, 138, 136, 0.12);
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(160, 117, 72, 0.18);
  border-radius: 24px;
  background: var(--warm-panel);
  box-shadow: 0 16px 34px rgba(31, 45, 48, 0.06);
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -46px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 138, 136, 0.14), rgba(45, 138, 136, 0));
  pointer-events: none;
}

.contact-card--full {
  grid-column: 1 / -1;
}

.contact-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(45, 138, 136, 0.12);
  color: var(--primary);
  transition: transform 0.25s ease, background 0.25s ease;
}

.contact-card:hover .contact-icon {
  transform: translateY(-2px);
  background: rgba(45, 138, 136, 0.18);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #8f6339;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-card h2,
.contact-card h3 {
  margin: 0;
}

.contact-card__copy {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-top: 14px;
  border-top: 1px solid rgba(160, 117, 72, 0.12);
}

.contact-list-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-list-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--foreground);
}

.contact-list-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.copy-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid rgba(160, 117, 72, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--foreground);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.copy-action:hover,
.copy-action:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(45, 138, 136, 0.32);
  outline: none;
}

.copy-action.is-copied {
  background: rgba(45, 138, 136, 0.14);
  border-color: rgba(45, 138, 136, 0.3);
}

.map-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: stretch;
}

.map-panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}

.map-stage {
  position: relative;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(160, 117, 72, 0.16);
  box-shadow: 0 16px 34px rgba(31, 45, 48, 0.06);
}

.map-embed {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 720ms ease, transform 720ms ease;
}

.map-stage.is-active .map-embed {
  opacity: 1;
  transform: none;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-pin-anchor {
  position: absolute;
  left: var(--pin-x, 52%);
  top: var(--pin-y, 54%);
  transform: translate(-50%, -100%);
}

.map-pin-trigger {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.map-pin-badge {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px 999px 999px 0;
  background:
    linear-gradient(180deg, rgba(247, 253, 251, 0.96), rgba(223, 239, 238, 0.95));
  border: 1px solid rgba(45, 138, 136, 0.34);
  box-shadow:
    0 18px 34px rgba(31, 45, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--primary);
  transform: rotate(-45deg) translateY(-24px) scale(0.82);
  opacity: 0;
}

.map-pin-badge svg {
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
}

.map-pin-shadow {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: 40px;
  height: 14px;
  border-radius: 999px;
  background: rgba(31, 45, 48, 0.16);
  filter: blur(8px);
  transform: translateX(-50%) scale(0.65);
  opacity: 0;
}

.map-stage.is-active .map-pin-badge {
  animation: map-pin-drop 900ms cubic-bezier(0.2, 0.8, 0.22, 1) 160ms forwards;
}

.map-stage.is-active .map-pin-shadow {
  animation: map-pin-shadow 900ms cubic-bezier(0.2, 0.8, 0.22, 1) 160ms forwards;
}

.map-info-card {
  pointer-events: auto;
  position: absolute;
  left: clamp(16px, calc(var(--pin-x, 52%) + 24px), calc(100% - 332px));
  top: clamp(18px, calc(var(--pin-y, 54%) - 124px), calc(100% - 210px));
  width: min(304px, calc(100% - 32px));
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(250, 253, 252, 0.8);
  border: 1px solid rgba(45, 138, 136, 0.18);
  box-shadow: 0 24px 44px rgba(31, 45, 48, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: 20% 80%;
  transition:
    opacity 240ms ease,
    transform 280ms cubic-bezier(0.2, 0.8, 0.22, 1),
    visibility 0ms linear 280ms;
}

.map-spotlight:hover .map-info-card,
.map-spotlight:focus-within .map-info-card,
.map-spotlight.is-open .map-info-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0ms;
}

.map-spotlight:hover .map-pin-badge,
.map-spotlight:focus-within .map-pin-badge,
.map-spotlight.is-open .map-pin-badge {
  box-shadow:
    0 22px 38px rgba(31, 45, 48, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.map-info-card__eyebrow {
  margin: 0 0 6px;
  color: #8f6336;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-info-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.map-info-card__rows {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.map-info-card__row {
  display: grid;
  gap: 3px;
}

.map-info-card__label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(64, 87, 91, 0.72);
}

.map-info-card__value {
  color: var(--foreground);
  font-weight: 700;
  text-decoration: none;
}

.map-info-card__value:hover,
.map-info-card__value:focus-visible {
  color: var(--primary);
}

.map-info-card .btn-primary {
  width: 100%;
  justify-content: center;
}

@keyframes map-pin-drop {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translateY(-26px) scale(0.82);
  }

  72% {
    opacity: 1;
    transform: rotate(-45deg) translateY(0) scale(1);
  }

  84% {
    transform: rotate(-45deg) translateY(-5px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: rotate(-45deg) translateY(0) scale(1);
  }
}

@keyframes map-pin-shadow {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }

  72% {
    opacity: 0.24;
    transform: translateX(-50%) scale(1);
  }

  84% {
    opacity: 0.16;
    transform: translateX(-50%) scale(0.86);
  }

  100% {
    opacity: 0.2;
    transform: translateX(-50%) scale(1);
  }
}


.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.achievement-item { padding: 32px; }
.achievement-number { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.achievement-label { color: var(--muted); font-size: 1rem; }
@media (max-width: 768px) { .achievement-grid { grid-template-columns: 1fr; } }

/* ── Donations ── */
.donation-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.donation-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 32px;
}
.donation-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.donation-card p { color: var(--muted); line-height: 1.7; margin-bottom: 8px; }
.donation-card strong { color: var(--foreground); }
@media (max-width: 768px) { .donation-methods { grid-template-columns: 1fr; } }

/* ── Live Stream ── */
.livestream-container { max-width: 800px; margin: 0 auto; text-align: center; }
.livestream-embed {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 8px; background: var(--card); border: 1px solid var(--border); margin-bottom: 24px;
}
.livestream-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.livestream-placeholder {
  display: flex; align-items: center; justify-content: center; min-height: 400px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); font-size: 1.1rem;
}

/* ── Footer ── */
.site-footer {
  background: #fff;
  color: var(--foreground);
  padding: 0;
  font-size: 1rem;
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  border-top: 1px solid rgba(31,45,48,0.1);
}
.footer-main {
  padding: 44px 0;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.footer-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: none;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 22px rgba(31,45,48,0.12);
}
.site-footer h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}
.footer-tagline {
  font-size: 1rem;
  line-height: 1.7;
  margin: -6px 0 0;
  color: var(--muted);
  max-width: 540px;
}
.footer-primary-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.footer-primary-links a {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-primary-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-contact-line {
  display: flex;
  justify-content: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-style: normal;
  font-size: 0.94rem;
}
.footer-contact-line a { color: var(--muted); transition: color 0.2s ease; }
.footer-contact-line a:hover { color: var(--primary); }
.footer-bottom-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(31,45,48,0.1);
  text-align: center;
}
.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-legal-links a {
  font-size: 0.82rem;
  color: rgba(31,45,48,0.58);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--primary); }
.footer-copyright {
  font-size: 0.82rem;
  color: rgba(31,45,48,0.56);
  margin: 0;
}
.footer-copyright a { color: var(--primary); font-weight: 700; }
@media (max-width: 600px) {
  .footer-main { padding: 36px 0; }
  .footer-primary-links a { width: 100%; max-width: 260px; }
  .footer-contact-line,
  .footer-bottom-strip { flex-direction: column; }
}

@media (max-width: 1024px) {
  .feature-grid-3,
  .detail-list,
  .fact-strip .container,
  .contact-stack,
  .split-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body { font-size: 1rem; line-height: 1.7; }
  .page-section { padding: 72px 0; }
  .page-header { margin-bottom: 36px; }
  .page-header h1,
  .page-header h2 { font-size: 2.15rem !important; }
  .hero { min-height: 72vh; }
  .hero-actions,
  .button-row { flex-direction: column; align-items: stretch; }
  .btn-primary,
  .btn-secondary { width: 100%; }
  .fact-strip { margin-top: 28px; }
  .fact-item,
  .feature-card,
  .pathway-card,
  .resource-card,
  .contact-panel,
  .info-card,
  .program-card { padding: 22px; border-radius: 18px; }
}

/* ── Motion Moments ── */

/* 1. Ken Burns — hero photo ambient scale */
@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.04) translate(-8px, -4px); }
  100% { transform: scale(1)    translate(0, 0); }
}

/* 2. Gold bar draw */
@keyframes goldBarDraw {
  from { width: 0; opacity: 0; }
  to   { width: 60px; opacity: 1; }
}
.gold-bar {
  width: 0;
  opacity: 0;
  animation: goldBarDraw 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
}
.gold-bar.in-view { animation-play-state: running; }

/* 3. Programme row entry */
@keyframes programmeReveal {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.programme-row {
  animation: programmeReveal 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-play-state: paused;
}
.programme-row.in-view { animation-play-state: running; }
.programme-row:nth-child(1) { animation-delay: 0s; }
.programme-row:nth-child(2) { animation-delay: 0.1s; }
.programme-row:nth-child(3) { animation-delay: 0.2s; }
.programme-row:nth-child(4) { animation-delay: 0.3s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .gold-bar           { width: 60px; opacity: 1; animation: none; }
  .programme-row      { opacity: 1; transform: none; animation: none; }
  .hero-photo .hero-slide.active { animation: none; }
}

/* ── Skip to Content (Accessibility) ── */
.skip-to-content {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden; z-index: 9999;
  background: var(--primary); color: var(--primary-fg); padding: 12px 24px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none; border-radius: 0 0 6px 6px;
}
.skip-to-content:focus {
  position: fixed; left: 50%; top: 0; transform: translateX(-50%);
  width: auto; height: auto; overflow: visible;
}

/* ── Breadcrumbs ── */
.breadcrumbs-bar {
  background: rgba(160, 117, 72, 0.08); border-bottom: 1px solid rgba(160, 117, 72, 0.14); padding: 10px 0;
}
.breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  font-size: 0.8rem; color: rgba(95, 107, 109, 0.88);
}
.breadcrumbs a { color: #8f6339; font-weight: 500; }
.breadcrumbs a:hover { opacity: 0.72; }
.breadcrumb-sep { color: rgba(95, 107, 109, 0.72); margin: 0 4px; }
.breadcrumb-current { font-weight: 400; color: rgba(31, 45, 48, 0.8); }

/* ── Network System ── */
.page-header h1,
.page-header h2,
.network-section-heading {
  font-size: clamp(2.25rem, 2vw + 1.6rem, 2.8rem);
}

.page-header p,
.content-block,
.network-copy-limit {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.content-block p + p,
.network-copy-limit p + p {
  margin-top: 16px;
}

.intro-centered {
  max-width: 860px !important;
  margin: 0 auto !important;
  text-align: center;
}

.intro-centered .section-label,
.intro-centered h2,
.intro-centered .arabic,
.intro-centered p {
  text-align: center;
}

.intro-centered .arabic {
  direction: rtl;
}

.split-intro-single {
  grid-template-columns: minmax(0, 1fr);
}

.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 32px;
  align-items: center;
}

.media-card {
  background: var(--warm-panel);
  border: 1px solid rgba(160, 117, 72, 0.16);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(31, 45, 48, 0.08);
  min-height: 100%;
}

.media-card img,
.media-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border: 0;
}

.signature-block {
  margin-top: 26px;
  text-align: center;
  color: var(--foreground);
}

.signature-block strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary {
  min-height: 52px;
  border-radius: 999px;
  padding: 14px 24px;
  font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.text-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--primary);
  font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.text-link-btn:hover {
  opacity: 0.78;
}

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

.network-link-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.network-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.network-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.network-card-link .card-link,
.network-card-link .text-link-btn {
  margin-top: auto;
}

.network-section-copy {
  text-align: center;
}

.network-section-copy .section-label,
.network-section-copy h2,
.network-section-copy p {
  text-align: center;
}

.network-utility-links .resource-card,
.network-outcomes-grid .resource-card,
.network-outcomes-grid .contact-panel,
.network-link-grid .resource-card,
.network-link-grid .contact-panel {
  height: 100%;
}

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

.breadcrumbs-bar {
  background: rgba(196, 149, 106, 0.1);
  border-bottom: 1px solid rgba(160, 117, 72, 0.16);
  padding: 14px 0;
}

.breadcrumbs {
  gap: 6px;
  font-size: 0.88rem;
}

.breadcrumb-current {
  font-weight: 600;
  color: var(--foreground);
}

.site-footer {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .media-split,
  .network-link-grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .network-link-grid,
  .network-outcomes-grid,
  .fact-strip .container {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .media-card img,
  .media-card iframe {
    min-height: 260px;
  }
}

/* ── Photo Gallery Carousel ── */
.gallery-section { background: var(--background); }

/* Clips horizontal overflow, leaves vertical room for shadow */
.gallery-carousel {
  overflow: hidden;
  padding: 28px 0 8px;
}

/* Stacking context for absolutely positioned cards */
.gallery-track {
  position: relative;
  height: 420px;
}

/* ── Every card: default = hidden (any unrecognised data-pos) ── */
.gallery-card {
  position: absolute;
  width: 64%;
  left: 18%;           /* (100 - 64) / 2 */
  top: 0;
  bottom: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  /* Hidden by default — JS assigns data-pos */
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transform: scale(0.6);
  transition:
    transform  0.52s cubic-bezier(0.33, 1, 0.68, 1),
    opacity    0.52s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.52s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform, opacity;
}

/* Active — center, full size, elevated */
.gallery-card[data-pos="0"] {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

/* Adjacent left */
.gallery-card[data-pos="-1"] {
  transform: translateX(-78%) scale(0.86);
  opacity: 0.52;
  z-index: 5;
  pointer-events: auto;
  box-shadow: none;
}

/* Adjacent right */
.gallery-card[data-pos="1"] {
  transform: translateX(78%) scale(0.86);
  opacity: 0.52;
  z-index: 5;
  pointer-events: auto;
  box-shadow: none;
}

/* Far left */
.gallery-card[data-pos="-2"] {
  transform: translateX(-142%) scale(0.72);
  opacity: 0.18;
  z-index: 3;
  pointer-events: none;
}

/* Far right */
.gallery-card[data-pos="2"] {
  transform: translateX(142%) scale(0.72);
  opacity: 0.18;
  z-index: 3;
  pointer-events: none;
}

.gallery-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Expand icon overlay — only visible on active card hover */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(18, 44, 43, 0);
  opacity: 0;
  transition: background 0.3s, opacity 0.3s;
}

.gallery-card[data-pos="0"]:hover .gallery-card-overlay,
.gallery-card[data-pos="0"]:focus-visible .gallery-card-overlay {
  background: rgba(18, 44, 43, 0.3);
  opacity: 1;
}

/* ── Pill dots ── */
.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.gallery-dot {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.33, 1, 0.68, 1), background 0.35s;
}

.gallery-dot.active {
  width: 28px;
  background: var(--primary);
}

/* ── Gallery Lightbox ── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-lightbox[hidden] { display: none; }

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 28, 0.9);
  backdrop-filter: blur(10px);
}

.gallery-lightbox-dialog {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
  width: 100%;
  z-index: 1;
}

.gallery-lb-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  max-height: 82vh;
}

.gallery-lb-img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-lb-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.gallery-lb-close:hover { background: rgba(255, 255, 255, 0.26); }

.gallery-lb-prev,
.gallery-lb-next {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.gallery-lb-prev:hover { background: rgba(255, 255, 255, 0.22); transform: translateX(-2px); }
.gallery-lb-next:hover { background: rgba(255, 255, 255, 0.22); transform: translateX(2px); }

.gallery-lb-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .gallery-track { height: 320px; }
  .gallery-card { width: 72%; left: 14%; }
  .gallery-card[data-pos="-1"] { transform: translateX(-82%) scale(0.86); }
  .gallery-card[data-pos="1"]  { transform: translateX(82%)  scale(0.86); }
}

@media (max-width: 600px) {
  .gallery-track { height: 240px; }
  .gallery-card { width: 84%; left: 8%; border-radius: 16px; }
  .gallery-card[data-pos="-1"] { transform: translateX(-88%) scale(0.88); }
  .gallery-card[data-pos="1"]  { transform: translateX(88%)  scale(0.88); }
  .gallery-card[data-pos="-2"],
  .gallery-card[data-pos="2"]  { opacity: 0; }
  .gallery-lb-prev,
  .gallery-lb-next { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card { transition: none; }
  .gallery-dot  { transition: none; }
}

@media (max-width: 768px) {
  .pattern-card-grid,
  .contact-card-grid,
  .map-block {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .map-panel {
    padding: 24px;
  }

  .contact-list-item {
    flex-direction: column;
  }

  .contact-list-item .copy-action,
  .contact-actions .copy-action {
    width: 100%;
  }

  .timetable-group summary {
    padding: 20px 18px;
  }

  .timetable-group__meta {
    white-space: normal;
  }

  .timetable-panel {
    padding: 0 18px 18px;
  }

  .map-embed iframe {
    min-height: 340px;
  }
}


@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .timetable tbody tr,
  .contact-icon,
  .copy-action {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: #2d8a88; color: var(--primary-fg);
  border: none; font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 12px hsla(220, 20%, 18%, 0.2);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
  transform: translateY(10px);
}
.back-to-top::before {
  content: "";
  position: absolute;
  inset: auto 8px -10px;
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 45, 48, 0.16);
  filter: blur(8px);
  opacity: 0.45;
  transition: transform 0.3s, opacity 0.3s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top.visible:hover,
.back-to-top.visible:focus-visible {
  opacity: 1;
  transform: translateY(-7px) scale(1.05);
  box-shadow: 0 18px 28px rgba(31, 45, 48, 0.24);
}
.back-to-top.visible:hover::before,
.back-to-top.visible:focus-visible::before {
  opacity: 0.2;
  transform: scale(0.72);
}

/* ── WordPress Alignment Classes ── */
.alignleft { float: left; margin-right: 24px; margin-bottom: 16px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 16px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* ── Hifdh: Verse Takeover ── */
.hifdh-takeover {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease;
}
.hifdh-takeover.is-dismissed {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.hifdh-takeover .verse-arabic {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--gold);
  text-align: center;
  direction: rtl;
  line-height: 2;
  padding: 0 32px;
  max-width: 880px;
  transition: opacity 1s ease;
}
.hifdh-takeover .verse-ref {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.9rem;
  color: rgba(196, 149, 106, 0.45);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 28px;
  transition: opacity 1s ease;
}
.hifdh-takeover.is-fading .verse-arabic,
.hifdh-takeover.is-fading .verse-ref {
  opacity: 0.15;
}
.hifdh-page-body {
  transform: translateY(36px);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.85s ease;
}
.hifdh-page-body.is-revealed {
  transform: translateY(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hifdh-takeover { display: none !important; }
  .hifdh-page-body { transform: none; opacity: 1; transition: none; }
}

/* ── Print Stylesheet ── */
@media print {
  .navbar, .site-footer, .back-to-top, .breadcrumbs-bar,
  .navbar-search-drop, .mobile-menu, .hero-dots { display: none !important; }
  body { padding-top: 0 !important; color: #000; background: #fff; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .hero { min-height: auto; color: #000; }
  .hero-overlay { display: none; }
  .hero-content { position: static; padding: 24px 0; }
  .page-section { padding: 24px 0; }
  img { max-width: 100%; }
}

/* ── Info / Feature cards: Desktop hover lift ── */
@media (min-width: 769px) {
  .info-card,
  .feature-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
  }
  .info-card:hover,
  .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.13);
  }
  .info-card .text-link-btn,
  .feature-card .text-link-btn {
    display: inline-block;
    transition: transform 0.2s ease;
  }
  .info-card:hover .text-link-btn,
  .feature-card:hover .text-link-btn {
    transform: translateX(5px);
  }
}

/* ── Card grids: Mobile carousel ── */
@media (max-width: 768px) {
  [data-carousel] {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px 10% 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * {
    flex: 0 0 78%;
    scroll-snap-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.55;
    transform: scale(0.92);
  }
  [data-carousel] > *.is-center {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  }
}

/* ── Search: input wrap + spinner ── */
.navbar-search-input-wrap {
  position: relative;
  width: 100%;
}
.navbar-search-spinner {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(45,138,136,0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.navbar-search-input-wrap.is-loading .navbar-search-spinner {
  opacity: 1;
  animation: rawdhaSpin 0.7s linear infinite;
}
@keyframes rawdhaSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ── Search: live results panel ── */
.navbar-search-results {
  display: none;
  margin-top: 8px;
  background: rgba(240,249,248,0.99);
  border: 1px solid rgba(45,138,136,0.18);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31,45,48,0.1);
  max-height: 360px;
  overflow-y: auto;
}
.navbar-search-results:not(:empty) { display: block; }
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--foreground);
  border-bottom: 1px solid rgba(45,138,136,0.08);
  transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item[aria-selected="true"] { background: rgba(45,138,136,0.1); }
.search-result-item[aria-selected="true"] {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.search-result-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  align-self: center;
  background: var(--border);
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-title {
  font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-excerpt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-badge {
  flex-shrink: 0;
  font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(45,138,136,0.12);
  border-radius: 999px;
  padding: 2px 8px;
  align-self: center;
  white-space: nowrap;
}
mark.search-highlight {
  background: rgba(45,138,136,0.2);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}
.search-view-all {
  display: block;
  padding: 11px 16px;
  text-align: center;
  font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  border-top: 1px solid rgba(45,138,136,0.12);
  text-decoration: none;
  transition: background 0.15s;
}
.search-view-all:hover { background: rgba(45,138,136,0.08); }
.search-result-message {
  padding: 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .navbar-search-drop,
  .navbar-search-drop.open { transition: opacity 0.01s, visibility 0s; }
  .navbar-search-input-wrap.is-loading .navbar-search-spinner { animation: none; }
}

/* ════════════════════════════════════════════
   Buttons: Option 1 Fill Sweep
════════════════════════════════════════════ */
.btn-primary,
.btn-secondary,
.wp-block-button__link,
.wp-element-button,
.announce-btn,
.contact-form button,
.donate-btn-primary,
.copy-action,
.card-link,
.text-link-btn,
.courses-editorial-cta,
.home-action-link,
.flip-back-link,
.term-doc-link,
.media-card-button,
a[style*="var(--gold-gradient)"],
a[style*="background:#"],
a[style*="background: #"],
a[style*="background:var(--primary)"],
a[style*="background: var(--primary)"],
button[style*="background:var(--primary)"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 52px !important;
  padding: 0 32px !important;
  border-radius: 999px !important;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  background: transparent !important;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary::before,
.btn-secondary::before,
.wp-block-button__link::before,
.wp-element-button::before,
.announce-btn::before,
.contact-form button::before,
.donate-btn-primary::before,
.copy-action::before,
.card-link::before,
.text-link-btn::before,
.courses-editorial-cta::before,
.home-action-link::before,
.flip-back-link::before,
.term-doc-link::before,
.media-card-button::before,
a[style*="var(--gold-gradient)"]::before,
a[style*="background:#"]::before,
a[style*="background: #"]::before,
a[style*="background:var(--primary)"]::before,
a[style*="background: var(--primary)"]::before,
button[style*="background:var(--primary)"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.wp-block-button__link:hover::before,
.wp-element-button:hover::before,
.announce-btn:hover::before,
.contact-form button:hover::before,
.donate-btn-primary:hover::before,
.copy-action:hover::before,
.card-link:hover::before,
.text-link-btn:hover::before,
.courses-editorial-cta:hover::before,
.home-action-link:hover::before,
.flip-back-link:hover::before,
.term-doc-link:hover::before,
.media-card-button:hover::before,
a[style*="var(--gold-gradient)"]:hover::before,
a[style*="background:#"]:hover::before,
a[style*="background: #"]:hover::before,
a[style*="background:var(--primary)"]:hover::before,
a[style*="background: var(--primary)"]:hover::before,
button[style*="background:var(--primary)"]:hover::before {
  transform: translateX(0);
}

.btn-primary:hover,
.btn-secondary:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
.announce-btn:hover,
.contact-form button:hover,
.donate-btn-primary:hover,
.copy-action:hover,
.card-link:hover,
.text-link-btn:hover,
.courses-editorial-cta:hover,
.home-action-link:hover,
.flip-back-link:hover,
.term-doc-link:hover,
.media-card-button:hover,
a[style*="var(--gold-gradient)"]:hover,
a[style*="background:#"]:hover,
a[style*="background: #"]:hover,
a[style*="background:var(--primary)"]:hover,
a[style*="background: var(--primary)"]:hover,
button[style*="background:var(--primary)"]:hover {
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.btn-primary svg,
.btn-secondary svg,
.wp-block-button__link svg,
.wp-element-button svg,
.announce-btn svg,
.contact-form button svg,
.donate-btn-primary svg,
.copy-action svg,
.card-link svg,
.text-link-btn svg,
.courses-editorial-cta svg,
.home-action-link svg,
.flip-back-link svg,
.term-doc-link svg,
.media-card-button svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke: currentColor;
}

.breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  color: rgba(95, 107, 109, 0.72);
  margin: 0 4px;
}

.breadcrumb-sep svg {
  width: 0.85em;
  height: 0.85em;
  stroke: currentColor;
}

/* Achievements page card redesign */
.page-achievements .achievement-seal-grid,
.achievement-seal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.page-achievements .achievement-seal-grid--four,
.achievement-seal-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-achievements .achievement-seal-card,
.achievement-seal-card {
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
  min-height: 100%;
  padding: 30px 24px;
  text-align: center;
  border: 1px solid rgba(45, 138, 136, 0.2) !important;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, rgba(232, 244, 243, 0.76) 100%) !important;
  box-shadow: 0 10px 28px rgba(31, 45, 48, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-achievements .achievement-seal-card::before,
.page-achievements .achievement-seal-card::after,
.page-achievements .achievement-feature-card::before,
.page-achievements .achievement-feature-card::after,
.page-achievements .achievement-notice-card::before,
.page-achievements .achievement-notice-card::after,
.achievement-seal-card::before,
.achievement-seal-card::after,
.achievement-feature-card::before,
.achievement-feature-card::after,
.achievement-notice-card::before,
.achievement-notice-card::after {
  content: none !important;
  display: none !important;
}

.page-achievements .achievement-seal-card:hover,
.achievement-seal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 138, 136, 0.42) !important;
  box-shadow: 0 16px 38px rgba(31, 45, 48, 0.1);
}

.page-achievements .achievement-seal,
.achievement-seal {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: radial-gradient(circle, rgba(45, 138, 136, 0.15), rgba(160, 117, 72, 0.06));
  border: 1px solid rgba(45, 138, 136, 0.28);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
}

.page-achievements .achievement-seal-card h3,
.page-achievements .achievement-feature-card h3,
.page-achievements .achievement-notice-card h3,
.achievement-seal-card h3,
.achievement-feature-card h3,
.achievement-notice-card h3 {
  color: var(--foreground);
}

.page-achievements .achievement-seal-card h3,
.achievement-seal-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.page-achievements .achievement-seal-card p,
.achievement-seal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.page-achievements .achievement-feature-card,
.achievement-feature-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 1px solid rgba(45, 138, 136, 0.24) !important;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, rgba(232, 244, 243, 0.78) 100%) !important;
  box-shadow: 0 14px 36px rgba(31, 45, 48, 0.08);
}

.page-achievements .achievement-feature-seal,
.achievement-feature-seal {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: var(--primary);
  background: radial-gradient(circle, rgba(45, 138, 136, 0.16), rgba(160, 117, 72, 0.06));
  border: 1px solid rgba(45, 138, 136, 0.28);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
}

.page-achievements .achievement-feature-content,
.achievement-feature-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.page-achievements .achievement-eyebrow,
.achievement-eyebrow {
  margin-bottom: 10px;
  color: #a07548;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-achievements .achievement-chip,
.achievement-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(45, 138, 136, 0.12);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.page-achievements .achievement-link-row,
.achievement-link-row {
  margin: 16px 0 0;
}

.page-achievements .achievement-link-row a,
.achievement-link-row a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.page-achievements .achievement-link-row a:hover,
.achievement-link-row a:hover {
  color: var(--foreground);
}

.page-achievements .achievement-notice-grid,
.achievement-notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.page-achievements .achievement-notice-card,
.achievement-notice-card {
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(45, 138, 136, 0.12) !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 10px 28px rgba(31, 45, 48, 0.05);
}

.page-achievements .achievement-notice-card h3,
.achievement-notice-card h3 {
  margin: 0 0 10px;
}

.page-achievements .achievement-notice-card p,
.achievement-notice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 1050px) {
  .page-achievements .achievement-seal-grid,
  .page-achievements .achievement-seal-grid--four,
  .achievement-seal-grid,
  .achievement-seal-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-achievements .achievement-seal-grid,
  .page-achievements .achievement-seal-grid--four,
  .page-achievements .achievement-notice-grid,
  .achievement-seal-grid,
  .achievement-seal-grid--four,
  .achievement-notice-grid {
    grid-template-columns: 1fr;
  }

  .page-achievements .achievement-seal-card,
  .achievement-seal-card {
    padding: 26px 22px;
  }

  .page-achievements .achievement-seal-card:hover,
  .achievement-seal-card:hover {
    transform: none;
  }

  .page-achievements .achievement-seal,
  .achievement-seal {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    font-size: 1.12rem;
  }

  .page-achievements .achievement-feature-card,
  .achievement-feature-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 28px 22px;
  }

  .page-achievements .achievement-feature-content,
  .achievement-feature-content {
    display: grid;
    justify-items: center;
  }

  .page-achievements .achievement-feature-seal,
  .achievement-feature-seal {
    width: 104px;
    height: 104px;
    font-size: 0.94rem;
  }

  .page-achievements .achievement-chip,
  .achievement-chip {
    margin-top: 2px;
  }
}

/* Table Option 10 - Gold Rule Table */
.gold-rule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid rgba(160, 117, 72, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(31, 45, 48, 0.055);
  font-size: 0.96rem;
}
.gold-rule-table thead th {
  background: #fff;
  color: var(--muted);
  border-bottom: 2px solid var(--primary);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gold-rule-table tbody td {
  padding: 14px 16px;
  color: var(--foreground);
  border-bottom: 1px solid rgba(160, 117, 72, 0.12);
  background: #fff;
}
.gold-rule-table tbody tr:last-child td { border-bottom: 0; }
.gold-rule-table tbody td:first-child { font-weight: 800; }
.gold-rule-table tbody tr:hover td { background: rgba(45, 138, 136, 0.08); }
@media (max-width: 600px) {
  .gold-rule-table,
  .gold-rule-table thead,
  .gold-rule-table tbody,
  .gold-rule-table th,
  .gold-rule-table td,
  .gold-rule-table tr { display: block; }
  .gold-rule-table { background: transparent; border: 0; box-shadow: none; }
  .gold-rule-table thead { display: none; }
  .gold-rule-table tbody tr {
    background: #fff;
    border: 1px solid rgba(160, 117, 72, 0.12);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(31, 45, 48, 0.045);
  }
  .gold-rule-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(160, 117, 72, 0.12);
    background: transparent;
  }
  .gold-rule-table tbody td:last-child { border-bottom: 0; }
  .gold-rule-table tbody td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

/* ── Homepage admissions card (portal status embed) ── */
.home-admissions {
  max-width: 860px;
  margin: 28px auto;
  padding: 34px 28px 32px;
  text-align: center;
  background: #1f2d30;
  color: #ffffff;
  border: 1px solid rgba(45,138,136,0.45);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(31,45,48,0.25);
}
.home-admissions-kicker {
  display: block;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7fd0cd;
  margin-bottom: 8px;
}
.home-admissions h2 { font-size: 1.7rem; margin: 0 0 6px; color: #ffffff; }
.home-admissions p { margin: 0 0 22px; color: rgba(255,255,255,0.72); font-size: 0.98rem; }
.home-admissions iframe { display: block; margin: 0 auto; border-radius: 14px; background: #fff; }
.home-admissions-link { display: inline-block; margin-top: 20px; color: #7fd0cd; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.home-admissions-link:hover { color: #ffffff; }
@media (max-width: 900px) {
  .home-admissions { margin-left: 20px; margin-right: 20px; }
}
@media (max-width: 600px) {
  .home-admissions { padding: 20px 18px 22px; }
  .home-admissions h2 { font-size: 1.3rem; }
}

/* ── Student Exam Resources: JS accordion + checklist links (ported from Jamiah) ── */
.jm-accordion-list { display: flex; flex-direction: column; gap: 10px; }
.jm-accordion-item { border: 1px solid rgba(0,0,0,0.09); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow 0.2s ease; }
.jm-accordion-item.open { box-shadow: 0 8px 32px rgba(0,0,0,0.09); }
.jm-accordion-trigger { width: 100%; background: none; border: none; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; text-align: left; }
.jm-accordion-trigger-left { display: flex; align-items: center; gap: 14px; }
.jm-accordion-trigger h3 { font-size: 1rem; font-weight: 700; color: #111; margin: 0; }
.jm-accordion-chevron { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; color: #888; flex-shrink: 0; transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.jm-accordion-item.open .jm-accordion-chevron { transform: rotate(180deg); background: var(--primary); border-color: var(--primary); color: #fff; }
.jm-accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.jm-accordion-item.open .jm-accordion-panel { max-height: 700px; }
.jm-accordion-panel-inner { padding: 0 22px 22px; border-top: 1px solid rgba(0,0,0,0.06); padding-top: 18px; }
.jm-acc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jm-acc-subtitle { font-size: 0.82rem; color: #999; margin-top: 2px; }
.jm-check-section-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; margin-top: 16px; }
.jm-check-section-label:first-child { margin-top: 0; }
.jm-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.jm-check-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(45,138,136,0.05); border: 1px solid rgba(45,138,136,0.14); text-decoration: none; color: var(--foreground); font-size: 0.9rem; font-weight: 600; font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.jm-check-item:hover { background: rgba(45,138,136,0.1); border-color: rgba(45,138,136,0.32); transform: translateX(3px); }
.jm-check-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 20px; background: rgba(45,138,136,0.12); color: var(--primary); font-size: 0.78rem; font-weight: 900; }
.jm-check-arrow { margin-left: auto; color: var(--primary); flex-shrink: 0; }
.jm-resource-notes { margin-top: 14px; color: var(--muted); font-size: 0.88rem; line-height: 1.75; }
.jm-resource-notes p { margin: 0; }
