/* ═══════════════════════════════════════════════════════════════
   HOME PAGE — Professional Redesign
   ═══════════════════════════════════════════════════════════════ */
:root {
    --hm-primary:    #dc2626;
    --hm-primary-d:  #b91c1c;
    --hm-accent:     #7C3AED;
    --hm-success:    #16A34A;
    --hm-warn:       #D97706;
    --hm-info:       #2563EB;
    --hm-bg:         #F8FAFC;
    --hm-bg-alt:     #F3F4F6;
    --hm-border:     #E5E7EB;
    --hm-dark:       #1F2937;
    --hm-muted:      #6B7280;
    --hm-radius:     14px;
    --hm-shadow:     0 4px 14px rgba(15, 23, 42, .06);
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0B5563 0%, #0d6e7f 55%, #11808F 100%);
    color: #fff;
    padding: 70px 0 110px;
    overflow: hidden;
}
.hero-section::before,
.hero-section::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.05); pointer-events: none;
}
.hero-section::before { width: 380px; height: 380px; top: -120px; right: -120px; }
.hero-section::after  { width: 280px; height: 280px; bottom: -80px; left: -80px; }
.hero-section > .container { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff; padding: 7px 16px; border-radius: 99px;
    font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.hero-badge i { color: #7FECF7; }
.hero-title {
    font-size: 30px; font-weight: 800; line-height: 1.25;
    color: #fff; margin-bottom: 18px;
    font-family: 'Hind Siliguri', sans-serif;
}
.hero-title span { color: #7FECF7; }
.hero-subtitle {
    color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.7;
    margin-bottom: 26px; max-width: 540px;
}

/* Hero search bar */
.hero-search-bar {
    display: flex; align-items: center; gap: 0;
    background: #fff; border-radius: 99px;
    padding: 6px; max-width: 520px; margin-bottom: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.hero-search-bar > i {
    color: var(--hm-muted); font-size: 1.05rem; padding: 0 14px;
}
.hero-search-bar input {
    flex: 1; border: none; outline: none; background: transparent;
    font-family: 'Hind Siliguri', sans-serif; font-size: .95rem;
    color: var(--hm-dark); padding: 10px 0; min-width: 0;
}
.hero-search-bar input::placeholder { color: var(--hm-muted); }
.hero-search-bar button {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff; border: none; border-radius: 99px;
    padding: 11px 26px; font-weight: 700; cursor: pointer;
    font-family: 'Hind Siliguri', sans-serif;
    transition: all .2s; white-space: nowrap;
}
.hero-search-bar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,107,53,.45);
}

/* Hero CTA buttons */
.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary, .btn-hero-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 99px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: .95rem; font-weight: 700;
    text-decoration: none; transition: all .25s;
    white-space: nowrap; line-height: 1;
    border: 2px solid transparent;
}
.btn-hero-primary {
    background: #fff; color: #0B5563;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.btn-hero-primary:hover {
    background: #FFF7E6; color: #0B5563;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.3);
}
.btn-hero-secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.5);
    backdrop-filter: blur(6px);
}
.btn-hero-secondary:hover {
    background: #fff; color: #0B5563;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

/* Hero right-side mini cards */
.hero-card-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.hero-mini-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    aspect-ratio: 1.4 / 1;
    background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    color: #fff; text-decoration: none;
    font-size: .88rem; font-weight: 600; text-align: center;
    transition: all .25s;
}
.hero-mini-card i { font-size: 1.7rem; color: #7FECF7; }
.hero-mini-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.2);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

/* Hero wave divider */
.hero-wave {
    position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0;
    pointer-events: none;
}
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* ── STATS SECTION ─────────────────────────────────────────── */
.stats-section {
    background: #0F2730; color: #fff; padding: 40px 0;
}
.stat-cell {
    text-align: center; padding: 18px 12px;
    border-right: 1px solid rgba(255,255,255,.08);
}
.stat-cell:last-child { border-right: none; }
.stat-cell > i {
    font-size: 1.8rem; color: #7FECF7; display: block; margin-bottom: 8px;
}
.stat-cell .stat-value {
    font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 4px;
    font-family: 'Hind Siliguri', sans-serif;
}
.stat-cell .stat-label {
    font-size: .85rem; color: rgba(255,255,255,.7); font-weight: 500;
}

