/* =========================================
   CHILD HEALTH CARE (Tabbed Service Page)
========================================= */

body.clinic-body{
  background-color:#f8f9fa;
  overflow-x:hidden;
  color:#4a5568;
}

.text-gold{ color:#d4af37 !important; }
.text-blue{ color:#0056b3 !important; }

/* Global Header Support */
.clinic-logo-img { height: 65px; transform: scale(2); transition: 0.3s; filter: none !important; }
.clinic-header { background: #ffffff !important; box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; padding: 10px 0 !important; }
.clinic-header .nav-link { color: #333333 !important; text-shadow: none !important; font-weight: 600 !important; }
.clinic-header.scrolled .header-phone { background: linear-gradient(135deg, #013578 0%, #136ab6 100%) !important; }

/* HERO */
.jr-hero{
  background: linear-gradient(135deg,#01162e 0%,#003366 100%);
  padding:180px 0 100px 0;
  position:relative;
  border-bottom:5px solid #d4af37;
}
.jr-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" opacity="0.03" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff"/></svg>');
  pointer-events:none;
}
.jr-tag{
  font-family:'Poppins',sans-serif;
  font-size:13px;
  letter-spacing:4px;
  color:#fff;
  font-weight:600;
  text-transform:uppercase;
  display:inline-block;
  margin-bottom:20px;
  background:rgba(212,175,55,.9);
  padding:8px 20px;
  border-radius:4px;
  box-shadow:0 4px 10px rgba(0,0,0,.2);
}
.jr-title{
  font-family:'Playfair Display',serif;
  font-size:clamp(40px,6vw,64px);
  color:#fff;
  font-weight:700;
  margin-bottom:25px;
  line-height:1.1;
  letter-spacing:-0.5px;
}
.jr-subtitle{
  font-family:'Lato',sans-serif;
  color:rgba(255,255,255,.85);
  font-size:19px;
  max-width:820px;
  margin:0 auto;
  line-height:1.7;
  font-weight:300;
}

/* CONTENT WRAP */
.jr-content-section{
  padding:0 0 100px 0;
  margin-top:-60px;
  position:relative;
  z-index:5;
  background-color:#f8f9fa;
}

/* TABS (text-only) */
.jr-tabs-container{
  display:flex;
  justify-content:center;
  gap:0;
  margin-bottom:0;
  border-radius:12px 12px 0 0;
  overflow:hidden;
  box-shadow:0 -4px 20px rgba(0,0,0,.08);
}
.jr-tab-btn{
  flex:1;
  background:#fff;
  border:none;
  border-bottom:3px solid #e2e8f0;
  border-right:1px solid #f1f5f9;
  color:#4a5568;
  font-family:'Poppins',sans-serif;
  font-size:17px;
  font-weight:500;
  letter-spacing:.3px;
  padding:24px 16px;
  cursor:pointer;
  transition:all .28s cubic-bezier(.4,0,.2,1);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.jr-tab-btn:last-child{ border-right:none; }
.jr-tab-btn:hover{
  background:#f8fafc;
  color:#0056b3;
}
.jr-tab-btn.active{
  background:#fff;
  color:#0056b3;
  border-bottom:3px solid #0056b3;
  font-weight:700;
  box-shadow:0 4px 15px rgba(0,86,179,.1);
  position:relative;
  z-index:2;
}

/* PANEL SHELL */
.jr-panels-wrapper{
  background:#fff;
  border-radius:0 0 12px 12px;
  padding:70px 60px;
  min-height:520px;
  box-shadow:0 15px 40px rgba(0,0,0,.08);
}
.jr-panel{
  display:none;
  animation:fadeInSlideUp .55s cubic-bezier(.16,1,.3,1) forwards;
}
.jr-panel.active{ display:block; }
.jr-panel .row.g-5{ align-items:flex-start; }

/* TYPOGRAPHY */
.panel-title{
  font-family:'Playfair Display',serif;
  font-size:36px;
  color:#1a202c;
  margin-bottom:15px;
  font-weight:700;
}
.panel-accent{
  width:60px;
  height:4px;
  background:#d4af37;
  margin-bottom:30px;
  border-radius:2px;
}
.panel-text{
  font-family:'Lato',sans-serif;
  font-size:17px;
  color:#4a5568;
  line-height:1.8;
  margin-bottom:25px;
}
.jr-panel h5.text-blue{
  color:#1a202c !important;
  font-family:'Poppins',sans-serif;
  font-size:20px;
  margin-top:40px !important;
  margin-bottom:20px !important;
  position:relative;
  padding-bottom:10px;
  font-weight:600;
}
.jr-panel h5.text-blue::after{
  content:'';
  position:absolute;
  left:0; bottom:0;
  width:40px; height:2px;
  background:#e2e8f0;
}
.jr-panel ul li{
  font-family:'Lato',sans-serif;
  font-size:16px;
  color:#4a5568;
  line-height:1.6;
  margin-bottom:12px !important;
  display:flex;
  align-items:flex-start;
}
.jr-panel ul li i{
  margin-top:5px;
  font-size:14px;
}

/* IMAGE: strict equal container */
.jr-panel .col-lg-5{
  display:flex;
  justify-content:center;
  align-items:flex-start;
}
.panel-img{
  width:100%;
  max-width:450px;
  height:360px !important;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 12px 35px rgba(0,0,0,.12);
  display:block;
  margin-top:15px;
}

/* FAQ */
.faq-title{
  font-family:'Playfair Display',serif;
  color:#1a202c;
  font-weight:700;
  margin-bottom:22px;
}
.mt-5.pt-4.border-top{
  margin-top:70px !important;
  padding-top:50px !important;
  border-top:1px solid #e2e8f0 !important;
}
.clinic-accordion .accordion-item{
  border:1px solid #e2e8f0;
  border-radius:10px !important;
  margin-bottom:18px;
  background:#fff;
  overflow:hidden;
  transition:all .25s ease;
  box-shadow:0 4px 15px rgba(0,0,0,.04);
}
.clinic-accordion .accordion-item:hover{
  border-color:#cbd5e1;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  transform:translateY(-2px);
}
.clinic-accordion .accordion-button{
  font-family:'Poppins',sans-serif;
  font-weight:500;
  font-size:17px;
  color:#1a202c;
  background:#f8fafc;
  padding:22px 25px;
  box-shadow:none;
}
.clinic-accordion .accordion-button:not(.collapsed){
  color:#0056b3;
  background:#fff;
  font-weight:600;
  border-bottom:1px solid #f1f5f9;
}
.clinic-accordion .accordion-body{
  font-family:'Lato',sans-serif;
  color:#4a5568;
  line-height:1.7;
  padding:25px;
  font-size:16px;
  background:#fff;
}

@keyframes fadeInSlideUp{
  from{ opacity:0; transform:translateY(20px); }
  to{ opacity:1; transform:translateY(0); }
}

/* =========================================
   FINAL MOBILE RESPONSIVE (UNIFIED SYSTEM)
========================================= */


/* ===============================
   MOBILE + TABLET (≤ 991px)
=============================== */
@media (max-width: 991px) {

  .clinic-header {
    padding: 3px 0 !important;
  } 

  /* HAMBURGER */
  .hamburger-lines {
    display: flex;
    height: 20px;
    width: 28px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
    position: relative;
  }

  .hamburger-lines .line {
    display: block;
    height: 2px;
    width: 100%;
    background: #000;
    border-radius: 10px;
  }

  /* HERO */
  .jr-hero {
    padding: 140px 20px 70px;
  }

  .jr-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .jr-subtitle {
    font-size: 15px;
    margin-bottom: 15px;
  }

  /* CONTENT */
  .jr-content-section {
    margin-top: -40px;
    padding-bottom: 60px;
  }

  /* 🔥 TABS FIX (MAIN) */
  .jr-content-section .jr-tabs-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .jr-content-section .jr-tab-btn {
    width: 100%;
    flex: unset;
    max-width: 100%;

    padding: 14px 16px;
    font-size: 14px;

    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;

    justify-content: flex-start;
    text-align: left;

    box-shadow: none;
  }

  .jr-content-section .jr-tab-btn.active {
    border-left: 4px solid #0056b3;
    background: #f8fbff;
    font-weight: 600;
  }

  /* PANELS */
  .jr-panels-wrapper {
    padding: 30px 20px;
    border-radius: 10px;
    margin-top: 15px;
  }

  .panel-title {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .panel-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  /* IMAGE */
  .panel-img {
    height: 260px !important;
    margin-top: 20px;
  }

  /* FAQ */
  .mt-5.pt-4.border-top {
    margin-top: 40px !important;
    padding-top: 25px !important;
  }

  .clinic-accordion .accordion-item {
    margin-bottom: 15px;
  }

  .clinic-accordion .accordion-button {
    padding: 16px;
    font-size: 15px;
  }

}


/* ===============================
   SMALL MOBILE (≤ 767px)
=============================== */
@media (max-width: 767px) {

  .jr-hero {
    padding: 120px 15px 50px;
  }

  .jr-title {
    font-size: 26px;
  }

  .jr-subtitle {
    font-size: 13.5px;
  }

  .panel-title {
    font-size: 22px;
  }

  .panel-img {
    height: 200px !important;
  }

}