@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  /* Brand */
  --color-primary: #134e88;
  --color-primary-dark: #0f3d6b;
  --color-accent: #225be4;
  --color-accent-light: #60a5fa;

  /* Surfaces */
  --color-bg: #ffffff;
  --color-bg-subtle: #f9fafb;
  --color-bg-muted: #f3f4f6;
  --color-bg-primary-tint: #ebf5ff;
  --color-bg-primary-soft: #e9f1fa;
  --color-bg-blue-subtle: #eff6ff;

  /* Text */
  --color-text: #111827;
  --color-text-secondary: #374151;
  --color-text-body: #4b5563;
  --color-text-muted: #6b7280;
  --color-text-soft: #8b8b8b;
  --color-text-placeholder: #9ca3af;
  --color-text-disabled: #d1d5db;
  --color-text-strong: #333333;
  --color-text-neutral: #555555;
  --color-text-heading: #3a3a3a;

  /* Navbar link (on light bar) */
  --color-nav-link: rgba(0, 0, 0, 0.6);
  --color-nav-link-hover: rgba(0, 0, 0, 0.8);

  /* Borders */
  --color-border: #e5e7eb;
  --color-border-medium: #d5d5d5;
  --color-border-strong: #c6c6c6;
  --color-border-light: #dddddd;
  --color-border-subtle: #e5e5e5;
  --color-border-pale: #f3f4f6;

  /* Dark surfaces (e.g. footer) */
  --color-surface-dark: #374151;

  /* State */
  --color-error: #ef4444;

  /* Brand / state with alpha (focus rings, subtle borders) */
  --color-primary-alpha-08: rgba(19, 78, 136, 0.08);
  --color-primary-alpha-10: rgba(19, 78, 136, 0.1);
  --color-primary-alpha-12: rgba(19, 78, 136, 0.12);
  --color-primary-alpha-15: rgba(19, 78, 136, 0.15);
  --color-primary-alpha-20: rgba(19, 78, 136, 0.2);
  --color-primary-alpha-50: rgba(19, 78, 136, 0.5);
  --color-primary-alpha-80: rgba(19, 78, 136, 0.8);
  --color-primary-alpha-90: rgba(19, 78, 136, 0.9);
  --color-error-alpha-50: rgba(239, 68, 68, 0.5);

  /* Overlays */
  --color-overlay-dark: rgba(0, 0, 0, 0.6);
  --color-overlay-scrim-50: rgba(0, 0, 0, 0.5);
  --color-black: #000000;
  --color-text-ink: #111111;
  --color-text-caption: #474747;

  /* Success (forms / course) */
  --color-success: #16a34a;
  --color-success-dark: #15803d;
  --color-success-border: #86efac;
  --color-success-bg: #f0fdf4;

  /* Extra surfaces (about / course) */
  --color-bg-slate-tint: #f3f8ff;
  --color-border-extra: #e3e3e3;
  --color-text-slate: #334155;
  --color-text-slate-muted: #475569;
  --color-text-slate-light: #64748b;
  --color-text-charcoal: #1a1a1a;
  --color-cta-green: #11ac00;
  --color-accent-deep: #3e5ec0;
  --color-accent-deep-alpha-25: rgba(62, 94, 192, 0.25);
  --color-gradient-blue-end: #005cb6;
  --color-gradient-blue-deep: #0a3a6b;
  --color-bg-cool: #f8fafc;
  --color-text-emphasis: #1f2937;

  /* White alpha (footer / overlays) */
  --color-white-alpha-90: rgba(255, 255, 255, 0.9);
  --color-white-alpha-80: rgba(255, 255, 255, 0.8);
  --color-white-alpha-60: rgba(255, 255, 255, 0.6);
  --color-white-alpha-30: rgba(255, 255, 255, 0.3);
  --color-white-alpha-20: rgba(255, 255, 255, 0.2);
  --color-white-alpha-10: rgba(255, 255, 255, 0.1);

  /* Shadow tints */
  --color-shadow-05: rgba(0, 0, 0, 0.05);
  --color-shadow-06: rgba(0, 0, 0, 0.06);
  --color-shadow-08: rgba(0, 0, 0, 0.08);
  --color-shadow-10: rgb(0 0 0 / 0.1);
  --color-shadow-25: rgb(0 0 0 / 0.25);
  --color-shadow-card-22: rgba(0, 0, 0, 0.22);
  --color-shadow-card-30: rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scroll-left {
  to {
    transform: translate(-25%);
  }
}

