:root {
  --green-900: #0b2f24;
  --green-700: #0f6a43;
  --gold-500: #c9a227;
  --sand-100: #f7f4ea;
  --surface: #ffffff;
  --text: #1f2937;
  --shadow-soft: 0 10px 35px rgba(11, 47, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#about-overview,
#mission-vision,
#organizational-structure,
#history-of-islam-liberia,
#islamic-education-programs,
#community-outreach-program,
#ramadan-programs,
#hajj-coordination,
#charity-zakat-programs,
#become-member,
#member-benefits,
#registration-portal,
#member-directory,
#news-updates,
#press-releases,
#video-gallery,
#friday-khutbahs,
#annual-reports,
#islamic-articles,
#fatwas-guidance,
#newsletters,
#contact-information,
#office-locations,
#send-message,
#request-support,
#upcoming-events,
#events-calendar,
#events-conferences-seminars,
#events-special-islamic-occasions {
  scroll-margin-top: 6rem;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, #e6f4ec, #f8fafc 35%, #eef7f2 80%);
  color: var(--text);
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(135deg, rgba(201, 162, 39, 0.05) 1px, transparent 1px), linear-gradient(45deg, rgba(15, 106, 67, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 200;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
}

.social-chip {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.25s ease;
}

.social-chip:hover {
  background: var(--gold-500);
  color: var(--green-900);
}

.lang-select {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  color: #fff;
}

.lang-select option {
  color: #000;
}

.hero-bg {
  background-image: url('https://images.unsplash.com/photo-1564769625905-50e93615e769?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
}

.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--green-900);
  margin-bottom: 0.45rem;
}

.section-subtitle {
  color: #475569;
  max-width: 60ch;
  margin-inline: auto;
}

.card {
  background: var(--surface);
  border: 1px solid #d1fae5;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--green-900);
}

#about .about-card {
  background: #f6e3a0;
  border-color: #c9a227;
}

#about .section-subtitle {
  color: #fff;
}

.leader-card {
  background: white;
  border: 1px solid #d1fae5;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.leader-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.leader-card h4,
.leader-card p {
  margin: 0;
  padding: 0.2rem 0.9rem;
}

.leader-card h4 {
  margin-top: 0.6rem;
  color: var(--green-900);
}

.leader-card p {
  margin-bottom: 0.8rem;
  color: #475569;
  font-size: 0.9rem;
}

.featured-news {
  border: 1px solid #d1fae5;
  border-radius: 0.75rem;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-soft);
}

.featured-news img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.featured-news h4,
.featured-news p {
  margin: 0.4rem 1rem;
}

.list-news {
  border: 1px solid #d1fae5;
  border-radius: 0.75rem;
  padding: 0.9rem;
  background: #fff;
}

.news-date {
  font-size: 0.8rem;
  color: #0f6a43;
  font-weight: 700;
}

.announcement-card {
  border: 1px solid #d1fae5;
  border-left: 4px solid var(--green-700);
  border-radius: 0.75rem;
  padding: 0.9rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.announcement-date {
  color: #64748b;
  font-size: 0.85rem;
}

.urgent-badge {
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.72rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}

.coming-soon-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
  animation: coming-soon-pulse 2s ease-in-out infinite;
}

@keyframes coming-soon-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0);
  }
}

.inactive-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0.86;
  cursor: not-allowed;
  border-style: dashed;
  color: #475569;
  background: #f8fafc;
}

.inactive-action:hover {
  border-color: #cbd5e1;
}

.inactive-status {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prayer-panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(236, 253, 245, 0.75));
}

.prayer-fade-in {
  animation: prayerFadeIn 0.65s ease both;
}

.prayer-control-btn {
  border: 1px solid #d1fae5;
  background: #ffffff;
  color: #0f6a43;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.prayer-control-btn:hover,
.prayer-control-btn:focus-visible {
  border-color: #c9a227;
  box-shadow: 0 10px 24px rgba(15, 106, 67, 0.15);
  transform: translateY(-1px);
  outline: none;
}

.prayer-time-card {
  border-radius: 0.9rem;
  border: 1px solid #d1fae5;
  background: #ffffff;
  padding: 0.95rem;
  box-shadow: 0 8px 24px rgba(11, 47, 36, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.prayer-time-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 47, 36, 0.14);
}

.prayer-time-card.current {
  border-color: #c9a227;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2), 0 14px 34px rgba(11, 47, 36, 0.16);
  animation: prayerPulse 1.9s ease-in-out infinite;
}

.prayer-icon-wrap {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
}

.countdown-value {
  will-change: transform, color;
}

.countdown-value.countdown-tick {
  transform: translateY(-1px);
  color: #047857;
}

#prayer.is-dark .prayer-panel {
  background: linear-gradient(150deg, #0b2f24, #0f172a);
  border-color: rgba(167, 243, 208, 0.2);
}

#prayer.is-dark .section-title,
#prayer.is-dark .section-subtitle,
#prayer.is-dark #prayer-current-date,
#prayer.is-dark #prayer-location,
#prayer.is-dark #prayer-status {
  color: #d1fae5;
}

