/* ==========================================================================
   BizHub Limited — Public site stylesheet
   Token-driven, accessible, mobile-friendly.
   ========================================================================== */

/* ===== Design Tokens ===== */
:root {
    /* Brand */
    --bh-primary: #17439B;
    --bh-primary-rgb: 23, 67, 155;
    --bh-secondary: #64748b;     /* aligned with slate palette */

    /* Neutral palette (slate) */
    --bh-dark: #0B1F45;
    --bh-muted: #64748b;
    --bh-light: #f8fafc;
    --bh-surface: #ffffff;
    --bh-surface-alt: #f1f5f9;
    --bh-border: #e2e8f0;
    --bh-border-strong: #cbd5e1;

    /* Status colors */
    --bh-success: #10b981;
    --bh-warning: #f59e0b;
    --bh-danger: #ef4444;
    --bh-info: #06b6d4;
    --bh-whatsapp: #25d366;

    /* Spacing scale (4px base) */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;

    /* Radius scale */
    --radius-sm: .375rem;
    --radius-md: .5rem;
    --radius-lg: .75rem;
    --radius-xl: 1rem;
    --radius-pill: 2rem;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(11, 31, 69, .05);
    --shadow-sm: 0 1px 3px rgba(11, 31, 69, .06), 0 1px 2px rgba(11, 31, 69, .04);
    --shadow-md: 0 6px 16px rgba(11, 31, 69, .08), 0 2px 4px rgba(11, 31, 69, .04);
    --shadow-lg: 0 14px 28px rgba(11, 31, 69, .10), 0 4px 8px rgba(11, 31, 69, .05);
    --shadow-xl: 0 24px 48px rgba(11, 31, 69, .14), 0 8px 16px rgba(11, 31, 69, .06);

    /* Motion */
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --t-fast: 150ms;
    --t-base: 220ms;
    --t-slow: 320ms;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    color: var(--bh-dark);
    font-family: 'Segoe UI', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, Tahoma, Roboto, Arial, sans-serif;
    line-height: 1.6;
    background: var(--bh-surface);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(var(--bh-primary-rgb), .18); color: var(--bh-dark); }

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

/* Accessible focus rings */
:focus-visible {
    outline: 3px solid rgba(var(--bh-primary-rgb), .35);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(var(--bh-primary-rgb), .25) !important;
    outline: none;
}

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

