/* ==========================================================================
   Mukti Drug Helpline — public website theme
   Visual style: logo indigo + warm orange, soft white cards, round icon
   badges, wave dividers. Built on Bootstrap 5.3 + Font Awesome 7.
   Font: Poppins (Hind Siliguri for Bangla).

   1.  Design tokens & Bootstrap overrides
   2.  Base
   3.  Buttons & links
   4.  Top bar
   5.  Header & navigation
   6.  Mobile menu
   7.  Sections, headings & kickers
   8.  Wave dividers
   9.  Hero
   10. Stat badges & icon circles
   11. Service cards & carousel
   12. Story (about) block
   13. How it works
   14. Substance cards
   15. Doctor cards
   16. CTA banner
   17. Founder quote
   18. Videos
   19. FAQ accordion
   20. Photo gallery & lightbox
   21. Article cards & filters
   22. Partner logos
   23. Forms
   24. Inner page hero
   25. Content pages (rich text, sidebar, share)
   26. Contact, downloads, search, sitemap, 404
   27. Pagination
   28. Footer
   29. Floating actions & mobile action bar
   30. Scroll reveal
   31. Responsive adjustments
   ========================================================================== */


/* 1. Design tokens & Bootstrap overrides
   ========================================================================== */
:root {
    --brand-primary: #434280;
    --brand-primary-dark: #2f2e66;
    --brand-primary-soft: #e4e4f2;
    --brand-primary-tint: #f1f1f9;
    --brand-orange: #ff981f;
    --brand-orange-dark: #f08300;
    --brand-heading: #282826;
    --brand-text: #555555;
    --brand-muted: #8a8a88;
    --brand-tint: #f6f6fc;
    --brand-line: #e9ecf2;
    --brand-white: #ffffff;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-pill: 999px;
    --shadow-card: 0 10px 40px rgba(31, 52, 82, .06);
    --shadow-hover: 0 18px 50px rgba(31, 52, 82, .12);
    --ease-smooth: cubic-bezier(.22, .8, .24, 1);

    /* Bootstrap variables */
    --bs-body-font-family: 'Poppins', 'Hind Siliguri', system-ui, sans-serif;
    --bs-body-color: var(--brand-text);
    --bs-body-bg: var(--brand-white);
    --bs-link-color: var(--brand-primary);
    --bs-link-color-rgb: 67, 66, 128;
    --bs-link-hover-color: var(--brand-orange);
    --bs-link-hover-color-rgb: 255, 152, 31;
    --bs-border-color: var(--brand-line);
    --bs-emphasis-color: var(--brand-heading);
}


/* 2. Base
   ========================================================================== */
.site-body {
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

[lang="bn"] {
    font-family: 'Hind Siliguri', 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5 {
    color: var(--brand-heading);
    font-weight: 600;
    line-height: 1.25;
}

a {
    text-decoration: none;
    transition: color .2s;
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px solid var(--brand-orange);
    outline-offset: 3px;
}

.container {
    max-width: 1210px;
}

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

.skip-to-content {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    padding: .6rem 1rem;
    border-radius: 8px;
    background: var(--brand-primary);
    color: var(--brand-white);
}


/* 3. Buttons & links
   ========================================================================== */
.btn-accent,
.btn-brand,
.btn-brand-outline,
.btn-white {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .8rem 1.6rem;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease-smooth);
}

.btn-accent:hover,
.btn-brand:hover,
.btn-brand-outline:hover,
.btn-white:hover {
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--brand-orange);
    color: var(--brand-white);
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--brand-primary);
    color: var(--brand-white);
}

.btn-brand {
    background: var(--brand-primary);
    color: var(--brand-white);
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-orange);
    color: var(--brand-white);
}

.btn-brand-outline {
    border-color: var(--brand-primary);
    background: transparent;
    color: var(--brand-primary);
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
    background: var(--brand-primary);
    color: var(--brand-white);
}

.btn-white {
    background: var(--brand-white);
    color: var(--brand-primary);
}

.btn-white:hover {
    background: var(--brand-orange);
    color: var(--brand-white);
}

.btn-compact {
    padding: .55rem 1.1rem;
    font-size: .8rem;
}

.arrow-link,
.explore-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
    color: var(--brand-primary);
}

.explore-link {
    color: var(--brand-text);
}

.arrow-link i,
.explore-link i {
    transition: transform .25s var(--ease-smooth);
}

.arrow-link:hover i,
.explore-link:hover i {
    transform: translateX(4px);
}


/* 4. Top bar
   ========================================================================== */
.site-topbar {
    background: var(--brand-primary);
    color: var(--brand-white);
    font-size: .85rem;
}

.site-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 36px;
}

.site-topbar-contacts {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.site-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--brand-white);
}

.site-topbar-link:hover {
    color: var(--brand-orange);
}

.site-topbar-separator {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, .6);
}


/* 5. Header & navigation
   ========================================================================== */
