/* =========================================
   FRACTURE & TRAUMA MANAGEMENT CSS
========================================= */

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 SECTION --- */
.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;
    top: 0; left: 0; right: 0; bottom: 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: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    background: rgba(212, 175, 55, 0.9);
    padding: 8px 20px;
    border-radius: 4px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.jr-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 64px);
    color: #ffffff;
    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, 0.85);
    font-size: 19px;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

/* --- TABS NAVIGATION (TEXT-ONLY LAYOUT) --- */
.jr-content-section {
    padding: 0 0 100px 0;
    margin-top: -60px; 
    position: relative;
    z-index: 5;
    background-color: #f8f9fa; 
}

.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,0.08); 
}

.jr-tab-btn {
    flex: 1;
    background: #ffffff;
    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: 0.5px;
    padding: 24px 20px; 
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 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: #ffffff;
    color: #0056b3;
    border-bottom: 3px solid #0056b3;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1); 
    z-index: 10; 
}

/* --- PANELS & TEXT --- */
.jr-panels-wrapper {
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    padding: 70px 60px;
    min-height: 500px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
}

.jr-panel {
    display: none;
    animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.jr-panel.active {
    display: block;
}

.jr-panel .row.g-5 {
    align-items: flex-start;
}

.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-color: #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;
}

.jr-panel h5.text-blue::after {
    content: '';
    position: absolute;
    bottom: 0; left: 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;
}

/* --- STRICT IMAGE SIZING --- */
.jr-panel .col-lg-5 {
    display: flex;
    justify-content: center; 
    align-items: flex-start; 
}

.panel-img {
    width: 100%;
    max-width: 450px; 
    height: 380px !important; 
    min-height: auto !important; 
    object-fit: cover;
    border-radius: 8px; 
    box-shadow: 0 12px 35px rgba(0,0,0,0.12); 
    display: block;
    margin-top: 15px;
}

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ACCORDION FAQs --- */
.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: 8px !important;
    margin-bottom: 20px; 
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04); 
}

.clinic-accordion .accordion-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px rgba(0,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;
    border-radius: 8px !important;
}

.clinic-accordion .accordion-button:not(.collapsed) {
    color: #0056b3;
    background: #ffffff;
    box-shadow: none;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.clinic-accordion .accordion-body {
    font-family: 'Lato', sans-serif;
    color: #4a5568;
    line-height: 1.7;
    padding: 25px;
    font-size: 16px;
    background: #ffffff;
}

/* =========================================
   FINAL MOBILE RESPONSIVE (CONSISTENT 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 FIX SAME AS OTHER PAGES) */
  .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: 8px;
    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;
  }

}