/* ============================================================
   APHA — Modern corporate theme
   Palette: deep navy + gold accent, clean sans-serif
   ============================================================ */

:root {
  /* Gold + green palette. "navy" vars are reused as the green primary so the
     rest of the stylesheet stays in sync without renaming every reference. */
  --navy:       #1b5e3f;   /* primary deep green */
  --navy-2:     #16704a;
  --navy-soft:  #237a4f;
  --green:      #1b5e3f;
  --green-2:    #2e8b57;
  --gold:       #c8a24a;   /* accent gold */
  --gold-soft:  #e3c987;
  --ink:        #1f2a24;   /* body text */
  --muted:      #5d6f64;
  --line:       #e3eae5;
  --bg:         #f4f8f5;   /* page background */
  --white:      #ffffff;
  --radius:     14px;
  --shadow-sm:  0 2px 10px rgba(27,94,63,0.07);
  --shadow:     0 10px 30px rgba(27,94,63,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden; /* safety net against accidental horizontal scroll on mobile */
}
img { max-width: 100%; height: auto; } /* never let an image overflow its container */
h1,h2,h3,h4,h5,h6 { font-weight: 800; letter-spacing: -0.02em; color: var(--navy); line-height: 1.2; }

/* Animated green <-> gold gradient headings (light backgrounds only).
   Dark-context headings (hero, page-strip, stats, CTA, footer, section-navy)
   are excluded below so they stay readable white. */
h1, h2, h3,
.section-title {
  /* Deeper green + deeper gold stops so every phase of the animation stays
     readable on the light page background (WCAG AA). */
  background: linear-gradient(90deg, #14502f 0%, #9a7b2e 25%, #1b5e3f 50%, #9a7b2e 75%, #14502f 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: hueShift 7s linear infinite;
}
@keyframes hueShift { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* Keep dark-context headings solid white (not gradient) */
.hero-overlay h1, .page-strip h1, .stats-band h1, .stats-band h2,
.cta-band h2, .section-navy h2, .section-navy h3, .section-navy .section-title,
.apha-footer h5, .apha-footer h6, .mega-feature-title, .login-card h2 {
  background: none; -webkit-text-fill-color: currentColor; color: #fff; animation: none;
}
@media (prefers-reduced-motion: reduce) {
  h1, h2, h3, .section-title { animation: none; }
}
h1 { font-size: 2.7rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
p  { font-size: 1.02rem; }
a { color: var(--navy); }
.text-gold { color: var(--gold) !important; }

/* Lead paragraph: clearly secondary to headings */
.lead { font-size: 1.12rem; line-height: 1.7; color: var(--muted); font-weight: 400; }

@media (max-width: 767px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }
}

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: 0.6rem 1.3rem; }
.btn-apha { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-apha:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-outline-light { border-width: 2px; }

/* ---------- Header / nav ---------- */
.apha-header .navbar { background: var(--white) !important; padding: 0.6rem 0; box-shadow: var(--shadow-sm); }
.apha-logo { height: 60px; width: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-line1 { font-size: 1.5rem; font-weight: 800; color: var(--green); letter-spacing: -0.01em; }
.brand-line2 { font-size: 1.5rem; font-weight: 800; color: var(--gold); letter-spacing: -0.01em; }
/* Menu TEXT color (links on the white bar) */
.navbar .nav-link {
  color: var(--green); font-size: 0.95rem; font-weight: 700;
  padding: 0.5rem 0.9rem; border-radius: 8px; transition: color .15s, background .15s;
}
.navbar .nav-link:hover { color: var(--gold); background: #eef5f0; }
.navbar .nav-link.active { color: var(--gold); }
.navbar .nav-link.active::after {
  content: ""; display: block; height: 2px; background: var(--gold);
  border-radius: 2px; margin-top: 3px;
}

/* ---------- Hero carousel ---------- */
.hero-carousel .carousel-item {
  height: 600px; background-size: cover; background-position: center;
}
.hero-overlay {
  height: 100%; display: flex; align-items: center;
  background: linear-gradient(100deg, rgba(15,39,71,0.92) 0%, rgba(15,39,71,0.70) 45%, rgba(15,39,71,0.30) 100%);
  color: #fff;
}
.hero-overlay .eyebrow {
  display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: 0.78rem; margin-bottom: 1rem;
}
.hero-overlay h1 {
  color: #fff; font-size: 3.4rem; font-weight: 800; line-height: 1.08;
  max-width: 720px; margin-bottom: 1.1rem;
}
.hero-lead { font-size: 1.2rem; max-width: 560px; margin-bottom: 1.8rem; color: #d9e2ef; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-carousel .carousel-indicators { margin-bottom: 1.2rem; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow-line { color: var(--gold); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.78rem; }
.section-title { font-size: 2.3rem; margin: 0.4rem 0 1.6rem; position: relative; }
.section-title.center { text-align: center; }
.lead { color: var(--muted); }

/* ---------- Page strip (inner page header) ---------- */
.page-strip {
  background: var(--navy);
  background-image: linear-gradient(100deg, rgba(15,39,71,0.96), rgba(15,39,71,0.82));
  color: #fff; padding: 60px 0;
}
.page-strip h1 { color: #fff; font-size: 2.3rem; margin: 0; }
.page-strip .crumb { color: var(--gold-soft); font-size: 0.9rem; }

/* ---------- Cards ---------- */
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  height: 100%; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); margin: 0; }
.feature-ico {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: #eef2f8; color: var(--navy); font-size: 1.6rem; margin-bottom: 16px;
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 32px 0; }
.stat-num { font-size: 2.9rem; font-weight: 800; line-height: 1; color: var(--gold); }
.stat-label { font-size: 0.95rem; color: #c3cedd; margin-top: 8px; }

/* ---------- Intro image ---------- */
.intro-img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Gallery ---------- */
.gallery-grid img {
  width: 100%; height: 210px; object-fit: cover; border-radius: 12px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.gallery-grid a:hover img { transform: scale(1.02); box-shadow: var(--shadow); }

.album-card { border-radius: var(--radius) !important; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.album-card:hover { transform: translateY(-6px); box-shadow: var(--shadow) !important; }
.album-thumb { position: relative; height: 220px; overflow: hidden; }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album-card:hover .album-thumb img { transform: scale(1.05); }
.album-count {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--gold); color: var(--navy); font-size: 0.78rem; font-weight: 700;
  padding: 3px 12px; border-radius: 20px;
}

/* ---------- Governing body ---------- */
.leader-card {
  background: var(--white); border-radius: var(--radius); padding: 26px 16px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.leader-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.leader-photo {
    width: 140px;
    height: 155px;
    object-fit: fill;
    border-radius: 40%;
    border: 0;
}
.leader-card h5 { font-size: 1.05rem; margin-bottom: 2px; }
.leader-card .role { color: var(--gold); font-size: 0.85rem; font-weight: 700; }
.member-row {
  background: var(--white); border-radius: 12px; padding: 14px 18px; height: 100%;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-left: 4px solid var(--gold);
}
.member-name { display: block; font-weight: 700; color: var(--navy); }
.member-role { display: block; font-size: 0.82rem; color: var(--muted); }

/* ---------- Members directory ---------- */
.table thead th { background: var(--navy); color: #fff; font-weight: 600; border: none; }
.table { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ---------- Login ---------- */
.login-wrap { max-width: 460px; margin: 70px auto; }
.login-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px; border: 1px solid var(--line); }
.login-card h2 { font-size: 1.6rem; }
.form-control, .form-select { border-radius: 10px; padding: 0.7rem 0.9rem; border-color: #d7dee8; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,74,0.15); }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff; padding: 70px 0; text-align: center;
}
.cta-band h2 { color: #fff; font-size: 2rem; }
.cta-band p { color: #c3cedd; max-width: 620px; margin: 0.6rem auto 1.8rem; }

/* ---------- Footer ---------- */
.apha-footer { background: #0b1d36; color: #b9c6d8; padding: 56px 0 22px; margin-top: 0; }
.apha-footer h5, .apha-footer h6 { color: #fff; }
.apha-footer a { color: #b9c6d8; text-decoration: none; }
.apha-footer a:hover { color: var(--gold); }
.apha-footer hr { border-color: rgba(255,255,255,0.12); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-overlay h1 { font-size: 2.4rem; }
  .navbar .nav-link.active::after { display: none; }
}
@media (max-width: 575px) {
  .brand-line1, .brand-line2 { font-size: 1.05rem; }
  .apha-logo { height: 53px; }
  .hero-carousel .carousel-item { height: 480px; }
  .hero-overlay h1 { font-size: 1.9rem; }
  .section { padding: 56px 0; }
}

/* ============================================================
   PREMIUM LAYER — glass nav, mesh hero, motion, refined cards
   ============================================================ */

/* Animated gold gradient text accent */
.text-grad-gold {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Glassy sticky navbar ---- */
.apha-header { position: sticky; top: 0; z-index: 1030; }
.apha-header .navbar {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 18px rgba(15,40,26,0.08);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.apha-header .navbar.is-scrolled { padding: 0.3rem 0; box-shadow: 0 6px 26px rgba(15,40,26,0.14); }
.brand-text { letter-spacing: -0.02em; }

/* Refined nav buttons */
.btn { transition: transform .18s ease, box-shadow .25s ease, background .2s, border-color .2s; position: relative; }
.btn-apha { box-shadow: 0 6px 18px rgba(200,162,74,0.35); }
.btn-apha:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(200,162,74,0.45); }
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(27,94,63,0.30); }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1.02rem; }

/* ---- Premium hero: mesh gradient + image, deeper overlay ---- */
.hero-carousel .carousel-item { height: 640px; position: relative; }
.hero-carousel .carousel-item::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 12% 20%, rgba(27,94,63,0.55), transparent 60%),
    radial-gradient(50% 70% at 90% 85%, rgba(200,162,74,0.28), transparent 60%);
  mix-blend-mode: multiply; z-index: 1;
}
.hero-overlay {
  position: relative; z-index: 2;
  background: linear-gradient(100deg, rgba(12,38,26,0.92) 0%, rgba(12,38,26,0.66) 42%, rgba(12,38,26,0.18) 100%);
}
.hero-overlay .container { animation: heroRise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-overlay .eyebrow {
  background: rgba(200,162,74,0.16); border: 1px solid rgba(200,162,74,0.4);
  padding: 6px 14px; border-radius: 30px; backdrop-filter: blur(4px);
}
.hero-overlay h1 { font-size: 3.6rem; line-height: 1.06; letter-spacing: -0.025em; }
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Floating scroll cue */
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.6); border-radius: 16px;
}
.scroll-cue::after {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--gold); border-radius: 3px; animation: cue 1.6s infinite;
}
@keyframes cue { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ---- Stats band: glow + counter ---- */
.stats-band { position: relative; overflow: hidden; }
.stats-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 120% at 50% 0%, rgba(200,162,74,0.18), transparent 70%);
}
.stat-num { position: relative; z-index: 1; }

/* ---- Section eyebrow + title polish ---- */
.eyebrow-line { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow-line::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.section-title { letter-spacing: -0.02em; }

/* ---- Refined feature cards: gold top sweep on hover ---- */
.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green-2)); transform: scaleX(0);
  transform-origin: left; transition: transform .35s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover .feature-ico { background: var(--green); color: #fff; transform: rotate(-6deg) scale(1.05); }
.feature-ico { transition: background .3s, color .3s, transform .3s; }

/* ---- Intro image frame ---- */
.intro-img { position: relative; }
.intro-wrap { position: relative; }
.intro-wrap::after {
  content: ""; position: absolute; right: -16px; bottom: -16px; width: 60%; height: 60%;
  border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1;
}

/* ---- Scroll reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-overlay .container { animation: none; }
}

/* ---- CTA band shimmer ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(200,162,74,0.12), transparent 30%);
  animation: spin 14s linear infinite;
}
.cta-band .container { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== MEGA MENU ==================== */
.navbar .dropdown-toggle::after { margin-left: 6px; vertical-align: 1px; opacity: .7; transition: transform .2s; }
.navbar .dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }

.mega-menu {
  border: none; border-radius: 16px; padding: 0; margin-top: 0;
  box-shadow: 0 24px 60px rgba(15,40,26,0.20);
  left: 50%; transform: translateX(-50%);
  width: min(940px, calc(100vw - 40px));
  overflow: hidden;
  animation: megaIn .2s ease both;
}
@keyframes megaIn { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
/* Invisible bridge: fills the gap between the nav link and the panel so
   the mouse can travel into the menu without losing :hover. */
.navbar .dropdown.position-static { position: static; }
@media (min-width: 992px) {
  .navbar .nav-item.dropdown > .nav-link { padding-bottom: 18px; }
  .mega-menu::before {
    content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 18px; background: transparent;
  }
}

.mega-inner { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 18px; }
.mega-inner.has-feature { grid-template-columns: 1.7fr 1fr; gap: 18px; }
.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }

.mega-link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 12px; text-decoration: none;
  transition: background .15s, transform .15s;
}
.mega-link:hover { background: #eef5f0; transform: translateX(2px); }
.mega-ico {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  background: #eef5f0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  transition: background .2s;
}
.mega-link:hover .mega-ico { background: var(--green); }
.mega-text { display: flex; flex-direction: column; line-height: 1.25; }
.mega-label { font-weight: 700; color: var(--navy); font-size: 0.96rem; }
.mega-desc { font-size: 0.8rem; color: var(--muted); }

.mega-feature {
  position: relative; border-radius: 14px; padding: 22px; min-height: 200px;
  background-size: cover; background-position: center; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
}
.mega-feature:hover { color: #fff; }
.mega-feature::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(200,162,74,0.35); border-radius: 14px; }
.mega-feature-tag { font-size: 0.7rem; letter-spacing: 2px; font-weight: 700; color: var(--gold-soft); }
.mega-feature-title { font-size: 1.25rem; font-weight: 800; margin-top: 4px; }
.mega-feature-desc { font-size: 0.85rem; opacity: 0.92; margin-top: 6px; }
.mega-feature-cta { font-size: 0.85rem; font-weight: 700; color: var(--gold-soft); margin-top: 10px; }

@media (min-width: 992px) {
  .navbar .dropdown:hover > .mega-menu { display: block; }
  .navbar .dropdown > .dropdown-toggle:active { pointer-events: none; }
}
@media (max-width: 991px) {
  .mega-menu { width: 100%; transform: none; left: 0; box-shadow: none; margin-top: 6px; animation: none; background: #f6faf7; }
  .mega-inner, .mega-inner.has-feature { grid-template-columns: 1fr; padding: 10px; }
  .mega-links { grid-template-columns: 1fr; }
  .mega-feature { display: none; }
}

/* ---- How to join: steps ---- */
.join-steps { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.join-step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.step-num {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem;
}
.alert-join {
  background: #f0f7f2; border: 1px solid #cfe6d8; border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 18px 22px;
}
.btn-group .btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-group .btn-outline-light:hover { background: rgba(255,255,255,0.15); }

/* ==================== HOME: extra sections ==================== */
/* Benefit tiles */
.benefit-tile {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow-sm); height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.benefit-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit-ico {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px;
  background: #eef5f0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

/* Presence / districts */
.section-navy { background: linear-gradient(135deg, var(--green) 0%, #14502f 100%); }
.district-chip {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px; padding: 20px 14px; text-align: center; backdrop-filter: blur(4px);
  transition: transform .2s, background .2s;
}
.district-chip:hover { transform: translateY(-4px); background: rgba(255,255,255,0.14); }
.district-num { font-size: 2rem; font-weight: 800; color: var(--gold-soft); line-height: 1; }
.district-name { color: #eaf3ec; font-size: 0.9rem; margin-top: 6px; letter-spacing: .3px; }

/* Photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(8, 1fr); }
.photo-strip-item {
  display: block; aspect-ratio: 1 / 1; background-size: cover; background-position: center;
  filter: grayscale(20%); transition: filter .3s, transform .3s; position: relative;
}
.photo-strip-item:hover { filter: none; transform: scale(1.04); z-index: 2; }
@media (max-width: 991px) { .photo-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Top action buttons (Register + Login) ---- */
.nav-actions { display: flex; gap: 8px; }
@media (max-width: 991px) { .nav-actions { flex-direction: column; } .nav-actions .btn { width: 100%; } }

/* ---- Registration form ---- */
.register-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px;
}
.form-section-label { font-weight: 700; color: var(--green); font-size: 0.95rem; margin: 8px 0 2px; }
.form-label { font-weight: 600; font-size: 0.9rem; }
.required:after { content: " *"; color: #c0392b; }

/* ==================== RICH FOOTER ==================== */
.apha-footer { background: #0c1f15; color: #b6c6bb; padding: 60px 0 24px; }
.apha-footer h6 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: .3px; }
.footer-logo { height: 42px; border-radius: 8px; background: #fff; padding: 3px; }
.footer-brand span { color: #fff; font-size: 1.2rem; }
.footer-about { color: #9fb3a6; max-width: 320px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #b6c6bb; text-decoration: none; transition: color .15s, padding-left .15s; }
.footer-links a:hover { color: var(--gold-soft); padding-left: 4px; }
.footer-contact li { display: flex; gap: 8px; margin-bottom: 10px; align-items: flex-start; }
.footer-contact a { color: #b6c6bb; text-decoration: none; }
.footer-contact a:hover { color: var(--gold-soft); }
.fc-ico { flex: 0 0 auto; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; font-weight: 700; transition: background .2s, transform .2s;
}
.footer-social a:hover { background: var(--gold); color: var(--green); transform: translateY(-3px); }
.apha-footer hr { border-color: rgba(255,255,255,0.12); margin: 32px 0 16px; }
.footer-muted { color: #7e9488; }
.footer-bottom-links a { color: #b6c6bb; text-decoration: none; }
.footer-bottom-links a:hover { color: var(--gold-soft); }

/* ==================== LEGAL PAGES ==================== */
.legal-content h2 { font-size: 1.4rem; margin-top: 28px; }
.legal-content p, .legal-content li { color: var(--ink); }
.legal-content ul { padding-left: 20px; }
.legal-updated { color: var(--muted); font-style: italic; }

/* ==================== TOP UTILITY BAR ==================== */
.apha-topbar {
  background: var(--green); color: #eafff2; font-size: 0.84rem; padding: 7px 0;
}
.apha-topbar a { color: #eafff2; text-decoration: none; transition: color .15s; }
.apha-topbar a:hover { color: var(--gold-soft); }
.topbar-contact { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-contact .tb-ico { margin-right: 5px; }
.tb-sep { opacity: 0.4; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 0.8rem; font-weight: 700; transition: background .2s, transform .2s;
}
.topbar-social a:hover { background: var(--gold); color: var(--green); transform: translateY(-2px); }
@media (max-width: 575px) {
  .apha-topbar { font-size: 0.76rem; }
  .topbar-contact { justify-content: center; width: 100%; gap: 6px; }
  .topbar-social { width: 100%; justify-content: center; margin-top: 6px; }
  .tb-sep { display: none; }
}

/* ==================== REFINEMENT PASS ==================== */
/* Centered eyebrow (for centered section headers) */
.eyebrow-line.justify-content-center { justify-content: center; }
.eyebrow-line.justify-content-center::before { display: inline-block; }

/* Darker gold for text-on-light to meet contrast (AA) */
.eyebrow-line { color: #9a7b2e; }
.leader-card .role { color: #9a7b2e; }
.navbar .nav-link.active { color: #8a6d22; }

/* Hero height on tablets / small laptops (576–991px) — was only handled <=575 */
@media (min-width: 576px) and (max-width: 991px) {
  .hero-carousel .carousel-item { height: clamp(440px, 68vh, 600px); }
  .hero-overlay h1 { font-size: 2.6rem; }
}

/* Tighter feature-card padding on small phones so content doesn't crowd */
@media (max-width: 575px) {
  .feature-card { padding: 22px; }
}
