/* Maabaidhoo Council — frontend visual theme
   Brand: teal #1f8a70 | navy #133b5c | green #1c6b3d → #24b26b
   Content unchanged — presentation only
*/

:root {
  --brand-teal: #1f8a70;
  --brand-teal-deep: #176f5a;
  --brand-navy: #133b5c;
  --brand-green: #1c6b3d;
  --brand-green-bright: #24b26b;
  --brand-mint: #e6f5ec;
  --brand-mint-soft: #f3faf6;
  --brand-sand: #f0e5cf;
  --surface: #f4f8f5;
  --ink: #133b5c;
  --muted: #5b6b76;
  --line: rgba(19, 59, 92, 0.08);
  --shadow-soft: 0 18px 40px rgba(19, 59, 92, 0.08);
  --shadow-card: 0 10px 28px rgba(19, 59, 92, 0.07);
  --radius-lg: 1.35rem;
  --radius-xl: 1.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

html[dir="rtl"],
html[data-locale="dv"] {
  direction: rtl;
}

html[dir="ltr"],
html[data-locale="en"] {
  direction: ltr;
}

html[data-locale="en"] body,
html[dir="ltr"] body {
  direction: ltr;
  text-align: start;
}

html[data-locale="dv"] body,
html[dir="rtl"] body {
  direction: rtl;
  text-align: start;
}

body.bg-\[\#f2f7f4\],
body {
  font-family: Manrope, "AK Rasmee", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(36, 178, 107, 0.08), transparent 55%),
    radial-gradient(900px 420px at 0% 20%, rgba(31, 138, 112, 0.07), transparent 50%),
    var(--surface) !important;
  color: var(--ink);
  text-align: start;
}

/* English: modern Latin typeface (Plus Jakarta Sans) */
html[data-locale="en"] body,
html[dir="ltr"] body,
body.locale-en {
  font-family: "Plus Jakarta Sans", Manrope, system-ui, sans-serif !important;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-locale="en"] .site-brand-title,
html[data-locale="en"] .nav-top-link,
html[data-locale="en"] .nav-dd-link,
html[data-locale="en"] .hero-heading,
html[data-locale="en"] .hero-subtitle,
html[data-locale="en"] .section-heading h3,
html[data-locale="en"] .ghost-link,
html[data-locale="en"] .card-title,
html[data-locale="en"] .card-more,
html[data-locale="en"] .stat-label,
html[data-locale="en"] .stat-value,
html[data-locale="en"] .site-lang-switch,
html[dir="ltr"] .site-brand-title,
html[dir="ltr"] .nav-top-link,
html[dir="ltr"] .section-heading h3 {
  font-family: "Plus Jakarta Sans", Manrope, system-ui, sans-serif !important;
}

.dv,
.dv-bold,
.waheed,
.randhoo {
  letter-spacing: 0.01em;
}

/* Header */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-chrome > header.bg-white,
header.bg-white {
  position: relative !important;
  top: auto !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(19, 59, 92, 0.04) !important;
  overflow: visible !important;
}
.site-chrome .header-inner,
header.bg-white > .header-inner,
header.bg-white > div:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1.25rem;
  min-height: 4.25rem;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
  overflow: visible !important;
  position: relative;
}
html[dir="ltr"] .site-chrome .header-inner,
html[data-locale="en"] .site-chrome .header-inner {
  gap: 1rem;
}
.site-chrome .site-brand {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.85rem !important;
  flex: 0 0 auto;
  max-width: min(38%, 20rem);
  min-width: 0;
  text-decoration: none;
  order: 1;
  margin-inline-end: 1rem;
}
html[data-locale="en"] .site-chrome .site-brand,
html[dir="ltr"] .site-chrome .site-brand {
  max-width: min(34%, 17.5rem);
  margin-inline-end: 0.35rem;
}
html[data-locale="en"] .site-chrome .site-brand-title,
html[dir="ltr"] .site-chrome .site-brand-title {
  font-size: 0.92rem !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
}
/* RTL: logo first = far right; title sits immediately to its left */
.site-chrome .site-brand img,
header .site-brand img,
header a.site-brand img,
header a img.h-12,
header a img.h-14 {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  display: block !important;
  flex: 0 0 48px !important;
  padding: 0 !important;
  margin: 0 !important;
}
.site-chrome .site-brand-text {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  text-align: start;
}
.site-chrome .site-brand-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 !important;
  padding: 0;
  font-size: 1.05rem !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  color: var(--brand-navy) !important;
}
.site-chrome .site-nav,
header nav.site-nav {
  position: static !important;
  left: auto !important;
  transform: none !important;
  display: none;
  order: 2;
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.1rem !important;
  min-width: 0;
  width: max-content !important;
  max-width: none !important;
  padding: 0.28rem !important;
  border-radius: 999px;
  background: rgba(31, 138, 112, 0.06);
  border: 1px solid rgba(31, 138, 112, 0.08);
  margin-inline-start: 0.5rem;
  overflow: visible;
  box-sizing: border-box;
}
/* English: pin nav pill to the trailing edge so header isn't left-clustered */
html[dir="ltr"] .site-chrome .site-nav,
html[data-locale="en"] .site-chrome .site-nav,
html[dir="ltr"] header nav.site-nav,
html[data-locale="en"] header nav.site-nav {
  margin-inline-start: auto;
  margin-inline-end: 0;
}
@media (min-width: 768px) {
  .site-chrome .site-nav,
  header nav.site-nav {
    display: inline-flex !important;
  }
}
#mobile-menu-button {
  order: 3;
  margin-inline-start: auto;
  border-radius: 0.85rem;
}
html[dir="ltr"] #mobile-menu-button,
html[data-locale="en"] #mobile-menu-button {
  margin-inline-start: 0.5rem;
}
.nav-top-link {
  display: inline-flex !important;
  align-items: center !important;
  max-width: none !important;
  padding: 0.55rem 0.72rem !important;
  gap: 0.22rem !important;
  font-weight: 600 !important;
  color: var(--brand-navy) !important;
  line-height: 1.3 !important;
  font-size: 0.875rem !important;
  letter-spacing: -0.01em;
  border-radius: 999px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
html[data-locale="en"] .nav-top-link,
html[dir="ltr"] .nav-top-link {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.018em;
  padding: 0.5rem 0.62rem !important;
  gap: 0.18rem !important;
}
.nav-top-link span {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
}
.nav-top-link i {
  font-size: 0.85rem !important;
  opacity: 0.65;
  flex-shrink: 0;
}
.nav-top-link:hover,
.nav-item:hover > .nav-top-link {
  color: var(--brand-teal) !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(19, 59, 92, 0.08);
}
.site-chrome .site-nav > .nav-item,
.site-chrome .site-nav > a.nav-top-link {
  flex: 0 0 auto !important;
}

.site-topbar {
  background: linear-gradient(90deg, var(--brand-green), var(--brand-green-bright)) !important;
  position: relative;
  z-index: 2;
}
.site-topbar a {
  opacity: 0.95;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.site-topbar a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Hero */
.hero-stage {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  isolation: isolate;
}
.hero-stage video,
.hero-stage .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroKen 28s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(19, 59, 92, 0.55) 0%,
      rgba(19, 59, 92, 0.28) 38%,
      rgba(19, 59, 92, 0.55) 68%,
      rgba(19, 59, 92, 0.82) 100%
    ),
    linear-gradient(0deg,
      rgba(19, 59, 92, 0.72) 0%,
      rgba(19, 59, 92, 0.28) 45%,
      rgba(19, 59, 92, 0.18) 100%
    );
}
.hero-glow {
  position: absolute;
  inset: auto auto -20% -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(36, 178, 107, 0.28), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.25rem 0 4rem;
  color: #fff;
}
.hero-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.hero-copy {
  flex: 0 1 auto;
  max-width: min(100%, 44rem);
  margin: 0;
  direction: inherit;
  text-align: start;
  padding: 1.85rem 1.95rem 1.9rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  overflow: visible;
  isolation: isolate;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(36, 178, 107, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
}
.hero-heading {
  margin: 0;
  max-width: none;
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #fff;
  text-wrap: balance;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 14px 36px rgba(0, 0, 0, 0.3);
  animation: heroRise 0.75s var(--ease) 0.12s both;
}
.hero-heading::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  margin-top: 1rem;
  margin-inline-start: 0;
  margin-inline-end: auto;
  border-radius: 999px;
  background: linear-gradient(to right, #fff, var(--brand-green-bright));
  transform-origin: left center;
  animation: heroLine 0.8s var(--ease) 0.35s both;
}
html[dir="rtl"] .hero-heading::after {
  background: linear-gradient(to left, #fff, var(--brand-green-bright));
  transform-origin: right center;
}
.hero-subtitle {
  position: relative;
  margin-top: 1.2rem;
  max-width: none;
  margin-inline-start: 0;
  color: #ffffff !important;
  font-size: clamp(1.05rem, 1.4vw, 1.16rem);
  line-height: 2.15 !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.25);
  animation: heroRise 0.75s var(--ease) 0.22s both;
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  padding-inline-end: 0;
}
.hero-subtitle p,
.hero-subtitle .ce-paragraph,
.hero-subtitle span,
.hero-subtitle div,
.hero-subtitle li,
.hero-subtitle * {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  line-height: 2.15 !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.25);
  margin-top: 0.55rem;
  margin-bottom: 0.55rem;
}
.hero-subtitle p:first-child,
.hero-subtitle > *:first-child {
  margin-top: 0;
}
.hero-subtitle a {
  color: #d7ffe8 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.85rem;
  animation: heroRise 0.75s var(--ease) 0.34s both;
}
.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-hero-primary {
  background: #fff;
  color: var(--brand-navy);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  background: var(--brand-mint);
  color: var(--brand-teal-deep);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.btn-hero-secondary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(31, 138, 112, 0.28);
  backdrop-filter: blur(6px);
}
.btn-hero-secondary:hover {
  background: rgba(36, 178, 107, 0.42);
  border-color: #fff;
  transform: translateY(-2px);
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: translateX(-28px) scale(0.92); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes heroPulse {
  0% { opacity: 0.75; transform: scale(0.96); }
  70% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}
@keyframes heroLine {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes heroKen {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes heroGlow {
  from { opacity: 0.55; transform: translate3d(0, 0, 0); }
  to { opacity: 0.9; transform: translate3d(4%, -3%, 0); }
}

/* Main lift panel */
.home-main {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
  padding-bottom: 1.5rem;
}

/* Stats */
.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}
@media (min-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stat-card {
  position: relative;
  border-radius: 1.4rem !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)) !important;
  box-shadow:
    0 16px 36px rgba(19, 59, 92, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
  padding: 1.25rem 1.3rem 1.2rem !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease),
    opacity 0.55s var(--ease);
}
html.js-ready .reveal:not(.is-visible) .stat-card,
html.js-ready .reveal:not(.is-visible) .floating-card {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.is-visible .stat-card,
.stats-grid.is-visible .stat-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--stat-delay, 0s);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 178, 107, 0.22), transparent 70%);
  pointer-events: none;
  transition: transform 0.35s var(--ease);
}
.stat-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(36, 178, 107, 0.35) !important;
  box-shadow:
    0 22px 44px rgba(19, 59, 92, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}