/* ── HERO RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 991px) {

    .hero-section { padding: 50px 0 90px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: .95rem; }
    .hero-search-bar { max-width: 100%; }

}

@media (max-width: 768px) {

    .stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
    .stat-cell:nth-last-child(-n+2) { border-bottom: none; }

}

@media (max-width: 575px) {

    .hero-title { font-size: 1.65rem; }
    .hero-cta-group { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }

}

/* ── Emergency strip ──────────────────────────────────────── */
.em-strip {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    color: #fff; padding: 8px 0; font-size: .87rem; font-weight: 600;
    text-align: center;
}
.em-strip .container { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.em-strip a { color: #fff; text-decoration: underline; font-weight: 700; }
.em-strip .em-pulse {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 99px;
}
.em-strip .em-pulse::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7);
    animation: emPulse 1.5s infinite;
}
@keyframes emPulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.7);} 70%{box-shadow:0 0 0 10px rgba(255,255,255,0);} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0);} }

/* ── Section helpers ─────────────────────────────────────────── */
.hm-section { padding: 60px 0; }
.hm-section.tinted { background: var(--hm-bg); }
.hm-section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.hm-clinic-spotlight { background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%); }
.clinic-card {
    background: #fff; border: 1px solid var(--hm-border); border-radius: 24px; padding: 32px; box-shadow: var(--hm-shadow);
}
.clinic-title {
    font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; color: var(--hm-dark); margin-bottom: 12px; line-height: 1.35;
}
.clinic-desc {
    color: var(--hm-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 20px;
}
.clinic-points {
    display: grid; gap: 12px; margin-bottom: 22px;
}
.clinic-point {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f8fafc; border-radius: 12px; color: var(--hm-dark); font-weight: 600;
}
.clinic-point i {
    color: var(--hm-primary); font-size: 1.1rem;
}
.clinic-actions {
    display: flex; flex-wrap: wrap; gap: 12px;
}
.clinic-metrics {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.clinic-metric {
    background: linear-gradient(135deg, #0f766e 0%, #0b5563 100%); color: #fff; border-radius: 18px; padding: 22px 16px; text-align: center; box-shadow: 0 10px 24px rgba(11, 85, 99, .18);
}
.clinic-metric strong {
    display: block; font-size: 1.35rem; margin-bottom: 6px;
}
.clinic-metric span {
    font-size: .9rem; color: rgba(255,255,255,.9);
}
.hm-section-tag {
    display: inline-block; padding: 5px 14px; background: rgba(124,58,237,.1);
    color: var(--hm-accent); border-radius: 99px; font-size: .78rem; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px;
}
.hm-section-title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; color: var(--hm-dark); margin-bottom: 8px; }
.hm-section-subtitle { font-size: 1rem; color: var(--hm-muted); }

/* ── Trust signals strip ─────────────────────────────────────── */
.trust-strip {
    background: #fff; border-top: 1px solid var(--hm-border); border-bottom: 1px solid var(--hm-border);
    padding: 16px 0;
}
.trust-strip .trust-list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 30px;
    list-style: none; padding: 0; margin: 0;
}
.trust-strip .trust-item {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .85rem; font-weight: 700; color: var(--hm-dark);
}
.trust-strip .trust-item i { font-size: 1.1rem; color: var(--hm-success); }

/* ── How it works ────────────────────────────────────────────── */
.how-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.how-card {
    background: #fff; border: 1px solid var(--hm-border); border-radius: var(--hm-radius);
    padding: 24px 20px; text-align: center; position: relative; transition: all .25s;
}
.how-card::before {
    content: counter(howStep); counter-increment: howStep;
    position: absolute; top: -16px; right: 16px;
    background: var(--hm-accent); color: #fff; width: 32px; height: 32px;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; box-shadow: 0 3px 10px rgba(124,58,237,.4);
}
.how-grid { counter-reset: howStep; }
.how-card:hover { transform: translateY(-4px); box-shadow: var(--hm-shadow); }
.how-card .how-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE); color: var(--hm-accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 14px;
}
.how-card h5 { font-weight: 700; font-size: 1rem; color: var(--hm-dark); margin-bottom: 6px; }
.how-card p { font-size: .85rem; color: var(--hm-muted); line-height: 1.65; margin: 0; }

/* ── Featured Doctors ────────────────────────────────────────── */
.doctors-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.doc-card {
    background: #fff; border: 1px solid var(--hm-border); border-radius: var(--hm-radius);
    padding: 20px 18px; text-align: center; transition: all .25s; position: relative;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,23,42,.1); }
