/* Trauma Centre IMS-BHU — public stylesheet */

:root {
    --root-font-size: 16px;
    --tc-saffron: #ff8d29;
    --tc-green:   #138808;
    --tc-navy:    #0d1b4c;
    --tc-red:     #b91c1c;
    --tc-bg:      #f7f7f9;
    --tc-ink:     #1a1a1a;
    --tc-muted:   #6b7280;
    --tc-border:  #e5e7eb;
}

html, body { background: var(--tc-bg); color: var(--tc-ink); }

/* ============================================================
   Site-wide width — every Bootstrap container fills 80% of the
   viewport, centered. Applies to both .container and .container-fluid
   so legacy markup keeps working while new code uses the fluid class.
   ============================================================ */
.container,
.container-fluid,
.container-sm, .container-md, .container-lg,
.container-xl, .container-xxl {
    width: 80vw;
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Narrower viewports — let the content breathe (sidebars / phones) */
@media (max-width: 992px) {
    .container, .container-fluid,
    .container-sm, .container-md, .container-lg,
    .container-xl, .container-xxl {
        width: 94vw;
        max-width: 94vw;
    }
}
@media (max-width: 576px) {
    .container, .container-fluid,
    .container-sm, .container-md, .container-lg,
    .container-xl, .container-xxl {
        width: 100%;
        max-width: 100%;
        padding-left: .75rem;
        padding-right: .75rem;
    }
}
body { font-family: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif; font-size: var(--root-font-size); }
body[data-lang="hi"] { font-family: 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif; }

/* ============================================================
   Devanagari typography — applied to every element that holds
   Hindi text so the script renders in Noto Sans Devanagari
   regardless of which UI language is active.
   ============================================================ */
:lang(hi),
.devanagari,
.dd-title-hi,
.opd-doctor-hi,
.opd-day-hi,
.opd-note-hi,
.dept-hi,
.ward-hi,
.doctor-info-list li:has(span:lang(hi)),
.bed-summary .lbl .hi,
.brand-sub:lang(hi),
.dept-summary-hi,
.dept-about-hi {
    font-family: 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif !important;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Hindi runs a touch smaller-feeling than Latin at the same px,
   so nudge a few classes up to match visual weight */
.dd-title-hi  { font-size: 1rem; }
.opd-doctor-hi,
.dept-hi      { font-size: .95rem; }

.skip-link {
    position: absolute; top: 0; left: 0; padding: .5rem 1rem;
    background: var(--tc-navy); color: #fff; z-index: 9999;
}

/* ---- Government strip ---- */
.gov-strip {
    background: linear-gradient(90deg, var(--tc-saffron) 0%, #fff 50%, var(--tc-green) 100%);
    border-bottom: 1px solid var(--tc-border);
    font-size: .82rem;
    padding: .4rem 0;
}
.gov-strip .emblem { height: 28px; }
.gov-strip .gov-text { font-weight: 600; color: var(--tc-navy); }
.gov-strip .btn-outline-light {
    --bs-btn-color: var(--tc-navy);
    --bs-btn-border-color: rgba(13,27,76,.4);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--tc-navy);
    --bs-btn-hover-border-color: var(--tc-navy);
}
.lang-link { color: var(--tc-navy); text-decoration: none; font-weight: 600; padding: 0 .4rem; }
.lang-link.active { color: var(--tc-red); text-decoration: underline; }

/* ---- Header ---- */
.site-header { background: #fff; border-bottom: 1px solid var(--tc-border); }
.trauma-banner-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
    max-width: 100%;
}
.trauma-banner {
    height: 62px;
    width: auto;
    max-width: 100%;
    display: block;
}
.header-contact { color: var(--tc-ink); }
.header-contact .bi-telephone-fill { color: var(--tc-red); }
/* Footer variant — banner sits on dark bg, lighten it slightly */
.footer-banner {
    max-width: 100%;
    height: auto;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .trauma-banner { height: 49px; }
}
@media (max-width: 576px) {
    .trauma-banner { height: 38px; }
    .footer-banner { max-width: 100%; }
}

/* ---- Navbar ---- */
.site-nav {
    background: var(--tc-navy);
    border-top: 3px solid var(--tc-saffron);
    border-bottom: 3px solid var(--tc-green);
}
.site-nav .nav-link,
.site-nav .nav-link:focus,
.site-nav .nav-link:visited {
    color: rgba(255,255,255,.90);
    font-weight: 500;
    padding: .7rem .65rem;
    font-size: .92rem;
    white-space: nowrap;          /* prevent two-line wraps like "OPD Schedule" → "OPD↵Schedule" */
    line-height: 1.2;
}
@media (min-width: 1400px) {
    .site-nav .nav-link { padding: .75rem .85rem; }
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active,
.site-nav .nav-link.show,
.site-nav .nav-item.show > .nav-link {
    color: #fff !important;
}
.site-nav .nav-link.active {
    border-bottom: 2px solid var(--tc-saffron);
}
.site-nav .nav-link.show,
.site-nav .nav-item.show > .nav-link {
    background: rgba(255,255,255,.10);
    border-radius: 4px 4px 0 0;
}
.site-nav .navbar-toggler { border-color: rgba(255,255,255,.4); }
.site-nav .navbar-toggler-icon { filter: invert(1); }

/* ============== Navbar search ============== */
.site-search {
    margin-left: .75rem;
    width: 200px;                 /* compact default — grows on wider viewports */
    flex-shrink: 0;
}
@media (min-width: 1400px) { .site-search { width: 260px; } }
.site-search-wrap {
    position: relative;
}
.site-search-wrap > .bi-search {
    position: absolute;
    left: 11px; top: 50%; transform: translateY(-50%);
    color: var(--tc-muted);
    pointer-events: none;
    font-size: .9rem;
}
.site-search input {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(255,255,255,.4);
    padding-left: 32px;
    border-radius: 999px;
    height: 34px;
    font-size: .85rem;
}
.site-search input:focus {
    background: #fff;
    border-color: var(--tc-saffron);
    box-shadow: 0 0 0 .2rem rgba(255,141,41,.25);
}
.site-search-results {
    position: absolute;
    top: calc(100% + 6px); right: 0; left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
    overflow: hidden;
    z-index: 1050;
    display: none;
    max-height: 460px; overflow-y: auto;
}
.site-search-results.open { display: block; }
.search-result-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem .9rem;
    color: var(--tc-ink); text-decoration: none;
    border-bottom: 1px solid var(--tc-border);
}
.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover { background: #fff8ec; color: var(--tc-navy); }
.search-result-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--tc-navy);
    overflow: hidden; flex-shrink: 0;
}
.search-result-icon img { width: 100%; height: 100%; object-fit: cover; }
.search-result-text { flex-grow: 1; min-width: 0; }
.search-result-title { display: block; font-weight: 600; line-height: 1.2; }
.search-result-sub { display: block; font-size: .8rem; color: var(--tc-muted); }
.search-result-type {
    text-transform: uppercase;
    font-size: .65rem;
    background: #e0e7ff;
    color: var(--tc-navy);
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.search-result-more {
    background: #fafafa;
    font-weight: 600;
    color: var(--tc-saffron);
}
.search-empty { padding: .75rem .9rem; color: var(--tc-muted); font-size: .9rem; }

/* Search-page tile (departments + facilities) */
.search-tile {
    display: flex; gap: .85rem;
    padding: 1rem;
    background: #fff; border: 1px solid var(--tc-border);
    border-radius: 10px;
    text-decoration: none; color: inherit;
    transition: transform .12s, box-shadow .12s, border-color .12s;
    height: 100%;
}
.search-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.07); border-color: var(--tc-saffron); color: inherit; }
.search-tile i {
    font-size: 1.75rem; color: var(--tc-saffron); flex-shrink: 0;
    width: 48px; height: 48px;
    background: #fff5e6; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.search-tile h5 { font-size: 1rem; color: var(--tc-navy); margin: 0 0 .25rem; }

@media (max-width: 992px) {
    .site-search { width: 100%; max-width: 100%; margin: .5rem 0 0; }
}

/* ============== Site Tour ============== */
.tc-tour-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9000;
    animation: tcFade .2s ease;
}
.tc-tour-highlight {
    position: relative;
    z-index: 9050 !important;
    box-shadow: 0 0 0 4px rgba(255,141,41,.85), 0 0 0 9999px rgba(0,0,0,.6);
    border-radius: 6px;
    transition: box-shadow .25s ease;
}
.tc-tour-card {
    position: absolute;
    z-index: 9100;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
    padding: 1rem 1.1rem 1rem;
    animation: tcPop .25s ease;
    font-size: .92rem;
}
.tc-tour-card-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .35rem;
}
.tc-tour-card .tc-tour-step {
    background: var(--tc-saffron); color: #fff;
    padding: 2px 9px; border-radius: 999px;
    font-size: .7rem; font-weight: 700; letter-spacing: .5px;
}
.tc-tour-card .tc-tour-x {
    background: none; border: 0; color: var(--tc-muted); font-size: 1.3rem; line-height: 1;
    cursor: pointer; padding: 0 4px;
}
.tc-tour-card h6 { color: var(--tc-navy); font-weight: 700; margin-bottom: .35rem; }
.tc-tour-card p { color: var(--tc-ink); margin-bottom: .85rem; }
.tc-tour-actions {
    display: flex; justify-content: space-between; align-items: center; gap: .5rem;
}
@keyframes tcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tcPop  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============== End additions ============== */

