/*
Theme Name: Bahaa Athath Basic Theme
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: ثيم ووردبريس أساسي مبني من تصميم نشتري اثاث.كوم مع هيدر وفوتر وصفحة رئيسية متكاملة.
Version: 1.0.36
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: bahaa-athath
*/

:root {
  --primary: #1a405b;
  --primary-dark: #123046;
  --accent: #2c6a95;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #f0f3f6;
  --text: #17212b;
  --muted: #617080;
  --border: rgba(26, 64, 91, 0.1);
  --shadow: 0 18px 40px rgba(26, 64, 91, 0.08);
  --shadow-soft: 0 10px 25px rgba(26, 64, 91, 0.06);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans Arabic", sans-serif;
  line-height: 1.7;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-wrap {
  min-height: 100vh;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

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

.section-head.section-head-center {
  display: block;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-head__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.root-section-all-link {
  white-space: nowrap;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(26, 64, 91, 0.08);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-title,
.entry-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  color: var(--primary);
  font-weight: 900;
}

.section-subtitle,
.entry-summary {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.muted-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.na-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.na-icon--svg svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
  fill: currentColor;
}

.screen-reader-text {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-branding__content {
  display: flex;
  flex-direction: column;
}

.site-branding__eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.root-header-logo img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 16px 30px rgba(26, 64, 91, 0.18);
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(26, 64, 91, 0.25);
}

.brand-mark .material-symbols-outlined {
  font-size: 31px;
}

.site-title {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.site-title .site-title__muted {
  color: rgba(26, 64, 91, 0.55);
}

.site-description {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 10px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: var(--muted);
  font-weight: 700;
  transition: 0.2s ease;
}

.main-navigation .current-menu-item > a,
.main-navigation a:hover {
  color: var(--primary);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn,
button,
input[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.25s ease;
}

.btn-primary,
input[type="submit"] {
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(26, 64, 91, 0.18);
}

.btn-primary:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(26, 64, 91, 0.08);
  color: var(--primary);
  padding: 14px 22px;
  font-weight: 800;
}

.mobile-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(26, 64, 91, 0.08);
  color: var(--primary);
  border-radius: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.14), transparent 24%),
    radial-gradient(circle at 80% 25%, rgba(255,255,255,0.10), transparent 20%),
    linear-gradient(135deg, rgba(26,64,91,0.96), rgba(26,64,91,0.78));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  filter: blur(0px);
  z-index: -1;
}

.hero::before {
  width: 620px;
  height: 620px;
  left: -180px;
  bottom: -220px;
  background: rgba(255,255,255,0.06);
}

.hero::after {
  width: 420px;
  height: 420px;
  right: -70px;
  top: -90px;
  background: rgba(255,255,255,0.08);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 500px);
  align-items: center;
  gap: 48px;
  padding: 70px 0 82px;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 700;
}

.hero__title {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero__text {
  max-width: 760px;
  margin: 0 0 32px;
  color: rgba(255,255,255,0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
}
footer .site-title {
  color: #fff;
}
.hero__actions .btn-secondary {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.hero__panel {
  position: relative;
  z-index: 2;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 26px 60px rgba(0,0,0,0.16);
}

.hero-card::before {
  content: "";
  position: absolute;
  left: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(26,64,91,0.07);
}

.hero-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 16px;
  border-radius: var(--radius-full);
  background: rgba(26,64,91,0.08);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.hero-card__title {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
}

.hero-card__text {
  margin: 0 0 24px;
  color: var(--muted);
}

.hero-search {
  display: grid;
  gap: 14px;
}

.hero-search__row {
  display: grid;
  gap: 12px;
}

.hero-search__field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  background: var(--surface-2);
  border: 1px solid rgba(26,64,91,0.05);
  border-radius: 16px;
}

.hero-search__field .material-symbols-outlined {
  color: #8293a4;
  font-size: 24px;
}

.hero-search__field input,
.hero-search__field select {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--text);
}

.hero-search__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.stat-box {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(26,64,91,0.08);
  text-align: center;
}

.stat-box strong {
  display: block;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.1;
}

.stat-box span {
  color: var(--muted);
  font-size: 13px;
}

.cities-grid,
.features-grid,
.companies-grid,
.posts-grid {
  display: grid;
  gap: 24px;
}

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

.city-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: 28px;
  padding: 28px;
  display: flex;
  align-items: end;
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.city-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(17,24,39,0.18));
}

.city-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 24%, rgba(17,24,39,0.78) 100%);
}

.city-card--style-1,
.city-card--kuwait,
.root-card--1 {
  background: linear-gradient(135deg, #244e70, #59a9be);
}

.city-card--style-2,
.city-card--riyadh,
.root-card--2 {
  background: linear-gradient(135deg, #28416d, #976f4e);
}

.city-card--style-3,
.city-card--jeddah,
.root-card--3 {
  background: linear-gradient(135deg, #355c7d, #61b0a6);
}

.city-card--style-4,
.city-card--dammam,
.root-card--4 {
  background: linear-gradient(135deg, #23395b, #4f7cc0);
}

.city-card__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.35;
}

.city-card__icon {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.city-card__icon .material-symbols-outlined {
  font-size: 30px;
}

.city-card__content {
  position: relative;
}

.city-card__title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
}

.city-card__count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.18);
  font-size: 14px;
  font-weight: 700;
}

.city-card:hover {
  transform: translateY(-4px);
}

.features-section {
  background: linear-gradient(180deg, rgba(26,64,91,0.05), rgba(26,64,91,0.02));
}


.bahaa-section--bg-surface {
  background: var(--surface);
}

.bahaa-section--bg-gradient {
  background: linear-gradient(180deg, rgba(26,64,91,0.05), rgba(26,64,91,0.02));
}

.bahaa-section--bg-transparent {
  background: transparent;
}

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

.feature-card,
.company-card,
.post-card,
.content-card {
  background: var(--surface);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.bahaa-custom-section__content {
  background: var(--surface);
 border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
}

.bahaa-custom-section__content > *:first-child {
  margin-top: 0;
}

.bahaa-custom-section__content > *:last-child {
  margin-bottom: 0;
}

.bahaa-custom-section__content h1,
.bahaa-custom-section__content h2,
.bahaa-custom-section__content h3,
.bahaa-custom-section__content h4,
.bahaa-custom-section__content h5,
.bahaa-custom-section__content h6 {
  color: var(--primary);
}

.bahaa-custom-section__content p,
.bahaa-custom-section__content li {
  color: var(--text);
  line-height: 1.9;
}

.bahaa-custom-section__content ul,
.bahaa-custom-section__content ol {
  padding-inline-start: 22px;
}

.bahaa-custom-section__content a {
  color: var(--primary);
  font-weight: 700;
}


.feature-card {
  padding: 30px 26px;
  text-align: center;
}

.feature-card__icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(26,64,91,0.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.feature-card__icon .material-symbols-outlined {
  font-size: 34px;
}

.feature-card__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
}

.feature-card__text {
  margin: 0;
  color: var(--muted);
}

.companies-grid,
.posts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-card {
  padding: 24px;
}

.company-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.company-card__icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.company-card__icon .material-symbols-outlined {
  font-size: 32px;
}

.company-card__name {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 14px;
}

.rating-value {
  color: #8a97a5;
  font-weight: 700;
  margin-inline-start: 6px;
}

.company-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}

.company-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(26,64,91,0.08);
}

.link-detail {
  color: var(--primary);
  font-weight: 800;
}

.link-detail:hover {
  color: var(--primary-dark);
}

.site-main {
  padding-bottom: 0;
}

.page-header,
.entry-header {
  margin-bottom: 24px;
}

.page-content-wrap {
  padding: 60px 0 90px;
}

.content-card {
  padding: 34px;
}

.entry-content,
.page-content,
.archive-description {
  color: var(--text);
}

.entry-content p,
.page-content p {
  margin: 0 0 18px;
}

.entry-content ul,
.page-content ul,
.entry-content ol,
.page-content ol {
  padding-inline-start: 22px;
}

/* Keep images and editor media inside the article/card width on all screens. */
.content-card,
.entry-content,
.page-content,
.archive-description,
.root-manual-card__text,
.root-contact-form-card__content {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

.content-card img,
.entry-content img,
.page-content img,
.archive-description img,
.root-manual-card__text img,
.root-contact-form-card__content img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
}

.entry-content figure,
.page-content figure,
.archive-description figure,
.entry-content .wp-block-image,
.page-content .wp-block-image,
.archive-description .wp-block-image,
.root-manual-card__text figure,
.root-contact-form-card__content figure {
  max-width: 100% !important;
  box-sizing: border-box;
}

.entry-content .alignwide,
.entry-content .alignfull,
.page-content .alignwide,
.page-content .alignfull,
.archive-description .alignwide,
.archive-description .alignfull,
.root-manual-card__text .alignwide,
.root-manual-card__text .alignfull,
.root-contact-form-card__content .alignwide,
.root-contact-form-card__content .alignfull {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
}

.entry-content .alignwide img,
.entry-content .alignfull img,
.page-content .alignwide img,
.page-content .alignfull img,
.archive-description .alignwide img,
.archive-description .alignfull img,
.root-manual-card__text .alignwide img,
.root-manual-card__text .alignfull img,
.root-contact-form-card__content .alignwide img,
.root-contact-form-card__content .alignfull img {
  width: 100% !important;
  max-width: 100% !important;
}

.entry-content .aligncenter,
.page-content .aligncenter,
.archive-description .aligncenter,
.root-manual-card__text .aligncenter,
.root-contact-form-card__content .aligncenter {
  margin-left: auto !important;
  margin-right: auto !important;
}

.entry-content [style*="width"],
.page-content [style*="width"],
.archive-description [style*="width"],
.root-manual-card__text [style*="width"],
.root-contact-form-card__content [style*="width"] {
  max-width: 100% !important;
}

.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object,
.page-content iframe,
.page-content video,
.page-content embed,
.page-content object,
.archive-description iframe,
.archive-description video,
.archive-description embed,
.archive-description object,
.root-manual-card__text iframe,
.root-manual-card__text video,
.root-manual-card__text embed,
.root-manual-card__text object,
.root-contact-form-card__content iframe,
.root-contact-form-card__content video,
.root-contact-form-card__content embed,
.root-contact-form-card__content object {
  max-width: 100% !important;
}

.entry-content table,
.page-content table,
.archive-description table,
.root-manual-card__text table,
.root-contact-form-card__content table {
  max-width: 100%;
}

.entry-content pre,
.page-content pre,
.archive-description pre,
.root-manual-card__text pre,
.root-contact-form-card__content pre,
.entry-content table,
.page-content table,
.archive-description table,
.root-manual-card__text table,
.root-contact-form-card__content table {
  overflow-x: auto;
}

.post-card {
  overflow: hidden;
}

.post-card__thumb {
  aspect-ratio: 16 / 10;
  display: block;
  background: linear-gradient(135deg, rgba(26,64,91,0.9), rgba(44,106,149,0.5));
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card__body {
  padding: 24px;
}

.post-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.post-card__title {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 24px;
  line-height: 1.25;
}

.post-card__excerpt {
  margin: 0 0 18px;
  color: var(--muted);
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.pagination .page-numbers,
.nav-links .page-numbers {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.pagination .current,
.nav-links .current {
  background: var(--primary);
  color: #fff;
}

.archive-hero,
.page-hero {
  padding: 22px 0 30px;
}
.root-hero {
  padding: 22px 0 30px;
}
.search-form {
  display: flex;
  gap: 10px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-top: 88px;
  color: #fff;
  background: linear-gradient(180deg, var(--primary), #10283a);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -140px;
  top: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 48px;
}

.footer-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
}

.footer-text,
.footer-links a,
.footer-contact li,
.footer-copy,
.footer-bottom a {
  color: rgba(255,255,255,0.78);
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 12px;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-brand {
  max-width: 380px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
}

.footer-social-icon,
.footer-social-icon svg {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.footer-social-icon svg {
  fill: currentColor;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-bottom__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hidden-desktop {
  display: none;
}
.na-icon--whatsapp svg {
  width: 1.80em !important;
  height: 1.80em !important;
}
.home footer .brand-mark {
  background: #fff;
  color: var(--primary);
}
 
#root-pages .root-mini-card__icon {
  margin-bottom: 21px;
}
#root-pages .root-mini-card__top {
  margin-bottom: 10px;
}
.has-root-context .site-title {
  font-size: clamp(20px, 2.2vw, 34px);
}

.has-root-context .root-hero__title {
  
  font-size: clamp(33px, 4vw, 68px);
  line-height: 1.4;
  
}
.all-roots-shortcode {
 padding: 20px 0 88px 0 !important;
}
@media (max-width: 1199px) {
  .hero__grid,
  .site-footer__grid,
  .features-grid,
  .cities-grid,
  .companies-grid,
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid > :first-child {
    grid-column: span 2;
  }
}

@media (max-width: 991px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: absolute;
    top: calc(100% + 12px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
  }

  .menu-open .nav-wrap {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-navigation,
  .main-navigation ul,
  .site-actions {
    width: 100%;
  }

  .main-navigation ul,
  .site-actions {
    flex-direction: column;
    align-items: stretch;
  }
 .site-header .site-actions .btn {
    background: var(--primary);
  }
  .main-navigation a,
  .site-actions .btn {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(26,64,91,0.04);
  }

  .hero {
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    padding: 56px 0 70px;
  }

  .hero__content,
  .hero__panel {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero-search__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .admin-bar .site-header {
    top: 0;
  }

  .section,
  .site-footer {
    padding-top: 68px;
  }

  .section-head,
  .footer-bottom,
  .search-form {
    display: block;
  }

  .section-head > * + *,
  .footer-bottom > * + *,
  .search-form > * + * {
    margin-top: 14px;
  }

  .site-header__inner {
    min-height: 78px;
  }

  .site-description {
    display: none;
  }

  .hero__title {
    font-size: 40px;
  }

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

  .hero-search__stats,
  .features-grid,
  .cities-grid,
  .companies-grid,
  .posts-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid > :first-child {
    grid-column: auto;
  }

  .city-card {
    min-height: 280px;
  }

  .content-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


.site-breadcrumbs {
  margin: 0 0 24px;
}

.site-breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
}

.page-hero .site-breadcrumbs__list,
.archive-hero .site-breadcrumbs__list {
  color: var(--muted);
}

.site-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-breadcrumbs__item:not(:last-child)::after {
  content: '/';
  color: currentColor;
  opacity: 0.55;
}

.site-breadcrumbs__item a {
  color: inherit;
}

.root-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.root-hero::before,
.root-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  filter: blur(0.5px);
}

.root-hero::before {
  width: 360px;
  height: 360px;
  right: -110px;
  top: -70px;
}

.root-hero::after {
  width: 300px;
  height: 300px;
  left: -80px;
  bottom: -120px;
}

.root-hero .container {
  position: relative;
  z-index: 2;
}

.root-hero__content {
  max-width: 860px;
  padding: 72px 0 88px;
}

.root-hero__title {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  color: #fff;
}

.root-hero__text {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: clamp(17px, 1.8vw, 21px);
}

.root-hero .hero__badge {
  margin-bottom: 22px;
}

.root-manual-section {
  padding: 44px 0 0;
}

.root-manual-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 34px;
}

.root-manual-card__text {
  color: var(--text);
}

.root-manual-card__actions {
  margin-top: 24px;
}

/*.root-auto-section {
  padding-top: 68px;
  padding-bottom: 10px;
}*/

.root-taxonomy-block + .root-taxonomy-block {
  margin-top: 46px;
}

.root-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.root-cards-grid--large {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.root-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.root-card:hover,
.root-mini-card:hover {
  transform: translateY(-4px);
}

.root-card::before,
.root-mini-card::before {
  content: '';
  position: absolute;
  inset: auto auto -42px -32px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}


.root-card__icon,
.root-mini-card__icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
}

.root-card__body,
.root-mini-card > * {
  position: relative;
  z-index: 1;
}

.root-card__title,
.root-mini-card__title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 900;
}

.root-card__meta,
.root-mini-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  font-weight: 700;
}

.root-mini-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow-soft);
  min-height: 220px;
}