/* ===== Theme primary override ===== */
.btn-primary {
    --bs-btn-bg: var(--bh-primary);
    --bs-btn-border-color: var(--bh-primary);
    --bs-btn-hover-bg: var(--bh-primary);
    --bs-btn-hover-border-color: var(--bh-primary);
    --bs-btn-active-bg: var(--bh-primary);
    --bs-btn-active-border-color: var(--bh-primary);
}
.btn { transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background-color var(--t-fast), color var(--t-fast); }
.btn-primary { box-shadow: 0 4px 12px rgba(var(--bh-primary-rgb), .25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(var(--bh-primary-rgb), .32); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }
.btn-outline-primary { color: var(--bh-primary); border-color: var(--bh-primary); }
.btn-outline-primary:hover { background: var(--bh-primary); border-color: var(--bh-primary); }
.text-primary { color: var(--bh-primary) !important; }
.bg-primary { background-color: var(--bh-primary) !important; }
.border-primary { border-color: var(--bh-primary) !important; }
a { color: var(--bh-primary); transition: color var(--t-fast); }
a:hover { color: var(--bh-primary); filter: brightness(.85); }

/* ===== Notice Bar ===== */
.notice-bar {
    padding: 8px 16px;
    text-align: center;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .01em;
}
.notice-bar a { text-decoration: none; }
.notice-bar a:hover { text-decoration: underline; }

/* ===== Topbar (above main header) ===== */
.topbar {
    background: var(--bh-dark);
    color: #cbd5e1;
    padding: 8px 0;
    font-size: .85rem;
}
.topbar a { color: #cbd5e1; text-decoration: none; transition: color var(--t-fast); }
.topbar a:hover { color: #fff; }
.topbar .topbar-info { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar .topbar-info > span { display: inline-flex; align-items: center; gap: .35rem; }
.topbar .topbar-social a {
    margin-left: .5rem;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    transition: background var(--t-fast), transform var(--t-fast);
}
.topbar .topbar-social a:hover { background: rgba(var(--bh-primary-rgb), .8); color: #fff; transform: translateY(-1px); }

/* ===== Main Header / Navbar ===== */
.main-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--bh-border);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-sm);
}
.main-header .navbar-brand { gap: .65rem !important; }
.main-header .navbar-brand img { max-height: 50px; }
a.navbar-brand { white-space: normal; text-align: left; }

/* Scroll-to-top floating button */
.scroll-top-btn {
    position: fixed;
    bottom: 90px; left: 20px;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1040;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility var(--t-base);
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-header .navbar-brand .brand-text {
    font-weight: 700;
    color: var(--bh-dark);
    font-size: 1.15rem;
    letter-spacing: -.01em;
}
.main-header .navbar-nav { gap: .12rem; }
.main-header .navbar-nav .nav-link {
    color: var(--bh-dark);
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .95rem !important;
    border-radius: 999px;
    position: relative;
    transition: color var(--t-fast), background-color var(--t-fast);
}
.main-header .navbar-nav .nav-link:hover {
    color: var(--bh-primary);
    background-color: rgba(var(--bh-primary-rgb), .08);
}
.main-header .navbar-nav .nav-link.active {
    color: var(--bh-primary);
    background-color: rgba(var(--bh-primary-rgb), .12);
    font-weight: 600;
}
.main-header .header-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: nowrap; }
.main-header .header-actions .btn { white-space: nowrap; }
/* keep the centered menu from crowding the action buttons */
@media (min-width: 992px) {
    .main-header .navbar-nav { column-gap: .05rem; }
    .main-header .navbar-nav .nav-link { padding: .5rem .75rem !important; }
}
/* never let the desktop menu wrap onto a second line */
@media (min-width: 1200px) {
    .main-header .navbar-nav { flex-wrap: nowrap; }
}
.main-header .navbar-toggler {
    border: 1px solid var(--bh-border);
    padding: .35rem .55rem;
}
.main-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(var(--bh-primary-rgb), .18); }

/* Stack actions below nav on smaller screens for breathing room */
@media (max-width: 991.98px) {
    .main-header .navbar-nav { padding-top: .5rem; gap: .15rem; }
    .main-header .navbar-nav .nav-link {
        border-radius: .5rem;
        padding: .65rem .85rem !important;
        border-left: 3px solid transparent;
    }
    .main-header .navbar-nav .nav-link.active {
        border-left-color: var(--bh-primary);
    }
    .main-header .header-actions {
        padding-top: .75rem;
        margin-top: .5rem;
        border-top: 1px solid var(--bh-border);
    }
}

/* ===== Hero / Slider ===== */
.hero-slider .carousel-item {
    height: clamp(420px, 56vh, 640px);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 31, 69,.75) 0%, rgba(11, 31, 69,.45) 55%, rgba(11, 31, 69,.15) 100%);
}
.hero-slider .hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 2;
}
.hero-slider .hero-content h1 {
    font-size: clamp(1.65rem, 2.5vw + 1rem, 2.75rem);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.hero-slider .hero-content .lead {
    font-size: clamp(.95rem, .6vw + .85rem, 1.2rem);
    opacity: .95;
}
.hero-slider .carousel-indicators [data-bs-target] {
    width: 28px; height: 4px; border-radius: 2px;
    background: rgba(255, 255, 255, .55);
    border: none;
}
.hero-slider .carousel-indicators .active { background: #fff; }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 7%; opacity: .8; }

@media (max-width: 768px) {
    .hero-slider .carousel-item { height: clamp(380px, 70vh, 520px); }
}

/* When the quick-appointment widget is rendered without the hero slider above it,
   skip the negative margin overlap so it doesn't crash into the header. */
.quick-appointment.no-hero-overlap { margin-top: 2rem !important; }

/* ===== Section ===== */
.section { padding: 70px 0; }
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-title h2 {
    font-size: clamp(1.5rem, 1vw + 1.25rem, 2.15rem);
    font-weight: 700;
    color: var(--bh-dark);
    margin: 0;
    letter-spacing: -.01em;
}
.section-title .small-title {
    color: var(--bh-primary);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: .35rem;
    display: inline-block;
}
.section-title .small-title::before,
.section-title .small-title::after {
    content: '';
    display: inline-block;
    width: 18px; height: 2px; vertical-align: middle;
    background: currentColor;
    opacity: .5;
}
.section-title .small-title::before { margin-right: .5rem; }
.section-title .small-title::after { margin-left: .5rem; }
.section-title .subtitle { color: var(--bh-muted); margin-top: .5rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.bg-light-gray { background: var(--bh-light); }

/* ===== Cards (departments, services, doctors, packages) ===== */
.card-soft {
    border: 1px solid var(--bh-border);
    border-radius: var(--radius-lg);
    background: var(--bh-surface);
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base);
    overflow: hidden;
}
.card-soft:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--bh-primary-rgb), .25);
}

.dept-card { padding: 1.75rem 1.5rem; text-align: center; }
.dept-card .dept-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--bh-primary-rgb), .18), rgba(var(--bh-primary-rgb), .06));
    color: var(--bh-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    transition: transform var(--t-base) var(--ease-out);
}
.dept-card:hover .dept-icon { transform: scale(1.08) rotate(-3deg); }
.dept-card h5 { font-weight: 600; margin-bottom: .5rem; }
.dept-card p { color: var(--bh-muted); margin-bottom: 1rem; }

.service-card { display: flex; gap: 1rem; padding: 1.25rem; }
.service-card .service-icon {
    width: 50px; height: 50px; flex-shrink: 0;
    border-radius: var(--radius-md);
    background: rgba(var(--bh-primary-rgb), .1);
    color: var(--bh-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}

.person-card .person-photo {
    aspect-ratio: 1; overflow: hidden;
    background: var(--bh-surface-alt);
}
.person-card .person-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}
.person-card:hover .person-photo img { transform: scale(1.07); }
.person-card .person-body { padding: 1rem 1.25rem 1.25rem; text-align: center; }
.person-card h5 { margin-bottom: .25rem; font-weight: 600; }
.person-card .designation { color: var(--bh-muted); font-size: .9rem; margin-bottom: .5rem; }
.person-card .dept {
    display: inline-block;
    padding: .2rem .65rem;
    background: rgba(var(--bh-primary-rgb), .1);
    color: var(--bh-primary);
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 500;
}

