@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f2f9fc;
    --surface: #ffffff;
    --text: #17324d;
    --muted: #627891;
    --primary: #0e6ba8;
    --primary-dark: #094a76;
    --accent: #16a39a;
    --line: #dbe7ef;
    --shadow: 0 18px 44px rgba(12, 55, 90, 0.12);
    --font-family: "Inter", "Roboto", Arial, sans-serif;
}

.portal-body {
    margin: 0;
    color: #164e63;
    background: #ffffff;
    font-family: var(--font-family);
}

.portal-body .container {
    width: min(1280px, calc(100% - 32px));
}

.portal-body h1,
.portal-body h2,
.portal-body h3,
.portal-body strong,
.portal-brand strong {
    font-family: var(--font-family);
}

.portal-header {
    background: #ffffff;
}

.portal-topline {
    background: #0c5f8f;
    color: #fff;
}

.portal-topline-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    min-height: 44px;
}

.portal-marquee {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.portal-marquee marquee {
    min-width: 0;
}

.portal-pill,
.portal-title-kicker,
.portal-mini-label,
.portal-pill-light {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portal-pill {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.portal-pill-light {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.portal-topline-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.portal-topline-meta a {
    color: #fff;
    font-size: 14px;
}

.portal-brandbar {
    display: grid;
    grid-template-columns: 320px 1fr 220px;
    gap: 24px;
    align-items: center;
    padding: 18px 0 14px;
}

.portal-brand,
.portal-brand-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-brand img {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(12, 55, 90, 0.12);
}

.portal-brand strong {
    display: block;
    font-size: 28px;
    color: #0d4669;
}

.portal-brand span {
    color: #4d6e85;
    font-size: 15px;
}

.portal-brand-copy p {
    margin: 0;
    color: #47677d;
    line-height: 1.7;
    font-size: 16px;
}

.portal-hotline {
    justify-self: end;
    display: grid;
    gap: 2px;
    min-width: 210px;
    padding: 14px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0891b2, #059669);
    color: #fff;
    box-shadow: 0 16px 34px rgba(8, 145, 178, 0.25);
}

.portal-hotline small {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-hotline strong {
    font-size: 26px;
}

.portal-nav-wrap {
    border-top: 1px solid #d9ebf3;
    border-bottom: 1px solid #d9ebf3;
    background: #ffffff;
}

.portal-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    min-height: 62px;
}

.portal-nav li {
    position: relative;
}

.portal-nav li > a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    color: #164e63;
    font-weight: 700;
    border-radius: 14px;
}

.portal-nav li:hover > a {
    background: #ecfeff;
    color: #0e7490;
}

.portal-nav li ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    min-width: 250px;
    margin: 0;
    padding: 10px;
    list-style: none;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 45, 74, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.portal-nav li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.portal-nav li ul a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.portal-nav li ul a:hover {
    background: #f0fbfd;
}

.portal-hero-wrap {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 22px;
    padding: 26px 0 20px;
    align-items: stretch;
}

.portal-brandbar-simple {
    grid-template-columns: 320px 1fr 220px;
}

.portal-hero-centered {
    padding: 28px 0 20px;
}

.portal-shortcuts-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 28px;
}

.portal-shortcut-box {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #dfeef3;
    box-shadow: none;
}

.portal-shortcut-box h3 {
    margin: 2px 0 10px;
    font-size: 22px;
    color: #0f3d58;
}

.portal-shortcut-box p {
    margin: 0;
    color: #567286;
    line-height: 1.7;
}

.portal-shortcut-box a {
    display: inline-flex;
    margin-top: 12px;
    color: #0e7490;
    font-weight: 700;
}

.portal-shortcut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #ecfeff;
    color: #0e7490;
    font-size: 24px;
}

.portal-shortcut-contact {
    grid-template-columns: 1fr;
}

.portal-shortcut-contact ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.portal-shortcut-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    color: #567286;
    line-height: 1.7;
}

.portal-shortcut-contact i {
    color: #059669;
    margin-top: 4px;
}

.portal-hero-side {
    display: grid;
    gap: 16px;
}

.portal-service-card,
.portal-contact-card,
.portal-featured-mini,
.portal-highlight-card,
.portal-news-lead,
.portal-news-item,
.portal-doctor-card,
.portal-department-card,
.portal-info-box {
    background: #fff;
    border: 1px solid #dfeef3;
    box-shadow: none;
}

.portal-service-card,
.portal-contact-card {
    padding: 22px;
    border-radius: 24px;
}