@keyframes scroll-right {
  to {
    transform: translate(25%);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

.container {
  margin: 0 auto;
  width: 90%;
  position: relative;
}

.breadcrumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0;
  animation: fadeInDown 0.6s ease-out forwards;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.breadcrumb::-webkit-scrollbar {
  display: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.breadcrumb-chevron {
  width: 1rem;
  height: 1rem;
  color: var(--color-text-neutral);
}

.breadcrumb a {
  color: var(--color-text-neutral);
  text-decoration: underline;
  white-space: nowrap;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-current {
  color: var(--color-text-strong);
  font-weight: 500;
  white-space: nowrap;
}

/* ================= Navbar ====== 
   =============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 55px;
  background: var(--color-bg);
  z-index: 50;
}

.navbar .container {
  margin: 0 auto;
  width: 90%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  flex-shrink: 0;
}

.navbar-logo img {
  width: 5rem;
  height: auto;
}

.navbar-links {
  display: none;
}

.navbar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-overlay-dark);
  transition: color 0.2s;
}

.navbar-link:hover {
  color: var(--color-nav-link-hover);
}

.navbar-link.is-active {
  color: var(--color-primary);
  font-weight: 600;
}

.navbar-link-dot {
  display: none;
}

.navbar-link.is-active .navbar-link-dot {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-arabic-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border-medium);
  border-radius: 10px;
  color: inherit;
  transition: background 0.2s;
}

.navbar-arabic-link:hover {
  background: var(--color-bg-subtle);
}

.navbar-arabic-arrow {
  width: 1rem;
  height: 1rem;
}

.navbar-menu-btn {
  display: flex;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: background 0.2s;
}

.navbar-menu-btn:hover {
  background: var(--color-bg-muted);
}

.navbar-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ================= Mobile Menu ====== 
   =============================== */
.navbar-mobile-menu {
  display: none;
  position: fixed;
  top: 55px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.navbar-mobile-menu.navbar-mobile-open {
  transform: translateX(0);
  display: flex;
  flex-direction: column;
}

.navbar-mobile-inner {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 0;
}

.navbar-mobile-inner .container {
  width: 90%;
  margin: 0 auto;
}

.navbar-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.navbar-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text-secondary);
  transition: background 0.2s, color 0.2s;
}

.navbar-mobile-link:hover {
  color: var(--color-primary);
  background: var(--color-bg-subtle);
}

.navbar-mobile-link.is-active {
  color: var(--color-primary);
  background: var(--color-bg-primary-tint);
  font-weight: 600;
}

.navbar-mobile-link-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.navbar-mobile-link:not(.is-active) .navbar-mobile-link-dot {
  display: none;
}

.navbar-mobile-footer {
  border-top: 1px solid var(--color-border);
  padding: 1rem;
}

.navbar-mobile-arabic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-medium);
  border-radius: 0.5rem;
  color: inherit;
  transition: background 0.2s;
  width: 100%;
}

.navbar-mobile-arabic:hover {
  background: var(--color-bg-subtle);
}

.navbar-mobile-arabic-arrow {
  width: 1rem;
  height: 1rem;
}

/* ================= Footer ====== 
   =============================== */
.footer {
  background: black;
  color: var(--color-bg);
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 30;
}

.footer-inner {
  margin: 0 auto;
  width: 90%;
  max-width: 1280px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  max-width: 300px;
  width: 100%;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand-top img {
  width: 150px;
  height: auto;
}

.footer-brand-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-bg);
}