.stat-card:hover::before {
  transform: scale(1.25) translate(-8%, -8%);
}
.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.stat-icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-teal);
  background: rgba(31, 138, 112, 0.12);
  border: 1px solid rgba(31, 138, 112, 0.14);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.stat-icon i {
  font-size: 1.2rem;
  line-height: 1;
}
.stat-card:hover .stat-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(36, 178, 107, 0.18);
  color: var(--brand-green-bright);
}
.stat-label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--brand-navy) !important;
}
.stat-card .stat-value {
  margin: 1rem 0 0 !important;
  color: var(--brand-green-bright) !important;
  font-size: clamp(2rem, 3vw, 2.45rem) !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-context {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Section headers */
.section-heading {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 1rem;
  margin-bottom: 1.35rem !important;
}
.section-heading h3 {
  position: relative;
  display: inline-block;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-heading h3::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.65rem;
  margin-inline-start: 0;
  margin-inline-end: auto;
  border-radius: 999px;
  background: linear-gradient(to right, var(--brand-teal), var(--brand-green-bright));
}
html[dir="rtl"] .section-heading h3::after {
  background: linear-gradient(to left, var(--brand-teal), var(--brand-green-bright));
}
.eyebrow {
  color: var(--brand-teal) !important;
  letter-spacing: 0.28em !important;
}
.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(31, 138, 112, 0.1);
  border: 1px solid rgba(31, 138, 112, 0.12);
  color: var(--brand-teal);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), gap 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ghost-link:hover {
  background: rgba(31, 138, 112, 0.16);
  gap: 0.65rem;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(31, 138, 112, 0.12);
}

/* Content grids + cards */
.content-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.floating-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: start;
  border-radius: 1.45rem !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5)) !important;
  box-shadow:
    0 14px 34px rgba(19, 59, 92, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  padding: 1.3rem 1.35rem 1.25rem !important;
  gap: 0.85rem !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease),
    opacity 0.55s var(--ease);
}
.reveal.is-visible .floating-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--card-delay, 0s);
}
.floating-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -40% auto;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 178, 107, 0.16), transparent 70%);
  pointer-events: none;
  transition: transform 0.35s var(--ease);
}
.floating-card:hover {
  transform: translateY(-7px) !important;
  box-shadow:
    0 22px 42px rgba(19, 59, 92, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(31, 138, 112, 0.22) !important;
}
.floating-card:hover::after {
  transform: scale(1.2) translate(-10%, -8%);
}
.floating-card.bg-\[\#e6f5ec\],
.floating-card.card-mint {
  background:
    linear-gradient(160deg, rgba(236, 250, 242, 0.88), rgba(220, 242, 230, 0.62)) !important;
  border-color: rgba(31, 138, 112, 0.16) !important;
}
.floating-card h4,
.floating-card .card-title {
  margin: 0;
  line-height: 1.55;
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--brand-navy);
  transition: color 0.2s var(--ease);
}
.floating-card:hover .card-title,
.floating-card.group:hover h4 {
  color: var(--brand-teal);
}
.floating-card img {
  border-radius: 1.1rem;
  transition: transform 0.35s var(--ease);
}
.floating-card:hover img {
  transform: scale(1.04);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}
.card-meta-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 138, 112, 0.12);
  color: var(--brand-teal);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.floating-card:hover .card-meta-icon {
  transform: scale(1.08) rotate(-6deg);
  background: rgba(36, 178, 107, 0.18);
}
.card-title-link {
  text-decoration: none;
}
.card-excerpt {
  color: #5b6b76 !important;
  font-size: 0.92rem !important;
  line-height: 1.85 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt p,
.card-excerpt * {
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
.card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 138, 112, 0.1);
  color: var(--brand-teal);
  font-size: 0.9rem;
  font-weight: 700;
  transition: gap 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.card-more:hover {
  gap: 0.65rem;
  background: rgba(31, 138, 112, 0.16);
  transform: translateX(2px);
}
html[dir="rtl"] .card-more:hover {
  transform: translateX(-2px);
}
.card-media-card {
  padding: 0.85rem !important;
}
.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 1.15rem;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f5ee, #dce9e2);
  flex-shrink: 0;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.45s var(--ease);
}
.floating-card:hover .card-media img {
  transform: scale(1.06);
}
.card-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
}
.card-media-tag {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  z-index: 1;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.55rem 0.35rem 0.35rem;
  flex: 1 1 auto;
}
.tag {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--brand-navy) !important;
  border: 1px solid rgba(19, 59, 92, 0.08);
  backdrop-filter: blur(6px);
}

