/* ==========================================================================
   AIPAMF MISSION & VISION PAGE STYLING
   Aesthetic: Imperial Navy (#0b1a38 / #061126) & Metallic Gold (#d4af37)
   ========================================================================== */

:root {
  --navy-primary: #0b1a38;
  --navy-dark: #061126;
  --navy-deep: #030814;
  --gold-accent: #d4af37;
  --gold-vibrant: #f59e0b;
  --gold-light: #fef3c7;
  --surface-light: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-muted: #475569;
  --border-light: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--surface-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================= 0. TOP NAVIGATION ================= */
.aipamf-navbar {
  background: var(--navy-primary);
  border-bottom: 2px solid var(--gold-accent);
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-brand-text h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0;
}

.nav-brand-text span {
  font-size: 0.65rem;
  color: var(--gold-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-accent);
}

.nav-cta-btn {
  background: var(--gold-accent);
  color: var(--navy-dark) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* ================= 1. HERO SLIDE BANNER ================= */
.mv-hero-banner {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 3px solid var(--gold-accent);
  background-color: var(--navy-dark);
  background-image: url('../assets/images/port-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.mv-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 17, 38, 0.82) 0%, rgba(6, 17, 38, 0.94) 100%);
  z-index: 1;
}

.mv-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 900px;
}

.hero-pill-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 6px 18px;
  border-radius: 24px;
  margin-bottom: 1.2rem;
  animation: floatBadge 3.5s ease-in-out infinite;
}

.hero-title-group {
  font-family: 'Cinzel', serif;
  margin: 0 auto;
  line-height: 1.2;
}

.type-line {
  display: block;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
}

.type-line.line-1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  animation: typing 1.2s steps(20, end) 0.3s forwards;
}

.type-line.line-2 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-accent);
  letter-spacing: 2.5px;
  margin-top: 0.3rem;
  animation: typing 1.4s steps(22, end) 1.8s forwards;
}

.hero-breadcrumb-nav {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1.5px;
  opacity: 0;
  animation: fadeIn 0.8s ease 3.2s forwards;
}

.hero-breadcrumb-nav a {
  color: #cbd5e1;
  text-decoration: none;
}

.hero-breadcrumb-nav a:hover,
.hero-breadcrumb-nav span {
  color: var(--gold-accent);
}

/* ================= 2. CORE MISSION & VISION CARDS ================= */
.mv-core-section {
  padding: 6rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-center-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #b45309;
  background: var(--gold-light);
  border: 1px solid #fde68a;
  padding: 4px 14px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.section-center-head h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--navy-primary);
  line-height: 1.25;
}

.title-gold-bar {
  width: 70px;
  height: 3px;
  background: var(--gold-accent);
  margin: 1rem auto;
  border-radius: 2px;
}

.section-intro {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Toggle Tabs */
.mv-toggle-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 3.5rem;
}

.mv-tab-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--navy-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(11, 26, 56, 0.04);
}

.mv-tab-btn:hover {
  border-color: var(--gold-accent);
  color: var(--navy-dark);
}

.mv-tab-btn.active {
  background: var(--navy-primary);
  color: var(--gold-accent);
  border-color: var(--gold-accent);
  box-shadow: 0 6px 18px rgba(11, 26, 56, 0.15);
}

/* Cards Grid */
.mv-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.mv-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 3.2rem 2.5rem 2rem;
  box-shadow: 0 12px 35px rgba(11, 26, 56, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mv-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-accent);
  box-shadow: 0 22px 50px rgba(11, 26, 56, 0.12);
}

.mv-card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0b1a38, #d4af37);
  border-radius: 18px 18px 0 0;
}

.mv-card-top-accent.gold-glow {
  background: linear-gradient(90deg, #d4af37, #f59e0b);
}

.mv-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #0b1a38;
  background: #e2e8f0;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}

.mv-card-badge.gold {
  color: #92400e;
  background: var(--gold-light);
}

.mv-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b1a38 0%, #061126 100%);
  border: 1px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 16px rgba(11, 26, 56, 0.15);
}

.mv-card-icon.gold {
  border-color: var(--gold-vibrant);
}

.mv-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.mv-card-lead {
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.mv-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.mv-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.chk-icon {
  color: #d4af37;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.4;
}

.mv-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
}

.pillar-id {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #94a3b8;
  text-transform: uppercase;
}

/* ================= 3. STATUTORY DIRECTIVES (5 PILLARS) ================= */
.directives-section {
  position: relative;
  background-color: var(--navy-dark);
  background-image: 
    linear-gradient(180deg, rgba(6, 17, 38, 0.88) 0%, rgba(11, 26, 56, 0.94) 100%),
    url('../assets/images/world-network-map.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 6.5rem 3rem;
  color: #ffffff;
  border-top: 2px solid var(--gold-accent);
  border-bottom: 2px solid var(--gold-accent);
}

.directives-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-center-head.light h2 {
  color: #ffffff;
}

.directive-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
}

.directives-subtitle {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.directives-slider-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.directive-box {
  background: rgba(11, 26, 56, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 2.2rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.directive-box:hover {
  transform: translateY(-8px);
  border-color: var(--gold-accent);
  background: rgba(11, 26, 56, 0.95);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.dir-index {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-accent);
  margin-bottom: 0.8rem;
}

.directive-box h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.directive-box p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ================= 4. IMPACT COUNTER METRICS ================= */
.impact-counter-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 4.5rem 3rem;
}

.impact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.impact-item {
  padding: 1rem;
}

.counter-val, .counter-plus {
  font-family: 'Cinzel', serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--navy-primary);
  line-height: 1.1;
}

.counter-plus {
  color: var(--gold-accent);
}

.impact-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ================= 5. FOOTER ================= */
.aipamf-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  border-top: 2px solid var(--gold-accent);
}

.footer-top-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 3rem 3.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.2rem;
}

.footer-emblem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-accent);
  object-fit: contain;
  background: var(--navy-primary);
}

.footer-brand-lockup h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0;
}

.footer-brand-lockup span {
  font-size: 0.65rem;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: block;
}

.brand-col p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #94a3b8;
}

.footer-col h5 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--gold-accent);
  padding-left: 4px;
}

.contact-col p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.contact-col strong {
  color: #ffffff;
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 3rem;
  background: var(--navy-deep);
}

.footer-bottom-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748b;
  gap: 1rem;
}

.footer-credit {
  font-size: 0.85rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.footer-credit .heart-icon {
  color: #ef4444;
  display: inline-block;
  margin: 0 4px;
  animation: heartPulse 1.5s infinite;
}

.footer-credit .brand-highlight {
  color: var(--gold-accent);
  font-weight: 700;
  letter-spacing: 1px;
}

.gold-tagline {
  color: var(--gold-accent);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ================= KEYFRAMES ================= */
@keyframes floatBadge {
  0% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

/* ================= RESPONSIVE RULES ================= */
@media (max-width: 1024px) {
  .mv-cards-grid,
  .directives-slider-grid,
  .impact-container,
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .aipamf-navbar {
    padding: 1rem 1.5rem;
  }

  .mv-core-section,
  .directives-section,
  .impact-counter-section,
  .footer-top-grid,
  .footer-bottom-bar {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .footer-bottom-wrap {
    flex-direction: column;
    text-align: center;
  }

  .type-line.line-1,
  .type-line.line-2 {
    font-size: 1.8rem;
    white-space: normal;
    width: auto !important;
  }
}