.portal-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #ecfeff;
    color: #0e7490;
    font-size: 24px;
}

.portal-service-card h3,
.portal-contact-card h3,
.portal-news-lead h3,
.portal-news-item h3,
.portal-doctor-card h3,
.portal-department-card h3,
.portal-info-box h3,
.portal-footer-links h3,
.portal-footer-contact h3 {
    margin: 16px 0 10px;
    font-size: 22px;
    color: #0f3d58;
}

.portal-service-card p,
.portal-contact-card li span,
.portal-news-lead p,
.portal-news-item p,
.portal-doctor-card p,
.portal-department-card p,
.portal-media-copy p,
.portal-footer p {
    color: #567286;
    line-height: 1.75;
}

.portal-service-card a,
.portal-doctor-card a,
.portal-department-card a,
.portal-text-link {
    color: #0e7490;
    font-weight: 700;
}

.portal-hero-main {
    min-width: 0;
}

.portal-hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 18px;
    background: #cbe9f1;
    box-shadow: none;
}

.portal-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease;
}

.portal-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.portal-slide img,
.portal-featured-mini img,
.portal-news-lead img,
.portal-news-item img,
.portal-doctor-card img,
.portal-department-card img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.portal-slide img {
    height: 100%;
    object-fit: contain;
    background: #d7ebf1;
}

.portal-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 49, 74, 0.72) 0%, rgba(10, 88, 132, 0.42) 40%, rgba(11, 49, 74, 0.08) 100%);
}

.portal-slide-copy {
    position: absolute;
    left: 42px;
    bottom: 42px;
    z-index: 2;
    max-width: 62%;
    color: #fff;
}

.portal-slide-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
}

.portal-slide-copy p {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.portal-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
}

.portal-button-primary {
    background: #fff;
    color: #0e7490;
}

.portal-button-ghost {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.portal-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.portal-slide-prev {
    left: 18px;
}

.portal-slide-next {
    right: 18px;
}

.portal-slide-dots {
    position: absolute;
    left: 42px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.portal-slide-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.portal-slide-dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: #fff;
}

.portal-contact-card ul,
.portal-footer-contact ul,
.portal-info-box ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.portal-contact-card li,
.portal-footer-contact li,
.portal-info-box li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.portal-contact-card i,
.portal-footer-contact i,
.portal-info-box i {
    color: #059669;
    margin-top: 4px;
}

.portal-featured-mini {
    display: block;
    overflow: hidden;
    border-radius: 24px;
}

.portal-featured-mini img {
    height: 178px;
}

.portal-featured-mini div {
    padding: 16px 18px 20px;
}

.portal-featured-mini strong {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    color: #0f3d58;
    line-height: 1.5;
}

.portal-mini-label,
.portal-title-kicker {
    background: #ecfeff;
    color: #0e7490;
}

.portal-highlight-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 26px;
}

.portal-highlight-card {
    padding: 20px 22px;
    border-radius: 16px;
}

.portal-highlight-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 30px;
    color: #0c5f8f;
}

.portal-highlight-card span {
    color: #557384;
    line-height: 1.7;
}

.portal-main {
    padding-bottom: 46px;
}

.portal-section {
    padding: 30px 0 14px;
}

.portal-section-tint {
    background: #ffffff;
}

.portal-section-center .portal-section-head {
    justify-content: center;
    text-align: center;
}

.portal-section-center .portal-section-head > div {
    max-width: 760px;
}

.portal-section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.portal-section-head h2 {
    margin: 12px 0 0;
    font-size: 34px;
    line-height: 1.15;
    color: #0f3d58;
}

.portal-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    max-width: 48%;
}

.portal-category-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbeef3;
    color: #356179;
    font-weight: 700;
}

.portal-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 24px;
    align-items: start;
}

.portal-news-lead,
.portal-news-item,
.portal-doctor-card,
.portal-department-card {
    overflow: hidden;
    border-radius: 14px;
}

.portal-news-lead {
    align-self: start;
}

.portal-news-lead img {
    height: 300px;
}

.portal-news-lead-body,
.portal-doctor-body,
.portal-department-body {
    padding: 22px;
}

.portal-news-lead-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 20px;
}

.portal-news-lead h3 {
    font-size: 24px;
    line-height: 1.3;
    min-height: 0;
    margin: 0;
}

.portal-news-lead p {
    min-height: 0;
    margin: 0;
}

.portal-news-list {
    display: grid;
    gap: 16px;
    align-content: start;
}