.root-mini-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.root-mini-card__text {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.92);
}

.root-mini-card .link-detail {
  color: #fff;
  font-weight: 800;
}

.post-card__placeholder {
  display: block;
  width: 100%;
  min-height: 230px;
  background: linear-gradient(135deg, rgba(36,78,112,0.85), rgba(89,169,190,0.72));
}

.post-card__dot {
  margin: 0 4px;
}

@media (max-width: 1100px) {
  .root-cards-grid,
  .root-cards-grid--large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .root-hero {
    min-height: auto;
  }

  .root-hero__content {
    padding: 56px 0 64px;
  }

  .root-cards-grid,
  .root-cards-grid--large {
    grid-template-columns: 1fr;
  }

  .root-manual-card {
    padding: 24px;
  }
}

.root-card__text {
  margin: 0 0 14px;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  font-size: 15px;
}

.root-taxonomy-empty {
  padding: 26px;
}

.root-taxonomy-page__intro .root-manual-card {
  max-width: 100%;
}

/* Root taxonomy full tree section */
.root-taxonomy-block--tree {
  position: relative;
}

.root-taxonomy-tree {
  --root-taxonomy-tree-child-columns: 3;
  display: grid;
  gap: 30px;
}

.root-taxonomy-tree__level {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.root-taxonomy-tree__level--0 {
  gap: 28px;
}

.root-taxonomy-tree__item {
  position: relative;
  min-width: 0;
}

.root-taxonomy-tree__item--level-0 {
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(36, 78, 112, .10);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

.root-taxonomy-tree__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: auto;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(36, 78, 112, .11);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
  color: var(--text);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.root-taxonomy-tree__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
  border-color: rgba(36, 78, 112, .22);
}

.root-taxonomy-tree__card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: .86;
}

.root-taxonomy-tree__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 20px rgba(36, 78, 112, .16);
}

.root-taxonomy-tree__icon .material-symbols-outlined {
  font-size: 22px;
}

.root-taxonomy-tree__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.root-taxonomy-tree__title {
  display: block;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--heading);
}

.root-taxonomy-tree__text {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.root-taxonomy-tree__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.root-taxonomy-tree__badge,
.root-taxonomy-tree__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.root-taxonomy-tree__badge {
  color: #fff;
  background: var(--primary);
}

.root-taxonomy-tree__badge--grandparent {
  background: #8a5a00;
}

.root-taxonomy-tree__badge--parent {
  background: #244e70;
}

.root-taxonomy-tree__badge--child {
  background: #2563eb;
}

.root-taxonomy-tree__badge--grandchild {
  background: #475569;
}

.root-taxonomy-tree__count {
  color: var(--text);
  background: #eef2f7;
}

.root-taxonomy-tree__item > .root-taxonomy-tree__level {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(var(--root-taxonomy-tree-child-columns), minmax(0, 1fr));
  gap: 14px;
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card {
  align-items: center;
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 0;
  box-shadow: 0 16px 36px rgba(36, 78, 112, .20);
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card::before {
  display: none;
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__title,
.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__text {
  color: #fff;
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__text {
  color: rgba(255, 255, 255, .88);
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__icon {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-radius: 18px;
  color: var(--primary);
  background: rgba(255, 255, 255, .94);
  box-shadow: none;
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__icon .material-symbols-outlined {
  font-size: 28px;
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__title {
  font-size: 24px;
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__count {
  color: #fff;
  background: rgba(255, 255, 255, .18);
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__badge {
  color: var(--primary);
  background: #fff;
}

.root-taxonomy-tree__item--level-1 > .root-taxonomy-tree__card {
  min-height: 92px;
}

.root-taxonomy-tree__item--level-1 > .root-taxonomy-tree__level {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px dashed rgba(36, 78, 112, .14);
}

.root-taxonomy-tree__item--level-2 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-3 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-4 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-5 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-6 > .root-taxonomy-tree__card {
  padding: 12px 13px;
  border-radius: 15px;
  box-shadow: none;
  background: #fff;
}

.root-taxonomy-tree__item--level-2 .root-taxonomy-tree__title,
.root-taxonomy-tree__item--level-3 .root-taxonomy-tree__title,
.root-taxonomy-tree__item--level-4 .root-taxonomy-tree__title,
.root-taxonomy-tree__item--level-5 .root-taxonomy-tree__title,
.root-taxonomy-tree__item--level-6 .root-taxonomy-tree__title {
  font-size: 15px;
}

.root-taxonomy-tree__item--level-2 .root-taxonomy-tree__icon,
.root-taxonomy-tree__item--level-3 .root-taxonomy-tree__icon,
.root-taxonomy-tree__item--level-4 .root-taxonomy-tree__icon,
.root-taxonomy-tree__item--level-5 .root-taxonomy-tree__icon,
.root-taxonomy-tree__item--level-6 .root-taxonomy-tree__icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 12px;
}

.root-taxonomy-tree__item--level-2 .root-taxonomy-tree__icon .material-symbols-outlined,
.root-taxonomy-tree__item--level-3 .root-taxonomy-tree__icon .material-symbols-outlined,
.root-taxonomy-tree__item--level-4 .root-taxonomy-tree__icon .material-symbols-outlined,
.root-taxonomy-tree__item--level-5 .root-taxonomy-tree__icon .material-symbols-outlined,
.root-taxonomy-tree__item--level-6 .root-taxonomy-tree__icon .material-symbols-outlined {
  font-size: 19px;
}

.root-taxonomy-tree__item.is-parent-highlighted > .root-taxonomy-tree__card {
  border-color: rgba(37, 99, 235, .22);
}

.root-taxonomy-tree__item.is-grandparent-highlighted > .root-taxonomy-tree__card {
  border-color: rgba(138, 90, 0, .28);
}

.root-taxonomy-tree--layout-compact > .root-taxonomy-tree__level--0 {
  grid-template-columns: repeat(var(--root-taxonomy-tree-child-columns), minmax(0, 1fr));
}

.root-taxonomy-tree--layout-compact .root-taxonomy-tree__item--level-0 {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.root-taxonomy-tree--layout-compact .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card {
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(36, 78, 112, .11);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
}

.root-taxonomy-tree--layout-compact .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card::before {
  display: block;
}

.root-taxonomy-tree--layout-compact .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__title {
  color: var(--heading);
  font-size: 18px;
}

.root-taxonomy-tree--layout-compact .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__text {
  color: var(--muted);
}

.root-taxonomy-tree--layout-compact .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.root-taxonomy-tree--layout-compact .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__count {
  color: var(--text);
  background: #eef2f7;
}

.root-taxonomy-tree--layout-compact .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__badge {
  color: #fff;
  background: var(--primary);
}

.root-taxonomy-tree--layout-classic .root-taxonomy-tree__item--level-0 {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.root-taxonomy-tree--layout-classic .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.root-taxonomy-tree--layout-classic .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card::before {
  display: block;
}

.root-taxonomy-tree--layout-classic .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__title {
  color: var(--heading);
  font-size: 24px;
}

.root-taxonomy-tree--layout-classic .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__text {
  color: var(--muted);
}

.root-taxonomy-tree--layout-classic .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.root-taxonomy-tree--layout-classic .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__count {
  color: var(--text);
  background: #eef2f7;
}

.root-taxonomy-tree--layout-classic .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__badge {
  color: #fff;
  background: var(--primary);
}

.root-taxonomy-tree--layout-classic .root-taxonomy-tree__item > .root-taxonomy-tree__level {
  margin: 16px 32px 0 0;
  padding-right: 20px;
  border-right: 2px dashed rgba(36, 78, 112, .18);
  grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
  .root-taxonomy-tree__item > .root-taxonomy-tree__level,
  .root-taxonomy-tree--layout-compact > .root-taxonomy-tree__level--0 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .root-taxonomy-tree {
    gap: 20px;
  }

  .root-taxonomy-tree__item--level-0 {
    padding: 10px;
    border-radius: 22px;
  }

  .root-taxonomy-tree__item > .root-taxonomy-tree__level,
  .root-taxonomy-tree__item--level-1 > .root-taxonomy-tree__level,
  .root-taxonomy-tree--layout-compact > .root-taxonomy-tree__level--0 {
    grid-template-columns: 1fr;
  }

  .root-taxonomy-tree--layout-classic .root-taxonomy-tree__item > .root-taxonomy-tree__level {
    margin-right: 12px;
    padding-right: 12px;
  }

  .root-taxonomy-tree__card,
  .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card {
    padding: 14px;
    border-radius: 18px;
  }

  .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__title,
  .root-taxonomy-tree--layout-classic .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__title {
    font-size: 20px;
  }

  .root-taxonomy-tree__title {
    font-size: 17px;
  }

  .root-taxonomy-tree__icon,
  .root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 14px;
  }
}


.page-template-clean {
    min-height: 1px;
}

.page-template-clean > *:first-child {
    margin-top: 0;
}

/* Root Contact Page */
.root-contact-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 22px 0 54px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.root-contact-hero::before,
.root-contact-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  pointer-events: none;
}

.root-contact-hero::before {
  width: 360px;
  height: 360px;
  inset-inline-end: -120px;
  top: -120px;
}

.root-contact-hero::after {
  width: 260px;
  height: 260px;
  inset-inline-start: -80px;
  bottom: -90px;
}

.root-contact-hero .container {
  position: relative;
  z-index: 2;
}

.root-contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 34px;
  align-items: center;
  padding-top: 66px;
}

.root-contact-hero__content {
  max-width: 820px;
}

.root-contact-hero__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
}

.root-contact-hero__text {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: clamp(17px, 1.8vw, 21px);
}

.root-contact-hero__actions {
  margin-top: 28px;
}

.root-contact-hero__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 30px;
  background: rgba(255,255,255,0.13);
  box-shadow: 0 24px 55px rgba(0,0,0,0.16);
  backdrop-filter: blur(12px);
}

.root-contact-hero__panel::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  inset-inline-end: -40px;
  top: -48px;
  background: rgba(255,255,255,0.1);
}

.root-contact-hero__panel-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.18);
  margin-bottom: 22px;
}

.root-contact-hero__panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.root-contact-hero__panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255,255,255,0.86);
}

.root-contact-hero__chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-weight: 800;
}

.root-contact-section {
  padding-top: 72px;
}

.root-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 28px;
  align-items: start;
}

.root-contact-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.root-contact-layout--single .root-contact-info {
  max-width: 980px;
  margin-inline: auto;
  width: 100%;
}

.root-contact-info,
.root-contact-form-card {
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow);
  padding: 32px;
}

.root-contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.root-contact-card {
  display: flex;
  gap: 16px;
  min-height: 170px;
  padding: 20px;
  border: 1px solid rgba(26, 64, 91, 0.09);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.root-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.root-contact-card__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(26, 64, 91, 0.08);
  color: var(--primary);
}

.root-contact-card__body {
  min-width: 0;
}

.root-contact-card__title {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}

.root-contact-card__text {
  margin: 0 0 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.root-contact-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 900;
}

.root-contact-form-card {
  position: sticky;
  top: 24px;
}

.root-contact-form-card__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.root-contact-form-card__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 30px rgba(26,64,91,0.18);
}

.root-contact-form-card__title {
  margin: 0;
  color: var(--primary);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.root-contact-form-card__form input[type="text"],
.root-contact-form-card__form input[type="email"],
.root-contact-form-card__form input[type="tel"],
.root-contact-form-card__form input[type="url"],
.root-contact-form-card__form select,
.root-contact-form-card__form textarea,
.root-contact-form-card__content input[type="text"],
.root-contact-form-card__content input[type="email"],
.root-contact-form-card__content input[type="tel"],
.root-contact-form-card__content input[type="url"],
.root-contact-form-card__content select,
.root-contact-form-card__content textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  color: var(--text);
}

.root-contact-form-card__form textarea,
.root-contact-form-card__content textarea {
  min-height: 130px;
  resize: vertical;
}

.root-contact-form-card__form input[type="submit"],
.root-contact-form-card__content input[type="submit"],
.root-contact-form-card__form button[type="submit"],
.root-contact-form-card__content button[type="submit"] {
  width: 100%;
  min-height: 54px;
}

.root-contact-form-card__empty {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  background: rgba(26, 64, 91, 0.06);
  color: var(--primary);
  font-weight: 800;
}

.root-contact-form-card__empty p {
  margin: 0;
}

@media (max-width: 1100px) {
  .root-contact-hero__grid,
  .root-contact-layout {
    grid-template-columns: 1fr;
  }

  .root-contact-form-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 767px) {
  .root-contact-hero {
    min-height: auto;
    padding-bottom: 42px;
  }

  .root-contact-hero__grid {
    padding-top: 44px;
  }

  .root-contact-hero__panel,
  .root-contact-info,
  .root-contact-form-card {
    border-radius: 24px;
    padding: 24px;
  }

  .root-contact-cards {
    grid-template-columns: 1fr;
  }

  .root-contact-card {
    min-height: auto;
  }
}


/* Root inner pages header description and unified contact */
.root-page-header-extras {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.root-page-header-description {
  max-width: 820px;
  line-height: 1.9;
}

.root-page-header-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.root-page-header-contact__label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(26,64,91,0.08);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.root-page-header-contact__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(26,64,91,0.16);
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.root-page-header-contact__button:hover {
  color: #fff;
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(26,64,91,0.22);
}

.root-page-header-contact__button .material-symbols-outlined,
.root-page-header-contact__button .na-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.root-page-header-contact__button--whatsapp {
  background: #128c7e;
}

.root-page-header-contact__button--whatsapp:hover {
  background: #0f766e;
}

.root-page-header-contact__button--phone {
  background: var(--accent);
}

.root-page-header-contact__button--phone:hover {
  background: var(--primary);
}

.root-page-header-contact__button--email {
  background: #1f3f5f;
}

.root-page-header-contact__button--email:hover {
  background: var(--primary-dark);
}

@media (max-width: 640px) {
  .root-page-header-contact {
    align-items: stretch;
  }

  .root-page-header-contact__label,
  .root-page-header-contact__button {
    width: 100%;
  }
}



/* Root single post header meta */
.root-single-header-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  direction: rtl;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 0 auto;
  padding: 8px;
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,0.58);
  box-shadow: 0 12px 28px rgba(26,64,91,0.06);
  box-sizing: border-box;
}

