/* ========================================================
   SOFAT ADVANCED TREATMENT PAGES STYLESHEET
   Full-width modern animated clinical layout
   Clean typography - High legibility (No excessive bolding)
   ======================================================== */

:root {
    --tp-pink: #FF70A3;
    --tp-pink-hover: #e91e8c;
    --tp-navy: #20296E;
    --tp-navy-light: #2c368a;
    --tp-slate: #1e293b;
    --tp-text-body: #475569;
    --tp-text-dark: #20296E;
    --tp-border: #e2e8f0;
    --tp-bg-light: #F4F5FF;
    --tp-bg-card: #ffffff;
}

/* Compact Full-Width Page Header (Overrides custom.css giant padding & bg-section border-radius) */
.page-header,
div.page-header,
.page-header.bg-section,
div.page-header.bg-section {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 55px 0 48px !important;
    min-height: auto !important;
    background: url('../images/page-header-bg.jpg') no-repeat center center / cover !important;
    overflow: hidden !important;
}

.page-header::before,
.page-header.bg-section::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, rgba(32, 41, 110, 0.92) 0%, rgba(20, 26, 75, 0.96) 100%) !important;
    border-radius: 0 !important;
    z-index: 1 !important;
}

.page-header-box {
    max-width: 900px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.page-header-box .badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 14px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    border-radius: 20px !important;
    margin-bottom: 10px !important;
}

.page-header-box h1,
.page-header-box h1.text-anime-style-2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.4px !important;
    color: #ffffff !important;
    margin: 0 auto 8px !important;
    max-width: 860px !important;
}

.page-header-box p.lead {
    font-size: 14.5px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin: 0 auto 14px !important;
    line-height: 1.5 !important;
}

/* Custom Page Header Breadcrumb (Bulletproof - No Bootstrap divider dependency) */
.sofat-custom-breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto;
}

.sofat-custom-breadcrumb a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    transition: color 0.2s ease;
}

.sofat-custom-breadcrumb a:hover {
    color: var(--tp-pink) !important;
}

.sofat-custom-breadcrumb .bc-sep {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    user-select: none;
}

.sofat-custom-breadcrumb .active {
    color: #ffffff;
    font-weight: 500 !important;
}

/* Container Left/Right Breathing Room */
.treatment-page-main .container {
    padding-left: 30px !important;
    padding-right: 30px !important;
    max-width: 1240px;
}

@media (max-width: 768px) {
    .treatment-page-main .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

/* Responsive Video Frame */
.tp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(10, 16, 50, 0.12);
    border: 1px solid var(--tp-border);
    background: #000;
}

.tp-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Full Width Section Wrappers */
.tp-section {
    padding: 80px 0;
    position: relative;
}

.tp-section.bg-light-surface {
    background-color: var(--tp-bg-light);
}

.tp-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(233, 30, 140, 0.08);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: 20px;
    color: var(--tp-pink);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.tp-section-heading h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--tp-text-dark);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.tp-section-heading p.lead-text {
    font-size: 15.5px;
    font-weight: 400 !important;
    color: var(--tp-text-body);
    line-height: 1.75;
    max-width: 800px;
}

/* Normal Typography Overrides for Small Text */
.treatment-page-main p,
.treatment-page-main li,
.treatment-page-main span.text-muted,
.tp-card-desc,
.tp-step-desc {
    font-weight: 400 !important;
    color: var(--tp-text-body);
    line-height: 1.7;
}

/* 1. Biology of Conception Section */
.tp-biology-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--tp-border);
    padding: 35px;
    box-shadow: 0 8px 30px rgba(10, 16, 50, 0.04);
    height: 100%;
}

.tp-milestone-step {
    display: flex;
    gap: 18px;
    padding-bottom: 24px;
    position: relative;
}

.tp-milestone-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 42px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.tp-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tp-pink), #c2185b);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.25);
}

.tp-step-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tp-text-dark);
    margin-bottom: 5px;
}

.tp-step-content p {
    font-size: 14px;
    font-weight: 400 !important;
    color: var(--tp-text-body);
    line-height: 1.6;
    margin: 0;
}

/* 2. Causes Cards Grid */
.tp-cause-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--tp-border);
    padding: 30px 26px;
    transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tp-cause-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background .3s ease;
}

.tp-cause-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(233, 30, 140, 0.08);
    border-color: rgba(233, 30, 140, 0.3);
}

