/* ==========================================================================
   AIPAMF OFFICIAL CIRCULARS & NOTIFICATIONS STYLING
   Aesthetic: Imperial Navy (#0b1a38) & 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;
}

/* TOP STATUTORY 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;
}

.top-quick-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-quick-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
}

.top-quick-links a:hover {
  color: var(--gold-accent);
}

.divider {
  color: rgba(255, 255, 255, 0.2);
}

/* NAVBAR & DROPDOWN */
.main-navbar {
  background: var(--navy-primary);
  border-bottom: 2px solid var(--gold-accent);
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.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;
  display: block;
}

.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;
}

.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;
}

.dropdown-menu li a:hover {
  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;
}

/* HERO BANNER */
.circulars-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;
}

.circulars-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.8rem;
  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);
}

/* CIRCULARS LIST SECTION */
.circulars-main {
  padding: 5.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.circulars-head-row {
  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;
}

.circulars-head-row h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--navy-primary);
}

.gold-accent-line {
  width: 60px;
  height: 3px;
  background: var(--gold-accent);
  margin-top: 0.8rem;
}

.filter-search-box input {
  padding: 0.85rem 1.4rem;
  width: 320px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.filter-search-box input:focus {
  border-color: var(--gold-accent);
}

/* CIRCULAR CARD DESIGN */
.circulars-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.circular-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);
  transition: all 0.3s ease;
}

.circular-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-accent);
  box-shadow: 0 18px 40px rgba(11, 26, 56, 0.1);
}

.card-status-strip {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  padding: 0.7rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.status-tag.live {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-tag.statutory {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.status-tag.alert {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.circular-ref {
  font-family: monospace;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
}

.circular-body {
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 85px 1fr 180px;
  gap: 2rem;
  align-items: center;
}

/* Date Box */
.circular-date {
  background: var(--navy-primary);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.8rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gold-accent);
}

.circular-date .day {
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold-accent);
}

.circular-date .month {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 2px;
}

.circular-date .year {
  font-size: 0.68rem;
  color: #94a3b8;
}

/* Info */
.circular-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.circular-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.circular-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
  border-top: 1px dashed var(--border-light);
  padding-top: 0.6rem;
}

.circular-meta strong {
  color: var(--navy-primary);
}

/* Actions */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--navy-primary);
  color: var(--navy-primary);
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-download:hover {
  background: var(--navy-primary);
  color: var(--gold-accent);
  border-color: var(--gold-accent);
  box-shadow: 0 4px 15px rgba(11, 26, 56, 0.15);
}

/* 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: 992px) {
  .circular-body {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .circulars-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-search-box input {
    width: 100%;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-wrap {
    flex-direction: column;
    text-align: center;
  }
}