.root-single-header-line > .entry-summary {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(26,64,91,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 6px 15px rgba(26,64,91,0.045);
  box-sizing: border-box;
}

.root-single-header-line > .entry-summary::before {
  content: "calendar_month";
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  margin-inline-end: 7px;
  color: var(--primary);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.root-single-header-meta {
  display: contents;
}

.root-single-header-meta__item {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  min-height: 36px;
  min-width: 0;
  padding: 7px 12px;
  border: 1px solid rgba(26,64,91,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.3;
  box-shadow: 0 6px 15px rgba(26,64,91,0.045);
  box-sizing: border-box;
}

.root-single-header-meta__author {
  flex: 0 0 auto;
  white-space: nowrap;
}

.root-single-header-meta__taxonomies {
  flex: 1 1 480px;
  min-width: min(100%, 420px);
  max-width: 100%;
  justify-content: flex-start;
  border-radius: 18px;
  padding: 7px 10px;
}

.root-single-header-line--taxonomy-block .root-single-header-meta__taxonomies {
  flex: 1 1 100%;
  width: 100%;
}

.root-single-header-meta__item .material-symbols-outlined {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  color: var(--primary);
}

.root-single-header-meta__item a {
  color: var(--primary);
  text-decoration: none;
}

.root-single-header-meta__item a:hover {
  color: var(--primary-dark);
}

.root-single-header-meta__terms {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.root-single-header-meta__term {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  max-width: 100%;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(26,64,91,0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.root-single-header-meta__term span {
  min-width: 0;
}

.root-single-header-meta__term-taxonomy {
  color: var(--root-single-term-taxonomy-color, var(--muted));
  font-size: var(--root-single-term-taxonomy-font-size, 11.5px);
  font-weight: var(--root-single-term-taxonomy-font-weight, 800);
}

@media (max-width: 900px) {
  .root-single-header-line {
    justify-content: flex-start;
  }

  .root-single-header-meta__taxonomies {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .root-single-header-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 8px;
    width: 100%;
    margin: 18px 0 0 auto;
    padding: 8px;
    border: 0;
    border-radius: 18px;
    background: rgba(255,255,255,0.48);
    box-shadow: 0 10px 24px rgba(26,64,91,0.055);
  }

  .root-single-header-line > .entry-summary {
    width: 100%;
    min-height: 36px;
    justify-content: flex-start;
    border-radius: 14px;
    font-size: 13px;
    text-align: right;
    box-sizing: border-box;
  }

  .root-single-header-line > .entry-summary::before {
    font-size: 17px;
  }

  .root-single-header-meta {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .root-single-header-meta__item {
    width: 100%;
    min-height: 36px;
    border-radius: 14px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .root-single-header-meta__item .material-symbols-outlined {
    width: 17px;
    height: 17px;
    font-size: 17px;
  }

  .root-single-header-meta__author {
    justify-content: flex-start;
    text-align: right;
  }

  .root-single-header-meta__taxonomies {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 9px;
    border-radius: 16px;
  }

  .root-single-header-meta__taxonomies > .material-symbols-outlined {
    margin-top: 4px;
  }

  .root-single-header-meta__terms {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .root-single-header-meta__term {
    width: 100%;
    min-height: 31px;
    justify-content: flex-start;
    padding: 6px 9px;
    border-radius: 11px;
    font-size: 12.8px;
    text-align: right;
    white-space: normal;
  }
}


.root-term-header-contact {
  margin-top: 16px;
}

.bahaa-page-header-description-field {
  min-height: 96px;
}

/* Base theme header controls */
.site-header--base {
  background: var(--base-header-bg, rgba(255, 255, 255, 0.9));
}
.site-header--base .site-title,
.site-header--base .site-title a {
  color: var(--base-header-title, var(--primary));
}
.site-header--base .site-description,
.site-header--base .main-navigation a {
  color: var(--base-header-text, var(--muted));
}
.site-header--base .site-branding__eyebrow,
.site-header--base .main-navigation .current-menu-item > a,
.site-header--base .main-navigation a:hover {
  color: var(--base-header-accent, var(--primary));
}
.site-header--base .brand-mark,
.site-header--base .site-actions .btn-primary,
.site-header--base .mobile-nav-toggle {
  background: var(--base-header-button-bg, var(--primary));
  color: var(--base-header-button-text, #fff);
}
.site-header--base .site-actions .btn-primary:hover {
  background: var(--base-header-button-bg, var(--primary-dark));
  color: var(--base-header-button-text, #fff);
}


.site-breadcrumbs--base-blog {
  margin-bottom: 22px;
}
.site-wrap .site-description {
  line-height: 1.3 !important;
  display: inherit !important;
  margin: 0px 0 0 !important;
}
/* Root taxonomy child terms section */
.root-taxonomy-children-section {
  padding: 0 0 90px;
}

.root-cards-grid--controlled {
  grid-template-columns: repeat(var(--root-term-child-columns, 4), minmax(0, 1fr));
}

.root-card--child-term .root-card__icon .material-symbols-outlined {
  font-size: 28px;
}

@media (max-width: 1100px) {
  .root-cards-grid--controlled {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .root-taxonomy-children-section {
    padding-bottom: 64px;
  }

  .root-cards-grid--controlled {
    grid-template-columns: 1fr;
  }
}


/* Root taxonomy tree: unified clean borders for child/grandchild cards */
.root-taxonomy-tree {
  --root-taxonomy-tree-group-border: #e6edf5;
  --root-taxonomy-tree-child-border: #d8e5ef;
  --root-taxonomy-tree-child-accent: var(--primary);
  --root-taxonomy-tree-grandchild-border: #e5e7eb;
  --root-taxonomy-tree-grandchild-accent: #94a3b8;
}

.root-taxonomy-tree__item.root-card--1,
.root-taxonomy-tree__item.root-card--2,
.root-taxonomy-tree__item.root-card--3,
.root-taxonomy-tree__item.root-card--4 {
  background: transparent !important;
}

.root-taxonomy-tree__item--level-0 {
  border-color: var(--root-taxonomy-tree-group-border);
}

.root-taxonomy-tree__item--level-1 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-2 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-3 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-4 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-5 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-6 > .root-taxonomy-tree__card {
  background: #fff;
  background-image: none;
  overflow: hidden;
}

.root-taxonomy-tree__item--level-1 > .root-taxonomy-tree__card::before,
.root-taxonomy-tree__item--level-2 > .root-taxonomy-tree__card::before,
.root-taxonomy-tree__item--level-3 > .root-taxonomy-tree__card::before,
.root-taxonomy-tree__item--level-4 > .root-taxonomy-tree__card::before,
.root-taxonomy-tree__item--level-5 > .root-taxonomy-tree__card::before,
.root-taxonomy-tree__item--level-6 > .root-taxonomy-tree__card::before {
  display: none;
}

.root-taxonomy-tree__item--level-1 > .root-taxonomy-tree__card {
  border: 1px solid var(--root-taxonomy-tree-child-border);
  border-inline-start: 4px solid var(--root-taxonomy-tree-child-accent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.root-taxonomy-tree__item--level-1 > .root-taxonomy-tree__card:hover {
  border-color: var(--root-taxonomy-tree-child-border);
  border-inline-start-color: var(--root-taxonomy-tree-child-accent);
}

.root-taxonomy-tree__item--level-2 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-3 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-4 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-5 > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-6 > .root-taxonomy-tree__card {
  border: 1px solid var(--root-taxonomy-tree-grandchild-border);
  border-inline-start: 3px solid var(--root-taxonomy-tree-grandchild-accent);
}

.root-taxonomy-tree__item--level-2 > .root-taxonomy-tree__card:hover,
.root-taxonomy-tree__item--level-3 > .root-taxonomy-tree__card:hover,
.root-taxonomy-tree__item--level-4 > .root-taxonomy-tree__card:hover,
.root-taxonomy-tree__item--level-5 > .root-taxonomy-tree__card:hover,
.root-taxonomy-tree__item--level-6 > .root-taxonomy-tree__card:hover {
  border-color: var(--root-taxonomy-tree-grandchild-border);
  border-inline-start-color: var(--root-taxonomy-tree-grandchild-accent);
}

.root-taxonomy-tree__item.is-parent-highlighted > .root-taxonomy-tree__card,
.root-taxonomy-tree__item.is-grandparent-highlighted > .root-taxonomy-tree__card {
  border-color: inherit;
}

.root-taxonomy-tree__item--level-1.is-parent-highlighted > .root-taxonomy-tree__card {
  border-color: var(--root-taxonomy-tree-child-border);
  border-inline-start-color: var(--root-taxonomy-tree-child-accent);
}

.root-taxonomy-tree__item--level-2.is-parent-highlighted > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-2.is-grandparent-highlighted > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-3.is-parent-highlighted > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-3.is-grandparent-highlighted > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-4.is-parent-highlighted > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-4.is-grandparent-highlighted > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-5.is-parent-highlighted > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-5.is-grandparent-highlighted > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-6.is-parent-highlighted > .root-taxonomy-tree__card,
.root-taxonomy-tree__item--level-6.is-grandparent-highlighted > .root-taxonomy-tree__card {
  border-color: var(--root-taxonomy-tree-grandchild-border);
  border-inline-start-color: var(--root-taxonomy-tree-grandchild-accent);
}


/* Base term bottom content section */
.bahaa-base-term-bottom-section {
  padding: 0 0 90px;
}

.bahaa-base-term-bottom-card .section-title {
  margin-top: 0;
  margin-bottom: 18px;
}

.bahaa-base-term-bottom-content > *:first-child {
  margin-top: 0;
}

.bahaa-base-term-bottom-content > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .bahaa-base-term-bottom-section {
    padding-bottom: 64px;
  }
}

/* =========================================================
   Service Directory Refresh 2026
   تصميم حصري خفيف لموقع خدمات: هيدر كبسولة، هيرو بحث، كروت أقسام منظمة، وفوتر عصري.
   يحافظ على نفس أسماء الكلاسات ومنطق الثيم/الرووت ولوحات التحكم الحالية.
   ========================================================= */
:root {
  --primary: #252C41;
  --primary-dark: #151B2C;
  --accent: #ffb434;
  --accent-soft: rgba(255, 180, 52, .14);
  --bg: #f7f9fd;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --text: #182033;
  --muted: #64748b;
  --border: rgba(15, 23, 42, .09);
  --shadow: 0 22px 60px rgba(15, 23, 42, .09);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, .065);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1180px;
}

body {
  background:
    radial-gradient(circle at 14% 0%, rgba(255,180,52,.10), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(37,44,65,.08), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans Arabic", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.container {
  width: min(100% - 28px, var(--container));
}

.section,
.page-content-wrap,
.root-contact-section {
  padding: clamp(42px, 6vw, 72px) 0;
}

.section-head {
  align-items: flex-start;
  margin-bottom: 26px;
}

.section-head.section-head-center {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-kicker,
.hero__badge,
.root-contact-hero__chip {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  border: 1px solid rgba(255, 180, 52, .24);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.section-title,
.entry-title {
  color: var(--primary);
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.22;
  letter-spacing: -.02em;
}

.section-subtitle,
.entry-summary,
.archive-description,
.root-hero__text,
.root-contact-hero__text {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.btn,
button,
input[type="submit"],
.wp-block-button__link {
  border-radius: 999px;
  min-height: 44px;
  font-weight: 900;
}

.btn-primary,
input[type="submit"] {
  background: var(--primary);
  color: #fff;
  padding: 12px 22px;
  box-shadow: 0 14px 28px rgba(37,44,65,.18);
}

.btn-primary:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 12px 20px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.muted-link,
.link-detail,
.root-section-all-link {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

/* Header */
.site-header {
  top: 10px;
  background: transparent !important;
  border-bottom: 0 !important;
  backdrop-filter: none;
  padding: 10px 0;
}

.admin-bar .site-header {
  top: 42px;
}

.site-header__inner {
  min-height: 68px;
  padding: 10px 14px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 45px rgba(15,23,42,.08);
  backdrop-filter: blur(18px);
}

.site-branding {
  gap: 11px;
  min-width: 0;
}

.brand-mark,
.root-header-logo img,
.custom-logo-link img,
.custom-logo-wrap img {
  width: 46px;
  height: 46px;
  border-radius: 17px;
}

.brand-mark {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 24px rgba(37,44,65,.18);
}

.root-header-logo img,
.custom-logo-link img,
.custom-logo-wrap img {
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(37,44,65,.14);
}

.site-branding__content {
  min-width: 0;
}

.site-branding__eyebrow {
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 11px;
  white-space: nowrap;
}

.site-title {
  font-size: clamp(19px, 1.7vw, 27px);
  color: var(--primary);
  letter-spacing: -.02em;
  white-space: nowrap;
}

.site-description {
  margin-top: 0;
  color: var(--muted);
  font-size: 12.5px;
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-wrap {
  gap: 12px;
}

.main-navigation ul {
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface-2);
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #455066;
  font-size: 13.5px;
  font-weight: 900;
}

.main-navigation .current-menu-item > a,
.main-navigation a:hover {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}

.site-actions .btn-primary {
  min-height: 44px;
  padding-inline: 17px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.mobile-nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--primary);
}

/* Home hero */
.hero {
  min-height: auto;
  padding: 26px 0 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,180,52,.22), transparent 20rem),
    radial-gradient(circle at 86% 0%, rgba(37,44,65,.11), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f6f8fd 100%) !important;
  color: var(--text);
}

.hero::before,
.hero::after {
  display: none;
}

.hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 430px);
  gap: 28px;
  padding: clamp(26px, 5vw, 64px) 0 clamp(28px, 5vw, 56px);
}

.hero__content {
  max-width: 760px;
}

.hero__badge {
  margin-bottom: 14px;
  background: #fff7e8;
  color: var(--primary);
}

.hero__title {
  color: var(--primary) !important;
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.12;
  letter-spacing: -.035em;
  max-width: 780px;
}

.hero__text {
  max-width: 700px;
  color: #536175 !important;
  font-size: clamp(16px, 1.7vw, 20px);
}

.hero__actions {
  gap: 10px;
  padding-top: 6px;
}

.hero__actions .btn-secondary {
  background: #fff;
  color: var(--primary);
}

.hero__panel {
  width: 100%;
}


/* Homepage hero panel controls */
.hero--no-panel .hero__grid {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  text-align: center;
}

.hero--no-panel .hero__content,
.hero--no-panel .hero__text {
  margin-inline: auto;
}

.hero--no-panel .hero__actions {
  justify-content: center;
}

.hero--panel-compact .hero__grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 420px);
}

.hero--panel-wide .hero__grid {
  grid-template-columns: minmax(0, .95fr) minmax(360px, 600px);
}

.hero--panel-full .hero__grid {
  grid-template-columns: minmax(0, .9fr) minmax(400px, 1fr);
}

.hero__panel--compact {
  max-width: 420px;
}

.hero__panel--wide {
  max-width: 600px;
}

.hero__panel--full {
  max-width: none;
}

.hero__panel--compact .hero-card {
  padding: 22px;
}

@media (max-width: 991px) {
  .hero--panel-compact .hero__grid,
  .hero--panel-wide .hero__grid,
  .hero--panel-full .hero__grid,
  .hero--no-panel .hero__grid {
    grid-template-columns: 1fr;
    text-align: initial;
  }

  .hero--no-panel .hero__actions {
    justify-content: flex-start;
  }

  .hero__panel--compact,
  .hero__panel--wide,
  .hero__panel--full {
    max-width: 720px;
  }
}


.hero-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 24px 65px rgba(15,23,42,.11);
}

.hero-card::before {
  left: auto;
  right: -66px;
  top: -72px;
  background: rgba(255,180,52,.14);
}

.hero-card__eyebrow {
  margin-bottom: 12px;
  background: var(--surface-2);
  color: var(--primary);
}

.hero-card__title {
  color: var(--primary);
  font-size: 25px;
  line-height: 1.28;
}

.hero-card__text {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.hero-search__field {
  min-height: 50px;
  background: var(--surface-2);
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 999px;
}

.hero-search__field input {
  font-size: 14px;
}

.hero-search .btn-primary {
  min-width: 95px;
  padding-inline: 17px;
}

.hero-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 900;
  box-shadow: 0 7px 16px rgba(15,23,42,.04);
}

.hero-service-chip .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent);
}

/* Sections and cards */
.features-section,
.bahaa-section--bg-gradient {
  background:
    radial-gradient(circle at 90% 0%, rgba(255,180,52,.12), transparent 22rem),
    linear-gradient(180deg, rgba(255,255,255,.64), rgba(243,246,251,.92));
}

.bahaa-section--bg-surface {
  background: transparent;
}

.cities-grid,
.features-grid,
.companies-grid,
.posts-grid,
.root-cards-grid,
.root-cards-grid--large,
.root-contact-cards {
  gap: 16px;
}

.cities-grid {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
}

.city-card {
  min-height: 132px;
  padding: 18px;
  align-items: flex-start;
  color: var(--text);
  background: #fff !important;
  border: 1px solid var(--border);
  border-radius: 23px;
  box-shadow: var(--shadow-soft);
}

.city-card::before,
.city-card::after,
.city-card__pattern {
  display: none;
}

.city-card__icon {
  position: static;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 18px;
  margin-bottom: 18px;
  color: var(--primary);
  background: var(--accent-soft);
  backdrop-filter: none;
}

.city-card__icon .material-symbols-outlined {
  font-size: 27px;
}

.city-card__title {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.25;
}

.city-card__count {
  padding: 6px 10px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
}

.city-card:hover,
.feature-card:hover,
.company-card:hover,
.post-card:hover,
.root-card:hover,
.root-mini-card:hover,
.root-taxonomy-tree__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15,23,42,.09);
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
}

.feature-card,
.company-card,
.post-card,
.content-card,
.bahaa-custom-section__content,
.root-manual-card,
.root-contact-info,
.root-contact-form-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  text-align: start;
}

.feature-card__icon,
.company-card__icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 18px;
  margin: 0;
  background: var(--accent-soft);
  color: var(--primary);
}

.feature-card__icon .material-symbols-outlined,
.company-card__icon .material-symbols-outlined {
  font-size: 27px;
}

.feature-card__title,
.company-card__name {
  color: var(--primary);
  font-size: 19px;
  line-height: 1.35;
}

.feature-card__text {
  color: var(--muted);
  font-size: 14.5px;
}

.companies-grid,
.posts-grid {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.company-card {
  padding: 20px;
}

.company-card__head {
  margin-bottom: 14px;
}

.company-card__actions {
  gap: 10px;
  border-top-color: rgba(15,23,42,.07);
}

.post-card {
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.post-card__thumb,
.post-card__placeholder {
  aspect-ratio: 16 / 10;
  min-height: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,180,52,.40), transparent 34%),
    linear-gradient(135deg, var(--primary), #3a425b);
}

.post-card__body {
  padding: 18px;
}

.post-card__meta {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12.5px;
}

.post-card__title {
  color: var(--primary);
  font-size: 19px;
  line-height: 1.42;
}

.post-card__excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.content-card,
.bahaa-custom-section__content,
.root-manual-card,
.root-contact-info,
.root-contact-form-card {
  padding: clamp(20px, 3vw, 30px);
}

/* Page, archive and taxonomy heroes */
.page-hero,
.archive-hero {
  padding: 34px 0 20px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255,180,52,.12), transparent 22rem),
    linear-gradient(180deg, #fff, #f7f9fd) !important;
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.page-header,
.entry-header {
  margin-bottom: 16px;
}

.site-breadcrumbs {
  margin-bottom: 16px;
}

.site-breadcrumbs__list,
.page-hero .site-breadcrumbs__list,
.archive-hero .site-breadcrumbs__list {
  color: var(--muted) !important;
  font-size: 13px;
}

.archive-description {
  max-width: 900px;
}

.pagination,
.nav-links {
  justify-content: center;
}

.pagination .page-numbers,
.nav-links .page-numbers {
  border-radius: 999px;
  border-color: var(--border);
}

/* Root landing and root taxonomy pages */
.root-hero,
.root-contact-hero {
  min-height: auto;
  padding: 28px 0 38px;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.root-hero::before,
.root-hero::after,
.root-contact-hero::before,
.root-contact-hero::after {
  opacity: .55;
}

.root-hero__content {
  max-width: 900px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
  box-shadow: 0 26px 70px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

.root-hero__title,
.root-contact-hero__title {
  font-size: clamp(32px, 4.7vw, 58px);
  line-height: 1.15;
}

.root-hero__text,
.root-contact-hero__text {
  color: rgba(255,255,255,.88);
}

.root-hero .site-breadcrumbs__list,
.root-contact-hero .site-breadcrumbs__list {
  color: rgba(255,255,255,.88) !important;
}

.root-auto-section {
  padding-top: 48px;
  padding-bottom: 22px;
}

.root-cards-grid,
.root-cards-grid--large {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.root-card,
.root-mini-card {
  min-height: 154px;
  padding: 20px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.root-card::before,
.root-mini-card::before {
  width: 120px;
  height: 120px;
  inset: auto auto -54px -44px;
  background: rgba(255,255,255,.12);
}

.root-card__icon,
.root-mini-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  margin-bottom: 20px;
}

.root-card__title,
.root-mini-card__title {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.32;
}

.root-card__text,
.root-mini-card__text,
.root-card__meta,
.root-mini-card__label {
  font-size: 13.5px;
  line-height: 1.7;
}

.root-mini-card__top {
  margin-bottom: 16px !important;
}

#root-pages .root-mini-card__icon {
  margin-bottom: 0;
}

.root-taxonomy-tree {
  gap: 20px;
}

.root-taxonomy-tree__item--level-0 {
  padding: 12px;
  border-radius: 26px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.root-taxonomy-tree__card {
  border-radius: 18px;
  box-shadow: none;
  border-color: rgba(15,23,42,.08);
}

.root-taxonomy-tree__card::before {
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card {
  background: linear-gradient(135deg, var(--primary), #3a425b);
  box-shadow: 0 14px 34px rgba(37,44,65,.18);
}

.root-taxonomy-tree__icon,
.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__icon {
  background: var(--accent-soft);
  color: var(--primary);
  box-shadow: none;
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__icon {
  background: #fff;
}

.root-taxonomy-tree__title {
  color: var(--primary);
}

.root-taxonomy-tree__item--level-0 > .root-taxonomy-tree__card .root-taxonomy-tree__title {
  font-size: 22px;
}

.root-taxonomy-tree__badge {
  background: var(--primary);
}

.root-taxonomy-tree__count {
  background: var(--surface-2);
  color: var(--muted);
}

.root-page-header-extras,
.root-single-header-line {
  margin-top: 16px;
}

.root-page-header-contact,
.root-single-header-meta {
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.root-page-header-contact__button,
.root-single-header-meta__term,
.root-single-header-meta__item {
  border-radius: 999px;
}

/* Contact pages */
.root-contact-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  padding-top: 34px;
}

.root-contact-hero__panel {
  border-radius: 28px;
}

.root-contact-layout {
  gap: 20px;
}

.root-contact-card {
  border-radius: 22px;
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding-top: 54px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255,180,52,.16), transparent 24rem),
    linear-gradient(180deg, var(--primary), var(--primary-dark)) !important;
}

.site-footer::before {
  width: 420px;
  height: 420px;
  left: auto;
  right: -190px;
  top: -210px;
  background: rgba(255,255,255,.055);
}

.site-footer__grid {
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, .75fr));
  gap: 22px;
  padding-bottom: 34px;
}

.footer-brand {
  max-width: none;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 26px;
  background: rgba(255,255,255,.055);
}

.site-footer .brand-mark {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.footer-title {
  position: relative;
  margin-bottom: 16px;
  color: #fff;
  font-size: 18px;
}

.footer-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.footer-text,
.footer-links a,
.footer-contact li,
.footer-copy,
.footer-bottom a {
  color: rgba(255,255,255,.75);
  font-size: 14px;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 9px;
}

.footer-links a {
  display: inline-flex;
  padding: 4px 0;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.social-links a {
  width: 39px;
  height: 39px;
  background: rgba(255,255,255,.10);
}

.footer-bottom {
  padding: 19px 0 24px;
  border-top-color: rgba(255,255,255,.10);
}

/* Base color controls compatibility */
body.bahaa-theme-base-view .hero {
  background:
    radial-gradient(circle at 16% 18%, rgba(255,180,52,.22), transparent 20rem),
    radial-gradient(circle at 86% 0%, rgba(37,44,65,.11), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f6f8fd 100%) !important;
}

body.bahaa-theme-base-view .hero__title,
body.bahaa-theme-base-view .section-title,
body.bahaa-theme-base-view .entry-title,
body.bahaa-theme-base-view .city-card__title,
body.bahaa-theme-base-view .feature-card__title,
body.bahaa-theme-base-view .post-card__title,
body.bahaa-theme-base-view .post-card__title a {
  color: var(--base-card-title, var(--primary)) !important;
}

body.bahaa-theme-base-view .section-kicker,
body.bahaa-theme-base-view .hero__badge,
body.bahaa-theme-base-view .feature-card__icon,
body.bahaa-theme-base-view .company-card__icon,
body.bahaa-theme-base-view .city-card__icon {
  background: color-mix(in srgb, var(--base-header-accent, var(--accent)) 18%, #fff) !important;
  color: var(--base-card-icon-text, var(--primary)) !important;
  border-color: color-mix(in srgb, var(--base-header-accent, var(--accent)) 25%, transparent) !important;
}

body.bahaa-theme-base-view .btn-primary,
body.bahaa-theme-base-view .site-actions .btn-primary {
  background: var(--base-button-bg, var(--primary)) !important;
  color: var(--base-button-text, #fff) !important;
}

body.bahaa-theme-base-view .site-footer {
  background:
    radial-gradient(circle at 14% 0%, rgba(255,255,255,.08), transparent 24rem),
    linear-gradient(180deg, var(--base-footer-bg-start, var(--primary)), var(--base-footer-bg-end, var(--primary-dark))) !important;
}

@media (max-width: 1199px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid > :first-child {
    grid-column: span 2;
  }
}

@media (max-width: 991px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .site-header__inner {
    border-radius: 22px;
  }

  .nav-wrap {
    top: calc(100% + 10px);
    padding: 12px;
    border-radius: 22px;
    background: rgba(255,255,255,.98);
  }

  .main-navigation ul {
    display: grid;
    background: transparent;
    padding: 0;
  }

  .main-navigation a,
  .site-actions .btn {
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--surface-2);
  }

  .hero__grid,
  .root-contact-hero__grid,
  .root-contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__content,
  .hero__panel {
    text-align: center;
    margin-inline: auto;
  }

  .hero__actions,
  .hero-service-chips {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .site-header {
    top: 0;
    padding: 8px 0;
  }

  .admin-bar .site-header {
    top: 0;
  }

  .site-header__inner {
    min-height: 62px;
    padding: 8px 10px;
    border-radius: 20px;
  }

  .site-title {
    font-size: 18px;
  }

  .site-branding__eyebrow,
  .site-description {
    display: none;
  }

  .brand-mark,
  .root-header-logo img,
  .custom-logo-link img,
  .custom-logo-wrap img {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero__grid {
    padding: 24px 0 34px;
  }

  .hero__title {
    font-size: clamp(30px, 9vw, 40px);
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search .btn-primary {
    width: 100%;
  }

  .section-head,
  .footer-bottom {
    display: block;
  }

  .section-head > * + *,
  .footer-bottom > * + * {
    margin-top: 12px;
  }

  .cities-grid,
  .features-grid,
  .companies-grid,
  .posts-grid,
  .root-cards-grid,
  .root-cards-grid--large,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid > :first-child {
    grid-column: auto;
  }

  .city-card,
  .feature-card {
    min-height: auto;
  }

  .root-hero__content {
    border-radius: 24px;
  }

  .root-card,
  .root-mini-card {
    min-height: 140px;
  }

  .root-taxonomy-tree__item > .root-taxonomy-tree__level,
  .root-taxonomy-tree__item--level-1 > .root-taxonomy-tree__level,
  .root-taxonomy-tree--layout-compact > .root-taxonomy-tree__level--0 {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Service layout polish - organized cards, compact sections
   ========================================================= */
:root {
  --container: 1160px;
}

body {
  overflow-x: hidden;
}

.section,
.page-content-wrap,
.root-contact-section {
  padding-top: clamp(38px, 5vw, 62px);
  padding-bottom: clamp(38px, 5vw, 62px);
}

.section-head,
.section-head.section-head-center {
  margin-bottom: clamp(22px, 3vw, 34px);
}

.section-title,
.entry-title {
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1.24;
}

.section-subtitle,
.entry-summary,
.archive-description {
  max-width: 760px;
}

/* Header: keep the new look but make it tighter and better aligned. */
.site-header {
  padding: 8px 0;
}

.site-header__inner {
  min-height: 62px;
  padding: 8px 12px;
  gap: 16px;
}

.site-title {
  font-size: clamp(18px, 1.55vw, 24px);
}

.site-description {
  max-width: 230px;
}

.main-navigation a {
  min-height: 36px;
  padding: 6px 12px;
}

.site-actions .btn-primary {
  min-height: 42px;
  padding-inline: 16px;
}

/* Home hero: less empty space and clearer search card. */
.hero {
  padding-top: 14px;
  padding-bottom: 18px;
}

.hero__grid {
  gap: clamp(22px, 4vw, 44px);
  padding-top: clamp(30px, 5vw, 54px);
  padding-bottom: clamp(34px, 5vw, 60px);
}

.hero__title {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 14px;
}

.hero__text {
  margin-bottom: 22px;
}

.hero-card {
  padding: clamp(20px, 3vw, 28px);
}

.hero-search__field {
  min-width: 0;
}

.hero-service-chips {
  margin-top: 12px;
}

/* Feature cards: fix the narrow stacked text seen in the screenshots. */
.feature-card {
  display: grid !important;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  min-height: 132px;
  padding: 18px;
  text-align: start;
}

.feature-card__icon {
  grid-row: 1 / span 2;
  grid-column: 1;
}

.feature-card__title {
  grid-column: 2;
  margin: 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.35;
}

.feature-card__text {
  grid-column: 2;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

/* Root/section cards: prevent a single card from stretching across the whole container. */
.root-cards-grid,
.root-cards-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr));
  align-items: stretch;
}

.root-cards-grid--controlled {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)) !important;
}

.root-cards-grid > :only-child {
  width: 100%;
  max-width: 390px;
  justify-self: start;
}

.root-card,
.root-mini-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 142px;
  padding: 18px;
}

.root-card__icon,
.root-mini-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin-bottom: 16px;
}

.root-card__title,
.root-mini-card__title {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.38;
}

.root-card__text,
.root-mini-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.root-mini-card__top {
  margin-bottom: 12px !important;
}

/* Post cards: fixed visual rhythm, readable titles, no long stretched cards. */
.posts-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  align-items: stretch;
  gap: 18px;
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border-radius: 22px;
}

.post-card__thumb,
.post-card__placeholder {
  aspect-ratio: 16 / 10;
  min-height: 0 !important;
}

.post-card__thumb img {
  transform: translateZ(0);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.post-card__meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.post-card__title {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.42;
}

.post-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.75;
}

.post-card .link-detail {
  align-self: flex-start;
  margin-top: auto;
}

/* Archive, root taxonomy and empty states. */
.page-hero,
.archive-hero,
.root-taxonomy-term-hero {
  padding-top: clamp(24px, 4vw, 42px);
  padding-bottom: clamp(22px, 3vw, 34px);
}

.root-taxonomy-term-content {
  padding-top: clamp(28px, 4vw, 42px);
  padding-bottom: clamp(28px, 4vw, 42px);
}

.content-card > .entry-title:only-child,
.root-taxonomy-empty p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

.root-taxonomy-empty,
.root-taxonomy-term-content .content-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 22px;
}

/* Root landing/taxonomy hero: keep the exclusive glass idea but reduce the heavy block. */
.root-hero,
.root-contact-hero {
  padding-top: 22px;
  padding-bottom: 32px;
}

.root-hero__content {
  max-width: 780px;
  margin-top: 12px;
  padding: clamp(22px, 3.5vw, 34px);
  border-radius: 28px;
}

.root-hero__title,
.root-contact-hero__title {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.22;
}

.root-hero__text,
.root-contact-hero__text {
  font-size: clamp(15px, 1.5vw, 18px);
}

.root-auto-section {
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(30px, 4vw, 48px);
}

.root-taxonomy-children-section {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(36px, 5vw, 58px);
}

/* Footer: organized columns and cleaner small text. */
.site-footer {
  padding-top: clamp(42px, 5vw, 56px);
}

.site-footer__grid {
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(145px, .8fr));
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

.footer-brand {
  padding: 18px;
}

.footer-title {
  font-size: 17px;
}

.footer-text,
.footer-links a,
.footer-contact li,
.footer-copy,
.footer-bottom a {
  font-size: 13.5px;
  line-height: 1.8;
}

.footer-contact li {
  align-items: flex-start;
}

.footer-contact .material-symbols-outlined {
  margin-top: 3px;
  font-size: 19px;
}

@media (max-width: 1199px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  }
}

@media (max-width: 991px) {
  .site-header {
    top: 0;
  }

  .admin-bar .site-header {
    top: 46px;
  }

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

  .hero__content,
  .hero__panel {
    max-width: 720px;
  }

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

  .site-footer__grid > :first-child {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .site-header {
    padding: 6px 0;
  }

  .admin-bar .site-header {
    top: 0;
  }

  .site-header__inner {
    min-height: 58px;
    border-radius: 18px;
  }

  .site-title {
    font-size: 17px;
  }

  .section,
  .page-content-wrap,
  .root-contact-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hero__grid {
    padding-top: 26px;
    padding-bottom: 34px;
  }

  .hero__title {
    font-size: clamp(29px, 9vw, 38px);
  }

  .feature-card {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 16px;
  }

  .feature-card__icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .posts-grid,
  .root-cards-grid,
  .root-cards-grid--large,
  .root-cards-grid--controlled,
  .site-footer__grid {
    grid-template-columns: 1fr !important;
  }

  .root-cards-grid > :only-child {
    max-width: 100%;
  }

  .post-card__title {
    font-size: 19px;
  }

  .root-hero__content {
    padding: 20px;
    border-radius: 22px;
  }

  .site-footer__grid > :first-child {
    grid-column: auto;
  }
}

/* =========================================================
   Service Layout Polish 2 - hero background overlap + main roots card
   ========================================================= */
:root {
  --na-header-overlap: 102px;
}

/* اجعل خلفية الهيرو تبدأ من أعلى منطقة الهيدر حتى لا يظهر شريط أبيض منفصل بين القائمة والهيرو. */
.site-header + .hero,
.site-header + .root-hero,
.site-header + .page-hero,
.site-header + .archive-hero,
.site-header + .root-contact-hero {
  margin-top: calc(var(--na-header-overlap) * -1);
  padding-top: calc(var(--na-header-overlap) + 28px) !important;
}

.site-header + .hero {
  background:
    radial-gradient(circle at 16% 0%, rgba(255,180,52,.24), transparent 23rem),
    radial-gradient(circle at 88% 4%, rgba(37,44,65,.12), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, #f7f9fd 76%, #f7f9fd 100%) !important;
}

.site-header + .root-hero,
.site-header + .page-hero,
.site-header + .archive-hero,
.site-header + .root-contact-hero {
  background-position: center top;
}

/* كروت الأقسام الرئيسية: لا تجعل الكارت الوحيد يأخذ عرض الصفحة بالكامل. */
.cities-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  align-items: stretch;
}

.cities-grid > :only-child {
  width: 100%;
  max-width: 420px;
  justify-self: start;
}

.city-card {
  display: flex !important;
  flex-direction: row;
  align-items: center !important;
  justify-content: flex-start;
  gap: 14px;
  min-height: 78px;
  padding: 17px 20px;
}

.city-card__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  min-width: 46px;
  margin: 0 !important;
}

.city-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.city-card__title {
  margin: 0 !important;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.35;
}

.city-card__count {
  margin-top: 7px;
  align-self: flex-start;
}

@media (max-width: 991px) {
  :root {
    --na-header-overlap: 88px;
  }

  .site-header + .hero,
  .site-header + .root-hero,
  .site-header + .page-hero,
  .site-header + .archive-hero,
  .site-header + .root-contact-hero {
    padding-top: calc(var(--na-header-overlap) + 22px) !important;
  }
}

@media (max-width: 767px) {
  :root {
    --na-header-overlap: 76px;
  }

  .site-header + .hero,
  .site-header + .root-hero,
  .site-header + .page-hero,
  .site-header + .archive-hero,
  .site-header + .root-contact-hero {
    padding-top: calc(var(--na-header-overlap) + 18px) !important;
  }

  .cities-grid > :only-child {
    max-width: 100%;
  }

  .city-card {
    min-height: 72px;
    padding: 15px 16px;
  }
}

/* =========================================================
   Service Layout Polish 3 - real hero/header overlap fix
   ========================================================= */
:root {
  --na-real-header-rise: 102px;
}

/* الهيدر داخل الـ main ليس أخاً مباشراً للهيرو، لذلك نستهدف أول سيكشن داخل .site-main فعلياً. */
.site-header {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.site-header__inner {
  position: relative;
  z-index: 3;
}

.site-main > .hero:first-child,
.site-main > .root-hero:first-child,
.site-main > .page-hero:first-child,
.site-main > .archive-hero:first-child,
.site-main > .root-contact-hero:first-child,
.site-main > .root-taxonomy-term-hero:first-child {
  margin-top: calc(var(--na-real-header-rise) * -1) !important;
  padding-top: calc(var(--na-real-header-rise) + 14px) !important;
  position: relative;
  z-index: 1;
  background-position: center top !important;
}

.site-main > .hero:first-child {
  background:
    radial-gradient(circle at 16% 0%, rgba(255,180,52,.24), transparent 23rem),
    radial-gradient(circle at 88% 4%, rgba(37,44,65,.12), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, #f7f9fd 76%, #f7f9fd 100%) !important;
}

.site-main > .root-hero:first-child,
.site-main > .page-hero:first-child,
.site-main > .archive-hero:first-child,
.site-main > .root-contact-hero:first-child,
.site-main > .root-taxonomy-term-hero:first-child {
  padding-top: calc(var(--na-real-header-rise) + clamp(26px, 4vw, 42px)) !important;
}

/* الأقسام الرئيسية: تثبيت عرض كارت الرووت الواحد + وضع الاسم والأيقونة في صف واحد. */
#home-roots .cities-grid,
.section .cities-grid,
.cities-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 240px)) !important;
  justify-content: start !important;
  align-items: stretch !important;
}

#home-roots .cities-grid > .city-card:only-child,
.section .cities-grid > .city-card:only-child,
.cities-grid > .city-card:only-child {
  max-width: 360px !important;
  width: 100% !important;
  justify-self: start !important;
}

#home-roots .city-card,
.section .city-card,
.city-card {
  min-height: 82px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  text-align: start !important;
}

#home-roots .city-card__icon,
.section .city-card__icon,
.city-card__icon {
  position: static !important;
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  margin: 0 !important;
}

#home-roots .city-card__content,
.section .city-card__content,
.city-card__content {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

#home-roots .city-card__title,
.section .city-card__title,
.city-card__title {
  margin: 0 !important;
  font-size: clamp(17px, 1.25vw, 20px) !important;
  line-height: 1.35 !important;
}

#home-roots .city-card__count,
.section .city-card__count,
.city-card__count {
  margin-top: 6px !important;
}

@media (max-width: 991px) {
  :root {
    --na-real-header-rise: 88px;
  }
}

@media (max-width: 767px) {
  :root {
    --na-real-header-rise: 76px;
  }

  .site-main > .hero:first-child,
  .site-main > .root-hero:first-child,
  .site-main > .page-hero:first-child,
  .site-main > .archive-hero:first-child,
  .site-main > .root-contact-hero:first-child,
  .site-main > .root-taxonomy-term-hero:first-child {
    padding-top: calc(var(--na-real-header-rise) + 18px) !important;
  }

  #home-roots .cities-grid,
  .section .cities-grid,
  .cities-grid {
    grid-template-columns: 1fr !important;
  }

  #home-roots .cities-grid > .city-card:only-child,
  .section .cities-grid > .city-card:only-child,
  .cities-grid > .city-card:only-child {
    max-width: 100% !important;
  }
}

/* =========================================================
   Service Layout Polish 4 - compact root hero + important pages cards
   ========================================================= */
:root {
  --na-root-hero-top-extra: clamp(16px, 2.6vw, 28px);
  --na-root-hero-bottom: clamp(34px, 4.6vw, 58px);
}

.site-main > .root-hero:first-child,
.site-main > .root-contact-hero:first-child,
.site-main > .root-taxonomy-term-hero:first-child {
  min-height: auto !important;
  padding-top: calc(var(--na-real-header-rise) + var(--na-root-hero-top-extra)) !important;
  padding-bottom: var(--na-root-hero-bottom) !important;
  background-size: cover !important;
  background-position: center top !important;
}

.site-main > .root-hero:first-child .container,
.site-main > .root-contact-hero:first-child .container,
.site-main > .root-taxonomy-term-hero:first-child .container {
  position: relative;
  z-index: 2;
}

.root-hero .site-breadcrumbs,
.root-contact-hero .site-breadcrumbs,
.root-taxonomy-term-hero .site-breadcrumbs {
  margin: 0 0 clamp(14px, 2vw, 22px) !important;
}

.root-hero .site-breadcrumbs__list,
.root-contact-hero .site-breadcrumbs__list,
.root-taxonomy-term-hero .site-breadcrumbs__list {
  justify-content: flex-start !important;
  gap: 8px !important;
  font-size: 13.5px !important;
}

.root-hero__content {
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  margin-top: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  padding: clamp(22px, 3vw, 32px) !important;
  border-radius: 26px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08)) !important;
  border: 1px solid rgba(255,255,255,.23) !important;
  box-shadow: 0 24px 55px rgba(15,23,42,.15) !important;
  backdrop-filter: blur(10px) !important;
}

.has-root-context .root-hero__title,
.root-hero__title,
.root-contact-hero__title {
  max-width: 720px !important;
  margin: 14px 0 10px !important;
  font-size: clamp(34px, 4.3vw, 54px) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.02em !important;
}

.root-hero__text,
.root-contact-hero__text {
  max-width: 720px !important;
  margin: 0 0 18px !important;
  font-size: clamp(14.5px, 1.35vw, 17px) !important;
  line-height: 1.9 !important;
}

.root-hero .hero__badge,
.root-contact-hero .hero__badge {
  min-height: 38px !important;
  padding: 8px 15px !important;
  gap: 8px !important;
  font-size: 13px !important;
  background: rgba(255,255,255,.96) !important;
  color: var(--primary) !important;
  border-color: rgba(255,255,255,.55) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.09) !important;
}

.root-hero .hero__actions,
.root-contact-hero .hero__actions {
  gap: 10px !important;
  margin-top: 10px !important;
}

.root-hero .btn,
.root-contact-hero .btn {
  min-height: 44px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
}

.root-hero::before,
.root-contact-hero::before {
  opacity: .34 !important;
}

.root-hero::after,
.root-contact-hero::after {
  opacity: .18 !important;
}

/* Important pages section inside the root: centered heading + clean cards instead of a small card stuck to the side. */
#root-pages.root-auto-section,
.root-auto-section[id="root-pages"] {
  padding-top: clamp(42px, 5vw, 62px) !important;
  padding-bottom: clamp(46px, 5vw, 68px) !important;
}

#root-pages .section-head,
.root-auto-section[id="root-pages"] .section-head {
  display: block !important;
  max-width: 820px !important;
  margin: 0 auto clamp(22px, 3vw, 34px) !important;
  text-align: center !important;
}

#root-pages .section-head > div,
.root-auto-section[id="root-pages"] .section-head > div {
  max-width: 100% !important;
}

#root-pages .section-kicker,
.root-auto-section[id="root-pages"] .section-kicker {
  margin-inline: auto !important;
}

#root-pages .section-subtitle,
.root-auto-section[id="root-pages"] .section-subtitle {
  margin-inline: auto !important;
}

#root-pages .section-head__actions,
.root-auto-section[id="root-pages"] .section-head__actions {
  justify-content: center !important;
  margin-top: 14px !important;
}

#root-pages .root-cards-grid,
.root-auto-section[id="root-pages"] .root-cards-grid {
  width: min(100%, 900px) !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
  justify-content: center !important;
  gap: 18px !important;
}

#root-pages .root-cards-grid > .root-mini-card:only-child,
.root-auto-section[id="root-pages"] .root-cards-grid > .root-mini-card:only-child {
  max-width: 640px !important;
  width: 100% !important;
  justify-self: center !important;
}

#root-pages .root-mini-card,
.root-auto-section[id="root-pages"] .root-mini-card {
  min-height: 128px !important;
  padding: 20px 22px !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, #54afc4)) !important;
  color: #fff !important;
  box-shadow: 0 18px 40px rgba(15,23,42,.10) !important;
}

#root-pages .root-mini-card__top,
.root-auto-section[id="root-pages"] .root-mini-card__top {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 0 0 12px !important;
}

#root-pages .root-mini-card__icon,
.root-auto-section[id="root-pages"] .root-mini-card__icon {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  margin: 0 !important;
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
}

#root-pages .root-mini-card__title,
.root-auto-section[id="root-pages"] .root-mini-card__title {
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: clamp(20px, 2vw, 28px) !important;
  line-height: 1.25 !important;
}

#root-pages .root-mini-card__title a,
.root-auto-section[id="root-pages"] .root-mini-card__title a,
#root-pages .root-mini-card__text,
.root-auto-section[id="root-pages"] .root-mini-card__text {
  color: inherit !important;
}

#root-pages .root-mini-card__text,
.root-auto-section[id="root-pages"] .root-mini-card__text {
  max-width: 520px !important;
  margin: 0 0 14px !important;
  color: rgba(255,255,255,.82) !important;
  -webkit-line-clamp: 2 !important;
}

#root-pages .root-mini-card .link-detail,
.root-auto-section[id="root-pages"] .root-mini-card .link-detail {
  align-self: flex-start !important;
  min-height: 38px !important;
  padding: 8px 15px !important;
  background: #fff !important;
  color: var(--primary) !important;
  border-color: rgba(255,255,255,.7) !important;
  box-shadow: none !important;
}

@media (min-width: 768px) {
  #root-pages .root-cards-grid > .root-mini-card:only-child,
  .root-auto-section[id="root-pages"] .root-cards-grid > .root-mini-card:only-child {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 16px !important;
    align-items: center !important;
  }

  #root-pages .root-cards-grid > .root-mini-card:only-child .root-mini-card__top,
  .root-auto-section[id="root-pages"] .root-cards-grid > .root-mini-card:only-child .root-mini-card__top {
    grid-row: 1 / span 2 !important;
    grid-column: 1 !important;
    margin: 0 !important;
  }

  #root-pages .root-cards-grid > .root-mini-card:only-child .root-mini-card__title,
  .root-auto-section[id="root-pages"] .root-cards-grid > .root-mini-card:only-child .root-mini-card__title {
    grid-column: 2 !important;
    margin-bottom: 6px !important;
  }

  #root-pages .root-cards-grid > .root-mini-card:only-child .root-mini-card__text,
  .root-auto-section[id="root-pages"] .root-cards-grid > .root-mini-card:only-child .root-mini-card__text {
    grid-column: 2 !important;
    margin: 0 !important;
  }

  #root-pages .root-cards-grid > .root-mini-card:only-child .link-detail,
  .root-auto-section[id="root-pages"] .root-cards-grid > .root-mini-card:only-child .link-detail {
    grid-row: 1 / span 2 !important;
    grid-column: 3 !important;
    align-self: center !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 991px) {
  .site-main > .root-hero:first-child,
  .site-main > .root-contact-hero:first-child,
  .site-main > .root-taxonomy-term-hero:first-child {
    padding-top: calc(var(--na-real-header-rise) + 20px) !important;
  }

  .root-hero__content {
    width: min(100%, 700px) !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 767px) {
  .site-main > .root-hero:first-child,
  .site-main > .root-contact-hero:first-child,
  .site-main > .root-taxonomy-term-hero:first-child {
    padding-top: calc(var(--na-real-header-rise) + 16px) !important;
    padding-bottom: 34px !important;
  }

  .root-hero__content {
    padding: 20px !important;
    border-radius: 22px !important;
    text-align: center !important;
  }

  .root-hero .site-breadcrumbs__list,
  .root-contact-hero .site-breadcrumbs__list,
  .root-taxonomy-term-hero .site-breadcrumbs__list,
  .root-hero .hero__actions,
  .root-contact-hero .hero__actions {
    justify-content: center !important;
  }

  .has-root-context .root-hero__title,
  .root-hero__title,
  .root-contact-hero__title {
    font-size: clamp(29px, 8vw, 38px) !important;
  }

  #root-pages .root-mini-card,
  .root-auto-section[id="root-pages"] .root-mini-card {
    text-align: center !important;
  }

  #root-pages .root-mini-card__top,
  .root-auto-section[id="root-pages"] .root-mini-card__top,
  #root-pages .root-mini-card .link-detail,
  .root-auto-section[id="root-pages"] .root-mini-card .link-detail {
    justify-content: center !important;
    align-self: center !important;
  }
}


/* =========================================================
   Root Hero Card Width Final Fix
   يجعل كارت هيرو الرووت ممتدًا بعرض متوازن داخل الكونتينر بدل ظهوره كبلوك ضيق في طرف الهيرو.
   ========================================================= */
@media (min-width: 992px) {
  .site-main > .root-hero:first-child .root-hero__content {
    width: 100% !important;
    max-width: 1120px !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
    padding-inline: clamp(34px, 5vw, 72px) !important;
  }

  .site-main > .root-hero:first-child .root-hero__title,
  .site-main > .root-hero:first-child .root-hero__text {
    max-width: 820px !important;
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
  }

  .site-main > .root-hero:first-child .hero__actions {
    justify-content: flex-start !important;
  }
}

@media (min-width: 1200px) {
  .site-main > .root-hero:first-child .root-hero__content {
    max-width: calc(100% - 32px) !important;
  }
}

@media (max-width: 991px) {
  .site-main > .root-hero:first-child .root-hero__content {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
    margin-inline: auto !important;
  }
}


/* =========================================================
   Base Blog Cards Columns Control
   admin.php?page=bahaa-theme-base-blog
   ========================================================= */
.posts-grid--base-blog-columns {
  align-items: stretch;
}

.posts-grid--base-blog-columns-1 {
  grid-template-columns: minmax(0, min(100%, 560px)) !important;
  justify-content: center;
}

.posts-grid--base-blog-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.posts-grid--base-blog-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.posts-grid--base-blog-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.posts-grid--base-blog-columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.posts-grid--base-blog-columns-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

@media (max-width: 1199px) {
  .posts-grid--base-blog-columns-4,
  .posts-grid--base-blog-columns-5,
  .posts-grid--base-blog-columns-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991px) {
  .posts-grid--base-blog-columns-3,
  .posts-grid--base-blog-columns-4,
  .posts-grid--base-blog-columns-5,
  .posts-grid--base-blog-columns-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .posts-grid--base-blog-columns-1,
  .posts-grid--base-blog-columns-2,
  .posts-grid--base-blog-columns-3,
  .posts-grid--base-blog-columns-4,
  .posts-grid--base-blog-columns-5,
  .posts-grid--base-blog-columns-6 {
    grid-template-columns: 1fr !important;
  }
}


/* Base single post description + contact controls */
.base-post-header-description{max-width:860px;margin:14px auto 0;color:rgba(255,255,255,.88);font-size:clamp(15px,1.7vw,18px);line-height:1.9;text-align:center}
.base-post-contact-bar{max-width:980px;margin:18px auto 0;padding:14px;border:1px solid rgba(255,255,255,.22);border-radius:22px;background:rgba(255,255,255,.14);box-shadow:0 18px 42px rgba(15,23,42,.16);backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;color:#fff}
.base-post-contact-bar__head{display:flex;align-items:center;gap:10px;min-width:160px}.base-post-contact-bar__head strong{color:#fff;font-size:16px}.base-post-contact-bar__icon{width:42px;height:42px;border-radius:14px;background:rgba(255,255,255,.18);display:inline-flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.base-post-contact-bar__actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.base-post-contact-btn,.base-post-contact-chip{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:999px;padding:9px 14px;font-weight:800;text-decoration:none;line-height:1.2}.base-post-contact-btn svg,.base-post-contact-btn .material-symbols-outlined,.base-post-contact-chip .material-symbols-outlined{width:20px;height:20px;font-size:20px}.base-post-contact-btn--whatsapp{background:#18b65a;color:#fff;box-shadow:0 10px 22px rgba(24,182,90,.24)}.base-post-contact-btn--phone{background:#fff;color:var(--primary-dark);box-shadow:0 10px 22px rgba(15,23,42,.12)}.base-post-contact-btn--email{background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.24)}.base-post-contact-chip{background:rgba(255,255,255,.12);color:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.18);font-weight:700}.base-post-contact-btn:hover{transform:translateY(-1px);text-decoration:none}
.base-post-floating-contact{position:fixed;bottom:22px;z-index:80;display:flex;flex-direction:column;gap:10px;pointer-events:none}.base-post-floating-contact--left{left:18px}.base-post-floating-contact--right{right:18px}.base-post-floating-contact__btn{pointer-events:auto;min-width:52px;min-height:52px;border-radius:999px;padding:12px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#fff;text-decoration:none;font-weight:900;box-shadow:0 14px 34px rgba(15,23,42,.22);border:1px solid rgba(255,255,255,.18);transition:transform .18s ease,box-shadow .18s ease}.base-post-floating-contact__btn:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(15,23,42,.28);text-decoration:none;color:#fff}.base-post-floating-contact__btn svg,.base-post-floating-contact__btn .material-symbols-outlined{width:24px;height:24px;font-size:24px}.base-post-floating-contact__btn--whatsapp{background:#18b65a}.base-post-floating-contact__btn--phone{background:linear-gradient(135deg,var(--primary),var(--accent))}
@media(max-width:782px){.base-post-contact-bar{align-items:stretch;flex-direction:column;text-align:right}.base-post-contact-bar__actions{justify-content:stretch}.base-post-contact-btn,.base-post-contact-chip{width:100%}.base-post-floating-contact{bottom:14px}.base-post-floating-contact--left{left:12px}.base-post-floating-contact--right{right:12px}.base-post-floating-contact__btn{min-width:48px;min-height:48px;padding:11px}.base-post-floating-contact__btn span{display:none}}


/* =========================================================
   Single post contact bar placement + mobile floating polish
   ========================================================= */
.page-hero .base-post-header-description {
  max-width: 900px;
  margin: 14px auto 0;
  color: var(--muted) !important;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.9;
  text-align: center;
}

.page-hero .base-post-contact-bar {
  width: min(100%, 900px);
  max-width: 900px;
  margin: 18px auto 0;
  padding: 12px;
  color: var(--primary) !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(15,23,42,.10) !important;
  backdrop-filter: blur(14px);
}

.page-hero .base-post-contact-bar--after_title {
  margin-top: 16px;
}

.page-hero .base-post-contact-bar--after_meta {
  width: min(100%, 760px);
  max-width: 760px;
}

.page-hero .base-post-contact-bar__head strong {
  color: var(--primary) !important;
}

.page-hero .base-post-contact-bar__icon {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
  box-shadow: none !important;
}

.page-hero .base-post-contact-bar__icon svg,
.page-hero .base-post-contact-bar__icon svg path,
.base-post-contact-btn svg,
.base-post-contact-btn svg path,
.base-post-floating-contact__btn svg,
.base-post-floating-contact__btn svg path {
  fill: currentColor;
  stroke: currentColor;
}

.page-hero .base-post-contact-bar__actions {
  flex: 1 1 360px;
}

.page-hero .base-post-contact-btn--whatsapp {
  background: #18b65a !important;
  color: #fff !important;
}

.page-hero .base-post-contact-btn--phone {
  background: var(--accent) !important;
  color: #fff !important;
}

.page-hero .base-post-contact-btn--email,
.page-hero .base-post-contact-chip {
  background: var(--surface-2) !important;
  color: var(--primary) !important;
  border-color: rgba(15,23,42,.08) !important;
}

.base-post-floating-contact {
  z-index: 990;
}

.base-post-floating-contact__btn,
.base-post-floating-contact__btn:visited {
  color: #fff !important;
}

@media (max-width: 782px) {
  .page-hero .base-post-contact-bar {
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    border-radius: 22px;
    align-items: stretch;
    gap: 10px;
  }

  .page-hero .base-post-contact-bar__head {
    min-width: 0;
    justify-content: center;
    padding: 2px 0 0;
  }

  .page-hero .base-post-contact-bar__head strong {
    font-size: 14px;
  }

  .page-hero .base-post-contact-bar__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .page-hero .base-post-contact-bar__actions {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }

  .page-hero .base-post-contact-btn,
  .page-hero .base-post-contact-chip {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 16px;
    font-size: 13.5px;
    white-space: nowrap;
  }

  .page-hero .base-post-contact-chip,
  .page-hero .base-post-contact-btn--email {
    grid-column: 1 / -1;
  }

  .base-post-floating-contact,
  .base-post-floating-contact--left,
  .base-post-floating-contact--right {
    left: max(10px, env(safe-area-inset-left)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px !important;
    border-radius: 24px !important;
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(15,23,42,.10) !important;
    box-shadow: 0 18px 44px rgba(15,23,42,.20) !important;
    backdrop-filter: blur(14px);
    pointer-events: auto !important;
  }

  .base-post-floating-contact__btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 48px !important;
    padding: 10px 12px !important;
    border-radius: 18px !important;
    gap: 7px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
  }

  .base-post-floating-contact__btn svg,
  .base-post-floating-contact__btn .material-symbols-outlined,
  .base-post-floating-contact__btn .na-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 22px !important;
    color: currentColor !important;
  }

  .base-post-floating-contact__btn span {
    display: inline !important;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .base-post-floating-contact__btn:only-child {
    flex: 0 1 230px !important;
  }
}

@media (max-width: 420px) {
  .page-hero .base-post-contact-bar__actions {
    grid-template-columns: 1fr;
  }

  .base-post-floating-contact__btn span {
    max-width: 96px;
  }
}


/* =========================================================
   Base Contact Page Refresh - modern clean layout
   ========================================================= */
.theme-contact-hero {
  --theme-contact-accent: color-mix(in srgb, var(--theme-contact-end, var(--primary)) 62%, #ffb434);
  --theme-contact-ink: #182235;
  --theme-contact-glass: rgba(255,255,255,.82);
  min-height: auto !important;
  isolation: isolate;
  padding-bottom: clamp(42px, 5vw, 72px) !important;
  color: var(--theme-contact-ink) !important;
  background:
    radial-gradient(circle at 13% 12%, color-mix(in srgb, var(--theme-contact-accent) 28%, transparent), transparent 25rem),
    radial-gradient(circle at 88% 2%, color-mix(in srgb, var(--theme-contact-start, var(--primary)) 18%, transparent), transparent 28rem),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-contact-start, var(--primary)) 9%, #fff) 0%, #f8fafc 48%, color-mix(in srgb, var(--theme-contact-end, var(--accent)) 13%, #fff) 100%) !important;
}

.site-main > .theme-contact-hero:first-child {
  padding-top: calc(var(--na-real-header-rise, 110px) + clamp(28px, 3.5vw, 52px)) !important;
}

.theme-contact-hero::before,
.theme-contact-hero::after {
  background: color-mix(in srgb, var(--theme-contact-accent) 22%, transparent) !important;
  opacity: .5 !important;
}

.theme-contact-hero .site-breadcrumbs {
  margin-bottom: clamp(20px, 2.8vw, 34px) !important;
}

.theme-contact-hero .site-breadcrumbs__list {
  color: color-mix(in srgb, var(--theme-contact-ink) 70%, transparent) !important;
  justify-content: flex-start !important;
}

.theme-contact-hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr) !important;
  gap: clamp(24px, 4vw, 56px) !important;
  padding-top: 0 !important;
  align-items: stretch !important;
}

.theme-contact-hero__content {
  position: relative;
  max-width: 760px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: clamp(28px, 3vw, 42px);
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.48));
  box-shadow: 0 28px 80px rgba(15,23,42,.08);
  backdrop-filter: blur(16px);
}

.theme-contact-hero__content::before {
  content: '';
  position: absolute;
  inset-inline-start: clamp(22px, 4vw, 58px);
  top: 0;
  width: clamp(95px, 14vw, 190px);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme-contact-accent), var(--theme-contact-start, var(--primary)));
}

.theme-contact-hero .theme-contact-hero__badge {
  width: fit-content;
  margin-bottom: clamp(16px, 2vw, 24px) !important;
  background: #fff !important;
  color: var(--theme-contact-ink) !important;
  border: 1px solid color-mix(in srgb, var(--theme-contact-accent) 30%, transparent) !important;
}

.theme-contact-hero__title,
.has-root-context .theme-contact-hero__title {
  max-width: 720px !important;
  margin: 0 0 14px !important;
  color: var(--theme-contact-ink) !important;
  font-size: clamp(38px, 5vw, 76px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
}

.theme-contact-hero__text {
  max-width: 680px !important;
  margin: 0 !important;
  color: color-mix(in srgb, var(--theme-contact-ink) 69%, transparent) !important;
  font-size: clamp(16px, 1.45vw, 20px) !important;
  line-height: 2 !important;
}

.theme-contact-hero__actions {
  margin-top: clamp(22px, 3vw, 32px) !important;
  gap: 12px !important;
  flex-wrap: wrap;
}

.theme-contact-hero .theme-contact-hero__cta {
  min-height: 50px !important;
  padding: 12px 20px !important;
  border-radius: 999px !important;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(15,23,42,.08) !important;
}

.theme-contact-hero__cta--whatsapp {
  background: #18bf5b !important;
  color: #fff !important;
  border-color: rgba(24,191,91,.55) !important;
}

.theme-contact-hero__cta--phone,
.theme-contact-hero__cta--form {
  background: #fff !important;
  color: var(--theme-contact-ink) !important;
  border-color: rgba(15,23,42,.08) !important;
}

.theme-contact-hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: clamp(28px, 3vw, 40px) !important;
  padding: clamp(24px, 3vw, 34px) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.74)) !important;
  color: var(--theme-contact-ink) !important;
  border: 1px solid rgba(255,255,255,.85) !important;
  box-shadow: 0 30px 80px rgba(15,23,42,.11) !important;
  backdrop-filter: blur(16px);
}

