/* ==========================================================================
   Health Paradise BD — Main Stylesheet
   Medical event management — Bootstrap 5 extension layer
   ========================================================================== */

:root {
    --mb-primary: #0b5ed7;
    --mb-primary-dark: #084298;
    --mb-secondary: #198754;
    --mb-secondary-light: #d1e7dd;
    --mb-accent: #20c997;
    --mb-light: #f8fafb;
    --mb-dark: #1a2b3c;
    --mb-muted: #6c757d;
    --mb-gradient: linear-gradient(135deg, #0b5ed7 0%, #198754 100%);
    --mb-shadow: 0 0.5rem 1.5rem rgba(11, 94, 215, 0.12);
    --mb-shadow-lg: 0 1rem 2.5rem rgba(26, 43, 60, 0.15);
    --mb-radius: 0.75rem;
    --mb-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--mb-dark);
    background-color: #fff;
    overflow-x: hidden;
}

html[lang="bn"] body {
    font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
}

html[lang="bn"] h1,
html[lang="bn"] h2,
html[lang="bn"] h3,
html[lang="bn"] h4,
html[lang="bn"] h5,
html[lang="bn"] h6,
html[lang="bn"] .display-1,
html[lang="bn"] .display-2,
html[lang="bn"] .display-3,
html[lang="bn"] .display-4,
html[lang="bn"] .display-5,
html[lang="bn"] .display-6 {
    font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif;
}

/* AOS fallback: keep content visible on mobile / when JS disables animations */
body.aos-disabled [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

html.aos-mobile-off [data-aos],
@media (max-width: 991.98px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--mb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar-medbridge {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: var(--mb-transition);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    z-index: 1030;
}

.navbar-medbridge.scrolled {
    box-shadow: var(--mb-shadow);
}

/* Brand lockup: logo + site name */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    margin-right: 0;
    padding: 0;
}

.brand-lockup .brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--mb-primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-logo-nav {
    height: 42px;
    width: auto;
    max-width: 96px;
    max-height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-logo {
    height: auto;
    max-height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

/* Menu toggle button */
.navbar-medbridge .navbar-toggler-custom {
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 2px solid var(--mb-primary);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--mb-primary);
}

.navbar-medbridge .navbar-toggler-bars {
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
}

.navbar-medbridge .navbar-toggler-custom:focus {
    box-shadow: 0 0 0 0.2rem rgba(11, 94, 215, 0.25);
}

.navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: var(--mb-primary-dark) !important;
}

/* ----- Mobile & tablet (< 992px) ----- */
@media (max-width: 991.98px) {
    .navbar-medbridge > .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navbar-medbridge .navbar-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        min-height: 52px;
        padding-right: 0.5rem;
    }

    .navbar-medbridge .navbar-top-row .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        margin-right: 0;
    }

    .navbar-medbridge .navbar-toggler-custom {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-right: 0.25rem;
    }

    .navbar-medbridge .navbar-collapse {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.5rem 0.75rem 1rem;
        background: #fff;
        border-radius: var(--mb-radius);
        box-shadow: var(--mb-shadow);
    }

    .brand-lockup .brand-name {
        font-size: clamp(0.9rem, 3.2vw, 1.05rem);
    }
}

/* Small phones */
@media (max-width: 400px) {
    .brand-lockup {
        gap: 0.5rem;
    }

    .brand-logo-nav {
        height: 38px;
        max-height: 38px;
        max-width: 80px;
    }

    .brand-lockup .brand-name {
        font-size: 0.85rem;
    }
}

/* ----- Desktop (>= 992px) ----- */
@media (min-width: 992px) {
    .navbar-medbridge > .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .navbar-medbridge .navbar-top-row {
        display: contents;
    }

    .navbar-medbridge .navbar-top-row .navbar-brand {
        margin-right: 1rem;
    }

    .navbar-medbridge .navbar-toggler-custom {
        display: none !important;
    }

    .navbar-medbridge .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        background: transparent;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
    }

    .brand-lockup .brand-name {
        font-size: 1.15rem;
    }
}

