/* =================================================================== */
/* --- DEDICATED Styles for Treatments Page (V11 - Premium Redesign) --- */
/* =================================================================== */

/* --- 1. TREATMENT LIST PAGE STYLES (V12 - GRID REDESIGN) --- */
.treatments-page-header {
    padding: 5rem 1rem;
    text-align: center;
    background-color: #f8f9fa;
}

.treatments-page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.treatments-page-header p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

.treatments-list-container {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.treatment-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.treatment-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 96, 171, 0.15);
}

.treatment-card-image {
    height: 220px;
}

.treatment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.treatment-card-content {
    padding: 1.5rem 2rem 2rem;
}

.treatment-card-content h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
}

.treatment-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.treatment-card-content .learn-more {
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}



/* --- 2. TREATMENT DETAIL PAGE STYLES (COMPLETE REDESIGN) --- */
/* This section contains all the new, standardized styles. */
/* ------------------------------------------------------------------- */

/* --- Hero, Main Title & Body --- */
.detail-hero-card {
    position: relative;
    height: 70vh;
    min-height: 400px;
    max-height: 550px;
    object-fit: cover;
    object-position: center center;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.detail-hero-card img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    
}

.detail-main-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.treatment-detail-body {
    padding-bottom: 4rem;
}

/* --- Detail Page Layout & Sticky Nav --- */
.treatment-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .treatment-detail-layout {
        grid-template-columns: 2.5fr 1fr; /* Main content is wider */
    }
}

.treatment-detail-sidebar {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 120px; /* Adjust based on header height */
    height: fit-content;
}

.quick-nav-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #eaf0f6;
}

.quick-nav-card h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.quick-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-nav-list li a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid #e0e0e0;
    transition: color 0.2s ease;
}

.quick-nav-list li:last-child a {
    border-bottom: none;
}

.quick-nav-list li a:hover,
.quick-nav-list li a.active {
    color: var(--color-primary);
}

@media (max-width: 1023px) {
    .treatment-detail-sidebar {
        display: none; /* Hide sidebar on mobile */
    }
}


/* --- Standardized Section & Title Styles --- */
.detail-section {
    margin-bottom: 4rem;
}

.detail-section-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.detail-section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--color-text-light);
    font-weight: 400;
    max-width: 700px;
    margin: -1rem auto 2rem auto;
    line-height: 1.8;
}

/* --- Intro Section --- */
.intro-section .text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* --- High-Risk / Symptoms Section (NEW DESIGN) --- */
.risk-factors-section {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 16px;
}

.risk-factors-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.risk-factors-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--color-text);
}

.risk-factors-list .icon {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- Services / Types Section (REPLACES BLUE BOX) --- */
.services-offered-section {
    background-color: #ffffff;
    border: 1px solid #eaf0f6;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.services-offered-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.services-offered-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.services-offered-list .icon {
    color: #25D366;
    /* Green checkmark */
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- Types We Treat Cards --- */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.type-card {
    background: #fff;
    border: 1px solid #eaf0f6;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.type-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.type-card p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Patient Experiences / Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-quote-block {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eaf0f6;
    border-left: 5px solid var(--color-primary);
}

.testimonial-quote-block p {
    font-style: italic;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #555;
}

.testimonial-quote-block footer {
    text-align: right;
    font-weight: 700;
    color: var(--color-text-light);
}

/* --- Generic Checklist (for Reasons, Symptoms, etc.) --- */
.reasons-section,
.symptoms-section {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 16px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--color-text);
}

.checklist .icon {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- Services Grid (replaces types grid) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    border: 1px solid #eaf0f6;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.service-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.service-card p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- USP Grid (Unique Selling Points) --- */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.usp-card {
    text-align: center;
    padding: 2rem;
}

.usp-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.usp-card p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Cost Section --- */
.cost-section {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.cost-section .text-content {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- Comparison Table --- */
.comparison-table-section .table-wrapper {
    overflow-x: auto;
    border: 1px solid #eaf0f6;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.comparison-table-section table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table-section th,
.comparison-table-section td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #eaf0f6;
}

.comparison-table-section thead th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.comparison-table-section tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table-section td:nth-child(1) {
    font-weight: 600;
}

/* --- Procedure Steps --- */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    counter-reset: steps-counter;
}

.step-card {
    position: relative;
    padding: 2rem 2rem 2rem 4.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.step-card::before {
    counter-increment: steps-counter;
    content: counter(steps-counter);
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-card .step-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.step-card .step-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Standardized CTA Button --- */

.block-cta {
    margin-top: 2.5rem;
    text-align: center;
}

.btn-primary.btn-book-appointment {
    background-color: var(--color-primary);
    color: white;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary.btn-book-appointment:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* --- Parallax CTA & Back Link --- */
.parallax-cta {
    padding: 6rem 1rem;
    background-image: url('https://images.pexels.com/photos/305821/pexels-photo-305821.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    text-align: center;
    color: white;
}

.parallax-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 96, 171, 0.8);
}

.parallax-cta-content {
    position: relative;
    z-index: 2;
}

.parallax-cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.parallax-cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.back-link-container {
    padding: 3rem 0;
    text-align: center;
}

.btn-secondary {
    background: #eaf0f6;
    color: var(--color-primary);
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
}

/* --- Responsive Grid Adjustments --- */
@media (min-width: 768px) {

    .risk-factors-list,
    .services-offered-list,
    .checklist {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-grid,
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
}