.footer-brand-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-disabled);
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--color-text-disabled);
  line-height: 1.6;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-bg);
  margin-bottom: 1.5rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.footer-link {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-disabled);
  transition: color 0.2s;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--color-bg);
}

.footer-contact-block {
  margin-bottom: 2rem;
}

.footer-contact-block:last-child {
  margin-bottom: 0;
}

.footer-contact-heading {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-disabled);
  margin-bottom: 0.5rem;
}

.footer-contact-item a {
  color: var(--color-text-disabled);
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--color-bg);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  display: flex;
  align-items: center;
  color: var(--color-text-placeholder);
}

.footer-contact-icon svg,
.footer-contact-icon [data-icon] svg {
  width: 100%;
  height: 100%;
}

.footer-bottom {
  border-top: 1px solid var(--color-text-secondary);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-text-placeholder);
}

.footer-bottom-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom-link {
  font-size: 0.875rem;
  color: var(--color-text-placeholder);
  transition: color 0.2s;
}

.footer-bottom-link:hover {
  color: var(--color-bg);
}

.footer-made-with {
  font-size: 0.875rem;
  color: var(--color-text-placeholder);
}

/* ================= Hero Banner ====== 
   =============================== */
.hero-banner {
  position: relative;
  padding-top: 90px;
}

.hero-banner .container {
  position: relative;
  z-index: 10;
  height: 100%;
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
}

.hero-content {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-primary-tint);
  border: 1px solid var(--color-primary-alpha-10);
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-badge-dot {
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-title-accent {
  color: var(--color-primary);
}

.hero-subtitle {
  color: var(--color-text-body);
  font-size: 0.875rem;
  line-height: 1.625;
  max-width: 28rem;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-content .hero-badge,
.hero-title,
.hero-subtitle {
  opacity: 0;
}

.section {
  position: relative;
  padding: 3rem 0;
}

.section-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 300px;
  background: linear-gradient(to bottom, var(--color-bg-primary-soft), var(--color-bg));
  transform: skewY(-6deg);
  z-index: -1;
}

/* ================= Categories Grid ====== 
   =============================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.category-card {
  background: var(--color-bg);
  border-radius: 0.5rem;
  padding: 1rem 0.75rem;
  border: 1px solid var(--color-border-medium);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card:hover {
  box-shadow: 0 10px 15px -3px var(--color-shadow-10), 0 4px 6px -4px var(--color-shadow-10);
  border-color: var(--color-primary-alpha-20);
}

.category-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.category-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-border-medium);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.category-card:hover .category-icon {
  background: var(--color-bg-primary-tint);
}

.category-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-count {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text-body);
}

.cap-icon {
  flex-shrink: 0;
}

.card-arrow {
  width: 1rem;
  height: 1rem;
  color: var(--color-text-placeholder);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.category-card:hover .card-arrow {
  color: var(--color-primary);
}

.card-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

[dir="rtl"] .card-arrow {
  transform: rotate(180deg);
}

/* ================= Cities Grid ====== 
   =============================== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.city-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.city-card-inner {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.city-card:hover .city-card-inner {
  border-color: var(--color-primary-alpha-20);
}

.city-card-image {
  position: relative;
  height: 10rem;
  overflow: hidden;
}

.city-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-overlay-dark), transparent, transparent);
  z-index: 1;
}

.city-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.city-card:hover .city-card-image img {
  transform: scale(1.05);
}

.city-card-content {
  padding: 0.5rem 0.75rem;
}

.city-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.city-location-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-border-light);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-location-icon svg {
  width: 22px;
  height: 22px;
}

.city-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: black;
}

.city-region {
  font-size: 0.75rem;
  color: var(--color-text-body);
}

.city-course-count {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-text-heading);
}

.city-course-count .cap-icon {
  flex-shrink: 0;
}

/* ================= Button ====== 
   =============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--color-primary-dark);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

.btn-arrow {
  width: 0.75rem;
  height: 0.75rem;
}

.city-card:hover .btn {
  background: var(--color-primary-dark);
}

[dir="rtl"] .btn-arrow {
  transform: rotate(180deg);
}

/* ================= Section with Search ====== 
   =============================== */
.section-with-search {
  padding-top: 4rem;
}

/* ================= Search Input ====== 
   =============================== */
.search-wrapper {
  position: absolute;
  z-index: 30;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 20rem;
  padding: 0 0.75rem;
}

.search-input-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  inset: 0;
  left: 0;
  right: auto;
  display: flex;
  align-items: center;
  pointer-events: none;
  padding-left: 0.75rem;
}

