/* ============================================================
   ecamfstyle.css  —  ECAMF complete stylesheet
   ============================================================ */

:root {
  --navy: #000080;
  --gold: #FFA500;
  --cream: #faf7f0;
  --white: #ffffff;
  --text: #1a1a2e;
  --muted: #5a5a72;
  --border: #e0d8c8;
  --red: #c0392b;
  --green: #27ae60;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: "Lato", sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ── VIEWS ────────────────────────────────────────────────── */
.view {
  display: none;
}
.view.active {
  display: block;
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(13, 34, 85, 0.97);
  backdrop-filter: blur(8px);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  border-bottom: 2px solid var(--gold);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}
.nav-brand-text {
  font-family: "Playfair Display", serif;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}
.nav-brand-text span {
  color: var(--gold);
}
.nav-logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.nav-logo-circle i {
  color: var(--white);
  font-size: 1.3rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.2s;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-btn {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 4px;
  border-bottom: none !important;
}
.nav-btn:hover {
  background: #b07820 !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: white;
  display: block;
  transition: 0.3s;
}

/* ── HERO ─────────────────────────────────────────────────── */
#sec-home {
  min-height: 100vh;
  background: linear-gradient(155deg, #0a1a45 0%, #1a3a80 45%, #0d2255 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1593113598332-cd288d649433?w=1600&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}
.hero-badge {
  display: inline-block;
  background: rgba(200, 146, 42, 0.18);
  border: 1px solid rgba(200, 146, 42, 0.4);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
  font-weight: 700;
}
.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 12px;
  font-weight: 800;
}
.hero-title em {
  color: var(--gold);
  font-style: italic;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  max-width: 660px;
  margin: 0 auto 16px;
  font-weight: 300;
}
.hero-motto {
  color: var(--gold);
  font-style: italic;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  margin-bottom: 36px;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 60px;
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 800;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  font-family: "Lato", sans-serif;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-full {
  width: 100%;
  padding: 15px;
  font-size: 0.9rem;
  text-align: center;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
section {
  padding: 90px 5%;
}
section:nth-child(even) {
  background: var(--white);
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
}
.section-line {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 18px auto 0;
}

/* ── ABOUT ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.about-image-block {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(13, 34, 85, 0.15);
  margin-bottom: 28px;
  position: relative;
}
.about-image-block img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.about-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(13, 34, 85, 0.85));
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  padding: 20px 14px 10px;
  letter-spacing: 0.04em;
}
.about-vision {
  background: var(--navy);
  border-radius: 8px;
  padding: 40px;
}
.about-vision h3 {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.about-vision p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 0.98rem;
}
.values-list {
  list-style: none;
}
.values-list li {
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.values-list li .fa-star {
  color: var(--gold);
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 4px;
}
.founder-quote {
  margin-top: 28px;
  background: rgba(200, 146, 42, 0.12);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 6px 6px 0;
}
.founder-quote p {
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  font-family: "Playfair Display", serif;
  margin-bottom: 8px;
}
.founder-quote cite {
  color: var(--gold);
  font-size: 0.82rem;
  font-style: normal;
}

/* ── PROGRAMS ─────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.pillar-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 36px 30px;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13, 34, 85, 0.1);
}
.pillar-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.pillar-card h3 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.pillar-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

/* ── PROCESS STEPS ────────────────────────────────────────── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 36px;
  position: relative;
}
.process-step:not(.last)::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 48px;
  width: 2px;
  bottom: 0;
  background: var(--gold);
  opacity: 0.3;
}
.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body h4 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.step-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── GALLERY ──────────────────────────────────────────────── */
#sec-gallery {
  background: var(--navy);
}
#sec-gallery .section-title {
  color: var(--white);
}

.gallery-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  outline: none;
}
.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-img:hover img,
.gallery-img:focus img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 34, 85, 0.85) 0%,
    rgba(13, 34, 85, 0.2) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 16px;
}
.gallery-img:hover .gallery-overlay,
.gallery-img:focus .gallery-overlay {
  opacity: 1;
}
.gallery-overlay-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.gallery-overlay-inner i {
  color: var(--gold);
  font-size: 1.1rem;
}
.gallery-overlay-inner span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gallery-view-all-wrap {
  text-align: center;
  margin-top: 32px;
}
.gallery-view-all-btn {
  color: var(--gold) !important;
  border-color: var(--gold) !important;
}
.gallery-view-all-btn:hover {
  background: var(--gold) !important;
  color: var(--white) !important;
}

/* ── LIGHTBOX ─────────────────────────────────────────────── */
#ecamf-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#ecamf-lightbox.open {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 38, 0.94);
  backdrop-filter: blur(6px);
}
.lb-modal {
  position: relative;
  z-index: 1;
  width: 92vw;
  max-width: 900px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #0d1f4a;
  border-radius: 12px;
  border: 1px solid rgba(200, 146, 42, 0.25);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: lbIn 0.25s ease;
}
@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.lb-close:hover {
  background: var(--gold);
  transform: scale(1.1);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  margin-top: -30px; /* offset for info bar */
}
.lb-nav:hover {
  background: var(--gold);
}
.lb-prev {
  left: 14px;
}
.lb-next {
  right: 14px;
}

