@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --color-primary: #075cf5;
  --color-primary-50: #101a2c;
  --color-primary-100: #14233a;
  --color-primary-200: #203653;
  --color-primary-300: #376184;
  --color-primary-400: #55a8e8;
  --color-primary-500: #1684ff;
  --color-primary-600: #075cf5;
  --color-primary-700: #0649c7;
  --color-primary-800: #0b367f;
  --color-primary-900: #0a2450;
  --color-background: #090f1d;
  --color-surface: #111b2e;
  --color-text-primary: #f4f7ff;
  --color-text-secondary: #a2b0c6;
  --color-text-tertiary: #8292ad;
  --color-border: #24324b;
  --color-border-light: #1c2940;
  --shadow-card: 0 14px 35px rgba(0, 0, 0, .2);
  --shadow-card-hover: 0 18px 42px rgba(0, 0, 0, .3);
}

body:not(.ghayah-redesigned) {
  min-height: 100vh;
  background: #090f1d !important;
  color: #f4f7ff;
  font-family: "IBM Plex Sans Arabic", Inter, "Segoe UI", sans-serif !important;
}

body:not(.ghayah-redesigned) h1,
body:not(.ghayah-redesigned) h2,
body:not(.ghayah-redesigned) h3,
body:not(.ghayah-redesigned) h4 {
  color: #f4f7ff;
}

body:not(.ghayah-redesigned) h1,
body:not(.ghayah-redesigned) h2,
body:not(.ghayah-redesigned) h3,
body:not(.ghayah-redesigned) h4,
body:not(.ghayah-redesigned) h5,
body:not(.ghayah-redesigned) h6,
body:not(.ghayah-redesigned) button,
body:not(.ghayah-redesigned) input,
body:not(.ghayah-redesigned) select,
body:not(.ghayah-redesigned) textarea {
  font-family: "IBM Plex Sans Arabic", Inter, "Segoe UI", sans-serif !important;
}

body:not(.ghayah-redesigned) p,
body:not(.ghayah-redesigned) .text-text-secondary,
body:not(.ghayah-redesigned) .text-secondary-600,
body:not(.ghayah-redesigned) .text-secondary-700 {
  color: #a2b0c6;
}

body:not(.ghayah-redesigned) .bg-background,
body:not(.ghayah-redesigned) .bg-surface,
body:not(.ghayah-redesigned) .bg-white,
body:not(.ghayah-redesigned) .bg-primary-50 {
  background-color: #111b2e !important;
}

body:not(.ghayah-redesigned) .border,
body:not(.ghayah-redesigned) [class*="border-gray-"],
body:not(.ghayah-redesigned) [class*="border-secondary-"] {
  border-color: #24324b !important;
}

body:not(.ghayah-redesigned) .card,
body:not(.ghayah-redesigned) article.bg-white,
body:not(.ghayah-redesigned) .contact-form-card,
body:not(.ghayah-redesigned) .contact-form-frame,
body:not(.ghayah-redesigned) .course-overview-panel,
body:not(.ghayah-redesigned) .details-panel,
body:not(.ghayah-redesigned) .purchase-card,
body:not(.ghayah-redesigned) .support-panel,
body:not(.ghayah-redesigned) .diploma-card {
  border: 1px solid #24324b;
  background-color: #111b2e !important;
  color: #f4f7ff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .2);
}

