/*
 * Inner pages in the Home B design language: white rounded cards on #F7F9FD, pill buttons with the
 * blue / green / orange gradients, Cairo headings and numbers, IBM Plex Sans Arabic body text.
 * Logical properties throughout so Arabic (RTL) and English (LTR) both lay out correctly.
 */
:root {
  --hb-blue: #1A56E8; --hb-blue-dark: #1236C7; --hb-blue-soft: #EAF3FF;
  --hb-green: #0B9440; --hb-green-dark: #067A33; --hb-green-soft: #EAF7EF;
  --hb-orange: #F5A623; --hb-ink: #2D3A55; --hb-muted: #5A6683; --hb-line: #E9EEF8;
  --hb-bg: #F7F9FD; --hb-field: #F0F4FB; --hb-red: #D93025;
  --hb-shadow: 0 14px 36px rgba(31, 60, 120, .10); --hb-shadow-lg: 0 20px 50px rgba(31, 60, 120, .14);
}
body.hb-inner-page { background: var(--hb-bg); }
.hb-inner { color: var(--hb-ink); font-family: 'IBM Plex Sans Arabic', 'Cairo', system-ui, sans-serif; line-height: 1.7; padding: 28px 0 80px; }
.hb-inner *, .hb-inner *::before, .hb-inner *::after { box-sizing: border-box; }
.hb-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hb-inner h2, .hb-inner h3, .hb-inner h4, .hb-num { font-family: 'Cairo', sans-serif; }
.hb-inner h2 { font-size: 30px; font-weight: 800; line-height: 1.3; margin: 0 0 16px; }
.hb-inner h3 { font-size: 21px; font-weight: 800; line-height: 1.4; margin: 0 0 10px; }
.hb-inner p { margin: 0 0 12px; }
.hb-inner a { color: var(--hb-blue); text-decoration: none; }
.hb-inner a:hover { color: var(--hb-blue-dark); }
.hb-inner img { max-width: 100%; height: auto; }
.hb-inner :focus-visible { outline: 3px solid #28C7F7; outline-offset: 2px; }

/* layout helpers */
.hb-stack { display: flex; flex-direction: column; gap: 24px; }
.hb-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 280px)), 1fr)); }
.hb-split { display: grid; gap: 28px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .hb-split { grid-template-columns: 1fr; } }
.hb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hb-between { justify-content: space-between; }
.hb-muted { color: var(--hb-muted); }
.hb-small { font-size: 14px; }
.hb-mt { margin-top: 28px; }