.site-header {
    background: var(--brand-white);
    transition: box-shadow .3s;
}

.site-header.is-scrolled {
    box-shadow: 0 6px 24px rgba(31, 52, 82, .08);
}

.site-navbar {
    min-height: 80px;
    padding: 0;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
    margin-right: 1.25rem;
    white-space: nowrap;
}

.site-brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--brand-primary);
}

.site-menu {
    gap: 0;
}

.site-menu-link {
    padding: .5rem .6rem !important;
    font-size: .95rem;
    font-weight: 500;
    color: var(--brand-heading);
    white-space: nowrap;
}

.site-menu-link:hover,
.site-menu-link:focus,
.site-menu-link.active,
.site-menu-link.show {
    color: var(--brand-primary) !important;
}

.site-menu-link.dropdown-toggle::after {
    margin-left: .4rem;
    vertical-align: .15em;
}

.menu-panel {
    min-width: 280px;
    margin-top: .5rem !important;
    padding: .6rem;
    border: 0;
    border-top: 3px solid var(--brand-primary);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-hover);
}

.menu-panel--two-columns {
    min-width: 560px;
}

.menu-panel--two-columns.show {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Desktop: open dropdowns on hover (click / keyboard still work via Bootstrap) */
@media (min-width: 1200px) and (hover: hover) {
    .site-menu .dropdown {
        position: relative;
    }

    /* invisible bridge so the menu stays open while the mouse moves down to it */
    .site-menu .dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: .9rem;
    }

    .site-menu .dropdown:hover > .menu-panel,
    .site-menu .dropdown:focus-within > .menu-panel {
        display: block;
        top: 100%;
        left: 0;
        margin-top: .5rem !important;
    }

    .site-menu .dropdown:hover > .menu-panel--two-columns,
    .site-menu .dropdown:focus-within > .menu-panel--two-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .site-menu .dropdown:hover > .site-menu-link {
        color: var(--brand-primary) !important;
    }

    .site-menu .dropdown:hover > .site-menu-link::after {
        transform: rotate(180deg);
    }

    .site-menu-link.dropdown-toggle::after {
        transition: transform .2s;
    }
}

.menu-panel-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .75rem;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 500;
    white-space: normal;
    color: var(--brand-heading);
}

.menu-panel-link:hover,
.menu-panel-link:focus {
    background: var(--brand-primary-tint);
    color: var(--brand-primary);
}

.menu-panel-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: .85rem;
}

.site-header-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: .6rem;
}

.site-header-actions .btn-accent {
    padding: .7rem 1.2rem;
    font-size: .82rem;
}

.site-menu-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--brand-line);
    border-radius: 50%;
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.site-menu-toggle:focus {
    box-shadow: none;
}


/* 6. Mobile menu
   ========================================================================== */
.mobile-menu-header {
    border-bottom: 1px solid var(--brand-line);
}

.mobile-menu-link {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid var(--brand-line);
    font-weight: 500;
    color: var(--brand-heading);
}

.mobile-menu-accordion {
    --bs-accordion-active-bg: transparent;
    --bs-accordion-active-color: var(--brand-primary);
    --bs-accordion-btn-focus-box-shadow: none;
}

.mobile-menu-group-toggle {
    padding: .85rem 0;
    font-weight: 500;
}

.mobile-menu-sublinks {
    display: grid;
    gap: .2rem;
    padding: 0 0 .8rem 1rem;
}

.mobile-menu-sublinks a {
    padding: .3rem 0;
    color: var(--brand-text);
}


/* 7. Sections, headings & kickers
   ========================================================================== */
.page-section {
    position: relative;
    padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.page-section--compact {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.page-section--flush-top {
    padding-top: 0;
}

.page-section--tinted {
    margin: 2rem 0;
    background: var(--brand-tint);
    color: var(--brand-text);
}

.page-section--content {
    background: var(--brand-tint);
    padding-top: clamp(2.5rem, 4vw, 3.5rem);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.section-kicker::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: none;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 0 3px, transparent 3.5px);
}

.section-title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -.01em;
}

.section-title:not(:last-child) {
    margin-bottom: 1.2rem;
}

