/* ========================================================
   منصة صحة - تنسيقات مخصصة ومتجاوبة مع مختلف أجهزة العرض
   (Mobile, Tablet, Laptop, Desktop, 4K)
   ======================================================== */

:root {
  --app-header-height: 72px;
  --bs-primary: #1b8354;
  --bs-primary-dark: #05603a;
  --bs-primary-light: #eaf8f1;
  --Background-background-menu: #FFFFFF;
  --Border-border-neutral-primary: #D2D6DB;
  --Link-link-neutral: #384250;
  --text-primary: #161616;
  --text-muted: #6c737f;
  --bg-page: #f7fdf9;
  --font-family-sans: 'IBM Plex Sans Arabic', 'Cairo', system-ui, -apple-system, sans-serif;
}

@media (max-width: 576px) {
  :root {
    --app-header-height: 64px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-sans);
  background-color: #fff;
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

button, input {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
}

@media (max-width: 991px) {
  .d-lg-flex { display: none !important; }
}

/* ========================================================
   الهيكل العام والحاويات (Layout & Containers)
   ======================================================== */
.App {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: #fff;
}

main {
  flex: 1 0 auto;
  width: 100%;
  min-height: calc(100vh - var(--app-header-height));
  position: relative;
  background-color: #fff;
  overflow-x: hidden;
}

.container-fluid {
  width: 100%;
  padding-right: clamp(16px, 4vw, 40px);
  padding-left: clamp(16px, 4vw, 40px);
  margin-right: auto;
  margin-left: auto;
}

/* ========================================================
   شريط التنقل العلوي (Header & Navigation)
   ======================================================== */
.app-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--Background-background-menu, #FFFFFF);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  height: var(--app-header-height);
  transition: box-shadow 0.25s ease;
}

.header, .navbar {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  height: 100%;
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 60px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Logo */
.header-brand-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--app-header-height);
  padding: 8px 0;
  text-decoration: none;
}

.navbar-brand .logo {
  height: clamp(38px, 5vw, 48px);
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.navbar-brand:hover .logo {
  transform: scale(1.02);
}

/* Desktop Collapsible Menu Structure */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-right: clamp(16px, 2.5vw, 36px);
  }

  .header-section--tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(4px, 0.75vw, 12px);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .header-section--tabs .link {
    position: relative;
    font-size: clamp(14px, 1.05vw, 16px);
    font-weight: 500;
    line-height: 24px;
    padding: 8px clamp(10px, 1.1vw, 16px);
    color: var(--text-primary);
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .header-section--tabs .link:hover {
    color: var(--bs-primary);
    background-color: #f3f4f6;
  }

  .header-section--tabs .link.active {
    color: var(--bs-primary);
    font-weight: 700;
    background-color: #eaf8f1;
  }

  .header-section--tabs .link.active:before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -16px;
    height: 3px;
    border-radius: 4px;
    background: var(--bs-primary);
  }

  .header-section--actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .header .register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
  }

  .header .register:hover {
    background-color: #f3f4f6;
  }

  .header .login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #161616;
    background-color: #f3f4f6;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .header .login:hover {
    background-color: #e5e7eb;
  }
}