.package-card .package-image { aspect-ratio: 16/10; background: var(--bh-surface-alt); overflow: hidden; }
.package-card .package-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}
.package-card:hover .package-image img { transform: scale(1.05); }
.package-card .package-body { padding: 1.25rem; }
.package-card .price { font-size: 1.5rem; font-weight: 700; color: var(--bh-primary); }
.package-card .price-old { text-decoration: line-through; color: var(--bh-muted); margin-left: .5rem; font-size: .9rem; font-weight: 400; }

.blog-card .blog-image { aspect-ratio: 16/9; background: var(--bh-surface-alt); overflow: hidden; }
.blog-card .blog-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}
.blog-card:hover .blog-image img { transform: scale(1.06); }
.blog-card .blog-body { padding: 1.25rem; }
.blog-card .blog-meta { color: var(--bh-muted); font-size: .8rem; margin-bottom: .5rem; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.blog-card h5 { font-weight: 600; line-height: 1.35; }
.blog-card h5 a { color: var(--bh-dark); text-decoration: none; }
.blog-card h5 a:hover { color: var(--bh-primary); }

/* ===== Stats / Counters ===== */
.stats-section {
    background: linear-gradient(135deg, var(--bh-primary) 0%, color-mix(in srgb, var(--bh-primary) 70%, #000) 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 10%, rgba(255,255,255,.15) 0%, transparent 45%),
                      radial-gradient(circle at 80% 90%, rgba(255,255,255,.10) 0%, transparent 50%);
    pointer-events: none;
}
.stats-section .container { position: relative; z-index: 1; }
.stats-section .stat-item { text-align: center; }
.stats-section .stat-icon { font-size: 2.5rem; opacity: .9; margin-bottom: .5rem; }
.stats-section .stat-value { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.stats-section .stat-label { opacity: .9; font-size: 1rem; }

/* ===== Testimonial ===== */
.testimonial-card {
    background: var(--bh-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--bh-border);
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial-card .quote {
    color: var(--bh-muted);
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    padding-top: 1rem;
}
.testimonial-card .quote::before {
    content: '\201C';
    position: absolute; top: -.5rem; left: 50%; transform: translateX(-50%);
    font-size: 3rem; line-height: 1;
    color: rgba(var(--bh-primary-rgb), .25);
    font-family: Georgia, serif;
}
.testimonial-card img.t-photo {
    width: 64px; height: 64px; border-radius: 50%;
    object-fit: cover; margin-bottom: .5rem;
    border: 3px solid var(--bh-surface);
    box-shadow: 0 0 0 2px rgba(var(--bh-primary-rgb), .25);
}
.testimonial-card .t-rating { color: var(--bh-warning); margin-bottom: .35rem; }

/* ===== Footer ===== */
.main-footer {
    background: var(--bh-dark);
    color: #cbd5e1;
    padding: 60px 0 0;
    position: relative;
}
.main-footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--bh-primary), color-mix(in srgb, var(--bh-primary) 60%, #fff));
}
.main-footer::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 80px;
    background: radial-gradient(ellipse at center top, rgba(var(--bh-primary-rgb), .08) 0%, transparent 70%);
    pointer-events: none;
}
.main-footer > .container { position: relative; z-index: 1; }
.main-footer h6 { color: #fff; margin-bottom: 1rem; font-weight: 600; letter-spacing: .01em; }
.main-footer a { color: #cbd5e1; text-decoration: none; transition: color var(--t-fast), padding-left var(--t-fast); }
.main-footer .footer-links a:hover { color: #fff; padding-left: 4px; }
.main-footer a:hover { color: #fff; }
.main-footer .footer-links li { padding: 5px 0; }
.main-footer .text-light-emphasis { color: #94a3b8 !important; }
.main-footer .footer-bottom {
    border-top: 1px solid #334155;
    margin-top: 40px;
    padding: 20px 0;
    font-size: .875rem;
    color: #94a3b8;
}
.main-footer .social-links a {
    display: inline-flex;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    align-items: center; justify-content: center;
    margin-right: .35rem;
    transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
.main-footer .social-links a:hover { background: var(--bh-primary); color: #fff; transform: translateY(-2px); }

/* ===== "Developed by iSoft" credit (footer + admin sidebar) ===== */
.dev-credit-line { display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.dev-credit {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .15rem .7rem;
    border-radius: 999px;
    background: rgba(var(--bh-primary-rgb), .14);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--t-fast), transform var(--t-fast);
}
.dev-credit:hover { background: rgba(var(--bh-primary-rgb), .28); color: #fff !important; transform: translateY(-1px); }
.dev-credit-heart { color: #ef4444; animation: dev-heartbeat 1.4s ease-in-out infinite; }
@keyframes dev-heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.28); }
    30% { transform: scale(1); }
    45% { transform: scale(1.18); }
    60% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .dev-credit-heart { animation: none; } }

/* ===== Share buttons (detail pages, #22) ===== */
.share-buttons { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin: 1rem 0; }
.share-buttons .share-label { font-weight: 600; color: var(--bh-muted); font-size: .9rem; }
.share-buttons a, .share-buttons button {
    width: 38px; height: 38px; border: 1px solid var(--bh-border); background: var(--bh-surface);
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: var(--bh-dark); font-size: 1.05rem; cursor: pointer;
    transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.share-buttons a:hover, .share-buttons button:hover { transform: translateY(-2px); color: #fff; }
.share-buttons .s-fb:hover { background: #1877f2; border-color: #1877f2; }
.share-buttons .s-x:hover { background: #000; border-color: #000; }
.share-buttons .s-wa:hover { background: #25d366; border-color: #25d366; }
.share-buttons .s-in:hover { background: #0a66c2; border-color: #0a66c2; }
.share-buttons .s-copy:hover { background: var(--bh-primary); border-color: var(--bh-primary); }

/* ===== Floating Buttons ===== */
.floating-buttons {
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 1040;
    display: flex; flex-direction: column; gap: 10px;
}
.floating-buttons a {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base);
    position: relative;
}
.floating-buttons a:hover { transform: scale(1.08); color: #fff; box-shadow: var(--shadow-lg); }
.fab-whatsapp { background: var(--bh-whatsapp); }
.fab-call { background: var(--bh-primary); }
/* Subtle pulse ring on the call button to nudge attention */
.fab-call::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(var(--bh-primary-rgb), .5);
    animation: fab-pulse 2.6s infinite;
}
@keyframes fab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--bh-primary-rgb), .5); }
    70% { box-shadow: 0 0 0 14px rgba(var(--bh-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--bh-primary-rgb), 0); }
}

/* ===== Page hero (sub-pages) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--bh-primary) 0%, color-mix(in srgb, var(--bh-primary) 60%, #000) 100%);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18) 0%, transparent 45%),
                      radial-gradient(circle at 85% 80%, rgba(255,255,255,.12) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(1.6rem, 1.5vw + 1.1rem, 2.5rem);
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}
.page-hero .breadcrumb { background: transparent; justify-content: center; padding: 0; margin: 0; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* ===== Doctor profile, Department detail, etc. ===== */
.profile-photo {
    width: 100%; max-width: 280px;
    aspect-ratio: 1;
    margin: 0 auto;
    background: var(--bh-surface-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-info dl { margin-bottom: 0; }
.profile-info dt { color: var(--bh-muted); font-weight: 500; font-size: .85rem; }
.profile-info dd { font-weight: 500; margin-bottom: .65rem; }

/* ===== Appointment & contact form ===== */
.contact-info-card {
    background: var(--bh-surface);
    border: 1px solid var(--bh-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.contact-info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-info-card .icon-wrap {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(var(--bh-primary-rgb), .1);
    color: var(--bh-primary);
    display: flex; align-items: center; justify-content: center;
}

/* Form polish */
.form-control, .form-select {
    border-color: var(--bh-border);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus, .form-select:focus {
    border-color: var(--bh-primary);
}
.form-label { font-weight: 500; margin-bottom: .35rem; }

/* ===== Star rating display ===== */
.star-rating { color: var(--bh-warning); }
.star-rating .star-empty { color: var(--bh-border-strong); }

/* ===== Pagination ===== */
.pagination { gap: .25rem; }
.page-link {
    color: var(--bh-primary);
    border-color: var(--bh-border);
    border-radius: var(--radius-md) !important;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.page-link:hover { background: rgba(var(--bh-primary-rgb), .08); transform: translateY(-1px); }
.page-item.active .page-link {
    background: var(--bh-primary);
    border-color: var(--bh-primary);
    box-shadow: 0 4px 10px rgba(var(--bh-primary-rgb), .25);
}

/* ===== Gallery grid ===== */
.gallery-item {
    aspect-ratio: 1;
    background: var(--bh-surface-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: '\F4F1'; /* bi-zoom-in */
    font-family: 'bootstrap-icons';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(11, 31, 69,.45), rgba(11, 31, 69,.15));
    opacity: 0;
    transition: opacity var(--t-base);
}
.gallery-item:hover::after { opacity: 1; }

/* ===== TinyMCE rendered content ===== */
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { color: var(--bh-dark); margin-top: 1.5rem; line-height: 1.3; }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.rich-content table { width: 100%; margin-bottom: 1rem; overflow-x: auto; display: block; }
.rich-content p { margin-bottom: 1rem; }
.rich-content blockquote {
    border-left: 4px solid var(--bh-primary);
    background: var(--bh-light);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--bh-dark);
}
.rich-content ul, .rich-content ol { padding-left: 1.5rem; }

/* ===== Responsive (desktop-first refinements) ===== */
@media (max-width: 991.98px) {
    .section { padding: 50px 0; }
    .page-hero { padding: 50px 0 40px; }
    body.has-mobile-cta { padding-bottom: 68px; }
    .floating-buttons { bottom: 84px; right: 14px; gap: 8px; }
    .floating-buttons a { width: 46px; height: 46px; font-size: 1.1rem; }
    .topbar .topbar-info { justify-content: center; gap: .9rem; }
}

@media (max-width: 575.98px) {
    .section { padding: 38px 0; }
    .hero-slider .carousel-item { height: 320px; }
    .hero-slider .btn-lg { padding: .5rem 1rem; font-size: .9rem; }
    .stats-section { padding: 40px 0; }
    .stats-section .stat-value { font-size: 1.75rem; }
    .stats-section .stat-icon { font-size: 2rem; }
    .testimonial-card { padding: 1.25rem; }
    .person-card .person-body { padding: .75rem 1rem 1rem; }
    .dept-card { padding: 1.25rem; }
    .topbar { padding: 6px 0; font-size: .75rem; }
    .package-card .price { font-size: 1.25rem; }
    .section-title { margin-bottom: 1.75rem; }
    .main-header .navbar-brand .brand-text { font-size: 1rem; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .main-header .navbar-brand img { max-height: 40px; }
}

/* Mobile table polish */
.table-responsive { -webkit-overflow-scrolling: touch; }
@media (max-width: 575.98px) {
    .table thead th, .table tbody td { font-size: .85rem; padding: .5rem; }
    .card-soft .card-body { padding: 1rem; }
    .card-soft .card-header { padding: .75rem 1rem; }
}

/* ===== Mobile sticky bottom CTA bar ===== */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--bh-border);
    box-shadow: 0 -2px 14px rgba(11, 31, 69, .08);
    z-index: 1035;
    padding: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.mobile-cta-bar .row { margin: 0; }
.mobile-cta-bar .cta-btn {
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    padding: .65rem;
    border-radius: var(--radius-md);
    font-size: .85rem; font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform var(--t-fast) var(--ease-out), filter var(--t-fast);
}
.mobile-cta-bar .cta-btn:active { transform: scale(.96); }
.mobile-cta-bar .cta-call { background: rgba(239,68,68,.1); color: #dc2626; }
.mobile-cta-bar .cta-book { background: var(--bh-primary); color: #fff !important; box-shadow: 0 4px 10px rgba(var(--bh-primary-rgb), .25); }
.mobile-cta-bar .cta-whatsapp { background: rgba(37,211,102,.1); color: #128c4f; }

@media (max-width: 991.98px) { .mobile-cta-bar { display: block; } }

/* ===== Trust Signals (Smart Landing) ===== */
.trust-signal-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--bh-surface);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.trust-signal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trust-signal-card .ts-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--bh-primary-rgb), .18), rgba(var(--bh-primary-rgb), .06));
    color: var(--bh-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.75rem; margin-bottom: 1rem;
}
.trust-signal-card h6 { font-weight: 600; margin-bottom: .35rem; }
.trust-signal-card p { color: var(--bh-muted); font-size: .85rem; margin: 0; }

/* ===== Inline appointment widget (Smart Landing) ===== */
.quick-appointment {
    background: linear-gradient(135deg, var(--bh-primary) 0%, color-mix(in srgb, var(--bh-primary) 65%, #000) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: -3rem auto 0;
    max-width: 1100px;
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.quick-appointment::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 90% 10%, rgba(255,255,255,.15) 0%, transparent 45%);
    pointer-events: none;
}
.quick-appointment > * { position: relative; z-index: 1; }
.quick-appointment h3 { font-weight: 700; margin-bottom: .25rem; }
.quick-appointment p { opacity: .9; margin-bottom: 1rem; }
.quick-appointment .form-control,
.quick-appointment .form-select {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(255,255,255,.3);
    color: var(--bh-dark);
}
.quick-appointment .form-control:focus,
.quick-appointment .form-select:focus {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 .2rem rgba(255,255,255,.25);
}
.quick-appointment .btn-light { color: var(--bh-primary); font-weight: 600; }

@media (max-width: 991.98px) {
    .quick-appointment { padding: 1.5rem; margin-top: -2rem; border-radius: var(--radius-lg); }
    .quick-appointment h3 { font-size: 1.25rem; }
}

/* ===== OPD timing + map block ===== */
.opd-card {
    background: linear-gradient(135deg, #fff 0%, var(--bh-light) 100%);
    border: 1px solid var(--bh-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-xs);
}
.opd-card h5 { color: var(--bh-primary); margin-bottom: 1rem; }
.opd-card .opd-row {
    display: flex; justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px dashed var(--bh-border);
}
.opd-card .opd-row:last-child { border-bottom: none; }
.opd-card .day { font-weight: 500; color: var(--bh-dark); }
.opd-card .time { color: var(--bh-muted); font-size: .9rem; }
.opd-card .closed { color: var(--bh-danger); }

/* ===== Service grid (improved) ===== */
.service-grid-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--bh-surface);
    border: 1px solid var(--bh-border);
    transition: transform var(--t-base) var(--ease-out), border-color var(--t-base), box-shadow var(--t-base);
    cursor: pointer;
    height: 100%;
}
.service-grid-card:hover {
    transform: translateY(-6px);
    border-color: var(--bh-primary);
    box-shadow: 0 14px 28px rgba(var(--bh-primary-rgb), .15);
}
.service-grid-card:hover .sg-icon { background: var(--bh-primary); color: #fff; }
.service-grid-card .sg-icon {
    width: 72px; height: 72px;
    border-radius: var(--radius-xl);
    background: rgba(var(--bh-primary-rgb), .1);
    color: var(--bh-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 1rem;
    transition: all var(--t-base) var(--ease-out);
}
.service-grid-card h6 { font-weight: 600; color: var(--bh-dark); margin-bottom: .5rem; }
.service-grid-card p { color: var(--bh-muted); font-size: .85rem; margin: 0; }

/* ===== Counter / reveal animation ===== */
.counter[data-counter] { transition: opacity var(--t-slow); }

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="100"] { transition-delay: .08s; }
[data-reveal-delay="200"] { transition-delay: .16s; }
[data-reveal-delay="300"] { transition-delay: .24s; }
[data-reveal-delay="400"] { transition-delay: .32s; }

/* ===== Hero CTA badges ===== */
.hero-slider .hero-content .hero-badges {
    display: flex; gap: .5rem; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.hero-slider .hero-content .hero-badges .badge {
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: .35rem .75rem;
    font-weight: 500;
    font-size: .75rem;
    border-radius: var(--radius-pill);
}

/* ===== Utility helpers ===== */
.text-balance { text-wrap: balance; }
.btn-pill { border-radius: var(--radius-pill); }
.shadow-soft { box-shadow: var(--shadow-md) !important; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bh-muted);
}
.empty-state .empty-icon {
    font-size: 3rem;
    color: var(--bh-border-strong);
    margin-bottom: .75rem;
}

/* Skeleton (for async loaders if needed) */
.skeleton {
    background: linear-gradient(90deg, var(--bh-surface-alt) 25%, #e2e8f0 50%, var(--bh-surface-alt) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Print */
@media print {
    .topbar, .main-header, .main-footer, .floating-buttons, .mobile-cta-bar, .notice-bar,
    .scroll-top-btn, .share-buttons, .form-actions-bar,
    .d-print-none, [data-newsletter-form], form[data-submit-spinner] { display: none !important; }
    body { color: #000; background: #fff !important; }
    a { color: #000 !important; text-decoration: none !important; }
    .page-hero {
        background: #fff !important;
        color: #000 !important;
        border-bottom: 1px solid #000;
        padding: 1rem 0 !important;
    }
    .page-hero::before { display: none !important; }
    .page-hero h1, .page-hero .breadcrumb,
    .page-hero .breadcrumb a, .page-hero .breadcrumb-item.active { color: #000 !important; }
    .card-soft, .app-card { box-shadow: none !important; border: 1px solid #ccc !important; }
    .sticky-top { position: static !important; }

    /* Compact spacing so content fits on a single page */
    @page { margin: 12mm; }
    .section { padding: 0 !important; }
    .page-hero { padding: .5rem 0 !important; border-bottom: 1px solid #ccc; }
    .page-hero .breadcrumb { display: none !important; }
    .card-soft, .app-card { padding: 1rem !important; }
    .card-soft.p-4, .card-soft.p-md-5 { padding: 1rem !important; }

    /* Appointment confirmation: tighten the success block */
    .appt-confirm-icon { width: 52px !important; height: 52px !important; margin-bottom: .5rem !important; }
    .appt-confirm-icon i { font-size: 1.5rem !important; }
}

/* ============================================================
   Scroll-reveal & entrance animations
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s var(--ease-out, ease), transform .6s var(--ease-out, ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal][data-reveal-from="left"]  { transform: translateX(-30px); }
[data-reveal][data-reveal-from="right"] { transform: translateX(30px); }
[data-reveal][data-reveal-from="zoom"]  { transform: scale(.93); }
[data-reveal][data-reveal-from="left"].revealed,
[data-reveal][data-reveal-from="right"].revealed,
[data-reveal][data-reveal-from="zoom"].revealed { transform: none; }

/* Hero entrance */
@keyframes cfFadeDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes cfFadeUp   { from { opacity: 0; transform: translateY(18px); }  to { opacity: 1; transform: none; } }
@keyframes cfFloat     { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.page-hero h1 { animation: cfFadeDown .7s var(--ease-out, ease) both; }
.page-hero > .container > p,
.page-hero .breadcrumb { animation: cfFadeDown .7s var(--ease-out, ease) .14s both; }
.page-hero .mb-2 i { animation: cfFadeUp .7s var(--ease-out, ease) both; }

/* Carousel caption entrance */
.carousel-item.active .carousel-caption > * { animation: cfFadeUp .7s var(--ease-out, ease) both; }
.carousel-item.active .carousel-caption > *:nth-child(2) { animation-delay: .15s; }
.carousel-item.active .carousel-caption > *:nth-child(3) { animation-delay: .30s; }

/* Count-up number */
[data-counter] { display: inline-block; font-variant-numeric: tabular-nums; }

/* Gentle float for hero/CTA icons that opt in */
.bh-float { animation: cfFloat 3.5s ease-in-out infinite; }

/* Respect reduced-motion: always show content, kill entrance motion */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .page-hero h1, .page-hero > .container > p, .page-hero .breadcrumb, .page-hero .mb-2 i,
    .carousel-item.active .carousel-caption > *, .bh-float { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BizHub identity layer
   ───────────────────────────────────────────────────────────────────────────
   BizHub is infrastructure, not a marketing agency — the page should read like
   a utility's annual report crossed with a platform site: gridded, measured,
   confident. Nothing soft, no gradients, almost no rounding.

   Gold (--bh-accent) is a MARKER, never a large fill and never body text —
   #E0A526 on white is ~1.9:1 and fails WCAG AA. Use --bh-accent-ink for text.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Warm paper, never pure #fff (PP-WORKFLOW §12.7) */
    --bh-paper: #F7F5F1;
    --bh-surface-warm: #FFFFFF;
    --bh-surface-alt-warm: #EFEBE4;
    --bh-line: #E2DDD3;

    --bh-accent: #E0A526;
    --bh-accent-rgb: 224, 165, 38;
    --bh-accent-ink: #8A6209;      /* AA-safe gold for text */
    --bh-primary-ink: #123679;     /* AA-safe blue for text on white */
    --bh-ink: #0B1F45;
    --bh-ink-rgb: 11, 31, 69;

    --bh-font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --bh-font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;

    --bh-notch: 18px;
}

html[lang="bn"] {
    --bh-font-head: 'Anek Bangla', 'Hind Siliguri', 'Segoe UI', sans-serif;
    --bh-font-body: 'Hind Siliguri', 'Segoe UI', sans-serif;
}

body {
    font-family: var(--bh-font-body);
    background: var(--bh-paper);
}

h1, h2, h3, h4, h5, .bh-display {
    font-family: var(--bh-font-head);
    letter-spacing: -0.02em;
}

/* Prices, stat counters and table figures must not jitter as digits change. */
.bh-num, .stat-value, .plan-price, table td, table th {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ── The mesh: the pixel-mosaic "B" of the logo, abstracted ─────────────── */
.bh-mesh {
    position: relative;
    background-image: radial-gradient(rgba(255, 255, 255, .10) 1.5px, transparent 1.6px);
    background-size: 14px 14px;
}
.bh-mesh-ink {
    background-image: radial-gradient(rgba(var(--bh-ink-rgb), .07) 1.5px, transparent 1.6px);
    background-size: 14px 14px;
}
.bh-divider-mesh {
    height: 120px;
    background-image: radial-gradient(rgba(var(--bh-ink-rgb), .06) 1.5px, transparent 1.6px);
    background-size: 14px 14px;
}

/* ── The node: a 6px gold SQUARE, never a circle ────────────────────────── */
.bh-node::before,
.bh-list li::before,
.bh-eyebrow::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--bh-accent);
    margin-right: .6rem;
    vertical-align: middle;
    flex: 0 0 auto;
}
.bh-list { list-style: none; padding-left: 0; }
.bh-list li { display: flex; align-items: flex-start; gap: .1rem; margin-bottom: .5rem; }
.bh-list li::before { margin-top: .55em; }

.bh-eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--bh-font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bh-accent-ink);
    margin-bottom: .75rem;
}
.band--ink .bh-eyebrow { color: var(--bh-accent); }

/* ── Pixel notch: one clipped top-right corner on every card ────────────── */
.bh-card,
.card-soft {
    background: var(--bh-surface-warm);
    border: 1px solid var(--bh-line);
    border-radius: 3px;
    clip-path: polygon(0 0, calc(100% - var(--bh-notch)) 0, 100% var(--bh-notch), 100% 100%, 0 100%);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), --bh-notch var(--t-base);
}
.bh-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bh-card:hover { --bh-notch: 24px; }

/* ── Gold underline that draws itself in on reveal ──────────────────────── */
.bh-mark {
    position: relative;
    white-space: nowrap;
}
.bh-mark::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -.12em;
    height: 3px;
    background: var(--bh-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 520ms var(--ease-out) 160ms;
}
.revealed .bh-mark::after,
.bh-mark.revealed::after { transform: scaleX(1); }
/* Headings outside the reveal system still get the underline. */
h1:not([data-reveal]) .bh-mark::after,
h2:not([data-reveal]) .bh-mark::after { transform: scaleX(1); }

/* ── Band rhythm: ink → paper → white → rule, never 3 the same in a row ── */
.band--ink { background: var(--bh-ink); color: #fff; }
.band--ink h1, .band--ink h2, .band--ink h3, .band--ink h4 { color: #fff; }
.band--paper { background: var(--bh-paper); }
.band--white { background: var(--bh-surface-warm); }
.band--rule { background: var(--bh-paper); border-top: 1px solid rgba(var(--bh-accent-rgb), .45); position: relative; }

/* Big ghosted section numerals — the single cheapest cure for the
   "three identical cards in a row" generated-template look. */
.band--rule > .container { position: relative; }
.bh-index {
    position: absolute;
    top: -.35em; left: -.06em;
    font-family: var(--bh-font-head);
    font-weight: 700;
    font-size: clamp(48px, 9vw, 96px);
    line-height: 1;
    color: rgba(var(--bh-ink-rgb), .06);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.band--rule > .container > *:not(.bh-index) { position: relative; z-index: 1; }

/* ── Buttons: squared, deliberate ───────────────────────────────────────── */
.btn-bh-gold {
    background: var(--bh-accent);
    color: var(--bh-ink);
    border: 1px solid var(--bh-accent);
    border-radius: 3px;
    font-weight: 600;
}
.btn-bh-gold:hover { background: #cf9620; border-color: #cf9620; color: var(--bh-ink); }
.btn-bh-ghost {
    background: transparent;
    color: var(--bh-accent);
    border: 1px solid rgba(var(--bh-accent-rgb), .7);
    border-radius: 3px;
    font-weight: 600;
}
.btn-bh-ghost:hover { background: rgba(var(--bh-accent-rgb), .12); color: var(--bh-accent); }

/* ── Status pills for ConcernStatus / CoverageStatus ────────────────────── */
.bh-status { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 2px; }
.bh-status--live { background: rgba(16, 185, 129, .12); color: #0a7355; }
.bh-status--upcoming { background: rgba(var(--bh-primary-rgb), .10); color: var(--bh-primary-ink); }
.bh-status--planned { background: rgba(var(--bh-ink-rgb), .08); color: var(--bh-ink); }

/* ── Motion: precise, not bouncy. 14px of travel, never 40. ─────────────────
   NOTE: site.js adds the class `revealed` (no is- prefix). Any rule here must
   use that exact name — a mismatched selector leaves every element at
   opacity:0 and ships a blank page that still returns HTTP 200 (§9.85).
   This only retunes the distance/duration of the rules defined above. */
[data-reveal] {
    transform: translateY(14px);
    transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .bh-mark::after { transform: scaleX(1) !important; }
}

/* ── Overflow safety net (PP-WORKFLOW §12.1) ────────────────────────────── */
body { overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
table { max-width: 100%; }
.container, .container-fluid { overflow-wrap: break-word; }
h1, h2, h3, h4, p, a, span, li { overflow-wrap: break-word; }
.navbar-brand { min-width: 0; }
.navbar-brand span { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1199.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}
@media (max-width: 767.98px) {
    .bh-index { font-size: 44px; opacity: .7; }
    .section, .page-hero { padding: 40px 0; }
}

/* ── Figures must never break mid-number ──────────────────────────────────
   The global `overflow-wrap: break-word` safety net (needed for long Bengali
   compounds and URLs) will happily split ৳20,00,000 into "৳20,00,00" + "0".
   Money and counters opt out and shrink instead. */
.bh-num, .ir-figure, .stat-value, .plan-price, [data-counter], [data-bn-counter] {
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
}
.ir-figure, .plan-price {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

/* ── Footer action row (search + CTA + login, moved down from the header) ── */
.footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-actions .footer-search { flex: 1 1 260px; max-width: 340px; }
.footer-actions .footer-search .form-control {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}
.footer-actions .footer-search .form-control::placeholder { color: rgba(255, 255, 255, .55); }
.footer-actions .footer-search .form-control:focus {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(var(--bh-accent-rgb), .25);
}
.footer-action-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 575.98px) {
    .footer-actions { flex-direction: column; align-items: stretch; }
    .footer-actions .footer-search { max-width: none; }
    .footer-action-buttons .btn { flex: 1 1 auto; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Inner-page identity — the same language as the home page, applied to the
   ~15 pages that share _PageHero and .card-soft. Written as an override block
   so the base component styles above stay intact.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page hero: flat ink + mesh, left-aligned, gold-marked last word ─────── */
.page-hero {
    background: var(--bh-ink);
    background-image: radial-gradient(rgba(255, 255, 255, .10) 1.5px, transparent 1.6px);
    background-size: 14px 14px;
    color: #fff;
    text-align: left;
    padding: 62px 0 54px;
    border-bottom: 3px solid var(--bh-accent);
}
.page-hero::before { content: none; }          /* kill the ported gradient wash */
.page-hero .page-hero-title {
    font-family: var(--bh-font-head);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    color: #fff;
}
.page-hero .page-hero-sub {
    color: rgba(255, 255, 255, .72);
    max-width: 62ch;
    font-size: 1.02rem;
}
.page-hero .page-hero-icon { font-size: 3.25rem; color: rgba(255, 255, 255, .16); }
.page-hero .breadcrumb { margin: 0; font-size: .82rem; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .35); }
.page-hero .breadcrumb a { color: var(--bh-accent); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; filter: none; }
.page-hero .breadcrumb-item.active { color: rgba(255, 255, 255, .6); }
/* The hero is static, so draw its underline immediately rather than on reveal. */
.page-hero .bh-mark::after { transform: scaleX(1); }

@media (max-width: 767.98px) {
    .page-hero { padding: 40px 0 34px; }
    .page-hero .page-hero-sub { font-size: .95rem; }
}

/* ── Cards: precise hover, gold hairline on the way in ──────────────────── */
.card-soft {
    box-shadow: none;
    position: relative;
}
.card-soft::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: var(--bh-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--t-base) var(--ease-out);
}
a:hover > .card-soft::after,
.card-soft:hover::after { transform: scaleX(1); }
a:hover > .card-soft,
.card-soft:hover {
    transform: translateY(-4px);
    border-color: var(--bh-line);
    box-shadow: var(--shadow-md);
}

/* Icon tiles inside cards: a square plate, not a bare glyph */
.card-soft > .bi:first-child,
.card-soft .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 3px;
    background: rgba(var(--bh-primary-rgb), .08);
    color: var(--bh-primary);
    font-size: 1.35rem !important;
    margin-bottom: .35rem;
}

/* ── Section headings get the eyebrow + rule treatment ──────────────────── */
.section > .container > .text-center > h3,
.section-title {
    font-family: var(--bh-font-head);
    letter-spacing: -0.02em;
}

/* ── Rich text from the admin editor ────────────────────────────────────── */
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin-bottom: .75rem; }
.rich-text ul, .rich-text ol { padding-left: 1.15rem; margin-bottom: .75rem; }
.rich-text li { margin-bottom: .3rem; }

/* ── Breathing room so short pages do not look abandoned ────────────────── */
.section { padding: 72px 0; }
@media (max-width: 767.98px) { .section { padding: 44px 0; } }
