:root {
    --color-primary: #2d2a71;
    --color-primary-dark: #1f1b55;
    --color-gold: #a07337;
    --color-gold-soft: #efe391;
    --color-teal: #137d7a;
    --color-ink: #171625;
    --color-muted: #636173;
    --color-line: #e6e3dc;
    --color-soft: #f7f5ee;
    --color-white: #ffffff;
    --shadow-soft: 0 18px 50px rgba(31, 27, 85, 0.11);
    --container: min(1160px, calc(100vw - 32px));
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fffdf8;
    color: var(--color-ink);
    font-family: "Tajawal", "Noto Kufi Arabic", sans-serif;
    line-height: 1.85;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.topbar {
    background: var(--color-primary-dark);
    color: #f6f2df;
    font-size: 0.92rem;
}

.topbar__inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar a {
    font-weight: 700;
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: currentColor;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.social-icon:hover {
    transform: translateY(-1px);
    border-color: rgba(239, 227, 145, 0.45);
    background: rgba(239, 227, 145, 0.12);
}

.social-icon--whatsapp {
    color: #ffffff;
    background: #128c7e;
    border-color: rgba(18, 140, 126, 0.45);
}

.social-links--top {
    margin-inline-start: auto;
}

.social-links--footer {
    margin-top: 18px;
}

.brand-svg {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lucide-brand {
    margin: 0;
    background: transparent;
    color: currentColor;
}

.lucide-brand svg {
    width: 20px;
    height: 20px;
}

.nav-shell {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(160, 115, 55, 0.16);
}

.nav-shell__inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.brand img {
    display: block;
    width: 206px;
}

.site-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
}

.site-menu a {
    padding: 10px 12px;
    border-bottom: 2px solid transparent;
    color: var(--color-primary-dark);
}

.site-menu a:hover,
.site-menu a.is-active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-line);
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 9px;
}

.menu-toggle span:not(.screen-reader) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-primary);
}

.button,
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.icon-shell,
.button-icon,
.mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.icon-shell {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    background: rgba(160, 115, 55, 0.12);
    color: var(--color-gold);
}

.button-icon {
    width: 18px;
    height: 18px;
}

.button-brand-svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.mini-icon {
    width: 20px;
    height: 20px;
    margin-inline-end: 8px;
    color: var(--color-teal);
}

.icon-shell svg,
.button-icon svg,
.mini-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.9;
}

.button:hover,
.nav-cta:hover {
    transform: translateY(-1px);
}

.button--gold,
.nav-cta {
    background: var(--color-gold);
    color: var(--color-white);
}

.button--light {
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-primary);
    border-color: rgba(255, 255, 255, 0.58);
}

.hero {
    position: relative;
    min-height: 620px;
    display: grid;
    align-items: end;
    isolation: isolate;
    overflow: hidden;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(31, 27, 85, 0.18), rgba(31, 27, 85, 0.68)),
        linear-gradient(0deg, rgba(23, 22, 37, 0.82), rgba(23, 22, 37, 0.08) 56%);
}

.hero__content {
    padding: 128px 0 72px;
    color: var(--color-white);
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--color-gold-soft);
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
}

.section-kicker {
    color: var(--color-gold);
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 4.3rem;
    line-height: 1.24;
    letter-spacing: 0;
}

.hero__lead {
    max-width: 710px;
    margin: 20px 0 0;
    font-size: 1.24rem;
    color: #fff8e7;
}

.hero__actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-strip {
    background: var(--color-primary);
    color: var(--color-white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.14);
}

.trust-card {
    min-height: 104px;
    padding: 22px;
    background: var(--color-primary);
}

.trust-card .icon-shell {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    background: rgba(239, 227, 145, 0.14);
    color: var(--color-gold-soft);
}

.trust-grid strong,
.trust-grid span {
    display: block;
}

.trust-grid strong {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.05rem;
}

.trust-grid span {
    margin-top: 4px;
    color: #ece8ff;
    font-size: 0.96rem;
}

.section {
    padding: 78px 0;
}

.section--soft {
    background: var(--color-soft);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 36px;
    align-items: start;
}

