/* ==========================================================================
   Gulf Medical Gate – main stylesheet (RTL-first)
   ========================================================================== */

:root {
	--blue: #0E5ED8;
	--blue-600: #0B4DB5;
	--deep: #0B3B72;
	--navy: #0F2747;
	--ink: #2A3C54;
	--muted: #66758A;
	--tint: #E8F1FD;
	--tint-2: #F4F8FE;
	--line: #D9E5F4;
	--green: #1FAF54;
	--green-600: #168D42;
	--danger: #B42318;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 8px 28px rgba(14, 60, 120, .09);
	--font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
	--container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgba(14, 94, 216, .55); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -60px; inset-inline-start: 12px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.center { text-align: center; }
.narrow { max-width: 640px; }
.spaced { height: 36px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 22px; border-radius: var(--radius-sm);
	font-weight: 600; font-size: 15px; line-height: 1.3; text-align: center;
	border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--wa { background: var(--green); color: #fff; }
.btn--wa:hover { background: var(--green-600); color: #fff; }
.btn--outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--tint); color: var(--blue-600); }
.btn--ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn--sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn--lg { padding: 13px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn .icon { width: 1.35em; height: 1.35em; }
.btn__two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.btn__two small { font-size: 12px; font-weight: 500; opacity: .85; }
.btn__two b { font-size: 16px; }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(14, 60, 120, .08); }
.site-header__inner { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); flex: none; direction: ltr; }
.brand:hover { color: var(--navy); }
.brand__mark { width: 46px; height: 43px; flex: none; }
.brand__img { max-height: 52px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.brand__en { font-weight: 700; font-size: 18px; color: var(--deep); letter-spacing: .01em; }
.brand__ar { font-weight: 700; font-size: 17px; color: var(--blue); direction: rtl; text-align: left; }
.brand__tag { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.brand--light .brand__en { color: #fff; }
.brand--light .brand__ar { color: #cfe5ff; }
.brand--light .brand__tag { color: #a9c8ee; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav .menu, .footer-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.primary-nav .menu { gap: 30px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; padding: 24px 0; font-weight: 600; font-size: 14px; color: var(--navy); position: relative; }
.primary-nav .menu a:hover { color: var(--blue); }
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current_page_item > a,
.primary-nav .menu > li.current-menu-ancestor > a { color: var(--blue); }
.primary-nav .menu > li.current-menu-item > a::after,
.primary-nav .menu > li.current_page_item > a::after,
.primary-nav .menu > li.current-menu-ancestor > a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; inset-inline-start: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: none; }
.primary-nav .menu > li:hover > .sub-menu, .primary-nav .menu > li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.primary-nav .sub-menu a:hover { background: var(--tint); }
.nav-wa { display: none; margin-top: 12px; }

.site-header__actions { display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--navy); border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: var(--tint); color: var(--blue); }
.icon-btn .icon { width: 22px; height: 22px; }
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.is-nav-open .nav-toggle .i-open { display: none; }
.is-nav-open .nav-toggle .i-close { display: block; }
.lang { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; color: var(--navy); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.lang .icon { width: 14px; height: 14px; }
.header-wa { padding: 8px 18px; border-radius: 10px; gap: 12px; }
.header-wa .icon { width: 30px; height: 30px; }
.header-wa__text { display: flex; flex-direction: column; text-align: start; line-height: 1.25; }
.header-wa__text b { font-size: 14px; }
.header-wa__text small { font-size: 12px; font-weight: 500; opacity: .9; }

.search-drawer { border-top: 1px solid var(--line); background: var(--tint-2); padding: 16px 0; }
.searchform { display: flex; gap: 10px; }
.searchform input[type="search"] { flex: 1; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.searchform .btn { height: 48px; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; display: flex; align-items: center; min-height: 420px; overflow: hidden; background: #eaf3fd; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: left center; background-repeat: no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, .92) 8%, rgba(255, 255, 255, .5) 18%, rgba(255, 255, 255, 0) 32%); }
.hero__inner { position: relative; z-index: 2; padding-block: 52px 104px; }
.hero__copy { max-width: 540px; }
.hero__title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.22; margin-bottom: 14px; font-weight: 700; }
.hero__title span { display: block; }
.hero__title-2 { color: var(--blue); }
.hero__sub { font-size: 17px; font-weight: 500; color: var(--ink); margin-bottom: 22px; }
.hero__features { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 26px; }
.hero__features li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-inline: 22px; font-size: 13px; font-weight: 600; color: var(--navy); }
.hero__features li:first-child { padding-inline-start: 0; }
.hero__features li + li { border-inline-start: 1px solid var(--line); }
.hero__features .icon { width: 30px; height: 30px; color: var(--blue); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--call { background: rgba(255, 255, 255, .92); }

/* Finder (search box) ---------------------------------------------------- */
.finder { position: relative; z-index: 5; margin-top: -68px; }
.finder__card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px 24px; box-shadow: var(--shadow); }
.finder__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.finder__top h2 { font-size: 19px; margin: 0; }
.finder__tabs { display: inline-flex; padding: 4px; background: #EEF4FC; border-radius: 12px; gap: 2px; }
.finder__tabs button { border: 0; background: transparent; padding: 8px 26px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
.finder__tabs button:hover { color: var(--blue); }
.finder__tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.finder__fields { display: flex; gap: 12px; align-items: stretch; }
.field-inline { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; height: 50px; padding-inline: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--blue); }
.field-inline:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14, 94, 216, .12); }
.field-inline select, .field-inline input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--navy); font-size: 14px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.field-inline input { cursor: text; }
.field-inline input::placeholder { color: var(--muted); }
.field-inline .field-inline__caret { width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.field-inline--text { flex: 1.1 1 0; }
.finder__go { height: 50px; padding-inline: 34px; flex: none; }

/* Sections --------------------------------------------------------------- */
.block { padding-block: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head__title { font-size: 24px; margin: 0; }
.section-head__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.section-head__link .icon { width: 15px; height: 15px; }

/* Carousel */

/* Hospital card */
.hcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.hcard:hover { box-shadow: var(--shadow); border-color: #bcd3ef; }
.hcard__media { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; background: var(--tint); }
.hcard__media img { width: 100%; height: 100%; object-fit: cover; }
.hcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.hcard__img.is-active { opacity: 1; }
.hcard__count { position: absolute; bottom: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(15, 39, 71, .72); color: #fff; font-size: 11.5px; font-weight: 700; z-index: 2; pointer-events: none; }
.hcard__count .icon { width: 13px; height: 13px; }
.hcard__wa { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 3px 10px rgba(15, 39, 71, .25); transition: background-color .15s, transform .15s; }
.hcard__wa .icon { width: 18px; height: 18px; }
.hcard__wa:hover { background: var(--green-600); color: #fff; transform: scale(1.06); }
.hcard__body { display: flex; flex-direction: column; flex: 1; padding: 0 14px 14px; text-align: center; }
.hcard__brand { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 10px; }
.hcard__logo { height: 34px; width: auto; max-width: 64px; object-fit: contain; }
.hcard__logo--icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--blue); }
.hcard__logo--icon .icon { width: 19px; height: 19px; }
.hcard__en { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.hcard__name { font-size: 15.5px; margin: 2px 0 2px; }
.hcard__name a { color: var(--navy); }
.hcard__name a:hover { color: var(--blue); }
.hcard__city { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.hcard .btn { margin-top: auto; }

/* Specialties */
.spec-grid { list-style: none; display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.spec-grid--wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.spec { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; min-height: 104px; padding: 16px 8px; border-radius: var(--radius-sm); background: var(--tint); color: var(--blue); text-align: center; transition: background-color .15s, transform .15s; }
.spec:hover { background: #d7e7fb; color: var(--blue); transform: translateY(-2px); }
.spec .icon { width: 36px; height: 36px; stroke-width: 1.6; }
.spec span { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.35; }

/* Doctor card */
.dcard { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; transition: box-shadow .2s; }
.dcard:hover { box-shadow: var(--shadow); }
.dcard__top { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px; flex: 1; }
.dcard__photo-wrap { position: relative; flex: none; }
.dcard__photo { display: block; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; background: var(--tint); }
.dcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.dcard__wa { position: absolute; bottom: -2px; inset-inline-start: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(15, 39, 71, .25); }
.dcard__wa .icon { width: 13px; height: 13px; }
.dcard__wa:hover { background: var(--green-600); color: #fff; }
.dcard__info { min-width: 0; }
.dcard__name { font-size: 14px; margin: 0 0 2px; }
.dcard__name a { color: var(--navy); }
.dcard__role, .dcard__hosp { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.dcard__hosp { color: var(--blue); }

/* Article card */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { display: flex; min-height: 158px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s; }
.pcard:hover { box-shadow: var(--shadow); }
.pcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
.pcard__title { font-size: 16.5px; line-height: 1.5; margin: 0; }
.pcard__title a { color: var(--navy); }
.pcard__title a:hover { color: var(--blue); }
.pcard__date { display: flex; align-items: center; gap: 6px; margin: auto 0 0; font-size: 12px; color: var(--muted); }
.pcard__date .icon { width: 14px; height: 14px; }
.pcard__media { flex: 0 0 42%; position: relative; background: linear-gradient(135deg, var(--tint), #f7fbff); -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 100%); mask-image: linear-gradient(to right, #000 62%, transparent 100%); }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chip { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--tint); color: var(--blue); font-size: 12px; font-weight: 600; line-height: 1.8; }
a.chip:hover { background: #d7e7fb; }

/* About + journey */
.about { padding-top: 44px; }
.about__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; align-items: start; }
.about__text h2 { font-size: 26px; }
.about__text p { line-height: 2; max-width: 74ch; }
.about__card { background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.about__card h3 { font-size: 19px; }
.journey { margin-top: 44px; }
.journey__title { font-size: 22px; margin-bottom: 26px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-inline: 4px; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 20px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.steps__n { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 0 0 5px #fff; }
.steps__t { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.5; }

/* Trust bar */
.trust { background: #EEF5FD; margin-top: 30px; }
.trust__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__list li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px 12px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.trust__list li + li { border-inline-start: 1px solid var(--line); }
.trust__list .icon { width: 40px; height: 40px; color: var(--blue); stroke-width: 1.5; }

/* CTA + footer ----------------------------------------------------------- */
.cta { background: linear-gradient(115deg, #0A3468 0%, #0E4A8D 100%); color: #fff; }
.cta__inner { display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: 36px; padding-block: 46px; }
.cta__main { text-align: center; }
.cta__main h2 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.cta__main p { color: rgba(255, 255, 255, .88); font-size: 14.5px; margin-bottom: 20px; }
.cta__buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cta__brand { justify-self: start; }
.cta__news-title { color: #fff; font-size: 17px; margin-bottom: 12px; }
.news-form { display: flex; }
.news-form input[type="email"] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; background: #fff; color: var(--navy); border-start-start-radius: 8px; border-end-start-radius: 8px; }
.news-form button { width: 48px; height: 46px; display: grid; place-items: center; border: 0; background: var(--blue); color: #fff; cursor: pointer; border-start-end-radius: 8px; border-end-end-radius: 8px; }
.news-form button:hover { background: #2a76e8; }
.cta .notice { margin-bottom: 10px; }

.site-footer { background: #fff; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 22px; }
.copyright { margin: 0; font-size: 12.5px; color: var(--muted); }
.footer-nav .menu { flex-wrap: wrap; justify-content: center; }
.footer-nav .menu a { font-size: 13px; font-weight: 500; color: var(--navy); padding-inline: 14px; }
.footer-nav .menu li + li { border-inline-start: 1px solid var(--line); }
.footer-nav .menu a:hover { color: var(--blue); }
.social { list-style: none; display: flex; gap: 14px; margin: 0; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--navy); }
.social a:hover { background: var(--tint); color: var(--blue); }
.social .icon { width: 20px; height: 20px; }

.float-wa { position: fixed; z-index: 60; left: 18px; bottom: 18px; font-family: inherit; }

.float-wa__button { position: relative; display: flex; align-items: center; justify-content: center; height: 54px; min-width: 190px; padding: 0 20px 0 70px; border: 3px solid var(--green); border-radius: 17px; background: #fff; color: #176126; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 5px 16px rgba(0, 0, 0, .18); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.float-wa__button:hover, .float-wa__button:focus-visible { transform: translateY(-3px); border-color: var(--green-600); box-shadow: 0 8px 22px rgba(37, 211, 102, .32), 0 0 16px rgba(37, 211, 102, .16); }
.float-wa__button--link { text-decoration: none; }

.float-wa__icon { position: absolute; top: 50%; right: -20px; translate: 0 -50%; width: 62px; height: 62px; border-radius: 50%; background: var(--green); border: 5px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); display: grid; place-items: center; transition: transform .3s ease; }
.float-wa__button:hover .float-wa__icon { transform: translateY(-50%) scale(1.08) rotate(6deg); }
.float-wa__icon .icon { width: 30px; height: 30px; color: #fff; }

.float-wa__menu { display: none; position: absolute; left: 0; bottom: 66px; width: 300px; max-width: calc(100vw - 36px); background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 10px 34px rgba(11, 39, 71, .22); animation: gmg-menu-show .2s ease; }
.float-wa[data-open="true"] .float-wa__menu { display: block; }
.float-wa__title { margin: 0 0 10px; text-align: center; font-size: 15px; font-weight: 700; color: var(--navy); }
.float-wa__list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.float-wa__list a { display: block; padding: 11px 13px; margin: 0 0 6px; border-radius: 9px; background: var(--tint-2); color: var(--navy); text-decoration: none; font-size: 13.5px; font-weight: 600; transition: background-color .2s, transform .2s, color .2s; }
.float-wa__list a:hover { background: #E6F6EC; color: #176126; transform: translateX(-3px); }
.float-wa__general a { display: flex; align-items: center; gap: 8px; background: var(--tint); color: var(--blue); }
.float-wa__general .icon { width: 17px; height: 17px; flex: none; }

@keyframes gmg-menu-show { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .float-wa__menu { animation: none; } }

/* Inner pages ------------------------------------------------------------ */
.page-hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); padding-block: 34px 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.page-hero__title { font-size: clamp(26px, 3.4vw, 38px); margin: 0; }
.page-hero__sub { margin: 8px 0 0; color: var(--muted); max-width: 70ch; }
.page-hero + .finder { margin-top: 0; padding-top: 4px; }
.page-hero + .finder .finder__card { box-shadow: none; }
.page-builder { display: block; }

.container.article { max-width: 920px; }
.article__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.article__date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.article__date .icon { width: 15px; height: 15px; }
.article__hero { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; }
.article__hero img { width: 100%; }
.prose { line-height: 2; font-size: 16.5px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .3em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 12px; }
.prose blockquote { margin-inline: 0; padding: 12px 20px; border-inline-start: 4px solid var(--blue); background: var(--tint-2); border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; }
.prose--lead { font-size: 17px; max-width: 80ch; margin-bottom: 32px; }
.share { display: flex; align-items: center; gap: 10px; margin: 30px 0; padding-block: 16px; border-block: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.share > span { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 6px; }
.share a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--blue); }
.share a:hover { background: var(--blue); color: #fff; }
.related { margin-top: 44px; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding: 24px 26px; background: var(--tint-2); border: 1px solid var(--line); border-radius: 16px; }
.inline-cta h2 { font-size: 20px; margin-bottom: 4px; }
.inline-cta p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 56ch; }
.inline-cta__buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 16px; }
.grid--hospitals { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid--doctors { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.results-count { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.empty .btn { margin-top: 8px; }

.doctor { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.doctor__photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.doctor__hosp { display: flex; align-items: center; gap: 8px; font-weight: 600; }

.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 40px; padding: 7px 14px; text-align: center; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); font-weight: 600; font-size: 14px; }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination a.page-numbers:hover { background: var(--tint); }

/* Contact form */
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.cform { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.cform__title { font-size: 21px; margin-bottom: 18px; }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.cform__full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 400; color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14, 94, 216, .12); }
.notice { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; margin: 0 0 16px; }
.notice--ok { background: #E6F6EC; color: #11692F; border: 1px solid #b7e3c6; }
.notice--err { background: #FDECEA; color: var(--danger); border: 1px solid #f5c2bd; }
.cta .notice--ok { background: rgba(255, 255, 255, .95); }
.contact__info { display: grid; gap: 12px; }
.contact__item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--tint-2); border: 1px solid var(--line); border-radius: 14px; color: var(--navy); }
a.contact__item:hover { background: var(--tint); color: var(--navy); }
.contact__item .icon { width: 30px; height: 30px; color: var(--blue); }
.contact__item--wa .icon { color: var(--green); }
.contact__item span { display: flex; flex-direction: column; line-height: 1.4; }
.contact__item small { color: var(--muted); font-size: 13.5px; }

/* Comments (minimal) */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.comment-respond .submit { background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; cursor: pointer; font-weight: 600; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1180px) {
	.primary-nav .menu { gap: 20px; }
	.spec-grid { grid-template-columns: repeat(5, 1fr); }
	.pgrid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(5, 1fr); row-gap: 22px; }
	.steps li:not(:last-child)::after { display: none; }
}

@media (max-width: 1020px) {
	.nav-toggle { display: inline-grid; }
	.primary-nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(14, 60, 120, .1); padding: 8px 24px 20px; max-height: calc(100vh - 68px); overflow-y: auto; }
	.is-nav-open .primary-nav { display: flex; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li.current-menu-item > a::after { display: none; }
	.primary-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 12px; }
	.nav-wa { display: inline-flex; }
	.header-wa { display: none; }
	.site-header__inner { gap: 12px; }
	.cta__inner { grid-template-columns: 1fr; text-align: center; }
	.cta__brand { justify-self: center; order: -1; }
	.cta__news { max-width: 460px; margin-inline: auto; width: 100%; }
	.about__grid, .contact { grid-template-columns: 1fr; }
	.trust__list { grid-template-columns: repeat(2, 1fr); }
	.trust__list li:nth-child(3) { border-inline-start: 0; }
	.trust__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
	.hero { min-height: 0; }
	.hero::after { background: linear-gradient(to bottom, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .86) 100%); }
	.hero__inner { padding-block: 36px 92px; }
	.hero__features li { padding-inline: 14px; }
	.finder__fields { flex-wrap: wrap; }
	.field-inline, .field-inline--text { flex: 1 1 calc(50% - 6px); }
	.finder__go { flex: 1 1 100%; }
	.spec-grid { grid-template-columns: repeat(3, 1fr); }
	.pgrid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: repeat(3, 1fr); }
	.site-footer__inner { justify-content: center; text-align: center; }
	.section-head__title { font-size: 21px; }
	.grid--hospitals { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.container { padding-inline: 16px; }
	.brand__mark { width: 38px; height: 36px; }
	.brand__en { font-size: 15px; }
	.brand__ar { font-size: 14px; }
	.brand__tag { display: none; }
	.hero__buttons .btn { flex: 1 1 100%; }
	.hero__features { gap: 14px 0; }
	.finder__card { padding: 18px 16px; }
	.finder__tabs { width: 100%; }
	.finder__tabs button { flex: 1; padding-inline: 8px; }
	.field-inline, .field-inline--text { flex: 1 1 100%; }
	.cform__grid { grid-template-columns: 1fr; }
	.cform { padding: 20px; }
	.doctor { flex-direction: column; text-align: center; }
	.pcard__media { flex-basis: 36%; }
	.grid--hospitals { grid-template-columns: 1fr; gap: 18px; }
	.trust__list li { flex-direction: column; text-align: center; gap: 8px; padding-block: 18px; }
	.trust__list .icon { width: 34px; height: 34px; }
	.footer-nav .menu a { padding-inline: 10px; }
	.float-wa { left: 12px; bottom: 12px; }
	.float-wa__button { height: 50px; min-width: 170px; padding: 0 16px 0 64px; font-size: 14.5px; }
	.float-wa__icon { width: 56px; height: 56px; right: -17px; }
	.float-wa__icon .icon { width: 26px; height: 26px; }
	.float-wa__menu { width: 270px; bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 560px) {
	.hero__features { display: grid; grid-template-columns: repeat(4, 1fr); }
	.hero__features li { padding-inline: 4px; font-size: 11.5px; text-align: center; }
	.hero__features li:first-child { padding-inline-start: 4px; }
}

/* Demo/preview fallback content (visible only to admins, e.g. in Live Preview
   or right after activation before starter content has been added). */
.demo-banner { display: flex; align-items: center; gap: 12px; background: #FFF6E5; border-bottom: 1px solid #F3DDA6; color: #7A5A11; font-size: 13px; font-weight: 500; padding: 10px 24px; }
.demo-banner .icon { width: 22px; height: 22px; flex: none; color: #B8860B; }
.hcard--demo, .dcard--demo { opacity: .82; }
.hcard--demo .hcard__media, .dcard--demo .dcard__photo { position: relative; }
.hcard--demo .hcard__media::after, .dcard--demo .dcard__photo::after { content: 'معاينة'; position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(15, 39, 71, .78); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.hcard--demo [aria-disabled], .dcard--demo [aria-disabled] { pointer-events: none; opacity: .85; }
.spec--demo { cursor: default; }

.doctor__en { margin: 0 0 6px; font-weight: 600; color: var(--navy); font-size: 15px; text-align: left; }

/* Quick-view popup (hospital / doctor cards) ----------------------------- */
.gmg-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gmg-modal[hidden] { display: none; }
.gmg-modal__backdrop { position: absolute; inset: 0; background: rgba(11, 39, 71, .55); backdrop-filter: blur(2px); animation: gmg-fade .18s ease; }
.gmg-modal__dialog { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(11, 39, 71, .35); animation: gmg-pop .2s ease; }
.gmg-modal__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(11, 39, 71, .18); }
.gmg-modal__close:hover { background: #fff; color: var(--blue); }
.gmg-modal__close .icon { width: 18px; height: 18px; }
.gmg-modal__media { aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; border-radius: 20px 20px 0 0; }
.gmg-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.gmg-modal__body { padding: 22px 24px 26px; }
.gmg-modal__title { font-size: 21px; margin: 10px 0 2px; }
.gmg-modal__subtitle { margin: 0 0 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; text-align: right; }
.gmg-modal__hospital { margin: 0 0 10px; color: var(--blue); font-weight: 600; font-size: 14px; }
.gmg-modal__excerpt { color: var(--ink); font-size: 15px; line-height: 1.85; margin: 0 0 20px; }
.gmg-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gmg-modal__actions .btn { flex: 1; min-width: 150px; }
body.gmg-modal-open { overflow: hidden; }

@keyframes gmg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gmg-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 560px) {
	.gmg-modal { padding: 0; align-items: flex-end; }
	.gmg-modal__dialog { max-width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; animation: gmg-slide-up .22s ease; }
	.gmg-modal__media { border-radius: 20px 20px 0 0; }
}
@keyframes gmg-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
	.gmg-modal__backdrop, .gmg-modal__dialog { animation: none !important; }
}

/* Photo gallery strip on the single hospital page ------------------------ */
.gmg-pgallery { margin: 0 0 26px; }
.gmg-pgallery__main { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); display: block; }
.gmg-pgallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.gmg-pgallery__thumb { flex: 0 0 90px; width: 90px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--tint); opacity: .7; transition: opacity .15s, border-color .15s; }
.gmg-pgallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gmg-pgallery__thumb:hover { opacity: 1; }
.gmg-pgallery__thumb.is-active { opacity: 1; border-color: var(--blue); }