.brand-logo-footer {
    max-height: 56px;
    max-width: 240px;
    filter: brightness(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--mb-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: var(--mb-transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--mb-primary) !important;
    background: rgba(11, 94, 215, 0.08);
}

.btn-nav-cta {
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem;
    border: 1px solid rgba(11, 94, 215, 0.12);
    border-radius: 999px;
    background: #f3f6fb;
}

.language-switcher-option {
    min-width: 2.75rem;
    padding: 0.4rem 0.7rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #536274;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    transition: color var(--mb-transition), background-color var(--mb-transition), box-shadow var(--mb-transition);
}

.language-switcher-option:hover {
    color: var(--mb-primary-dark);
}

.language-switcher-option.active {
    background: #fff;
    color: var(--mb-primary-dark);
    box-shadow: 0 1px 4px rgba(26, 43, 60, 0.14);
}

.language-switcher-option:focus-visible {
    outline: 2px solid var(--mb-primary);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .nav-item-language {
        margin-top: 0.5rem;
    }
}

/* Content management workspace */
.cms-body {
    min-height: 100vh;
    background: #f4f7fb;
    color: #27374b;
    font-family: 'Inter', system-ui, sans-serif;
}

.cms-body h1,
.cms-body h2,
.cms-body h3,
.cms-body h4,
.cms-body h5,
.cms-body h6 {
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.035em;
}

.cms-body .form-control,
.cms-body .form-select {
    min-height: 44px;
    border-color: #e4eaf2;
    border-radius: 0.7rem;
    background-color: #fff;
    color: #27374b;
    font-size: 0.9rem;
}

.cms-body .form-control:focus,
.cms-body .form-select:focus {
    border-color: #80aaf1;
    box-shadow: 0 0 0 0.2rem rgba(11, 94, 215, 0.12);
}

.cms-body textarea.form-control {
    min-height: 84px;
}

.cms-body .form-label {
    margin-bottom: 0.45rem;
    color: #384960;
    font-size: 0.82rem;
    font-weight: 600;
}

.cms-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    width: 256px;
    flex-direction: column;
    padding: 1.4rem 1rem 1rem;
    border-right: 1px solid #edf0f5;
    background: #fff;
}

.cms-brand,
.cms-login-brand {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 0.75rem;
    color: #1d2b42;
    text-decoration: none;
}

.cms-brand strong,
.cms-login-brand strong {
    display: block;
    overflow: hidden;
    max-width: 175px;
    font-size: 0.88rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-brand small,
.cms-login-brand small {
    display: block;
    margin-top: 0.12rem;
    color: #8a97a8;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.cms-brand-mark {
    display: inline-grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(140deg, #e8f0ff, #e3f7ef);
    color: var(--mb-primary);
    font-size: 1.15rem;
}

.cms-sidebar-nav {
    flex: 1;
    padding-top: 2.1rem;
}

.cms-nav-label,
.cms-overline {
    display: block;
    margin-bottom: 0.7rem;
    color: #8794a6;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.cms-nav-label {
    padding: 0 0.8rem;
}

.cms-nav-link {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.7rem;
    color: #66758a;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
}

.cms-nav-link > i {
    width: 1.2rem;
    color: #8c9aae;
    font-size: 1rem;
    text-align: center;
}

.cms-nav-link:hover {
    background: #f5f8fc;
    color: var(--mb-primary);
}

.cms-nav-link.active {
    background: #eef4ff;
    color: var(--mb-primary-dark);
    font-weight: 600;
}

.cms-nav-link.active > i {
    color: var(--mb-primary);
}

.cms-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 0.2rem 0;
    border-top: 1px solid #edf0f5;
}

.cms-avatar {
    display: inline-grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    border-radius: 50%;
    background: #e8f0ff;
    color: var(--mb-primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.cms-account-copy,
.cms-user-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.14rem;
}

.cms-account-copy strong,
.cms-user-main strong {
    overflow: hidden;
    color: #33435a;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-account-copy span,
.cms-user-main small {
    color: #8a97a8;
    font-size: 0.69rem;
}

.cms-icon-button,
.cms-mobile-menu {
    display: inline-grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    border: 0;
    border-radius: 0.65rem;
    background: #f3f6fa;
    color: #65758a;
}

.cms-icon-button:hover {
    background: #fff0f0;
    color: #c83746;
}

.cms-main {
    min-height: 100vh;
    margin-left: 256px;
}

.cms-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2rem;
    border-bottom: 1px solid #eaf0f5;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.cms-topbar-title {
    color: #718097;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.cms-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #51657e;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.cms-preview-link:hover,
.cms-text-link {
    color: var(--mb-primary);
}

.cms-content {
    width: min(100%, 1360px);
    margin: 0 auto;
    padding: 2rem;
}

.cms-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.6rem;
}

.cms-page-heading h1 {
    margin: 0;
    color: #22334a;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    font-weight: 700;
}

.cms-page-heading p {
    max-width: 670px;
    margin: 0.55rem 0 0;
    color: #7c8999;
    font-size: 0.88rem;
    line-height: 1.7;
}

.cms-page-heading .cms-overline {
    margin-bottom: 0.45rem;
}

.cms-overline {
    margin-bottom: 0.45rem;
}

.cms-panel,
.cms-section-card {
    border: 1px solid #edf0f5;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 6px 24px rgba(38, 59, 87, 0.035);
}

.cms-panel {
    padding: 1.5rem;
}

.cms-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.cms-panel-heading h2,
.cms-repeater-heading h2 {
    margin: 0;
    color: #293a50;
    font-size: 1.08rem;
    font-weight: 700;
}

.cms-panel-heading p,
.cms-repeater-heading p {
    margin: 0.3rem 0 0;
    color: #8591a1;
    font-size: 0.8rem;
    line-height: 1.6;
}

.cms-heading-icon {
    color: #b0c2da;
    font-size: 1.5rem;
}

.cms-text-link {
    flex: 0 0 auto;
    font-size: 0.79rem;
    font-weight: 600;
    text-decoration: none;
}

.cms-stat-card {
    display: flex;
    min-height: 110px;
    align-items: center;
    gap: 0.9rem;
    padding: 1.15rem;
    border: 1px solid #edf0f5;
    border-radius: 0.9rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-stat-card:hover,
.cms-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(38, 59, 87, 0.09);
}

.cms-stat-icon,
.cms-section-shortcut-icon,
.cms-section-card-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 13px;
    font-size: 1.15rem;
}

.cms-stat-blue {
    background: #edf3ff;
    color: #3c75d8;
}

.cms-stat-green {
    background: #e8f7f0;
    color: #188d64;
}

.cms-stat-violet {
    background: #f2edff;
    color: #8058ce;
}

.cms-stat-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.12rem;
}