.section h2,
.contact-band h2,
.site-footer h2 {
    margin: 0 0 18px;
    font-family: "Noto Kufi Arabic", sans-serif;
    color: var(--color-primary-dark);
    line-height: 1.45;
    letter-spacing: 0;
}

.section h2 {
    font-size: 2.18rem;
}

.section p,
.contact-band p {
    color: var(--color-muted);
    font-size: 1.08rem;
}

.highlight-panel {
    padding: 24px;
    border: 1px solid rgba(160, 115, 55, 0.28);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.highlight-panel .icon-shell {
    background: rgba(19, 125, 122, 0.1);
    color: var(--color-teal);
}

.highlight-panel h3,
.service-card h3,
.related-card span {
    margin: 0 0 10px;
    font-family: "Noto Kufi Arabic", sans-serif;
    color: var(--color-primary);
}

.highlight-panel ul,
.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.highlight-panel li,
.check-list li {
    position: relative;
    padding: 9px 28px 9px 0;
    border-bottom: 1px solid rgba(45, 42, 113, 0.08);
}

.highlight-panel li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-teal);
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-inline-start: 0;
    padding-inline-end: 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

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

.service-card {
    overflow: hidden;
    border: 1px solid rgba(45, 42, 113, 0.12);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: 0 12px 32px rgba(31, 27, 85, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.related-card:hover,
.landing-card:hover {
    transform: translateY(-3px);
    border-color: rgba(160, 115, 55, 0.48);
    box-shadow: 0 18px 42px rgba(31, 27, 85, 0.12);
}

.service-card img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

.service-card div {
    padding: 20px;
}

.service-card .icon-shell,
.related-card .icon-shell,
.landing-card .icon-shell {
    width: 40px;
    height: 40px;
    background: rgba(45, 42, 113, 0.08);
    color: var(--color-primary);
}

.service-card p {
    margin: 0;
    font-size: 0.98rem;
}

.content-stack {
    display: grid;
    gap: 22px;
}

.content-block {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
    gap: 28px;
    align-items: start;
    padding: 32px;
    border: 1px solid rgba(45, 42, 113, 0.10);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: 0 8px 28px rgba(31, 27, 85, 0.05);
}

.content-block--alt {
    background: #fbf8ef;
}

.content-block p {
    margin-bottom: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.related-card {
    display: block;
    min-height: 154px;
    padding: 22px;
    border: 1px solid rgba(160, 115, 55, 0.22);
    border-radius: var(--radius);
    background: var(--color-white);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.related-card small {
    display: block;
    color: var(--color-muted);
    line-height: 1.7;
}

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

.faq-list details {
    border: 1px solid rgba(45, 42, 113, 0.14);
    border-radius: var(--radius);
    background: var(--color-white);
}

.faq-list summary {
    padding: 18px 22px;
    color: var(--color-primary);
    font-family: "Noto Kufi Arabic", sans-serif;
    font-weight: 800;
    cursor: pointer;
}

.faq-list p {
    margin: 0;
    padding: 0 22px 20px;
}

.contact-band {
    padding: 70px 0;
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.contact-band .section-kicker,
.contact-band h2,
.contact-band p {
    color: var(--color-white);
}

.contact-band__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 36px;
    align-items: start;
}

.appointment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.appointment-form label,
.admin-form label {
    display: grid;
    gap: 8px;
    color: inherit;
    font-weight: 700;
}

.appointment-form label:has(textarea),
.appointment-form button {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

.site-footer {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(71, 54, 32, 0.72), rgba(160, 115, 55, 0.82)),
        url("../images/original-clinic-photo.jpg") center / cover no-repeat;
    color: #fffaf0;
}

.footer-visual {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(31, 27, 85, 0.2), rgba(160, 115, 55, 0.18)),
        radial-gradient(circle at 35% 48%, rgba(239, 227, 145, 0.18), transparent 24%);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.72fr 0.72fr 0.82fr;
    gap: 44px;
    padding: 70px 0 58px;
}

.footer-logo {
    width: 270px;
    display: block;
    margin-bottom: 22px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.92);
}

.site-footer p {
    max-width: 570px;
    margin: 0 0 18px;
    font-size: 1.02rem;
    line-height: 2;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--color-gold-soft);
    font-size: 1.15rem;
}

.footer-list a,
.footer-hours a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-specialties {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.footer-specialties a {
    display: flex;
    align-items: center;
    font-weight: 700;
}

.footer-specialties .mini-icon {
    color: var(--color-primary);
}

.footer-whatsapp {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: "Noto Kufi Arabic", sans-serif;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(31, 27, 85, 0.2);
}

.footer-hours div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-hours strong {
    color: var(--color-white);
    font-weight: 700;
}

.footer-hours .footer-closed,
.footer-hours div:has(strong:last-child) {
    color: inherit;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    background: var(--color-primary);
    color: #f2efff;
}

.footer-bottom .container {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.floating-whatsapp {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 60;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: #128c7e;
    color: var(--color-white);
    font-weight: 800;
    box-shadow: 0 16px 42px rgba(18, 140, 126, 0.28);
}

.floating-whatsapp .brand-svg {
    width: 28px;
    height: 28px;
}

.mobile-action-bar {
    display: none;
}

.doctor-spotlight {
    background:
        linear-gradient(135deg, rgba(45, 42, 113, 0.05), rgba(19, 125, 122, 0.04)),
        #fffdf8;
}

.doctor-spotlight__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: 42px;
    align-items: center;
}

.doctor-spotlight__media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    min-height: 420px;
    background: var(--color-primary-dark);
}

.doctor-spotlight__media::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(239, 227, 145, 0.5);
    border-radius: var(--radius);
    pointer-events: none;
}