.theme-contact-hero__panel::before {
  background: color-mix(in srgb, var(--theme-contact-accent) 18%, transparent) !important;
}

.theme-contact-hero__panel-icon {
  background: linear-gradient(135deg, var(--theme-contact-accent), var(--theme-contact-start, var(--primary))) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--theme-contact-accent) 32%, transparent);
}

.theme-contact-hero__panel-head h2,
.theme-contact-hero__panel h2 {
  color: var(--theme-contact-ink) !important;
  font-size: clamp(24px, 2.4vw, 34px) !important;
  line-height: 1.22 !important;
}

.theme-contact-hero__panel-head p,
.theme-contact-hero__panel p {
  color: color-mix(in srgb, var(--theme-contact-ink) 65%, transparent) !important;
  line-height: 1.85;
}

.theme-contact-hero__quick-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.theme-contact-hero__quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.07);
  color: var(--theme-contact-ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.theme-contact-hero__quick-item .material-symbols-outlined {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-contact-accent) 15%, #fff);
  color: var(--theme-contact-start, var(--primary));
}

.theme-contact-hero__chip {
  margin-top: 16px !important;
  background: color-mix(in srgb, var(--theme-contact-accent) 14%, #fff) !important;
  color: var(--theme-contact-ink) !important;
  border: 1px solid color-mix(in srgb, var(--theme-contact-accent) 24%, transparent);
}

.theme-contact-strip {
  position: relative;
  z-index: 3;
  margin-top: clamp(-30px, -2.2vw, -18px);
}

.theme-contact-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 22px 60px rgba(15,23,42,.08);
  backdrop-filter: blur(16px);
}