/* Office / contact */
.office-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .office-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.4rem;
  }
}
.office-panel {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.82), rgba(236, 250, 242, 0.55));
  box-shadow:
    0 18px 40px rgba(19, 59, 92, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 1.55rem 1.6rem 1.5rem;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: officeRise 0.7s var(--ease) 0.08s both;
}
.office-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(19, 59, 92, 0.12);
}
.office-panel-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.office-panel-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 138, 112, 0.12);
  color: var(--brand-teal);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.office-panel:hover .office-panel-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(36, 178, 107, 0.18);
}
.office-panel-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.35;
}
.office-address {
  color: #5b6b76 !important;
  font-size: 0.98rem !important;
  line-height: 2 !important;
}
.office-address p,
.office-address * {
  color: inherit !important;
  line-height: inherit !important;
}
.office-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: auto;
}
.office-contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 138, 112, 0.1);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.office-contact-item:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(31, 138, 112, 0.22);
  box-shadow: 0 12px 24px rgba(19, 59, 92, 0.08);
}
.office-contact-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 138, 112, 0.12);
  color: var(--brand-teal);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.office-contact-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.office-contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #7b8b96;
}
.office-contact-value {
  font-size: 1rem;
  font-weight: 750;
  color: var(--brand-navy);
  word-break: break-word;
}
.office-media {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  min-height: 320px;
  height: 100%;
  box-shadow: 0 18px 40px rgba(19, 59, 92, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: officeRise 0.7s var(--ease) 0.16s both;
}
.office-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 460px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.office-media:hover img {
  transform: scale(1.05);
}
.office-hours {
  position: absolute;
  bottom: 1.1rem;
  inset-inline: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--brand-navy);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(19, 59, 92, 0.14);
}
.office-hours i {
  color: var(--brand-teal);
  font-size: 1.05rem;
  flex-shrink: 0;
}
@keyframes officeRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(36, 178, 107, 0.16), transparent 60%),
    radial-gradient(560px 240px at 0% 100%, rgba(31, 138, 112, 0.12), transparent 55%),
    linear-gradient(180deg, #eef8f2 0%, #e4f2e9 100%) !important;
  border-top: 1px solid rgba(31, 138, 112, 0.14);
  color: #4b5d67;
}
.footer-glow {
  position: absolute;
  inset: auto 10% -40% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 178, 107, 0.18), transparent 70%);
  pointer-events: none;
  animation: footerGlow 7s ease-in-out infinite alternate;
}
.footer-inner {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 2.25rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.25rem;
  }
}
.footer-brand-block,
.footer-col {
  animation: footerRise 0.7s var(--ease) both;
}
.footer-col:nth-child(2) { animation-delay: 0.08s; }
.footer-col:nth-child(3) { animation-delay: 0.16s; }
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  margin-bottom: 0.85rem;
}
.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(19, 59, 92, 0.12));
  transition: transform 0.3s var(--ease);
}
.footer-brand-link:hover .footer-logo {
  transform: scale(1.06) rotate(-3deg);
}
.site-footer .footer-brand {
  color: var(--brand-navy);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
}
.footer-tagline {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #5b6b76;
  max-width: 28rem;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}