.doctor-spotlight__media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    opacity: 0.92;
}

.doctor-spotlight__content {
    max-width: 720px;
}

.doctor-points {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.doctor-points span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(45, 42, 113, 0.12);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-primary-dark);
    font-weight: 700;
}

.doctors-section {
    background: var(--color-white);
}

.doctors-section--compact {
    padding-top: 74px;
}

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

.doctor-card {
    min-height: 420px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    overflow: hidden;
    border: 1px solid rgba(45, 42, 113, 0.12);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(45, 42, 113, 0.035), rgba(239, 227, 145, 0.11)),
        #fffdf8;
    box-shadow: var(--shadow-soft);
}

.doctor-card__image {
    min-height: 100%;
    background: var(--color-primary-dark);
}

.doctor-card__image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform 420ms ease;
}

.doctor-card:hover .doctor-card__image img {
    transform: scale(1.035);
}

.doctor-card__content {
    padding: 28px;
}

.doctor-card__content span {
    color: var(--color-gold);
    font-family: "Noto Kufi Arabic", sans-serif;
    font-weight: 800;
}

.doctor-card h3 {
    margin: 8px 0 4px;
    color: var(--color-primary);
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.35rem;
}

.doctor-card__title {
    margin: 0 0 12px;
    color: var(--color-teal);
    font-weight: 800;
}

.doctor-card__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.doctor-card__chips small {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(45, 42, 113, 0.08);
    color: var(--color-primary-dark);
    font-weight: 700;
    letter-spacing: 0;
}

.testimonials-section {
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(160, 115, 55, 0.95), rgba(180, 142, 89, 0.92)),
        var(--color-gold);
    color: var(--color-white);
}

.testimonials-section .section-kicker,
.testimonials-section h2 {
    color: var(--color-gold-soft);
}

.testimonials-shell {
    position: relative;
}

.section-heading--center {
    text-align: center;
    margin-inline: auto;
}

.testimonial-stage {
    position: relative;
    min-height: 350px;
    display: grid;
    place-items: center;
}

.testimonial-card {
    display: none;
    width: min(1040px, 100%);
    margin-inline: auto;
    text-align: center;
}

.testimonial-card.is-active {
    display: block;
}