.cms-stat-copy small {
    color: #8794a6;
    font-size: 0.75rem;
}

.cms-stat-copy strong {
    color: #2d3e54;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
}

.cms-stat-arrow {
    align-self: flex-start;
    color: #a4b2c2;
    font-size: 0.88rem;
}

.cms-section-shortcut {
    display: flex;
    min-height: 88px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem;
    border: 1px solid #edf0f5;
    border-radius: 0.8rem;
    color: inherit;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.cms-section-shortcut:hover {
    border-color: #c9d9f1;
    background: #f9fbff;
}

.cms-section-shortcut-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    background: #f0f5fc;
    color: var(--mb-primary);
    font-size: 1rem;
}

.cms-section-shortcut > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.22rem;
}

.cms-section-shortcut strong {
    color: #40516a;
    font-size: 0.78rem;
}

.cms-section-shortcut small {
    overflow: hidden;
    color: #8a97a8;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-section-shortcut > i {
    color: #aeb8c6;
    font-size: 0.77rem;
}

.cms-activity-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 0;
    border-top: 1px solid #f0f2f6;
}

.cms-activity-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #6eb997;
    box-shadow: 0 0 0 4px #eaf6f0;
}

.cms-activity-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.15rem;
}

.cms-activity-copy strong {
    color: #4a5a6f;
    font-size: 0.78rem;
}

.cms-activity-copy small,
.cms-activity-row time {
    color: #919dae;
    font-size: 0.7rem;
}

.cms-live-badge,
.cms-private-badge,
.cms-count-badge,
.cms-role-pill,
.cms-status-pill,
.cms-you-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    flex: 0 0 auto;
    padding: 0.45rem 0.68rem;
    border-radius: 99px;
    background: #f1f4f8;
    color: #66758a;
    font-size: 0.68rem;
    font-weight: 700;
}

.cms-live-badge {
    background: #eaf7f0;
    color: #27825e;
    letter-spacing: 0.06em;
}

.cms-live-badge > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3cad77;
    box-shadow: 0 0 0 3px rgba(60, 173, 119, 0.12);
}

.cms-private-badge {
    background: #fff5e9;
    color: #ad7627;
}

.cms-count-badge {
    background: #edf3ff;
    color: #376ebf;
}

