/* Final public UI cleanup for compact government hospital header/menu/content. */
body.gh-public {
    background: #f6f9fd;
}

.gh-container-wide {
    max-width: 1380px;
}

/* Topbar live time/session */
.gh-topbar-v3 .gh-topbar-inner {
    min-height: 32px;
}
.gh-topbar-v3 .gh-session-meta,
.gh-topbar-v3 .gh-time-meta {
    font-variant-numeric: tabular-nums;
}
.gh-topbar-v3 .gh-session-meta {
    color: #0f766e;
}

/* Header: logo/official emblem aligned cleanly to right side. */
.gh-brand-row-v3 {
    display: grid;
    grid-template-columns: minmax(360px, 1.1fr) auto minmax(360px, .95fr);
    align-items: center;
    min-height: 76px;
    gap: 18px;
}
.gh-header-right-v3 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
}
.gh-official-emblem {
    margin-left: 0;
    justify-self: end;
}
.gh-header-search {
    flex: 0 1 310px;
}
.gh-header-search input {
    min-width: 190px;
}
.gh-header-center-actions {
    justify-content: center;
}
.gh-data-link {
    min-width: 168px;
}

/* Main menu: keep maximum 10 top menus clean and child items inside dropdown. */
.gh-mainnav-v3 .gh-nav-list {
    justify-content: center;
    flex-wrap: nowrap;
}
.gh-mainnav-v3 .gh-nav-list > li > a {
    padding: 10px 13px;
    font-size: .86rem;
    line-height: 1.15;
}
.gh-nav-list > li.has-children > a::after {
    content: "⌄";
    font-size: .85rem;
    opacity: .9;
    margin-left: 2px;
    margin-top:-7px;
}
.gh-mega-menu-v3 {
    width: min(560px, calc(100vw - 34px));
    left: 50%;
    transform: translateX(-50%);
    padding: 16px;
}
.gh-mega-title {
    font-size: .88rem;
    font-weight: 950;
    color: #153f80;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.gh-mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.gh-mega-grid a {
    border-radius: 10px;
    padding: 10px 12px;
}
.gh-mega-grid a strong {
    font-size: .9rem;
}
.gh-mega-grid a span {
    font-size: .76rem;
    color: #64748b;
}

/* Remove extra white spaces globally while keeping readable sections. */
.gh-section {
    padding: 36px 0;
}
.gh-page-hero {
    padding-top: 42px !important;
    padding-bottom: 38px !important;
}
.gh-section-heading {
    margin-bottom: 20px;
}
.gh-section-heading h2,
.gh-about-content h2,
.gh-schedule-panel h2,
.gh-contact-panel h2 {
    margin-bottom: 8px;
}
.gh-sample-hero {
    padding-top: 18px;
    padding-bottom: 28px;
}
.gh-capacity-section {
    padding-top: 36px;
    padding-bottom: 30px;
}
.gh-capacity-grid {
    gap: 12px;
}
.gh-capacity-card {
    min-height: 96px;
    padding: 18px 12px;
}
.gh-footer {
    padding-top: 26px;
}
.gh-footer-bottom {
    margin-top: 18px;
}

/* Rectangular key-person photos. */
.gh-sample-person-card img,
.gh-dashboard-person-mini img,
.gh-key-person-card img,
.gh-leader-photo,
.gh-leader-card img {
    border-radius: 8px !important;
    object-fit: cover;
    background: #eef5fb;
}
.gh-sample-person-card img {
    width: 58px;
    height: 72px;
}
.gh-dashboard-person-mini img {
    width: 58px;
    height: 72px;
}
.gh-key-person-card img {
    width: 64px;
    height: 82px;
}
.gh-leader-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 12px;
    background: #eef5fb;
}
.gh-leader-photo {
    width: 100%;
    height: 100%;
}
.gh-leadership-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.gh-leader-card {
    background: #ffffff;
    border: 1px solid #e2edf9;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(6, 35, 74, .07);
}
.gh-leader-body {
    padding: 12px 2px 2px;
}
.gh-leader-body h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 950;
    color: #123e84;
}
.gh-leader-designation {
    color: #0f766e;
    font-weight: 900;
    margin-bottom: 4px;
}
.gh-leader-message,
.gh-leader-department {
    color: #53657d;
    font-size: .86rem;
    margin-bottom: 6px;
}
.gh-leader-btn {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #1554b7;
    font-weight: 850;
    text-decoration: none;
}

/* Keep old standalone back-top hidden because the accessibility widget now includes it. */
.gh-back-top {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .gh-brand-row-v3 {
        grid-template-columns: minmax(260px, 1fr) auto;
        min-height: 74px;
    }
    .gh-header-center-actions {
        display: none !important;
    }
    .gh-mainnav-v3 .gh-nav-list {
        justify-content: flex-start;
        overflow-x: auto;
    }
    .gh-leadership-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .gh-brand-row-v3 {
        display: flex;
        min-height: 72px;
    }
    .gh-mainnav-v3 .gh-nav-list {
        display: block;
        overflow: visible;
    }
    .gh-mega-menu-v3 {
        position: static;
        width: auto;
        transform: none;
        box-shadow: none;
        border-radius: 12px;
        margin: 0 10px 10px;
    }
    .gh-mega-grid {
        grid-template-columns: 1fr;
    }
    .gh-leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .gh-section {
        padding: 28px 0;
    }
    .gh-topbar-v3 .gh-topbar-inner,
    .gh-topbar-v3 .gh-top-left,
    .gh-topbar-v3 .gh-top-actions {
        justify-content: center;
        text-align: center;
    }
    .gh-brand-v3 .gh-brand-logo {
        width: 54px;
        height: 54px;
    }
    .gh-brand-v3 .gh-brand-logo img {
        width: 50px;
        height: 50px;
    }
    .gh-leadership-grid {
        grid-template-columns: 1fr;
    }
}

/* Small math captcha for public POST forms */
.public-captcha-box {
    border-color: rgba(15, 118, 110, .20) !important;
    background: linear-gradient(135deg, rgba(240, 253, 250, .88), rgba(239, 246, 255, .88)) !important;
}

.public-captcha-box .form-control {
    max-width: 220px;
}