.testimonial-card img {
    width: 92px;
    height: 92px;
    margin-bottom: 18px;
    border: 6px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card__label {
    margin: 0 0 12px;
    color: var(--color-gold-soft);
    font-family: "Noto Kufi Arabic", sans-serif;
    font-weight: 800;
}

.testimonial-card blockquote {
    max-width: 980px;
    margin: 0 auto 18px;
    color: var(--color-white);
    font-size: 1.48rem;
    font-weight: 800;
    font-style: italic;
    line-height: 2;
}

.testimonial-card strong {
    color: #fff8d8;
    font-family: "Noto Kufi Arabic", sans-serif;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.testimonial-dots button {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.testimonial-dots button.is-active {
    background: var(--color-primary);
}

.landing-index {
    background: var(--color-white);
}

.landing-grid,
.flow-grid,
.admin-stats {
    display: grid;
    gap: 16px;
}

.landing-grid {
    grid-template-columns: repeat(4, 1fr);
}

.landing-card {
    min-height: 220px;
    padding: 20px;
    border: 1px solid rgba(45, 42, 113, 0.12);
    border-radius: var(--radius);
    background: #fffdf8;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.landing-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-family: "Noto Kufi Arabic", sans-serif;
    font-weight: 800;
}

.landing-card small {
    display: block;
    color: var(--color-muted);
    line-height: 1.75;
}

.flow-grid {
    grid-template-columns: repeat(4, 1fr);
}

.flow-step {
    position: relative;
    min-height: 210px;
    padding: 24px;
    border-inline-start: 3px solid var(--color-gold);
    background: var(--color-white);
    box-shadow: 0 10px 30px rgba(31, 27, 85, 0.06);
}

.flow-step h3 {
    margin: 0 0 8px;
    color: var(--color-primary-dark);
    font-family: "Noto Kufi Arabic", sans-serif;
}

.flow-step p {
    margin: 0;
    font-size: 0.98rem;
}

.proof-band {
    background:
        linear-gradient(135deg, rgba(19, 125, 122, 0.06), rgba(160, 115, 55, 0.08)),
        #fffdf8;
}

.proof-grid,
.entity-links-grid,
.article-grid,
.reference-grid {
    display: grid;
    gap: 16px;
}

.proof-grid {
    grid-template-columns: repeat(4, 1fr);
}

.proof-card,
.entity-link-card,
.article-card,
.reference-card,
.article-sidebar,
.article-block {
    border: 1px solid rgba(45, 42, 113, 0.12);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: 0 12px 32px rgba(31, 27, 85, 0.07);
}

.proof-card {
    min-height: 234px;
    padding: 24px;
}

.proof-card h3,
.article-card h3,
.article-sidebar h2,
.article-block h2,
.entity-link-card span,
.reference-card span {
    margin: 0 0 10px;
    color: var(--color-primary-dark);
    font-family: "Noto Kufi Arabic", sans-serif;
    line-height: 1.45;
}

.proof-card p,
.article-card p,
.article-block p {
    margin: 0;
    color: var(--color-muted);
}

.article-grid {
    grid-template-columns: repeat(4, 1fr);
}

.article-grid--wide {
    grid-template-columns: repeat(3, 1fr);
}

.article-card {
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card:hover,
.entity-link-card:hover,
.reference-card:hover {
    transform: translateY(-3px);
    border-color: rgba(160, 115, 55, 0.42);
    box-shadow: 0 18px 44px rgba(31, 27, 85, 0.12);
}

.article-card__image {
    display: block;
    overflow: hidden;
    background: var(--color-primary-dark);
}

.article-card__image img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    transition: transform 320ms ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.035);
}

.article-card__content {
    padding: 20px;
}

.article-card h3 {
    font-size: 1.08rem;
}

.article-card__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.article-card__meta span {
    display: inline-flex;
    align-items: center;
}

.article-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 12px;
    padding: 5px 10px;
    border: 1px solid rgba(160, 115, 55, 0.26);
    border-radius: 999px;
    background: rgba(160, 115, 55, 0.1);
    color: #745122;
    font-weight: 800;
    font-size: 0.82rem;
}

.section-actions {
    margin-top: 24px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.34fr) minmax(0, 0.66fr);
    gap: 24px;
    align-items: start;
}

.article-sidebar {
    position: sticky;
    top: 104px;
    padding: 22px;
}

.article-facts {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
}

.article-facts div {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(45, 42, 113, 0.1);
}

.article-facts dt {
    color: var(--color-muted);
    font-size: 0.84rem;
}

.article-facts dd {
    margin: 3px 0 0;
    color: var(--color-primary-dark);
    font-weight: 800;
}

.toc-list {
    display: grid;
    gap: 8px;
}