.portal-news-item {
    display: grid;
    grid-template-columns: 168px 1fr;
    min-height: 178px;
    border-radius: 14px;
}

.portal-news-item img {
    height: 100%;
}

.portal-news-item > div {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.portal-news-item h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 88px;
}

.portal-news-item p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 56px;
    margin: 0 0 10px;
}

.portal-news-item strong,
.portal-news-lead strong {
    color: #0c5f8f;
    font-size: 14px;
}

.portal-news-item strong {
    margin-top: auto;
}

.portal-news-lead strong {
    margin-top: auto;
}

.portal-doctor-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.28s ease;
    will-change: transform;
}

.portal-doctor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 12px 18px;
    text-align: center;
    flex: 0 0 calc((100% - (20px * (var(--per-view, 4) - 1))) / var(--per-view, 4));
    border: none;
}

.portal-doctor-photo-wrap {
    width: 184px;
    height: 184px;
    margin-bottom: 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f3fbfd;
    box-shadow: none;
}

.portal-doctor-card img {
    height: 100%;
}

.portal-doctor-namebox {
    width: 100%;
    min-height: 98px;
    padding: 14px 16px;
    border: 1px solid #cfdfe8;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-doctor-body span {
    color: #0c5f8f;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-doctor-body h3,
.portal-department-body h3 {
    margin-top: 8px;
}

.portal-doctor-body h3 {
    margin: 6px 0 0;
    font-size: 18px;
    line-height: 1.4;
}

.portal-doctor-body p {
    margin: 16px 0 0;
    min-height: 92px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portal-doctor-body a {
    margin-top: 14px;
}

.portal-department-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.28s ease;
    will-change: transform;
}

.portal-department-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - (20px * (var(--per-view, 4) - 1))) / var(--per-view, 4));
    border-radius: 14px;
}

.portal-department-photo-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8f4f8;
}

.portal-department-card img {
    height: 100%;
    transition: transform 0.25s ease;
}

.portal-department-card:hover img {
    transform: scale(1.04);
}

.portal-department-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
    padding: 16px 18px 18px;
}

.portal-department-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    min-height: 48px;
}

.portal-department-body p {
    margin: 0;
    min-height: 78px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portal-department-body a {
    margin-top: auto;
}

.portal-media-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 26px;
    align-items: start;
    padding-top: 8px;
}

.portal-slider-shell {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    gap: 16px;
    align-items: center;
}

.portal-card-viewport {
    overflow: hidden;
}

.portal-card-nav {
    width: 52px;
    height: 52px;
    border: 1px solid #d9e7ee;
    border-radius: 50%;
    background: #fff;
    color: #0c5f8f;
    font-size: 22px;
    cursor: pointer;
    box-shadow: none;
}

.portal-info-stack {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.portal-info-box {
    padding: 22px;
    border-radius: 24px;
}

.portal-info-box h3 {
    margin-top: 0;
}

.portal-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.portal-info-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #ecfeff;
    color: #0e7490;
    font-weight: 700;
}

.portal-video-frame,
.portal-video-fallback {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    border-radius: 30px;
    background: #d8eef3;
    box-shadow: 0 20px 44px rgba(12, 55, 90, 0.12);
}

.portal-video-frame iframe,
.portal-video-fallback img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.portal-footer-brand .portal-brand {
    margin-bottom: 18px;
}

.portal-footer-brand .portal-brand strong,
.portal-footer-brand .portal-brand span {
    color: #fff;
}

.portal-footer-brand p {
    max-width: 34rem;
}

.portal-footer-contact ul,
.portal-footer-links .portal-link-list {
    margin-top: 16px;
}

.portal-footer {
    margin-top: 38px;
    padding: 42px 0 18px;
    background: linear-gradient(135deg, #0c3558 0%, #0c5f8f 65%, #1d7a8f 100%);
    color: #fff;
}

.portal-footer-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.8fr 0.95fr;
    gap: 26px;
}

.portal-footer-brand p {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.88);
}

.portal-footer-links h3,
.portal-footer-contact h3 {
    margin-top: 0;
}

.portal-link-list {
    display: grid;
    gap: 12px;
}

.portal-link-list a {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
}

.portal-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.portal-footer-bottom a {
    color: #fff;
    font-weight: 700;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(22, 163, 154, 0.14), transparent 20rem),
        linear-gradient(180deg, #eef8fb 0%, #ffffff 24rem);
    font-family: "Inter","Roboto",Arial,sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
iframe { border: 0; width: 100%; height: 100%; }
.container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }

