/**
 * Service Details page styles — extracted from the theme's service-details.html
 * (was an inline <style> block; now global per project convention).
 */

/* ============================================================
   BODY PARTS / TREATMENT AREAS  (arrow slider, dark band)
   ============================================================ */
#section-bodyparts {
    background: #4e2501;
    border-radius: 0;
    padding: 65px 0;
    margin: 0;
    color: #f0ece7;
    box-shadow: 0 20px 40px rgb(0 0 0 / 8%);
}
#section-bodyparts .title-light { color: #fff; }
.body-parts-text { max-width: 820px; margin: 6px auto 26px; font-size: 1rem; }
.detail_page_text p {
    font-size: 15px;
}
.slider-container { position: relative; }
.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}
/* .slider-track {
    display: flex;
    gap: 1.2rem;
    transition: transform 0.5s ease-in-out;
    padding: 0.5rem 0.2rem;
    will-change: transform;
} */
.slider-wrapper .col-auto {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #f0e8e4;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}
.slider-wrapper .col-auto:hover {
    transform: translateY(-4px);
    border-color: #dccfc8;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
.slide-icon {
    background: #f4eeea;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b3f3a;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: 0.2s;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.8), 0 4px 10px rgba(0, 0, 0, 0.03);
}
/* Uploaded body-part images must fill the circle (was missing → images blew out) */
.slide-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slide:hover .slide-icon { background: #ebe1db; }
.slider-wrapper .col-auto .slide-label {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    margin-top: 10px;
}
/* .slide-label small {
    font-weight: 400;
    font-size: 0.65rem;
    color: #6d5f58;
    display: block;
    margin-top: 2px;
}
.slider-arrows {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0.8rem;
}
Hidden automatically when everything fits (set by the slider JS)
.slider-arrows.is-hidden { display: none; }
.arrow-btn {
    background: #f0e8e4;
    border: 1px solid #e5dbd5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    color: #3f3530;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrow-btn:hover { background: #ded1c9; transform: scale(0.95); }
.arrow-btn:disabled { opacity: .4; cursor: default; transform: none; }

@media (max-width: 700px) {
    #section-bodyparts { padding: 32px 18px; }
    .slide { width: 120px; min-width: 100px; padding: 0.8rem 0.2rem; }
    .slide-icon { width: 62px; height: 62px; }
    .slide-label { font-size: 0.75rem; }
    .arrow-btn { width: 35px; height: 35px; font-size: 0.9rem; }
}
@media (max-width: 450px) {
    .slide { width: 104px; min-width: 92px; }
    .slide-icon { width: 56px; height: 56px; }
    .slide-label { font-size: 0.7rem; }
} */

/* ============================================================
   RECOVERY / AFTERCARE CARDS (inside the dark Side-Effects band)
   ============================================================ */
.recovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    max-width: 1050px;
    margin: 26px auto 0;
    padding: 0 8px;
}
.recovery-card {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 10px;
    padding: 16px 18px;
    color: #fff;
    font-size: .95rem;
    line-height: 1.5;
    text-align: center;
    transition: background .2s ease, transform .2s ease;
}
.recovery-card:hover {
    background: rgba(255,255,255,.22);
    transform: translateY(-3px);
}
@media (max-width: 575.98px) {
    .recovery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .recovery-card { padding: 13px 12px; font-size: .87rem; }
}
/* ----- THEME COLOR PALETTE ----- */
    :root {
      --primary: #b48b7a;         
      --primary-dark: #9f7362;    
      --primary-light: #d9c5b9;   
      --bg-soft: #f6f0eb;         
      --bg-card: #ffffff;
      --bg-dark: #1e1e2a;        
      --text-dark: #1e1e2a;
      --text-soft: #3d3d4a;
      --shadow: 0 12px 30px rgba(180, 139, 122, 0.12); 
      --radius-sm: 24px;
    }  

    /* headings & icons */ 
    .section-head .title {
      font-size: 2rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #fff;
    } 
    .text-center {
      text-align: center;
    }
    .mx-auto {
      margin-left: auto;
      margin-right: auto;
    }

    /* primary button */
    .btn-primary {
        display: inline-block;
        background: #fff;
        color: #000;
        font-weight: 600;
        padding: 10px 25px;
        border-radius: 0px;
        text-decoration: none;
        transition: 0.25s ease;
        border: none;
        font-size: 1rem;
        border: 1px solid #000;
        margin-top: 10px;
    }
    .btn-primary:hover {
        background: #7a5f34;
        transform: translateY(-3px); 
        color: #fff;
        border: 1px solid #fff;
    }
    .btn-primary i {
      margin-left: 10px;
    }

    /* ----- NEW SECTION STYLES (theme aligned) ----- */

    /* 1. HERO */
    .hero-wrap {
      background: linear-gradient( 90deg, #9e7b49 0%, #c6a162 20%, #b6945d 38%, #aa8a59 50%, #c3a168 68%, #d8b272 82%, #b39054 100% );
      border-radius: var(--radius);
      padding: 65px 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      box-shadow: var(--shadow);
      gap: 22px;
    }
    .hero-content {
      flex: 1 1 58%;
      min-width: 280px;
    }
    .hero-content .section-head .title {
      font-size: 2.3rem;
    }
    .hero-content p {
      font-size: 15px;
      color: #fff; 
      margin: 10px 0 20px;
    }
    .hero-media {
      flex: 0 0 28%;
      min-width: 160px;
      text-align: center;
    }
    .hero-media img {
      max-width: 100%;
      border-radius: var(--radius-sm);
      box-shadow: 0 16px 36px rgba(0,0,0,0.04);
    }

    /* 2. WHO IS FOR (card bg) */
    .card-soft {
      background: var(--bg-card);
      border-radius: var(--radius);
      padding: 65px 0;
      margin: 0;
      box-shadow: var(--shadow);
    }
    .eligibility-grid {
        display: block;
        margin: 0;
        list-style: none;
        text-align: center;
        padding: 0;
    }
    .eligibility-grid li {
        background: var(--theme-color);
        padding: 5px 15px;
        border-radius: 60px;
        font-weight: 500;
        margin: 7px auto 8px;
        display: inline-block;
        color: #fff;
        border: 1px solid rgba(180,139,122,0.08);
        font-size: 15px;
    }
    .eligibility-grid li i {
      color: #fff;
      font-size: 1.1rem;
    }

    /* 3. MANAGEMENT TABS (warm background) */
    .management-wrap {
      background: linear-gradient( 90deg, #9e7b49 0%, #c6a162 20%, #b6945d 38%, #aa8a59 50%, #c3a168 68%, #d8b272 82%, #b39054 100% );
      border-radius: var(--radius);
      padding: 65px 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      align-items: stretch;
      gap: 32px;
      box-shadow: var(--shadow);
    }
    .management-tabs {
      flex: 2 1 60%;
    }
    .tab-nav {
      display: flex;
      gap: 10px;
      margin: 24px 0 20px;
      flex-wrap: wrap;
    }
    .tab-btn {
      background: rgba(255,255,255,0.5);
      border: none;
      padding: 12px 30px;
      border-radius: 60px;
      font-weight: 600;
      color: var(--text-soft);
      transition: 0.2s;
      font-size: 0.95rem;
      cursor: pointer;
      backdrop-filter: blur(2px);
    }
    .tab-btn.active {
      background: #ffffff;
      box-shadow: 0 6px 20px rgba(0,0,0,0.04);
      color: var(--text-dark);
    }
    .tab-pane {
      display: none;
      background: #fff;
      backdrop-filter: blur(4px);
      border-radius: var(--radius-sm);
      padding: 25px;
      margin-top: 6px;
    }
    .tab-pane.active {
      display: block;
    }
    .tab-pane ul {
        list-style: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 22px;
        padding-left: 0;
        margin-bottom: 0;
    }
    .tab-pane ul li {
        padding: 6px 0 6px 22px;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23b48b7a" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') left center no-repeat;
        background-size: 16px;
        font-weight: 450;
        color: #000;
        font-size: 15px;
        background-position: 0px 12px;
        line-height: 24px;
    }
    .management-media {
      flex: 1 1 22%;
      min-width: 140px;
      display: flex;
      align-items: center;
    }
    .management-media img {
      width: 100%;
      border-radius: var(--radius-sm);
      box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }

    /* 4. FACTORS */
    .factors-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 20px;
      margin: 30px 0 18px;
    }
    .factor-card {
        background: var(--theme-color);
        border-radius: var(--radius-sm);
        padding: 26px 16px;
        text-align: center;
        font-weight: 500;
        transition: 0.2s;
        border: 1px solid rgba(180,139,122,0.06);
        box-shadow: 0 6px 14px rgb(0 0 0 / 2%);
        color: #fff;
    }
    .factor-card i {
        font-size: 2.1rem;
        color: #fff;
        margin-bottom: 10px;
        display: block;
    }

    /* 5. SIDE EFFECTS (dark but warm) */
    .dark-accent {
      background: linear-gradient( 90deg, #9e7b49 0%, #c6a162 20%, #b6945d 38%, #aa8a59 50%, #c3a168 68%, #d8b272 82%, #b39054 100% );
      border-radius: var(--radius);
      padding: 65px 0;
      margin: 0;
      color: #f0ece7;
      box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    } 
    .dark-accent p {
        margin: 0 auto;
        font-size: 15px;
        line-height: 1.7;
        opacity: 0.92;
        color: #fff;
    } 
    /* 6. RESULTS */
    .results-wrap {
      background: var(--bg-soft);
      border-radius: var(--radius);
      padding: 65px 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 32px;
      box-shadow: var(--shadow);
    }
    .results-content {
      flex: 2 1 58%;
    }
    .results-content p {
        font-size: 15px;
        margin: 14px 0;
        color: #000;
    }
    .results-media {
      flex: 1 1 22%;
      min-width: 140px;
      text-align: center;
    }
    .results-media img {
          width: 100%;
          border-radius: var(--radius-sm);
          box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }

    .service-style5 .service-title a.text-inherit {
    font-weight: 600;
}

    /* responsive */
    @media (max-width: 768px) {
        .hero-wrap, .card-soft, .management-wrap, .dark-accent, .results-wrap {
            padding: 20px 8px; 
        }
        .section-head .title {
            font-size: 18px;
            letter-spacing: 1px;
        }
        .hero-content .section-head .title {
            font-size: 18px;
        }
        .tab-pane ul {
            grid-template-columns: 1fr;
            gap: 2px 15px;
        }
        .eligibility-grid {
            grid-template-columns: 1fr 1fr;
        }
        .hero-media, .management-media, .results-media {
            flex: 1 1 100%;
        }
        .eligibility-grid { 
            max-width: initial;
            margin: 0; 
            padding: 0;
        }
        .eligibility-grid li { 
            padding: 7px 22px;  
            margin: 6px auto 8px; 
        }
        .eligibility-grid li { 
            padding: 7px 22px;  
            margin: 6px auto 8px;
            display: block;  
        }
        .tab-pane { 
            padding: 10px 14px;
            margin-top: 2px;
        }
        .tab-nav { 
            margin: 15px 0 20px; 
        }
        .tab-content-wrap {
            margin-bottom: 25px;
        }
        #section-results .from-btn {
            margin-bottom: 20px;
        }
        #section-sideeffects .recovery-grid {
            display: block;
            gap: inherit;
            margin-top: 20px;
            justify-content: inherit;
            text-align: inherit;
            padding: 0;
        }
        #section-sideeffects .recovery-grid .recovery-card { 
            padding: 10px 8px;  
            text-align: left;
            font-size: 15px; 
            border-radius: 5px;
            width: 100%;
            margin-bottom: 10px;
        }
        .franchise-gold-bg .main-content { 
            padding-top: 20px;
        }
    }
    @media (max-width: 480px) {
      .eligibility-grid {
        grid-template-columns: 1fr;
      }
      .tab-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
      }
    }

    /* utilities */
    .mt-2 { margin-top: 16px; }
    .mb-2 { margin-bottom: 16px; }
    .gap-1 { gap: 8px; }