.lb-img-wrap {
  flex: 1;
  position: relative;
  background: #060e26;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 56vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s;
}
.lb-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2rem;
}

.lb-info {
  padding: 16px 60px;
  background: #0d1f4a;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lb-caption {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.lb-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 8px;
}
.lb-counter {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.lb-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: #09172f;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.lb-thumbs::-webkit-scrollbar {
  height: 3px;
}
.lb-thumbs::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}
.lb-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: border-color 0.2s, opacity 0.2s;
}
.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lb-thumb:hover {
  opacity: 0.85;
}
.lb-thumb.active {
  border-color: var(--gold);
  opacity: 1;
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.contact-info h3 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail-text strong {
  color: var(--navy);
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.contact-detail-text span {
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-link {
  color: var(--muted);
  text-decoration: none;
}
.contact-link:hover {
  color: var(--gold);
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: #06112e;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 36px 5%;
  font-size: 0.85rem;
}
footer strong {
  color: var(--gold);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--gold);
}

/* ── AUTH ─────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(155deg, #0a1a45 0%, #1a3a80 45%, #0d2255 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 5% 60px;
}
.auth-card {
  background: var(--white);
  border-radius: 10px;
  padding: 48px 44px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}
.auth-card h2 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.auth-card p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}
.gold-line {
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 28px;
}
.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.auth-switch a {
  color: var(--gold);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

/* ── FORMS ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fefefe;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
}
.radio-label input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.88rem;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s;
}
.checkbox-label:hover {
  border-color: var(--gold);
}
.checkbox-label input {
  accent-color: var(--gold);
}

.msg {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 4px;
  display: none;
}
.msg.error {
  background: #fdf0f0;
  border: 1px solid #f5c6c6;
  color: var(--red);
  display: block;
}
.msg.success {
  background: #f0faf0;
  border: 1px solid #b3e0b3;
  color: var(--green);
  display: block;
}
.msg.info {
  background: #fff8f0;
  border: 1px solid #f5ddb3;
  color: #7a5c1a;
  display: block;
}

/* ── DASHBOARD ────────────────────────────────────────────── */
.dashboard-page {
  min-height: 100vh;
  background: #f0ece3;
  padding-top: 72px;
}
.dash-header {
  background: var(--navy);
  padding: 40px 5% 30px;
  border-bottom: 3px solid var(--gold);
}
.dash-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-welcome h2 {
  font-family: "Playfair Display", serif;
  color: var(--white);
  font-size: 1.6rem;
}
.dash-welcome p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-top: 4px;
}
.dash-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dash-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 5%;
}
.dash-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 36px;
  overflow-x: auto;
}
.dash-tab {
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: "Lato", sans-serif;
  transition: color 0.2s;
}
.dash-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* ── APPLICATION FORM ─────────────────────────────────────── */
.app-form-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(13, 34, 85, 0.08);
  overflow: hidden;
}
.app-form-section {
  padding: 36px 40px;
  border-bottom: 1px solid var(--border);
}
.app-form-section:last-of-type {
  border-bottom: none;
}
.app-form-section h3 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-form-section h3 i {
  color: var(--gold);
  font-size: 1rem;
}
.app-form-section .section-desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.app-form-footer {
  padding: 28px 40px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.status-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-pending {
  background: #fff3cd;
  color: #7a5c1a;
}
.status-submitted {
  background: #d4edda;
  color: #1a6630;
}
.status-approved {
  background: #cce5ff;
  color: #0c5aa6;
}
.status-rejected {
  background: #f8d7da;
  color: #6a1a1a;
}

/* ── RESULTS ──────────────────────────────────────────────── */
.results-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 40px;
  box-shadow: 0 4px 24px rgba(13, 34, 85, 0.08);
  margin-bottom: 24px;
}
.results-card h3 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.results-history {
  margin-top: 36px;
}
.results-history h3 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  margin-bottom: 16px;
}
.result-entry {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.result-entry-info h4 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.result-entry-info p {
  color: var(--muted);
  font-size: 0.85rem;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 16px;
  display: block;
}
.empty-state p {
  font-size: 1rem;
}

/* ── PROFILE ──────────────────────────────────────────────── */
.profile-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 40px;
  box-shadow: 0 4px 24px rgba(13, 34, 85, 0.08);
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 20px;
}
.profile-name {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.profile-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* ── SPINNER ──────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FILE UPLOAD DROP ZONE ────────────────────────────────── */
.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: #fdfaf5;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  overflow: hidden;
}
.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: var(--gold);
  background: rgba(200, 146, 42, 0.04);
}
.file-drop-zone.drag-over {
  border-style: solid;
}

.file-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  gap: 8px;
  text-align: center;
}
.file-drop-icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.file-drop-text {
  color: var(--text);
  font-size: 0.92rem;
  margin: 0;
}
.file-drop-browse {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.file-drop-hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}