.theme-contact-strip__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid rgba(15,23,42,.05);
}

.theme-contact-strip__item .material-symbols-outlined {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--primary);
  background: rgba(255,180,52,.16);
}

.theme-contact-strip__item strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}

.theme-contact-strip__item small {
  color: var(--muted);
  line-height: 1.5;
}

.theme-contact-section {
  padding-top: clamp(56px, 6vw, 86px) !important;
  background:
    radial-gradient(circle at 85% 0%, rgba(255,180,52,.10), transparent 20rem),
    linear-gradient(180deg, #f7f9fd, #fff);
}

.theme-contact-layout {
  grid-template-columns: minmax(0, .95fr) minmax(360px, .72fr) !important;
  gap: clamp(22px, 3vw, 34px) !important;
}

.theme-contact-info,
.theme-contact-form-card {
  border-radius: 34px !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 24px 70px rgba(15,23,42,.07) !important;
}

.theme-contact-info {
  padding: clamp(26px, 3vw, 38px) !important;
}

.theme-contact-title {
  color: var(--text) !important;
  font-size: clamp(30px, 3vw, 46px) !important;
  line-height: 1.16 !important;
}

.theme-contact-subtitle {
  max-width: 680px !important;
  margin-inline: 0 !important;
  color: var(--muted) !important;
  line-height: 1.9 !important;
}

.theme-contact-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.theme-contact-card {
  min-height: 142px !important;
  padding: 18px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #fff, #fbfcff) !important;
  border: 1px solid rgba(15,23,42,.07) !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.045) !important;
  text-decoration: none !important;
}