.doc-card .doc-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: var(--hm-info); display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin: 0 auto 12px; overflow: hidden;
}
.doc-card .doc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doc-card .doc-online {
    position: absolute; top: 18px; right: 18px;
    background: var(--hm-success); color: #fff; font-size: .68rem; font-weight: 700;
    padding: 3px 9px; border-radius: 99px;
    display: inline-flex; align-items: center; gap: 5px;
}
.doc-card .doc-online::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,.4);
}
.doc-card h6 { font-weight: 800; color: var(--hm-dark); font-size: 1rem; margin-bottom: 2px; }
.doc-card .doc-spec { font-size: .82rem; color: var(--hm-muted); margin-bottom: 6px; min-height: 20px; }
.doc-card .doc-meta {
    display: flex; justify-content: center; gap: 10px;
    font-size: .78rem; color: var(--hm-dark); margin-bottom: 12px;
}
.doc-card .doc-meta i { color: #F59E0B; }
.doc-card .doc-bmdc { font-size: .72rem; color: var(--hm-success); font-weight: 600; margin-bottom: 10px; }
.doc-card .btn-book {
    width: 100%; background: var(--hm-accent); color: #fff; border: none;
    padding: 9px 14px; border-radius: 9px; font-size: .85rem; font-weight: 700;
    transition: background .2s;
}
.doc-card .btn-book:hover { background: #6D28D9; color: #fff; }

/* ── Specializations grid ────────────────────────────────────── */
.spec-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.spec-card {
    background: #fff; border: 1px solid var(--hm-border); border-radius: 12px;
    padding: 18px 14px; text-align: center; transition: all .25s; color: var(--hm-dark);
    text-decoration: none; display: block;
}
.spec-card:hover {
    transform: translateY(-3px); border-color: var(--hm-accent);
    box-shadow: 0 8px 22px rgba(124,58,237,.12); color: var(--hm-accent);
}
.spec-card .spec-icon {
    width: 50px; height: 50px; border-radius: 12px; margin: 0 auto 8px;
    background: linear-gradient(135deg, #ECFDF5, #DCFCE7); color: var(--hm-success);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.spec-card h6 { font-size: .85rem; font-weight: 700; margin-bottom: 2px; min-height: 38px; display: flex; align-items: center; justify-content: center; }
.spec-card .spec-count { font-size: .72rem; color: var(--hm-muted); }

/* ── Health Packages ─────────────────────────────────────────── */
.pkg-mini-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.pkg-mini {
    background: #fff; border: 1px solid var(--hm-border); border-radius: var(--hm-radius);
    padding: 22px; text-align: center; position: relative; transition: all .25s;
}
.pkg-mini:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(15,23,42,.08); }
.pkg-mini.featured { border-color: var(--hm-warn); border-width: 2px; }
.pkg-mini .pkg-ribbon-mini {
    position: absolute; top: 12px; right: -8px;
    background: var(--hm-warn); color: #fff; padding: 4px 14px;
    font-size: .72rem; font-weight: 700; border-radius: 4px 0 0 4px;
}
.pkg-mini .pkg-mini-icon {
    width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 12px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: var(--hm-warn);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.pkg-mini h5 { font-weight: 800; margin-bottom: 5px; color: var(--hm-dark); }
.pkg-mini .pkg-mini-tag { font-size: .85rem; color: var(--hm-muted); margin-bottom: 14px; min-height: 40px; }
.pkg-mini .pkg-mini-price {
    font-size: 1.7rem; font-weight: 800; color: var(--hm-success); margin-bottom: 4px;
}
.pkg-mini .pkg-mini-original { font-size: .9rem; color: var(--hm-muted); text-decoration: line-through; margin-bottom: 12px; display: block; }
.pkg-mini .btn-pkg-mini {
    display: inline-block; background: var(--hm-success); color: #fff;
    padding: 9px 20px; border-radius: 8px; font-weight: 700; font-size: .85rem;
    text-decoration: none; transition: all .2s;
}
.pkg-mini .btn-pkg-mini:hover { background: #15803D; color: #fff; }

/* ── Testimonials ────────────────────────────────────────────── */
.tm-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.tm-card {
    background: #fff; border: 1px solid var(--hm-border); border-radius: var(--hm-radius);
    padding: 22px 20px; transition: all .25s;
}
.tm-card:hover { transform: translateY(-3px); box-shadow: var(--hm-shadow); }
.tm-card .tm-rating { color: #F59E0B; font-size: 1rem; margin-bottom: 10px; }
.tm-card .tm-comment { color: var(--hm-dark); line-height: 1.65; font-size: .9rem; margin-bottom: 14px; font-style: italic; }
.tm-card .tm-comment::before { content: "“"; font-size: 2rem; color: var(--hm-accent); line-height: 0; margin-right: 4px; vertical-align: -10px; }
.tm-card .tm-author { display: flex; align-items: center; gap: 11px; }
.tm-card .tm-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--hm-accent), #A78BFA); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.tm-card .tm-info strong { display: block; color: var(--hm-dark); font-size: .92rem; }
.tm-card .tm-info span { font-size: .78rem; color: var(--hm-muted); }

/* ── Blog ────────────────────────────────────────────────────── */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.blog-card {
    background: #fff; border: 1px solid var(--hm-border); border-radius: var(--hm-radius);
    overflow: hidden; transition: all .25s; text-decoration: none; color: inherit;
    display: block;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,23,42,.1); color: inherit; }
.blog-card .blog-image { width: 100%; height: 180px; object-fit: cover; background: var(--hm-bg-alt); }
.blog-card .blog-content { padding: 18px; }
.blog-card .blog-date { font-size: .75rem; color: var(--hm-muted); margin-bottom: 6px; }
.blog-card .blog-title { font-weight: 700; font-size: 1.02rem; color: var(--hm-dark); margin-bottom: 8px; line-height: 1.4; }
.blog-card .blog-excerpt { font-size: .87rem; color: var(--hm-muted); line-height: 1.65; margin-bottom: 10px; }
.blog-card .blog-readmore { color: var(--hm-accent); font-size: .82rem; font-weight: 700; }

/* ── Location & Contact ──────────────────────────────────────── */
.loc-map {
    height: 100%; min-height: 420px; overflow: hidden;
    background: var(--hm-bg-alt); border: 1px solid var(--hm-border);
    border-radius: 18px; box-shadow: var(--hm-shadow);
}
.loc-map iframe,
.loc-map > :is(iframe, img) { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.loc-map-empty {
    height: 100%; min-height: 420px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px; padding: 30px; text-align: center;
}
.loc-map-empty i { font-size: 2.6rem; color: var(--hm-primary); }
.loc-map-empty p { color: var(--hm-muted); font-size: .92rem; margin: 0; max-width: 320px; }

.loc-panel {
    height: 100%; background: #fff; border: 1px solid var(--hm-border);
    border-radius: 18px; padding: 24px; box-shadow: var(--hm-shadow);
    display: flex; flex-direction: column; gap: 18px;
}

/* Emergency hotline call-to-action */
.loc-emergency {
    display: flex; align-items: center; gap: 14px; text-decoration: none;
    background: linear-gradient(135deg, var(--hm-primary), var(--hm-primary-d));
    color: #fff; padding: 16px 18px; border-radius: 14px;
    box-shadow: 0 6px 18px rgba(220, 38, 38, .28); transition: transform .2s, box-shadow .2s;
}
.loc-emergency:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(220, 38, 38, .35); }
.loc-emergency-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.2); font-size: 1.3rem;
}
.loc-emergency-text small { display: block; font-size: .74rem; opacity: .9; letter-spacing: .02em; }
.loc-emergency-text strong { display: block; font-size: 1.22rem; font-weight: 800; line-height: 1.25; }

/* Info rows */
.loc-item { display: flex; gap: 13px; align-items: flex-start; }
.loc-item > i {
    flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 9px; background: var(--hm-bg); color: var(--hm-primary); font-size: .95rem;
}
.loc-item-label {
    display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--hm-muted); margin-bottom: 3px;
}
.loc-item-value { display: block; font-size: .92rem; color: var(--hm-dark); line-height: 1.6; margin: 0; }
a.loc-link { text-decoration: none; transition: color .2s; }
a.loc-link:hover { color: var(--hm-primary); }

/* Opening hours */
.loc-hours { margin-top: 4px; }
.loc-hours-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 5px 8px; border-radius: 7px; font-size: .86rem; color: var(--hm-dark);
}
.loc-hours-row em { font-style: normal; color: var(--hm-muted); }
.loc-hours-row.is-today { background: #FEF2F2; font-weight: 700; }
.loc-hours-row.is-today em { color: var(--hm-primary); font-weight: 700; }
.loc-hours-row .loc-closed { color: #9CA3AF; }

.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.loc-actions .btn { flex: 1 1 auto; border-radius: 10px; font-weight: 600; }

@media (max-width: 991px) {
    .loc-map, .loc-map iframe, .loc-map-empty { min-height: 320px; }
    .loc-panel { padding: 20px; }
}
/* ── FAQ teaser ──────────────────────────────────────────────── */
.faq-teaser { max-width: 800px; margin: 0 auto; }
.faq-teaser .faq-q {
    background: #fff; border: 1px solid var(--hm-border); border-radius: 12px;
    padding: 14px 18px; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; gap: 14px; font-weight: 600; color: var(--hm-dark); margin-bottom: 10px;
    transition: all .2s;
}
.faq-teaser .faq-q:hover { border-color: var(--hm-accent); }
.faq-teaser .faq-q i { transition: transform .3s; color: var(--hm-muted); }
.faq-teaser .faq-item.open .faq-q { border-color: var(--hm-accent); background: rgba(124,58,237,.04); }
.faq-teaser .faq-item.open .faq-q i { transform: rotate(180deg); color: var(--hm-accent); }
.faq-teaser .faq-a {
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    background: #fff; border: 1px solid var(--hm-border); border-top: none;
    border-radius: 0 0 12px 12px; margin-top: -10px;
}
.faq-teaser .faq-item.open .faq-a { max-height: 500px; padding: 14px 18px; margin-bottom: 10px; }
.faq-teaser .faq-a-inner { color: var(--hm-muted); line-height: 1.7; font-size: .9rem; }

/* ── Newsletter ──────────────────────────────────────────────── */
.nl-card {
    background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
    border-radius: var(--hm-radius); padding: 36px 30px; text-align: center;
}
.nl-card h3 { font-weight: 800; color: #14532D; margin-bottom: 8px; }
.nl-card p { color: #166534; margin-bottom: 22px; }
.nl-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.nl-form input {
    flex: 1; min-width: 200px; padding: 12px 16px; border: 1px solid var(--hm-border);
    border-radius: 10px; font-size: .92rem; background: #fff;
}
.nl-form input:focus { outline: 2px solid var(--hm-success); border-color: var(--hm-success); }
.nl-form button {
    padding: 12px 22px; background: var(--hm-success); color: #fff; border: none;
    border-radius: 10px; font-weight: 700; cursor: pointer; transition: background .2s;
}
.nl-form button:hover { background: #15803D; }
.nl-message { margin-top: 12px; font-weight: 600; font-size: .9rem; }
.nl-message.success { color: #14532D; }
.nl-message.error { color: #991B1B; }

/* ── Notice board ────────────────────────────────────────────── */
.hm-notice-section { padding-top: 0; }
.notice-board {
    background: #fff; border: 1px solid var(--hm-border);
    border-left: 5px solid var(--hm-primary);
    border-radius: 16px; padding: 22px 24px; box-shadow: var(--hm-shadow);
}
.notice-board-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
    padding-bottom: 12px; border-bottom: 1px dashed var(--hm-border);
}
.notice-board-title {
    display: flex; align-items: center; gap: 10px; margin: 0;
    font-size: 1.15rem; font-weight: 800; color: var(--hm-dark);
}
.notice-board-title i { color: var(--hm-primary); }
.notice-board-all {
    font-size: .85rem; font-weight: 700; color: var(--hm-primary);
    text-decoration: none; white-space: nowrap;
}
.notice-board-all:hover { text-decoration: underline; }

.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-item {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 4px; border-bottom: 1px dashed var(--hm-border);
}
.notice-item:last-child { border-bottom: 0; }
.notice-date {
    flex-shrink: 0; width: 54px; text-align: center; line-height: 1.15;
    background: var(--hm-bg); border-radius: 9px; padding: 6px 4px;
}
.notice-date strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--hm-primary); }
.notice-date small { display: block; font-size: .66rem; color: var(--hm-muted); text-transform: uppercase; }
.notice-link {
    flex: 1; min-width: 0; color: var(--hm-dark); text-decoration: none;
    font-size: .93rem; font-weight: 600; line-height: 1.55; transition: color .2s;
}
.notice-link:hover { color: var(--hm-primary); }
.notice-pin { color: var(--hm-primary); margin-right: 4px; }
.notice-cat {
    display: inline-block; margin-left: 8px; padding: 2px 9px;
    background: var(--hm-bg-alt); border-radius: 99px;
    font-size: .7rem; font-weight: 700; color: var(--hm-muted); vertical-align: middle;
}
.notice-file { flex-shrink: 0; color: var(--hm-muted); font-size: 1.05rem; }
.notice-file:hover { color: var(--hm-primary); }

/* Notices listing page */
.notice-list-page {
    background: #fff; border: 1px solid var(--hm-border);
    border-radius: 16px; padding: 8px 20px; box-shadow: var(--hm-shadow);
}
.notice-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.notice-filter-search { position: relative; flex: 1 1 260px; }
.notice-filter-search i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hm-muted);
}
.notice-filter-search input {
    width: 100%; height: 44px; padding: 0 14px 0 40px;
    border: 1px solid var(--hm-border); border-radius: 10px; font-size: .9rem;
}
.notice-filter-select {
    height: 44px; padding: 0 14px; border: 1px solid var(--hm-border);
    border-radius: 10px; font-size: .9rem; background: #fff;
}
.notice-empty { text-align: center; padding: 60px 20px; color: var(--hm-muted); }
.notice-empty i { font-size: 3rem; opacity: .4; display: block; margin-bottom: 12px; }

/* Notice detail */
.notice-crumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 18px; }
.notice-crumb a { color: var(--hm-muted); text-decoration: none; }
.notice-crumb a:hover { color: var(--hm-primary); }
.notice-article {
    background: #fff; border: 1px solid var(--hm-border);
    border-radius: 16px; padding: 28px; box-shadow: var(--hm-shadow);
}
.notice-article-title { font-size: 1.5rem; font-weight: 800; color: var(--hm-dark); line-height: 1.4; }
.notice-article-meta {
    display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 18px;
    padding-bottom: 16px; border-bottom: 1px dashed var(--hm-border);
    font-size: .84rem; color: var(--hm-muted);
}
.notice-article-meta i { margin-right: 5px; }
.notice-article-excerpt {
    background: var(--hm-bg); border-left: 3px solid var(--hm-primary);
    padding: 12px 16px; border-radius: 8px; color: var(--hm-dark); font-size: .93rem;
}
.notice-article-body { color: var(--hm-dark); line-height: 1.85; font-size: .95rem; }
.notice-side {
    background: #fff; border: 1px solid var(--hm-border);
    border-radius: 16px; padding: 22px; box-shadow: var(--hm-shadow);
}
.notice-side-title { font-size: 1.05rem; font-weight: 800; color: var(--hm-dark); margin-bottom: 14px; }
.notice-side-list { list-style: none; margin: 0; padding: 0; }
.notice-side-list li { padding: 10px 0; border-bottom: 1px dashed var(--hm-border); }
.notice-side-list li:last-child { border-bottom: 0; }
.notice-side-list a {
    display: block; color: var(--hm-dark); text-decoration: none;
    font-size: .88rem; font-weight: 600; line-height: 1.5;
}
.notice-side-list a:hover { color: var(--hm-primary); }
.notice-side-list small { color: var(--hm-muted); font-size: .74rem; }

/* ── Institutional history ───────────────────────────────────── */
.history-body { color: var(--hm-muted); line-height: 1.9; font-size: .95rem; }
.history-media { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--hm-shadow); }
.history-media img { width: 100%; height: 340px; object-fit: cover; display: block; }
.history-media-empty {
    height: 340px; display: grid; place-items: center;
    background: linear-gradient(135deg, #ECFEFF, #F0FDF4);
}
.history-media-empty i { font-size: 4rem; color: var(--hm-primary); opacity: .35; }
.history-badge {
    position: absolute; left: 18px; bottom: 18px;
    background: var(--hm-primary); color: #fff;
    padding: 10px 18px; border-radius: 12px; text-align: center;
    box-shadow: 0 6px 18px rgba(220,38,38,.35);
}
.history-badge strong { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1; }
.history-badge span { font-size: .7rem; opacity: .9; }

/* ── Leadership messages ─────────────────────────────────────── */
.msg-card {
    height: 100%; background: #fff; border: 1px solid var(--hm-border);
    border-radius: 18px; padding: 24px; box-shadow: var(--hm-shadow);
    display: flex; flex-direction: column; gap: 14px;
}
.msg-card-head { display: flex; align-items: center; gap: 14px; }
.msg-avatar {
    width: 62px; height: 62px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--hm-bg-alt); color: var(--hm-muted); font-size: 1.6rem;
    border: 3px solid #fff; box-shadow: 0 3px 10px rgba(15,23,42,.12);
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-name { font-weight: 800; color: var(--hm-dark); font-size: 1rem; }
.msg-role { font-size: .82rem; color: var(--hm-primary); font-weight: 600; }
.msg-body {
    position: relative; margin: 0; padding-left: 26px;
    color: var(--hm-muted); font-size: .92rem; line-height: 1.85; font-style: italic;
}
.msg-body i {
    position: absolute; left: 0; top: -2px;
    font-size: 1.5rem; color: var(--hm-primary); opacity: .3;
}
.msg-more {
    margin-top: auto; font-size: .85rem; font-weight: 700;
    color: var(--hm-primary); text-decoration: none;
}
.msg-more:hover { text-decoration: underline; }

/* ── Help desk ───────────────────────────────────────────────── */
.helpdesk-card {
    background: linear-gradient(135deg, #0F766E, #115E59);
    color: #fff; border-radius: 18px; padding: 34px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.helpdesk-card h2 { color: #fff; font-weight: 800; font-size: 1.5rem; margin-bottom: 8px; }
.helpdesk-card p { color: rgba(255,255,255,.9); margin: 0; max-width: 560px; line-height: 1.75; }
.helpdesk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.helpdesk-phone {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; color: #0F766E !important; font-weight: 800;
    padding: 13px 24px; border-radius: 999px; text-decoration: none;
    font-size: 1.05rem; transition: transform .2s;
}
.helpdesk-phone:hover { transform: translateY(-2px); }
.helpdesk-link {
    display: inline-flex; align-items: center; gap: 8px;
    border: 2px solid rgba(255,255,255,.7); color: #fff !important;
    padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.helpdesk-link:hover { background: rgba(255,255,255,.15); }

/* ── Simple page hero (notices, etc.) ────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #0F766E, #115E59);
    color: #fff; padding: 46px 0; text-align: center;
}
.page-hero-title { color: #fff; font-weight: 800; font-size: 1.9rem; margin: 0 0 6px; }
.page-hero-sub { color: rgba(255,255,255,.9); margin: 0; font-size: .95rem; }

@media (max-width: 767px) {
    .notice-item { align-items: flex-start; }
    .history-media img, .history-media-empty { height: 240px; }
    .helpdesk-card { padding: 26px; }
}

/* ── Institutional block: 3 content columns + notice sidebar ─── */
.kc-inst { padding-top: 34px; }
.kc-col {
    height: 100%; background: #fff;
    border: 1px solid var(--hm-border); border-radius: 12px;
    padding: 20px; box-shadow: var(--hm-shadow);
    display: flex; flex-direction: column;
}
.kc-col-title {
    font-size: 1.08rem; font-weight: 800; color: #0F5132;
    padding-bottom: 10px; margin-bottom: 14px;
    border-bottom: 2px solid #16A34A;
}
.kc-col-img {
    width: 100%; height: 150px; object-fit: cover;
    border-radius: 8px; margin-bottom: 12px;
}
.kc-col-person { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kc-col-photo {
    width: 62px; height: 62px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--hm-bg-alt); color: var(--hm-muted); font-size: 1.6rem;
}
.kc-col-photo img { width: 100%; height: 100%; object-fit: cover; }
.kc-col-name { font-weight: 700; color: var(--hm-dark); font-size: .92rem; line-height: 1.4; }
.kc-col-text {
    color: var(--hm-muted); font-size: .88rem; line-height: 1.85;
    text-align: justify; margin-bottom: 12px;
}
.kc-col-more {
    margin-top: auto; align-self: flex-start;
    font-size: .84rem; font-weight: 700; color: #16A34A; text-decoration: none;
}
.kc-col-more:hover { text-decoration: underline; }

/* Sidebar boxes */
.kc-side {
    background: #fff; border: 1px solid var(--hm-border);
    border-radius: 12px; overflow: hidden; box-shadow: var(--hm-shadow);
}
.kc-side-head {
    margin: 0; padding: 13px 18px;
    background: #0F5132; color: #fff;
    font-size: 1rem; font-weight: 800;
    display: flex; align-items: center; gap: 9px;
}
.kc-side-body { padding: 8px 18px 18px; }
.kc-side-all {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
    font-size: .84rem; font-weight: 700; color: #16A34A; text-decoration: none;
}
.kc-side-all:hover { text-decoration: underline; }
.kc-side-phone {
    display: block; margin-top: 10px;
    font-size: 1.5rem; font-weight: 800; color: #0F5132; text-decoration: none;
}
.kc-side-phone:hover { color: #16A34A; }
.kc-side-note { margin: 4px 0 0; font-size: .8rem; color: var(--hm-muted); }

@media (max-width: 767px) {
    .kc-col-img { height: 180px; }
}

/* ══ Institutional top area: banner + sidebar ═══════════════════ */
.kc-top { padding: 26px 0 6px; }

.kc-banner {
    border: 1px solid var(--hm-border); border-radius: 6px;
    overflow: hidden; background: #fff;
    /* Sized to the slide, not stretched to the column: letting it fill made
       the banner taller than the design calls for. */
    height: auto; align-self: flex-start;
}
.kc-banner .carousel-item img {
    /* Fixed height so every slide is the same shape; cover crops instead
       of distorting whatever aspect ratio gets uploaded. */
    width: 100%; height: 450px; object-fit: cover; display: block;
}
.kc-banner .carousel-indicators { margin-bottom: .6rem; }
.kc-banner .carousel-indicators [data-bs-target] {
    width: 11px; height: 11px; border-radius: 50%;
    border: 2px solid #fff; background: rgba(0,0,0,.35); opacity: 1;
}
.kc-banner .carousel-indicators .active { background: #dc2626; }

/* Fallback panel when no banner image is uploaded */
.kc-banner-fallback {
    display: flex; align-items: center; min-height: 400px;
    background: linear-gradient(135deg, #0B3D66 0%, #124E80 60%, #0F5132 100%);
}
.kc-banner-fb-inner { padding: 40px 44px; color: #fff; }
.kc-banner-fb-badge {
    display: inline-block; margin-bottom: 14px; padding: 6px 16px;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.kc-banner-fb-title {
    font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 12px;
}
.kc-banner-fb-text {
    font-size: 1rem; color: rgba(255,255,255,.9); line-height: 1.8;
    max-width: 520px; margin-bottom: 22px;
}
.kc-banner-fb-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Solid institutional button */
.kc-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #0F5132; color: #fff !important;
    padding: 11px 22px; border-radius: 4px;
    font-size: .9rem; font-weight: 700; text-decoration: none;
    transition: background .2s, transform .2s;
}
.kc-btn:hover { background: #0B3D26; color: #fff !important; transform: translateY(-1px); }
.kc-btn-ghost { background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.6); }
.kc-btn-ghost:hover { background: #fff; color: #0B3D66 !important; }
.kc-btn-sm { align-self: flex-start; padding: 8px 18px; font-size: .84rem; }

/* ── Sidebar boxes ─────────────────────────────────────────────── */
.kc-side {
    background: #fff; border: 1px solid var(--hm-border);
    border-radius: 4px; overflow: hidden;
}
.kc-side-head {
    margin: 0; padding: 11px 16px;
    background: #0B3D66; color: #fff;
    font-size: .98rem; font-weight: 700;
    display: flex; align-items: center; gap: 9px;
}
.kc-side-body { padding: 10px 16px 16px; background: #F1F3F5; }
/* 250px lands the notice card level with the 450px banner beside it. */
.kc-side-scroll { max-height: 250px; overflow-y: auto; }
.kc-side-all {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
    font-size: .84rem; font-weight: 700; color: #0B3D66; text-decoration: none;
}
.kc-side-all:hover { text-decoration: underline; }
.kc-side-phone {
    display: block; margin-top: 8px;
    font-size: 1.45rem; font-weight: 800; color: #0B3D66; text-decoration: none;
}
.kc-side-phone:hover { color: #dc2626; }
.kc-side-note { margin: 4px 0 0; font-size: .8rem; color: var(--hm-muted); }

/* ── Three institutional columns ───────────────────────────────── */
.kc-inst { padding: 34px 0 10px; }
.kc-col { height: 100%; display: flex; flex-direction: column; }
.kc-col-title {
    font-size: 1.32rem; font-weight: 800; color: #0B3D66;
    margin-bottom: 14px; line-height: 1.35;
}
.kc-col-body { margin-bottom: 14px; }
/* Image floats left so the paragraph wraps around it */
.kc-col-thumb {
    float: left; width: 118px; height: 132px; object-fit: cover;
    margin: 4px 14px 8px 0; border-radius: 3px; background: var(--hm-bg-alt);
}
.kc-col-thumb-person {
    display: grid; place-items: center;
    color: var(--hm-muted); font-size: 2.6rem; overflow: hidden;
}
.kc-col-thumb-person img { width: 100%; height: 100%; object-fit: cover; }
.kc-col-body p {
    color: var(--hm-text, #3D4D5C); font-size: .9rem;
    line-height: 1.9; text-align: justify; margin: 0 0 8px;
}
.kc-col-body::after { content: ''; display: block; clear: both; }
.kc-col-sign { font-weight: 700; color: #0B3D66; font-size: .86rem; }

@media (max-width: 991px) {
    .kc-banner .carousel-item img,
    .kc-banner-fallback { height: auto; min-height: 280px; }
    .kc-banner-fb-inner { padding: 30px 26px; }
    .kc-banner-fb-title { font-size: 1.6rem; }
}
@media (max-width: 575px) {
    .kc-col-thumb { width: 96px; height: 110px; }
}

/* ── Nav bar in institutional blue ─────────────────────────────── */
.kc-navbar { background: #0B3D66 !important; }
.kc-header { border-bottom-color: #0B3D66 !important; }
.kc-topstrip { background: #082B49 !important; }
.kc-phone-icon { background: #0B3D66 !important; }
.kc-brand-text strong { color: #0B3D66 !important; }
.kc-navbar .nav-dropdown-menu { border-top-color: #0B3D66 !important; }
.kc-navbar .nav-drop-item:hover { background: #EFF6FF !important; color: #0B3D66 !important; }
.kc-phone-nums a { color: #0B3D66 !important; }
.kc-phone-nums a:hover { color: #dc2626 !important; }

/* ── Visitor counter ─────────────────────────────────────────── */
.kc-visitor { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.kc-visitor-digit {
    display: grid; place-items: center;
    min-width: 26px; padding: 6px 4px;
    background: #0B3D66; color: #fff;
    border-radius: 3px; font-size: 1.15rem; font-weight: 800;
    font-variant-numeric: tabular-nums;
}