/* Mobile Menu Styles (< 992px) */
@media (max-width: 991px) {
  .navbar-toggler {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: #f3f4f6;
    border: 1px solid var(--Border-border-neutral-primary, #D2D6DB);
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    gap: 5px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .navbar-toggler:hover {
    background-color: #e5e7eb;
  }

  .navbar-toggler .toggler-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* Hamburger to X Transformation */
  .navbar-toggler.active .toggler-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .navbar-toggler.active .toggler-bar:nth-child(2) {
    opacity: 0;
  }
  .navbar-toggler.active .toggler-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .navbar-collapse {
    position: fixed;
    top: var(--app-header-height);
    right: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - var(--app-header-height));
    overflow-y: auto;
    padding: 16px 20px 28px;
    border-top: 1px solid #e5e7eb;
    display: none;
    flex-direction: column;
    gap: 16px;
    z-index: 998;
    animation: slideDownMenu 0.25s ease-out;
  }

  .navbar-collapse.show {
    display: flex !important;
  }

  @keyframes slideDownMenu {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .header-section--tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .header-section--tabs .link {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 8px;
    text-align: right;
    transition: background-color 0.15s ease;
  }

  .header-section--tabs .link:active,
  .header-section--tabs .link:hover {
    background-color: #f3f4f6;
  }

  .header-section--tabs .link.active {
    background-color: #eaf8f1;
    color: var(--bs-primary);
    font-weight: 700;
  }

  .header-section--actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
  }

  .header .login, .header .register {
    width: 100%;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
  }

  .header .login {
    background: #f3f4f6;
    color: #161616;
  }
  .header .login:active {
    background: #e5e7eb;
  }

  .header .register {
    background: transparent;
    border: 1px solid var(--Border-border-neutral-primary, #D2D6DB);
    color: var(--text-primary);
  }
  .header .register:active {
    background: #f9fafb;
  }

  /* Backdrop for mobile menu */
  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    top: var(--app-header-height);
    background: rgba(0, 0, 0, 0.4);
    z-index: 997;
    backdrop-filter: blur(2px);
    display: none;
    animation: modalFadeIn 0.2s ease-out;
  }

  .mobile-nav-backdrop.show {
    display: block;
  }
}

/* Scroll To Top Button */
#top-button {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 42px;
  height: 42px;
  z-index: 999;
  border: none;
  outline: none;
  background-color: var(--bs-primary);
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(27, 131, 84, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

#top-button:hover {
  background-color: var(--bs-primary-dark);
  transform: translateY(-2px);
}

#top-button svg {
  width: 14px;
  height: 14px;
}

/* ========================================================
   مسار التصفح (Breadcrumb)
   ======================================================== */
.page-content-breadcrumb-row {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-page);
  margin-top: var(--app-header-height);
  border-bottom: 1px solid rgba(27, 131, 84, 0.08);
}

.page-content-breadcrumb-row__inner {
  width: min(100% - clamp(24px, 4vw, 48px), 1720px);
  margin-inline: auto;
  box-sizing: border-box;
  padding: clamp(14px, 2.5vw, 24px) 0 0;
}

.page-content-breadcrumb-row .warp-breadcrumb {
  text-align: right;
}

.page-content-breadcrumb-row .warp-breadcrumb ol.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-content-breadcrumb-row .warp-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--text-muted);
}

.page-content-breadcrumb-row .warp-breadcrumb .breadcrumb-item + .breadcrumb-item:before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M10 4L6 8L10 12' stroke='%239da4ae' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.page-content-breadcrumb-row .warp-breadcrumb .breadcrumb-item a {
  color: #384250;
  font-weight: 600;
}

.page-content-breadcrumb-row .warp-breadcrumb .breadcrumb-item a:hover {
  color: var(--bs-primary);
}

.page-content-breadcrumb-row .warp-breadcrumb .breadcrumb-item.active {
  color: #9DA4AE;
  font-weight: 600;
}

/* ========================================================
   قسم الاستعلام وبطاقة الإجازة (Hero & Inquiry Card)
   ======================================================== */
.sl-inquiry {
  width: 100%;
  margin-inline: auto;
  padding-bottom: clamp(32px, 6vw, 64px);
  min-height: 55vh;
  font-family: var(--font-family-sans);
}

.sl-inquiry__hero {
  width: 100%;
  background: var(--bg-page);
  border-bottom: 1px solid rgba(27, 131, 84, 0.08);
  margin-bottom: clamp(20px, 4vw, 36px);
}

.sl-inquiry__hero-inner {
  width: min(100% - clamp(24px, 4vw, 48px), 1720px);
  margin-inline: auto;
  padding: clamp(20px, 4vw, 40px) 0;
  padding-inline-start: clamp(12px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}

.sl-inquiry__hero h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.sl-inquiry__hero p {
  margin: 0;
  color: #000000;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.7;
  max-width: 820px;
}

/* Inquiry Card */
.sl-inquiry-card-wrapper {
  width: min(100% - clamp(24px, 4vw, 48px), 660px);
  margin-inline: auto;
}

.sl-inquiry__card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 4.5vw, 32px);
  border: 1px solid #e5e7eb;
  border-radius: clamp(12px, 2vw, 16px);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06), 0 2px 4px rgba(16, 24, 40, 0.04);
  transition: box-shadow 0.25s ease;
}

