/* ============================================================
   Apollo Hospitals – Global Stylesheet
   style.css  |  Used by all pages via header.php
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --apollo-teal:      #006c77;
  --apollo-teal-dark: #004f59;
  --apollo-yellow:    #f5a623;
  --apollo-orange:    #e87722;
  --apollo-red:       #e53935;
  --apollo-white:     #ffffff;
  --apollo-light-bg:  #fff5f0;
  --apollo-text:      #1a1a2e;
  --apollo-muted:     #666;
  --nav-height:       100px;
  --transition:       0.3s ease;
  --shadow-lg:        0 8px 32px rgba(0,0,0,0.12);
  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-pill:      50px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--apollo-text);
  background: #fff;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Utility ---------- */
.container-fluid { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
#main-header {
  position: fixed;
  top: 0; left: 0px; right: 0;
  z-index: 1050;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: #ffffff;
  transition: background var(--transition), box-shadow var(--transition);
}

/* Scrolled state – injected by JS */
#main-header.scrolled {
  background: var(--apollo-white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Logo ---------- */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.header-logo img {
  height: 86px;
  width: auto;
  /* Remove or comment this line to see the original colors */
  /* filter: brightness(0) invert(1); */ 
  transition: filter var(--transition);
}
.nav-link-btn {
  /* ... other styles ... */
  font-size: 16px; /* Increased from 13.5px */
  font-weight: 700; /* Optional: make it slightly bolder */
}

#main-header.scrolled .header-logo img {
  filter: none;                            /* original colours on white bg */
}

/* ---------- Primary Nav ---------- */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Nav item wrapper */
.nav-item {
  position: static;   /* mega-menu is full-width; handled on #main-header */
}

.nav-link-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #000;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link-btn .chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav-link-btn:hover,
.nav-item.active .nav-link-btn {
  color: var(--apollo-yellow);
}

#main-header.scrolled .nav-link-btn {
  color: var(--apollo-text);
}

#main-header.scrolled .nav-link-btn:hover,
#main-header.scrolled .nav-item.active .nav-link-btn {
  color: var(--apollo-teal);
}

.nav-item.active .nav-link-btn .chevron {
  transform: rotate(180deg);
}

/* ---------- Header Actions (right side) ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.action-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: transform var(--transition), opacity var(--transition);
}

.action-btn:hover { transform: scale(1.08); opacity: 0.9; }

.btn-phone { background: var(--apollo-yellow); color: #000; }
.btn-search { background: var(--apollo-yellow); color: #000; }

.btn-emergency {
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  padding: 4px 6px;
  position: relative;
  transition: color var(--transition);
}

#main-header.scrolled .btn-emergency { color: var(--apollo-text); }

.btn-emergency .bell-icon { font-size: 18px; }
.btn-emergency .emergency-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.emergency-dot {
  position: absolute;
  top: 2px; right: 4px;
  width: 8px; height: 8px;
  background: var(--apollo-red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.7; }
}

.btn-lang {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border: 2px solid var(black);
  border-radius: var(--radius-pill);
  background: transparent;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

#main-header.scrolled .btn-lang {
  border-color: var(--apollo-text);
  color: var(--apollo-text);
}

.btn-lang:hover { border-color: var(--apollo-yellow); color: var(--apollo-yellow); }

/* ============================================================
   MEGA DROPDOWN PANEL
   ============================================================ */
.mega-panel {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--apollo-light-bg);
  box-shadow: var(--shadow-lg);
  z-index: 1040;
  animation: slideDown 0.22s ease forwards;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mega-panel.open { display: block; }
.mega-panel.open.mega-discover { display: grid; }

/* Close button */
.mega-close {
  position: absolute;
  top: 14px; right: 20px;
  background: none; border: none;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  color: var(--apollo-muted);
  transition: color var(--transition);
}
.mega-close:hover { color: var(--apollo-text); }

/* ----- DISCOVER APOLLO mega (3-col: sidebar | links | quick-links) ----- */
.mega-discover {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  min-height: 380px;
}