.cms-section-card {
    display: flex;
    min-height: 205px;
    flex-direction: column;
    padding: 1.25rem;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-section-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cms-section-card-icon {
    width: 47px;
    height: 47px;
    flex-basis: 47px;
    background: #edf3ff;
    color: var(--mb-primary);
    font-size: 1.15rem;
}

.cms-open-icon {
    color: #9eabbb;
}

.cms-section-card h2 {
    margin: 0 0 0.4rem;
    color: #33455c;
    font-size: 0.96rem;
    font-weight: 700;
}

.cms-section-card > p {
    flex: 1;
    margin: 0 0 1rem;
    color: #8491a1;
    font-size: 0.76rem;
    line-height: 1.65;
}

.cms-section-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f2f6;
    color: #71839c;
    font-size: 0.69rem;
    font-weight: 600;
}

.cms-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: #98a3b1;
    font-size: 0.74rem;
}

.cms-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #607795;
    text-decoration: none;
}

.cms-breadcrumb a:hover {
    color: var(--mb-primary);
}

.cms-editor-heading {
    margin-bottom: 1.4rem;
}

.cms-locale-tabs {
    gap: 0.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf0f5;
}

.cms-locale-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    color: #718095;
    font-size: 0.8rem;
    font-weight: 600;
}

.cms-locale-tabs .nav-link.active {
    border-color: #dce7f9;
    background: #edf3ff;
    color: #285ea7;
}

.cms-language-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5789e4;
}

.cms-language-dot-bn {
    background: #25a375;
}

.cms-language-state {
    margin-left: 0.15rem;
    color: #99a6b6;
    font-size: 0.65rem;
    font-weight: 500;
}

.cms-editor-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cms-form-field {
    min-width: 0;
}

.cms-form-field-wide {
    grid-column: 1 / -1;
}

.cms-field-hint {
    display: block;
    margin-top: 0.4rem;
    color: #939eae;
    font-size: 0.69rem;
    line-height: 1.55;
}

.cms-repeater {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid #edf0f5;
}

.cms-repeater-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cms-repeater-rows {
    display: grid;
    gap: 0.9rem;
}

.cms-item-card {
    padding: 1rem;
    border: 1px solid #e9edf3;
    border-radius: 0.82rem;
    background: #fbfcfe;
}

.cms-item-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.95rem;
}

.cms-item-heading strong {
    overflow: hidden;
    flex: 1;
    color: #48596f;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-item-index {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: #edf3ff;
    color: #3c70ba;
    font-size: 0.68rem;
    font-weight: 700;
}

.cms-remove-row {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: #b0bac8;
}

.cms-remove-row:hover {
    background: #fff0f0;
    color: #c84955;
}

.cms-item-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.cms-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.55rem;
    color: #64748b;
    font-size: 0.79rem;
}

.cms-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cms-toggle-track {
    position: relative;
    width: 38px;
    height: 21px;
    border-radius: 99px;
    background: #d9e0e9;
    transition: background 0.18s ease;
}

.cms-toggle-track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 30, 45, 0.16);
    content: '';
    transition: transform 0.18s ease;
}

.cms-toggle input:checked + .cms-toggle-track {
    background: #2aa375;
}

.cms-toggle input:checked + .cms-toggle-track::after {
    transform: translateX(17px);
}

.cms-toggle input:focus-visible + .cms-toggle-track {
    outline: 2px solid var(--mb-primary);
    outline-offset: 2px;
}

.cms-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #edf0f5;
}

.cms-form-actions > span {
    color: #8794a5;
    font-size: 0.71rem;
    line-height: 1.55;
}

.cms-translation-search {
    position: relative;
    max-width: 420px;
    margin-bottom: 1rem;
}

.cms-translation-search > i {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    z-index: 2;
    color: #95a2b2;
    transform: translateY(-50%);
}

.cms-translation-search input {
    padding-left: 2.35rem;
}

.cms-translation-table,
.cms-data-table {
    margin-bottom: 0;
}