.sl-inquiry__card-title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  text-align: right;
}

.sl-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.sl-field label {
  color: #384250;
  font-size: 14px;
  font-weight: 600;
}

.sl-field input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #d2d6db;
  border-radius: 6px;
  padding-inline: 14px;
  font-size: 15px;
  color: var(--text-primary);
  background: #fff;
  text-align: right;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sl-field input::placeholder {
  color: #9da4ae;
}

.sl-field input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(27, 131, 84, 0.15);
}

.sl-field input:disabled {
  background: #f9fafb;
  color: #384250;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

.sl-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .sl-actions {
    flex-direction: column-reverse;
  }
}

.sl-btn {
  flex: 1 1 auto;
  min-width: 140px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sl-btn:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .sl-btn {
    width: 100%;
    flex: 1 1 100%;
  }
}

.sl-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sl-btn .sl-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sl-btn .sl-search-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.sl-btn--primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #ffffff;
}

.sl-btn--primary .sl-search-icon img {
  filter: brightness(0) invert(1);
}

.sl-btn--primary:hover:not(:disabled) {
  background: var(--bs-primary-dark);
  border-color: var(--bs-primary-dark);
  box-shadow: 0 4px 12px rgba(27, 131, 84, 0.25);
}

.sl-btn--outline {
  background: #ffffff;
  border-color: #d2d6db;
  color: var(--text-primary);
}

.sl-btn--outline:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9da4ae;
}

.sl-btn:disabled {
  cursor: not-allowed;
}

.sl-btn--primary:disabled {
  background: #6ba88f;
  border-color: #6ba88f;
  color: #ffffff;
  opacity: 1;
}

/* 8-dot circular spinner matching exact design */
.sl-spinner-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  animation: slSpinDots 0.8s steps(8) infinite;
}

@keyframes slSpinDots {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Results Grid */
.sl-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
  padding: 16px;
  border-radius: 10px;
  background-color: #fafbfc;
  border: 1px solid #eef0f3;
  cursor: default;
  user-select: text;
}

@media (max-width: 576px) {
  .sl-results {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
}

.sl-results__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: right;
  padding: 8px 12px;
  /* background: #ffffff; */
  border-radius: 6px;
  /* border: 1px solid #f0f2f5; */
}

.sl-results__item span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.sl-results__item span:after {
  content: " :";
}

.sl-results__item b {
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Alerts */
.sl-alert {
  margin: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  text-align: right;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-family: var(--font-family-sans);
  line-height: 20px;
  font-weight: 500;
  animation: slFadeIn 0.25s ease-out;
}

.sl-alert--top {
  margin-bottom: 2px;
}

.sl-alert--bottom {
  margin-top: 2px;
}

@keyframes slFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sl-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: slSpin 0.7s linear infinite;
  margin: 0;
  vertical-align: middle;
}

@keyframes slSpin {
  to { transform: rotate(360deg); }
}

/* ========================================================
   تذييل الصفحة والشعارات (Footer & Logos)
   ======================================================== */
div.footer-container {
  color: #55627a;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(16px, 3vw, 24px);
  background-color: #f3f4f6;
  width: 100%;
  border-top: 1px solid #e5e7eb;
}