.section-intro {
    max-width: 38rem;
    margin: 0;
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading--center {
    flex-direction: column;
    align-items: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Heading on the left, divider, text + button on the right */
.split-heading {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.split-heading-main {
    padding-right: 2.5rem;
}

.split-heading-side {
    padding-left: 2.5rem;
    border-left: 1px solid var(--brand-line);
}

.split-heading-side p {
    max-width: 34rem;
    margin-bottom: 1rem;
}

.split-heading-side--end {
    display: flex;
    justify-content: flex-end;
    border-left-color: transparent;
}


/* 8. Wave dividers
   ========================================================================== */
.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 40px;
    color: var(--brand-tint);
    pointer-events: none;
}

.wave-divider--top {
    top: -39px;
}

.wave-divider--bottom {
    bottom: -39px;
    transform: rotate(180deg);
}

.inner-hero .wave-divider--bottom {
    bottom: -1px;
    transform: none;
}


/* 9. Hero
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 7vw, 6.5rem);
    background:
        radial-gradient(ellipse 60% 70% at 15% 40%, rgba(255, 152, 31, .07), transparent 70%),
        radial-gradient(ellipse 50% 60% at 85% 70%, rgba(67, 66, 128, .07), transparent 70%),
        var(--brand-white);
}

.hero-title {
    margin-bottom: 1.4rem;
    font-size: clamp(2.3rem, 4.8vw, 3.9rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.hero-lead {
    max-width: 34rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.hero-visual {
    position: relative;
    max-width: 560px;
    margin-left: auto;
}

.hero-blob-image {
    position: relative;
    z-index: 1;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 58% 42% 52% 48% / 38% 46% 54% 62%;
    background: var(--brand-primary-soft);
}

.hero-blob-image img,
.hero-blob-image picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-blob-outline {
    position: absolute;
    inset: -14px -10px -6px -18px;
    z-index: 2;
    border: 5px solid var(--brand-heading);
    border-color: var(--brand-heading) transparent var(--brand-heading) transparent;
    border-radius: 46% 54% 40% 60% / 52% 40% 60% 48%;
    opacity: .85;
    pointer-events: none;
    transform: rotate(-8deg);
}

.hero-stat-badge {
    position: absolute;
    bottom: 10%;
    left: -12%;
    z-index: 3;
}


/* 10. Stat badges & icon circles
   ========================================================================== */
.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    margin: 0;
    padding: .9rem 1.6rem;
    border-radius: var(--radius-sm);
    background: var(--brand-white);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.stat-badge-value {
    font-size: 2.3rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--brand-primary);
}

.stat-badge-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--brand-heading);
}

.icon-circle {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    flex: none;
    border-radius: 50%;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 1.6rem;
    transition: background-color .3s, color .3s;
}

.icon-circle--light {
    background: rgba(255, 255, 255, .18);
    color: var(--brand-white);
}


/* 11. Service cards & carousel
   ========================================================================== */
.card-track {
    display: grid;
    grid-auto-columns: calc((100% - 3 * 1.5rem) / 4);
    grid-auto-flow: column;
    gap: 1.5rem;
    overflow-x: auto;
    padding: .5rem .25rem 1.5rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.card-track::-webkit-scrollbar {
    display: none;
}

.card-track--five {
    grid-auto-columns: calc((100% - 4 * 1.5rem) / 5);
}

.split-heading-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-track > * {
    scroll-snap-align: start;
}

.carousel-arrows {
    display: flex;
    gap: .8rem;
}

.carousel-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-white);
    opacity: .75;
    transition: opacity .2s, background-color .2s;
}

.carousel-arrow:hover {
    background: var(--brand-orange);
    opacity: 1;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.8rem;
    border-radius: var(--radius-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-card);
    color: var(--brand-text);
    transition: transform .35s var(--ease-smooth), box-shadow .35s, background-color .35s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    color: var(--brand-text);
}

.service-card:hover .icon-circle {
    background: var(--brand-primary);
    color: var(--brand-white);
}

.service-card .icon-circle {
    margin-bottom: 1.6rem;
}

.service-card-title {
    margin-bottom: .8rem;
    font-size: 1.25rem;
}

.service-card-text {
    flex: 1;
    margin-bottom: 1.2rem;
    font-size: .95rem;
}


/* 12. Story (about) block
   ========================================================================== */
.story-media {
    position: relative;
    padding-bottom: 3rem;
}

.story-image {
    overflow: hidden;
    aspect-ratio: 4 / 3.4;
    border-radius: var(--radius-md);
}

.story-image img,
.story-image picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-stat-badge {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.feature-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem 1.5rem;
    margin: 1.6rem 0 2rem;
}

.feature-checklist li {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 500;
    color: var(--brand-heading);
}

.feature-checklist-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-white);
    font-size: .7rem;
}


/* 13. How it works
   ========================================================================== */
.center-info-card {
    max-width: 590px;
    margin: 0 auto -5rem;
    padding: 2.5rem 2rem 7rem;
    border-radius: var(--radius-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.center-info-title {
    margin-bottom: 1rem;
    font-size: 1.7rem;
    color: var(--brand-heading);
}

.center-info-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 0 0 .3rem;
    font-size: .95rem;
}

.center-info-line i {
    color: var(--brand-primary);
}

.step-card-row {
    position: relative;
}

.step-card {
    height: 100%;
    padding: 2rem 1.8rem;
    border-radius: var(--radius-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-card);
    transition: transform .35s var(--ease-smooth);
}

.step-card:hover {
    transform: translateY(-6px);
}

.step-card .icon-circle {
    margin-bottom: 1.6rem;
}

.step-card-title {
    margin-bottom: .8rem;
    font-size: 1.2rem;
}

.step-card-text {
    margin: 0;
    font-size: .95rem;
}

.step-card--active {
    background: var(--brand-primary);
    box-shadow: 0 18px 40px rgba(67, 66, 128, .35);
    color: rgba(255, 255, 255, .9);
}

.step-card--active .step-card-title {
    color: var(--brand-white);
}

.step-card--active .icon-circle {
    background: var(--brand-white);
    color: var(--brand-primary);
}

.step-image {
    height: 100%;
    min-height: 240px;
    overflow: hidden;
    border: 1px solid var(--brand-primary);
    border-radius: var(--radius-md);
}

.step-image img,
.step-image picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 14. Substance cards
   ========================================================================== */
.substance-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-card);
    color: var(--brand-text);
    transition: transform .35s var(--ease-smooth), box-shadow .35s;
}