.mega-sidebar {
  background: #fff;
  padding: 20px 0;
  border-right: 1px solid #e6ddd8;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  color: var(--apollo-text);
  border-left: 3px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.sidebar-item.active,
.sidebar-item:hover {
  background: var(--apollo-light-bg);
  border-left-color: var(--apollo-teal);
  color: var(--apollo-teal);
}

.sidebar-item .si-arrow { font-size: 12px; color: var(--apollo-muted); }

.mega-content-area {
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
  align-content: start;
}

.mega-content-area a {
  font-size: 15px;
  color: var(--apollo-text);
  padding: 6px 0;
  border-bottom: 1px solid #ede5e0;
  transition: color var(--transition);
}

.mega-content-area a:hover { color: var(--apollo-teal); padding-left: 4px; }

.mega-quicklinks {
  background: #fff;
  border-left: 1px solid #e6ddd8;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-quicklinks h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--apollo-text);
}

.ql-card {
  background: var(--apollo-light-bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: background var(--transition);
}

.ql-card:hover { background: #f0e6df; }
.ql-card.highlight { background: #deeef5; }
.ql-card.highlight:hover { background: #cde4ef; }

.ql-card .ql-label { font-size: 11px; color: var(--apollo-muted); font-weight: 600; }
.ql-card .ql-value { font-size: 17px; font-weight: 800; color: var(--apollo-teal); }

.ql-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--apollo-yellow);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13.5px;
  color: #000;
  cursor: pointer;
  transition: background var(--transition);
}

.ql-cta:hover { background: #e09600; }
.ql-cta span { font-size: 18px; }

/* ----- FIND HOSPITAL mega (5-col city grid) ----- */
.mega-hospitals {
  padding: 28px 36px 28px 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 20px;
  width: 100%;
}

.city-col { padding: 4px 0; }

.city-name {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--apollo-text);
  margin-bottom: 6px;
  margin-top: 14px;
}

.city-name:first-child { margin-top: 0; }

.city-col a {
  display: block;
  font-size: 15px;
  color: var(--apollo-muted);
  padding: 3px 0;
  transition: color var(--transition);
}

.city-col a:hover { color: var(--apollo-teal); }

/* ----- MEDICAL SERVICES / HEALTH LIBRARY (simple grid) ----- */
.mega-simple {
  padding: 28px 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 20px;
  width: 100%;
}

.mega-simple a {
  font-size: 15px;
  color: var(--apollo-text);
  padding: 7px 0;
  border-bottom: 1px solid #ede5e0;
  transition: color var(--transition);
}

.mega-simple a:hover { color: var(--apollo-teal); }

/* ============================================================
   HERO SECTION  (for index.php)
   ============================================================ */
/* .hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
} */
.hero-section {
    position: relative;
    margin-top: var(--nav-height);   /* 100px */
    height: calc(100vh - var(--nav-height));
    min-height: 600px;
    overflow: hidden;
}
.hero-section {
    padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(135deg, #001f27 0%, #004f59 50%, #006c77 100%); */
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* opacity: 0.45; */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,80,90,0.6) 100%); */
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 80px;
  text-align: center;
  gap: 22px;
}

.hero-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 22px;
  width: min(720px, 90vw);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.hero-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--apollo-muted);
  background: transparent;
}

.hero-search-bar button {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--apollo-orange);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 17px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.hero-search-bar button:hover { background: #c05a10; }

/* Quick-action pills */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.ha-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  border: none;
  background: transparent;
  border-right: 1px solid rgba(255,255,255,0.25);
  transition: background var(--transition);
  white-space: nowrap;
}

.ha-btn:last-child { border-right: none; }
.ha-btn:hover { background: rgba(255,255,255,0.18); }

.ha-btn .ha-arrow {
  width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.ha-btn:hover .ha-arrow { border-color: #fff; }

/* ============================================================
   FOOTER (basic shared styles)
   ============================================================ */
footer {
  background: var(--apollo-teal-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  font-size: 13.5px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .mega-discover { grid-template-columns: 1fr; }
  .mega-hospitals { grid-template-columns: repeat(2, 1fr); }
  .mega-simple    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .header-inner { padding: 0 16px; }
  .hero-actions { flex-direction: column; border-radius: var(--radius-md); width: 90vw; }
  .ha-btn { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); justify-content: space-between; }
  .ha-btn:last-child { border-bottom: none; }
}