/* AMFA public site styles — transparent header over hero, hero carousel, reveal */

body.amfa-landing {
  padding-top: 0;
}

/* Header: absolute + transparent over the hero, solid once scrolled */
.landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, position 0s linear;
}

.landing-nav .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.3s ease;
}

.landing-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.landing-nav .nav-link:hover,
.landing-nav .nav-link.active {
  color: var(--gold);
}

.landing-nav .navbar-toggler {
  border: none;
  color: #fff;
  font-size: 1.5rem;
}

/* Solid state — landing.js adds .scrolled */
.landing-nav.scrolled {
  position: fixed;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}

.landing-nav.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.landing-nav.scrolled .nav-link:hover,
.landing-nav.scrolled .nav-link.active {
  color: var(--gold);
}

/* Body gets this class when the fixed header appears, to avoid a jump */
body.header-pinned {
  padding-top: 72px;
}

/* Hero slider with slow zoom */
.hero-slider,
.hero-static {
  position: relative;
  min-height: 560px;
  height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 9s ease-out forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide-img { animation: none; }
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(14, 25, 54, 0.85) 10%, rgba(14, 25, 54, 0.55) 60%, rgba(205, 11, 102, 0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}

/* Sections */
.section-programmes,
.section-gallery,
.section-faqs {
  background: var(--paper);
}

.section-gallery {
  background: var(--paper-alt);
}

.section-cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 55%, var(--magenta) 160%);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.75rem auto 0;
  background: var(--gold);
  border-radius: 2px;
}

/* Programme cards */
.programme-card {
  position: relative;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.programme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.programme-level {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.programme-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.programme-duration {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.programme-desc {
  color: var(--muted);
  margin-bottom: 1rem;
}

.programme-fee {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--magenta);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy);
}

.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(14, 25, 54, 0.85));
}

/* CTA */
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
}

.cta-text {
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

/* Footer */
.landing-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.5rem;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

@media (min-width: 768px) {
  .footer-links {
    justify-content: flex-end;
  }
}

/* Shared landing page elements */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.contact-form,
.apply-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.contact-form .btn-apply,
.apply-form .btn-apply {
  margin-top: 0.5rem;
}

.apply-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--magenta);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

.apply-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Verification result card */
.verify-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
}

.verify-icon {
  font-size: 3rem;
}

.verify-valid .verify-icon { color: var(--success); }
.verify-revoked .verify-icon { color: #E63946; }
.verify-invalid .verify-icon { color: var(--gold-dark); }

.verify-status {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0.75rem 0;
}

.verify-details {
  text-align: left;
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
}