#prayer.is-dark .prayer-control-btn {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(209, 250, 229, 0.25);
  color: #ecfeff;
}

#prayer.is-dark .prayer-time-card {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(167, 243, 208, 0.2);
}

#prayer.is-dark .prayer-time-card p,
#prayer.is-dark .prayer-time-card span,
#prayer.is-dark #next-prayer,
#prayer.is-dark #prayer-countdown {
  color: #ecfeff;
}

#prayer.is-dark .prayer-icon-wrap {
  background: rgba(16, 185, 129, 0.22);
}

#prayer.is-dark .rounded-xl {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(167, 243, 208, 0.2);
}

@keyframes prayerFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes prayerPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2), 0 14px 34px rgba(11, 47, 36, 0.16);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(201, 162, 39, 0), 0 14px 34px rgba(11, 47, 36, 0.16);
  }
}

.event-card {
  border-radius: 0.75rem;
  border: 1px solid #d1fae5;
  background: white;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.event-card h4 {
  color: var(--green-900);
  margin-top: 0;
}

.form-label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #a7f3d0;
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.btn-primary,
.btn-secondary {
  border-radius: 0.55rem;
  border: 1px solid transparent;
  padding: 0.65rem 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--green-700);
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--sand-100);
  border-color: #d1fae5;
}

.btn-secondary:hover {
  border-color: var(--gold-500);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.94rem;
  transition: background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(255, 255, 255, 0.15);
}

header[role="banner"] {
  position: relative;
  z-index: 140;
}

main#main-content {
  position: relative;
  z-index: 1;
}

nav[aria-label="Main navigation"] {
  position: sticky;
  z-index: 160;
}

.dropdown-menu,
.sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.2rem);
  min-width: 220px;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 200;
}

.sub-menu {
  left: 100%;
  top: 0;
}

.dropdown-item {
  display: block;
  padding: 0.6rem 0.8rem;
  color: #111827;
  font-size: 0.9rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: #ecfdf5;
}

.group:hover > .dropdown-menu,
.group:focus-within > .dropdown-menu,
[data-submenu]:hover > .sub-menu,
[data-submenu]:focus-within > .sub-menu,
.dropdown-menu.open,
.sub-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-results {
  margin-top: 0.4rem;
  background: #fff;
  border: 1px solid #a7f3d0;
  border-radius: 0.5rem;
  max-height: 240px;
  overflow: auto;
}

.search-results a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: #0f172a;
  border-bottom: 1px solid #ecfdf5;
  text-decoration: none;
}

.search-results a:hover {
  background: #f0fdf4;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 0 1rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.mobile-submenu {
  padding-left: 0.7rem;
}

.mobile-menu details summary {
  list-style: none;
  cursor: pointer;
}

.mobile-menu details summary::-webkit-details-marker {
  display: none;
}

.portal-topbar {
  background: linear-gradient(120deg, #0b1220 0%, #050814 100%) !important;
  border-bottom: 1px solid rgba(250, 204, 21, 0.16);
}

.portal-topbar a,
.portal-topbar #weather-info,
.portal-topbar #current-date {
  color: #e5e7eb;
}

.portal-topbar a:hover {
  color: #facc15 !important;
}

.portal-brand-strip {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.08), rgba(5, 8, 20, 0));
}

.portal-nav {
  position: sticky;
  top: 0;
  z-index: 260;
  overflow: visible;
  background: linear-gradient(120deg, rgba(11, 18, 32, 0.94) 0%, rgba(5, 8, 20, 0.95) 100%) !important;
  border-top: 1px solid rgba(250, 204, 21, 0.12);
  border-bottom: 1px solid rgba(250, 204, 21, 0.2);
  backdrop-filter: blur(10px);
}

