/* ===============================
   DESIGN SYSTEM
================================ */
:root {
    --primary: #0F4C81;
    --secondary: #2AA9A1;
    --bg-light: #F5F7FA;
    --text-dark: #1F2933;
    --text-muted: #6B7280;
    --white: #ffffff;
  }
  
  /* ===============================
     GLOBAL RESET
  ================================ */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
  }
  
  /* ===============================
     LOGO BRANDING
  ================================ */
  .logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    text-transform: uppercase;
    position: relative;
  }
  
  .logo::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    background: var(--secondary);
    margin-top: 4px;
    border-radius: 2px;
  }
  
  /* ===============================
     NAVBAR
  ================================ */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    z-index: 1000;
  }
  
  .navbar.scrolled {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  }
  
  .nav-inner {
    max-width: 1200px;
    margin: auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* NAV LINKS */
  .nav-inner nav a {
    margin-left: 28px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.25s ease;
    position: relative;
  }
  
  /* hover */
  .nav-inner nav a:hover {
    color: var(--primary);
  }
  
  /* underline */
  .nav-inner nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: -6px;
    left: 0;
    transition: width 0.3s ease;
  }
  
  /* active underline */
  .nav-inner nav a.active::after,
  .nav-inner nav a:hover::after {
    width: 100%;
  }
  
  /* active link color */
  .nav-inner nav a.active {
    color: var(--primary);
    font-weight: 600;
  }
  
  /* CTA button */
  .nav-inner nav a.cta {
    padding: 8px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 600;
  }
  
  /* CTA should NOT get underline */
  .nav-inner nav a.cta::after {
    display: none;
  }
  
  /* CTA active still readable */
  .nav-inner nav a.cta.active {
    filter: brightness(1.1);
  }
  
  /* ===============================
     SECTIONS (GLOBAL)
  ================================ */
  .section {
    min-height: 100vh;
    padding: 20px 0 20px;
   
    align-items: center;
  }
  
  
  .section.light {
    background: var(--bg-light);
  }
  
  .section > div {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
    width: 100%;
  }
  /* ===============================
   GLOBAL SECTION TITLE SYSTEM
================================ */

/* Main section titles */
.section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Section subtitles */
.section p[class$="subtitle"],
.section .why-intro {
  text-align: center;
}

  /* ===============================
     HERO
  ================================ */
  .hero {
  min-height: 100vh;
  padding: 60px 0 20px;
  display: flex;
  align-items: center;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 5vw, 3.6rem);
    line-height: 1.1;
    color: var(--primary);
    position: relative;
  }
  
  .hero h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: var(--secondary);
    margin-top: 14px;
    border-radius: 3px;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
  }
  
  .hero p {
    max-width: 520px;
    margin-top: 16px;
  }
  
  .hero img {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  }
  
  /* ===============================
     BUTTONS
  ================================ */
  .btn {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15,76,129,0.35);
  }
  
  /* ===============================
     ABOUT
  ================================ */
  .about-section {
    position: relative;
    background-image: url("/static/images/hospital.jpeg");
    background-repeat: no-repeat;
    color: #ffffff;
    background-size: 200% auto; /* zoom */
    background-position: right center;
  }
  .about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(15, 76, 129, 0.85),
      rgba(15, 76, 129, 0.65),
      rgba(15, 76, 129, 0.45)
    );
    z-index: 1;
  }
  
  .about-content {
    
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: auto;
    padding: 0 24px;
    text-align: center;
  }
  
  .about-content h2 {
    color: #ffffff;
  }
  
  
  .about-content p {
    color: #E5E7EB;
    font-size: 1.15rem;
  }
  
  /* ===============================
     SERVICES
  ================================ */
  .cards {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  
  .card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
  }
  
  .card h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--primary);
  }
  
  /* ===============================
     DOCTOR
  ================================ */
  #doctor {
    text-align: center;
  }
  
  #doctor img {
    width: 260px;
    height: 320px;
    object-fit: cover;
    border-radius: 24px;
    margin: 30px 0 20px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.15);
  }
  
  /* ===============================
     WHY
  ================================ */
  .why {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .why li {
    list-style: none;
    padding: 18px 22px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-weight: 500;
  }
  
  /* ===============================
     OPD
  ================================ */
  .opd-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
  }
  
  .opd-info div {
    background: var(--white);
    padding: 28px 34px;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.08);
    text-align: center;
  }
  
  /* ===============================
     TESTIMONIAL
  ================================ */
  .testimonial {
    max-width: 720px;
    margin: 40px auto 0;
    font-style: italic;
    text-align: center;
  }
  
  /* ===============================
     CONTACT
  ================================ */
  #contact p {
    text-align: center;
    font-size: 1.1rem;
  }
  
  /* ===============================
     RESPONSIVE
  ================================ */
  @media (max-width: 900px) {
    .hero-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .hero img {
      margin: auto;
    }
  
    .cards {
      grid-template-columns: 1fr;
    }
  
    .why {
      grid-template-columns: 1fr;
     
    }
  
    .opd-info {
      flex-direction: column;
    }
  }