.substance-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    color: var(--brand-text);
}

.substance-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.substance-card-media img,
.substance-card-media picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-smooth);
}

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

.substance-card-body {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1.2rem 1.3rem 1.4rem;
}

.substance-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand-heading);
}


/* 15. Doctor cards
   ========================================================================== */
.doctor-card {
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform .35s var(--ease-smooth), box-shadow .35s;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.doctor-portrait {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3.2;
    overflow: hidden;
    background: linear-gradient(160deg, var(--brand-primary-tint), var(--brand-primary-soft));
    color: var(--brand-primary);
}

.doctor-portrait img,
.doctor-portrait picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-initials {
    font-size: 2.6rem;
    font-weight: 600;
}

.doctor-portrait-icon {
    font-size: 3rem;
    opacity: .7;
}

.doctor-card-body {
    padding: 1.4rem 1.3rem 1.6rem;
}

.doctor-name {
    margin-bottom: .2rem;
    font-size: 1.1rem;
}

.doctor-role {
    margin-bottom: .6rem;
    font-size: .88rem;
    font-weight: 500;
    color: var(--brand-orange);
}

.doctor-qualifications,
.doctor-bio {
    margin: 0;
    font-size: .86rem;
    white-space: pre-line;
}

.doctor-bio {
    margin-top: .6rem;
    white-space: normal;
}

.doctor-phone {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .8rem;
    font-size: .86rem;
}


/* 16. CTA banner
   ========================================================================== */
.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(67, 66, 128, .25);
    isolation: isolate;
}

.cta-banner-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.cta-banner-media img,
.cta-banner-media picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(67, 66, 128, .88);
}

.cta-banner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.8rem);
}

.cta-banner-title {
    margin-bottom: .8rem;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    color: var(--brand-white);
}

.cta-banner-text {
    max-width: 34rem;
    margin: 0;
    font-weight: 500;
    color: var(--brand-white);
}

.cta-banner-text a {
    color: var(--brand-white);
    text-decoration: underline;
}

.cta-banner .btn-accent:hover {
    background: var(--brand-white);
    color: var(--brand-primary);
}


/* 17. Founder quote
   ========================================================================== */
.founder-quote {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.founder-quote-text {
    margin: 0 0 2rem;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    line-height: 1.65;
    color: var(--brand-heading);
}

.founder-quote-author {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.founder-quote-photo {
    display: block;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
}

.founder-quote-photo img,
.founder-quote-photo picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-quote-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.founder-quote-role {
    color: var(--brand-orange);
}


/* 18. Videos
   ========================================================================== */
.video-thumb-button {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: #000;
    color: var(--brand-white);
    text-align: left;
}

.video-thumb-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
    transition: opacity .3s, transform .6s var(--ease-smooth);
}

.video-thumb-button:hover img {
    opacity: 1;
    transform: scale(1.04);
}

.video-thumb-button iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    padding-left: 4px;
    border-radius: 50%;
    background: var(--brand-orange);
    box-shadow: 0 0 0 10px rgba(255, 152, 31, .3);
    font-size: 1.3rem;
    transform: translate(-50%, -50%);
    transition: transform .3s var(--ease-smooth);
}

.video-thumb-button:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.2rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    font-size: .95rem;
    font-weight: 600;
}

.video-card {
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-card);
}

.video-card .video-thumb-button {
    border-radius: 0;
}

.video-card-body {
    padding: 1.3rem 1.5rem 1.5rem;
}

.video-card-title {
    margin-bottom: .4rem;
    font-size: 1.1rem;
}

.video-card-text {
    margin: 0;
    font-size: .92rem;
}


/* 19. FAQ accordion
   ========================================================================== */
.faq-accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-width: 0;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: var(--brand-primary);
    --bs-accordion-active-color: var(--brand-white);
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-btn-padding-x: 1.4rem;
    display: grid;
    gap: .9rem;
}

.faq-accordion-item {
    border: 0;
    background: transparent;
}

.faq-accordion .accordion-header {
    margin: 0;
    font-size: 1rem;
}

.faq-question {
    border: 1px solid var(--brand-line) !important;
    border-radius: var(--radius-pill) !important;
    background: var(--brand-white);
    font-size: 1rem;
    font-weight: 500;
    color: var(--brand-heading);
    box-shadow: none !important;
}

