/* ======================================================================
   TREATMENTS.CSS — Loaded on treatment/about pages
   Contains: Treatment Cards, Specialized Page Blocks, Detail Layouts
   ====================================================================== */

/* ----------------------------------------------------------------------
   4. Treatment Cards
   ---------------------------------------------------------------------- */
.treatments-grid,
.treatments-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.treatment-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.treatment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.icon-bubble {
    display: inline-flex;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background-color: rgba(12, 90, 90, 0.05);
    font-size: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.treatment-card:hover .icon-bubble {
    background-color: var(--color-primary);
    transform: rotate(10deg);
}

.treatment-card .card-title {
    margin-bottom: 12px;
}

.treatment-card .card-desc {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    flex: 1;
}

.card-link-action {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link-action .arrow-symbol {
    transition: transform 0.2s;
}

.treatment-card:hover .card-link-action {
    color: var(--color-accent-dark);
}

.treatment-card:hover .arrow-symbol {
    transform: translateX(4px);
}

/* ----------------------------------------------------------------------
   7. Specialized Pages Blocks (Patan/Bhavnagar, Blog list grids)
   ---------------------------------------------------------------------- */
.page-banner-section {
    padding: 80px 0;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    position: relative;
}

.page-banner-title {
    color: var(--color-text-light);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
}

.page-banner-desc {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Branch consulting grids */
.location-branches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

.branch-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.branch-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.branch-detail {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.branch-hours {
    font-size: 16px;
}

.branch-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 15px;
    font-weight: 700;
}

/* Gallery layout style sheets */
.gallery-filter-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.gallery-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.gallery-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(12, 90, 90, 0.85) 0%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item-card:hover .gallery-overlay-meta {
    opacity: 1;
}

.gallery-overlay-meta h3 {
    color: white;
    font-size: 16px;
    margin: 0;
}

/* Blog list grids layout */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card-thumbnail {
    height: 200px;
    overflow: hidden;
}

.blog-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumbnail {
    background: rgba(12, 90, 90, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-primary-light);
}

.blog-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-card-excerpt {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-link {
    font-weight: 700;
    font-size: 15px;
}

/* Podcasts columns */
.podcast-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

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

.video-info {
    padding: 25px;
}

.video-duration {
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.video-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.video-info p {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
}

/* ======================================================================
   NEW ORTHOPAEDIC CATALOG STYLING ENHANCEMENTS
   ====================================================================== */

/* 1. Milestone Stats Banner */
.stats-banner-section {
    margin-top: 30px;
    position: relative;
    z-index: 10;
    padding-bottom: 20px;
}

.stats-banner-wrapper {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px 20px;
    flex-wrap: wrap;
    gap: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stats-banner-wrapper:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-accent-dark);
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item-divider {
    width: 1px;
    height: 45px;
    background-color: var(--color-border);
}

@media (max-width: 992px) {
    .stat-item-divider {
        display: none;
    }
    .stats-banner-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 25px 15px;
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .stats-banner-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 2. Pain Area Filter Toolbar */
.filter-toolbar-section {
    padding: 30px 0 10px;
}

.joint-filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.joint-filter-btn {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-primary-light);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.joint-filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
    background-color: rgba(229, 194, 124, 0.05);
    transform: translateY(-1px);
}

.joint-filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

/* 3. Re-designed Treatment Cards Grid & Cards */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 35px;
}

.treatment-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.treatment-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.card-thumbnail-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.treatment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.treatment-card:hover .treatment-img {
    transform: scale(1.06);
}


.treatment-icon-bubble {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.treatment-card:hover .treatment-icon-bubble {
    background-color: var(--color-primary);
    transform: rotate(8deg) scale(1.05);
}

.treatment-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 4. Robotic Spotlight & Comparison */
.robotic-spotlight-section {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.comparison-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.comparison-card:hover {
    box-shadow: var(--shadow-lg);
}

.comparison-table {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 15px 10px;
    font-size: 14.5px;
    line-height: 1.5;
    align-items: center;
}

.comp-row-label {
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    font-weight: 700;
    color: var(--color-primary);
}

.comp-row-val {
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    text-align: center;
}

.comp-row-val.traditional {
    color: var(--color-text-muted);
}

.comp-row-val.robotic {
    color: var(--color-success);
    font-weight: 700;
}

@media (max-width: 768px) {
    .comparison-table {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .comp-row-label, .comp-row-val {
        border: none;
        padding-top: 0;
        text-align: left;
    }
    .comp-row-label {
        font-weight: 800;
        margin-top: 15px;
        border-top: 1px solid var(--color-border);
        padding-top: 10px;
    }
    .comp-row-val.traditional::before {
        content: 'Traditional: ';
        font-weight: 600;
        color: var(--color-text-muted);
    }
    .comp-row-val.robotic::before {
        content: 'Robotic: ';
        font-weight: 600;
        color: var(--color-accent-dark);
    }
}

/* 5. Patient Recovery Testimonials */
.recovery-testimonials-section {
    background-color: var(--color-bg);
}

.recovery-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.recovery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-light);
}

.recovery-quote {
    font-size: 14.5px;
    line-height: 1.7;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 25px;
    flex: 1;
}

.recovery-meta {
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 6. Lead Surgeon Section */
.surgeon-intro-section {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
}

/* 7. Recovery Timeline & FAQ Accordions & PMJAY Card */
.detail-timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--color-border);
    margin-top: 20px;
}

.detail-timeline-item {
    display: flex;
    gap: 20px;
    position: relative;
}

.timeline-badge-col {
    min-width: 95px;
}

.timeline-step-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
    width: 100%;
}

.timeline-step-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.timeline-step-desc {
    font-size: 14.5px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* FAQ Accordion */
.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-accordion-item {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.faq-accordion-item:hover {
    border-color: var(--color-accent-light);
}

.faq-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.faq-accordion-header:hover {
    color: var(--color-accent-dark);
}

.faq-icon-arrow {
    font-size: 15px;
    color: var(--color-accent-dark);
    transition: transform 0.3s ease;
}

.faq-accordion-panel {
    background-color: rgba(12, 90, 90, 0.01);
}

.faq-accordion-body {
    padding: 0 25px 20px;
    font-size: 14.5px;
    color: var(--color-text-muted);
    line-height: 1.6;
}