.cms-translation-table thead th,
.cms-data-table thead th {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid #e9edf2;
    color: #8290a1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.cms-translation-table > :not(caption) > * > *,
.cms-data-table > :not(caption) > * > * {
    padding: 0.75rem;
    border-bottom-color: #f0f2f6;
}

.cms-translation-table td {
    min-width: 200px;
}

.cms-translation-table td:first-child {
    min-width: 190px;
}

.cms-translation-key {
    display: block;
    max-width: 260px;
    color: #62718a;
    font-size: 0.7rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: normal;
}

.cms-translation-input {
    min-height: 60px !important;
    font-size: 0.78rem !important;
    line-height: 1.55 !important;
}

.cms-bangla-input,
.cms-body [lang="bn"] {
    font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
}

.cms-user-card {
    padding: 1.1rem 0;
    border-top: 1px solid #edf0f5;
}

.cms-user-card-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cms-you-badge {
    margin-left: 0.25rem;
    padding: 0.18rem 0.42rem;
    background: #edf3ff;
    color: #406db0;
    font-size: 0.6rem;
}

.cms-role-pill {
    background: #edf3ff;
    color: #476cad;
}

.cms-role-admin {
    background: #f2edff;
    color: #7752bb;
}

.cms-status-active {
    background: #eaf7f0;
    color: #27825e;
}

.cms-status-inactive {
    background: #fff2ed;
    color: #bb6442;
}

.cms-user-edit {
    padding: 1rem 0 0 2.9rem;
}

.cms-user-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.cms-user-edit-grid .form-control,
.cms-user-edit-grid .form-select {
    min-width: 0;
    min-height: 39px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    font-size: 0.74rem;
}

.cms-user-edit-grid .btn {
    min-height: 39px;
    font-size: 0.72rem;
}

.cms-delete-user {
    padding-left: 2.9rem;
}

.cms-message-cell {
    max-width: 350px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.cms-data-table tbody td {
    color: #5f6e81;
    font-size: 0.78rem;
}

.cms-data-table a {
    color: #386ba9;
    font-weight: 500;
    text-decoration: none;
}

.cms-table-sub {
    display: block;
    margin-top: 0.2rem;
    color: #9aa4b2;
    font-size: 0.68rem;
}

.cms-table-badge {
    display: inline-block;
    padding: 0.3rem 0.5rem;
    border-radius: 99px;
    background: #f0f4fa;
    color: #65758d;
    font-size: 0.68rem;
}

.cms-pagination {
    padding-top: 1rem;
}

.cms-pagination .pagination {
    justify-content: flex-end;
    margin-bottom: 0;
}

.cms-empty-state {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #98a4b3;
    font-size: 0.8rem;
}

.cms-empty-state i {
    color: #63ae8a;
    font-size: 1.15rem;
}

.cms-mobile-menu {
    font-size: 1.2rem;
}

.cms-mobile-offcanvas {
    max-width: 290px;
}

.cms-mobile-offcanvas .offcanvas-body {
    padding: 0.75rem 1rem;
}

.cms-login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1.25rem;
    background:
        radial-gradient(ellipse at 12% 15%, rgba(42, 131, 202, 0.11), transparent 40%),
        radial-gradient(ellipse at 88% 87%, rgba(36, 163, 113, 0.1), transparent 38%),
        #f5f7fb;
    color: #293a50;
    font-family: 'Inter', system-ui, sans-serif;
}

.cms-login-card {
    width: min(100%, 445px);
    padding: 2.2rem;
    border: 1px solid #edf0f5;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 24px 80px rgba(38, 59, 87, 0.1);
}

.cms-login-heading {
    margin: 2.2rem 0 1.5rem;
}

.cms-login-heading .cms-overline {
    color: #5284d5;
}

.cms-login-heading h1 {
    margin: 0 0 0.45rem;
    color: #26384e;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.cms-login-heading p {
    margin: 0;
    color: #8591a1;
    font-size: 0.82rem;
    line-height: 1.65;
}

.cms-login-card .form-label {
    color: #56667b;
    font-size: 0.78rem;
    font-weight: 600;
}

.cms-login-card .form-control-lg {
    font-size: 0.88rem;
}

.cms-login-submit {
    min-height: 49px;
    border-radius: 0.75rem;
    font-size: 0.87rem;
    font-weight: 600;
}

.cms-login-footnote {
    margin: 1.3rem 0 0;
    color: #929dac;
    font-size: 0.71rem;
    text-align: center;
}

.cms-overline + h1 {
    margin-top: 0;
}

/* A distinct, polished identity for the private CMS workspace. */
.cms-body {
    --mb-primary: #087f70;
    --mb-primary-dark: #075e56;
    --mb-secondary: #c8924b;
    --cms-ink: #183b3d;
    --cms-muted: #748987;
    --cms-line: #e4eeea;
    background:
        radial-gradient(ellipse at 93% 3%, rgba(194, 224, 211, 0.23), transparent 34rem),
        #f4f8f5;
    color: var(--cms-ink);
}

.cms-body .btn-primary,
.cms-login-body .btn-primary {
    --bs-btn-bg: #087f70;
    --bs-btn-border-color: #087f70;
    --bs-btn-hover-bg: #075e56;
    --bs-btn-hover-border-color: #075e56;
    --bs-btn-active-bg: #075e56;
    --bs-btn-active-border-color: #075e56;
    --bs-btn-focus-shadow-rgb: 8, 127, 112;
}

.cms-body .btn-outline-primary,
.cms-login-body .btn-outline-primary {
    --bs-btn-color: #087f70;
    --bs-btn-border-color: #b8d7cd;
    --bs-btn-hover-bg: #087f70;
    --bs-btn-hover-border-color: #087f70;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #075e56;
    --bs-btn-active-border-color: #075e56;
}

.cms-sidebar {
    border-right: 1px solid rgba(238, 247, 242, 0.1);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(49, 137, 113, 0.3), transparent 22rem),
        linear-gradient(180deg, #173c3c 0%, #123332 58%, #102e30 100%);
    box-shadow: 12px 0 34px rgba(22, 61, 58, 0.08);
}

.cms-brand,
.cms-login-brand {
    color: #f3faf6;
}

.cms-brand small,
.cms-login-brand small {
    color: #a8c8bc;
}

.cms-brand-mark {
    background: linear-gradient(145deg, #ddf2e8, #a8d7c4);
    color: #126557;
    box-shadow: 0 8px 20px rgba(2, 24, 23, 0.16);
}

.cms-nav-label,
.cms-overline {
    color: #789b91;
}

.cms-sidebar .cms-nav-label {
    color: #88aaa0;
}

.cms-sidebar .cms-nav-link,
.cms-mobile-offcanvas .cms-nav-link {
    color: #c0d3cd;
}

.cms-sidebar .cms-nav-link > i,
.cms-mobile-offcanvas .cms-nav-link > i {
    color: #8eafa4;
}

.cms-sidebar .cms-nav-link:hover,
.cms-mobile-offcanvas .cms-nav-link:hover {
    background: rgba(228, 245, 236, 0.08);
    color: #fff;
}

.cms-sidebar .cms-nav-link.active,
.cms-mobile-offcanvas .cms-nav-link.active {
    background: linear-gradient(100deg, rgba(113, 196, 158, 0.23), rgba(113, 196, 158, 0.1));
    color: #f3fff8;
    box-shadow: inset 3px 0 #81d1aa;
}

.cms-sidebar .cms-nav-link.active > i,
.cms-mobile-offcanvas .cms-nav-link.active > i {
    color: #94dfb7;
}

.cms-mobile-offcanvas {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(49, 137, 113, 0.3), transparent 22rem),
        linear-gradient(180deg, #173c3c 0%, #123332 100%);
    color: #f3faf6;
}

.cms-mobile-offcanvas .offcanvas-header .btn-close {
    filter: invert(1);
}

.cms-login-body {
    --mb-primary: #087f70;
    --mb-primary-dark: #075e56;
}

.cms-sidebar-footer {
    border-top-color: rgba(237, 248, 241, 0.14);
}

.cms-avatar {
    background: rgba(173, 224, 196, 0.18);
    color: #d6f7e3;
}

.cms-account-copy strong {
    color: #f1f8f3;
}

.cms-account-copy span {
    color: #9bb9ae;
}

.cms-sidebar .cms-icon-button {
    background: rgba(237, 248, 241, 0.1);
    color: #c7ddd3;
}

.cms-sidebar .cms-icon-button:hover {
    background: rgba(255, 240, 240, 0.14);
    color: #ffc4c4;
}

.cms-topbar {
    border-bottom-color: rgba(219, 233, 225, 0.88);
    background: rgba(250, 252, 250, 0.88);
}

.cms-topbar-title {
    color: #6c8981;
}

.cms-preview-link {
    color: #426a60;
}

.cms-content {
    max-width: 1480px;
}

.cms-page-heading h1 {
    color: #193f3d;
}

.cms-page-heading p,
.cms-panel-heading p,
.cms-repeater-heading p {
    color: var(--cms-muted);
}

.cms-panel,
.cms-section-card,
.cms-stat-card {
    border-color: var(--cms-line);
    box-shadow: 0 8px 28px rgba(28, 73, 59, 0.045);
}

.cms-panel {
    border-radius: 1.1rem;
}

.cms-stat-card:hover,
.cms-section-card:hover {
    border-color: #c5ded2;
    box-shadow: 0 16px 34px rgba(28, 73, 59, 0.1);
}

.cms-stat-blue,
.cms-count-badge,
.cms-section-card-icon,
.cms-item-index {
    background: #e5f3ed;
    color: #167661;
}

.cms-stat-green {
    background: #e7f5ed;
    color: #287c58;
}

.cms-stat-violet {
    background: #f6f0e5;
    color: #a47435;
}

.cms-section-shortcut:hover {
    border-color: #c6ded3;
    background: #f7fbf8;
}

.cms-section-shortcut-icon {
    background: #e9f4ee;
}

.cms-live-badge {
    background: #e7f5ed;
    color: #26734f;
}

.cms-live-badge > span {
    background: #45aa78;
}

.cms-locale-tabs .nav-link.active {
    border-color: #cae3d7;
    background: #eaf5ee;
    color: #176c5c;
}

.cms-language-dot {
    background: #328f75;
}

.cms-language-dot-bn {
    background: #c58c44;
}

.cms-item-card {
    border-color: #e5eee8;
    background: #fbfdfb;
}

.cms-toggle input:checked + .cms-toggle-track {
    background: #18836a;
}

.cms-login-body {
    background:
        radial-gradient(ellipse at 12% 15%, rgba(56, 151, 122, 0.2), transparent 40%),
        radial-gradient(ellipse at 88% 87%, rgba(200, 146, 75, 0.16), transparent 38%),
        #eff5f0;
}

.cms-login-card {
    border-color: rgba(222, 236, 226, 0.9);
    border-radius: 1.25rem;
    box-shadow: 0 30px 90px rgba(24, 67, 57, 0.13);
}

.cms-login-heading .cms-overline {
    color: #218069;
}

.cms-login-heading h1 {
    color: #193f3d;
}

.cms-body .form-control:focus,
.cms-body .form-select:focus {
    border-color: #78bba5;
    box-shadow: 0 0 0 0.22rem rgba(8, 127, 112, 0.13);
}

.cms-body :is(a, button, input, textarea, select):focus-visible,
.cms-login-body :is(a, button, input, textarea, select):focus-visible {
    outline: 3px solid rgba(200, 146, 75, 0.72);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .cms-sidebar {
        display: none;
    }

    .cms-main {
        margin-left: 0;
    }

    .cms-topbar {
        min-height: 58px;
        padding: 0 1rem;
    }

    .cms-content {
        padding: 1.35rem;
    }
}

@media (max-width: 575.98px) {
    .cms-content {
        padding: 1rem 0.8rem 1.5rem;
    }

    .cms-topbar {
        min-height: 54px;
        padding: 0 0.8rem;
    }

    .cms-page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
        margin-bottom: 1.2rem;
    }

    .cms-page-heading h1 {
        font-size: 1.6rem;
    }

    .cms-panel {
        padding: 1rem;
        border-radius: 0.85rem;
    }

    .cms-editor-fields,
    .cms-item-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .cms-form-field-wide {
        grid-column: auto;
    }

    .cms-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cms-form-actions .btn {
        width: 100%;
    }

    .cms-repeater-heading {
        align-items: flex-start;
    }

    .cms-repeater-heading .btn {
        flex: 0 0 auto;
        font-size: 0.72rem;
    }

    .cms-user-card-heading {
        flex-wrap: wrap;
    }

    .cms-user-main {
        min-width: calc(100% - 58px);
    }

    .cms-user-edit {
        padding-left: 0;
    }

    .cms-user-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-delete-user {
        padding-left: 0;
    }

    .cms-login-card {
        padding: 1.45rem;
    }

    .cms-activity-row time {
        max-width: 70px;
        text-align: right;
    }
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.92) 0%, rgba(25, 135, 84, 0.88) 100%),
        url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1920&q=80') center/cover no-repeat;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.hero-title {
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 540px;
    line-height: 1.7;
}