.faq-question:not(.collapsed) {
    border-color: var(--brand-primary) !important;
    border-radius: 30px !important;
}

.faq-question:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.faq-answer {
    padding: 1.1rem 1.4rem .4rem;
    font-size: .95rem;
}

.faq-photo {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-top: 2rem;
    border-radius: var(--radius-md);
}

.faq-photo img,
.faq-photo picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 20. Photo gallery & lightbox
   ========================================================================== */
.photo-strip-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
}

.photo-strip-link img,
.photo-strip-link picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-smooth);
}

.photo-strip-link:hover img {
    transform: scale(1.08);
}

.photo-masonry {
    column-gap: 1.2rem;
    columns: 4 260px;
}

.photo-masonry-link {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border-radius: var(--radius-sm);
    break-inside: avoid;
}

.photo-masonry-link img {
    width: 100%;
    transition: transform .6s var(--ease-smooth);
}

.photo-masonry-link:hover img {
    transform: scale(1.05);
}

.photo-masonry-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem .9rem .7rem;
    background: linear-gradient(transparent, rgba(67, 66, 128, .9));
    color: var(--brand-white);
    font-size: .85rem;
    opacity: 0;
    transition: opacity .3s;
}

.photo-masonry-link:hover .photo-masonry-caption {
    opacity: 1;
}

.gallery-lightbox .modal-dialog {
    max-width: min(1100px, 94vw);
}

.gallery-lightbox-content {
    position: relative;
    align-items: center;
    padding: 3.5rem 4rem 1rem;
    border: 0;
    background: transparent;
}

.gallery-lightbox-image {
    max-height: 80vh;
    border-radius: var(--radius-sm);
}

.gallery-lightbox-caption {
    margin: 1rem 0 0;
    color: var(--brand-white);
    font-size: .9rem;
    text-align: center;
}

.gallery-lightbox-control {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-white);
    transition: background-color .2s;
}

.gallery-lightbox-control:hover {
    background: var(--brand-orange);
}

.gallery-lightbox-close {
    top: 0;
    right: 0;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-prev {
    left: 0;
}

.gallery-lightbox-next {
    right: 0;
}

.modal-backdrop.show {
    opacity: .9;
}


/* 21. Article cards & filters
   ========================================================================== */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-card);
    transition: transform .35s var(--ease-smooth), box-shadow .35s;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.article-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10.5;
    background: var(--brand-primary-soft);
}

.article-card-media img,
.article-card-media picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-smooth);
}

.article-card:hover .article-card-media img {
    transform: scale(1.05);
}

.article-card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .3rem .9rem;
    border-radius: var(--radius-pill);
    background: var(--brand-primary);
    color: var(--brand-white);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.4rem 1.4rem 1rem;
}

.article-card-title {
    margin-bottom: .9rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--brand-heading);
}

.article-card-title a:hover {
    color: var(--brand-primary);
}

.article-card-excerpt {
    flex: 1;
    font-size: .9rem;
}

.article-card-link {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.article-card-link:hover {
    color: var(--brand-orange);
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.4rem;
    border-top: 1px solid var(--brand-line);
    font-size: .82rem;
    color: var(--brand-muted);
}

.article-card-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2rem;
}

.filter-pill {
    padding: .55rem 1.2rem;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-pill);
    background: var(--brand-white);
    color: var(--brand-heading);
    font-size: .92rem;
    font-weight: 500;
    transition: background-color .2s, color .2s, border-color .2s;
}

.filter-pill:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.filter-pill.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: var(--brand-white);
}


/* 22. Partner logos
   ========================================================================== */
.partner-caption {
    margin-bottom: 1.5rem;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
    color: var(--brand-muted);
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 3rem;
    margin: 0;
}

.partner-logo-link {
    display: block;
    opacity: .6;
    filter: grayscale(1);
    transition: filter .3s, opacity .3s;
}

.partner-logo-link:hover {
    opacity: 1;
    filter: none;
}

.partner-logo {
    width: auto;
    max-height: 56px;
}


/* 23. Forms
   ========================================================================== */
.appointment-form {
    padding: clamp(1.5rem, 3vw, 2.2rem);
    border-radius: var(--radius-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-card);
}

.appointment-form-title {
    margin-bottom: 1.3rem;
    font-size: 1.5rem;
    text-align: center;
}

.appointment-form .form-label {
    margin-bottom: .3rem;
    font-weight: 500;
    color: var(--brand-heading);
}

.appointment-form .form-control,
.appointment-form .form-select,
.site-search-input {
    padding: .7rem 1.1rem;
    border: 1px solid #c9ced6;
    border-radius: var(--radius-pill);
    font-size: .95rem;
}

.appointment-form textarea.form-control {
    border-radius: var(--radius-sm);
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus,
.site-search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

.form-success-alert {
    display: flex;
    align-items: center;
    gap: .6rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--brand-primary-tint);
    color: var(--brand-primary);
}

