/* Shared department intro: content left, doctor image right (matches nephrology) */
.dept-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start !important;
}

.dept-intro > [class*="col-lg-6"] {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Desktop: doctor image + CTA flush to the right side of the row */
@media (min-width: 992px) {
    .dept-intro > [class*="col-"]:has(.dept-doctor-panel),
    .dept-intro > [class*="col-"]:has(.nephro-doctor-panel) {
        padding-right: 0 !important;
        align-items: flex-end;
        margin-left: auto;
    }

    .dept-doctor-panel:not(.dept-doctor-panel--multi) {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: 0;
        align-items: flex-end;
    }

    .dept-doctor-panel:not(.dept-doctor-panel--multi) .canel-img-area {
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    .dept-doctor-panel:not(.dept-doctor-panel--multi) .dept-doctor-meta {
        margin-left: auto !important;
        margin-right: 0 !important;
        align-self: flex-end;
    }
}

.dept-intro .canel-content-area {
    padding: 0 24px 0 0 !important;
    margin: 0 !important;
    height: auto !important;
    align-content: flex-start;
    display: block !important;
    width: 100%;
}

.dept-intro .dept-copy {
    text-align: left;
    width: 100%;
}

.dept-intro .dept-copy .dep-box {
    margin: 0 0 1.25rem;
    line-height: 1.6;
    text-align: left;
    color: #4a4a4a;
}

.dept-intro .dept-copy .dep-box b {
    color: #A554A1;
    font-size: 1.05rem;
}

.dept-intro .dept-copy p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #4a4a4a;
    text-align: left;
}

.dept-intro .dept-copy .common-title,
.dept-intro .dept-copy .heading {
    text-align: left;
}

/* Desktop: headings left (override inline text-align:center) */
@media (min-width: 992px) {
    .teeth-canel .common-title,
    .teeth-canel .common-title .heading,
    .teeth-canel h2.heading,
    .teeth-canel h2,
    .teeth-canel h3,
    .teeth-canel h4,
    .teeth-canel .heading,
    .dept-intro .dept-copy .common-title,
    .dept-intro .dept-copy .heading,
    .dept-intro .dept-copy h2,
    .dept-intro .dept-copy h3 {
        text-align: left !important;
    }

    .teeth-canel .common-title .heading,
    .dept-intro .dept-copy .heading {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.dept-doctor-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: center;
    margin: 0;
    padding: 0;
}

.dept-doctor-panel .canel-img-area {
    position: relative;
    width: 100%;
    max-width: 420px !important;
    overflow: hidden;
    margin: 0 0 0 auto;
}

.dept-doctor-panel .canel-img-area img {
    width: 100% !important;
    max-width: 420px;
    height: auto !important;
    display: block;
    object-fit: cover;
    object-position: top center;
    border-radius: 0 !important;
}

.dept-doctor-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1rem;
    background: linear-gradient(to top, rgba(50, 20, 48, 0.92) 0%, rgba(165, 84, 161, 0.75) 70%, transparent 100%);
    color: #fff;
    opacity: 1;
    transform: translateY(0);
    pointer-events: none;
}

.dept-doctor-overlay .dep-box {
    margin: 0;
    line-height: 1.55;
    color: #fff;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    text-align: left;
}

.dept-doctor-overlay .dep-box b {
    color: #fff;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.35rem;
}

/* No hover effects — doctor details always visible */

.dept-doctor-meta {
    margin-top: 1.25rem;
    max-width: 420px;
    width: 100%;
    margin-left: auto;
    margin-right: 0;
    text-align: center;
    align-self: flex-end;
    display: flex;
    justify-content: center;
}

.dept-doctor-cta {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    margin: 0;
    text-align: center;
}

.dept-doctor-cta .main-btn {
    display: inline-block;
    min-width: 220px;
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Two doctors: centered pair, name/details on bottom of each image */
.dept-doctor-panel--multi {
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.dept-doctor-panel--multi .dept-doctor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
}

.dept-doctor-panel--multi .canel-img-area {
    flex: 1 1 200px;
    max-width: 280px !important;
    margin: 0;
    width: 100%;
}

.dept-doctor-panel--multi .canel-img-area img {
    max-width: 100%;
    width: 100% !important;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: top center;
}

.dept-doctor-panel--multi .dept-doctor-overlay {
    opacity: 1;
    transform: none;
    text-align: left;
}

.dept-doctor-panel--multi .dept-doctor-meta {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.25rem;
    align-self: center;
}

@media (hover: none) {
    .dept-doctor-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet & mobile — stack cleanly; keep desktop alignment untouched */
@media (max-width: 991.98px) {
    .teeth-canel.padding-100 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .teeth-canel .container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Breadcrumb hero title + trail centered on mobile */
    .breadcrumb-area {
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: center;
    }

    .breadcrumb-area .row {
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
    }

    .breadcrumb-area .breadcrumb-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100%;
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }

    .breadcrumb-area .page-title,
    .breadcrumb-area .page-title .heading-1,
    .breadcrumb-area .heading-1 {
        text-align: center !important;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .breadcrumb-area .page-list {
        text-align: center !important;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    /* Center only headings/buttons — never body copy or lists */
    .teeth-canel h2.heading,
    .teeth-canel h2,
    .teeth-canel h3,
    .teeth-canel h4,
    .teeth-canel .heading,
    .faq-section h2,
    .faq-section h3,
    .faq-section .heading,
    .appointment-section h2,
    .appointment-section h3,
    .appointment-section .heading {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .teeth-canel .heading,
    .teeth-canel h2.heading {
        display: table;
    }

    .teeth-canel .common-title,
    .teeth-canel p,
    .teeth-canel ul,
    .teeth-canel li,
    .teeth-canel .check-box-area,
    .teeth-canel .check-box,
    .teeth-canel .check-box li,
    .teeth-canel .dep-box,
    .dept-intro .dept-copy,
    .dept-intro .dept-copy p,
    .dept-intro .dept-copy .dep-box,
    .dept-intro .dept-copy .check-box-area,
    .dept-intro .dept-copy .check-box,
    .dept-intro .dept-copy .check-box li {
        text-align: left !important;
    }

    .teeth-canel .main-btn-wrap,
    .faq-section .main-btn-wrap,
    .appointment-section .main-btn-wrap,
    .dept-doctor-cta,
    .dept-doctor-meta {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100%;
    }

    .teeth-canel .main-btn,
    .faq-section .main-btn,
    .appointment-section .main-btn,
    .dept-doctor-cta .main-btn {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .dept-intro {
        align-items: stretch !important;
    }

    .dept-intro > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .dept-intro .canel-content-area {
        padding: 0 !important;
        margin: 0 0 1rem !important;
        height: auto !important;
        min-height: 0 !important;
    }

    /* Extra content rows under intro: no large empty gap */
    .teeth-canel .canel-content-area {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 1rem !important;
        padding: 0 !important;
        align-content: flex-start !important;
        display: block !important;
    }

    .teeth-canel .row + .row {
        margin-top: 0.5rem !important;
    }

    .dept-intro .dept-copy .common-title {
        padding-bottom: 1rem !important;
        text-align: left !important;
    }

    .dept-intro .dept-copy .heading,
    .dept-intro .dept-copy h2,
    .dept-intro .dept-copy h3,
    .dept-intro .dept-copy h4 {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .dept-intro .dept-copy .heading {
        display: table;
        font-size: 1.5rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .dept-intro .dept-copy .dep-box {
        font-size: 0.95rem;
        text-align: left !important;
    }

    .dept-intro .dept-copy .dep-box b {
        font-size: 1rem;
    }

    .dept-intro .dept-copy p {
        text-align: left !important;
    }

    .dept-doctor-panel {
        align-items: center;
        margin: 0 auto 1rem;
        width: 100%;
    }

    .dept-doctor-panel .canel-img-area,
    .teeth-canel .canel-img-area {
        max-width: 100% !important;
        width: 100%;
        margin: 0 auto 1rem;
        right: auto !important;
        top: auto !important;
        left: auto !important;
        float: none !important;
        position: relative !important;
    }

    .dept-doctor-panel .canel-img-area img,
    .teeth-canel .canel-img-area img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .dept-doctor-panel--multi .dept-doctor-grid {
        gap: 1rem;
    }

    .dept-doctor-panel--multi .canel-img-area {
        flex: 1 1 100%;
        max-width: 360px !important;
    }

    .dept-doctor-panel--multi .canel-img-area img {
        min-height: 0;
        border-radius: 12px !important;
    }

    .dept-doctor-overlay {
        padding: 1rem 0.85rem;
    }

    .dept-doctor-overlay .dep-box {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .dept-doctor-overlay .dep-box b {
        font-size: 0.95rem;
    }

    .dept-doctor-meta {
        max-width: 100%;
        margin: 1rem auto 0;
        width: 100%;
    }

    .dept-doctor-cta {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .dept-doctor-cta .main-btn {
        min-width: 0;
        width: 100%;
        max-width: 280px;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .teeth-canel.padding-100 {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    .dept-intro .dept-copy .heading {
        font-size: 1.35rem;
    }

    .dept-intro .dept-copy p,
    .dept-intro .dept-copy .dep-box {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .dept-doctor-overlay {
        padding: 0.85rem 0.75rem;
    }

    .dept-doctor-overlay .dep-box,
    .dept-doctor-overlay .dep-box b {
        font-size: 0.88rem;
    }

    .dept-doctor-cta .main-btn {
        max-width: 100%;
    }
}
