/* =====================================================================
   "Đội ngũ bác sĩ" page (nhakhoasc.com/doi-ngu-bac-si/) - visual polish.

   The site owner wants the overall page kept as-is (clip-path ribbon
   <h2> per doctor, plain <blockquote>, default Swiper cert carousel,
   <hr> between doctors, same order/sections throughout) - most rules
   below target that markup through STRUCTURAL selectors (hr, blockquote,
   h2/h3, ul li...) with NO class changes needed in content/doi-ngu-bac-
   si.html, scoped under #primary .large-9.col (page.php's content
   column - sidebar widgets live in the sibling .post-sidebar.large-3.col
   and are never touched).

   The one exception is the photo + "THÔNG TIN VỀ BÁC SĨ" block, which
   WAS a <table> (image td | blue-box td). Forcing the image to
   height:100%/object-fit:cover so its edge matched the taller text
   column cropped some doctors' photos badly - so that one block was
   converted to a small hand-written .dr-card/.dr-card__photo/
   .dr-card__info flex structure (content/doi-ngu-bac-si.html) instead:
   the photo card stretches to match the info card's height like the
   table did, but the <img> inside it is centered and never cropped -
   see .dr-card__photo below.

   Inline `style="..."` attributes elsewhere in the markup (ribbon h2,
   role subtitle, blockquote border) still win the cascade for any
   property they already set - this file only adds properties they
   leave untouched (box-shadow, border-radius, letter-spacing, list
   bullets, pseudo-elements...), so no !important is needed outside the
   one documented mobile exception below. Enqueued only when is_page(
   'doi-ngu-bac-si') - see functions.php - so it can't leak elsewhere.
   ===================================================================== */

#primary .large-9.col {
    --dr-blue: #0436b4;
}

/* ---- Photo + "THÔNG TIN VỀ BÁC SĨ" card (content/doi-ngu-bac-si.html's
   .dr-card/.dr-card__photo/.dr-card__info) ----
   .dr-card is a flex row: by default flex stretches both children to
   the taller one's height, so .dr-card__photo (the "column") always
   ends level with .dr-card__info - no more mismatched bottom edges.
   Inside that stretched column, the <img> is centered rather than
   forced to fill/crop it: it keeps its own aspect ratio and never
   crops the doctor's face/shoulders, with the card's own light-blue
   backdrop filling any leftover space above/below it. */
#primary .large-9.col .dr-card {
    display: flex;
    margin: 20px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 35, 95, .12);
}

#primary .large-9.col .dr-card__photo {
    flex: 0 0 38%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #eaf3ff;
}

#primary .large-9.col .dr-card__photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(4, 54, 180, .2);
}

#primary .large-9.col .dr-card__info {
    flex: 1;
    min-width: 0;
    background: var(--dr-blue);
    color: #fff;
    padding: 24px 28px;
    line-height: 1.75;
}

#primary .large-9.col .dr-card__info p {
    color: #fff;
    line-height: 1.75;
    margin: 0 0 14px;
}

.dr-card__info em {
    color: #fff !important;
}

#primary .large-9.col .dr-card__label {
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 0;
}

/* Checklist under "CHUYÊN MÔN NỔI BẬT" - white tick bullets on the blue
   background instead of the browser's default white disc. */
#primary .large-9.col .dr-card__info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

#primary .large-9.col .dr-card__info ul li {
    position: relative;
    padding-left: 26px;
}

#primary .large-9.col .dr-card__info ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Ribbon <h2> per doctor (keeps its own inline background/color/
   clip-path - only add what those don't already cover). ---- */
#primary .large-9.col h2 {
    font-size: 22px;
    letter-spacing: .3px;
    box-shadow: 0 8px 18px rgba(4, 54, 180, .25);
}

/* ---- Certificate carousel: frame each raw <img> like a card instead of
   a bare photo, no wrapper markup needed. ---- */
#primary .large-9.col .doctor-certs-swiper {
    --swiper-navigation-size: 15px;
    --swiper-navigation-color: #fff;
    --swiper-navigation-sides-offset: 4px;
    padding: 4px 38px;
}

#primary .large-9.col .doctor-certs-swiper .swiper-slide {
    height: auto;
}

#primary .large-9.col .doctor-certs-swiper .swiper-slide img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    box-sizing: border-box;
    box-shadow: 0 8px 18px rgba(15, 35, 95, .12);
    cursor: zoom-in;
}