.form-privacy-note {
    margin: .8rem 0 0;
    font-size: .8rem;
    color: var(--brand-muted);
    text-align: center;
}

.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
}


/* 24. Inner page hero
   ========================================================================== */
.inner-hero {
    position: relative;
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
    background:
        radial-gradient(ellipse 50% 80% at 10% 30%, rgba(255, 152, 31, .06), transparent 70%),
        var(--brand-white);
}

.inner-hero-breadcrumb {
    --bs-breadcrumb-divider: "|";
    --bs-breadcrumb-divider-color: var(--brand-line);
    --bs-breadcrumb-item-active-color: var(--brand-text);
    margin-bottom: .5rem;
    font-size: .85rem;
}

.inner-hero-breadcrumb a {
    color: var(--brand-heading);
}

.inner-hero-breadcrumb a:hover {
    color: var(--brand-primary);
}

.inner-hero-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 500;
}

.inner-hero-lead {
    margin: 0;
    font-size: 1.02rem;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.2rem;
    margin: 1rem 0 0;
    font-size: .88rem;
}

.article-meta-bar li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.article-meta-bar i {
    color: var(--brand-primary);
}

.article-meta-category {
    padding: .2rem .8rem;
    border-radius: var(--radius-pill);
    background: var(--brand-primary);
    color: var(--brand-white);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-meta-category:hover {
    background: var(--brand-orange);
    color: var(--brand-white);
}


/* 25. Content pages (rich text, sidebar, share)
   ========================================================================== */
.rich-content {
    font-size: 1rem;
}

.rich-content > *:first-child {
    margin-top: 0;
}

.rich-content h2 {
    margin: 2.2rem 0 .9rem;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 500;
    scroll-margin-top: 110px;
}

.rich-content h3 {
    margin: 1.8rem 0 .6rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.rich-content h4 {
    margin: 1.4rem 0 .4rem;
    font-size: 1.1rem;
}

.rich-content strong {
    color: var(--brand-heading);
}

.rich-content img {
    margin: 1.5rem auto;
    border-radius: var(--radius-sm);
}

.rich-content a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.2rem;
}

.rich-content li {
    margin-bottom: .4rem;
}

.rich-content li::marker {
    color: var(--brand-primary);
}

.rich-content blockquote {
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--brand-orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--brand-white);
}

.rich-content table {
    width: 100%;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--brand-white);
}

.rich-content th,
.rich-content td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--brand-line);
    vertical-align: top;
}

.cv-page-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .8rem;
}

.cv-page-gallery img {
    margin: 0;
}

.article-scan {
    margin: 1rem 0;
}

.article-scan img {
    margin: 0;
    background: var(--brand-white);
}

.featured-figure {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 2rem;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.content-help-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2.5rem;
    padding: 1.6rem 1.8rem;
    border-radius: var(--radius-md);
    background: var(--brand-primary);
    color: rgba(255, 255, 255, .9);
}

.content-help-text {
    flex: 1;
    min-width: 220px;
}

.content-help-text p {
    margin: 0;
    font-size: .93rem;
}

.content-help-title {
    margin-bottom: .3rem;
    font-size: 1.2rem;
    color: var(--brand-white);
}

.content-help-card .btn-accent:hover {
    background: var(--brand-white);
    color: var(--brand-primary);
}

.content-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 1.25rem;
}

.sidebar-cta-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 400px;
    overflow: hidden;
    border-radius: var(--radius-md);
    color: var(--brand-white);
    isolation: isolate;
}

.sidebar-cta-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.sidebar-cta-media img,
.sidebar-cta-media picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(47, 46, 102, .15) 0%, rgba(33, 32, 74, .92) 60%);
}

.sidebar-cta-body {
    padding: 1.6rem;
}

.sidebar-cta-title {
    margin-bottom: .8rem;
    font-size: 1.7rem;
    color: var(--brand-white);
}

.sidebar-cta-text {
    margin-bottom: .8rem;
    font-weight: 500;
}

.sidebar-cta-phone {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-white);
}

.sidebar-cta-phone:hover {
    color: var(--brand-orange);
}

.sidebar-panel {
    padding: 1.6rem;
    border-radius: var(--radius-md);
    background: var(--brand-white);
}

.sidebar-panel--center {
    text-align: center;
}

.sidebar-panel-title {
    margin-bottom: 1.1rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.sidebar-panel-text {
    margin-bottom: 1rem;
    font-size: .92rem;
}

.sidebar-link-list {
    display: grid;
    gap: .6rem;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .75rem 1.2rem;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-pill);
    font-size: .93rem;
    font-weight: 500;
    color: var(--brand-heading);
    transition: background-color .2s, color .2s, border-color .2s;
}

.sidebar-link i {
    font-size: .75rem;
    transform: rotate(-90deg);
}

.sidebar-link:hover,
.sidebar-link.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: var(--brand-white);
}