.footer-social a {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 138, 112, 0.12);
  color: var(--brand-navy);
  font-size: 1.05rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.footer-social a:hover {
  transform: translateY(-3px);
  background: #fff;
  color: var(--brand-teal);
  box-shadow: 0 10px 22px rgba(19, 59, 92, 0.1);
}
.footer-col-title {
  margin: 0 0 0.95rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy);
  position: relative;
  display: inline-block;
}
.footer-col-title::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 3px;
  margin-top: 0.45rem;
  margin-inline-start: auto;
  border-radius: 999px;
  background: linear-gradient(to left, var(--brand-teal), var(--brand-green-bright));
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(31, 138, 112, 0.1);
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.footer-contact:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(31, 138, 112, 0.2);
  box-shadow: 0 10px 22px rgba(19, 59, 92, 0.08);
  color: var(--brand-teal);
}
.footer-contact-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 138, 112, 0.12);
  color: var(--brand-teal);
  flex-shrink: 0;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.15rem;
  color: #5b6b76;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease), gap 0.2s var(--ease);
}
.footer-links a::before {
  content: "";
  width: 0;
  height: 2px;
  margin-inline-end: 0;
  border-radius: 999px;
  background: var(--brand-green-bright);
  transition: width 0.2s var(--ease), margin 0.2s var(--ease);
}
.footer-links a:hover {
  color: var(--brand-teal);
  transform: translateX(-3px);
}
.footer-links a:hover::before {
  width: 0.7rem;
  margin-inline-end: 0.45rem;
}
.site-footer .footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(31, 138, 112, 0.12) !important;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}
.footer-bottom-inner {
  padding: 1rem 0;
  text-align: center;
}
.footer-bottom-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7c86;
}
@keyframes footerRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes footerGlow {
  from { opacity: 0.5; transform: translate3d(0, 0, 0); }
  to { opacity: 0.95; transform: translate3d(-6%, -4%, 0); }
}

