/* =========================================================
   CSS used by HistoryAbout.html
   Extracted from style.css (brand overrides on top of Bootstrap 5.3.3).
   Still required externally (loaded via <link> in the page):
     - Bootstrap 5.3.3 CSS  (grid, carousel, buttons, utilities)
     - Font Awesome 6.5.1
     - Google Fonts: Inter, Cairo
   ========================================================= */

/* ---------- THEME VARIABLES ---------- */
:root {
    --anmc-primary: #1D3565;
    --anmc-navy: #1F3163;
    --anmc-blue: #526FA8;
    --anmc-light: #F5F7FC;
    --anmc-accent: #9E2638;
    --anmc-red: #B3171E;
    --anmc-gold: #C7A65A;
    --anmc-text: #273858;
    --anmc-border: #C9CEE0;
    --anmc-whatsapp: #25D366;
    --anmc-grad-title: linear-gradient(90deg, #1D3565 0%, #2A3566 45%, #9E2638 100%);
    /* Bootstrap overrides */
    --bs-font-sans-serif: "Inter", "Cairo", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-color: var(--anmc-text);
    --bs-body-color-rgb: 39, 56, 88;
    --bs-heading-color: inherit;
    --bs-primary: var(--anmc-primary);
    --bs-primary-rgb: 29, 53, 101;
    --bs-link-color: var(--anmc-text);
    --bs-link-color-rgb: 39, 56, 88;
    --bs-link-hover-color: var(--anmc-accent);
    --bs-link-hover-color-rgb: 158, 38, 56;
    --bs-border-color: var(--anmc-border);
    --bs-focus-ring-color: rgba(199, 166, 90, .45);
}

body {
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

/* Container widths */
@media (min-width: 1400px) {


    .container.container-narrow {
        max-width: 1206px;
    }
}



.title-grad {
    width: fit-content;
    background: var(--anmc-grad-title);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- BUTTON: View All ---------- */
.btn-anmc-outline {
    --bs-btn-color: var(--anmc-primary);
    --bs-btn-bg: rgba(255, 255, 255, .6);
    --bs-btn-border-color: var(--anmc-primary);
    --bs-btn-border-width: 1.5px;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--anmc-primary);
    --bs-btn-hover-border-color: var(--anmc-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--anmc-primary);
    --bs-btn-active-border-color: var(--anmc-primary);
    --bs-btn-focus-shadow-rgb: 199, 166, 90;
    --bs-btn-padding-x: 24px;
    --bs-btn-padding-y: 0;
    --bs-btn-font-size: 13.5px;
    --bs-btn-font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 40px;
    min-width: 132px;
}

    .btn-anmc-outline i {
        font-size: 8px;
    }

/* ---------- HISTORY ---------- */
.history {
    padding: 44px 0 58px;
}

.history-title {
    font-size: 38px;
    margin-bottom: 20px;
}

.history-subtitle {
    font-size: 30px;
    letter-spacing: -.2px;
    margin-bottom: 30px;
}

.history-text {
    font-size: 17px;
    line-height: 27.6px;
    text-align: justify;
}

.history-media {
    width: 100%;
    max-width: 510px;
    aspect-ratio: 510 / 430;
}

/* ANMC mark filled with the hospital building */
.history-graphic {
    position: absolute;
    top: 0;
    right: 0;
    width: 89.6%;
    height: 100%;
}

@media (max-width: 991.98px) {
    .history {
        padding: 48px 0;
    }

    .history-title {
        font-size: 32px;
    }

    .history-subtitle {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .history-text {
        font-size: 16px;
        line-height: 26px;
    }

    .history-media {
        max-width: 460px;
    }
}

@media (max-width: 575.98px) {
    .history {
        padding: 36px 0 40px;
    }

    .history-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .history-subtitle {
        font-size: 21px;
    }

    .history-text {
        font-size: 15px;
        line-height: 25px;
        text-align: left;
    }

    .partner-card {
        padding: 3px !important;
    }
}


.section-title {
    width: fit-content;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -.3px;
    margin-bottom: 14px;
}

    .section-title b {
        font-weight: 700;
        color: var(--anmc-primary);
    }

.section-title--bold {
    font-weight: 700;
}

    .section-title--bold b {
        font-weight: 700;
    }

.section-sub {
    font-size: 17.5px;
    color: #1A2440;
}

@media (min-width: 768px) {
    .section-head .btn-anmc-outline {
        margin-bottom: 18px;
    }
}

@media (max-width: 991.98px) {
    .leadership {
        padding-top: 60px;
    }

    .accreditations {
        padding-top: 70px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-sub {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .section-head {
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 27px;
        margin-bottom: 8px;
    }

    .section-sub {
        font-size: 15px;
    }

    .section-head .btn-anmc-outline {
        height: 36px;
        min-width: 116px;
    }
}

.stats-bar {
    margin-top: 0px;
}

.history-section {
    padding-bottom: 60px;
}

.leadership-section {
    padding: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
}

/* ANMC mark + badge */
.history-visual {
    position: relative;
    width: 81%;
    max-width: 630px;
    margin-inline-start: auto;
    aspect-ratio: 630 / 390;
}

.history-visual__mark {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 89.7%;
    height: 100%;
}

.years-badge {
    position: absolute;
    inset-inline-start: 0;
    top: 57.4%;
    display: flex;
    align-items: center;
    gap: clamp(8px, .75vw, 14px);
    width: 58%;
    min-height: clamp(50px, 5.75vw, 80px);
    padding: 8px clamp(18px, 1.9vw, 34px);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(31, 49, 99, .06);
}

    .years-badge strong {
        font-size: clamp(38px, 3.17vw, 50px);
        font-weight: 700;
        line-height: 1;
        letter-spacing: -.02em;
    }

    /* The label used to carry a hardcoded <br>, so wrapping was switched off.
   It now comes from the CMS as one string, so it has to wrap on its own —
   `balance` splits it into even lines instead of leaving one orphan word. */
    .years-badge span {
        font-size: clamp(13px, 1.2vw, 20px);
        line-height: 1.2;
        color: var(--text);
        text-wrap: balance;
    }



.card-carousel .slider-dots .active, .card-carousel .slider-dots .active:hover {
    height: 28px !IMPORTANT;
}
