/*
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: 'Crimson Pro', Georgia, serif;
  color: var(--foreground);
  background: var(--background);
  font-size: 1.125rem;
  line-height: 1.8;
  padding-top: 94px;
}
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: 'Crimson Pro', Georgia, serif;
  font-size: 0.69rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; 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 {
  display: none; position: absolute; top: 100%; 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;
}
.nav-item:hover > .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 10px 20px; font-size: 0.82rem; font-weight: 400;
  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); }
/* Search dropdown bar */
.navbar-search-drop {
  display: 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);
}
.navbar-search-drop.open { display: block; }
.navbar-search-form {
  display: flex !important; align-items: center !important; gap: 0 !important;
  max-width: var(--container); margin: 0 auto; position: relative;
}
.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: 'Crimson Pro', Georgia, 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; }
.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: 4px !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 {
  font-weight: 600; position: relative; display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu .mobile-parent::after {
  content: ''; display: inline-block; width: 8px; height: 8px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg); transition: transform 0.25s ease; flex-shrink: 0; margin-left: 8px;
}
.mobile-menu .mobile-parent.open::after,
.mobile-menu .mobile-parent.current-menu-ancestor::after {
  transform: rotate(-135deg);
}
.mobile-menu a { display: block; padding: 8px 0; font-size: 0.95rem; text-transform: uppercase; font-weight: 600; color: rgba(31,45,48,0.88); }
.mobile-menu .mobile-sub { padding-left: 16px; display: none; }
.mobile-menu .mobile-parent.open + .mobile-sub,
.mobile-menu .mobile-parent.current-menu-ancestor + .mobile-sub { display: block; }
.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: linear-gradient(180deg, rgba(17, 19, 22, 0.18), rgba(17, 19, 22, 0.1)); backdrop-filter: blur(2px); }
.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); }
/* 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 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; }
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr !important; }
  .aalim-subjects-grid { grid-template-columns: 1fr !important; }
  .aalim-two-part { flex-direction: column; }
  .aalim-aims-list .info-card { padding: 16px !important; }
}

/* ── 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; } }

/* ── 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;
}

.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;
}

.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;
}


.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: #a07548;
  color: hsla(0,0%,100%,0.92);
  padding: 72px 0 0;
  font-size: 1rem;
  font-family: 'Crimson Pro', Georgia, serif;
  border-top: 4px solid #8b623d;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 54px;
  padding-bottom: 44px;
  border-bottom: 1px solid hsla(0,0%,100%,0.12);
  margin-bottom: 0;
}
.footer-col {}
.footer-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.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(0,0,0,0.18);
}
.site-footer h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 0;
}
.site-footer h4 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; color: rgba(224,240,239,0.78);
  margin-bottom: 18px; margin-top: 0;
}
.footer-tagline { font-size: 1rem; line-height: 1.8; margin: 12px 0 18px; color: rgba(255,255,255,0.78); max-width: 540px; }
.footer-charity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.footer-charity-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.footer-charity-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e0f0ef;
  border-bottom: 1px solid rgba(224,240,239,0.35);
  transition: border-color 0.2s;
}
.footer-charity-number:hover { border-color: var(--gold); }
.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 12px; }
.footer-links-list a {
  font-size: 0.98rem;
  color: hsla(0,0%,100%,0.8);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.footer-links-list a:hover { color: #fff; transform: translateX(3px); }
.footer-address { font-style: normal; }
.footer-address p { font-size: 0.98rem; line-height: 1.8; margin-bottom: 10px; color: rgba(255,255,255,0.8); }
.footer-address a { color: hsla(0,0%,100%,0.84); transition: color 0.2s; }
.footer-address a:hover { color: #fff; }
.footer-bottom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0 36px;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.footer-legal-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.54);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.8); }
.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.42);
  margin: 0;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-strip { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-top: 60px; }
}

@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); }

/* ── 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;
  transform: translateY(10px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { opacity: 0.85; }

/* ── 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; }

/* ── 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%; }
}