.toc-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: .92rem;
}

.toc-list li {
    margin-bottom: .4rem;
}

.toc-list li::marker {
    color: var(--brand-primary);
}

.toc-list a {
    color: var(--brand-text);
}

.toc-list a:hover {
    color: var(--brand-primary);
}

.medical-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-top: 2.5rem;
    padding: 1.1rem 1.3rem;
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--brand-white);
    font-size: .88rem;
}

.medical-disclaimer i {
    margin-top: 4px;
    color: var(--brand-primary);
}

.medical-disclaimer p {
    margin: 0;
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--brand-line);
}

.share-links-label {
    font-weight: 500;
    color: var(--brand-heading);
}

.share-link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-heading);
    color: var(--brand-white);
    transition: background-color .2s;
}

.share-link:hover {
    background: var(--brand-primary);
    color: var(--brand-white);
}


/* 26. Contact, downloads, search, sitemap, 404
   ========================================================================== */
.contact-info-row {
    margin-bottom: 3rem;
}

.contact-info-card {
    display: flex;
    gap: 1.1rem;
    height: 100%;
    padding: 1.6rem;
    border-radius: var(--radius-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-card);
}

.contact-info-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: none;
    border-radius: 50%;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 1.3rem;
}

.contact-info-title {
    margin-bottom: .3rem;
    font-size: 1.1rem;
}

.contact-info-text {
    margin: 0;
    font-size: .93rem;
}

.contact-info-text a {
    color: var(--brand-text);
}

.contact-info-text a:hover {
    color: var(--brand-primary);
}

.contact-map {
    overflow: hidden;
    aspect-ratio: 16 / 7;
    margin-top: 3rem;
    border-radius: var(--radius-md);
    background: var(--brand-primary-soft);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.list-row-stack {
    display: grid;
    gap: 1rem;
}

.list-row-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-card);
    color: var(--brand-text);
    transition: transform .25s var(--ease-smooth);
}

a.list-row-card:hover {
    transform: translateY(-3px);
    color: var(--brand-text);
}

.list-row-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 50%;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 1.2rem;
}

.list-row-icon--file {
    background: #fff1df;
    color: var(--brand-orange);
    font-size: .75rem;
    font-weight: 700;
}

.list-row-title {
    display: block;
    margin-bottom: .2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-heading);
}

.list-row-text {
    display: block;
    font-size: .9rem;
}

.site-search-form {
    display: flex;
    gap: .5rem;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.html-sitemap-title {
    margin-top: 1.5rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--brand-primary);
    font-size: 1.2rem;
}

.html-sitemap-title:first-child {
    margin-top: 0;
}

.html-sitemap-list {
    display: grid;
    gap: .4rem;
}

.html-sitemap-list a {
    color: var(--brand-text);
}

.html-sitemap-list a:hover {
    color: var(--brand-primary);
}

.not-found-section {
    padding: 6rem 0;
}

.not-found-code {
    margin: 0;
    font-size: clamp(6rem, 18vw, 11rem);
    font-weight: 700;
    line-height: 1;
    color: var(--brand-primary);
}

.not-found-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.not-found-section .site-search-form {
    margin-top: 1.5rem;
}

.not-found-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
}


/* 27. Pagination
   ========================================================================== */
.site-pagination {
    --bs-pagination-color: var(--brand-heading);
    --bs-pagination-border-color: var(--brand-line);
    --bs-pagination-hover-bg: var(--brand-primary-tint);
    --bs-pagination-hover-color: var(--brand-primary);
    --bs-pagination-active-bg: var(--brand-primary);
    --bs-pagination-active-border-color: var(--brand-primary);
    --bs-pagination-focus-box-shadow: 0 0 0 3px var(--brand-primary-soft);
    gap: .5rem;
}

.site-pagination .page-link {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    border-radius: 50% !important;
    font-weight: 500;
}


/* 28. Footer
   ========================================================================== */
.site-footer {
    position: relative;
    margin-top: 3rem;
    padding: clamp(3.5rem, 6vw, 5rem) 0 0;
    background: var(--brand-tint);
}

.site-footer-columns {
    padding-bottom: 2.5rem;
}

.site-footer-about {
    margin: 1.2rem 0;
    font-size: .95rem;
    line-height: 1.9;
}

.site-footer-title {
    margin-bottom: 1.4rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--brand-primary);
    font-size: 1.35rem;
    font-weight: 500;
}

.site-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.2rem;
    margin: 0;
}

.site-footer-links li {
    padding: .35rem 0;
    border-bottom: 1px solid var(--brand-line);
}

.site-footer-links a {
    color: var(--brand-text);
}

.site-footer-links a:hover {
    color: var(--brand-primary);
}

.site-footer-contact {
    margin: 0;
}

.footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: 0 0 .55rem;
    font-size: .95rem;
    color: var(--brand-text);
}

.footer-contact-line i {
    width: 16px;
    margin-top: 6px;
    color: var(--brand-primary);
}