/* SERVICES CARD CONTENT */
.card .icon {
    font-size: 2.6rem;
    margin-bottom: 18px;
  }
  
  .card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
  }
/* ===============================
   DOCTOR SECTION (FIXED ALIGNMENT)
================================ */

#doctor {
    align-items: center;
  }
  
  .doctor-wrap {
    max-width: 1100px;
    margin: auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 64px;
    align-items: center;
  }
  
  /* IMAGE */
  .doctor-image {
    display: flex;
    justify-content: center;
  }
  
  .doctor-image img {
    width: 100%;
    max-width: 360px;
    height: 420px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  }
  
  /* TEXT BLOCK */
  .doctor-info {
    text-align: left;
  }
  
  
  
  /* NAME */
  .doctor-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
  }
  
  /* DESIGNATION */
  .doctor-info .designation {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 18px;
  }
  
  /* DESCRIPTION */
  .doctor-info p {
    max-width: 520px;
    margin-bottom: 20px;
    line-height: 1.7;
  }
  
  /* LIST */
  .doctor-points {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .doctor-points li {
    margin-bottom: 12px;
    font-weight: 500;
  }
  
  /* ===============================
     RESPONSIVE
  ================================ */
  @media (max-width: 900px) {
    .doctor-wrap {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .doctor-info {
      text-align: center;
    }
  
    #doctor h2 {
      text-align: center;
    }
  
    .doctor-info p {
      margin-left: auto;
      margin-right: auto;
    }
  }
/* ===============================
   WHY CHOOSE US – ALIGNMENT FIX
================================ */

.why-wrap {
    max-width: 1100px;
    margin: auto;
    text-align: center; /* SECTION AUTHORITY */
  }
  
  /* INTRO */
  .why-intro {
    max-width: 620px;
    margin: 12px auto 48px;
    font-size: 1.05rem;
    color: var(--text-muted);
  }
  
  /* GRID */
  .why {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    text-align: left; /* INTERNAL CONTENT */
  }
  
  /* CARD */
  .why li {
    display: flex;
    gap: 18px;
    padding: 28px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.07);
    align-items: flex-start;
  }
  
  /* ICON */
  .why-icon {
    font-size: 2rem;
    line-height: 1;
    margin-top: 6px;
  }
  
  /* TEXT */
  .why-text h4 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: var(--primary);
  }
  
  .why-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
  }
  
  /* MOBILE */
  @media (max-width: 900px) {
    .why {
      grid-template-columns: 1fr;
      text-align: center; 
    }
  
    .why li {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  }
/* ===============================
   OPD SECTION – STRUCTURED & ALIGNED
================================ */

.opd-wrap {
    max-width: 1000px;
    margin: auto;
    padding: 0 24px;
    text-align: center;
  }
  
  .opd-subtitle {
    max-width: 620px;
    margin: 10px auto 40px;
    font-size: 1.1rem;
    color: var(--text-muted);
  }
  
  /* Cards */
  .opd-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .opd-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
  }
  
  .opd-card:hover {
    transform: translateY(-8px);
  }
  
  .opd-card h3 {
    margin: 16px 0 10px;
    font-size: 1.35rem;
    color: var(--primary);
  }
  
  .opd-card p {
    margin: 6px 0;
    font-size: 1rem;
  }
  
  /* Icon */
  .opd-icon {
    font-size: 2.2rem;
    display: inline-block;
  }
  
  /* Highlight emergency */
  .opd-card.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
  }
  
  .opd-card.highlight h3,
  .opd-card.highlight p {
    color: var(--white);
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .opd-cards {
      grid-template-columns: 1fr;
    }
  }
