/* ============================================================
   APEC 2026 — Global Core Base Stylesheet (global.css)
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-blue: #0084ff;
  --gradient-bg: linear-gradient(135deg, #0084ff 0%, #1a4fff 50%, #3024ff 100%);
  --navy: #0e1b40;
  --gold: #fbc02d;
  --white: #ffffff;
  --light: #f4f7fb;
  --muted: #7a8fa8;
  --text: #1e2d42;
  --border: #dde5f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  padding-top: 145px;
  /* Space for fixed header */
}

/* ========= FIXED HEADER ========= */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #FFFFFF;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* ========= TOP HEADER - Animated Background ========= */
.top-header {
  padding: 1rem 0;
  text-align: center;
  /* background: linear-gradient(90deg, #f5f5f5, #ffffff, #f5f5f5); */
  background: linear-gradient(90deg, #d0e4ea, #ffffff, #d0e4ea);
  background-size: 200% 100%;
  animation: gentleWave 8s ease-in-out infinite;
  border-bottom: 1px solid #eaeaea;
}

@keyframes gentleWave {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.logos-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.logo-left,
.logo-right {
  height: 105px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-left:hover,
.logo-right:hover {
  transform: scale(1.03);
}

/* ========= BOTTOM HEADER - Centered Nav (Desktop) ========= */
.bottom-header {
   background: linear-gradient(90deg, #f5f5f5, #ffffff, #f5f5f5);
  /* animation: gentleWave 8s ease-in-out infinite; */
  padding: 0.8rem 1rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  font-family: 'Segoe UI', 'Poppins', Arial, sans-serif;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: 0.8px;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

nav a:hover {
  color: #27a5ff;
}

nav a.active {
  color: #27a5ff;
  border-bottom: 2px solid #3c11fc;
}

/* ========= HAMBURGER MENU BUTTON ========= */
.hamburger {
  display: none;
  position: fixed;
  top: 85px;
  right: 20px;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1002;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

/* ========= MOBILE MENU - Slide from Right ========= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(165deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 100px 2rem 2rem 2rem;
  gap: 1.2rem;
  z-index: 1001;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

/* Close button inside mobile menu */
.menu-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 1002;
}

.menu-close-btn:hover {
  background: #f0f0f0;
}

.mobile-menu a {
  color: var(--navy);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 0;
  width: 100%;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
  letter-spacing: 1px;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary-blue);
  padding-left: 10px;
  border-bottom-color: var(--primary-blue);
}

/* ========= OVERLAY ========= */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: none;
}

.overlay.show {
  display: block;
}

/* ========= RESPONSIVE BREAKPOINTS ========= */

/* Tablets & Mobile - Show Hamburger, Hide Desktop Nav */
@media (max-width: 960px) {
  body {
    padding-top: 120px;
  }

  /* Hide desktop navigation */
  .bottom-header nav {
    display: none !important;
  }

  /* Show hamburger */
  .hamburger {
    display: flex !important;
  }

  /* Adjust header for mobile */
  header {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    height: auto;
  }

  .logos-container {
    gap: 1.5rem;
  }

  .logo-left,
  .logo-right {
    height: 45px;
  }

  .top-header {
    padding: 0.8rem 0;
  }
}

/* Small Mobile Devices */
@media (max-width: 640px) {
  body {
    padding-top: 100px;
  }

  .logos-container {
    gap: 1rem;
  }

  .logo-left,
  .logo-right {
    height: 38px;
  }

  .hamburger {
    top: 65px;
    right: 12px;
    padding: 8px 10px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  .mobile-menu {
    width: 85%;
    padding: 80px 1.5rem 2rem 1.5rem;
  }

  .mobile-menu a {
    font-size: 0.9rem;
    padding: 10px 0;
  }

  .page-hero {
    padding: 120px 6% 80px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 50px 4% !important;
  }
}

/* Desktop - Hide Mobile Elements */
@media (min-width: 961px) {
  .hamburger {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
  }

  .overlay {
    display: none !important;
  }
}

/* ========= REUSABLE PAGE HERO BANNER ========= */
.page-hero {
  background:
    url('https://www.apec2026.in/wp-content/uploads/2026/02/city-banner.png') no-repeat bottom center / contain,
    linear-gradient(135deg, #0084ff 0%, #1a4fff 50%, #3024ff 100%);
  padding: 180px 5% 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.page-hero-tag::before,
.page-hero-tag::after {
  content: '●';
  color: var(--gold);
  font-size: 0.7rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========= REUSABLE UTILITY BLOCKS ========= */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

section {
  padding: 90px 5%;
}

.section-tag {
  display: inline-block;
  color: var(--primary-blue);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title.light {
  color: var(--white);
}

.section-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.8;
}

.section-lead.light {
  color: rgba(255, 255, 255, .8);
}

.divider {
  width: 52px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  margin: 18px 0;
}

.divider.center {
  margin: 18px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s;
  font-family: 'DM Sans', sans-serif;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.btn-gold {
  background: #ffd54f;
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .5);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline-dark:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========= SHARED FOOTER & CONTACT BAR ========= */
#abstract-footer-links {
  background-color: var(--white);
  padding: 40px 5% 30px;
}

.footer-links-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links-grid a {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0c1a30;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.footer-links-grid a:hover {
  color: var(--primary-blue);
}

.horizontal-break-line {
  width: 90%;
  max-width: 1100px;
  height: 1px;
  background-color: #e2e8f0;
  margin: 0 auto;
}

/* Three Column Info Section Layout */
#official-info-bar {
  background-color: var(--white);
  padding: 50px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.info-bar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 250px;
}

.info-circle-icon {
  width: 54px;
  height: 54px;
  background-color: #00a0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-circle-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.info-bar-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.info-bar-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.info-bar-value.text-node {
  color: #0f172a;
}

/* Deep Indigo Footer block */
#site-footer {
  background-color: #21168c;
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
}

.footer-right-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.follow-us-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.social-circle-buttons {
  display: flex;
  gap: 10px;
}

.circle-btn {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  transition: background-color 0.2s;
}

.circle-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* Yellow Scroll Back-To-Top Button */
.scroll-top-button {
  width: 36px;
  height: 36px;
  background-color: #fcd34d;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.scroll-top-button:hover {
  background-color: #fbbf24;
}

/* Tablet Info Bar Adjustments */
@media (max-width: 840px) {
  #official-info-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 32px !important;
    padding: 40px 10% !important;
  }

  .info-bar-item {
    width: 100%;
    min-width: 100%;
  }

  .info-bar-value {
    font-size: 1.15rem;
  }

  #site-footer {
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 24px !important;
    padding: 30px 6% !important;
  }

  .footer-right-wrap {
    flex-direction: column !important;
    gap: 16px !important;
    width: 100%;
  }
}