[dir="rtl"] .search-icon {
  left: auto;
  right: 0;
  padding-left: 0;
  padding-right: 0.75rem;
}

.search-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-text-soft);
}

.search-input {
  width: 100%;
  font-size: 0.875rem;
  padding: 0.625rem 2.5rem 0.625rem 2.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 4px 10px 0 var(--color-shadow-06);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  color: var(--color-text);
}

.search-input::placeholder {
  color: var(--color-text-soft);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

[dir="rtl"] .search-input {
  padding-left: 2.5rem;
  padding-right: 2.25rem;
}

.search-clear {
  position: absolute;
  inset: 0;
  left: auto;
  right: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding-right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-soft);
  transition: color 0.2s;
}

.search-clear:hover {
  color: var(--color-accent);
}

.search-clear svg {
  width: 1.125rem;
  height: 1.125rem;
}

[dir="rtl"] .search-clear {
  right: auto;
  left: 0;
  padding-right: 0;
  padding-left: 0.5rem;
}

/* ================= Courses List ====== 
   =============================== */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-item-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.75rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.course-item-link:hover {
  box-shadow: 0 4px 6px -1px var(--color-shadow-10);
}

.course-item-left {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.course-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.course-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.course-duration-badge img {
  flex-shrink: 0;
}

.course-item-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  width: 100%;
}

.course-code {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.course-arrow {
  width: 1rem;
  height: 1rem;
  color: var(--color-text-placeholder);
  flex-shrink: 0;
  transition: color 0.2s;
}

.course-item-link:hover .course-arrow {
  color: var(--color-primary);
}

[dir="rtl"] .course-arrow {
  transform: rotate(180deg);
}

/* ================= Empty State ====== 
   =============================== */
.empty-state {
  text-align: center;
  padding: 2rem;
}

.empty-state-text {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* ================= City Tabs ====== 
   =============================== */
.search-wrapper-city {
  padding-left: 1rem;
  padding-right: 1rem;
}

.city-tabs-content {
  position: relative;
  z-index: 10;
}

.city-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
  padding: 0.375rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.city-tab {
  flex: 1;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-body);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  font-family: inherit;
  white-space: nowrap;
}

.city-tab:hover {
  color: var(--color-text);
}

.city-tab-active {
  background: var(--color-primary);
  color: var(--color-bg);
}

.city-tab-active:hover {
  color: var(--color-bg);
}

.city-tabpanel {
  margin-top: 0;
}

/* ================= Custom Select ====== 
   =============================== */
.custom-select-wrap {
  position: relative;
  width: 100%;
}

.custom-select-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.custom-select-inner {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  height: 45px;
  padding: 0.5rem 0.75rem;
  padding-right: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-family: inherit;
  background: var(--color-bg);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select-trigger:hover {
  border-color: var(--color-text-disabled);
}

.custom-select-trigger:focus,
.custom-select-trigger.custom-select-open {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--color-primary-alpha-50);
}

.custom-select-trigger-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-chevron {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--color-text-placeholder);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.custom-select-trigger.custom-select-open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  box-shadow: 0 10px 15px -3px var(--color-shadow-10);
  max-height: 12rem;
  overflow-y: auto;
}

