/* ==========================================================================
   AIPAMF NEWS & MEDIA DESK - DUAL-FORMAT & LIGHTBOX STYLING
   ========================================================================== */

: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 SLIDE BANNER */
.news-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;
}

.news-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. MAIN SECTION & FILTERS */
.news-main-section {
  padding: 5.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.news-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;
}

.news-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;
}

.news-lead-subtext {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 0.6rem;
  max-width: 600px;
}

.media-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);
}

.tab-pill {
  background: transparent;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.55rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-pill:hover {
  color: var(--navy-primary);
}

.tab-pill.active {
  background: var(--navy-primary);
  color: var(--gold-accent);
  box-shadow: 0 4px 12px rgba(11, 26, 56, 0.15);
}

/* 4. MEDIA FEED GRID */
.media-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 4.5rem;
}

.news-item-card {
  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);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-item-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-accent);
  box-shadow: 0 18px 45px rgba(11, 26, 56, 0.12);
}

/* Status Bar */
.card-status-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  padding: 0.7rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.type-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}

.type-tag.dispatch { background: #e0f2fe; color: #0369a1; }
.type-tag.regional { background: #fef3c7; color: #92400e; }
.type-tag.print { background: #fce7f3; color: #9d174d; }
.type-tag.alert { background: #fee2e2; color: #991b1b; }

.ref-num {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

/* Visual Frame */
.media-visual-frame {
  position: relative;
  background: #020617;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-item-card:hover .media-visual-frame img {
  transform: scale(1.03);
}

.media-visual-frame.placeholder-frame {
  background: linear-gradient(135deg, #0b1a38 0%, #061126 100%);
  flex-direction: column;
  gap: 10px;
}

.seal-icon-display {
  font-size: 3rem;
}

.frame-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-accent);
  text-transform: uppercase;
}

/* FORMAT B: Interactive Clipping Preview Frame */
.clipping-preview-wrapper {
  position: relative;
  background: #fbf8f1; /* Newsprint tint */
  padding: 1.2rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.clipping-tape-effect {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid rgba(216, 208, 191, 0.7);
  border-radius: 2px;
  z-index: 5;
}

.clipping-thumb-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid #d8d0bf;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: block;
}

.clipping-overlay-prompt {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(11, 26, 56, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.clipping-preview-wrapper:hover .clipping-overlay-prompt {
  opacity: 1;
}

.zoom-icon {
  font-size: 1.5rem;
}

/* Card Body */
.card-text-body {
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.editorial-meta {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.card-text-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.summary-para {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.quote-callout {
  background: #f8fafc;
  border-left: 3px solid var(--gold-accent);
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: auto;
}

.contact-pill-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b45309;
  margin-top: auto;
}

/* Bottom Strip */
.card-bottom-action {
  border-top: 1px solid var(--border-light);
  padding: 1rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.action-info {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}

.link-btn {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-btn:hover {
  color: var(--gold-accent);
}

.link-btn.text-button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

/* 5. PRESS CONTACT STRIP */
.press-contact-strip {
  background: linear-gradient(135deg, #061126 0%, #0b1a38 100%);
  border: 2px solid var(--gold-accent);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  gap: 2rem;
}

.contact-strip-left h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.contact-strip-left p {
  font-size: 0.9rem;
  color: #cbd5e1;
  max-width: 650px;
}

.contact-strip-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  white-space: nowrap;
}

.btn-email-press {
  background: var(--gold-accent);
  color: var(--navy-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-email-press:hover {
  background: var(--gold-vibrant);
  transform: translateY(-2px);
}

.press-helpline {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 700;
  text-align: center;
}

/* 6. LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(6, 17, 38, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 850px;
  background: #ffffff;
  border: 2px solid var(--gold-accent);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px; right: 18px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  transition: color 0.2s ease;
}

.lightbox-close-btn:hover {
  color: #0b1a38;
}

.lightbox-header {
  padding: 1.4rem 2rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.lightbox-header h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--navy-primary);
  margin-bottom: 2px;
}

.lightbox-header span {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.lightbox-img-wrap {
  padding: 1.5rem;
  background: #061126;
  text-align: center;
  max-height: 65vh;
  overflow-y: auto;
}

.lightbox-img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-footer {
  padding: 1rem 2rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
}

.btn-download-clip {
  background: var(--navy-primary);
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

/* 7. 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) {
  .media-feed-grid,
  .press-contact-strip,
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .news-head-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom-wrap {
    flex-direction: column;
    text-align: center;
  }
}