.tp-cause-card:hover::before {
    background: linear-gradient(90deg, var(--tp-pink), #7928ca);
}

.tp-cause-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(233, 30, 140, 0.1);
    color: var(--tp-pink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
    transition: all .3s ease;
}

.tp-cause-card:hover .tp-cause-icon {
    background: var(--tp-pink);
    color: #fff;
    transform: scale(1.05);
}

.tp-cause-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--tp-text-dark);
    margin-bottom: 10px;
}

.tp-cause-card p.cause-desc {
    font-size: 14px;
    font-weight: 400 !important;
    color: var(--tp-text-body);
    line-height: 1.65;
    margin-bottom: 16px;
}

.tp-cause-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tp-cause-tags li {
    font-size: 12.5px;
    font-weight: 400 !important;
    background: #f1f5f9;
    color: #334155 !important;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* 3. Diagnostic & Test Cards */
.tp-diag-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--tp-border);
    padding: 30px 24px;
    height: 100%;
    transition: all .3s ease;
}

.tp-diag-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
    border-color: #3b82f6;
}

.tp-diag-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tp-diag-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tp-text-dark);
    margin-bottom: 8px;
}

.tp-diag-card p {
    font-size: 14px;
    font-weight: 400 !important;
    color: var(--tp-text-body);
    line-height: 1.65;
    margin-bottom: 14px;
}

.tp-diag-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tp-diag-list li {
    font-size: 13.5px;
    font-weight: 400 !important;
    color: var(--tp-text-body);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-diag-list li i {
    color: #10b981;
    font-size: 12px;
}

/* Requisite Procedure Steps */
.tp-req-step {
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 14px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all .2s ease;
}

.tp-req-step:hover {
    border-color: var(--tp-pink);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.05);
}

.tp-req-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(233, 30, 140, 0.1);
    color: var(--tp-pink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.tp-req-text {
    font-size: 14px;
    font-weight: 400 !important;
    color: var(--tp-text-body);
    line-height: 1.65;
    margin: 0;
}

/* Image Showcase Containers */
.tp-media-frame {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--tp-border);
    background: #fff;
}

.tp-media-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}

.tp-media-frame:hover img {
    transform: scale(1.02);
}

/* Clinical Doctor Showcase */
.tp-doc-dark-card {
    background: #090e2b;
    border-radius: 20px;
    padding: 35px;
    color: #fff;
    box-shadow: 0 16px 45px rgba(9, 14, 43, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.tp-doc-dark-card img {
    max-height: 110px;
    object-fit: contain;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.tp-doc-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 4px;
}

/* Stats Counter Row */
.tp-stats-row {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--tp-border);
    padding: 35px 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.tp-stat-item {
    text-align: center;
    padding: 10px 15px;
}

.tp-stat-item h3 {
    font-size: 32px;
    font-weight: 800;
    color: #0b112c;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.tp-stat-item p {
    font-size: 13px;
    font-weight: 400 !important;
    color: var(--tp-text-body);
    margin: 0;
}

/* FAQ Accordion Styling */
.tp-faq-item {
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all .2s ease;
}

.tp-faq-item:hover {
    border-color: #cbd5e1;
}

.tp-faq-item .accordion-button {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--tp-text-dark);
    padding: 18px 22px;
    background: #fff;
    box-shadow: none;
}

.tp-faq-item .accordion-button:not(.collapsed) {
    background: rgba(233, 30, 140, 0.03);
    color: var(--tp-pink);
    border-bottom: 1px solid var(--tp-border);
}

.tp-faq-item .accordion-button::after {
    background-size: 14px;
}

.tp-faq-item .accordion-body {
    padding: 20px 24px;
    font-size: 14.5px;
    font-weight: 400 !important;
    color: var(--tp-text-body);
    line-height: 1.75;
}

/* Consultation Form Section */
.tp-cta-banner {
    background: linear-gradient(135deg, #090e2b 0%, #161e48 60%, #2b1136 100%);
    border-radius: 24px;
    padding: 55px 45px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(9, 14, 43, 0.2);
}

.tp-cta-banner h2 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.tp-cta-banner p {
    font-size: 15px;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 24px;
}

@media (max-width: 991px) {
    .tp-section { padding: 55px 0; }
    .tp-section-heading h2 { font-size: 26px; }
    .tp-cta-banner { padding: 35px 25px; }
    .tp-stat-item h3 { font-size: 26px; }
}