.skip-link {
    position: absolute; left: 12px; top: -40px; padding: 10px 14px;
    border-radius: 10px; background: #fff; z-index: 1000;
}
.skip-link:focus { top: 12px; }

.site-header {
    position: relative; overflow: hidden; color: #fff; padding-bottom: 72px;
    background: linear-gradient(135deg, #085889 0%, #0e6ba8 44%, #17a89d 100%);
}
.site-header::before, .site-header::after {
    content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08);
}
.site-header::before { width: 24rem; height: 24rem; top: -10rem; right: -6rem; }
.site-header::after { width: 14rem; height: 14rem; left: -4rem; bottom: 8rem; }

.topbar { border-bottom: 1px solid rgba(255,255,255,0.16); }
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px;
}
.topbar-news {
    display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0;
}
.topbar-news marquee { min-width: 0; }
.badge, .eyebrow, .section-kicker, .story-tag {
    display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 12px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge, .eyebrow { background: rgba(255,255,255,0.12); }
.topbar-meta {
    display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px;
}

.nav-shell { padding-top: 20px; }
.nav-card {
    display: grid; grid-template-columns: 260px 1fr auto; gap: 20px; align-items: center;
    padding: 16px 22px; border-radius: 24px; background: rgba(255,255,255,0.98);
    color: var(--text); box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img {
    width: 54px; height: 54px; object-fit: cover; border-radius: 16px;
}
.brand strong, .section-heading h2, .hero-copy h1, .quick-card h3, .department-body h3,
.doctor-body h3, .news-item h3, .feature-story-body h3, .site-footer h2, .footer-card h3,
.detail-card h1 { font-family: "Inter","Roboto",Arial,sans-serif; }
.brand strong { display: block; font-size: 18px; }
.brand span { color: var(--muted); font-size: 14px; }

.main-nav ul {
    list-style: none; display: flex; align-items: center; justify-content: center;
    gap: 6px; margin: 0; padding: 0;
}
.main-nav li { position: relative; }
.main-nav li > a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    border-radius: 12px; font-weight: 600;
}
.main-nav li:hover > a { background: #edf7fb; color: var(--primary); }
.main-nav li ul {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; list-style: none;
    margin: 0; padding: 10px; border-radius: 18px; background: #fff; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.2s ease; z-index: 10;
}
.main-nav li:hover ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav li ul a { display: block; padding: 10px 12px; border-radius: 12px; }
.main-nav li ul a:hover { background: #edf7fb; }

.nav-hotline {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
    border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-weight: 700;
}

.hero-shell { padding-top: 52px; }
.hero-slider {
    position: relative; overflow: hidden; min-height: 540px; border-radius: 34px;
    box-shadow: var(--shadow); background: rgba(255,255,255,0.08);
}
.hero-slides { position: relative; min-height: 540px; }
.hero-slide {
    position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0;
    visibility: hidden; transition: opacity 0.5s ease; background-size: cover;
    background-position: center center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(7, 49, 82, 0.78) 0%, rgba(12, 76, 120, 0.6) 34%, rgba(10, 63, 102, 0.16) 100%);
}
.hero-content {
    position: relative; z-index: 1; width: min(720px, 100%); padding: 56px;
}
.hero-content h1 { margin: 18px 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; font-family: "Inter","Roboto",Arial,sans-serif; }
.hero-content p { max-width: 620px; font-size: 21px; line-height: 1.7; color: rgba(255,255,255,0.92); }
.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px;
    border: none; border-radius: 50%; background: rgba(255,255,255,0.16); color: #fff;
    font-size: 24px; cursor: pointer; backdrop-filter: blur(8px);
}
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots {
    position: absolute; left: 56px; bottom: 24px; z-index: 2; display: flex; gap: 10px;
}
.hero-dot {
    width: 12px; height: 12px; border: none; border-radius: 50%; background: rgba(255,255,255,0.38); cursor: pointer;
}
.hero-dot.is-active { width: 34px; border-radius: 999px; background: #fff; }
.hero-actions, .hero-stats, .quick-grid, .intro-grid, .department-grid, .doctor-news-grid,
.doctor-grid, .footer-grid, .media-grid { display: grid; }
.hero-actions { grid-template-columns: repeat(2, max-content); gap: 14px; margin-top: 28px; }
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
    padding: 0 22px; border-radius: 14px; font-weight: 700;
}
.button-primary { background: #fff; color: var(--primary-dark); }
.button-secondary { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); color: #fff; }
.hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.hero-stats div {
    padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.08);
}
.hero-stats strong {
    display: block; margin-bottom: 6px; font-size: 28px; font-family: "Inter","Roboto",Arial,sans-serif;
}

.hero-stats-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}
.hero-stats-bar div {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.hero-stats-bar span {
    display: block;
    line-height: 1.5;
}

.quick-access-section { margin-top: -52px; position: relative; z-index: 3; }
.quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quick-card, .feature-story, .group-list, .doctor-panel, .news-panel, .detail-card {
    background: var(--surface); box-shadow: var(--shadow);
}
.quick-card {
    padding: 26px; border-radius: 24px; border-top: 5px solid var(--accent);
}
.quick-card i {
    display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    border-radius: 16px; background: #eaf7f6; color: var(--primary); font-size: 22px;
}
.quick-card h3 { margin: 18px 0 10px; font-size: 24px; }
.quick-card p, .department-body p, .doctor-body p, .feature-story-body p, .news-item p,
.media-copy p, .site-footer p, .detail-summary {
    color: var(--muted); line-height: 1.75; font-size: 17px;
}
.quick-card a, .department-body a, .doctor-body a {
    display: inline-flex; margin-top: 12px; font-weight: 700; color: var(--primary);
}

.section-grid, .doctor-news-grid, .site-footer { padding: 72px 0; }
.section-heading { margin-bottom: 28px; }
.section-kicker, .story-tag { background: #e8f6f3; color: #0f6a63; }
.section-heading h2 { margin: 12px 0 0; font-size: 36px; }
.intro-grid { grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.feature-story { overflow: hidden; border-radius: 28px; }
.feature-story-link { display: block; }
.feature-story img { height: 360px; object-fit: cover; }
.feature-story-body { padding: 28px; }
.feature-story-body h3 { margin: 14px 0 10px; font-size: 30px; }
.story-meta { color: #7e92a6; font-size: 14px; font-weight: 600; }

.group-list { padding: 18px; border-radius: 28px; }
.group-link {
    display: flex; align-items: center; justify-content: space-between; padding: 18px;
    border-radius: 18px; border: 1px solid var(--line); font-size: 18px; font-weight: 600;
}
.group-link + .group-link { margin-top: 12px; }
.group-link:hover { border-color: #b9d7ea; background: #f7fbfd; color: var(--primary); }

.section-surface, .section-surface-alt { padding: 76px 0; }
.section-surface { background: linear-gradient(180deg, rgba(14,107,168,0.04), rgba(22,163,154,0.03)); }
.section-surface-alt { background: linear-gradient(180deg, rgba(23,168,157,0.05), rgba(8,88,137,0.03)); }
.department-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.department-card, .doctor-card {
    overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--shadow);
}
.department-card img, .doctor-card img, .news-item img { object-fit: cover; }
.department-card img { height: 220px; }
.department-body, .doctor-body { padding: 22px; }
.department-body h3, .doctor-body h3, .news-item h3 { margin: 0 0 10px; font-size: 22px; }

.doctor-news-grid { grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
.doctor-panel, .news-panel { padding: 24px; border-radius: 28px; }
.section-heading-compact { margin-bottom: 20px; }
.section-heading-compact h2 { font-size: 30px; }
.doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.doctor-card img { height: 250px; }
.doctor-body span { display: block; margin-bottom: 10px; color: var(--primary); font-weight: 700; }

.news-list { display: grid; gap: 16px; }
.news-item {
    display: grid; grid-template-columns: 154px 1fr; gap: 16px; padding: 14px;
    border-radius: 20px; background: #f7fbfd;
}
.news-item img { height: 128px; border-radius: 16px; }

.media-grid { grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center; }
.media-frame {
    min-height: 360px; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow);
}
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-list i { margin-top: 5px; color: var(--primary); }

.site-footer {
    background: linear-gradient(135deg, #0b3658 0%, #0d5f96 55%, #10998d 100%); color: #fff;
}
.footer-grid { grid-template-columns: 0.9fr 1.1fr 0.8fr; gap: 24px; align-items: start; }
.footer-info h3 { margin-top: 0; margin-bottom: 16px; font-family: "Inter","Roboto",Arial,sans-serif; font-size: 28px; }
.footer-info-list { list-style: none; margin: 0; padding: 0; }
.footer-info-list li {
    display: flex; gap: 12px; margin-bottom: 14px; color: rgba(255,255,255,0.92); line-height: 1.7;
}
.footer-actions {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px;
}
.footer-actions a {
    display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
}
.footer-card { padding: 22px; border-radius: 24px; background: rgba(255,255,255,0.1); }
.footer-card a, .footer-card span { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.88);
}
.footer-bottom a { color: #fff; font-weight: 700; }

.detail-body { background: linear-gradient(180deg, #eef8fb 0%, #ffffff 24rem); }
.detail-shell { padding: 40px 0 72px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--primary); font-weight: 700; }
.detail-card { padding: 30px; border-radius: 28px; }
.detail-card-narrow { max-width: 920px; }
.detail-cover {
    margin: 24px 0; max-height: 420px; object-fit: cover; border-radius: 24px;
}
.detail-richtext { font-size: 18px; line-height: 1.8; }
.detail-richtext img { max-width: 100%; height: auto; }
.doctor-hero { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center; margin-bottom: 20px; }
.doctor-detail-photo { height: 320px; object-fit: cover; border-radius: 24px; }

.admin-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef6fb 0%, #ffffff 24rem);
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    padding: 28px 22px;
    background: linear-gradient(180deg, #0c3558 0%, #0d5f96 100%);
    color: #fff;
}

.admin-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.admin-login-brand img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
}

.admin-login-brand strong {
    display: block;
    font-family: "Inter","Roboto",Arial,sans-serif;
    font-size: 18px;
}

.admin-login-brand span {
    color: rgba(255,255,255,0.74);
}

.admin-nav {
    display: grid;
    gap: 10px;
}

.admin-nav-group {
    margin-top: 12px;
    padding: 0 6px;
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255,255,255,0.92);
    font-weight: 600;
}

.admin-nav a.is-active,
.admin-nav a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.admin-main {
    padding: 28px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 {
    margin: 12px 0 0;
    font-family: "Inter","Roboto",Arial,sans-serif;
    font-size: 34px;
}

.admin-user {
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stat-card,
.admin-panel,
.admin-login-card {
    background: #fff;
    box-shadow: var(--shadow);
}

.admin-stat-card {
    padding: 22px;
    border-radius: 22px;
}

.admin-stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-family: "Inter","Roboto",Arial,sans-serif;
    font-size: 34px;
}

.admin-panels {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.admin-panel {
    padding: 22px;
    border-radius: 24px;
}

.admin-panel-wide {
    grid-column: 1 / -1;
}

.admin-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.admin-panel-head h2,
.admin-panel h2 {
    margin: 0;
    font-family: "Inter","Roboto",Arial,sans-serif;
    font-size: 26px;
}

.admin-panel-head a {
    color: var(--primary);
    font-weight: 700;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 14px;
    text-transform: uppercase;
}

.admin-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.admin-list li {
    padding: 14px;
    border-radius: 16px;
    background: #f7fbfd;
}

.admin-list li strong {
    display: block;
    margin-bottom: 6px;
}

.admin-list li span {
    color: var(--muted);
    line-height: 1.6;
}

.admin-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px;
}

.admin-login-card {
    width: min(480px, 100%);
    padding: 30px;
    border-radius: 28px;
}

.admin-login-card h1 {
    margin: 0 0 12px;
    font-family: "Inter","Roboto",Arial,sans-serif;
    font-size: 34px;
}

.admin-login-card p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.admin-label {
    display: block;
    margin: 14px 0 8px;
    font-weight: 700;
}

.admin-input,
.admin-textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
}

.admin-textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-submit {
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 14px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-submit-inline {
    white-space: nowrap;
}

.admin-link-button {
    text-decoration: none;
}

.admin-error,
.admin-success {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 12px;
}

.admin-error {
    background: #fff1f1;
    color: #b42318;
}

.admin-success {
    background: #edfdf3;
    color: #067647;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-actions-row {
    margin-top: 20px;
}

.admin-textarea-lg {
    min-height: 220px;
}

.admin-home-shell {
    min-height: 100vh;
    padding: 24px;
    background: #ffffff;
}

.admin-home-card {
    border: 1px solid #d7dce4;
    background: #fff;
}

.admin-home-ribbon {
    display: inline-block;
    min-width: 360px;
    padding: 8px 24px;
    background: #3553a5;
    color: #fff;
    font-family: "Inter","Roboto",Arial,sans-serif;
    font-size: 28px;
    text-transform: uppercase;
    clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
}

.admin-home-user {
    padding: 14px 22px 0;
    color: var(--muted);
    font-size: 18px;
}

.admin-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 26px;
    padding: 18px 24px 28px;
}

.admin-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 160px;
    text-align: center;
    color: #1428ff;
    font-weight: 700;
}

.admin-tile .fa {
    font-size: 86px;
    color: #111;
}

.admin-tile strong {
    font-size: 18px;
    line-height: 1.4;
}

.admin-page-note {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.admin-field-note {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.admin-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--primary);
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.admin-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-shortcut-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #f8fbff;
    color: inherit;
    text-decoration: none;
}

.admin-shortcut-card-static {
    cursor: default;
}

.admin-shortcut-card .fa {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(33, 117, 155, 0.12);
    color: var(--primary);
    font-size: 26px;
}

.admin-shortcut-card strong {
    font-family: "Inter","Roboto",Arial,sans-serif;
    font-size: 20px;
}

.admin-shortcut-card span:last-child {
    color: var(--muted);
    line-height: 1.7;
}

.admin-check-row {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    color: var(--text);
}

.admin-check-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.admin-textarea-xl {
    min-height: 520px;
}

.admin-image-preview {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fbff;
}

.admin-image-preview img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 12px;
    background: #eaf3f8;
}

.admin-actions-cell {
    white-space: nowrap;
}

.admin-actions-cell a {
    margin-right: 14px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.admin-actions-cell a:last-child {
    margin-right: 0;
}

@media (max-width: 1100px) {
    .portal-brandbar,
    .portal-hero-wrap,
    .portal-news-layout,
    .portal-media-grid,
    .portal-footer-grid { grid-template-columns: 1fr; }
    .portal-highlight-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-shortcuts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-section-head { align-items: start; flex-direction: column; }
    .portal-category-chips { max-width: none; justify-content: flex-start; }
    .portal-slide-copy { max-width: 78%; }
    .nav-card, .intro-grid, .doctor-news-grid, .media-grid, .footer-grid { grid-template-columns: 1fr; }
    .nav-card { justify-items: stretch; }
    .main-nav ul { flex-wrap: wrap; justify-content: flex-start; }
    .department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-content { padding: 40px; width: min(100%, 680px); }
    .hero-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-panels,
    .admin-form-grid { grid-template-columns: 1fr; }
    .admin-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .portal-topline-inner,
    .portal-topline-meta,
    .portal-nav > ul,
    .portal-slide-actions { display: grid; }
    .portal-topline-inner,
    .portal-topline-meta { justify-content: flex-start; }
    .portal-brand strong { font-size: 22px; }
    .portal-hotline { justify-self: stretch; min-width: 0; }
    .portal-nav > ul { gap: 0; padding: 10px 0; }
    .portal-nav li > a { min-height: 40px; }
    .portal-slide-copy { left: 24px; right: 24px; bottom: 24px; max-width: none; }
    .portal-slide-copy h1 { font-size: 32px; }
    .portal-hero-slider { min-height: 460px; }
    .portal-shortcuts-row { grid-template-columns: 1fr; }
    .portal-shortcut-box { grid-template-columns: 52px 1fr; }
    .portal-slider-shell { grid-template-columns: 1fr; }
    .portal-card-nav { display: none; }
    .portal-news-item { grid-template-columns: 1fr; }
    .portal-news-item img,
    .portal-news-lead img,
    .portal-doctor-card img,
    .portal-department-card img { height: auto; }
    .portal-doctor-grid,
    .portal-department-grid,
    .portal-highlight-row { grid-template-columns: 1fr; }
    .topbar-inner, .hero-actions, .hero-stats, .quick-grid, .department-grid, .doctor-grid, .footer-grid, .doctor-hero {
        grid-template-columns: 1fr;
    }
    .topbar-inner, .topbar-meta { display: grid; gap: 8px; padding: 10px 0; }
    .news-item { grid-template-columns: 1fr; }
    .hero-slider, .hero-slides { min-height: 460px; }
    .hero-content { padding: 28px 24px 60px; }
    .hero-content p { font-size: 18px; }
    .hero-dots { left: 24px; bottom: 18px; }
    .hero-nav { display: none; }
    .quick-access-section { margin-top: -34px; }
    .section-heading h2 { font-size: 30px; }
    .feature-story img, .department-card img, .doctor-card img, .doctor-detail-photo { height: auto; }
    .admin-stats,
    .admin-list-grid { grid-template-columns: 1fr; }
    .admin-header { flex-direction: column; align-items: flex-start; }
    .admin-home-ribbon { min-width: 240px; font-size: 20px; }
    .admin-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 14px 28px; }
    .admin-tile .fa { font-size: 64px; }
    .admin-shortcuts { grid-template-columns: 1fr; }
    .admin-toolbar { width: 100%; }
}

/* Responsive safety net shared by public and admin pages. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe,
embed,
object {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

.container,
.portal-body .container,
.admin-main,
.admin-panel,
.admin-login-card,
.detail-card {
    min-width: 0;
}

.admin-panel,
.admin-stat-card,
.admin-shortcut-card,
.admin-login-card,
.quick-card,
.department-card,
.doctor-card,
.news-item,
.detail-card {
    overflow-wrap: anywhere;
}

.detail-richtext,
.vh-richtext,
.admin-panel,
.adcontent,
.adpanel {
    overflow-wrap: anywhere;
}

.detail-richtext table,
.vh-richtext table,
.admin-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    min-width: 720px;
}

.adtable-wrap {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.adtable {
    min-width: 860px;
}

@media (max-width: 1100px) {
    .admin-main {
        padding: 22px;
    }
}

@media (max-width: 760px) {
    .portal-body .container,
    .container {
        width: min(100% - 24px, 100%);
    }

    .portal-brand,
    .portal-brand-footer,
    .admin-login-brand {
        min-width: 0;
    }

    .portal-brand img,
    .portal-brand-footer img {
        flex: 0 0 auto;
    }

    .portal-brand strong,
    .portal-brand span,
    .portal-brand-copy p,
    .admin-login-brand strong,
    .admin-login-brand span {
        overflow-wrap: anywhere;
    }

    .portal-service-card,
    .portal-contact-card,
    .portal-highlight-card,
    .portal-news-lead-body,
    .portal-news-item > div,
    .portal-info-box,
    .detail-card,
    .admin-panel,
    .admin-stat-card,
    .admin-login-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .portal-slide-copy p {
        font-size: 16px;
        line-height: 1.6;
    }

    .admin-main,
    .admin-home-shell {
        padding: 16px;
    }

    .admin-submit,
    .admin-outline-button,
    .admin-toolbar > *,
    .adsearch,
    .adsearch input,
    .adadd-btn,
    .adpages {
        width: 100%;
    }

    .adpages {
        flex-wrap: wrap;
    }

    body.admin-body .adshell,
    body.admin-body .admain,
    body.admin-body .adcontent,
    body.admin-body .adpanel,
    body.admin-body .adedit-hero,
    body.admin-body .adsettings-hero,
    body.admin-body .adwelcome,
    body.admin-body .adcard,
    body.admin-body .adtable-wrap {
        min-width: 0;
        max-width: 100%;
    }

    body.admin-body .adtopbar {
        height: auto;
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
        align-items: flex-start;
        flex-direction: column;
    }

    body.admin-body .adtopbar-left,
    body.admin-body .adtopbar-right,
    body.admin-body .adtoolbar,
    body.admin-body .adtoolbar-left,
    body.admin-body .adedit-actions,
    body.admin-body .adwelcome-btns,
    body.admin-body .adactions-bottom {
        width: 100%;
        align-items: stretch;
    }

    body.admin-body .adpage-title,
    body.admin-body .adsection-head {
        overflow-wrap: anywhere;
    }

    body.admin-body .adsection-head,
    body.admin-body .adpagination {
        align-items: flex-start;
        flex-direction: column;
    }

    body.admin-body .adedit-actions > *,
    body.admin-body .adwelcome-btns > *,
    body.admin-body .adactions-bottom > *,
    body.admin-body .adprimary-btn,
    body.admin-body .adsave-btn,
    body.admin-body .adback-btn,
    body.admin-body .adbtn,
    body.admin-body .adsearch,
    body.admin-body .adsearch input {
        width: 100%;
        justify-content: center;
    }

    body.admin-body .adrich-insert {
        grid-template-columns: 1fr;
    }

    body.admin-body .adrich-toolbar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    body.admin-body .adrich-toolbar button,
    body.admin-body .adrich-toolbar select {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .portal-hero-slider {
        min-height: 380px;
    }

    .portal-shortcut-box {
        grid-template-columns: 1fr;
    }

    .admin-tile-grid {
        grid-template-columns: 1fr;
    }

    body.admin-body .adstats,
    body.admin-body .admin-stats {
        grid-template-columns: 1fr;
    }

    body.admin-body .adshort {
        align-items: flex-start;
        flex-direction: column;
    }
}