div.footer-container .footer {
  width: min(100% - clamp(24px, 4vw, 48px), 1720px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--Border-border-neutral-primary, #D2D6DB);
}

@media (max-width: 600px) {
  div.footer-container .footer {
    grid-template-columns: 1fr;
    text-align: right;
  }
}

div.footer-container .section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

div.footer-container h3.heading {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  padding-bottom: 10px;
  margin: 0 0 14px 0;
  border-bottom: 1.5px solid var(--Border-border-neutral-primary, #D2D6DB);
}

div.footer-container h3.heading .heading-label {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

div.footer-container .links-wrapepr {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

div.footer-container .inquiry-li {
  display: flex;
  align-items: center;
  width: 100%;
}

div.footer-container .inquiry-li .nav-link {
  color: #384250;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  padding: 2px 0;
  transition: color 0.2s ease;
}

div.footer-container .inquiry-li .nav-link:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

/* Contact Links in Footer */
div.footer-container .footer-contact__values {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

div.footer-container .contact-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

div.footer-container .contact-link-text {
  color: #384250;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

div.footer-container .contact-link-text:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

div.footer-container .contact-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  flex-shrink: 0;
}

div.footer-container .contact-icon-leading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

div.footer-container .contact-icon-leading img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

div.footer-container .contact-hours-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

div.footer-container .contact-hours-text {
  color: #384250;
  font-size: 13.5px;
  line-height: 20px;
  white-space: pre-line;
}

/* Social & Accessibility */
div.footer-container .footer-follow__icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

div.footer-container .social-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--Border-border-neutral-primary, #D2D6DB);
  border-radius: 6px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

div.footer-container .social-icon-btn:hover {
  border-color: #9da4ae;
  transform: translateY(-2px);
}

div.footer-container .social-icon-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

div.footer-container .footer-access__btn {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid var(--Border-border-neutral-primary, #D2D6DB);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

div.footer-container .footer-access__btn:hover {
  border-color: #9da4ae;
  transform: translateY(-2px);
}

/* Footer Bottom Layout */
div.footer-container .footer-bottom {
  width: min(100% - clamp(24px, 4vw, 48px), 1720px);
  margin-inline: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
}

@media (max-width: 991px) {
  div.footer-container .footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
}

div.footer-container .footer-note-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

div.footer-container .footer-note-wrapper p {
  margin: 0;
  font-size: 14px;
  color: #384250;
  line-height: 22px;
}

div.footer-container .footer-poweredby {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  div.footer-container .footer-poweredby {
    justify-content: center;
  }
}

div.footer-container .footer-poweredby__icon {
  height: 16px;
  width: auto;
  object-fit: contain;
}

div.footer-container ul.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  div.footer-container ul.footer-legal-links {
    justify-content: center;
  }
}

div.footer-container ul.footer-legal-links li a {
  font-size: 13.5px;
  color: #384250;
  text-decoration: underline;
  transition: color 0.2s ease;
}

div.footer-container ul.footer-legal-links li a:hover {
  color: var(--bs-primary);
}

/* Logos at footer bottom */
div.footer-container .footer-bottom .contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 18px);
  width: auto;
  max-width: 100%;
}

div.footer-container .footer-bottom .contact img {
  height: clamp(30px, 4vw, 38px);
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

div.footer-container .footer-bottom .contact .ai-logo { max-width: 108px; }
div.footer-container .footer-bottom .contact .moh-logo { max-width: 160px; }
div.footer-container .footer-bottom .contact .lean-logo { max-width: 72px; }
div.footer-container .footer-bottom .contact .vision2030-logo { max-width: 85px; }

div.footer-container .footer-bottom .contact .contact__divider {
  width: 1px;
  height: 28px;
  background-color: var(--Border-border-neutral-primary, #D2D6DB);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  div.footer-container .footer-bottom .contact .contact__divider {
    display: none;
  }
}

/* ========================================================
   النوافذ المنبثقة، التقرير المعتمد، ومساعد الذكاء الاصطناعي
   (Modals & Responsive Cert)
   ======================================================== */
.seha-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
  box-sizing: border-box;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.seha-modal {
  background: #ffffff;
  width: min(calc(100% - 24px), 540px);
  max-height: calc(100vh - 40px);
  border-radius: 16px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15), 0 10px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-family-sans);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e5e7eb;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.seha-modal__header {
  padding: 16px 20px;
  background: #f7fdf9;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.seha-modal__title {
  margin: 0;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  color: var(--text-primary);
}

.seha-modal__close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.seha-modal__close:hover {
  color: var(--text-primary);
  background: #e5e7eb;
}

.seha-modal__body {
  padding: clamp(16px, 3.5vw, 24px);
  font-size: 15px;
  color: #384250;
  line-height: 1.6;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.seha-modal__footer {
  padding: 12px 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Mobile Adjustments for Floating Widgets */
@media (max-width: 576px) {
  elevenlabs-convai {
    bottom: 16px !important;
    right: 16px !important;
    transform: scale(0.9);
    transform-origin: bottom right;
  }

  #top-button {
    bottom: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
  }
}