.page-heading {
    padding-block: clamp(2.25rem, 5vw, 4.75rem);
    border-block-end: 1px solid var(--line);
    background: var(--ice);
}

.page-heading h1 {
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.12;
}

:root[lang="en"] .page-heading h1 { letter-spacing: -.035em; }
:root[lang="ar"] .page-heading h1 { line-height: 1.32; }

.page-heading p {
    max-inline-size: 43rem;
    margin-block-start: .65rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.department-heading-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    align-items: center;
    gap: clamp(1.25rem, 4vw, 3.5rem);
}

.department-heading h1 { overflow-wrap: anywhere; }

.department-back {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    margin-block-end: .5rem;
    color: var(--blue-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.department-back:hover { color: var(--ink); }

.department-heading-image {
    inline-size: 100%;
    max-inline-size: 24rem;
    block-size: auto;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: cover;
}

.department-doctors .doctor-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 18rem));
}

.department-doctors .record-empty { color: var(--muted); }

.page-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.page-section-heading,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.page-section-heading {
    justify-content: space-between;
    gap: .9rem 1.5rem;
    margin-block-end: 1.35rem;
}

.page-section-heading h2 {
    font-size: clamp(1.65rem, 2.6vw, 2.4rem);
    line-height: 1.35;
}

.page-actions { gap: .55rem; }

.page-button-primary {
    background: var(--blue);
    color: var(--paper);
}

.page-button-primary:hover { background: var(--blue-dark); }

.page-button-secondary {
    border-color: var(--line);
    color: var(--blue-dark);
}

.page-button-secondary:hover {
    border-color: var(--blue);
    background: var(--ice);
}

.about-departments,
.contact-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.75rem, 1.75vw, 1.35rem);
}

.about-department,
.contact-channel {
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.about-department {
    display: grid;
    block-size: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .8rem;
}

.about-department:hover,
.about-department:focus-visible {
    border-color: var(--blue);
    background: var(--ice);
}

.about-department h3 {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: .18em;
}

.about-department-icon {
    display: grid;
    inline-size: 2.6rem;
    block-size: 2.6rem;
    place-items: center;
    border-radius: .7rem;
    background: var(--ice);
    color: var(--blue-dark);
}

.about-department h3,
.contact-channel dt {
    font-size: clamp(1.13rem, 1.8vw, 1.4rem);
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.about-department p,
.news-entry p,
.contact-channel dd {
    margin: .4rem 0 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.news-entries {
    border-block-start: 2px solid var(--blue);
}

.news-entry {
    display: grid;
    grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
    align-items: start;
    gap: .4rem clamp(.8rem, 3vw, 2.25rem);
    padding: clamp(1.15rem, 2.5vw, 2rem) clamp(.7rem, 2vw, 1.5rem);
    border-block-end: 1px solid var(--line);
    border-inline-start: 3px solid transparent;
}

.news-entry:target {
    border-inline-start-color: var(--blue);
    background: var(--ice);
}

.news-entry:target .sample-tag { background: var(--paper); }

.news-entry h2 {
    font-size: clamp(1.28rem, 2.2vw, 1.8rem);
    line-height: 1.35;
}

.news-entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .28rem .55rem;
}

.news-entry-meta .sample-tag { font-size: .875rem; }

.contact-channels { margin: 0; }

.contact-channel {
    border-block-start: 3px solid var(--blue);
}

.contact-action {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    color: var(--blue-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.contact-action:hover { color: var(--ink); }

@media (max-width: 920px) {
    .about-departments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .department-heading-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .about-departments,
    .contact-channels,
    .news-entry { grid-template-columns: minmax(0, 1fr); }
}