.portal-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: linear-gradient(30deg, rgba(250, 204, 21, 0.25) 1px, transparent 1px), linear-gradient(150deg, rgba(250, 204, 21, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: nav-pattern-drift 42s linear infinite;
}

.portal-nav-shell,
.portal-main-row,
.portal-nav #desktop-menu,
.portal-nav .relative {
  position: relative;
  z-index: 1;
}

.portal-main-row {
  height: 3.7rem !important;
  transition: height 0.28s ease;
}

.portal-nav.nav-scrolled .portal-main-row {
  height: 3.25rem !important;
}

.portal-nav #desktop-menu {
  gap: 0.38rem;
}

.portal-nav .nav-link {
  position: relative;
  min-height: 2.35rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.09);
  color: #f8fafc;
  backdrop-filter: blur(8px);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.portal-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.34rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0), rgba(250, 204, 21, 1), rgba(250, 204, 21, 0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.portal-nav .nav-link:hover,
.portal-nav .nav-link:focus {
  color: #fff;
  border-color: rgba(250, 204, 21, 0.68);
  background: rgba(250, 204, 21, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.24);
}

.portal-nav .nav-link:focus-visible,
.portal-search-toggle:focus-visible,
.nav-hamburger:focus-visible,
.portal-nav .dropdown-item:focus-visible,
.portal-mobile-panel .mobile-link:focus-visible,
.portal-mobile-panel summary.mobile-link:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

.portal-nav .nav-link:hover::after,
.portal-nav .nav-link:focus::after {
  transform: scaleX(1);
}

.portal-search-toggle {
  border-color: rgba(250, 204, 21, 0.45) !important;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  backdrop-filter: blur(8px);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.portal-search-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.84) !important;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.2);
}

.portal-nav .dropdown-menu,
.portal-nav .sub-menu {
  top: calc(100% + 0.42rem);
  min-width: 245px;
  padding: 0.45rem;
  background: rgba(8, 14, 28, 0.92);
  border: 1px solid rgba(250, 204, 21, 0.34);
  border-radius: 0.82rem;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.portal-nav .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
  padding: 0.58rem 0.68rem;
  color: #e2e8f0;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.portal-nav .dropdown-item::before {
  content: '◆';
  color: rgba(250, 204, 21, 0.85);
  font-size: 0.63rem;
}

.portal-nav .dropdown-item:hover,
.portal-nav .dropdown-item:focus {
  color: #f8fafc;
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.13);
  transform: translateX(2px);
}