a.footer-contact-line:hover {
    color: var(--brand-primary);
}

.newsletter-form {
    display: flex;
    gap: .6rem;
    margin-bottom: 1.2rem;
}

.newsletter-input {
    flex: 1;
    min-width: 0;
    padding: .6rem 1.1rem;
    border: 1px solid #8a8a88;
    border-radius: var(--radius-pill);
    background: transparent;
    font-size: .92rem;
}

.newsletter-input:focus {
    border-color: var(--brand-primary);
    outline: none;
}

.newsletter-button {
    width: 70px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--brand-orange);
    color: var(--brand-white);
    transition: background-color .2s;
}

.newsletter-button:hover {
    background: var(--brand-primary);
}

.newsletter-success {
    margin: -.6rem 0 1rem;
    font-size: .85rem;
    color: var(--brand-primary);
}

.social-links {
    display: flex;
    gap: .45rem;
    margin: 0;
}

.social-link {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-heading);
    color: var(--brand-white);
    font-size: .9rem;
    transition: background-color .2s;
}

.social-link:hover {
    background: var(--brand-primary);
    color: var(--brand-white);
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--brand-line);
    font-size: .88rem;
    font-weight: 500;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.footer-legal-links a {
    color: var(--brand-text);
}

.footer-legal-links a:hover {
    color: var(--brand-primary);
}

.footer-bottom-separator {
    display: inline-block;
    width: 1px;
    height: 13px;
    margin: 0 .6rem;
    background: var(--brand-line);
    vertical-align: middle;
}


/* 29. Floating actions & mobile action bar
   ========================================================================== */
.floating-call-button {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 1030;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: var(--brand-white);
    font-size: 1.3rem;
    box-shadow: 0 10px 25px rgba(255, 152, 31, .45);
    animation: call-ring 3s infinite;
}

.floating-call-button:hover {
    background: var(--brand-primary);
    color: var(--brand-white);
}

@keyframes call-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 152, 31, .45); }
    50% { box-shadow: 0 0 0 14px rgba(255, 152, 31, 0); }
}

.back-to-top-button {
    position: fixed;
    right: 1.6rem;
    bottom: 5.8rem;
    z-index: 1030;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, visibility .3s, transform .3s;
}

.back-to-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-action-bar {
    display: none;
}


/* 30. Scroll reveal
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease-smooth), transform .7s var(--ease-smooth);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}


/* 31. Responsive adjustments
   ========================================================================== */

/* Laptops (< 1200px) */
@media (max-width: 1199.98px) {
    .card-track {
        grid-auto-columns: calc((100% - 2 * 1.5rem) / 3);
    }
}

/* Tablets (< 992px) */
@media (max-width: 991.98px) {
    .split-heading {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .split-heading-main,
    .split-heading-side {
        padding: 0;
        border: 0;
    }

    .split-heading-side--end {
        justify-content: flex-start;
    }

    .card-track {
        grid-auto-columns: calc((100% - 1.5rem) / 2);
    }

    .hero-visual {
        margin: 1rem auto 0;
        max-width: 460px;
    }

    .hero-stat-badge {
        left: -4%;
    }

    .content-sidebar {
        position: static;
    }

    .cv-page-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phones (< 576px) */
@media (max-width: 575.98px) {
    .site-body {
        padding-bottom: 66px;
    }

    .site-navbar {
        min-height: 68px;
    }

    .site-brand-logo {
        width: 40px;
        height: 40px;
    }

    .site-brand-name {
        font-size: 1.1rem;
    }

    .card-track {
        grid-auto-columns: 85%;
    }

    .feature-checklist {
        grid-template-columns: 1fr;
    }

    .stat-badge {
        min-width: 160px;
        padding: .7rem 1.2rem;
    }

    .stat-badge-value {
        font-size: 1.8rem;
    }

    .hero-stat-badge {
        left: 0;
        bottom: 0;
    }

    .center-info-card {
        margin-bottom: 1.5rem;
        padding-bottom: 2.5rem;
    }

    .site-footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .site-search-form {
        flex-direction: column;
    }

    .floating-call-button,
    .back-to-top-button {
        display: none;
    }

    .gallery-lightbox-content {
        padding: 3.5rem .5rem 1rem;
    }

    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        top: auto;
        bottom: -3.5rem;
        transform: none;
    }

    .mobile-action-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--brand-line);
        background: var(--brand-white);
        box-shadow: 0 -6px 20px rgba(31, 52, 82, .1);
    }

    .mobile-action-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .15rem;
        padding: .55rem 0;
        color: var(--brand-heading);
        font-size: .72rem;
        font-weight: 600;
    }

    .mobile-action-link i {
        font-size: 1.1rem;
        color: var(--brand-primary);
    }

    .mobile-action-link--primary {
        background: var(--brand-orange);
        color: var(--brand-white);
    }

    .mobile-action-link--primary i {
        color: var(--brand-white);
    }
}
