/* ==========================================================================
   AIPAMF EVENTS & CONFERENCES - IMPERIAL NAVY & GOLD 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 & 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;
  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;
  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;
  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 */
.events-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;
}

.events-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);
}

/* 3. SECTION 1: FLAGSHIP SUMMIT (UDAIPUR) */
.flagship-event-section {
  padding: 5.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.event-spotlight-card {
  background: var(--card-bg);
  border: 2px solid var(--gold-accent);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 26, 56, 0.12);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}

.spotlight-media-wrap {
  position: relative;
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.spotlight-media-wrap:hover .spotlight-poster-img {
  transform: scale(1.03);
}

.spotlight-badge-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--navy-dark);
  color: var(--gold-accent);
  border: 1.5px solid var(--gold-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
}

.spotlight-details {
  padding: 3rem 2.8rem;
  display: flex;
  flex-direction: column;
}

.spotlight-top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.conf-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b45309;
  background: var(--gold-light);
  border: 1px solid #fde68a;
  padding: 4px 12px;
  border-radius: 4px;
}

.conf-dates {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold-vibrant);
}

.spotlight-details h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--navy-primary);
  line-height: 1.2;
}

.venue-subline {
  font-size: 1rem;
  color: #1e293b;
  font-weight: 700;
  margin-top: 0.4rem;
}

.gold-accent-line {
  width: 60px;
  height: 3px;
  background: var(--gold-accent);
  margin: 1.2rem 0;
  border-radius: 2px;
}

.spotlight-motto {
  font-size: 0.95rem;
  color: #b45309;
  background: #fffbeb;
  border-left: 3px solid var(--gold-accent);
  padding: 0.8rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.spotlight-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

.summit-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.4rem;
}

.summit-highlight-item strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--navy-primary);
  margin-bottom: 4px;
}

.summit-highlight-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

.spotlight-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn-primary-action {
  background: var(--navy-primary);
  color: var(--gold-accent);
  border: 1.5px solid var(--gold-accent);
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary-action:hover {
  background: #061126;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary-action {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--navy-primary);
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  border-color: var(--gold-accent);
}

/* 4. SECTION 2: OPEN TERRITORIES / RECRUITMENT MATRIX */
.expansion-section {
  background: #f1f5f9;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.expansion-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-center-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.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.3rem;
  font-weight: 900;
  color: var(--navy-primary);
}

.title-gold-bar {
  width: 70px;
  height: 3px;
  background: var(--gold-accent);
  margin: 1rem auto;
  border-radius: 2px;
}

.section-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.expansion-display-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

/* Left: Poster Frame */
.expansion-poster-frame {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 12px 35px rgba(11, 26, 56, 0.08);
}

.expansion-img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.lead-officer-banner {
  margin-top: 1rem;
  background: var(--navy-dark);
  color: #ffffff;
  padding: 1rem 1.4rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--gold-accent);
}

.lead-officer-banner strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--gold-accent);
}

.lead-officer-banner small {
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.officer-phone {
  background: var(--gold-accent);
  color: var(--navy-dark);
  text-decoration: none;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

/* Right: Open Induction Matrix Card */
.expansion-cities-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 2.8rem 2.4rem;
  box-shadow: 0 12px 35px rgba(11, 26, 56, 0.08);
}

.card-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.card-head-bar h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--navy-primary);
  font-weight: 800;
}

.territory-note {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.motto-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 4px;
}

.city-search-box {
  margin-bottom: 1.2rem;
}

.city-search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.city-search-box input:focus {
  border-color: var(--gold-accent);
}

.cities-pill-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.8rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 2rem;
}

.city-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-primary);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.city-pill:hover {
  border-color: var(--gold-accent);
  background: var(--navy-primary);
  color: var(--gold-accent);
  transform: translateY(-2px);
}

.membership-cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 1.4rem;
  gap: 1rem;
}

.membership-cta-strip strong {
  font-size: 0.88rem;
  color: var(--navy-primary);
  display: block;
}

.membership-cta-strip p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-apply-hub {
  background: var(--navy-primary);
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-apply-hub:hover {
  background: #061126;
  color: #ffffff;
}

/* 5. MODAL STYLES */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(6, 17, 38, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 2px solid var(--gold-accent);
  border-radius: 14px;
  padding: 2.2rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #b45309;
  background: var(--gold-light);
  padding: 3px 8px;
  border-radius: 4px;
}

.modal-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: var(--navy-primary);
  margin-top: 0.4rem;
}

.modal-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-card .form-group {
  margin-bottom: 1rem;
}

.modal-card label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.35rem;
}

.modal-card input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.modal-card input:focus {
  border-color: var(--gold-accent);
}

.btn-modal-submit {
  width: 100%;
  background: var(--navy-primary);
  color: var(--gold-accent);
  border: 1.5px solid var(--gold-accent);
  padding: 0.85rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.25s ease;
}

.btn-modal-submit:hover {
  background: #061126;
  color: #ffffff;
}

/* 6. 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) {
  .event-spotlight-card,
  .expansion-display-grid,
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .spotlight-media-wrap {
    height: 400px;
  }
  .summit-highlights-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-wrap {
    flex-direction: column;
    text-align: center;
  }
}