/* ===============================
   TESTIMONIAL SECTION – TRUST UI
================================ */

.testimonial-wrap {
    max-width: 1100px;
    margin: auto;
    padding: 0 24px;
    text-align: center;
  }
  
  .testimonial-subtitle {
    max-width: 640px;
    margin: 10px auto 48px;
    font-size: 1.1rem;
    color: var(--text-muted);
  }
  
  /* Cards */
  .testimonial-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  
  .testimonial-card {
    background: var(--white);
    padding: 36px 30px;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    position: relative;
  }
  
  .testimonial-card::before {
    content: "❝";
    position: absolute;
    top: -18px;
    left: 20px;
    font-size: 3.5rem;
    color: var(--secondary);
    opacity: 0.2;
  }
  
  .quote {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 18px;
  }
  
  .patient-name {
    font-weight: 600;
    color: var(--primary);
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .testimonial-cards {
      grid-template-columns: 1fr;
    }
  }
/* ===============================
   CONTACT SECTION – PROFESSIONAL
================================ */

.contact-wrap {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
  }
  
  .contact-subtitle {
    text-align: center;
    max-width: 620px;
    margin: 12px auto 50px;
    color: var(--text-muted);
    font-size: 1.1rem;
  }
  
  /* Layout */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
  }
  
  /* Info */
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  
  .contact-item {
    display: flex;
    gap: 18px;
    background: var(--white);
    padding: 22px 24px;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.08);
  }
  
  .contact-item .icon {
    font-size: 1.6rem;
  }
  
  .contact-item h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--primary);
  }
  
  .contact-item p {
    margin: 0;
    color: var(--text-muted);
  }
  
  .contact-item a {
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
  }
  
  /* Map */
  .contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.1);
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .contact-grid {
      grid-template-columns: 1fr;
    }
  
    .contact-map iframe {
      min-height: 300px;
    }
  }
/* ===============================
   MOBILE: HIDE MENU, SHOW ONLY TITLE
================================ */
@media (max-width: 768px) {

  /* Hide entire navigation menu */
  .nav-inner nav {
    display: none;
  }

  /* Center logo/title */
  .nav-inner {
    justify-content: center;
  }

  /* Slightly adjust logo for mobile */
  .logo {
    font-size: 1.05rem;
    text-align: center;
  }

  .logo::after {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===============================
   INSTAGRAM AUTO FEED – FIX CUT ISSUE
================================ */

.instagram-auto iframe {
  width: 100%;
  max-width: 1200px;
  height: 900px;        /* 🔥 INCREASE HEIGHT */
  border: none;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.1);
  overflow: auto;      /* 🔥 ALLOW SCROLL */
}

/* Tablet */
@media (max-width: 1024px) {
  .instagram-auto iframe {
    height: 800px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .instagram-auto iframe {
    height: 600px;
  }
}

/* ================= FOOTER ================= */
.main-footer {
  background-color: #1B6CA8;
  color: #FFFFFF;
  text-align: center;
  padding: 12px 10px;
  font-size: 13px;
  flex-shrink: 0;        /* prevent shrinking */
}
/* ===============================
   FORCE CENTER WHY CARDS (MOBILE)
   SAFE OVERRIDE – BOTTOM ONLY
================================ */

@media (max-width: 900px) {

  #why-mobile-fix .why {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-left: 0 !important;
  }

  #why-mobile-fix .why li {
    width: 100% !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* ===============================
   INSTAGRAM – MOBILE EXTRA SPACE FIX
   BOTTOM OVERRIDE ONLY
================================ */

@media (max-width: 768px) {

  /* Remove forced full-screen height ONLY for Instagram */
  #instagram.section {
    min-height: auto !important;
    padding-bottom: 10px !important;
  }

  /* Tighten wrapper spacing */
  #instagram .instagram-wrap {
    margin-bottom: 0 !important;
  }

  /* Reduce iframe height to content-fit */
  #instagram .instagram-auto iframe {
    height: 420px !important;   /* key fix */
    max-height: none !important;
    margin-bottom: 0 !important;
  }
}
