:root {
  --teal-950: #043b4b;
  --teal-900: #07586b;
  --teal-800: #087a8b;
  --teal: #07a8ac;
  --aqua: #2cc5c2;
  --ink: #0a2c3a;
  --muted: #6a7f87;
  --line: #dce7e9;
  --surface: #f7fbfb;
  --orange: #f5b22c;
  --shadow: 0 8px 22px rgba(9, 59, 72, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, Arial, sans-serif; font-size: 13px; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.container { width: min(1760px, calc(100% - 48px)); margin-inline: auto; }

/* HEADER & NAVBAR */
.site-header { height: 70px; background: var(--teal-950); border-bottom: 1px solid rgba(255, 255, 255, .14); position: relative; z-index: 50; }
.topbar { height: 70px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 160px; }
.brand-mark { width: 28px; height: 28px; color: #fff; background: var(--teal); border-radius: 6px; display: grid; place-items: center; font-size: 18px; font-weight: 800; box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); flex-shrink: 0; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.brand-copy strong { color: #fff; font-size: 15px; letter-spacing: .1px; font-weight: 800; }
.brand-copy small { color: #a6ced0; font-size: 7.5px; letter-spacing: .2px; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 21px; flex: 1; justify-content: center; }
.main-nav a { color: #c4dfe1; font-size: 11px; font-weight: 500; height: 70px; display: flex; align-items: center; position: relative; white-space: nowrap; cursor: pointer; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--aqua); border-radius: 5px 5px 0 0; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.lang-btn, .login-btn, .signup-btn { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; height: 32px; padding: 0 11px; border-radius: 6px; font-size: 10.5px; font-weight: 600; cursor: pointer; transition: .2s; display: inline-flex; align-items: center; justify-content: center; }
.lang-btn { border: 0; display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.lang-btn i { font-style: normal; color: #9ee3e0; font-size: 12px; border-left: 1px solid rgba(255,255,255,.3); padding-left: 6px; }
.login-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.signup-btn { border-color: var(--teal); color: #fff; background: var(--teal); }
.signup-btn:hover { background: var(--teal-900); }
.menu-btn { display: none; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 20px; border-radius: 6px; width: 34px; height: 34px; cursor: pointer; align-items: center; justify-content: center; }

/* HERO SECTION */
.hero { min-height: 300px; color: #fff; background: #0a6074; position: relative; overflow: hidden; background-image: url("/attached_assets/image_1789806372961.png"); background-size: 202% auto; background-position: right -119px; background-repeat: no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 68px; background: linear-gradient(transparent 0%, rgba(3, 48, 60, .78) 35%, #0a6074 88%); pointer-events: none; z-index: 2; }
.hero-inner { min-height: 300px; display: flex; align-items: center; position: relative; z-index: 1; }
.hero-content { width: 61%; padding: 27px 0 28px; }
.eyebrow { color: #94e4e1; letter-spacing: 1.3px; font-size: 10px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pulse-dot { width: 7px; height: 7px; background: var(--aqua); border-radius: 50%; box-shadow: 0 0 0 5px rgba(44,197,194,.16); }
h1 { font-size: clamp(30px, 4vw, 47px); line-height: 1.05; letter-spacing: -1.2px; margin: 0 0 13px; font-weight: 800; }
h1 em { color: #bbf0eb; font-style: normal; }
.hero-content p { margin: 0 0 14px; color: #d3eef0; font-size: 13px; }
.hero-list { display: flex; flex-wrap: wrap; gap: 8px 17px; color: #c2e1e3; font-size: 10px; }
.hero-list span { position: relative; }
.hero-list span::before { content: "•"; margin-right: 5px; color: var(--aqua); }
.hero-figure { display: none; height: 277px; width: 390px; position: absolute; right: 12%; bottom: 0; opacity: .9; }
.person-silhouette { position: absolute; right: 53px; bottom: -30px; width: 190px; height: 260px; border-radius: 48% 48% 9% 9%; background: linear-gradient(90deg, rgba(28,91,111,.1), rgba(128,203,211,.72) 48%, rgba(9,63,80,.35)); clip-path: polygon(42% 0, 61% 0, 71% 13%, 77% 26%, 72% 38%, 88% 60%, 100% 100%, 0 100%, 11% 61%, 28% 39%, 24% 22%); filter: blur(.2px); }
.person-silhouette::after { content: ""; position: absolute; width: 16px; height: 190px; left: 83px; top: 36px; background: linear-gradient(180deg, #f58331, #ffbf43 45%, rgba(247,105,39,.1)); box-shadow: 0 0 22px 10px rgba(255,121,44,.43); border-radius: 50%; transform: rotate(7deg); }
.person-silhouette::before { content: ""; position: absolute; width: 48px; height: 77px; left: 67px; top: 79px; border-radius: 45%; background: repeating-linear-gradient(170deg, rgba(255,224,184,.95) 0 6px, transparent 6px 12px); opacity: .6; z-index: 1; }
.spine-glow { position: absolute; right: 55px; bottom: 72px; width: 115px; height: 115px; background: rgba(255,112,34,.18); border-radius: 50%; filter: blur(24px); }
.hero-note { display: none; position: absolute; right: 7px; top: 70px; font-family: Georgia, serif; font-size: 17px; line-height: .9; color: #bbebea; text-align: center; transform: rotate(-9deg); }
.hero-note b { color: #fff; font-size: 20px; }
.hero-note small { display: block; font-family: Tajawal, sans-serif; font-size: 12px; margin-top: 9px; color: rgba(255,255,255,.78); }

/* SEARCH SHELL */
.search-shell { margin-top: -29px; position: relative; z-index: 10; background: #fff; border-radius: 10px; box-shadow: 0 10px 28px rgba(8,54,66,.18); padding: 0 15px 14px; }
.search-tabs { display: flex; gap: 3px; }
.search-tab { border: 0; background: transparent; color: var(--teal-900); padding: 14px 19px 12px; cursor: pointer; border-radius: 0 0 7px 7px; font-size: 11px; font-weight: 700; display: flex; gap: 7px; align-items: center; transition: background .2s, color .2s; }
.search-tab.active { background: #e8f7f6; color: var(--teal-800); }
.search-tab span:first-child { font-size: 15px; }
.search-row-form { margin: 0; padding: 0; }
.search-row { display: grid; grid-template-columns: 1.8fr 1.3fr 1fr 1fr .76fr; gap: 8px; }
.search-field-container { position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid #cce2e4; border-radius: 8px; min-height: 52px; padding: 0 10px; transition: border-color .2s, box-shadow .2s; }
.search-field-container:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,168,172,.15); }
.search-icon { color: var(--teal); font-size: 16px; margin-right: 8px; flex: 0 0 auto; }
html[dir="rtl"] .search-icon { margin-right: 0; margin-left: 8px; }
.real-select, .real-input { width: 100%; border: 0; outline: none; background: transparent; font-size: 11.5px; font-weight: 500; color: var(--ink); height: 100%; cursor: pointer; }
.real-input { cursor: text; }
.real-select option { font-size: 12.5px; color: #111; padding: 6px; }
.search-button { border: 0; border-radius: 6px; background: var(--teal); color: white; font-weight: 700; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 12px; transition: .2s; }
.search-button:hover, .book-button:hover, .signup-btn:hover { background: var(--teal-900); }
.search-button b { font-size: 16px; transform: rotate(-20deg); }

/* POPULAR CONDITIONS BAR */
.popular { display: flex; align-items: center; gap: 6px; padding: 10px 2px 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.popular::-webkit-scrollbar { display: none; }
.popular strong { font-size: 9px; color: #466a73; margin-right: 2px; flex-shrink: 0; }
.tag-btn { border: 1px solid #d0e7e8; background: #f4fbfb; color: var(--teal-900); font-weight: 600; padding: 5px 11px; border-radius: 14px; font-size: 9px; cursor: pointer; transition: all .2s; flex-shrink: 0; }
.tag-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* TRIAGE HINT */
.triage-hint { display: flex; align-items: center; gap: 8px; background: #edfaf9; border: 1px solid #a8e5e3; color: var(--teal-900); border-radius: 8px; padding: 8px 14px; font-size: 11px; font-weight: 600; margin-top: 10px; }
.triage-icon { font-size: 15px; }

/* DYNAMIC SEARCH RESULTS SECTION */
.search-results-section { padding-top: 35px; scroll-margin-top: 20px; }
.results-header-bar { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #e0eff0; padding-bottom: 14px; margin-bottom: 16px; }
.results-badge { display: inline-block; background: #dff6f5; color: var(--teal-900); font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 12px; margin-bottom: 4px; }
.results-header-bar h2 { font-size: 22px; color: var(--teal-950); margin: 0 0 3px; font-weight: 800; }
.results-subheading { color: var(--muted); font-size: 10px; margin: 0; }
.clear-filter-btn { border: 1px solid #bce1e3; background: #fff; color: var(--teal-900); font-size: 10px; font-weight: 700; padding: 7px 14px; border-radius: 6px; cursor: pointer; transition: .2s; }
.clear-filter-btn:hover { background: #e8f7f6; border-color: var(--teal); }

.results-triage-card { display: flex; align-items: flex-start; gap: 12px; background: linear-gradient(135deg, #ebf8f8, #f4fbfb); border: 1px solid #a8e5e3; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.triage-card-icon { font-size: 20px; flex: 0 0 auto; }
.triage-card-content strong { display: block; font-size: 12px; color: var(--teal-950); margin-bottom: 3px; }
.triage-card-content p { margin: 0; font-size: 10.5px; color: #0a4f5c; line-height: 1.45; }

.results-type-pills { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.results-type-pills::-webkit-scrollbar { display: none; }
.res-pill { border: 1px solid #d8e9ea; background: #fff; color: #55757d; padding: 6px 14px; border-radius: 20px; font-size: 9.5px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: .2s; flex-shrink: 0; }
.res-pill:hover, .res-pill.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.res-pill .count-badge { background: rgba(0,0,0,.08); padding: 1px 6px; border-radius: 10px; font-size: 8.5px; }
.res-pill.active .count-badge { background: rgba(255,255,255,.25); color: #fff; }

.no-results-box { text-align: center; background: #fbfdfd; border: 1.5px dashed #cde2e4; border-radius: 10px; padding: 36px 20px; margin: 10px 0; }
.no-results-icon { font-size: 32px; margin-bottom: 10px; }
.no-results-box h3 { font-size: 15px; color: var(--teal-950); margin: 0 0 6px; }
.no-results-box p { color: var(--muted); font-size: 11px; margin: 0; }

/* CATEGORY & SERVICE CARDS */
.content-section { padding-top: 34px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.section-kicker { color: var(--teal); font-size: 8px; font-weight: 800; letter-spacing: 1.2px; display: block; margin-bottom: 4px; }
h2 { font-size: 21px; letter-spacing: -.5px; margin: 0; line-height: 1.1; }
.section-link { font-size: 10px; color: var(--teal-800); font-weight: 700; margin-bottom: 3px; cursor: pointer; }
.section-link:hover { color: var(--teal); text-decoration: underline; }
.card-grid { display: grid; gap: 9px; }
.card-grid.five { grid-template-columns: repeat(5, 1fr); }
.category-card { min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 6px 6px 11px; text-align: center; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.category-card:hover, .provider-card:hover, .article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-image { height: 110px; border-radius: 5px; background-size: cover; background-position: center; margin-bottom: 9px; }
.image-brain { background-image: linear-gradient(120deg, rgba(16,100,126,.16), rgba(8,37,59,.15)), url("https://images.unsplash.com/photo-1559757175-0eb30cd8c063?auto=format&fit=crop&w=400&q=80"); }
.image-rehab { background-image: linear-gradient(120deg, rgba(5,44,58,.2), rgba(9,128,139,.05)), url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=400&q=80"); }
.image-pain { background-image: linear-gradient(120deg, rgba(3,33,45,.12), rgba(242,124,44,.16)), url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=400&q=80"); }
.image-bone { background-image: linear-gradient(120deg, rgba(9,49,63,.1), rgba(12,109,128,.15)), url("https://images.unsplash.com/photo-1511174511562-5f7f18b874f8?auto=format&fit=crop&w=400&q=80"); }
.image-hand { background-image: linear-gradient(120deg, rgba(8,52,63,.1), rgba(14,111,122,.15)), url("https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&w=400&q=80"); }
.image-physio { background-image: linear-gradient(120deg, rgba(3,40,57,.14), rgba(28,135,145,.05)), url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=400&q=80"); }
.image-radiology { background-image: linear-gradient(120deg, rgba(6,53,70,.1), rgba(9,118,135,.1)), url("https://images.unsplash.com/photo-1511174511562-5f7f18b874f8?auto=format&fit=crop&w=400&q=80"); }
.image-lab { background-image: linear-gradient(120deg, rgba(8,70,80,.11), rgba(255,255,255,.12)), url("https://images.unsplash.com/photo-1579154204601-01588f351e67?auto=format&fit=crop&w=400&q=80"); }
.image-hospital { background-image: linear-gradient(120deg, rgba(8,50,62,.1), rgba(8,135,144,.08)), url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3?auto=format&fit=crop&w=400&q=80"); }
.image-pharmacy { background-image: linear-gradient(120deg, rgba(8,49,60,.08), rgba(17,128,140,.1)), url("https://images.unsplash.com/photo-1585435557343-3b092031a831?auto=format&fit=crop&w=400&q=80"); }
.category-card h3 { color: var(--ink); font-size: 11px; line-height: 1.2; min-height: 25px; margin: 0 0 5px; }
.category-card p { color: var(--muted); font-size: 8px; line-height: 1.45; margin: 0; }

/* PROVIDER CARDS */
.providers-section { padding-top: 34px; }
.providers-heading { margin-bottom: 9px; }
.filter-pills { display: flex; gap: 5px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pills button { border: 1px solid #dfebec; background: #fff; color: #70878c; padding: 5px 13px; border-radius: 12px; font-size: 8px; cursor: pointer; flex-shrink: 0; }
.filter-pills button:hover, .filter-pills .selected { color: var(--teal-900); border-color: #8cd8d5; background: #edfbfa; }
.provider-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.provider-card { position: relative; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 8px 8px 10px; text-align: center; transition: transform .2s, box-shadow .2s; }
.provider-photo { height: 125px; border-radius: 5px; background-size: cover; background-position: center; margin-bottom: 11px; }
.doctor-photo { background-image: linear-gradient(90deg, rgba(2,48,63,.04), rgba(2,48,63,.13)), url("https://images.unsplash.com/photo-1612349317150-e413f6a5b16d?auto=format&fit=crop&w=500&q=85"); background-position: center 26%; }
.physio-photo { background-image: linear-gradient(90deg, rgba(2,48,63,.03), rgba(2,48,63,.12)), url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=500&q=85"); }
.radiology-photo { background-image: linear-gradient(90deg, rgba(2,48,63,.03), rgba(2,48,63,.1)), url("https://images.unsplash.com/photo-1516841273335-e39b37888115?auto=format&fit=crop&w=500&q=85"); }
.lab-photo { background-image: linear-gradient(90deg, rgba(2,48,63,.03), rgba(2,48,63,.1)), url("https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=500&q=85"); }
.provider-card h3 { font-size: 11.5px; margin: 0 0 3px; line-height: 1.25; color: var(--teal-950); }
.provider-card p { color: #668087; font-size: 8.5px; margin: 0 0 4px; line-height: 1.35; min-height: 22px; }
.provider-card small { color: #8b9da0; font-size: 8px; display: block; }
.sponsored { position: absolute; top: 11px; left: 11px; color: #725800; background: #ffd96c; padding: 3px 6px; border-radius: 4px; font-size: 7.5px; font-weight: 800; }
html[dir="rtl"] .sponsored { left: auto; right: 11px; }
.heart { position: absolute; right: 11px; top: 8px; border: 0; color: #dce6e7; background: rgba(255,255,255,.86); border-radius: 50%; font-size: 17px; line-height: 20px; cursor: pointer; }
html[dir="rtl"] .heart { right: auto; left: 11px; }
.heart:hover { color: #f26767; }
.rating { margin: 6px 0; color: #4c6268; font-size: 9px; }
.rating b { color: var(--orange); font-size: 12px; }
.rating span { color: #8c9ca0; }
.card-actions { display: flex; gap: 6px; margin-top: 8px; }
.outline-button { border: 1px solid #c5dedf; background: #fff; color: var(--teal-900); font-weight: 700; border-radius: 5px; padding: 7px 10px; font-size: 9px; cursor: pointer; flex: 1; transition: .2s; }
.outline-button:hover { border-color: var(--teal); color: var(--teal); }
.card-actions .book-button { flex: 1; margin: 0; padding: 7px 10px; font-size: 9px; }
.book-button, .dark-button { border: 0; width: 100%; border-radius: 5px; color: #fff; background: var(--teal); padding: 8px 10px; font-size: 10px; font-weight: 700; cursor: pointer; transition: .2s; }

/* ADVERTISE BANNER */
.advertise-banner { min-height: 83px; margin-top: 34px; border-radius: 8px; overflow: hidden; background: linear-gradient(90deg, #0a465d, #087c89); color: #fff; display: flex; align-items: center; padding: 12px 20px 12px 158px; position: relative; }
.banner-art { position: absolute; left: 0; top: 0; bottom: 0; width: 155px; background: linear-gradient(90deg, rgba(5,37,50,.3), rgba(6,76,89,.25)), url("https://images.unsplash.com/photo-1559757175-7cb057fba93c?auto=format&fit=crop&w=400&q=70") center/cover; clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); }
.advertise-banner .section-kicker { color: #9ce2dc; }
.advertise-banner h2 { font-size: 19px; color: white; margin: 0 0 3px; }
.advertise-banner p { margin: 0; color: #c5e4e5; font-size: 10px; }
.advertise-banner > div:nth-child(2) { flex: 1; }
.advertise-banner > button { border: 1px solid rgba(255,255,255,.4); color: white; background: rgba(0,0,0,.06); padding: 10px 16px; border-radius: 5px; font-size: 10px; font-weight: 700; cursor: pointer; }
.advertise-banner > button b { margin-left: 8px; font-size: 15px; }

/* HEALTH ARTICLES & CONNECTED PATHWAYS */
.article-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.article-card { border: 1px solid var(--line); border-radius: 8px; padding: 7px 7px 11px; transition: transform .2s, box-shadow .2s; background: #fff; display: flex; flex-direction: column; }
.article-image { height: 88px; border-radius: 5px; background-size: cover; background-position: center; margin-bottom: 8px; }
.article-knee { background-image: url("https://images.unsplash.com/photo-1609840114035-3c981b782dfe?auto=format&fit=crop&w=400&q=80"); }
.article-herniated { background-image: url("https://images.unsplash.com/photo-1530026405186-ed1f139313f8?auto=format&fit=crop&w=400&q=80"); }
.article-rheumatoid { background-image: url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=400&q=80"); }
.article-exercise { background-image: url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=400&q=80"); }
.article-osteoporosis { background-image: url("https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?auto=format&fit=crop&w=400&q=80"); }
.article-card > span { color: var(--teal); font-size: 7.5px; letter-spacing: .8px; font-weight: 800; margin-bottom: 2px; }
.article-card h3 { font-size: 10.5px; line-height: 1.32; min-height: 38px; margin: 4px 0 6px; color: var(--teal-950); }
.article-pathway-tag { font-size: 8px; color: #08667a; background: #edf9f9; border-radius: 4px; padding: 3px 5px; margin-bottom: 8px; font-weight: 600; line-height: 1.25; }
.article-footer-actions { display: flex; gap: 5px; margin-top: auto; }
.read-article-btn, .find-care-btn { border: 1px solid #cbe4e6; background: #fff; color: var(--teal-900); font-size: 8.5px; font-weight: 700; padding: 5px 7px; border-radius: 4px; cursor: pointer; flex: 1; transition: .2s; }
.read-article-btn:hover { background: #e8f7f6; border-color: var(--teal); }
.find-care-btn { background: var(--teal); color: #fff; border-color: var(--teal); }
.find-care-btn:hover { background: var(--teal-900); }

/* CUSTOM MODAL SYSTEM (PROFILES, BOOKING, ADVERTISING, ARTICLES) */
.custom-modal-backdrop { position: fixed; inset: 0; background: rgba(4, 59, 75, 0.78); backdrop-filter: blur(5px); z-index: 1000; display: flex; justify-content: center; align-items: center; padding: 16px; }
.custom-modal-card { position: relative; background: #fff; width: min(720px, 100%); max-height: 90vh; overflow-y: auto; border-radius: 12px; box-shadow: 0 25px 50px rgba(0,0,0,.35); padding: 26px; }
.custom-modal-close { position: absolute; top: 16px; right: 16px; border: 0; background: #ebf5f5; color: var(--teal-950); width: 32px; height: 32px; border-radius: 50%; font-size: 16px; font-weight: 700; cursor: pointer; display: grid; place-items: center; transition: .2s; z-index: 10; }
html[dir="rtl"] .custom-modal-close { right: auto; left: 16px; }
.custom-modal-close:hover { background: #ffd2d2; color: #c00; }

/* PROVIDER PROFILE MODAL LAYOUT */
.provider-profile-card { display: flex; flex-direction: column; gap: 18px; }
.profile-top-row { display: flex; gap: 18px; align-items: flex-start; }
.profile-photo-lg { width: 110px; height: 125px; border-radius: 8px; flex: 0 0 auto; background-size: cover; background-position: center; }
.profile-meta { flex: 1; }
.profile-badges { display: flex; gap: 6px; margin-bottom: 6px; }
.verified-pill { background: #e0f6f4; color: var(--teal-950); font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 10px; }
.sponsored-pill { background: #ffd96c; color: #725800; font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 10px; }
.profile-meta h2 { font-size: 20px; color: var(--teal-950); margin: 0 0 3px; }
.profile-meta h3 { font-size: 12px; color: #55757d; margin: 0 0 5px; font-weight: 600; }
.profile-facility { margin: 0 0 6px; font-size: 11px; color: var(--teal-900); font-weight: 600; }
.rating-large { font-size: 12px; color: #4c6268; font-weight: 700; }
.rating-large b { color: var(--orange); font-size: 15px; }

.profile-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #f7fbfb; border: 1px solid #e1eff0; border-radius: 8px; padding: 14px; }
.detail-box strong { display: block; font-size: 11px; color: var(--teal-950); margin-bottom: 3px; }
.detail-box p { margin: 0; font-size: 10.5px; color: #496c73; line-height: 1.4; }
.rate-highlight { color: var(--teal-900) !important; font-weight: 800; font-size: 12px !important; }

.profile-action-bar { display: flex; gap: 10px; margin-top: 4px; }
.phone-call-btn { flex: 1; border: 1.5px solid var(--teal); color: var(--teal-900); background: #fff; border-radius: 7px; padding: 11px 16px; font-weight: 700; font-size: 11.5px; display: flex; justify-content: center; align-items: center; gap: 8px; transition: .2s; }
.phone-call-btn:hover { background: #e8f7f6; }
.profile-book-btn { flex: 1.5; border: 0; background: var(--teal); color: #fff; border-radius: 7px; padding: 11px 16px; font-weight: 700; font-size: 12px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; transition: .2s; }
.profile-book-btn:hover { background: var(--teal-900); }

/* BOOKING & ADVERTISING MODAL FORMS */
.booking-modal-header { margin-bottom: 18px; }
.booking-badge { display: inline-block; background: #e2f7f5; color: var(--teal-900); font-size: 9px; font-weight: 800; padding: 3px 10px; border-radius: 12px; margin-bottom: 6px; }
.booking-modal-header h2 { font-size: 20px; color: var(--teal-950); margin: 0 0 4px; }
.booking-modal-header p { color: var(--muted); font-size: 11px; margin: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 10.5px; font-weight: 700; color: var(--teal-950); }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid #cce2e4; border-radius: 6px; padding: 9px 12px; font-size: 11.5px; color: var(--ink); outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,168,172,.15); }

.package-selection-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.package-option { cursor: pointer; }
.package-option input { display: none; }
.package-box { border: 1.5px solid #d4e8e9; border-radius: 7px; padding: 9px 12px; transition: all .2s; }
.package-option input:checked + .package-box { border-color: var(--teal); background: #ebf9f8; }
.package-box strong { display: block; font-size: 11px; color: var(--teal-950); }
.package-box small { color: #587981; font-size: 9px; }

.modal-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; border-top: 1px solid #edf4f5; padding-top: 14px; }
.cancel-modal-btn { border: 1px solid #cbe3e4; background: #fff; color: #5b7a82; border-radius: 6px; padding: 9px 18px; font-weight: 600; font-size: 11px; cursor: pointer; }
.cancel-modal-btn:hover { background: #f5fbfb; }
.submit-modal-btn { border: 0; background: var(--teal); color: #fff; border-radius: 6px; padding: 9px 22px; font-weight: 700; font-size: 11.5px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.submit-modal-btn:hover { background: var(--teal-900); }

/* STATS STRIP */
.stats-strip { margin-top: 37px; border-top: 1px solid #d9eeee; border-bottom: 1px solid #d9eeee; background: #f1fbfb; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 0; }
.stat { display: flex; justify-content: center; align-items: center; gap: 11px; border-right: 1px solid #cfe4e5; }
.stat:last-child { border: 0; }
.stat-icon { width: 31px; height: 31px; border-radius: 50%; color: var(--teal-800); background: #d7f3f1; display: grid; place-items: center; font-size: 17px; }
.stat strong { display: block; font-size: 17px; color: var(--ink); }
.stat small { color: #6d858b; font-size: 9px; display: block; margin-top: 2px; }

/* THREE USER JOURNEYS SECTION */
.user-journeys-section { padding: 34px 0 20px; }
.journey-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.journey-card { background: #fff; border: 1.5px solid #e1eef0; border-radius: 10px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
.journey-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(2, 60, 78, 0.08); border-color: var(--teal); }
.journey-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.journey-badge { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 8px; border-radius: 4px; }
.badge-patient { background: #e0f4f5; color: var(--teal-900); }
.badge-doc { background: #eaf1fb; color: #1e40af; }
.badge-center { background: #fef3c7; color: #92400e; }
.journey-avatar { width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.avatar-patient-journey { background-image: url("https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&w=150&q=80"); }
.avatar-doctor-journey { background-image: url("https://images.unsplash.com/photo-1622253692010-333f2da6031d?auto=format&fit=crop&w=150&q=80"); }
.avatar-center-journey { background-image: url("https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=150&q=80"); }
.journey-card h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.journey-card p { font-size: 10px; color: #5a7378; line-height: 1.45; margin: 0 0 12px; min-height: 28px; }
.journey-features { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.journey-features li { font-size: 9.5px; color: #355055; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.journey-btn { width: 100%; height: 38px; border: 0; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .2s, background-color .2s; }
.btn-find-care { background: var(--teal); color: #fff; }
.btn-find-care:hover { background: var(--teal-800); }
.btn-doc-join { background: #1e3a8a; color: #fff; }
.btn-doc-join:hover { background: #172554; }
.btn-center-reg { background: #0f766e; color: #fff; }
.btn-center-reg:hover { background: #115e59; }

/* PATIENT PORTAL STYLES */
.portal-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.portal-feat-card { background: #f4fafb; border: 1px solid #d4ebed; border-radius: 8px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.portal-icon { font-size: 18px; margin-bottom: 2px; }
.portal-feat-card strong { font-size: 10px; color: var(--teal-950); }
.portal-feat-card small { font-size: 8px; color: #668388; }
.portal-login-box { background: #fff; border: 1.5px solid #dbebee; border-radius: 8px; padding: 14px; margin-top: 10px; }
.portal-login-box h4 { margin: 0; font-size: 12px; color: var(--ink); font-weight: 700; }
.nav-highlight { background: rgba(3, 137, 166, 0.08); color: var(--teal-800) !important; font-weight: 700 !important; border-radius: 4px; padding-inline: 6px !important; }

/* DUAL CTA */
.cta-section { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 28px; padding-bottom: 29px; }
.cta-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; min-height: 69px; }
.cta-avatar { width: 64px; height: 54px; flex: 0 0 auto; border-radius: 5px; background-size: cover; background-position: center; }
.avatar-doctor { background-image: url("https://images.unsplash.com/photo-1612349317150-e413f6a5b16d?auto=format&fit=crop&w=200&q=80"); }
.avatar-center { background-image: url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3?auto=format&fit=crop&w=200&q=80"); }
.cta-card > div:nth-child(2) { flex: 1; }
.cta-card h3 { margin: 0 0 3px; font-size: 12px; }
.cta-card p { color: #72878b; margin: 0; font-size: 9px; }
.cta-card .book-button, .cta-card .dark-button { width: auto; padding: 8px 13px; }
.dark-button { background: var(--teal-950); }

/* FOOTER */
.site-footer { min-height: 250px; background: #f7fbfb; border-top: 1px solid #e1eeee; padding: 44px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; padding-bottom: 23px; }
.footer-brand p { color: #70878b; font-size: 9px; line-height: 1.6; max-width: 220px; margin: 12px 0 0; }
.footer-grid h4 { margin: 0 0 12px; color: var(--ink); font-size: 10px; font-weight: 700; }
.footer-grid > div:not(:first-child) > a { display: block; color: #617b80; font-size: 9px; margin: 0 0 8px; cursor: pointer; text-decoration: none; transition: color .2s; }
.footer-grid > div:not(:first-child) > a:hover { color: var(--teal); font-weight: 600; }
.socials { display: flex; gap: 6px; }
.socials a { width: 21px; height: 21px; border: 1px solid #c5dfe0; color: var(--teal-800); display: grid; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 700; text-decoration: none; }
.copyright { border-top: 1px solid #dbe9ea; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; color: #94a5a8; font-size: 8.5px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 90px); background: var(--teal-950); color: #fff; border-radius: 6px; padding: 12px 17px; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 11px; z-index: 2000; transition: transform .25s; text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* RESPONSIVE TABLE UTILITIES */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  margin-bottom: 1rem;
}

/* ANIMATIONS */
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ARABIC RTL RULES */
html[dir="rtl"] body { font-family: Tajawal, Inter, sans-serif; }
html[dir="rtl"] .main-nav, html[dir="rtl"] .header-actions { direction: rtl; }
html[dir="rtl"] .main-nav a.active::after { left: 0; right: 0; }
html[dir="rtl"] .hero { background-position: left -119px; }
html[dir="rtl"] .hero-content { text-align: right; }
html[dir="rtl"] .hero-list { direction: rtl; }
html[dir="rtl"] .hero-list span::before { margin-left: 5px; margin-right: 0; }
html[dir="rtl"] .hero-figure { right: auto; left: 12%; transform: scaleX(-1); }
html[dir="rtl"] .hero-note { right: auto; left: 7px; }
html[dir="rtl"] .section-heading, html[dir="rtl"] .popular, html[dir="rtl"] .search-row, html[dir="rtl"] .cta-section, html[dir="rtl"] .footer-grid, html[dir="rtl"] .results-header-bar, html[dir="rtl"] .results-triage-card, html[dir="rtl"] .results-type-pills, html[dir="rtl"] .custom-modal-card { direction: rtl; }
html[dir="rtl"] .section-heading > a { transform: scaleX(-1); }
html[dir="rtl"] .advertise-banner { padding: 12px 158px 12px 20px; direction: rtl; }
html[dir="rtl"] .banner-art { left: auto; right: 0; transform: scaleX(-1); }
html[dir="rtl"] .advertise-banner > button b { margin-left: 0; margin-right: 8px; transform: scaleX(-1); }
html[dir="rtl"] .article-cta-btn b, html[dir="rtl"] .profile-book-btn b { transform: scaleX(-1); }
html[dir="rtl"] .footer-grid { text-align: right; }
html[dir="rtl"] .stat { border-right: 0; border-left: 1px solid #cfe4e5; }
html[dir="rtl"] .stat:last-child { border: 0; }
html[dir="rtl"] .modal-form-actions { justify-content: flex-start; }

/* ============================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================================ */

/* TABLET LANDSCAPE (980px and below) */
@media (max-width: 980px) {
  .container { width: calc(100% - 32px); }
  .topbar { gap: 16px; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 10px; }
  .hero-figure { right: 1%; opacity: .65; }
  .hero-content { width: 75%; }
  .category-image { height: 95px; }
  .search-row { grid-template-columns: 1.5fr 1fr 1fr .8fr; }
  .card-grid.five { grid-template-columns: repeat(3, 1fr); }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .journey-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

/* TABLET PORTRAIT (860px to 731px) */
@media (max-width: 860px) and (min-width: 731px) {
  .container { width: calc(100% - 36px); }
  .topbar { gap: 12px; }
  .brand { min-width: 140px; }
  .main-nav { gap: 8px; }
  .main-nav a { font-size: 9.5px; }
  .header-actions { gap: 4px; }
  .login-btn, .signup-btn { padding: 0 8px; font-size: 9.5px; height: 30px; }
  .search-row { grid-template-columns: 1.4fr 1fr 1fr .78fr; }
  .card-grid.five { grid-template-columns: repeat(3, 1fr); }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .journey-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-card:last-child { grid-column: 1 / -1; }
  .category-card:last-child, .article-card:last-child { grid-column: auto; max-width: none; }
}

/* MOBILE VIEWPORTS (730px and below) */
@media (max-width: 730px) {
  .container { width: calc(100% - 24px); }
  .site-header, .topbar { height: 60px; }
  .topbar { gap: 10px; justify-content: space-between; }
  .brand { min-width: auto; }
  .brand-mark { width: 28px; height: 28px; font-size: 16px; }
  .brand-copy strong { font-size: 13.5px; }
  .brand-copy small { font-size: 7.5px; }

  /* Mobile Dropdown Navigation */
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(2, 45, 58, 0.22);
    border: 1px solid #dbe8e9;
    padding: 10px 14px;
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 9999;
  }
  .main-nav.open {
    display: flex;
    animation: navSlideDown 0.2s ease-out;
  }
  .main-nav a {
    height: 42px;
    border-bottom: 1px solid #edf4f5;
    color: var(--teal-950);
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 10px;
    display: flex;
    align-items: center;
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a:hover, .main-nav a.active {
    color: var(--teal);
    background: #f4fafb;
    border-radius: 6px;
  }
  .main-nav a.active::after { display: none; }

  .header-actions { margin-inline-start: auto; gap: 6px; }
  .login-btn { display: none; }
  .signup-btn { font-size: 10px; padding: 0 9px; height: 32px; }
  .lang-btn { height: 32px; padding: 0 5px; }
  .menu-btn { display: flex; }

  /* Hero Section */
  .hero, .hero-inner { min-height: 320px; }
  .hero {
    background-image: linear-gradient(90deg, rgba(3,35,50,.96) 0%, rgba(4,72,91,.82) 45%, rgba(3,50,67,.88) 100%), url("https://images.unsplash.com/photo-1551076805-e1869033e561?auto=format&fit=crop&w=1800&q=85");
    background-size: cover;
    background-position: center 45%;
  }
  .hero-content { width: 100%; align-self: flex-start; padding: 24px 0 30px; position: relative; z-index: 2; }
  .hero-figure, .hero-note { display: none; }
  h1 { font-size: clamp(24px, 5.5vw, 32px); line-height: 1.15; max-width: 100%; }
  .hero-content p { font-size: 12px; margin-bottom: 10px; }
  .hero-list { font-size: 9.5px; gap: 6px 12px; }

  /* Interactive Search Shell */
  .search-shell { margin-top: -24px; padding: 8px 12px 14px; border-radius: 12px; }
  .search-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 4px; padding-bottom: 2px; }
  .search-tabs::-webkit-scrollbar { display: none; }
  .search-tab { white-space: nowrap; padding: 10px 14px; font-size: 11px; flex-shrink: 0; }
  .search-row { grid-template-columns: 1fr; gap: 8px; }
  .search-field-container { min-height: 48px; border-radius: 8px; }
  .real-select, .real-input { font-size: 15px; } /* Prevent auto-zoom */
  .search-button { min-height: 48px; font-size: 13.5px; border-radius: 8px; }
  .popular { padding: 10px 0 2px; gap: 5px; }
  .tag-btn { padding: 6px 12px; font-size: 10px; flex-shrink: 0; }

  /* Grids */
  .card-grid.five { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .category-card { padding: 6px 6px 10px; border-radius: 8px; }
  .category-image { height: 95px; border-radius: 6px; margin-bottom: 6px; }
  .category-card h3 { font-size: 11px; min-height: 28px; margin-bottom: 2px; }
  .category-card p { font-size: 8.5px; }
  .category-card:last-child { grid-column: auto; max-width: none; }

  .provider-grid { grid-template-columns: 1fr; gap: 12px; }
  .provider-photo { height: 140px; }
  .provider-card h3 { font-size: 13px; }
  .provider-card p { font-size: 10px; min-height: auto; }

  .article-grid { grid-template-columns: 1fr; gap: 12px; }
  .article-card:last-child { grid-column: auto; max-width: none; }
  .article-image { height: 130px; }
  .article-card h3 { font-size: 12px; min-height: auto; }

  .journey-cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .portal-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Advertise Banner */
  .advertise-banner {
    padding: 16px;
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .banner-art { display: none; }
  .advertise-banner p { max-width: 100%; font-size: 11px; }
  .advertise-banner > button { width: 100%; text-align: center; padding: 10px; justify-content: center; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; padding: 14px 0; }
  .stat { border-right: none; border-bottom: 1px solid #cfe4e5; padding-bottom: 10px; }
  .stat:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
  html[dir="rtl"] .stat { border-left: none; }

  /* Dual CTA */
  .cta-section { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }

  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .copyright { flex-direction: column; gap: 8px; text-align: center; }

  /* Modals */
  .custom-modal-card { padding: 20px 16px; width: min(520px, calc(100vw - 20px)); max-height: 92vh; border-radius: 12px; }
  .profile-top-row { flex-direction: column; align-items: center; text-align: center; }
  .profile-details-grid { grid-template-columns: 1fr; }
  .profile-action-bar { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .package-selection-cards { grid-template-columns: 1fr; }
  .results-header-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* SMALL PHONES (480px and below) */
@media (max-width: 480px) {
  .container { width: calc(100% - 20px); }
  .topbar { gap: 6px; }
  .brand-copy strong { font-size: 12.5px; }
  .brand-copy small { display: none; }
  .signup-btn { font-size: 9px; padding: 0 7px; height: 30px; }
  .lang-btn { height: 30px; font-size: 9.5px; }

  h1 { font-size: 24px; }
  .hero-content { padding: 18px 0 24px; }
  .hero-content p { font-size: 11px; }

  .search-shell { padding: 6px 10px 12px; }
  .search-tab { padding: 9px 12px; font-size: 10px; }
  .real-select, .real-input { font-size: 15px; }
  .search-button { min-height: 46px; font-size: 13px; }

  .card-grid.five { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .category-image { height: 82px; }
  .category-card h3 { font-size: 10px; }
  .category-card p { font-size: 7.5px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
}

/* EXTRA SMALL PHONES (360px and below) */
@media (max-width: 360px) {
  .brand-copy strong { font-size: 11.5px; }
  .brand-mark { width: 24px; height: 24px; font-size: 14px; }
  .signup-btn { font-size: 8.5px; padding: 0 6px; }
  .card-grid.five { grid-template-columns: 1fr; }
  .category-image { height: 110px; }
  .category-card h3 { font-size: 11px; }
  .category-card p { font-size: 8.5px; }
}