/* Dropdown menus — keep them readable on white */
.site-nav .dropdown-menu {
    border: 1px solid var(--tc-border);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    border-radius: 6px;
    margin-top: .25rem;
    min-width: 220px;
}
.site-nav .dropdown-menu .dropdown-item {
    color: var(--tc-ink);
    padding: .5rem 1rem;
    font-weight: 500;
}
.site-nav .dropdown-menu .dropdown-item:hover,
.site-nav .dropdown-menu .dropdown-item:focus {
    background: #fff8ec;
    color: var(--tc-navy);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    background-color: var(--tc-navy);
    background-image:
        linear-gradient(90deg,
            rgba(13,27,76,.78) 0%,
            rgba(13,27,76,.45) 35%,
            rgba(13,27,76,.15) 55%,
            rgba(13,27,76,.45) 100%),
        url('/images/trauma-building.png');
    background-size: cover;
    background-position: center 28%;        /* show logo (top) AND hospital signboard (middle) */
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
    min-height: 600px;
}
.hero .container { position: relative; z-index: 1; }
.hero-title    { text-shadow: 0 2px 14px rgba(0,0,0,.65); }
.hero-subtitle { text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero-badge    { backdrop-filter: blur(4px); }

@media (max-width: 1200px) {
    .hero { min-height: 520px; background-position: center 22%; }
}
@media (max-width: 768px) {
    .hero { min-height: 440px; background-position: center 15%; }
}
.hero-badge {
    display: inline-block; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    padding: .25rem .75rem; border-radius: 999px;
    font-size: .8rem; margin-bottom: 1rem;
}
.hero-title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.15; }
.hero-subtitle { font-size: 1.05rem; opacity: .95; margin: 1rem 0 1.75rem; max-width: 36rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-card {
    background: rgba(255,255,255,.96);
    color: var(--tc-ink);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    min-height: 380px;
    width: 100%;
}
.hero-card .hero-card-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: .6rem; margin-bottom: .35rem;
    border-bottom: 2px solid var(--tc-saffron);
}
.hero-card-news .hero-card-head { border-bottom-color: #0891b2; }
.hero-card h5 { font-size: 1rem; }
.hero-card .ticker-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex-grow: 1; }
.hero-card .ticker-list li { border-bottom: 1px dashed var(--tc-border); }
.hero-card .ticker-list li:last-child { border: 0; }
.hero-card .ticker-item {
    display: flex; gap: .65rem; padding: .65rem .25rem;
    text-decoration: none; color: inherit;
    transition: background .12s;
}
.hero-card .ticker-item:hover { background: #fffaf0; }
.hero-card .ticker-bullet {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0; margin-top: .45rem;
}
.hero-card .ticker-text { flex-grow: 1; line-height: 1.25; }
.hero-card .ticker-date { color: var(--tc-muted); margin-top: .15rem; font-size: .75rem; }

/* Social Media hero card — follow icons in the header + live X timeline */
.hero-card-social .hero-card-head { border-bottom-color: var(--tc-saffron); }
.hero-card .hero-social-icons { display: flex; gap: .35rem; flex-wrap: nowrap; }
.hero-card .hero-social-icon {
    width: 28px; height: 28px; border-radius: 7px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem; color: #fff; background: #475569;
    transition: transform .12s ease, filter .12s ease;
}
.hero-card .hero-social-icon:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hero-card .hero-social-icon { border: 2px solid transparent; cursor: pointer; padding: 0; }
.hero-card .hero-social-icon.is-active {
    border-color: var(--tc-saffron, #ff9933);
    box-shadow: 0 0 0 2px rgba(255, 153, 51, .25);
    transform: translateY(-1px);
}
.hero-card .hero-social-icon.social-x        { background: #000; }
.hero-card .hero-social-icon.social-youtube  { background: #ff0000; }
.hero-card .hero-social-icon.social-facebook { background: #1877f2; }
.hero-card .hero-social-icon.social-instagram{ background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.hero-card .hero-social-icon.social-linkedin { background: #0a66c2; }

.hero-card .hero-social-embed {
    flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
    max-height: 440px;
    position: relative;
}
/* Tab panels — only the .is-active one is visible. The others stay mounted
   so embed.js / widgets.js can finish rendering them in the background. */
.hero-card .hero-social-embed .social-panel {
    display: none;
    width: 100%;
}
.hero-card .hero-social-embed .social-panel.is-active {
    display: flex;
    justify-content: center;
}
.hero-card .hero-social-embed .twitter-timeline { width: 100% !important; }
/* Facebook Page Plugin — auto-loaded iframe (no SDK). Fill the panel width and
   keep a usable height so the timeline shows without an admin-pasted embed. */
.hero-card .hero-social-embed .social-fb-embed,
.hero-card .hero-social-embed .social-ig-embed,
.hero-card .hero-social-embed .social-yt-embed {
    width: 100% !important; max-width: 100% !important;
    height: 440px; border: 0; display: block;
}
/* Crop off the FB plugin's grey cover band: the wrap clips, the iframe renders
   taller (530) and is pulled up 90px so the feed starts at the profile name. */
.hero-card .hero-social-embed .social-fb-wrap {
    width: 100%; height: 440px; overflow: hidden; border-radius: 8px;
}
.hero-card .hero-social-embed .social-fb-wrap .social-fb-embed {
    height: 530px; margin-top: -90px;
}
/* YouTube is 16:9 video — a shorter frame avoids a tall letterboxed gap. */
.hero-card .hero-social-embed .social-yt-embed { height: 260px; border-radius: 10px; }
/* Custom admin-pasted embed (Facebook Page Plugin, YouTube, LinkedIn) — make
   whatever iframe was pasted fill the panel width and keep a usable height. */
.hero-card .hero-social-embed .social-embed-custom { width: 100%; }
.hero-card .hero-social-embed .social-embed-custom iframe {
    width: 100% !important; max-width: 100% !important; border: 0; min-height: 360px;
}
.hero-card .hero-social-embed .instagram-media {
    min-width: 0 !important; width: 100% !important; margin: 0 auto !important;
}
/* Vertical stack of Instagram posts (feed-style) — scrolls within the
   panel's max-height. Each blockquote.instagram-media is rendered into a
   styled card by embed.js. */
.hero-card .hero-social-embed .ig-feed-stack {
    width: 100%;
    display: flex; flex-direction: column;
}

/* Branded fallback for platforms without a free in-page feed (X / LinkedIn).
   Vertical layout: profile link row on top, Trauma Centre logo filling below. */
.hero-card .social-visit-card {
    display: flex; flex-direction: column; gap: .9rem;
    width: 100%; min-height: 420px; padding: 1rem 1.1rem;
    border-radius: 10px; border: 1px solid #e9ecef;
    background: #fff; color: #1a1a1a; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hero-card .social-visit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    color: #1a1a1a;
}
/* Top link row (icon + handle + open control). */
.hero-card .social-visit-card .visit-top {
    display: flex; align-items: center; gap: .75rem; width: 100%;
}
/* Logo fills the remaining space below the link. */
.hero-card .social-visit-card .visit-logo {
    flex: 1 1 auto; width: 100%;
    display: flex; align-items: center; justify-content: center;
}
.hero-card .social-visit-card .visit-logo img {
    width: 100%; height: 100%; max-height: 340px; object-fit: contain;
    opacity: 1;
}
.hero-card .social-visit-card .visit-icon {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; flex-shrink: 0;
}
.hero-card .social-visit-youtube  .visit-icon { background: #ff0000; }
.hero-card .social-visit-youtube:hover        { border-color: #ff0000; }
.hero-card .social-visit-facebook .visit-icon { background: #1877f2; }
.hero-card .social-visit-facebook:hover       { border-color: #1877f2; }
.hero-card .social-visit-linkedin .visit-icon { background: #0a66c2; }
.hero-card .social-visit-linkedin:hover       { border-color: #0a66c2; }
.hero-card .social-visit-x .visit-icon        { background: #000; }
.hero-card .social-visit-x:hover              { border-color: #000; }
.hero-card .social-visit-card .visit-meta { flex: 1 1 auto; min-width: 0; }
.hero-card .social-visit-card .visit-handle {
    font-weight: 700; font-size: .95rem; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-card .social-visit-card .visit-platform {
    font-size: .8rem; color: #6c757d; line-height: 1.2;
}
.hero-card .social-visit-card .visit-cta {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .8rem; font-weight: 600; color: var(--tc-saffron, #ff9933);
    flex-shrink: 0;
}

/* Hero quick stats — quick-action pills under the hero copy.
   6-col grid: row 1 = 2 cards (3 cols each), row 2 = 3 cards (2 cols each). */
.hero-quick-stats {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: .75rem; max-width: 520px;
}
.hero-quick-stats .quick-stat:nth-child(1),
.hero-quick-stats .quick-stat:nth-child(2) { grid-column: span 3; }
.hero-quick-stats .quick-stat:nth-child(3),
.hero-quick-stats .quick-stat:nth-child(4),
.hero-quick-stats .quick-stat:nth-child(5) { grid-column: span 2; }
.quick-stat {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    padding: .85rem .6rem;
    text-decoration: none;
    color: #fff;
    text-align: center;
    transition: background .15s, transform .15s, border-color .15s;
}
.quick-stat:hover {
    background: rgba(255,255,255,.22);
    border-color: var(--tc-saffron);
    transform: translateY(-2px);
    color: #fff;
}
.quick-stat i { font-size: 1.25rem; opacity: .9; }
.quick-stat .qs-num { font-size: 1.4rem; font-weight: 700; line-height: 1.1; margin-top: .15rem; }
.quick-stat .qs-lbl { font-size: .72rem; opacity: .85; text-transform: uppercase; letter-spacing: .5px; }

@media (max-width: 576px) {
    .hero-quick-stats { grid-template-columns: 1fr 1fr; max-width: 100%; }
    .hero-quick-stats .quick-stat { grid-column: auto !important; }
}

/* ---- Sections ---- */
.section-title {
    position: relative; padding-bottom: .35rem; margin-bottom: 1rem;
    border-bottom: 2px solid var(--tc-saffron); display: inline-block;
}

.page-hero {
    background: linear-gradient(135deg, var(--tc-navy), #1d2f7a);
    color: #fff; padding: 2rem 0;
}
.page-hero h1 { font-weight: 700; margin: 0; }

/* ============================================================
   Doctor cards & profile
   ============================================================ */
.bg-saffron { background: var(--tc-saffron) !important; color: #fff; }

.doctor-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.doctor-card {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.doctor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    border-color: var(--tc-saffron);
}
.doctor-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    flex-shrink: 0;
}
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doctor-meta { flex-grow: 1; min-width: 0; }
.doctor-meta h5 { color: var(--tc-navy); font-weight: 700; font-size: 1rem; margin: 0 0 .15rem; }
.doctor-desig { font-size: .85rem; color: var(--tc-muted); }
.doctor-view-link {
    display: inline-block;
    margin-top: .35rem;
    font-size: .78rem;
    color: var(--tc-saffron);
    font-weight: 600;
}

/* Doctor profile page */
.doctor-profile-card {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
}
.doctor-profile-avatar {
    width: 180px; height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border: 5px solid #fff;
    box-shadow: 0 12px 28px rgba(13,27,76,.25);
}
.doctor-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-info-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    text-align: left;
}
.doctor-info-list li {
    padding: .55rem 0;
    border-top: 1px dashed var(--tc-border);
    font-size: .92rem;
}

/* ============== Doctor profile — sections, qualifications, experience ============== */
.doctor-section {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.doctor-section .section-title {
    color: var(--tc-navy);
    font-weight: 700;
    border-bottom: 2px solid var(--tc-saffron);
    display: inline-block;
    padding-bottom: .25rem;
    margin-bottom: .85rem;
}
.doctor-rich-text { line-height: 1.6; }
.doctor-rich-text h1,
.doctor-rich-text h2,
.doctor-rich-text h3,
.doctor-rich-text h4 { color: var(--tc-navy); font-weight: 700; margin-top: .5rem; }
.doctor-rich-text ul,
.doctor-rich-text ol { padding-left: 1.5rem; }
.doctor-rich-text p:last-child { margin-bottom: 0; }

.doctor-qual-list { list-style: none; padding: 0; margin: 0; }
.doctor-qual-list li {
    padding: .55rem 0;
    border-bottom: 1px dashed var(--tc-border);
}
.doctor-qual-list li:last-child { border-bottom: 0; }

.doctor-exp-timeline {
    list-style: none;
    padding: 0 0 0 1.5rem;
    margin: 0;
    border-left: 3px solid var(--tc-saffron);
}
.doctor-exp-timeline li {
    position: relative;
    padding: .25rem 0 1rem 1.25rem;
}
.doctor-exp-timeline li::before {
    content: "";
    position: absolute;
    left: -1.65rem;
    top: .5rem;
    width: 12px; height: 12px;
    background: var(--tc-saffron);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--tc-saffron);
}
.doctor-exp-timeline .exp-period {
    font-size: .82rem; color: var(--tc-muted); font-weight: 600;
    margin-bottom: .15rem;
}
.doctor-exp-timeline .exp-meta strong { color: var(--tc-navy); }

.opd-mini-list { list-style: none; padding: 0; margin: 0; }
.opd-mini-list li {
    padding: .5rem 0;
    border-bottom: 1px dashed var(--tc-border);
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.opd-mini-list li:last-child { border-bottom: 0; }
.opd-day-badge {
    background: var(--tc-navy);
    color: #fff;
    padding: .25rem .7rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

/* ---- OPD Schedule ---- */
.opd-dept-card {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.opd-dept-header {
    background: linear-gradient(135deg, var(--tc-navy), #1d2f7a);
    color: #fff;
    padding: 1rem 1.5rem;
    border-bottom: 3px solid var(--tc-saffron);
}
.opd-dept-header h2 { color: #fff; }
.opd-dept-hi { font-family: 'Noto Sans Devanagari', sans-serif; font-size: 1rem; opacity: .92; }

.opd-table thead th {
    background: #f8fafc;
    color: var(--tc-navy);
    border-bottom: 2px solid var(--tc-border);
    font-weight: 700;
}
.opd-table tbody td { vertical-align: top; padding: .9rem 1rem; }

.opd-day-cell { background: #fafbff; }
.opd-day-en   { font-weight: 700; color: var(--tc-navy); }
.opd-day-hi   { font-family: 'Noto Sans Devanagari', sans-serif; color: var(--tc-muted); font-size: .9rem; }

.opd-doctor-list { list-style: none; padding: 0; margin: 0; }
.opd-doctor-list li {
    padding: .5rem 0;
    border-bottom: 1px dashed var(--tc-border);
}
.opd-doctor-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.opd-doctor-list li:first-child { padding-top: 0; }

.opd-doctor-row { display: flex; align-items: center; gap: .75rem; }
.opd-doctor-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    display: inline-block;
}
.opd-doctor-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opd-doctor-meta { flex-grow: 1; min-width: 0; }
.opd-doctor-en {
    font-weight: 600; color: var(--tc-ink); line-height: 1.2;
    text-decoration: none;
}
.opd-doctor-en:hover { color: var(--tc-saffron); text-decoration: underline; }
.opd-doctor-hi { font-family: 'Noto Sans Devanagari', sans-serif; color: #475569; font-size: .92rem; line-height: 1.2; }
.opd-desig     { font-size: .78rem; color: var(--tc-muted); font-style: italic; margin-top: .15rem; }

.opd-note {
    display: inline-block;
    padding: .1rem .55rem;
    background: #fff3cd;
    color: #92400e;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: .25rem;
}
.opd-note-hi { font-family: 'Noto Sans Devanagari', sans-serif; font-weight: 500; }

/* ---- Notices ---- */
.notice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.notice-card {
    background: #fff; border: 1px solid var(--tc-border);
    border-left: 4px solid var(--tc-navy);
    border-radius: 6px; padding: 1.1rem;
}
.notice-card.is-highlighted { border-left-color: var(--tc-red); background: #fff8f8; }
.notice-meta { border-top: 1px dashed var(--tc-border); padding-top: .5rem; }

/* ---- Circular table ---- */
.circular-table th { background: var(--tc-navy); color: #fff; }
.circular-table tbody tr:hover { background: #fffaf0; }

/* ---- News (legacy classes still used on /news index page) ---- */
.news-list { display: flex; flex-direction: column; gap: .6rem; }
.news-item {
    display: flex; gap: .75rem; padding: .6rem; background: #fff;
    border: 1px solid var(--tc-border); border-radius: 6px; text-decoration: none; color: inherit;
}
.news-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.news-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.news-title { font-weight: 600; font-size: .95rem; }
.news-date  { font-size: .75rem; color: var(--tc-muted); }
.news-card  { color: inherit; }
.news-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.news-card img { height: 180px; object-fit: cover; }

/* =============================================================
   Shared "info card" — Home page Notices and News & Updates
   share this so both columns are visually equal-weight.
   ============================================================= */
.info-card {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;             /* match sibling column height in the row */
    width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
}
/* The Bootstrap col itself needs flex so .info-card can stretch to it */
.col-lg-6 > .info-card,
.col-12   > .info-card { flex: 1 1 auto; }
.info-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 1.25rem;
    background: linear-gradient(135deg, #fff8ec, #ffe8c4);
    border-bottom: 3px solid var(--tc-saffron);
}
.info-card-head.news-head { background: linear-gradient(135deg, #fff5e6, #fde2c2); }
.info-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tc-navy);
    margin: 0;
}
.info-card-title i { margin-right: .35rem; }
.info-card-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--tc-saffron);
    text-decoration: none;
    white-space: nowrap;
}
.info-card-link:hover { text-decoration: underline; color: #c66f1d; }

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    /* No max-height / overflow: we cap to 4 items in the template,
       and let Bootstrap's row stretch keep both columns equal. */
    flex-grow: 1;
}
.info-list-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px dashed var(--tc-border);
    transition: background .12s;
}
.info-list-item:hover { background: #fffaf0; }
.info-list-item:last-child { border-bottom: 0; }

/* Department subheading inside the "Meet Our Doctors" list. Visually
   separates groups when the home widget shows multiple departments. */
.info-list-section {
    background: #f4f6fb;
    color: var(--tc-navy, #0d1b4c);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .35rem 1.25rem;
    border-bottom: 1px solid var(--tc-border);
    border-top: 1px solid var(--tc-border);
}
.info-list-section i { margin-right: .35rem; }
.info-list-section:first-child { border-top: 0; }

.info-list-body { flex-grow: 1; min-width: 0; }
.info-tag {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: .3rem;
    margin-right: .35rem;
}
.bg-info-subtle { background: #cffafe !important; }
.text-info-emphasis { color: #155e75 !important; }
.info-title {
    display: block;
    font-weight: 600;
    color: var(--tc-ink);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: .25rem;
}
.info-title:hover { color: var(--tc-saffron); text-decoration: underline; }
.info-summary {
    font-size: .82rem;
    color: var(--tc-muted);
    margin: .15rem 0 .3rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .73rem;
    color: var(--tc-muted);
}
.info-meta i { margin-right: 2px; }
.info-action { flex-shrink: 0; align-self: center; }

.info-card-foot {
    padding: .85rem 1.25rem;
    border-top: 1px solid var(--tc-border);
    background: #fafbfc;
}
.info-card-foot .btn { font-weight: 600; }

/* ============== Featured doctor avatar in home Meet-Our-Doctors card ============== */
.info-card-head.doctors-head {
    background: linear-gradient(135deg, #eef2ff, #c7d2fe);
}
.featured-doctor-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
    display: inline-block;
}
.featured-doctor-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============== Departments quick-strip ============== */
.dept-strip {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.dept-strip h2 { color: var(--tc-navy); font-weight: 700; }
.dept-strip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.dept-strip-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .9rem;
    background: #fff5e6;
    border: 1px solid #fde2c2;
    color: var(--tc-navy);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: .85rem;
    transition: background .12s, border-color .12s, transform .12s;
}
.dept-strip-pill:hover {
    background: var(--tc-saffron);
    color: #fff;
    border-color: var(--tc-saffron);
    transform: translateY(-1px);
}
.dept-strip-count {
    background: var(--tc-saffron);
    color: #fff;
    padding: 0 7px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}
.dept-strip-pill:hover .dept-strip-count {
    background: #fff;
    color: var(--tc-saffron);
}
.dept-strip-more {
    background: var(--tc-navy) !important;
    color: #fff !important;
    border-color: var(--tc-navy) !important;
}
.dept-strip-more:hover { background: #1d2f7a !important; }

.news-thumb {
    width: 56px; height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}
.news-thumb-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-saffron);
    font-size: 1.4rem;
    background: linear-gradient(135deg, #fff5e6, #ffe5b8);
}

.social-bar {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    padding: .85rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

@media (max-width: 768px) {
    .info-list { max-height: 420px; }
    .info-card-head { padding: .75rem 1rem; }
    .info-list-item { padding: .75rem 1rem; }
}

/* ---- Social ---- */
.social-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.social-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .7rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--tc-border);
    text-decoration: none; color: var(--tc-ink); font-size: .85rem;
}
.social-pill:hover { transform: translateY(-1px); }
.social-facebook  { color: #1877f2; }
.social-x         { color: #000; }
.social-youtube   { color: #ff0000; }
.social-instagram { color: #e1306c; }
.social-linkedin  { color: #0a66c2; }
.social-telegram  { color: #229ed9; }
.social-whatsapp  { color: #25d366; }

/* ---- Gallery ---- */
.gallery-thumb {
    position: relative; display: block; overflow: hidden; border-radius: 6px;
    background: #000;
}
.gallery-thumb img {
    width: 100%; height: 180px; object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
    opacity: .92;
}
.gallery-thumb:hover img { transform: scale(1.04); opacity: 1; }
.gallery-thumb .caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: .4rem .6rem; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem;
}

/* ============================================================
   About page styling
   ============================================================ */
.text-saffron { color: var(--tc-saffron); }

.about-hero {
    background: linear-gradient(135deg, var(--tc-navy), #1d2f7a);
}
.about-hero .lead { font-size: 1.05rem; opacity: .9; }

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

.about-section-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--tc-navy);
    padding-bottom: .35rem;
    margin-bottom: 1.25rem;
    border-bottom: 3px solid var(--tc-saffron);
    display: inline-block;
}
.about-section-title.white {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.6);
}
.about-section-title i { margin-right: .35rem; }

.about-card p:last-child { margin-bottom: 0; }

/* Legacy section — dark with saffron accents */
.about-legacy {
    background: linear-gradient(135deg, #0d1b4c, #1d2f7a);
    color: #fff;
    padding: 4rem 0;
}
.about-legacy p { font-size: 1.02rem; line-height: 1.7; opacity: .95; }

/* Portrait frames */
.portrait-frame {
    margin: 0 auto;
    max-width: 300px;
    text-align: center;
}
.portrait-frame img {
    width: 100%; height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    background: #fff;
    border: 4px solid #fff;
}
.portrait-frame figcaption {
    margin-top: .85rem;
    font-size: .92rem;
    line-height: 1.4;
}

/* Bed strength big stat */
.big-stat-card {
    background: linear-gradient(135deg, var(--tc-navy), #1d2f7a);
    color: #fff;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(13,27,76,.25);
}
.big-stat-card .big-stat-num { font-size: 4.5rem; font-weight: 800; line-height: 1; }
.big-stat-card .big-stat-lbl { font-size: 1rem; opacity: .85; letter-spacing: .5px; }

/* Mission / Vision / Quality cards */
.mvc-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid var(--tc-border);
    transition: transform .15s, box-shadow .15s;
    border-top: 5px solid var(--tc-navy);
}
.mvc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.mvc-card > i { font-size: 2.4rem; color: var(--tc-navy); margin-bottom: .5rem; }
.mvc-card h3  { font-size: 1.3rem; font-weight: 700; color: var(--tc-navy); margin-bottom: .75rem; }
.mvc-card ul  { padding-left: 1.2rem; }
.mvc-card ul li { margin-bottom: .35rem; }
.mvc-mission  { border-top-color: var(--tc-saffron); }
.mvc-mission > i { color: var(--tc-saffron); }
.mvc-vision   { border-top-color: var(--tc-green); }
.mvc-vision > i  { color: var(--tc-green); }
.mvc-quality  { border-top-color: var(--tc-red); }
.mvc-quality > i { color: var(--tc-red); }

/* Objectives list */
.objectives-list {
    counter-reset: obj;
    list-style: none;
    padding-left: 0;
}
.objectives-list li {
    counter-increment: obj;
    padding: .6rem 0 .6rem 3rem;
    position: relative;
    border-bottom: 1px dashed var(--tc-border);
}
.objectives-list li::before {
    content: counter(obj);
    position: absolute; left: 0; top: .5rem;
    width: 2.2rem; height: 2.2rem;
    background: var(--tc-saffron); color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
}
.objectives-list li:last-child { border-bottom: 0; }

/* Facilities mini cards */
.facility-mini-card {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    padding: 1.5rem 1.25rem 1.25rem;
    height: 100%;
    position: relative;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.facility-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,.06);
    border-color: var(--tc-saffron);
}
.facility-mini-card .num {
    position: absolute; top: -10px; left: 16px;
    background: var(--tc-navy); color: #fff;
    padding: 2px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 700; letter-spacing: 1px;
}
.facility-mini-card > i {
    font-size: 1.75rem; color: var(--tc-saffron); display: block;
    margin-bottom: .5rem;
}
.facility-mini-card h5 {
    font-size: 1rem; font-weight: 700; color: var(--tc-navy);
    margin-bottom: .4rem;
}

/* Multi-image carousel inside facility / infrastructure cards */
.facility-carousel, .infra-carousel {
    margin: -1.5rem -1.25rem .85rem;     /* span the card edges */
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
}
.facility-carousel .carousel-item img,
.infra-carousel .carousel-item img {
    aspect-ratio: 16 / 9; object-fit: cover;
}
.facility-carousel .carousel-indicators,
.infra-carousel    .carousel-indicators {
    bottom: 4px;
}
.facility-carousel .carousel-indicators [data-bs-target],
.infra-carousel    .carousel-indicators [data-bs-target] {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(0,0,0,.2);
    opacity: 1;
}
.facility-carousel .carousel-indicators .active,
.infra-carousel    .carousel-indicators .active {
    background: var(--tc-saffron);
}

.facility-single-img, .infra-single-img {
    width: calc(100% + 2.5rem);
    margin: -1.5rem -1.25rem .85rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    background: #f1f5f9;
}

/* Custom icon image (uploaded via admin) replaces the Bootstrap-icon glyph */
.facility-mini-card .facility-icon-img {
    width: 56px; height: 56px;
    object-fit: contain;
    display: block;
    margin-bottom: .5rem;
}
.infra-card .infra-icon img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 6px;
}
.facility-mini-card .facility-new-badge {
    position: absolute; top: -10px; right: 14px;
    background: #dc2626; color: #fff;
    padding: 2px 9px; border-radius: 999px;
    font-size: .7rem; font-weight: 700; letter-spacing: .5px;
    animation: facilityNewPulse 2s ease-in-out infinite;
}
.facility-mini-card .facility-desc { line-height: 1.5; }
.facility-mini-card .facility-desc p:last-child { margin-bottom: 0; }
.facility-mini-card .facility-desc h1,
.facility-mini-card .facility-desc h2,
.facility-mini-card .facility-desc h3,
.facility-mini-card .facility-desc h4 { color: var(--tc-navy); margin: .5rem 0 .25rem; font-weight: 700; }
.facility-mini-card .facility-desc strong { color: var(--tc-ink); }
@keyframes facilityNewPulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(220,38,38,.45); }
    50%      { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(220,38,38,0);    }
}

/* Value cards */
.value-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    border: 1px solid var(--tc-border);
    transition: transform .15s, box-shadow .15s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.07); }
.value-card > i {
    font-size: 2.4rem;
    color: var(--tc-saffron);
    width: 64px; height: 64px;
    background: #fff5e6;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: .75rem;
}
.value-card h5 { color: var(--tc-navy); font-weight: 700; }

/* Director message */
.message-card {
    background: linear-gradient(135deg, #fdfdfd, #f4f6ff);
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    padding: 2rem;
    position: relative;
}
.message-quote {
    font-size: 3rem;
    color: var(--tc-saffron);
    opacity: .5;
    line-height: 1;
}
.message-sig {
    font-style: italic;
    color: var(--tc-navy);
    font-weight: 700;
}

/* Timeline */
.timeline {
    list-style: none;
    padding: 1rem 0 1rem 1rem;
    position: relative;
    counter-reset: tl;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 90px; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--tc-saffron), var(--tc-navy));
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    padding-left: 140px;
    padding-bottom: 1.5rem;
    min-height: 60px;
}
.timeline-marker {
    position: absolute;
    left: 0; top: 0;
    width: 110px;
    background: var(--tc-navy);
    color: #fff;
    padding: .5rem .25rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: .85rem;
    box-shadow: 0 4px 12px rgba(13,27,76,.2);
}
.timeline-marker::after {
    content: "";
    position: absolute;
    right: -10px; top: 50%;
    width: 0; height: 0;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--tc-navy);
}
.timeline-content {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.timeline-content h5 { color: var(--tc-navy); margin: 0 0 .5rem; font-weight: 700; }
.timeline-content ul { padding-left: 1.15rem; }

/* Check list */
.check-list {
    list-style: none;
    padding-left: 0;
}
.check-list li {
    padding: .55rem 0;
    border-bottom: 1px dashed var(--tc-border);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li i { color: var(--tc-green); margin-right: .35rem; }

@media (max-width: 768px) {
    .timeline::before { left: 30px; }
    .timeline-item { padding-left: 75px; }
    .timeline-marker { width: 60px; font-size: .7rem; }
}

/* ============================================================
   Contact page — directory blocks + CTA cards
   ============================================================ */
.contact-block {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.contact-block-head {
    color: var(--tc-navy);
    font-weight: 700;
    margin-bottom: .85rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--tc-saffron);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.contact-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.contact-list > li {
    padding: .55rem 0;
    border-bottom: 1px dashed var(--tc-border);
}
.contact-list > li:last-child { border-bottom: 0; padding-bottom: 0; }

.contact-phone {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--tc-navy);
    text-decoration: none;
    letter-spacing: .3px;
}
.contact-phone:hover { color: var(--tc-saffron); }
.contact-email {
    display: inline-block;
    font-weight: 600;
    color: #0a66c2;
    text-decoration: none;
    word-break: break-all;
}
.contact-email:hover { text-decoration: underline; }
.contact-desc {
    font-size: .82rem;
    color: var(--tc-muted);
    margin-top: .15rem;
}

.contact-cta {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--tc-ink);
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.contact-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
    border-color: var(--tc-saffron);
    color: var(--tc-ink);
}
.contact-cta > i { font-size: 1.6rem; }

/* ---- Departments ---- */
.dept-card {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    position: relative;
}
.dept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
    border-color: var(--tc-saffron);
}
.dept-card .dept-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff5e6, #ffe5b8);
    color: var(--tc-navy);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: .5rem;
    align-self: center;
}
.dept-card .dept-icon i  { font-size: 2.1rem; line-height: 1; }
.dept-card .dept-icon svg { width: 36px; height: 36px; }

.dept-card h5 { color: var(--tc-navy); font-weight: 700; margin: 0; text-align: center; }

/* Hero header SVG for detail page (small, in-line with the H1) */
.dept-hero-svg { display: inline-flex; align-items: center; vertical-align: middle; }
.dept-hero-svg svg { width: 32px; height: 32px; color: currentColor; }

/* Sidebar list SVG mini-icons */
.dept-sidebar-list .side-svg { display: inline-flex; width: 18px; height: 18px; color: var(--tc-saffron); }
.dept-sidebar-list .side-svg svg { width: 18px; height: 18px; }
.dept-card .stretched-link {
    align-self: center;
    z-index: 1;
}

/* ---- Department detail page ---- */
.dept-detail-card {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.dept-summary {
    font-size: 1.05rem;
    color: var(--tc-ink);
    margin-bottom: .5rem;
}
.dept-summary-hi,
.dept-about-hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: #475569;
    margin-top: .5rem;
}

.dept-sidebar {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    padding: 1.25rem;
}
.dept-sidebar-list { list-style: none; padding: 0; margin: 0; max-height: 480px; overflow-y: auto; }
.dept-sidebar-list li { border-bottom: 1px solid var(--tc-border); }
.dept-sidebar-list li:last-child { border-bottom: 0; }
.dept-sidebar-list a {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .25rem;
    color: var(--tc-ink); text-decoration: none;
    font-size: .92rem;
}
.dept-sidebar-list a:hover { color: var(--tc-navy); background: #fffaf0; }
.dept-sidebar-list a i { color: var(--tc-saffron); width: 18px; text-align: center; }
.dept-sidebar-list li.active a {
    background: #fff3cd;
    color: var(--tc-navy);
    font-weight: 700;
}

/* ---- Footer ---- */
.site-footer { background: var(--tc-navy); color: #cbd5e1; }
.site-footer h5, .site-footer h6 { color: #fff; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .social-icons li { margin-bottom: .35rem; }
.footer-bar { background: #08123a; padding: .75rem 0; color: #94a3b8; }

/* ---- High contrast mode ---- */
body.high-contrast {
    background: #000; color: #ffe600;
}
body.high-contrast .site-header,
body.high-contrast .card,
body.high-contrast .notice-card,
body.high-contrast .hero-card,
body.high-contrast .news-item {
    background: #000; color: #ffe600; border-color: #ffe600;
}
body.high-contrast a { color: #00ffff; }
body.high-contrast .gov-strip { background: #000; color: #ffe600; }
body.high-contrast .site-nav { background: #000; border-color: #ffe600; }
body.high-contrast .site-nav .nav-link { color: #ffe600; }
body.high-contrast .hero { background: #000; }
body.high-contrast img { filter: grayscale(.6) contrast(1.1); }

/* ---- Online Form dropdown (bilingual stacked) ---- */
.dropdown-forms { min-width: 280px; padding: .5rem 0; }
.dropdown-forms .dropdown-item {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .55rem .9rem; white-space: normal;
}
.dropdown-forms .dropdown-item i { font-size: 1.25rem; margin-top: .15rem; flex-shrink: 0; }
.dropdown-forms .dd-title-hi { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.dropdown-forms .dd-title-en { font-size: .8rem; color: #6b7280; }

/* ---- Form tiles (landing) ---- */
.form-tile {
    display: block; padding: 1.75rem 1.25rem;
    background: #fff; border: 1px solid var(--tc-border); border-radius: 10px;
    text-decoration: none; color: inherit; text-align: center;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.form-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.07); border-color: var(--tc-saffron); }
.form-tile i { font-size: 2.25rem; }
.form-tile .form-tile-title-hi { font-weight: 600; margin-top: .6rem; }
.form-tile .form-tile-title-en { font-size: .8rem; color: var(--tc-muted); }

.form-card { background: #fff; }
.form-card .section-title { font-size: 1rem; }

/* ---- Form submission success ---- */
.success-circle {
    width: 80px; height: 80px; margin: 0 auto;
    border-radius: 50%; background: #d1fae5; color: #047857;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}

/* ---- Bed availability ---- */
.bed-summary {
    background: #fff; border-radius: 12px; padding: 1.25rem 1.5rem;
    border: 1px solid var(--tc-border);
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
    position: relative;
    display: flex; flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
}
.bed-summary .num    { font-size: 3rem; font-weight: 800; line-height: 1; }
.bed-summary .lbl    { font-size: .9rem; color: var(--tc-ink); font-weight: 600; }
.bed-summary .lbl .hi { font-family: 'Noto Sans Devanagari', sans-serif; font-weight: 400; font-size: .85rem; color: var(--tc-muted); }
.bed-summary .sublbl { color: var(--tc-muted); margin-top: .15rem; }

.bed-summary.bed-total    { border-left: 6px solid var(--tc-navy); }
.bed-summary.bed-total    .num { color: var(--tc-navy); }
.bed-summary.bed-available{ border-left: 6px solid var(--tc-green); }
.bed-summary.bed-available .num { color: var(--tc-green); }
.bed-summary.bed-waiting  { border-left: 6px solid var(--tc-red); }
.bed-summary.bed-waiting  .num { color: var(--tc-red); }

.bed-table th { background: var(--tc-navy); color: #fff; vertical-align: middle; }
.bed-table .ward-en { font-weight: 600; color: var(--tc-ink); }
.bed-table .ward-hi { font-family: 'Noto Sans Devanagari', sans-serif; color: var(--tc-muted); font-size: .9rem; }

.bed-count {
    display: inline-block; min-width: 56px;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: 1.1rem; font-weight: 700;
}
.bed-count.bed-ok   { background: #dcfce7; color: #166534; }
.bed-count.bed-low  { background: #fef3c7; color: #92400e; }
.bed-count.bed-zero { background: #fee2e2; color: #991b1b; }

/* ---- Infrastructure / Facility cards ---- */
.infra-card, .facility-card {
    background: #fff; border: 1px solid var(--tc-border); border-radius: 10px;
    padding: 1.5rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.infra-card:hover, .facility-card:hover {
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); border-color: var(--tc-saffron);
}
.infra-icon, .facility-icon {
    width: 52px; height: 52px; border-radius: 10px;
    background: linear-gradient(135deg, #fff5e6, #ffe5b8);
    color: var(--tc-navy);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.facility-icon { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.infra-capacity {
    display: inline-block; padding: .15rem .55rem; margin-bottom: .35rem;
    background: #fef3c7; color: #92400e; border-radius: 4px; font-size: .78rem;
}

/* ---- Ayushman dashboard ---- */
.ayushman-summary {
    color: #fff; border-radius: 10px; padding: 1.25rem 1.5rem;
    position: relative; overflow: hidden;
}
.ayushman-summary .num { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.ayushman-summary .lbl { font-size: .85rem; opacity: .9; margin-top: .15rem; }
.ayushman-summary > i {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    font-size: 2.6rem; opacity: .25;
}

.india-map-wrap {
    background: #fff; border: 1px solid var(--tc-border);
    border-radius: 10px; padding: .75rem; overflow: hidden;
}
.india-d3-container {
    width: 100%;
    min-height: 500px;
    background: #f1f5f9;          /* ocean tone */
    border-radius: 8px;
    position: relative;
}
.india-d3-svg { display: block; }
.india-d3-svg .state {
    stroke: #ffffff;
    stroke-width: 1;
    stroke-linejoin: round;
    cursor: pointer;
    transition: stroke .15s, filter .15s;
}
.india-d3-svg .state:hover { filter: brightness(1.08); }
.india-d3-svg .state.has-data {
    stroke: #7c2d12;            /* darker outline highlights data-bearing states */
    stroke-width: 1.5;
    filter: drop-shadow(0 1px 3px rgba(124,45,18,.35));
}
.india-d3-svg .state.active {
    stroke: #0d1b4c;
    stroke-width: 2.4;
    filter: drop-shadow(0 0 5px rgba(13,27,76,.5));
}

/* ============== State drop-pins (Google-Maps style) ============== */
.india-d3-svg .state-pin {
    transition: transform .15s ease;
    transform-origin: 0 0;
    transform-box: fill-box;
}
.india-d3-svg .state-pin:hover { transform: scale(1.25); }

.india-d3-svg .state-pin-body {
    fill: #dc2626;
    stroke: #ffffff;
    stroke-width: 1.4;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.india-d3-svg .state-pin-dot {
    fill: #ffffff;
    stroke: #b91c1c;
    stroke-width: 1;
    pointer-events: none;
}
.india-d3-svg .state-pin-shadow {
    fill: rgba(0,0,0,.25);
    pointer-events: none;
}
.india-d3-svg .state-pin:hover .state-pin-body { fill: #b91c1c; }
.india-d3-svg .state-label {
    font: 600 9px/1 'Inter', system-ui, sans-serif;
    fill: #1f2937;
    pointer-events: none;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 2.5;
}

.india-map-tooltip {
    position: absolute;
    background: rgba(13,27,76,.95); color: #fff;
    padding: .55rem .75rem; border-radius: 6px;
    font-size: .82rem; pointer-events: none;
    z-index: 9999; min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.india-map-tooltip .tip-title { font-weight: 600; margin-bottom: .25rem; }
.india-map-tooltip .tip-code  {
    background: rgba(255,255,255,.15); padding: 1px 6px;
    border-radius: 4px; font-size: .7rem; margin-left: .25rem;
}
.india-map-tooltip .tip-row {
    display: flex; justify-content: space-between; gap: .75rem;
    padding: .1rem 0; font-size: .8rem;
}

.india-map-legend {
    display: flex; align-items: center; gap: .5rem;
}
.india-map-legend .legend-bar {
    flex-grow: 1; height: 8px; max-width: 240px; border-radius: 4px;
    background: linear-gradient(to right, #fde68a, #b91c1c);
}
.state-table tr.state-row:hover { background: #fffaf0; }

/* sidebar group label */
.admin-sidebar .nav-group-label {
    text-transform: uppercase; font-size: .7rem; color: #94a3b8;
    padding: .75rem 1rem .25rem; letter-spacing: .5px;
}

@media (max-width: 768px) {
    .brand-title { font-size: 1rem; }
    .brand-sub   { font-size: .75rem; }
    .header-contact { font-size: .8rem; }
    .india-map-svg { max-height: 460px; }
}

/* ============== Bed-availability modal — 80% inline frame ============== */
/* 80% of the viewport, centered, clean (no modal header), with a floating
   close button. The embedded app's own header is cropped out (see below). */
.bed-modal-dialog {
    max-width: 92vw; width: 92vw; height: 92vh; margin: 0 auto;
}
.bed-modal-content {
    height: 92vh; overflow: hidden; border-radius: 12px;
    position: relative; border: 0;
}
/* Crop wrapper: clips the embedded site's header (top bar + both nav rows) by
   pulling the iframe up. --bed-crop is the header height to hide — tweak if it
   shows a sliver of nav (increase) or clips the dashboard title (decrease). */
.bed-modal-crop {
    position: absolute; inset: 0; overflow: hidden;
    --bed-crop: 178px;
}
.bed-modal-crop iframe {
    width: 100%; border: 0; display: block;
    height: calc(92vh + var(--bed-crop));
    margin-top: calc(-1 * var(--bed-crop));
}
/* Floating round buttons: open-in-new-window (top-left), close (top-right). */
.bed-modal-open,
.bed-modal-close {
    position: absolute; top: 12px; z-index: 5;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(15, 23, 42, .72); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; cursor: pointer; text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    transition: background .15s ease, transform .15s ease;
}
.bed-modal-open  { left: 12px; }
.bed-modal-close { right: 12px; }
.bed-modal-open:hover,
.bed-modal-close:hover { background: rgba(15, 23, 42, .92); color: #fff; transform: scale(1.06); }
@media (max-width: 768px) {
    .bed-modal-dialog { max-width: 96vw; width: 96vw; height: 94vh; }
    .bed-modal-content { height: 94vh; }
    .bed-modal-crop iframe { height: calc(94vh + var(--bed-crop)); }
}
