/* ==========================================================================
   AIPAMF PHOTO & MEDIA GALLERY - IMPERIAL NAVY & METALLIC GOLD
   ========================================================================== */

: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;
}

/* 0. STATUTORY TOP BAR */
.top-statutory-bar {
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.45rem 2rem;
  font-size: 0.76rem;
  color: #94a3b8;
}

.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.registry-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 2px 10px;
  border-radius: 20px;
  color: #4ade80;
  font-weight: 700;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.top-quick-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-quick-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.top-quick-links a:hover {
  color: var(--gold-accent);
}

.divider {
  color: rgba(255, 255, 255, 0.2);
}

/* 1. NAVBAR */
.main-navbar {
  background: var(--navy-primary);
  border-bottom: 2px solid var(--gold-accent);
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-accent);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1.5px solid var(--gold-accent);
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(6, 17, 38, 0.45);
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1200;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.4rem;
  color: var(--navy-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.sub-active {
  background: var(--gold-light);
  color: #b45309;
  padding-left: 1.7rem;
}

.btn-join-federation {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.btn-join-federation:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
}

/* 2. HERO BANNER */
.gallery-hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-dark) url('../assets/images/port-bg.jpg') center/cover no-repeat;
  border-bottom: 3px solid var(--gold-accent);
  overflow: hidden;
}

.gallery-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%);
}

.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;
}

.hero-title-group .line-1 {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  display: block;
}

.hero-title-group .line-2 {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold-accent);
  display: block;
  margin-top: 0.3rem;
}

.hero-breadcrumb-nav {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
}

.hero-breadcrumb-nav a {
  color: #cbd5e1;
  text-decoration: none;
}

.hero-breadcrumb-nav span {
  color: var(--gold-accent);
}

/* 3. FEATURED VIDEO CAMPAIGN BANNER */
.featured-video-section {
  padding: 4rem 2rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.video-feature-card {
  background: #020617;
  border: 2px solid var(--gold-accent);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 26, 56, 0.2);
}

.video-player-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  background: #061126;
}

.video-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-overlay-cover {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(6, 17, 38, 0.7) 0%, rgba(6, 17, 38, 0.95) 100%),
              url('../assets/images/world-network-map.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.video-overlay-cover.hide {
  opacity: 0;
  pointer-events: none;
}

.play-pulse-btn {
  width: 80px;
  height: 80px;
  background: var(--gold-accent);
  color: var(--navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  padding-left: 5px;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.6);
  transition: transform 0.25s ease, background 0.25s ease;
  margin-bottom: 1.5rem;
}

.video-overlay-cover:hover .play-pulse-btn {
  transform: scale(1.1);
  background: var(--gold-vibrant);
}

.video-cover-caption {
  text-align: center;
  color: #ffffff;
  padding: 0 1rem;
}

.cover-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-accent);
  text-transform: uppercase;
  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;
  margin-bottom: 0.8rem;
}

.video-cover-caption h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.video-cover-caption p {
  color: #cbd5e1;
  font-size: 0.92rem;
  max-width: 600px;
  margin: 0 auto;
}

/* 4. GALLERY MAIN SECTION */
.gallery-main-section {
  padding: 4rem 2rem 6rem;
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
}

.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;
}

.gallery-head-bar h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--navy-primary);
}

.gold-accent-line {
  width: 60px;
  height: 3px;
  background: var(--gold-accent);
  margin-top: 0.8rem;
}

/* Filter Tabs */
.gallery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: 30px;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(11, 26, 56, 0.04);
}

.filter-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.55rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--navy-primary);
}

.filter-btn.active {
  background: var(--navy-primary);
  color: var(--gold-accent);
  box-shadow: 0 4px 12px rgba(11, 26, 56, 0.15);
}

/* GALLERY GRID & ITEMS */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  background: var(--card-bg);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 26, 56, 0.05);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-8px);
  border-color: var(--gold-accent);
  box-shadow: 0 20px 45px rgba(11, 26, 56, 0.12);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  background: #020617;
  overflow: hidden;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.06);
}

.item-hover-mask {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(6, 17, 38, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .item-hover-mask {
  opacity: 1;
}

.view-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.item-hover-mask h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--gold-accent);
  margin-bottom: 0.2rem;
}

.item-hover-mask p {
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* Captions */
.item-caption {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  flex-grow: 1;
}

.cat-pill {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--gold-light);
  color: #92400e;
}

.cat-pill.summit { background: #e0f2fe; color: #0369a1; }
.cat-pill.fleet { background: #dcfce7; color: #166534; }
.cat-pill.audits { background: #fce7f3; color: #9d174d; }

.item-caption h5 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.35;
}

.item-caption small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 5. INTERACTIVE LIGHTBOX */
.gallery-lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  padding: 2rem;
}

.gallery-lightbox.active {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(6, 17, 38, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border: 2px solid var(--gold-accent);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 14px; right: 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: #ef4444;
}

.lightbox-media-frame {
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 60vh;
  overflow: hidden;
}

.lightbox-media-frame img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.lightbox-details-panel {
  padding: 1.8rem 2rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lightbox-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b45309;
  background: var(--gold-light);
  padding: 3px 10px;
  border-radius: 4px;
}

.lightbox-details-panel h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--navy-primary);
  line-height: 1.3;
}

.lightbox-details-panel p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.lightbox-action-row {
  margin-top: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.btn-lightbox-download {
  background: var(--navy-primary);
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-lightbox-download:hover {
  background: var(--navy-dark);
  color: #ffffff;
}

/* 6. STANDARDIZED 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 2rem 3.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
}

.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;
}

.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;
}

.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;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-col ul li a:hover {
  color: var(--gold-accent);
}

.contact-col p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.contact-col strong {
  color: #ffffff;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 2rem;
  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;
}

.footer-credit .heart-icon {
  color: #ef4444;
  display: inline-block;
  margin: 0 4px;
}

.footer-credit .brand-highlight, .gold-tagline {
  color: var(--gold-accent);
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-head-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .video-player-wrap {
    height: 320px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-wrap {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}