/* cards */
.hb-card { background: #fff; border-radius: 28px; box-shadow: var(--hb-shadow); padding: 28px; }
.hb-card-lg { border-radius: 32px; box-shadow: var(--hb-shadow-lg); padding: 36px; }
@media (max-width: 575.98px) { .hb-card, .hb-card-lg { padding: 22px; border-radius: 24px; } }
a.hb-card { display: flex; flex-direction: column; gap: 10px; color: var(--hb-ink); transition: transform .18s ease, box-shadow .18s ease; }
a.hb-card:hover { transform: translateY(-4px); box-shadow: var(--hb-shadow-lg); color: var(--hb-ink); }
.hb-card-media { margin: -28px -28px 18px; aspect-ratio: 16 / 9; background: linear-gradient(225deg, #1236C7, #1D86F5); background-size: cover; background-position: center; border-radius: 28px 28px 0 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 40px; overflow: hidden; }
.hb-card-media img { width: 100%; height: 100%; object-fit: cover; }
.hb-icon-ring { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%; border: 5px solid #28C7F7; border-inline-end-color: #E6F4FF; display: inline-flex; align-items: center; justify-content: center; color: var(--hb-blue); font-size: 22px; background: #fff; }
.hb-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--hb-blue-soft); color: var(--hb-blue); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 5px 14px; }
.hb-badge-green { background: var(--hb-green-soft); color: var(--hb-green-dark); }
.hb-badge-orange { background: #FFF3DE; color: #B35F00; }
.hb-badge-red { background: #FDECEA; color: var(--hb-red); }

/* buttons */
.hb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 26px; font: 700 15px/1.3 'Cairo', sans-serif; cursor: pointer; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; background: linear-gradient(225deg, var(--hb-blue-dark), var(--hb-blue)); color: #fff !important; box-shadow: 0 10px 20px rgba(26, 86, 232, .3); }
.hb-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.hb-btn-orange { background: var(--hb-orange); color: #2B1A00 !important; box-shadow: 0 10px 20px rgba(240, 138, 0, .3); }
.hb-btn-green { background: linear-gradient(225deg, var(--hb-green-dark), #18B455); box-shadow: 0 10px 20px rgba(11, 148, 64, .3); }
.hb-btn-ghost { background: var(--hb-blue-soft); color: var(--hb-blue) !important; box-shadow: none; }
.hb-btn-sm { padding: 8px 18px; font-size: 13px; }
.hb-btn-lg { padding: 16px 36px; font-size: 17px; }

/* chips / filter pills */
.hb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-chip { display: inline-block; border-radius: 999px; padding: 7px 16px; font-size: 14px; background: #fff; color: var(--hb-ink); box-shadow: 0 4px 12px rgba(31, 60, 120, .08); }
.hb-chip[aria-current="page"], .hb-chip.is-active { background: linear-gradient(225deg, var(--hb-blue-dark), var(--hb-blue)); color: #fff; font-weight: 700; }

/* rich text from the admin editor */
.hb-prose { font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.hb-prose h2 { font-size: 26px; margin: 28px 0 12px; } .hb-prose h3 { font-size: 21px; margin: 22px 0 10px; }
.hb-prose ul, .hb-prose ol { padding-inline-start: 24px; margin: 0 0 14px; }
.hb-prose li { margin-bottom: 6px; }
.hb-prose blockquote { margin: 18px 0; padding: 14px 20px; border-inline-start: 5px solid #28C7F7; background: #F4F8FF; border-radius: 0 18px 18px 0; }
.hb-prose img { border-radius: 20px; margin: 10px 0; }
.hb-prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; display: block; overflow-x: auto; }
.hb-prose th, .hb-prose td { border: 1px solid var(--hb-line); padding: 10px 12px; text-align: start; }
.hb-prose th { background: #F4F8FF; }
.hb-prose a { text-decoration: underline; text-underline-offset: 3px; }
.hb-prose hr { border: 0; border-top: 1px solid var(--hb-line); margin: 24px 0; }

/* forms */
.hb-form { display: grid; gap: 18px; }
.hb-form-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.hb-field { display: flex; flex-direction: column; gap: 6px; }
.hb-field label, .hb-label { font-weight: 700; font-size: 14px; }
.hb-field .hb-req { color: var(--hb-red); }
.hb-input, .hb-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .hb-field select, .hb-field textarea {
  width: 100%; border: 1px solid transparent; background: var(--hb-field); border-radius: 18px; padding: 13px 18px; font: inherit; font-size: 15px; color: var(--hb-ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.hb-field textarea { min-height: 140px; resize: vertical; }
.hb-field input:focus, .hb-field select:focus, .hb-field textarea:focus, .hb-input:focus { outline: 0; background: #fff; border-color: #28C7F7; box-shadow: 0 0 0 4px rgba(40, 199, 247, .22); }
.hb-field [aria-invalid="true"] { border-color: var(--hb-red); background: #FFF6F5; }
.hb-field input[type="file"] { background: var(--hb-field); border-radius: 18px; padding: 12px; font: inherit; }
.hb-error { color: var(--hb-red); font-size: 13px; font-weight: 700; }
.hb-hint { color: var(--hb-muted); font-size: 13px; }
.hb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.hb-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--hb-blue); flex: 0 0 auto; }
.hb-search { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-search input { flex: 1 1 220px; min-width: 0; border: 0; background: #fff; box-shadow: var(--hb-shadow); border-radius: 999px; padding: 14px 22px; font: inherit; color: var(--hb-ink); }

/* alerts */
.hb-alert { display: flex; gap: 12px; align-items: flex-start; border-radius: 22px; padding: 16px 20px; margin-bottom: 22px; font-weight: 600; }
.hb-alert-success { background: var(--hb-green-soft); color: var(--hb-green-dark); }
.hb-alert-error { background: #FDECEA; color: #A52714; }
.hb-alert-info { background: var(--hb-blue-soft); color: var(--hb-blue-dark); }

/* tables */
.hb-table-wrap { overflow-x: auto; border-radius: 22px; background: #fff; box-shadow: var(--hb-shadow); }
.hb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hb-table th { background: #F4F8FF; color: var(--hb-muted); font-size: 13px; font-weight: 700; text-align: start; padding: 14px 16px; white-space: nowrap; font-family: 'Cairo', sans-serif; }
.hb-table td { padding: 13px 16px; border-top: 1px solid var(--hb-line); vertical-align: middle; }
.hb-table tbody tr:hover td { background: #FAFCFF; }
.hb-up { color: #0B8A3E; font-weight: 800; } .hb-down { color: var(--hb-red); font-weight: 800; }

/* pagination (Laravel's simple view, restyled) */
.hb-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.hb-pagination a, .hb-pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 14px; background: var(--hb-blue-soft); color: var(--hb-blue); font-weight: 700; font-family: 'Cairo', sans-serif; }
.hb-pagination .is-current { background: linear-gradient(225deg, var(--hb-blue-dark), var(--hb-blue)); color: #fff; }
.hb-pagination .is-disabled { opacity: .45; }

/* empty state */
.hb-empty { text-align: center; padding: 56px 24px; color: var(--hb-muted); }
.hb-empty i { font-size: 46px; color: #C6D6F5; display: block; margin-bottom: 10px; }

/* FAQ accordion */
.hb-faq { display: flex; flex-direction: column; gap: 12px; }
.hb-faq details { background: #fff; border-radius: 22px; box-shadow: 0 10px 28px rgba(31, 60, 120, .08); overflow: hidden; }
.hb-faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after { content: '+'; font-size: 22px; color: var(--hb-blue); flex: 0 0 auto; }
.hb-faq details[open] summary { background: var(--hb-blue-soft); color: var(--hb-blue); }
.hb-faq details[open] summary::after { content: '−'; }
.hb-faq .hb-prose { padding: 16px 22px 20px; font-size: 16px; }

/* timeline-ish steps */
.hb-steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.hb-step { position: relative; background: #fff; border-radius: 26px; box-shadow: var(--hb-shadow); padding: 26px 22px 22px; }
.hb-step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; inset-inline-start: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--hb-orange); color: #2B1A00; font: 800 16px/36px 'Cairo', sans-serif; text-align: center; box-shadow: 0 8px 16px rgba(240, 138, 0, .3); }

/* org chart (structure page) */
.hb-org, .hb-org ul { list-style: none; margin: 0; padding: 0; }
.hb-org ul { padding-inline-start: 34px; border-inline-start: 2px dashed #C6D6F5; margin-inline-start: 26px; }
.hb-org li { position: relative; padding: 10px 0; }
.hb-org ul > li::before { content: ''; position: absolute; top: 44px; inset-inline-start: -34px; width: 30px; border-top: 2px dashed #C6D6F5; }
.hb-org-node { display: inline-flex; align-items: center; gap: 14px; background: #fff; border-radius: 999px; box-shadow: var(--hb-shadow); padding: 10px 22px 10px 10px; }
[dir="rtl"] .hb-org-node { padding: 10px 10px 10px 22px; }
.hb-org-node img, .hb-org-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--hb-blue-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--hb-blue); font: 800 20px 'Cairo', sans-serif; flex: 0 0 auto; }

/* market quote tiles */
.hb-quote { display: flex; flex-direction: column; gap: 2px; }
.hb-quote b { font-size: 14px; }
.hb-quote .hb-num { font-size: 24px; font-weight: 800; }
.hb-stale { opacity: .65; }

/* video embed */
.hb-video { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #0E1B3D; box-shadow: var(--hb-shadow-lg); }
.hb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* map embed */
.hb-map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 22px; }

/* misc */
.hb-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--hb-muted); font-size: 14px; }
.hb-meta i { color: var(--hb-blue); }
.hb-hero-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 28px; box-shadow: var(--hb-shadow-lg); margin-bottom: 26px; }
.hb-gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.hb-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.hb-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.hb-kv dt { color: var(--hb-muted); } .hb-kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