body:not(.ghayah-redesigned) .navbar {
  position: fixed !important;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(151, 176, 216, .16);
  background: rgba(8, 14, 27, .94) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body:not(.ghayah-redesigned) .navbar .navbar-container {
  width: min(1440px, 100%);
  min-height: 64px;
  padding: 8px 26px;
}

body:not(.ghayah-redesigned) .navbar-brand,
body:not(.ghayah-redesigned) .navbar-brand-ar,
body:not(.ghayah-redesigned) .navbar-item,
body:not(.ghayah-redesigned) .navbar-button,
body:not(.ghayah-redesigned) .navbar-mobile-btn {
  color: #f4f7ff !important;
}

body:not(.ghayah-redesigned) .navbar-brand-en {
  color: #9baac2 !important;
}

body:not(.ghayah-redesigned) .navbar-item:hover,
body:not(.ghayah-redesigned) .navbar-button:hover {
  color: #77d6ff !important;
}

body:not(.ghayah-redesigned) .navbar-programs-cta {
  border-color: #075cf5;
  background: #075cf5;
  color: #fff !important;
}

body:not(.ghayah-redesigned) .navbar-mobile,
body:not(.ghayah-redesigned) .dropdown-menu,
body:not(.ghayah-redesigned) .dropdown-menu-mobile {
  border-color: #24324b;
  background: #101a2c !important;
  color: #f4f7ff;
}

body:not(.ghayah-redesigned) .dropdown-item,
body:not(.ghayah-redesigned) .navbar-mobile-link {
  color: #e4ebf7;
}

body:not(.ghayah-redesigned) .dropdown-item:hover,
body:not(.ghayah-redesigned) .navbar-mobile-link:hover {
  background: #182841;
  color: #77d6ff;
}

body:not(.ghayah-redesigned) section.relative {
  background-color: #0b1628;
  background-image: radial-gradient(ellipse at 50% 0, rgba(8, 83, 160, .38), transparent 68%);
  color: #f4f7ff;
}

body:not(.ghayah-redesigned) section.section-padding {
  border-color: rgba(151, 176, 216, .12);
}

body:not(.ghayah-redesigned) .contact-page-main,
body:not(.ghayah-redesigned) .diploma-page,
body:not(.ghayah-redesigned) .page-wrap,
body:not(.ghayah-redesigned) main.wrap {
  background-color: #090f1d;
  color: #f4f7ff;
}

body:not(.ghayah-redesigned) .contact-page-header h1,
body:not(.ghayah-redesigned) .success-stories-heading h2,
body:not(.ghayah-redesigned) .success-media-title,
body:not(.ghayah-redesigned) .diploma-page__heading h1 {
  color: #f4f7ff;
}

body:not(.ghayah-redesigned) .contact-details,
body:not(.ghayah-redesigned) .contact-form-card,
body:not(.ghayah-redesigned) .contact-field,
body:not(.ghayah-redesigned) .contact-field::placeholder,
body:not(.ghayah-redesigned) .contact-social-links a,
body:not(.ghayah-redesigned) .success-stories-heading p,
body:not(.ghayah-redesigned) .success-image-count,
body:not(.ghayah-redesigned) .diploma-page__heading p {
  color: #a2b0c6;
}

body:not(.ghayah-redesigned) .contact-field {
  border-color: #34435e;
}

body:not(.ghayah-redesigned) .contact-social-links a,
body:not(.ghayah-redesigned) .success-image-frame {
  border-color: #24324b;
  background: #111b2e;
}

body:not(.ghayah-redesigned) input,
body:not(.ghayah-redesigned) select,
body:not(.ghayah-redesigned) textarea {
  border-color: #34435e;
  background-color: #0c1526;
  color: #f4f7ff;
}

body:not(.ghayah-redesigned) input::placeholder,
body:not(.ghayah-redesigned) textarea::placeholder {
  color: #8292ad;
}

body:not(.ghayah-redesigned) footer.bg-secondary-900 {
  border-top: 1px solid rgba(151, 176, 216, .14);
  background: linear-gradient(120deg, #0c1729, #0b2040) !important;
}

body:not(.ghayah-redesigned) .diploma-page__nav a,
body:not(.ghayah-redesigned) .course-hero h1,
body:not(.ghayah-redesigned) .course-description,
body:not(.ghayah-redesigned) .course-overview-panel h2,
body:not(.ghayah-redesigned) .details-panel h2,
body:not(.ghayah-redesigned) .purchase-card h2,
body:not(.ghayah-redesigned) .support-panel h2 {
  color: #f4f7ff;
}

body:not(.ghayah-redesigned) .course-hero,
body:not(.ghayah-redesigned) .course-overview-panel,
body:not(.ghayah-redesigned) .details-panel,
body:not(.ghayah-redesigned) .purchase-card,
body:not(.ghayah-redesigned) .support-panel,
body:not(.ghayah-redesigned) .diploma-page__nav {
  border-color: #24324b;
}

body:not(.ghayah-redesigned) .topic-list li::before {
  background: rgba(7, 92, 245, .2);
  color: #62c9ff;
}

body:not(.ghayah-redesigned) .course-overview-panel p {
  color: #a2b0c6;
}

body:not(.ghayah-theme-light) #programsGrid .card h3,
body:not(.ghayah-theme-light) .ghayah-program-card h3,
body:not(.ghayah-theme-light) .ghayah-professional__item-copy strong {
  color: #a9ddff !important;
}

body:not(.ghayah-theme-light) #programsGrid .program-current-price,
body:not(.ghayah-theme-light) .ghayah-program-card__body > a,
body:not(.ghayah-theme-light) .ghayah-professional__item-meta span {
  color: #72d5ff !important;
}

body:not(.ghayah-theme-light) #programsGrid .card,
body:not(.ghayah-theme-light) .ghayah-program-card,
body:not(.ghayah-theme-light) .ghayah-professional__item {
  color: #e4efff;
}

body.ghayah-theme-light #programsGrid .card h3,
body.ghayah-theme-light .ghayah-program-card h3,
body.ghayah-theme-light .ghayah-professional__item-copy strong {
  color: #174a78 !important;
}

body.ghayah-theme-light #programsGrid .program-current-price,
body.ghayah-theme-light .ghayah-program-card__body > a,
body.ghayah-theme-light .ghayah-professional__item-meta span {
  color: #075c9e !important;
}

@media (max-width: 767px) {
  body:not(.ghayah-redesigned) .navbar .navbar-container {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.ghayah-redesigned) *,
  body:not(.ghayah-redesigned) *::before,
  body:not(.ghayah-redesigned) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

:root {
  --color-primary: #1e40af;
  --color-primary-hover: #1d4ed8;
  --color-focus-ring: rgba(30, 64, 175, .34);
}

body:not(.ghayah-redesigned):not(.ghayah-theme-light) {
  --color-background: #0b1020;
  --color-surface: #141c31;
  --color-text-primary: #f5f3ff;
  --color-text-secondary: #c6c9d8;
  --color-text-tertiary: #a7aec3;
  --color-border: #343b55;
  --color-border-light: #27314a;
  color: var(--color-text-primary);
  color-scheme: dark;
}

body.ghayah-theme-light:not(.ghayah-redesigned) {
  --color-primary: #1e40af;
  --color-primary-50: #ffffff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;
  --color-primary-hover: #1d4ed8;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-tertiary: #475569;
  --color-border: #cbd5e1;
  --color-border-light: #e2e8f0;
  --color-focus-ring: rgba(30, 64, 175, .32);
  color: var(--color-text-primary);
  color-scheme: light;
}

body.ghayah-theme-light:not(.ghayah-redesigned) {
  background: var(--color-background) !important;
  color: var(--color-text-primary);
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  .bg-background,
  .bg-surface,
  .bg-white,
  .bg-primary-50
) {
  background-color: var(--color-surface) !important;
}

body.ghayah-theme-light:not(.ghayah-redesigned) .navbar {
  border-bottom-color: var(--color-border);
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 8px 32px rgba(28, 38, 62, .08);
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  .navbar-brand,
  .navbar-brand-ar,
  .navbar-item,
  .navbar-button,
  .navbar-mobile-btn,
  .dropdown-item,
  .navbar-mobile-link
) {
  color: #24304a !important;
}

body.ghayah-theme-light:not(.ghayah-redesigned) .navbar-brand-en {
  color: #5b6680 !important;
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  .navbar-mobile,
  .dropdown-menu,
  .dropdown-menu-mobile
) {
  border-color: var(--color-border);
  background: #fff !important;
  color: var(--color-text-primary);
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  .navbar-item:hover,
  .navbar-button:hover,
  .dropdown-item:hover,
  .navbar-mobile-link:hover
) {
  color: var(--color-primary-700) !important;
}

body.ghayah-theme-light:not(.ghayah-redesigned) section.relative {
  background-color: #f0f3f9;
  background-image: radial-gradient(ellipse at 50% 0, rgba(112, 93, 184, .1), transparent 68%);
  color: var(--color-text-primary);
}

body.ghayah-theme-light:not(.ghayah-redesigned) footer.bg-secondary-900 {
  border-top-color: var(--color-border);
  background: linear-gradient(120deg, #f0f3f9, #e8eff9) !important;
  color: var(--color-text-primary);
}

body:not(.ghayah-redesigned):not(.ghayah-theme-light) :is(
  .text-black,
  [class~="hover:text-black"]:hover,
  .text-gray-400,
  .text-gray-500,
  .text-gray-600,
  .text-gray-700,
  .text-gray-800,
  .text-gray-900,
  .text-secondary-400,
  .text-secondary-500,
  .text-secondary-600,
  .text-secondary-700,
  .text-secondary-800,
  .text-secondary-900,
  .text-slate-400,
  .text-slate-500,
  .text-slate-600,
  .text-slate-700,
  .text-neutral-500,
  .text-neutral-600,
  .text-neutral-700
) {
  color: var(--color-text-secondary) !important;
}

body:not(.ghayah-redesigned):not(.ghayah-theme-light) :is(
  input,
  select,
  textarea,
  option,
  .form-control,
  .search-input
) {
  border-color: var(--color-border);
  background-color: #10172a;
  color: var(--color-text-primary);
}

body:not(.ghayah-redesigned):not(.ghayah-theme-light) :is(input, textarea)::placeholder {
  color: #a7aec3;
  opacity: 1;
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(input, select, textarea, option) {
  border-color: var(--color-border);
  background-color: #fff;
  color: var(--color-text-primary);
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(input, textarea)::placeholder {
  color: #5b6680;
  opacity: 1;
}

body:not(.ghayah-redesigned) :is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

body:not(.ghayah-redesigned):not(.ghayah-theme-light) :is(table, th, td, .border, [class*="border-gray-"]) {
  border-color: var(--color-border) !important;
}

body:not(.ghayah-redesigned):not(.ghayah-theme-light) :is(dialog, [role="dialog"], .dropdown-menu, .dropdown-menu-mobile) {
  border-color: var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  color-scheme: dark;
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(dialog, [role="dialog"]) {
  border-color: var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  color-scheme: light;
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  .contact-page-main,
  .diploma-page,
  .page-wrap,
  main.wrap
) {
  background-color: var(--color-background) !important;
  color: var(--color-text-primary);
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  .card,
  .diploma-card,
  .course-overview-panel,
  .details-panel,
  .purchase-card,
  .support-panel,
  .contact-form-card,
  .contact-form-frame,
  .contact-social-links a,
  .success-image-frame
) {
  border-color: var(--color-border) !important;
  background-color: var(--color-surface) !important;
  color: var(--color-text-primary);
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .text-text-primary
) {
  color: var(--color-text-primary);
}

body.ghayah-theme-light:not(.ghayah-redesigned) p {
  color: var(--color-text-secondary);
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  .contact-details,
  .contact-field,
  .contact-social-links a,
  .success-stories-heading p,
  .success-image-count,
  .diploma-page__heading p,
  .text-text-secondary,
  .text-gray-500,
  .text-gray-600,
  .text-gray-700,
  .text-secondary-500,
  .text-secondary-600,
  .text-secondary-700,
  .text-slate-500,
  .text-slate-600,
  .text-slate-700
) {
  color: var(--color-text-secondary);
}

body.ghayah-theme-light:not(.ghayah-redesigned) .contact-field::placeholder {
  color: var(--color-text-secondary);
  opacity: 1;
}

body:not(.ghayah-redesigned) :is(button, input, select, textarea):disabled {
  cursor: not-allowed;
  opacity: .65;
}

/* Keep muted utility text readable on light surfaces while preserving brand colors. */
body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  .text-gray-300,
  .text-gray-400,
  .text-secondary-300,
  .text-secondary-400,
  .text-slate-300,
  .text-slate-400,
  .text-neutral-300,
  .text-neutral-400,
  .text-neutral-500,
  .text-neutral-600,
  .text-neutral-700
) {
  color: #334155 !important;
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  .text-primary-300,
  .text-primary-400,
  .text-primary-500
) {
  color: #1e40af !important;
}

body.ghayah-theme-light:not(.ghayah-redesigned) .text-accent-500 {
  color: #92400e !important;
}

body.ghayah-theme-light:not(.ghayah-redesigned) .text-success-500 {
  color: #047857 !important;
}

/* The legacy footer switches to a pale background in light mode. */
body.ghayah-theme-light:not(.ghayah-redesigned) footer.bg-secondary-900 :is(
  .text-white,
  .text-primary-300,
  .text-primary-400,
  .text-primary-500
) {
  color: #17243a !important;
}

body.ghayah-theme-light:not(.ghayah-redesigned) footer.bg-secondary-900 a:hover {
  color: #1e40af !important;
}

/* Homepage copy uses a separate theme sheet, so strengthen its light-mode overrides here. */
html body.ghayah-redesigned.ghayah-theme-light .navbar-brand-en {
  color: #475569 !important;
}

html body.ghayah-redesigned.ghayah-theme-light :is(
  .ghayah-hero__copy > p,
  .ghayah-section-heading > p,
  .ghayah-professional__intro p,
  .ghayah-professional__item-copy small,
  .ghayah-professional__item-meta small,
  .ghayah-program-card p,
  .ghayah-stats__heading p,
  .ghayah-footer__brand p,
  .ghayah-footer__brand small,
  .ghayah-footer__bottom
) {
  color: #334155 !important;
}

/* Catalog labels and metadata sit on white or pale-blue surfaces. */
html body.page-programs.ghayah-theme-light .catalog-hero__eyebrow {
  color: #1e40af !important;
}

html body.page-programs.ghayah-theme-light .catalog-hero__stats :is(span, a) {
  color: #334155 !important;
}

html body.page-programs.ghayah-theme-light .catalog-hero__stats strong {
  color: #1e40af !important;
}

html body.page-programs.ghayah-theme-light :is(
  .catalog-filter > span,
  .catalog-results,
  .catalog-empty,
  .catalog-card__meta,
  .catalog-card__footer a,
  .catalog-footer__brand p,
  .catalog-footer__bottom
) {
  color: #334155 !important;
}

html body.page-programs.ghayah-theme-light .catalog-card__meta span + span {
  color: #92400e !important;
}

html body.page-programs.ghayah-theme-light .catalog-card__footer .catalog-card__details,
html body.page-programs.ghayah-theme-light .catalog-footer a:hover {
  color: #1e40af !important;
}

html body.page-programs.ghayah-theme-light .catalog-card__old-price {
  color: #475569 !important;
}

html body.page-programs.ghayah-theme-light #programsGrid .catalog-card__meta .catalog-card__old-price {
  color: #475569 !important;
}

html body.page-programs.ghayah-theme-light .catalog-reset {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
}

html body.page-programs.ghayah-theme-light .catalog-reset:hover {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1e40af;
}

/* Diploma prices and page introductions need stronger contrast on white cards. */
html body.ghayah-theme-light .diploma-page__heading p,
html body.ghayah-theme-light .diploma-card .diploma-price-previous {
  color: #475569 !important;
}

html body.ghayah-theme-light.page-stories #success-stories .success-stories-heading p {
  color: #475569 !important;
}

/* Contact badges and accent labels remain distinct without pale text. */
html body.ghayah-theme-light.page-contact .contact-response-badge {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

html body.ghayah-theme-light.page-contact .contact-response-badge span {
  color: #15803d;
}

html body.ghayah-theme-light.page-contact :is(
  .contact-subsection-heading > span,
  .contact-facts strong
) {
  color: #1e40af;
}

html body.ghayah-theme-light.page-contact :is(
  .contact-control > label span,
  .contact-topic-control legend span
) {
  color: #b42318;
}

html body.ghayah-theme-light.page-contact :is(.contact-quick-icon, .contact-direct-icon) {
  color: #1e40af;
}

html body.ghayah-theme-light.page-contact :is(.contact-quick-icon--whatsapp, .contact-direct-icon--whatsapp) {
  color: #15803d;
}

html body.ghayah-theme-light.page-contact :is(.contact-quick-arrow, .contact-direct-arrow) {
  color: #475569;
}

html body.page-programs.ghayah-theme-light :is(
  .catalog-hero__eyebrow,
  .catalog-hero__stats strong,
  .catalog-card__footer .catalog-card__details,
  .catalog-footer a:hover
) {
  color: #111827 !important;
}

html body.page-programs.ghayah-theme-light .catalog-reset:hover {
  border-color: #111827;
  background: #f3f4f6;
  color: #111827;
}

html body.ghayah-theme-light.page-contact :is(
  .contact-subsection-heading > span,
  .contact-facts strong,
  .contact-quick-icon:not(.contact-quick-icon--whatsapp),
  .contact-direct-icon:not(.contact-direct-icon--whatsapp)
) {
  color: #111827 !important;
}

/* Use high contrast black accents in the light theme across legacy pages. */
body.ghayah-theme-light:not(.ghayah-redesigned) {
  --color-primary: #111827;
  --color-primary-50: #ffffff;
  --color-primary-100: #f3f4f6;
  --color-primary-200: #e5e7eb;
  --color-primary-300: #d1d5db;
  --color-primary-400: #6b7280;
  --color-primary-500: #374151;
  --color-primary-600: #1f2937;
  --color-primary-700: #111827;
  --color-primary-800: #0f172a;
  --color-primary-900: #030712;
  --color-primary-hover: #030712;
  --color-focus-ring: rgba(17, 24, 39, .28);
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  .text-primary-300,
  .text-primary-400,
  .text-primary-500,
  .text-primary-600,
  .text-primary-700,
  .text-blue-500,
  .text-blue-600,
  .text-blue-700,
  .text-blue-800,
  .catalog-hero__eyebrow,
  .catalog-hero__stats strong,
  .catalog-card__footer .catalog-card__details,
  .catalog-footer a:hover,
  .contact-subsection-heading > span,
  .contact-facts strong,
  .contact-quick-icon,
  .contact-direct-icon
) {
  color: #111827 !important;
}

body.ghayah-theme-light:not(.ghayah-redesigned) :is(
  .text-gradient-primary,
  .text-gradient
) {
  background: none !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827;
}

body.ghayah-theme-light:not(.ghayah-redesigned) .site-global-navbar :is(
  .navbar-item:hover,
  .navbar-button:hover,
  .dropdown-item:hover,
  .navbar-mobile-link:hover,
  .navbar-login-button:active
) {
  background-color: #f3f4f6;
  color: #111827 !important;
}

body.ghayah-theme-light:not(.ghayah-redesigned) .site-global-navbar .navbar-programs-cta {
  border-color: #111827;
  background: #111827;
  color: #fff !important;
}


/* Mobile layout safeguards for readable forms and page-width content. */
@media (max-width: 767px) {
  html {
    overflow-x: clip;
  }

  body {
    width: 100%;
    min-width: 320px;
    overflow-x: clip;
  }

  body :is(img, video, iframe) {
    max-width: 100%;
  }

  body :is(input, select, textarea) {
    box-sizing: border-box;
    max-width: 100%;
    font-size: 16px;
  }

  body:not(.ghayah-redesigned) :is(.contact-page-main, .diploma-page, .page-wrap, main.wrap) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
  }

  body :is(table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