.portal-nav .mega-dropdown > .mega-menu {
  min-width: min(720px, 86vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.5rem;
  row-gap: 0.2rem;
}

.portal-nav .media-center-mega {
  min-width: min(760px, 88vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-nav .media-center-mega .dropdown-group-title {
  grid-column: 1 / -1;
  margin-top: 0.18rem;
  margin-bottom: 0.12rem;
  padding: 0.3rem 0.45rem 0.15rem;
  border-top: 1px solid rgba(250, 204, 21, 0.25);
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-nav .menu-icon-upcoming-events::before { content: '📅'; }
.portal-nav .menu-icon-events-calendar::before { content: '🗓'; }
.portal-nav .menu-icon-conferences::before { content: '🎤'; }
.portal-nav .menu-icon-special-occasions::before { content: '🕌'; }

.portal-nav .mega-dropdown > .mega-menu li:nth-child(1) .dropdown-item::before { content: '📚'; }
.portal-nav .mega-dropdown > .mega-menu li:nth-child(2) .dropdown-item::before { content: '👥'; }
.portal-nav .mega-dropdown > .mega-menu li:nth-child(3) .dropdown-item::before { content: '🕌'; }
.portal-nav .mega-dropdown > .mega-menu li:nth-child(4) .dropdown-item::before { content: '🧭'; }
.portal-nav .mega-dropdown > .mega-menu li:nth-child(5) .dropdown-item::before { content: '💰'; }

.portal-nav .mega-dropdown > .mega-menu .dropdown-item {
  margin-bottom: 0;
}

.nav-hamburger {
  border-color: rgba(250, 204, 21, 0.45) !important;
  background: rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-hamburger:hover {
  border-color: rgba(250, 204, 21, 0.86) !important;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.22);
}

.nav-hamburger-line {
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-hamburger.is-active .nav-hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.is-active .nav-hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-active .nav-hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .portal-nav::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  body.mobile-nav-open .portal-nav::after {
    opacity: 1;
    pointer-events: auto;
  }

  .portal-mobile-panel {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 380px);
    height: 100vh;
    overflow-y: auto;
    margin: 0;
    padding: 5.5rem 1rem 1.1rem;
    background: linear-gradient(160deg, #0b1220 0%, #050814 100%);
    border-left: 1px solid rgba(250, 204, 21, 0.3);
    box-shadow: -18px 0 38px rgba(2, 6, 23, 0.5);
    transform: translateX(108%);
    transition: transform 0.3s ease;
    z-index: 320;
  }

  .portal-mobile-panel.open {
    transform: translateX(0);
  }

  .portal-mobile-panel .mobile-link,
  .portal-mobile-panel summary.mobile-link {
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 0.65rem;
    margin-bottom: 0.45rem;
    padding: 0.75rem 0.65rem;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
  }

  .portal-mobile-panel .mobile-submenu {
    padding-left: 0.35rem;
    margin-bottom: 0.38rem;
  }

  .portal-mobile-panel .mobile-submenu .mobile-link {
    color: #dbeafe;
    background: rgba(250, 204, 21, 0.06);
  }

  .portal-mobile-panel .mobile-submenu-label {
    margin: 0.6rem 0.2rem 0.4rem;
    color: #facc15;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .portal-nav .mega-dropdown > .mega-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-nav::before,
  .portal-main-row,
  .portal-nav .nav-link,
  .portal-nav .dropdown-menu,
  .portal-nav .sub-menu,
  .nav-hamburger-line,
  .portal-mobile-panel,
  .portal-nav::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes nav-pattern-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 36px 0, -36px 0;
  }
}

.ticker-mask {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 1.75rem;
  align-items: center;
  padding: 0.58rem 0;
  animation: ticker-scroll 55s linear infinite;
  will-change: transform;
}

.ticker-mask:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  color: #064e3b;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ticker-item:hover {
  text-decoration: underline;
  color: #0f6a43;
  opacity: 1;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.4rem;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

.lightbox img {
  max-width: min(100%, 960px);
  max-height: 90vh;
  border-radius: 0.6rem;
}

.lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: white;
}

.qa-item {
  border: 1px solid #d1fae5;
  border-radius: 0.55rem;
  padding: 0.5rem 0.6rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .dropdown-menu,
  .sub-menu {
    display: none;
  }
}

@media (max-width: 640px) {
  .featured-news img {
    height: 190px;
  }

  .btn-primary,
  .btn-secondary,
  .mobile-link,
  #search-toggle {
    min-height: 44px;
  }
}

.nmc-hero-section {
  padding: 0 0 2.25rem;
  background: #f8fafc;
}

.nmc-slider-shell {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.nmc-main-swiper {
  border-radius: 0 0 1rem 1rem;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(11, 47, 36, 0.18);
}

.nmc-main-slide {
  position: relative;
  height: clamp(290px, 56vw, 560px);
}

.nmc-main-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nmc-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 30%, rgba(2, 6, 23, 0.74) 100%);
}

.nmc-slide-title {
  margin: 0;
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.22;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nmc-slide-caption {
  margin: 0;
  color: #e2e8f0;
  max-width: 64ch;
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
}

.nmc-slide-learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: #c9a227;
  color: #0b2f24;
  text-decoration: none;
  border: none;
  border-radius: 0.35rem;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.nmc-slide-learn-more:hover {
  background: #d4af35;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.4);
}

.nmc-slide-learn-more:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
}

.nmc-slide-learn-more:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.nmc-main-next,
.nmc-main-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nmc-main-next:hover,
.nmc-main-prev:hover {
  transform: translateY(-50%) scale(1.05);
  background: #ffffff;
}

.nmc-main-prev {
  left: 0.65rem;
}

.nmc-main-next {
  right: 0.65rem;
}

.nmc-main-next::before,
.nmc-main-prev::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.62rem;
  height: 0.62rem;
  border-top: 2px solid #0f6a43;
  border-right: 2px solid #0f6a43;
}

.nmc-main-next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

.nmc-main-prev::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.nmc-thumbs-swiper {
  margin-top: 0.8rem;
  padding: 0;
}

.nmc-thumb-slide {
  height: 76px;
  border-radius: 0.65rem;
  overflow: hidden;
  opacity: 0.62;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.nmc-thumb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nmc-thumb-slide:hover {
  opacity: 0.82;
}

.nmc-thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: #c9a227;
  box-shadow: 0 8px 18px rgba(15, 106, 67, 0.2);
}