a.theme-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15,23,42,.08) !important;
}

.theme-contact-card__icon {
  background: color-mix(in srgb, var(--primary) 8%, #fff) !important;
  color: var(--primary) !important;
}

.theme-contact-card--whatsapp .theme-contact-card__icon {
  background: rgba(24,191,91,.12) !important;
  color: #0ea64d !important;
}

.theme-contact-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.theme-contact-card__title {
  color: var(--text) !important;
  margin-bottom: 6px !important;
}

.theme-contact-card__text {
  display: block;
  color: var(--muted) !important;
  font-size: 14.5px;
  line-height: 1.7;
}

.theme-contact-card__link {
  margin-top: auto;
  padding-top: 12px;
  color: var(--primary) !important;
}

.theme-contact-card__link .material-symbols-outlined {
  font-size: 18px;
  vertical-align: middle;
}

.theme-contact-form-card {
  top: calc(var(--na-header-overlap, 90px) + 20px) !important;
  padding: clamp(24px, 3vw, 34px) !important;
}

.theme-contact-form-card__icon {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
}

.theme-contact-form-card__title {
  color: var(--text) !important;
  font-size: clamp(26px, 2.4vw, 36px) !important;
}

.theme-contact-form-card__form .gform_wrapper,
.theme-contact-form-card__content {
  margin-top: 6px;
}

.theme-contact-form-card__form input[type="text"],
.theme-contact-form-card__form input[type="email"],
.theme-contact-form-card__form input[type="tel"],
.theme-contact-form-card__form input[type="url"],
.theme-contact-form-card__form select,
.theme-contact-form-card__form textarea,
.theme-contact-form-card__content input[type="text"],
.theme-contact-form-card__content input[type="email"],
.theme-contact-form-card__content input[type="tel"],
.theme-contact-form-card__content input[type="url"],
.theme-contact-form-card__content select,
.theme-contact-form-card__content textarea {
  border-radius: 18px !important;
  background: #f8fafc !important;
  border-color: rgba(15,23,42,.08) !important;
}

.theme-contact-form-card__form input[type="submit"],
.theme-contact-form-card__content input[type="submit"],
.theme-contact-form-card__form button[type="submit"],
.theme-contact-form-card__content button[type="submit"] {
  border-radius: 18px !important;
  background: var(--primary) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 900 !important;
}

@media (max-width: 1100px) {
  .theme-contact-hero__grid,
  .theme-contact-layout {
    grid-template-columns: 1fr !important;
  }

  .theme-contact-hero__content,
  .theme-contact-hero__panel,
  .theme-contact-info,
  .theme-contact-form-card {
    max-width: 840px !important;
    width: 100% !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 767px) {
  .site-main > .theme-contact-hero:first-child {
    padding-top: calc(var(--na-real-header-rise, 86px) + 20px) !important;
  }

  .theme-contact-hero {
    padding-bottom: 38px !important;
  }

  .theme-contact-hero .site-breadcrumbs__list,
  .theme-contact-hero__actions {
    justify-content: center !important;
  }

  .theme-contact-hero__content,
  .theme-contact-hero__panel,
  .theme-contact-info,
  .theme-contact-form-card {
    border-radius: 26px !important;
    padding: 22px !important;
    text-align: center;
  }

  .theme-contact-hero__content::before {
    inset-inline: 50% auto;
    transform: translateX(50%);
  }

  .theme-contact-hero .theme-contact-hero__badge {
    margin-inline: auto;
  }

  .theme-contact-hero__title,
  .has-root-context .theme-contact-hero__title {
    font-size: clamp(34px, 10vw, 46px) !important;
  }

  .theme-contact-hero__text {
    font-size: 15.5px !important;
  }

  .theme-contact-hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .theme-contact-hero__quick-item,
  .theme-contact-strip__item,
  .theme-contact-card {
    text-align: start;
  }

  .theme-contact-strip {
    margin-top: -16px;
  }

  .theme-contact-strip__grid,
  .theme-contact-cards {
    grid-template-columns: 1fr !important;
  }

  .theme-contact-strip__grid {
    padding: 10px;
    border-radius: 22px;
  }

  .theme-contact-card {
    min-height: auto !important;
  }

  .theme-contact-subtitle {
    margin-inline: auto !important;
  }
}

/* =========================================================
   Contact Page Side Panel Controls
   ========================================================= */
.theme-contact-hero--no-panel .theme-contact-hero__grid {
  grid-template-columns: 1fr !important;
}

.theme-contact-hero--no-panel .theme-contact-hero__content {
  max-width: 920px !important;
  margin-inline: auto !important;
}

.theme-contact-hero--panel-side-start .theme-contact-hero__panel {
  order: -1;
}

.theme-contact-hero--panel-bottom .theme-contact-hero__grid {
  grid-template-columns: 1fr !important;
}

.theme-contact-hero--panel-bottom .theme-contact-hero__content {
  max-width: 980px !important;
  width: 100% !important;
  margin-inline: auto !important;
}

.theme-contact-hero--panel-bottom .theme-contact-hero__panel {
  width: min(100%, 980px) !important;
  margin-inline: auto !important;
}

.theme-contact-hero--panel-width-compact .theme-contact-hero__grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .58fr) !important;
}