.toc-list a {
    padding: 9px 10px;
    border-radius: var(--radius);
    background: #f8f5ee;
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: 1.55;
}

.toc-list a:hover {
    color: var(--color-gold);
}

.article-body {
    display: grid;
    gap: 18px;
}

.article-block {
    padding: 30px;
    scroll-margin-top: 112px;
}

.article-block .check-list {
    margin-top: 18px;
}

.entity-links-grid {
    grid-template-columns: repeat(4, 1fr);
}

.reference-grid {
    grid-template-columns: repeat(3, 1fr);
}

.entity-link-card {
    min-height: 210px;
    padding: 22px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.reference-card {
    min-height: 190px;
    padding: 22px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.entity-link-card span,
.entity-link-card small,
.reference-card span,
.reference-card small {
    display: block;
}

.entity-link-card small,
.reference-card small {
    color: var(--color-muted);
    line-height: 1.75;
}

.admin-stats {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
}

.admin-stat {
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: 0 10px 26px rgba(31, 27, 85, 0.06);
}

.admin-stat strong,
.admin-stat span {
    display: block;
}

.admin-stat strong {
    color: var(--color-primary);
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.8rem;
    line-height: 1.1;
}

.admin-stat span {
    margin-top: 6px;
    color: var(--color-muted);
}

.admin-stat--landing {
    border-color: rgba(160, 115, 55, 0.34);
    background: #fffaf0;
}

.admin-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1efe8;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.admin-badge--landing {
    background: rgba(160, 115, 55, 0.14);
    color: #6f4e1f;
}

.admin-body {
    background: #f5f3ec;
}

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

.admin-sidebar {
    padding: 24px;
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.admin-brand {
    display: block;
    margin-bottom: 28px;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

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

.admin-sidebar a {
    padding: 10px 12px;
    border-radius: var(--radius);
}

.admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-main {
    padding: 28px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.admin-top h1 {
    margin: 0;
    color: var(--color-primary-dark);
    font-family: "Noto Kufi Arabic", sans-serif;
}

.admin-card {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: 0 10px 26px rgba(31, 27, 85, 0.06);
}

.auth-card {
    max-width: 520px;
}

.admin-form {
    display: grid;
    gap: 18px;
}

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

.editor-grid h2,
.editor-grid label:has(textarea),
.editor-grid .check-field {
    grid-column: 1 / -1;
}

.admin-form span {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.table-wrap {
    overflow-x: auto;
}

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

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

.admin-table th {
    color: var(--color-primary);
    font-family: "Noto Kufi Arabic", sans-serif;
}

.admin-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: #eaf6ef;
    color: #16572f;
}

.admin-alert--error {
    background: #fff0ee;
    color: #9d1f16;
}

.sticky-save {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 12px;
    padding: 14px 0;
    background: rgba(245, 243, 236, 0.92);
    backdrop-filter: blur(12px);
}

@media (max-width: 980px) {
    .topbar__inner {
        justify-content: center;
        text-align: center;
    }

    .topbar__inner > span:last-of-type {
        display: none;
    }

    .social-links--top {
        margin-inline-start: 0;
    }

    .nav-shell__inner {
        grid-template-columns: auto auto;
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .site-menu,
    .nav-cta {
        display: none;
    }

    .site-menu.is-open {
        grid-column: 1 / -1;
        display: grid;
        justify-content: stretch;
        gap: 6px;
        padding: 12px 0 18px;
        border-top: 1px solid var(--color-line);
        background: rgba(255, 253, 248, 0.98);
    }

    .site-menu.is-open a {
        min-height: 46px;
        display: flex;
        align-items: center;
        border: 1px solid rgba(45, 42, 113, 0.08);
        border-radius: var(--radius);
        background: var(--color-white);
    }

    .trust-grid,
    .service-grid,
    .related-grid,
    .footer-grid,
    .split-layout,
    .contact-band__grid,
    .content-block,
    .doctor-spotlight__grid,
    .doctor-card,
    .flow-grid,
    .proof-grid,
    .entity-links-grid,
    .reference-grid,
    .article-grid--wide,
    .article-layout,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .landing-grid,
    .article-grid,
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-sidebar {
        position: static;
    }

    .hero {
        min-height: 560px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero__lead {
        font-size: 1.12rem;
    }

    .section h2 {
        font-size: 1.82rem;
    }

    .appointment-form,
    .editor-grid,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: 82px;
    }

    .topbar__inner {
        align-items: flex-start;
        padding: 10px 0;
        gap: 10px;
        font-size: 0.84rem;
    }

    .topbar__inner > span:first-child {
        flex-basis: 100%;
    }

    .social-links--top .social-icon:not(.social-icon--whatsapp) {
        display: none;
    }

    .brand img {
        width: 158px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        border-color: rgba(45, 42, 113, 0.16);
        box-shadow: 0 10px 26px rgba(31, 27, 85, 0.08);
    }

    .hero {
        min-height: 520px;
        background-position: 58% center;
    }

    .hero__content {
        padding: 84px 0 42px;
    }

    .hero h1 {
        font-size: 2.18rem;
        line-height: 1.34;
    }

    .hero__lead {
        font-size: 1.02rem;
        line-height: 1.95;
    }

    .hero__actions,
    .section-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button,
    .nav-cta {
        width: 100%;
        min-height: 48px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-card {
        min-height: auto;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 12px;
        align-items: center;
        padding: 16px;
    }

    .trust-card .icon-shell {
        grid-row: span 2;
        margin-bottom: 0;
    }

    .section,
    .contact-band {
        padding: 50px 0;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .section h2,
    .contact-band h2 {
        font-size: 1.48rem;
        line-height: 1.6;
    }

    .section p,
    .contact-band p {
        font-size: 1rem;
    }

    .content-block,
    .highlight-panel,
    .admin-card,
    .landing-card,
    .flow-step,
    .proof-card,
    .entity-link-card,
    .article-block,
    .appointment-form {
        padding: 20px;
    }

    .landing-grid,
    .article-grid,
    .service-grid,
    .related-grid,
    .proof-grid,
    .entity-links-grid,
    .reference-grid {
        grid-template-columns: 1fr;
    }

    .doctor-spotlight__media,
    .doctor-spotlight__media img,
    .doctor-card__image img {
        min-height: 300px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .doctor-card {
        min-height: auto;
    }

    .doctor-card__content {
        padding: 22px;
    }

    .testimonial-stage {
        min-height: 460px;
    }

    .testimonial-card blockquote {
        font-size: 1.04rem;
        line-height: 2;
    }

    .testimonial-card img {
        width: 76px;
        height: 76px;
    }

    .footer-grid {
        gap: 28px;
        padding: 54px 0 38px;
    }

    .footer-logo {
        width: 220px;
    }

    .footer-specialties {
        grid-template-columns: 1fr;
    }

    .footer-hours div {
        gap: 12px;
    }

    .footer-bottom .container {
        justify-content: flex-start;
    }

    .floating-whatsapp {
        display: none;
    }

    .mobile-action-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 70;
        display: grid;
        grid-template-columns: 1fr 1.22fr 1fr;
        gap: 8px;
        padding: 8px;
        border: 1px solid rgba(45, 42, 113, 0.12);
        border-radius: 18px;
        background: rgba(255, 253, 248, 0.94);
        box-shadow: 0 20px 44px rgba(31, 27, 85, 0.18);
        backdrop-filter: blur(18px);
    }

    .mobile-action-bar a {
        min-height: 52px;
        display: grid;
        place-items: center;
        gap: 3px;
        border-radius: 14px;
        color: var(--color-primary-dark);
        font-family: "Noto Kufi Arabic", sans-serif;
        font-size: 0.78rem;
        font-weight: 800;
    }

    .mobile-action-bar__main {
        background: #128c7e;
        color: var(--color-white) !important;
        box-shadow: 0 10px 26px rgba(18, 140, 126, 0.24);
    }

    .mobile-action-icon {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: currentColor;
    }

    .mobile-action-icon svg {
        width: 20px;
        height: 20px;
        stroke-width: 1.9;
    }
}

@media (max-width: 390px) {
    :root {
        --container: min(100vw - 24px, 1160px);
    }

    .hero h1 {
        font-size: 1.92rem;
    }

    .site-menu.is-open a {
        font-size: 0.84rem;
    }

    .mobile-action-bar {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
}
