.departments-page { padding: 50px 0; min-height: 55vh; }
.departments-page-heading { margin-bottom: 32px; }
.departments-page-heading h1 { color: #112a42; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.2; margin: 0 0 16px; overflow-wrap: anywhere; }
.departments-page-heading p { color: #60778d; font-size: 1rem; line-height: 1.8; margin: 0; }
.departments-directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.departments-directory .kih-department-card { height: 100%; }
.departments-directory h2, .departments-directory p { overflow-wrap: anywhere; }
.department-back-link { display: inline-flex; align-items: center; gap: 12px; color: #09519e; text-decoration: none; margin-bottom: 28px; }
.department-back-link:hover { text-decoration: underline; }
.department-detail { max-width: 1000px; padding: clamp(24px, 4vw, 48px); border: 1px solid #cfdfed; border-radius: 28px; background: #fff; }
.department-detail .kih-department-icon { margin-bottom: 24px; }
.department-detail-content { color: #183956; line-height: 1.9; overflow-wrap: anywhere; border-top: 1px solid #cfdfed; padding-top: 28px; }
@media (max-width: 1100px) { .departments-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .departments-directory { grid-template-columns: 1fr; gap: 13px; } .departments-page { padding: 32px 0; } }

.departments-page-heading h1 {
    color: var(--ink);
    font-size: clamp(2rem, 2.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.12;
}
.departments-directory .kih-department-card-content h2 {
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 .75rem;
}
.departments-page-heading p,
.departments-directory .kih-department-card-content p {
    text-align: left;
}
/* Department detail pages */
.department-show { color: var(--ink); }
.department-hero { padding: clamp(2rem, 5vw, 4rem) 0; background: radial-gradient(circle at 92% 0%, rgba(229,27,62,.055), transparent 28%), #f4f7fc; }
.department-hero-heading { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.department-hero .kih-department-icon { flex-shrink: 0; margin: 0; }
.department-show h1 { font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 600; line-height: 1.15; margin: 0; }
.department-show h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 600; line-height: 1.25; margin-bottom: 1rem; }
.department-show p, .department-copy { font-size: .95rem; line-height: 1.85; text-align: left; }
.department-hero > .container > p { max-width: 850px; font-size: 1.05rem; }
.department-section-links { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin-top: 1.75rem; }
.department-section-links a { color: var(--kih-blue); font-weight: 600; font-size: .85rem; }
.department-main { padding-top: 3rem; padding-bottom: 3.5rem; }
.department-overview, .department-doctors { scroll-margin-top: 150px; }
.department-copy { margin-bottom: 1.25rem; }
.department-visit { margin-top: 2.5rem; }
.department-visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.department-visit-grid article, .department-help, .department-doctors-empty { padding: 1.5rem; background: #f4f7fc; border: 1px solid var(--line); border-radius: 18px; }
.department-visit-grid i, .department-help > i { display: block; font-size: 1.7rem; color: var(--kih-blue); margin-bottom: 1rem; }
.department-visit-grid h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.department-visit-grid p { font-size: .85rem; margin-bottom: 0; }
.department-help { border-top: 3px solid var(--kih-blue); }
.department-help h2 { font-size: 1.5rem; }
.department-phone { display: block; color: var(--kih-blue); font-weight: 600; font-size: 1.2rem; margin-bottom: 1.5rem; }
.department-action { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border: 2px solid var(--kih-blue); border-radius: 10px; color: var(--kih-blue); font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.department-action:hover { background: var(--kih-blue); color: #fff; }
.department-doctors { margin-top: 3.5rem; }
.department-doctors-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.department-doctors-heading p { margin: 0; }
.department-show a:focus-visible, .department-show button:focus-visible { outline: 2px solid var(--kih-blue); outline-offset: 3px; }
@media (max-width: 575.98px) {
    .department-hero-heading { align-items: center; gap: .85rem; }
    .department-show h1 { font-size: 1.8rem; }
    .department-visit-grid { grid-template-columns: 1fr; }
    .department-doctors-heading { align-items: flex-start; flex-direction: column; }
    .department-main { padding-top: 2rem; }
}
.department-doctors-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.department-doctors-empty p { margin: 0; }
.department-copy h3 { margin: 1.5rem 0 .75rem; font-size: 1.2rem; color: var(--ink, #102a43); }
.department-copy ul { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.department-copy li + li { margin-top: .4rem; }

.department-cta-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin-top: 1.5rem; }
.department-cta-group .department-action { justify-content: center; min-width: 0; min-height: 46px; padding: .7rem .5rem; gap: .4rem; text-align: center; text-decoration: none; }
.department-cta-group .department-action-primary { background: var(--kih-red, #e51b3e); border-color: var(--kih-red, #e51b3e); color: #fff; }
.department-cta-group .department-action-primary:hover { background: #bd1633; border-color: #bd1633; }
@media (max-width: 575.98px) {
    .department-cta-group .department-action { width: 100%; }
}

/* Pictorial hero: background layers do not change the existing hero height. */
/* Same navy base and overlay as the diagnostics hero. */
.department-hero-visual { position: relative; isolation: isolate; overflow: hidden; background: #063b74; }
.department-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; z-index: -2; }
.department-hero-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,30,60,.97) 0%, rgba(6,46,86,.91) 38%, rgba(6,46,86,.55) 68%, rgba(6,46,86,.25) 100%); }
.department-hero-visual h1, .department-hero-visual .department-section-links a { color: #fff; }
.department-hero-visual p { color: #e0ebf7; }
.department-hero-visual .department-section-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.department-hero-visual .department-section-links a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
@media (max-width: 767px) { .department-hero-visual::before { background: rgba(3,30,60,.78); } }

/* Align department overview copy evenly on narrow screens. */
@media (max-width: 767.98px) {
    .department-overview p {
        text-align: justify;
        text-align-last: left;
        hyphens: auto;
        overflow-wrap: break-word;
        line-height: 1.8;
    }
    .department-main {
        padding-left: 20px;
        padding-right: 20px;
    }
}