.theme-contact-hero--panel-width-compact .theme-contact-hero__panel {
  max-width: 410px !important;
  margin-inline: auto !important;
}

.theme-contact-hero--panel-width-wide .theme-contact-hero__grid {
  grid-template-columns: minmax(0, .95fr) minmax(390px, .92fr) !important;
}

.theme-contact-hero--panel-width-wide .theme-contact-hero__panel {
  max-width: 620px !important;
  width: 100% !important;
}

.theme-contact-hero--panel-bottom.theme-contact-hero--panel-width-compact .theme-contact-hero__panel {
  width: min(100%, 720px) !important;
}

.theme-contact-hero--panel-bottom.theme-contact-hero--panel-width-wide .theme-contact-hero__panel {
  width: min(100%, 1120px) !important;
}

.theme-contact-hero__panel-head:empty,
.theme-contact-hero__quick-list:empty {
  display: none !important;
}

@media (max-width: 1100px) {
  .theme-contact-hero--panel-width-compact .theme-contact-hero__grid,
  .theme-contact-hero--panel-width-wide .theme-contact-hero__grid {
    grid-template-columns: 1fr !important;
  }

  .theme-contact-hero--panel-side-start .theme-contact-hero__panel {
    order: 2;
  }
}

/* =========================================================
   Single post contact bar alignment + icon polish
   ========================================================= */