.btn-hero {
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: var(--mb-transition);
}

.btn-hero-primary {
    background: #fff;
    color: var(--mb-primary-dark);
    border: none;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #fff;
    color: var(--mb-primary-dark);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    color: #fff;
    font-weight: 800;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Section utilities */
.section-padding {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 3.5rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mb-secondary);
    margin-bottom: 0.75rem;
}

.bg-medical-light {
    background-color: var(--mb-light);
}

/* Cards */
.card-medical {
    border: none;
    border-radius: var(--mb-radius);
    box-shadow: var(--mb-shadow);
    transition: var(--mb-transition);
    overflow: hidden;
    height: 100%;
}

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

.card-medical .card-img-top {
    height: 220px;
    object-fit: cover;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.icon-box-primary {
    background: rgba(11, 94, 215, 0.1);
    color: var(--mb-primary);
}

.icon-box-success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--mb-secondary);
}

/* Event cards */
.event-card .event-meta {
    font-size: 0.875rem;
    color: var(--mb-muted);
}

.event-card .badge-category {
    background: rgba(11, 94, 215, 0.1);
    color: var(--mb-primary);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
}

/* CTA Banner */
.cta-banner {
    background: var(--mb-gradient);
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-banner h3,
.cta-banner p {
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Stats counters */
.stat-counter {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-counter .counter-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--mb-primary);
    line-height: 1;
}

.stat-counter .counter-label {
    color: var(--mb-muted);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: var(--mb-radius);
    padding: 2rem;
    box-shadow: var(--mb-shadow);
    height: 100%;
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--mb-primary);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mb-secondary-light);
}