.custom-select-dropdown[hidden] {
  display: none;
}

.custom-select-option {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-family: inherit;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background 0.15s;
  color: var(--color-text);
}

.custom-select-option:hover {
  background: var(--color-bg-subtle);
}

.custom-select-option.custom-select-option-selected {
  background: var(--color-bg-blue-subtle);
  color: var(--color-primary);
}

.custom-select-option span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-check {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.custom-select-wrap.custom-select-error .custom-select-trigger {
  border-color: var(--color-error);
}

.custom-select-wrap.custom-select-error .custom-select-trigger:focus {
  box-shadow: 0 0 0 2px var(--color-error-alpha-50);
}

@media (min-width: 640px) {
  .breadcrumb {
    font-size: 0.875rem;
  }

  .navbar {
    height: 70px;
  }

  .navbar-logo img {
    width: 6rem;
  }

  .navbar-arabic-link {
    display: flex;
  }

  .hero-content .hero-badge {
    gap: 0.5rem;
    padding: 0.375rem 1rem;
  }

  .hero-badge-dot {
    width: 6px;
    height: 6px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 32rem;
  }

  .section-bg {
    transform: skewY(-5deg);
  }

  .category-card {
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
  }

  .category-card-header {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .category-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
  }

  .category-title {
    font-size: 1rem;
  }

  .course-count {
    gap: 0.5rem;
    font-size: 0.875rem;
  }

  .cap-icon {
    width: 1rem;
    height: 1rem;
  }

  .card-arrow {
    width: 1.25rem;
    height: 1.25rem;
  }

  .city-course-count {
    gap: 0.5rem;
  }

  .section-with-search {
    padding-top: 4.5rem;
  }

  .search-wrapper {
    top: -1.5rem;
    max-width: 24rem;
    padding: 0 1rem;
  }

  .search-input {
    font-size: 1rem;
    padding: 0.75rem 3rem 0.75rem 2.5rem;
    border-radius: 16px;
  }

  [dir="rtl"] .search-input {
    padding-left: 3rem;
    padding-right: 2.5rem;
  }

  .search-clear {
    padding-right: 0.75rem;
  }

  .search-clear svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .courses-list {
    gap: 1rem;
  }

  .course-item-link {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
  }

  .course-item-left {
    width: 50%;
    align-items: center;
  }

  .course-item-title {
    font-size: 1rem;
  }

  .course-item-right {
    width: auto;
    justify-content: flex-end;
  }

  .course-arrow {
    width: 1.125rem;
    height: 1.125rem;
  }

  .search-wrapper-city {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .city-tabs-nav {
    flex-direction: row;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    gap: 0.25rem;
  }

  .city-tab {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .custom-select-label {
    font-size: 0.875rem;
  }

  .custom-select-trigger {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .custom-select-option {
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
  }
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom-links {
    flex-direction: row;
    gap: 1.5rem;
  }

  .hero-content .hero-badge {
    padding: 0.5rem 1.25rem;
  }

  .hero-subtitle {
    max-width: 36rem;
  }

  .section-about {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-bg {
    transform: skewY(-4deg);
  }

  .section-with-search {
    padding-top: 5rem;
  }

  .search-wrapper {
    max-width: 28rem;
  }

  .course-item-title {
    font-size: 0.9375rem;
  }

  .search-wrapper-city {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .navbar-logo img {
    width: 7rem;
  }

  .navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .navbar-menu-btn {
    display: none;
  }

  .navbar-mobile-menu {
    display: none !important;
  }

  .hero-subtitle {
    max-width: 42rem;
  }

  .section-about {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .section-bg {
    transform: skewY(-3deg);
  }

  .search-wrapper {
    max-width: 32rem;
  }
}

@media (min-width: 1280px) {
  .navbar-links {
    gap: 2rem;
  }

  .navbar-link {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}