/* File preview inside drop zone */
.file-preview {
  padding: 14px 16px;
}
.file-preview-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
}
.file-preview-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}
.file-preview-thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.file-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.file-preview-info {
  flex: 1;
  min-width: 0;
}
.file-preview-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-preview-size {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 3px;
}
.file-preview-remove {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.file-preview-remove:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Upload progress bar */
#upload-progress-wrap {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: none;
}
.upload-progress-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.upload-progress-label i {
  color: var(--gold);
}
.upload-progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #e8b44a);
  border-radius: 100px;
  width: 0%;
  transition: width 0.2s ease;
}

/* Result file attachment in history */
.result-file-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  flex-wrap: wrap;
}
.result-file-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.result-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  background: var(--navy);
  color: var(--white);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.result-file-btn:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

/* ── SNACKBAR ─────────────────────────────────────────────── */
#ecamf-snackbar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 8px;
  min-width: 300px;
  max-width: 480px;
  width: calc(100vw - 48px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: "Lato", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}
#ecamf-snackbar.snack-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
#ecamf-snackbar.snack-error {
  background: #2d0a0a;
  border: 1px solid rgba(220, 80, 80, 0.4);
  color: #ff8a8a;
}
#ecamf-snackbar.snack-success {
  background: #0a2d14;
  border: 1px solid rgba(60, 180, 80, 0.4);
  color: #7dffaa;
}
#ecamf-snackbar.snack-info {
  background: #0d1f4a;
  border: 1px solid rgba(200, 146, 42, 0.4);
  color: #f0c97a;
}
.snack-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.snack-error .snack-icon {
  color: #ff6b6b;
}
.snack-success .snack-icon {
  color: #51cf66;
}
.snack-info .snack-icon {
  color: var(--gold);
}
.snack-text {
  flex: 1;
  line-height: 1.45;
}
.snack-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  font-size: 0.9rem;
  flex-shrink: 0;
  padding: 2px 4px;
  transition: opacity 0.2s;
}
.snack-close:hover {
  opacity: 1;
}

/* ── FORGOT PASSWORD MODAL ────────────────────────────────── */
#fp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8888;
  align-items: center;
  justify-content: center;
}
#fp-modal.open {
  display: flex;
}
.fp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 38, 0.88);
  backdrop-filter: blur(4px);
}
.fp-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 10px;
  padding: 40px 36px;
  width: 92vw;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: lbIn 0.22s ease;
}
.fp-card h3 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.fp-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.fp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.fp-close:hover {
  background: var(--border);
}

/* ── MOBILE ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: fixed; /* changed from absolute — stops it scrolling away */
    top: 72px;
    left: 0;
    right: 0;
    background: #0a1a45; /* slightly deeper than the nav bar */
    flex-direction: column;
    padding: 8px 0 20px; /* no side padding — links go edge-to-edge */
    gap: 0;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 199;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    border-bottom: none;
    border-left: 3px solid transparent;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    letter-spacing: 0.09em;
  }
  .nav-links a::after {
    content: "›";
    font-size: 1.2rem;
    opacity: 0.3;
    font-weight: 300;
    line-height: 1;
  }
  .nav-links a:hover {
    background: rgba(200, 146, 42, 0.1);
    color: var(--gold);
    border-left-color: var(--gold);
    border-bottom: none;
  }

  /* Sign In / My Dashboard button */
  .nav-links #navAuthBtn,
  .nav-links #navDashBtn {
    padding: 4px 24px 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-links #navAuthBtn a,
  .nav-links #navDashBtn a {
    background: var(--gold);
    color: var(--white) !important;
    border-radius: 4px;
    padding: 14px 24px;
    justify-content: center;
    border-left: none;
    letter-spacing: 0.1em;
  }
  .nav-links #navAuthBtn a::after,
  .nav-links #navDashBtn a::after {
    content: ""; /* remove the › arrow from the CTA */
  }
  .nav-links #navAuthBtn a:hover,
  .nav-links #navDashBtn a:hover {
    background: #b07820;
    border-left: none;
  }

  /* Logout link */
  .nav-links #navLogoutBtn {
    padding: 0 24px;
  }
  .nav-links #navLogoutBtn a {
    justify-content: center;
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 0.75rem;
    padding: 10px 24px;
    border-left: none;
  }
  .nav-links #navLogoutBtn a::after {
    content: "";
  }
  .nav-links #navLogoutBtn a:hover {
    background: none;
    color: rgba(255, 255, 255, 0.55) !important;
    border-left: none;
  }

  /* keep the rest of your existing 860px rules below here unchanged */
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .gallery-inner {
    grid-template-columns: 1fr 1fr;
  }
  .app-form-section {
    padding: 24px 20px;
  }
  .app-form-footer {
    padding: 20px;
  }
  .results-card {
    padding: 24px 20px;
  }
  .lb-info {
    padding: 14px 52px;
  }
  .lb-nav {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 540px) {
  .gallery-inner {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 32px 20px;
  }
  .dash-tab {
    padding: 12px 16px;
    font-size: 0.78rem;
  }
  .lb-thumbs {
    display: none;
  }
  .lb-img-wrap img {
    max-height: 48vh;
  }
}