/* Partners */
.partner-logo-card {
    background: #fff;
    border-radius: var(--mb-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--mb-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-logo-card:hover {
    box-shadow: var(--mb-shadow);
    transform: translateY(-4px);
}

.partner-logo-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

/* Gallery */
.gallery-item {
    position: relative;
    border-radius: var(--mb-radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--mb-transition);
}

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

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 94, 215, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--mb-transition);
    color: #fff;
    font-size: 2rem;
}

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

.gallery-filter .btn {
    border-radius: 2rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
}

/* Page headers */
.page-header {
    background: var(--mb-gradient);
    padding: 8rem 0 4rem;
    margin-bottom: 0;
    color: #fff;
}

.page-header h1 {
    color: #fff;
}

.breadcrumb-medical {
    --bs-breadcrumb-divider: '›';
}

.breadcrumb-medical .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.breadcrumb-medical .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.65);
}

/* Forms */
.form-medical .form-control,
.form-medical .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border-color: #dee2e6;
}

.form-medical .form-control:focus {
    border-color: var(--mb-primary);
    box-shadow: 0 0 0 0.2rem rgba(11, 94, 215, 0.15);
}

.subscribe-card {
    border-radius: 1.25rem;
    box-shadow: var(--mb-shadow-lg);
    border: none;
    overflow: hidden;
}