/* ─── Interior pages (all frontend views) ─── */
.page-hero,
section.bg-gradient-to-r.from-\[\#1c6b3d\] {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 3.5rem !important;
  isolation: isolate;
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(520px 220px at 0% 100%, rgba(19, 59, 92, 0.22), transparent 60%),
    linear-gradient(115deg, #1c6b3d 0%, #1f8a70 48%, #24b26b 100%) !important;
  box-shadow: 0 18px 40px rgba(28, 107, 61, 0.18);
}
.page-hero::before,
section.bg-gradient-to-r.from-\[\#1c6b3d\]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: pageHeroSheen 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.page-hero::after,
section.bg-gradient-to-r.from-\[\#1c6b3d\]::after {
  content: "";
  position: absolute;
  inset-inline-end: 8%;
  bottom: -2.5rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 0;
  animation: pageHeroOrb 8s var(--ease) infinite alternate;
}
.page-hero > *,
section.bg-gradient-to-r.from-\[\#1c6b3d\] > * {
  position: relative;
  z-index: 1;
}
.page-hero h1,
.page-hero h2,
section.bg-gradient-to-r.from-\[\#1c6b3d\] h1,
section.bg-gradient-to-r.from-\[\#1c6b3d\] h2 {
  text-shadow: 0 10px 28px rgba(19, 59, 92, 0.2);
  letter-spacing: 0.01em;
  animation: pageHeroRise 0.7s var(--ease) both;
}
.page-hero p,
.page-hero a,
section.bg-gradient-to-r.from-\[\#1c6b3d\] p,
section.bg-gradient-to-r.from-\[\#1c6b3d\] a {
  animation: pageHeroRise 0.75s var(--ease) 0.08s both;
}
.page-hero .flex.items-center.gap-3,
section.bg-gradient-to-r.from-\[\#1c6b3d\] .flex.items-center.gap-3 {
  opacity: 0.92;
  animation: pageHeroRise 0.6s var(--ease) both;
}

.page-hero-media {
  position: relative;
  min-height: 16rem;
  height: clamp(16rem, 32vw, 22rem) !important;
  isolation: isolate;
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 59, 92, 0.15), rgba(28, 107, 61, 0.45));
  pointer-events: none;
  z-index: 1;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pageHeroZoom 12s ease-in-out infinite alternate;
}

.page-main,
main.max-w-6xl.mx-auto,
main.max-w-5xl.mx-auto,
main.max-w-4xl.mx-auto {
  position: relative;
  z-index: 2;
  margin-top: -1.75rem;
  padding-top: 2.5rem !important;
}
.page-main-narrow {
  margin-top: -1.25rem;
}

.page-main .floating-card,
main.max-w-6xl .floating-card,
main.max-w-4xl .floating-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(31, 138, 112, 0.1) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.page-main .floating-card:hover,
main.max-w-6xl .floating-card:hover,
main.max-w-4xl .floating-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(19, 59, 92, 0.12);
  border-color: rgba(31, 138, 112, 0.22) !important;
}
.page-main .floating-card.card-mint,
.floating-card.card-mint {
  background: linear-gradient(160deg, rgba(230, 245, 236, 0.95), rgba(255, 255, 255, 0.9)) !important;
}

.detail-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 28rem;
  border-radius: 1.35rem;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f5ee, #dce9e2);
  box-shadow: 0 14px 32px rgba(19, 59, 92, 0.1);
}
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.detail-media:hover img {
  transform: scale(1.03);
}