#primary .large-9.col .doctor-certs-swiper .swiper-button-prev,
#primary .large-9.col .doctor-certs-swiper .swiper-button-next {
    width: 34px;
    height: 34px;
    background: var(--dr-blue);
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(4, 54, 180, .35);
}

#primary .large-9.col .doctor-certs-swiper .swiper-button-prev:hover,
#primary .large-9.col .doctor-certs-swiper .swiper-button-next:hover {
    background: #062c78;
}

#primary .large-9.col .doctor-certs-swiper .swiper-button-disabled {
    opacity: .3 !important;
}

/* ---- Cert click-to-enlarge lightbox (assets/js/doctor-certs-
   carousel.js builds this once and appends it straight to <body>, so -
   unlike everything else in this file - it is NOT scoped under
   "#primary .large-9.col"; its own "dr-cert-lightbox" prefix is unique
   enough given this stylesheet only loads on this one page anyway. ---- */
.dr-cert-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(10, 20, 40, .85);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s;
}

.dr-cert-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.dr-cert-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.dr-cert-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
}

.dr-cert-lightbox__close:hover {
    background: rgba(255, 255, 255, .3);
}

body.dr-cert-lightbox-open {
    overflow: hidden;
}

@media only screen and (max-width: 575px) {
    .dr-cert-lightbox {
        padding: 20px;
    }

    .dr-cert-lightbox__close {
        top: 10px;
        right: 10px;
    }
}

/* ---- Pull-quote ---- */
#primary .large-9.col blockquote {
    position: relative;
    background: #f5f8fd;
    border-radius: 0 12px 12px 0;
    padding: 20px 28px 20px 30px;
    margin: 24px 0;
    overflow: hidden;
}

#primary .large-9.col blockquote::before {
    content: "\201C";
    position: absolute;
    top: -18px;
    left: 10px;
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
    color: rgba(4, 54, 180, .1);
    pointer-events: none;
}

#primary .large-9.col blockquote p {
    position: relative;
    margin: 0;
    font-size: 17px;
}

/* ---- h3 section headers ("Quan niệm hành nghề", "Lĩnh vực chuyên môn",
   "Triết lý điều trị", the "▶ Đặt lịch..." CTA headers) ---- */
#primary .large-9.col h3 {
    font-size: 19px;
    line-height: 1.35;
    margin: 32px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--dr-blue);
}

/* ---- hr separators between doctors ---- */
#primary .large-9.col hr {
    border: 0;
    height: 1px;
    margin: 48px 0;
    background: linear-gradient(90deg, transparent, #dce6f7 20%, #dce6f7 80%, transparent);
}

/* ---- Body lists (outside the blue info box): blue-dot bullets instead
   of the browser default disc, arrow bullets for the nested sub-lists
   (doctor 1's training breakdown). td ul (checklist above) is more
   specific and keeps its own white-tick style regardless of order. ---- */
#primary .large-9.col ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 10px;
}

#primary .large-9.col ul li {
    position: relative;
    padding-left: 22px;
    line-height: 1.7;
}

#primary .large-9.col ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dr-blue);
}

#primary .large-9.col ul ul {
    margin: 10px 0 0;
    gap: 8px;
}

#primary .large-9.col ul ul li {
    padding-left: 20px;
    font-size: 14.5px;
    color: #4a5568;
}

#primary .large-9.col ul ul li::before {
    content: "\2192";
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--dr-blue);
    font-weight: 700;
    font-size: 13px;
}

/* ---- Final "ĐĂNG KÝ THĂM KHÁM MIỄN PHÍ" button ---- */
#primary .large-9.col p > a[href="/lien-he/"] {
    box-shadow: 0 10px 22px rgba(4, 54, 180, .3);
    transition: transform .15s, box-shadow .15s;
}

#primary .large-9.col p > a[href="/lien-he/"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(4, 54, 180, .38);
}

/* =====================================================================
   Responsive - the photo/info card keeps its side-by-side layout down to
   tablet width (matches the existing "bố cục"); only stacks on real
   phones, same breakpoint style-modern.css already uses elsewhere on
   this site.
   ===================================================================== */
@media only screen and (max-width: 575px) {
    #primary .large-9.col .dr-card {
        flex-direction: column;
    }

    #primary .large-9.col .dr-card__photo {
        padding: 20px 20px 0;
    }

    #primary .large-9.col .dr-card__photo img {
        max-width: 220px;
    }

    #primary .large-9.col h2 {
        font-size: 18px;
    }

    #primary .large-9.col .doctor-certs-swiper {
        padding: 4px 34px;
    }
}