.subscribe-card .card-header {
    background: var(--mb-gradient);
    color: #fff;
    padding: 2rem;
    border: none;
}

/* Footer */
.footer-medbridge {
    background: var(--mb-dark);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 4rem;
}

.footer-medbridge h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-medbridge a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--mb-transition);
}

.footer-medbridge a:hover {
    color: var(--mb-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--mb-transition);
}

.social-link:hover {
    background: var(--mb-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1050;
    transition: var(--mb-transition);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff;
}

/* Offer cards */
.offer-card {
    border: none;
    border-radius: var(--mb-radius);
    padding: 2rem;
    height: 100%;
    background: #fff;
    box-shadow: var(--mb-shadow);
    transition: var(--mb-transition);
    border-top: 4px solid var(--mb-primary);
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mb-shadow-lg);
}

.offer-highlight {
    display: inline-block;
    background: var(--mb-secondary-light);
    color: var(--mb-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

/* Timeline / process */
.process-step {
    position: relative;
    padding-left: 3rem;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--mb-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Lightbox modal */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-modal .modal-body {
    padding: 0;
}

.lightbox-modal img {
    width: 100%;
    border-radius: var(--mb-radius);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--mb-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: var(--mb-transition);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--mb-primary-dark);
    color: #fff;
}

/* Smooth scroll offset for sticky nav */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 5.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-stats {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        gap: 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .section-padding-sm {
        padding: 2rem 0;
    }
}

.cms-media-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.85rem 1rem;
}

.cms-media-upload .form-label {
    flex-basis: 100%;
    margin-bottom: -0.55rem;
}

.cms-media-upload input[type="file"] {
    flex: 1 1 18rem;
    max-width: 36rem;
}

.cms-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
    gap: 1rem;
}

.cms-media-card {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #e8edf2;
    border-radius: 1rem;
    background: #fff;
}

.cms-media-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.65rem;
    object-fit: cover;
    background: #f4f7f9;
}

.cms-media-card .form-control {
    min-width: 0;
    font-size: 0.75rem;
}

.cms-media-card .btn {
    justify-self: start;
}