.page-pagination {
  border-top: 1px solid rgba(31, 138, 112, 0.12) !important;
}
.page-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 138, 112, 0.14);
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(19, 59, 92, 0.06);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.page-pagination a:hover {
  transform: translateY(-2px);
  background: var(--brand-teal);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(31, 138, 112, 0.22);
}

.page-empty {
  padding: 3.5rem 1.5rem !important;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(31, 138, 112, 0.22);
  box-shadow: var(--shadow-soft);
}
.page-empty i {
  color: var(--brand-teal) !important;
  opacity: 0.55;
}

/* Detail / content prose polish */
.page-main .prose,
main.max-w-4xl .prose,
main.max-w-6xl .prose {
  color: #4b5d67;
  line-height: 2;
}
.page-main .prose a,
main.max-w-4xl .prose a {
  color: var(--brand-teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.page-main article.floating-card,
.page-main-narrow article.floating-card {
  padding: 1.75rem 1.5rem 2rem !important;
}
@media (min-width: 768px) {
  .page-main article.floating-card,
  .page-main-narrow article.floating-card {
    padding: 2.25rem 2rem 2.5rem !important;
  }
}

/* Soft panel sections on about/council */
main.max-w-6xl > section.bg-white.rounded-\[2\.5rem\],
main.max-w-6xl > section.rounded-\[2\.5rem\] {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(31, 138, 112, 0.1) !important;
  box-shadow: var(--shadow-soft) !important;
  backdrop-filter: blur(8px);
}

/* Gallery filters */
.page-main a.rounded-full,
main .px-5.py-2.rounded-full {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
main a.bg-council-teal.text-white.shadow-lg {
  box-shadow: 0 12px 24px rgba(31, 138, 112, 0.28) !important;
}

/* Back / CTA pills on detail pages */
.page-main a.rounded-full.border-2,
.page-main a.rounded-full.bg-council-teal {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.page-main a.rounded-full.border-2:hover,
.page-main a.rounded-full.bg-council-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 138, 112, 0.22);
}

/* Stagger listing cards when revealed */
.page-main .grid > .floating-card,
main.max-w-6xl .grid > .floating-card {
  animation: pageCardIn 0.55s var(--ease) both;
}
.page-main .grid > .floating-card:nth-child(1),
main.max-w-6xl .grid > .floating-card:nth-child(1) { animation-delay: 0.04s; }
.page-main .grid > .floating-card:nth-child(2),
main.max-w-6xl .grid > .floating-card:nth-child(2) { animation-delay: 0.08s; }
.page-main .grid > .floating-card:nth-child(3),
main.max-w-6xl .grid > .floating-card:nth-child(3) { animation-delay: 0.12s; }
.page-main .grid > .floating-card:nth-child(4),
main.max-w-6xl .grid > .floating-card:nth-child(4) { animation-delay: 0.16s; }
.page-main .grid > .floating-card:nth-child(5),
main.max-w-6xl .grid > .floating-card:nth-child(5) { animation-delay: 0.2s; }
.page-main .grid > .floating-card:nth-child(6),
main.max-w-6xl .grid > .floating-card:nth-child(6) { animation-delay: 0.24s; }

@keyframes pageHeroSheen {
  0%, 100% { background-position: 120% 0; opacity: 0.35; }
  50% { background-position: -20% 0; opacity: 0.7; }
}
@keyframes pageHeroOrb {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  to { transform: translate3d(-12%, -10%, 0) scale(1.08); opacity: 0.9; }
}
@keyframes pageHeroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pageHeroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@keyframes pageCardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll — visible by default; only hide while waiting for JS */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
html.js-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .hero-stage {
    min-height: 560px;
  }
  .hero-content {
    padding: 1.5rem 0 3.25rem;
  }
  .hero-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 1.4rem;
  }
  .hero-logo-panel {
    justify-content: center;
  }
  .hero-logo-ring {
    width: 7.5rem;
    height: 7.5rem;
  }
  .hero-copy {
    max-width: none;
    width: 100%;
    padding: 1.35rem 1.25rem 1.4rem;
    background: rgba(255, 255, 255, 0.14);
  }
  .hero-heading {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
  .hero-subtitle {
    max-height: none !important;
    overflow: visible !important;
    font-size: 1rem;
    line-height: 2.1 !important;
  }
  .home-main {
    margin-top: -2.25rem;
  }
  .office-hours {
    border-radius: 1rem;
    inset-inline: 0.85rem;
    bottom: 0.85rem;
    align-items: flex-start;
  }
  .office-media img {
    min-height: 280px;
    max-height: 340px;
  }
}

@media (max-width: 768px) {
  .page-hero,
  section.bg-gradient-to-r.from-\[\#1c6b3d\] {
    padding: 2.5rem 0 2.75rem !important;
  }
  .page-hero::after,
  section.bg-gradient-to-r.from-\[\#1c6b3d\]::after {
    width: 5.5rem;
    height: 5.5rem;
    inset-inline-end: 4%;
  }
  .page-main,
  main.max-w-6xl.mx-auto,
  main.max-w-5xl.mx-auto,
  main.max-w-4xl.mx-auto {
    margin-top: -1rem;
  }
  .detail-media {
    aspect-ratio: 4 / 3;
    max-height: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-heading,
  .hero-subtitle,
  .hero-actions,
  .hero-logo-panel,
  .hero-logo-ring,
  .hero-stage .hero-media,
  .hero-glow,
  .reveal,
  .stat-card,
  .floating-card,
  .office-panel,
  .office-media,
  .page-hero,
  .page-hero::before,
  .page-hero::after,
  section.bg-gradient-to-r.from-\[\#1c6b3d\],
  section.bg-gradient-to-r.from-\[\#1c6b3d\]::before,
  section.bg-gradient-to-r.from-\[\#1c6b3d\]::after,
  .page-hero-media img,
  .page-main .grid > .floating-card,
  main.max-w-6xl .grid > .floating-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