@media (max-width: 1024px) {
  .nmc-hero-section {
    padding: 0 0 1.75rem;
  }

  .nmc-main-next,
  .nmc-main-prev {
    width: 2.35rem;
    height: 2.35rem;
  }
}

@media (max-width: 640px) {
  .nmc-hero-section {
    padding: 0 0 1.35rem;
  }

  .nmc-main-slide {
    height: 300px;
  }

  .nmc-slide-overlay {
    padding: 0.9rem;
  }

  .nmc-main-next,
  .nmc-main-prev {
    width: 2.5rem;
    height: 2.5rem;
  }

  .nmc-thumb-slide {
    height: 62px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT & NEWSLETTER SECTION
═══════════════════════════════════════════════════════════════════════════ */

/* Section background */
.contact-section-bg {
  background: radial-gradient(ellipse at top left, #ecfdf5 0%, #f8fafc 50%, #fff 100%);
}

/* Eyebrow label */
.contact-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── Contact Form Card ───────────────────────────────────────────────────── */
.contact-card {
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(11, 47, 36, 0.08);
  animation: contactFadeIn 0.55s ease both;
}

@keyframes contactFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-form-title {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #0b2f24;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #d1fae5;
}

/* Two-column row inside the form */
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 560px) {
  .cf-row { grid-template-columns: 1fr; }
}

.cf-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.cf-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}

.cf-required { color: #dc2626; margin-left: 0.1rem; }
.cf-required-note { font-size: 0.78rem; color: #6b7280; margin: 0; }

.cf-input {
  width: 100%;
  border-radius: 0.6rem;
  border: 1.5px solid #a7f3d0;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 0.925rem;
  color: #1e293b;
  background: #f8fffe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cf-input:focus {
  outline: none;
  border-color: #c9a227;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.cf-input.cf-has-error {
  border-color: #f87171;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.cf-input.cf-valid {
  border-color: #34d399;
}

.cf-textarea { min-height: 130px; resize: vertical; }

.cf-error-msg {
  display: block;
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 0.3rem;
  min-height: 1rem;
}

/* Honeypot — visually hidden, not in tab order */
.cf-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Form footer row */
.cf-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Submit button */
.cf-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: 0.55rem;
  border: none;
  background: linear-gradient(135deg, #0f6a43, #0a4f33);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 106, 67, 0.35);
}

.cf-submit-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 106, 67, 0.4);
}

.cf-submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* Loading spinner inside button */
.cf-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cfSpin 0.7s linear infinite;
  flex-shrink: 0;
}

.cf-submit-btn.loading .cf-spinner { display: inline-block; }
.cf-submit-btn.loading .cf-btn-label { opacity: 0.7; }

@keyframes cfSpin { to { transform: rotate(360deg); } }

/* Feedback banners */
.cf-feedback {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  animation: contactFadeIn 0.4s ease both;
}

.cf-feedback.cf-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.cf-feedback.cf-error {
  background: #fff5f5;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.cf-feedback.hidden { display: none; }

/* ── Contact Info Card ───────────────────────────────────────────────────── */
.contact-info-card {
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(11, 47, 36, 0.08);
}

.contact-info-title {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0b2f24;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #d1fae5;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
}

.ci-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #0f6a43;
}

/* ── Newsletter Card ─────────────────────────────────────────────────────── */
.newsletter-card {
  background: linear-gradient(135deg, #0b2f24 0%, #0f6a43 100%);
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 14px 40px rgba(11, 47, 36, 0.25);
  color: #fff;
}

.newsletter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 1rem;
  color: #fff;
}

.newsletter-title {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.newsletter-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form { position: relative; }

.newsletter-input-wrap {
  display: flex;
  gap: 0;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
}

.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.55); }

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  background: #c9a227;
  color: #0b2f24;
  font-weight: 800;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.newsletter-btn:hover:not(:disabled) { filter: brightness(1.1); }
.newsletter-btn:disabled { opacity: 0.75; cursor: not-allowed; }

.newsletter-btn.loading .cf-spinner { display: inline-block; border-top-color: #0b2f24; border-color: rgba(11,47,36,0.3); border-top-color: #0b2f24; }
.newsletter-btn.loading .cf-btn-label { opacity: 0.7; }