.page-hero .base-post-contact-bar--align-center {
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-hero .base-post-contact-bar--align-right {
  margin-right: 0 !important;
  margin-left: auto !important;
}

.page-hero .base-post-contact-bar--align-left {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.page-hero .base-post-contact-bar--align-full {
  width: min(100%, 1100px) !important;
  max-width: 1100px !important;
}

.page-hero .base-post-contact-bar--no-head {
  justify-content: center !important;
}

.page-hero .base-post-contact-bar--no-head .base-post-contact-bar__actions {
  flex: 0 1 auto !important;
  justify-content: center !important;
}

.page-hero .base-post-contact-bar__head {
  flex: 0 0 auto;
}

.page-hero .base-post-contact-bar--no-icon .base-post-contact-bar__head {
  padding-inline: 8px;
}

.page-hero .base-post-contact-bar__icon,
.base-post-contact-btn svg,
.base-post-contact-btn .material-symbols-outlined,
.base-post-contact-btn .na-icon,
.base-post-contact-chip svg,
.base-post-contact-chip .material-symbols-outlined,
.base-post-contact-chip .na-icon {
  flex: 0 0 auto;
  line-height: 1 !important;
}

.page-hero .base-post-contact-bar__icon svg,
.page-hero .base-post-contact-bar__icon .material-symbols-outlined,
.page-hero .base-post-contact-bar__icon .na-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  font-size: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.page-hero .base-post-contact-btn,
.page-hero .base-post-contact-chip {
  min-height: 46px !important;
  padding: 10px 16px !important;
  gap: 8px !important;
  border-radius: 18px !important;
}

.page-hero .base-post-contact-btn svg,
.page-hero .base-post-contact-btn .material-symbols-outlined,
.page-hero .base-post-contact-btn .na-icon,
.page-hero .base-post-contact-chip svg,
.page-hero .base-post-contact-chip .material-symbols-outlined,
.page-hero .base-post-contact-chip .na-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  font-size: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.base-post-floating-contact__btn {
  min-height: 50px !important;
  padding: 10px 14px !important;
  border-radius: 20px !important;
  gap: 8px !important;
}

.base-post-floating-contact__btn svg,
.base-post-floating-contact__btn .material-symbols-outlined,
.base-post-floating-contact__btn .na-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  font-size: 22px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.base-post-floating-contact__btn--whatsapp svg,
.base-post-floating-contact__btn--whatsapp .na-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
}

@media (max-width: 782px) {
  .page-hero .base-post-contact-bar--align-right,
  .page-hero .base-post-contact-bar--align-left,
  .page-hero .base-post-contact-bar--align-center,
  .page-hero .base-post-contact-bar--align-full {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-hero .base-post-contact-bar__head {
    justify-content: center !important;
  }

  .page-hero .base-post-contact-bar__icon {
    width: 36px !important;
    height: 36px !important;
  }

  .page-hero .base-post-contact-btn,
  .page-hero .base-post-contact-chip {
    min-height: 44px !important;
    padding: 9px 12px !important;
    border-radius: 16px !important;
  }

  .base-post-floating-contact__btn {
    min-height: 48px !important;
    border-radius: 16px !important;
  }
}

/* =========================================================
   Base Theme Term Cards Columns Control
   wp-admin/term.php?taxonomy=...
   ========================================================= */
.posts-grid--base-term-columns {
  align-items: stretch;
}

.posts-grid--base-term-columns-1 {
  grid-template-columns: minmax(0, min(100%, 560px)) !important;
  justify-content: center;
}

.posts-grid--base-term-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.posts-grid--base-term-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.posts-grid--base-term-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.posts-grid--base-term-columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.posts-grid--base-term-columns-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

@media (max-width: 1199px) {
  .posts-grid--base-term-columns-4,
  .posts-grid--base-term-columns-5,
  .posts-grid--base-term-columns-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991px) {
  .posts-grid--base-term-columns-3,
  .posts-grid--base-term-columns-4,
  .posts-grid--base-term-columns-5,
  .posts-grid--base-term-columns-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .posts-grid--base-term-columns-1,
  .posts-grid--base-term-columns-2,
  .posts-grid--base-term-columns-3,
  .posts-grid--base-term-columns-4,
  .posts-grid--base-term-columns-5,
  .posts-grid--base-term-columns-6 {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   Front Page Latest Posts Cards Columns Control
   admin.php?page=bahaa-front-page-settings
   ========================================================= */
.posts-grid--home-posts-columns {
  align-items: stretch;
}

.posts-grid--home-posts-columns-1 {
  grid-template-columns: minmax(0, min(100%, 560px)) !important;
  justify-content: center;
}

.posts-grid--home-posts-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.posts-grid--home-posts-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.posts-grid--home-posts-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.posts-grid--home-posts-columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.posts-grid--home-posts-columns-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

@media (max-width: 1199px) {
  .posts-grid--home-posts-columns-4,
  .posts-grid--home-posts-columns-5,
  .posts-grid--home-posts-columns-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991px) {
  .posts-grid--home-posts-columns-3,
  .posts-grid--home-posts-columns-4,
  .posts-grid--home-posts-columns-5,
  .posts-grid--home-posts-columns-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .posts-grid--home-posts-columns-1,
  .posts-grid--home-posts-columns-2,
  .posts-grid--home-posts-columns-3,
  .posts-grid--home-posts-columns-4,
  .posts-grid--home-posts-columns-5,
  .posts-grid--home-posts-columns-6 {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Single post contact bar alignment final fix
   admin.php?page=bahaa-theme-base-blog
   يجعل خيار محاذاة كارت التواصل واضحًا وفعليًا داخل هيرو المقالة.
   ========================================================= */
.page-hero .page-header .base-post-contact-bar {
  box-sizing: border-box !important;
  width: fit-content !important;
  width: -moz-fit-content !important;
  min-width: min(100%, 520px) !important;
  max-width: min(100%, 940px) !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
}

.page-hero .page-header .base-post-contact-bar__actions {
  flex: 0 1 auto !important;
  justify-content: flex-start !important;
}

.page-hero .page-header .base-post-contact-bar--align-right {
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  margin-right: 0 !important;
  margin-left: auto !important;
}

.page-hero .page-header .base-post-contact-bar--align-left {
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

.page-hero .page-header .base-post-contact-bar--align-center {
  margin-inline-start: auto !important;
  margin-inline-end: auto !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.page-hero .page-header .base-post-contact-bar--align-full {
  width: min(100%, 980px) !important;
  min-width: 0 !important;
  max-width: 980px !important;
  margin-inline-start: auto !important;
  margin-inline-end: auto !important;
  margin-right: auto !important;
  margin-left: auto !important;
  justify-content: space-between !important;
}

.page-hero .page-header .base-post-contact-bar--align-full .base-post-contact-bar__actions {
  flex: 1 1 360px !important;
  justify-content: flex-end !important;
}

.page-hero .page-header .base-post-contact-bar--no-head:not(.base-post-contact-bar--align-full) {
  min-width: 0 !important;
}

.page-hero .page-header .base-post-contact-bar--no-head .base-post-contact-bar__actions {
  flex: 0 1 auto !important;
}

.page-hero .page-header .base-post-contact-bar--align-full.base-post-contact-bar--no-head .base-post-contact-bar__actions {
  flex: 1 1 auto !important;
  justify-content: center !important;
}

.page-hero .base-post-contact-bar__icon,
.page-hero .base-post-contact-btn svg,
.page-hero .base-post-contact-btn .material-symbols-outlined,
.page-hero .base-post-contact-btn .na-icon,
.page-hero .base-post-contact-chip svg,
.page-hero .base-post-contact-chip .material-symbols-outlined,
.page-hero .base-post-contact-chip .na-icon {
  overflow: visible !important;
}

@media (max-width: 782px) {
  .page-hero .page-header .base-post-contact-bar,
  .page-hero .page-header .base-post-contact-bar--align-right,
  .page-hero .page-header .base-post-contact-bar--align-left,
  .page-hero .page-header .base-post-contact-bar--align-center,
  .page-hero .page-header .base-post-contact-bar--align-full {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline-start: auto !important;
    margin-inline-end: auto !important;
    margin-right: auto !important;
    margin-left: auto !important;
    justify-content: center !important;
  }

  .page-hero .page-header .base-post-contact-bar__actions,
  .page-hero .page-header .base-post-contact-bar--align-full .base-post-contact-bar__actions {
    flex: 1 1 auto !important;
    width: 100% !important;
    justify-content: stretch !important;
  }
}

/* =========================================================
   Base Single Related Posts Section
   admin.php?page=bahaa-theme-base-blog
   ========================================================= */
.base-related-posts {
  padding: clamp(48px, 7vw, 86px) 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 180, 52, .09), transparent 28rem),
    linear-gradient(180deg, rgba(248, 250, 252, .35), rgba(248, 250, 252, .95));
  border-top: 1px solid rgba(15, 23, 42, .07);
}

.base-related-posts__header {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 28px;
  text-align: center;
}

.base-related-posts__header h2 {
  margin: 12px 0 10px;
  color: var(--text, #252C41);
  font-weight: 900;
  line-height: 1.2;
}

.base-related-posts__header p {
  margin: 0;
  color: var(--muted, #64748b);
  line-height: 1.9;
}

.base-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
  align-items: stretch;
}

.base-related-posts__grid--controlled {
  grid-template-columns: repeat(var(--base-related-columns, 3), minmax(0, 1fr));
}

.base-related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.base-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 180, 52, .34);
  box-shadow: 0 22px 48px rgba(15, 23, 42, .11);
}

.base-related-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 44, 65, .08), rgba(255, 180, 52, .16));
  color: var(--primary, #252C41);
}

.base-related-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.base-related-card:hover .base-related-card__thumb img {
  transform: scale(1.045);
}

.base-related-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 190px;
}

.base-related-card__placeholder .material-symbols-outlined,
.base-related-card__placeholder .na-icon {
  width: 54px;
  height: 54px;
  font-size: 54px;
  opacity: .6;
}

.base-related-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 18px 20px;
}

.base-related-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  color: var(--muted, #64748b);
  font-size: 13px;
  font-weight: 700;
}

.base-related-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.base-related-card__meta .material-symbols-outlined,
.base-related-card__meta .na-icon {
  width: 17px;
  height: 17px;
  font-size: 17px;
  color: var(--accent, #ffb434);
}

.base-related-card__title {
  margin: 0 0 10px;
  color: var(--text, #252C41);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 900;
  line-height: 1.38;
}

.base-related-card__title a {
  color: inherit;
  text-decoration: none;
}

.base-related-card__title a:hover {
  color: var(--primary, #252C41);
}

.base-related-card__excerpt {
  margin: 0 0 18px;
  color: var(--muted, #64748b);
  line-height: 1.85;
}

.base-related-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: #fff;
  color: var(--primary, #252C41);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.base-related-card__more:hover {
  background: var(--primary, #252C41);
  color: #fff;
  border-color: transparent;
}

.base-related-card__more .material-symbols-outlined,
.base-related-card__more .na-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

@media (max-width: 1199px) {
  .base-related-posts__grid--columns-4,
  .base-related-posts__grid--columns-5,
  .base-related-posts__grid--columns-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .base-related-posts__grid--columns-3,
  .base-related-posts__grid--columns-4,
  .base-related-posts__grid--columns-5,
  .base-related-posts__grid--columns-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .base-related-posts {
    padding: 42px 0 58px;
  }

  .base-related-posts__grid,
  .base-related-posts__grid--controlled {
    grid-template-columns: 1fr !important;
  }

  .base-related-card__body {
    padding: 16px;
  }
}


/* Home latest posts view-all controls */
.home-posts-view-all {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-posts-view-all--head {
  justify-content: flex-end;
  flex-shrink: 0;
}

.home-posts-view-all--bottom {
  justify-content: center;
  margin-top: 32px;
}

.home-posts-view-all-link {
  white-space: nowrap;
}

.home-posts-view-all-link .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 767px) {
  .home-posts-view-all--head {
    justify-content: flex-start;
    width: 100%;
  }

  .home-posts-view-all-link {
    width: 100%;
    justify-content: center;
  }
}


/* Base theme search results controls */
.posts-grid--base-search-columns {
  grid-template-columns: repeat(var(--base-search-columns, 3), minmax(0, 1fr));
}
.posts-grid--base-search-columns-1 { --base-search-columns: 1; }
.posts-grid--base-search-columns-2 { --base-search-columns: 2; }
.posts-grid--base-search-columns-3 { --base-search-columns: 3; }
.posts-grid--base-search-columns-4 { --base-search-columns: 4; }
.posts-grid--base-search-columns-5 { --base-search-columns: 5; }
.posts-grid--base-search-columns-6 { --base-search-columns: 6; }
.post-card--search-result .post-card__meta--search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.post-card--search-result .post-card__meta--search > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.post-card--search-result .post-card__meta--search .material-symbols-outlined {
  font-size: 17px;
  line-height: 1;
}
.post-card--search-result .post-card__placeholder {
  min-height: 170px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(255,180,52,.12), rgba(37,44,65,.05));
}
.post-card--search-result .post-card__placeholder .material-symbols-outlined {
  font-size: 42px;
}
@media (max-width: 1180px) {
  .posts-grid--base-search-columns-5,
  .posts-grid--base-search-columns-6 {
    --base-search-columns: 4;
  }
}
@media (max-width: 980px) {
  .posts-grid--base-search-columns-4,
  .posts-grid--base-search-columns-5,
  .posts-grid--base-search-columns-6 {
    --base-search-columns: 3;
  }
}
@media (max-width: 720px) {
  .posts-grid--base-search-columns-2,
  .posts-grid--base-search-columns-3,
  .posts-grid--base-search-columns-4,
  .posts-grid--base-search-columns-5,
  .posts-grid--base-search-columns-6 {
    --base-search-columns: 1;
  }
}

/* Base theme search results: polished cards using base color controls. */
body.bahaa-theme-base-view.search .page-content-wrap--search,
body.bahaa-theme-base-view.search-results .page-content-wrap--search,
body.bahaa-theme-base-view.search-no-results .page-content-wrap--search {
  position: relative;
  padding-top: clamp(42px, 5vw, 74px);
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 26%),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 24%);
}

body.bahaa-theme-base-view.search .posts-grid--base-search,
body.bahaa-theme-base-view.search-results .posts-grid--base-search {
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}

body.bahaa-theme-base-view.search .post-card--search-result,
body.bahaa-theme-base-view.search-results .post-card--search-result {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--base-card-bg, #fff) 96%, var(--accent) 4%), var(--base-card-bg, #fff));
  border: 1px solid color-mix(in srgb, var(--base-card-border, var(--border)) 78%, transparent);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .065);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.bahaa-theme-base-view.search .post-card--search-result::before,
body.bahaa-theme-base-view.search-results .post-card--search-result::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .62;
  background:
    radial-gradient(circle at 16% 10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 31%),
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 28%);
  pointer-events: none;
}

body.bahaa-theme-base-view.search .post-card--search-result:hover,
body.bahaa-theme-base-view.search-results .post-card--search-result:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--base-card-border, var(--border)));
  box-shadow: 0 22px 54px rgba(15, 23, 42, .11);
}

body.bahaa-theme-base-view.search .post-card--search-result .post-card__thumb,
body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__thumb,
body.bahaa-theme-base-view.search .post-card--search-result .post-card__placeholder,
body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__placeholder {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--base-card-border, var(--border)) 65%, transparent);
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 35%),
    linear-gradient(135deg, var(--base-post-thumb-start, var(--primary)), var(--base-post-thumb-end, var(--accent)));
}

body.bahaa-theme-base-view.search .post-card--search-result .post-card__thumb::after,
body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(15, 23, 42, .16));
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

body.bahaa-theme-base-view.search .post-card--search-result:hover .post-card__thumb::after,
body.bahaa-theme-base-view.search-results .post-card--search-result:hover .post-card__thumb::after {
  opacity: 1;
}

body.bahaa-theme-base-view.search .post-card--search-result .post-card__thumb img,
body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__thumb img {
  transform: scale(1.001);
  transition: transform .28s ease;
}

body.bahaa-theme-base-view.search .post-card--search-result:hover .post-card__thumb img,
body.bahaa-theme-base-view.search-results .post-card--search-result:hover .post-card__thumb img {
  transform: scale(1.045);
}

body.bahaa-theme-base-view.search .post-card--search-result .post-card__body,
body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__body {
  padding: 16px 4px 2px;
  gap: 11px;
}

body.bahaa-theme-base-view.search .post-card--search-result .post-card__meta--search,
body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__meta--search {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

body.bahaa-theme-base-view.search .post-card--search-result .post-card__meta--search > span,
body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__meta--search > span {
  min-width: 0;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--base-card-icon-bg, var(--surface-2)) 76%, #fff);
  color: var(--base-card-muted, var(--muted));
  border: 1px solid color-mix(in srgb, var(--base-card-border, var(--border)) 62%, transparent);
  font-weight: 800;
  line-height: 1.35;
}

body.bahaa-theme-base-view.search .post-card--search-result .post-card__meta--search .material-symbols-outlined,
body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__meta--search .material-symbols-outlined {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 15%, #fff);
  color: var(--base-card-icon-text, var(--accent));
  font-size: 16px;
}

body.bahaa-theme-base-view.search .post-card--search-result .post-card__title,
body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__title {
  margin: 0 !important;
  color: var(--base-card-title, var(--primary)) !important;
  font-size: clamp(20px, 1.62vw, 25px) !important;
  line-height: 1.36 !important;
  letter-spacing: -.015em;
}

body.bahaa-theme-base-view.search .post-card--search-result .post-card__title a,
body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__title a {
  color: var(--base-card-title, var(--primary)) !important;
  -webkit-line-clamp: 2;
}

body.bahaa-theme-base-view.search .post-card--search-result .post-card__excerpt,
body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__excerpt {
  margin: 0 !important;
  color: var(--base-card-muted, var(--muted)) !important;
  font-size: 14.5px !important;
  line-height: 1.82 !important;
  -webkit-line-clamp: 3;
}

body.bahaa-theme-base-view.search .post-card--search-result .link-detail,
body.bahaa-theme-base-view.search-results .post-card--search-result .link-detail {
  align-self: stretch;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  margin-top: auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--base-button-bg, var(--accent)) 10%, #fff);
  color: var(--base-link-color, var(--accent)) !important;
  border: 1px solid color-mix(in srgb, var(--base-button-bg, var(--accent)) 18%, transparent);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .055);
}

body.bahaa-theme-base-view.search .post-card--search-result .link-detail:hover,
body.bahaa-theme-base-view.search-results .post-card--search-result .link-detail:hover {
  background: var(--base-button-bg, var(--accent));
  color: var(--base-button-text, #fff) !important;
  text-decoration: none;
}

body.bahaa-theme-base-view.search .archive-hero--search .search-form--page,
body.bahaa-theme-base-view.search-results .archive-hero--search .search-form--page,
body.bahaa-theme-base-view.search-no-results .archive-hero--search .search-form--page {
  max-width: 940px;
  margin: 22px auto 0;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--base-card-border, var(--border)) 70%, transparent);
  border-radius: 999px;
  background: var(--base-card-bg, #fff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .055);
}

body.bahaa-theme-base-view.search .archive-hero--search .search-field,
body.bahaa-theme-base-view.search-results .archive-hero--search .search-field,
body.bahaa-theme-base-view.search-no-results .archive-hero--search .search-field {
  border: 0;
  background: transparent;
  min-height: 48px;
  color: var(--text);
}

body.bahaa-theme-base-view.search .archive-hero--search .search-submit,
body.bahaa-theme-base-view.search-results .archive-hero--search .search-submit,
body.bahaa-theme-base-view.search-no-results .archive-hero--search .search-submit {
  min-width: 92px;
  border: 0;
  border-radius: 999px;
  background: var(--base-button-bg, var(--accent));
  color: var(--base-button-text, #fff);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 720px) {
  body.bahaa-theme-base-view.search .post-card--search-result,
  body.bahaa-theme-base-view.search-results .post-card--search-result {
    padding: 12px;
    border-radius: 24px;
  }
  body.bahaa-theme-base-view.search .post-card--search-result .post-card__body,
  body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__body {
    padding: 14px 2px 2px;
  }
  body.bahaa-theme-base-view.search .post-card--search-result .post-card__title,
  body.bahaa-theme-base-view.search-results .post-card--search-result .post-card__title {
    font-size: 22px !important;
  }
  body.bahaa-theme-base-view.search .archive-hero--search .search-form--page,
  body.bahaa-theme-base-view.search-results .archive-hero--search .search-form--page,
  body.bahaa-theme-base-view.search-no-results .archive-hero--search .search-form--page {
    border-radius: 22px;
    align-items: stretch;
  }
  body.bahaa-theme-base-view.search .archive-hero--search .search-submit,
  body.bahaa-theme-base-view.search-results .archive-hero--search .search-submit,
  body.bahaa-theme-base-view.search-no-results .archive-hero--search .search-submit {
    min-height: 46px;
  }
}


/* Footer powered by controls */
.footer-powered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.6;
}

.footer-powered__label {
  color: rgba(255, 255, 255, .68);
  font-weight: 700;
}

.footer-powered__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.footer-powered__brand .material-symbols-outlined {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

.footer-powered__brand[href]:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .24);
}

.footer-bottom:has(.footer-powered) {
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer-powered,
  .footer-powered__brand {
    width: 100%;
  }

  .footer-powered__brand {
    max-width: 280px;
  }
}

/* =========================================================
   Theme contact page dynamic controls
   ========================================================= */
.theme-contact-strip__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.theme-contact-layout--single {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
}

.theme-contact-layout--single .theme-contact-info,
.root-contact-layout--single .root-contact-info.theme-contact-info {
  width: min(100%, 980px) !important;
  max-width: 980px !important;
  margin-inline: auto !important;
}

@media (min-width: 1101px) {
  .theme-contact-layout--single .theme-contact-info {
    justify-self: center !important;
  }
}

/* =========================================================
   Contact page single-card layout hard fix
   ========================================================= */
.theme-contact-section--single .root-contact-layout.theme-contact-layout.root-contact-layout--single.theme-contact-layout--single,
.root-contact-layout.root-contact-layout--single {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.theme-contact-section--single .root-contact-layout.theme-contact-layout.root-contact-layout--single.theme-contact-layout--single > .root-contact-info.theme-contact-info,
.root-contact-layout.root-contact-layout--single > .root-contact-info {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  margin-inline: auto !important;
  width: min(100%, 980px) !important;
  max-width: 980px !important;
}

.theme-contact-section--single .theme-contact-cards {
  width: 100% !important;
}
