/* --- Upgraded Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  color-scheme: light;
  --text-main: #08162f;
  --text-muted: #536079;
  --heading-color: #08162f;
  --ink: #08162f;
  --muted: #536079;
  --paper: #f7faff;
  --white: #ffffff;
  --surface: #fbfdff;
  --teal: #0057d9;
  --teal-dark: #0043ad;
  --coral: #2b7cff;
  --amber: #f5aa2b;
  --amber-soft: #fff6e5;
  --navy: #06122b;
  --gold: #b7d3ff;
  --mint: #e8f1ff;
  --green: #0b66e4;
  --line: #dce6f5;
  --shadow: 0 24px 70px rgba(8, 22, 47, 0.12);
  --shadow-soft: 0 12px 34px rgba(8, 22, 47, 0.08);
  --radius: 8px;
  --max: 1180px;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 42%, #ffffff 100%);
  color: var(--ink);
  line-height: 1.6;
  transition: opacity 180ms ease; /* CRITICAL: Removed transform and animation to fix position: fixed */
}

body.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

html[dir="rtl"],
html[dir="rtl"] body,
body.is-rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
  letter-spacing: -0.2px; /* Tighter tracking for balanced Arabic layout */
}

html[dir="ltr"],
html[dir="ltr"] body,
body:not(.is-rtl) {
  direction: ltr;
  text-align: left;
}

body.is-rtl h1, 
body.is-rtl h2, 
body.is-rtl h3, 
body.is-rtl h4, 
body.is-rtl h5, 
body.is-rtl h6 {
  font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
  font-weight: 800;
  line-height: 1.25 !important; /* Prevents Arabic diacritics/tall letters from clipping */
}

body.is-rtl p, 
body.is-rtl span, 
body.is-rtl a, 
body.is-rtl button, 
body.is-rtl input, 
body.is-rtl select {
  font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
}

a {
  color: inherit;
}

a,
button,
input,
select,
textarea {
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 4px solid rgba(0, 87, 217, 0.22);
  outline-offset: 3px;
}

::selection {
  background: rgba(0, 87, 217, 0.18);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Expanded & Optimized Floating Navbar --- */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 1000001; /* BUG-10: above WA widget (999999) so mobile nav dropdown is never covered */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 1460px; /* Widened to give multi-word languages plenty of room */
  width: 98%; /* Uses almost full screen width on laptops */
  margin: 0 auto;
  transition: all 0.3s ease;
}

@media (max-width: 560px) {
  .site-header {
    top: 8px;
    width: 96%;
    border-radius: 36px;
  }
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  box-sizing: border-box;
  width: 100%;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: 0;
  perspective: 800px;
  max-width: none !important;
  max-height: none !important;
  flex-shrink: 0;
}

@keyframes floatLogo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

.brand-logo {
  width: 44px;
  height: 44px;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
  animation: floatLogo 3s ease-in-out infinite;
  will-change: transform;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand:hover .brand-logo {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.06);
  filter: drop-shadow(0 6px 16px rgba(0, 87, 217, 0.25));
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 28px); /* Generous horizontal spacing between main menu links */
  flex-wrap: nowrap;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 6px 10px 4px 10px;
  border-bottom: 2px solid transparent; /* Prevents height jumping */
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: transparent;
  color: #0056b3;
  border-bottom-color: rgba(0, 86, 179, 0.3);
}

/* --- Clean Minimalist Active State --- */
header nav a.active,
header nav a.is-active,
.nav a.active,
.nav a.is-active,
.nav-links a.active {
  color: #0056b3 !important; /* Forces the primary blue text */
  background: transparent !important; /* Removes the pill background */
  border: none !important; /* Removes the full outline */
  border-bottom: 2px solid #0056b3 !important; /* Adds the clean underline */
  border-radius: 0 !important;
  padding-bottom: 4px; /* Adjust spacing between text and underline */
  font-weight: 700;
}

header nav a.active .nav-icon,
header nav a.is-active .nav-icon,
.nav a.active .nav-icon,
.nav a.is-active .nav-icon {
  stroke: #0056b3 !important;
}

.nav-icon {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav a:hover .nav-icon {
  transform: scale(1.15) translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.language-status {
  display: none !important; 
}

/* Target navbar select elements */
.nav-controls select,
.nav-actions select,
.compact-select,
.language-select,
.currency-select,
header select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  border: 1px solid transparent; /* Removes the harsh default outline */
  border-radius: 6px; /* Soft, modern corners instead of a bulky pill */
  padding: 8px 30px 8px 12px; /* Extra padding on the right for the custom arrow */
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  max-width: none;
  min-width: 0;
  box-shadow: none;
  
  /* Clean, custom SVG chevron arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

/* Subtle gray background on hover to indicate interactivity */
.nav-controls select:hover,
.nav-actions select:hover,
.compact-select:hover,
.language-select:hover,
.currency-select:hover,
header select:hover {
  background-color: #f3f4f6;
  border-color: transparent;
  box-shadow: none;
}

/* Elegant focus state for accessibility */
.nav-controls select:focus,
.nav-actions select:focus,
.compact-select:focus,
.language-select:focus,
.currency-select:focus,
header select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* RTL layout support for Arabic */
html[dir="rtl"] .nav-actions select,
html[dir="rtl"] .compact-select,
html[dir="rtl"] header select,
html[lang="ar"] .nav-actions select,
html[lang="ar"] .compact-select,
html[lang="ar"] header select {
  padding: 8px 12px 8px 30px;
  background-position: left 10px center;
}

.auto-translate-shell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(8, 22, 47, 0.03);
}

.auto-translate-shell > span,
.translate-trigger {
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--muted);
  white-space: nowrap;
}

.translate-trigger {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--teal-dark);
  padding: 6px 9px;
  cursor: pointer;
}

.translate-trigger:hover,
.translate-trigger:focus-visible {
  background: var(--mint);
  color: var(--teal);
}

.auto-translate-shell small {
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

#google_translate_element {
  min-width: 138px;
}

#google_translate_element[hidden],
.goog-te-banner-frame {
  display: none !important;
}

#google_translate_element .goog-te-gadget {
  font-size: 0;
  line-height: 1;
}

#google_translate_element select.goog-te-combo {
  width: 100%;
  max-width: 170px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 800 0.82rem Inter, ui-sans-serif, system-ui, sans-serif;
  padding: 6px 8px;
}

body > .skiptranslate,
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

body {
  top: 0 !important;
}



.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  font-weight: 800;
  font-size: 0;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.menu-toggle::before {
  top: 14px;
  box-shadow: 0 8px 0 var(--ink);
}

.menu-toggle::after {
  top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), #0b6bff);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 87, 217, 0.16);
}

.button:hover {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 87, 217, 0.22);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--white);
  border-color: rgba(245, 170, 43, 0.7);
  color: #8a5600;
}

.button.light {
  color: var(--teal-dark);
  background: var(--white);
  border-color: var(--line);
}

.button.small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.9rem;
}

.button.full {
  width: 100%;
}

/* --- Modern Hero Section --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 85vh; /* Gives the image more breathing room */
  overflow: hidden;
  margin-top: -100px; /* Pulls the image up BEHIND the floating navbar */
  padding-top: 100px; /* Pushes the text down so it isn't hidden by the navbar */
}

/* --- Hero Image (Base Layer) --- */
.hero-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0; /* Base layer */
}

/* --- Full-Screen Dark Gradient Overlay (Middle Layer) --- */
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* Stretches corner-to-corner to darken the white sky behind the logo */
  background: linear-gradient(to right, rgba(2, 12, 30, 0.95) 0%, rgba(2, 12, 30, 0.65) 55%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1; 
}

/* --- Hero Content (Top Layer) --- */
.hero-content {
  position: relative;
  z-index: 2; /* Sits safely above the gradient overlay */
  width: 100%;
  background: transparent; /* Removed background so the full-screen overlay does the work */
  padding: 100px 5% 140px 5%;
}

.hero-copy {
  max-width: 750px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); /* Makes text pop */
}

.hero-copy h1,
.hero h1 {
  font-size: 3.8rem;
  line-height: 1.1; /* Tighter line height for a premium feel */
  font-weight: 800;
  margin: 16px 0 24px 0;
  letter-spacing: -1px;
}

.hero-copy p,
.hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #e2e8f0;
}

/* --- Hero Buttons (Matching the Nav Pill Shape) --- */
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.hero-actions .button {
  border-radius: 30px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.hero-actions .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* The Glassmorphic Secondary Button */
.hero-actions .button.secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.hero-actions .button.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* --- Modern Floating Impact Stats Section --- */
.impact-stats-section {
  padding: 4.5rem 2rem;
  background-color: #f8fafc; /* Soft modern gray/white */
  position: relative;
  z-index: 10;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f1f5f9;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 86, 179, 0.08); /* Subtle primary color glow */
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #0056b3; /* Primary Blue */
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.stat-number .plus {
  color: #0056b3;
}

.stat-label {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

/* Fallback / Legacy Stats Band */
.stats-band {
  position: relative;
  z-index: 10;
  margin-top: -50px;
  padding: 0 24px;
}

.stats-band .inner {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 1000px;
  margin: 0 auto;
}

.stats-band .inner > div {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.stats-band .inner > div:last-child {
  border-right: none;
}

.stats-band strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0057d9;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stats-band span {
  display: block;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .hero-copy h1,
  .hero h1 {
    font-size: 2.4rem;
  }
  .stats-band {
    margin-top: -40px;
    padding: 0 16px;
  }
  .stats-band .inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 20px;
  }
  .stats-band .inner > div {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 12px;
  }
  .stats-band .inner > div:nth-child(3),
  .stats-band .inner > div:nth-child(4) {
    border-bottom: none;
  }

}

.help-timeline-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.help-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 16px;
}

.help-timeline::before {
  display: none;
}

.help-step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 32px 20px 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.help-step-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 25px -5px rgba(0, 86, 179, 0.1), 0 10px 10px -5px rgba(0, 86, 179, 0.04);
}

.help-illustration {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  padding: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.help-step-card:hover .help-illustration {
  transform: scale(1.08);
}

.help-illustration svg {
  width: 48px;
  height: 48px;
  filter: none;
}

.step-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0056b3;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 86, 179, 0.25);
}

html[dir="rtl"] .step-number,
html[lang="ar"] .step-number {
  left: auto;
  right: 16px;
}

.help-step-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.help-step-card p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.section {
  padding: 76px 22px;
  background-color: #ffffff;
}

.section.compact {
  padding: 64px 22px;
  background-color: #f8fafc;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.section.alt {
  background-color: #f8fafc;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.section.roadmap {
  background-color: #f8fafc;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.section.deep {
  background: #061b3a;
  color: var(--white);
}

.section.deep .muted,
.section.deep p {
  color: rgba(255, 255, 255, 0.78);
}

.inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 790px;
  margin-bottom: 32px;
}

.section-head h2,
.article h1,
.blog-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head p,
.muted {
  color: var(--muted);
  margin: 14px 0 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.directory-card {
  position: relative;
  min-height: 270px;
  padding: 32px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #f1f5f9;
  border-top: 4px solid #0056b3; /* Bold primary-color accent */
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  overflow: hidden;
}

.directory-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  border-top-color: #004494;
  box-shadow: 0 20px 25px -5px rgba(0, 86, 179, 0.12), 0 10px 10px -5px rgba(0, 86, 179, 0.04);
}

.directory-card h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
}

.directory-card p {
  margin: 0;
  color: var(--muted);
}

.directory-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.program-category-wrap {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.program-category {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 16px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.program-category:hover {
  border-color: #cbd5e1;
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.program-category span {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  grid-row: span 2;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #8a5600;
  font-weight: 900;
}

.study-level-strip {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(8, 22, 47, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--navy), #092b68);
  color: var(--white);
  box-shadow: var(--shadow);
}

.study-level-strip .kicker {
  color: #ffe0a3;
  margin-bottom: 8px;
}

.study-level-strip h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.study-level-strip nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.study-level-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  text-decoration: none;
  font-weight: 850;
}

.study-level-strip a:hover {
  background: var(--amber);
  color: var(--navy);
  transform: translateY(-2px);
}

.program-category strong,
.program-category em {
  min-width: 0;
  display: block;
}

.program-category strong {
  height: auto;
  line-height: 1.35;
  margin-bottom: 4px;
}

.program-category em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Arabic Layout & Typography Enhancements for Category Cards */
html[lang="ar"] .category-card h3,
html[lang="ar"] .program-category strong,
html[lang="ar"] .directory-card h3,
html[lang="ar"] .card-title {
  height: auto !important; /* Allows the heading to expand vertically */
  margin-bottom: 8px !important; /* Pushes the paragraph / description down */
  line-height: 1.45 !important; /* Improves readability for multi-line Arabic text */
}

html[lang="ar"] .program-category {
  align-items: start;
}

html[lang="ar"] .program-category span {
  margin-top: 2px;
}

.page-hero {
  padding: 76px 22px 48px;
  background: linear-gradient(135deg, var(--navy), #0057d9);
  color: var(--white);
}

.page-hero .inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.45fr);
  gap: 32px;
  align-items: end;
}

.page-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.3rem, 4.8vw, 4.7rem);
  line-height: 1;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  margin: 18px 0 0;
}

.directory-hero {
  background: linear-gradient(135deg, #061b3a 0%, #0057d9 68%, #2b7cff 100%);
}

.directory-hero,
.universities-page .page-hero,
.language-centers-page .page-hero {
  padding: 46px 22px 18px;
  background: #ffffff;
  color: var(--ink);
}

.directory-hero .inner,
.universities-page .page-hero .inner,
.language-centers-page .page-hero .inner {
  grid-template-columns: 1fr;
  gap: 14px;
}

.directory-hero .hero-note,
.universities-page .page-hero .hero-note,
.language-centers-page .page-hero .hero-note,
.directory-hero .quick-filters {
  display: none;
}

.directory-hero .breadcrumb {
  color: var(--muted);
}

.directory-hero .kicker,
.universities-page .page-hero .kicker,
.language-centers-page .page-hero .kicker {
  color: #f29b13;
}

.directory-hero h1,
.universities-page .page-hero h1,
.language-centers-page .page-hero h1 {
  max-width: 920px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}

.directory-hero p,
.universities-page .page-hero p,
.language-centers-page .page-hero p {
  max-width: 820px;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 750;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb span::before {
  content: ">";
  margin-right: 8px;
  color: currentColor;
  opacity: 0.55;
}

.course-results-panel .breadcrumb {
  color: var(--muted);
  margin-bottom: 10px;
}

.quick-filters .button.light:hover {
  background: var(--amber-soft);
  color: #8a5600;
  border-color: rgba(249, 179, 61, 0.55);
}

.hero-note {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px;
}

.hero-note strong {
  color: #fff;
}

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

.listing-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 240px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 87, 217, 0.36);
  box-shadow: var(--shadow);
}

.universities-page .listing-card {
  padding-bottom: 64px;
  cursor: pointer;
}

.universities-page .listing-card::after {
  content: "View related courses";
  position: absolute;
  left: 22px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}

.universities-page .listing-card:focus-visible {
  outline: 4px solid rgba(0, 87, 217, 0.18);
  border-color: var(--teal);
}

.university-rich-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 22px;
}

.universities-page .university-rich-card {
  padding-bottom: 22px;
}

.universities-page .university-rich-card::after {
  display: none;
  content: none;
}

.university-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.university-card-top .course-logo-tile {
  width: 62px;
  height: 54px;
  font-size: 0.95rem;
}

.university-facts {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(8, 22, 47, 0.08);
  border-radius: var(--radius);
  background: rgba(232, 241, 255, 0.46);
}

.university-facts div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
}

.university-facts strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.university-facts span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.fee-summary {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 170, 43, 0.32);
  background: linear-gradient(135deg, var(--amber-soft), #ffffff);
}

.fee-summary strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.fee-summary span {
  color: #8a5600;
  font-size: 1rem;
  font-weight: 950;
}

.fee-summary small {
  color: var(--muted);
  line-height: 1.4;
}

.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.card-title-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover h3 {
  color: var(--teal);
}

.language-center-link-card {
  cursor: pointer;
}

.universities-page .listing-grid,
.language-centers-page .listing-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.directory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 0;
  padding: 32px 0;
  border: 0;
  border-bottom: 1px solid #cfd7e4;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.directory-row:hover {
  transform: none;
  border-color: #cfd7e4;
  background: linear-gradient(90deg, rgba(232, 241, 255, 0.55), rgba(255, 255, 255, 0));
  box-shadow: none;
}

.directory-row-main {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.directory-row .course-logo-tile,
.directory-row .entity-logo {
  width: 118px;
  height: 82px;
  background: #ffffff;
  font-size: 1rem;
}

.directory-row-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.directory-row h3 {
  margin: 0;
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.15;
}

.directory-row-main:hover h3 {
  color: var(--teal);
}

.directory-row-meta,
.directory-row-count {
  color: var(--muted);
  font-weight: 700;
}

.directory-row-count {
  color: var(--ink);
}

.qs-rank-meta {
  color: var(--blue);
}

.directory-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.directory-row-tags em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 850;
}

.directory-row-actions {
  display: grid;
  grid-template-columns: 154px;
  gap: 10px;
}

.language-detail-hero {
  background: linear-gradient(105deg, var(--mint), #ffffff 72%);
}

.university-detail-hero {
  background: linear-gradient(105deg, var(--amber-soft), #ffffff 76%);
}

.university-detail-page .course-hero-card {
  border-radius: 8px 8px 8px 86px;
}

.university-photo-panel {
  margin-top: 22px;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 87, 217, 0.16), rgba(245, 170, 43, 0.2)),
    url("assets/malaysia-campus-hero-960.webp") center/cover;
}

.university-photo-mark {
  min-height: 210px;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 8px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(8, 22, 47, 0.78));
  color: #ffffff;
}

.university-photo-mark .entity-logo {
  width: 132px;
  height: 92px;
}

.university-photo-mark strong {
  font-size: 1.25rem;
}

.university-photo-mark span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 750;
}

.university-strength-grid {
  margin-top: 18px;
}

.university-course-list {
  display: grid;
  gap: 14px;
}

.university-course-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 1px 0 rgba(8, 22, 47, 0.03);
}

.university-course-card h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
}

.university-course-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.university-course-card .listing-actions {
  display: grid;
  grid-template-columns: 128px;
  gap: 9px;
}

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

.language-advice-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.listing-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.listing-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.meta span {
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--mint);
}

.comparison-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.comparison-item {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px;
}

.comparison-item strong {
  display: block;
  margin-bottom: 6px;
}

.comparison-item span {
  color: var(--muted);
}

.fee-guide-band {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 22px;
  align-items: start;
  margin-top: 34px;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #06122b, #0b3d91);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.fee-guide-band h2 {
  margin: 0 0 10px;
  line-height: 1.05;
}

.fee-guide-band p {
  color: rgba(255, 255, 255, 0.78);
}

.fee-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fee-guide-grid article {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.fee-guide-grid strong,
.fee-guide-grid span,
.fee-guide-grid small {
  display: block;
}

.fee-guide-grid span {
  color: #ffe0a3;
  font-weight: 950;
}

.fee-guide-grid small {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.card,
.article-card,
.market-panel,
.step,
.contact-panel,
.platform-card,
.faq-item {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.card,
.market-panel,
.step,
.faq-item {
  padding: 28px 24px;
}

.card:hover,
.market-panel:hover,
.step:hover,
.faq-item:hover,
.article-card:hover,
.platform-card:hover,
.contact-panel:hover {
  border-color: #cbd5e1;
  box-shadow: 0 20px 25px -5px rgba(0, 86, 179, 0.1), 0 10px 10px -5px rgba(0, 86, 179, 0.04);
  transform: translateY(-6px);
}

.card h3,
.market-panel h3,
.step h3,
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 700;
}

.card p,
.market-panel p,
.step p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.accent-line {
  width: 48px;
  height: 4px;
  border-radius: 8px;
  background: var(--coral);
  margin-bottom: 18px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 18px 20px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease;
}

.service-list li:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.roadmap {
  counter-reset: step;
}

.step {
  position: relative;
  min-height: 180px;
  overflow: hidden;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 800;
  font-size: 1rem;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius-lg, 12px);
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(15, 118, 110, 0.15);
}

.article-card-image {
  height: 150px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.04);
}

.article-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.article-card h3 {
  margin: 0;
  line-height: 1.18;
  font-size: 1.18rem;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-row li,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 5px 9px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.52fr);
  gap: 24px;
  align-items: start;
}

.contact-panel {
  padding: 24px;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(0, 87, 217, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 87, 217, 0.12);
}

.field textarea {
  min-height: 105px;
  resize: vertical;
}

.section-brand-logo {
  max-width: 140px;
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
}

.contact-icon-list,
.contact-details {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-icon-list li,
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #475569;
  font-weight: 500;
}

.contact-icon-list a,
.contact-details a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-icon-list a:hover,
.contact-details a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.contact-icon-list svg,
.contact-details svg {
  width: 20px;
  height: 20px;
  stroke: #0056b3;
  fill: none;
  flex-shrink: 0;
}

.footer {
  background: #061b3a;
  color: rgba(255, 255, 255, 0.84);
  padding: 48px 22px 40px;
}

.footer .inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer a {
  color: #d8e8ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Premium Footer Social Media Section --- */
.footer-social-section {
  margin-top: 2.5rem; /* Pushes the social links cleanly below the description text */
  width: 100%;
}

.social-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start; /* Aligns the pills to the left */
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.social-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.blog-hero {
  padding: 76px 22px 46px;
  background: #061b3a;
  color: var(--white);
}

.blog-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
}

.article-wrap {
  background: var(--paper);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--coral);
  z-index: 80;
}

.article,
.blog-article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  text-align: start;
  box-sizing: border-box;
}

.blog-article-content section,
.blog-article-block {
  margin-bottom: 36px;
  clear: both;
  width: 100%;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 18px;
}

.article h1 {
  margin-bottom: 18px;
  text-align: start;
}

.article .lead {
  font-size: 1.2rem;
  color: #435571;
  text-align: start;
}

.article-hero-img {
  width: 100%;
  height: min(420px, 48vw);
  object-fit: cover;
  border-radius: 8px;
  margin: 28px 0 34px;
  box-shadow: var(--shadow);
}

.article h2 {
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 42px 0 12px;
  text-align: start;
}

.article h3 {
  margin: 28px 0 8px;
  text-align: start;
}

.article p,
.article li {
  color: #263b60;
  text-align: start;
}

.article ul,
.article ol {
  padding-inline-start: 22px;
  padding-inline-end: 0;
  text-align: start;
}

.article-callout {
  border-inline-start: 4px solid var(--gold);
  background: #edf4ff;
  padding: 18px;
  border-radius: 8px;
  margin: 26px 0;
  text-align: start;
}

.source-list {
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 20px;
}

.source-list a {
  color: var(--teal-dark);
  font-weight: 750;
}

.source-list .article-callout {
  margin: 0;
  background: #f8fafc;
  border-inline-start: 4px solid var(--teal);
}

.source-list .article-callout h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 8px;
}

.source-list .article-callout p {
  margin-bottom: 0;
}

.article .breadcrumb {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.article .breadcrumb a {
  color: var(--teal-dark);
  transition: color 0.15s ease;
}

.article .breadcrumb a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.article .breadcrumb span {
  color: var(--muted);
}

html[dir="rtl"] .breadcrumb span::before,
body.is-rtl .breadcrumb span::before {
  content: "<";
  margin-inline-end: 8px;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 88px;
  border: 1px solid rgba(8, 22, 47, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.filter-panel-head {
  background: linear-gradient(135deg, var(--amber-soft), #ffffff);
  padding: 28px;
  border-bottom: 1px solid rgba(8, 22, 47, 0.18);
}

.filter-panel-head h2,
.results-toolbar h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  line-height: 1.05;
}

.filter-body {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.course-results-panel {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 1px solid #b9c2d0;
}

.sort-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-weight: 750;
}

.sort-wrap select {
  min-height: 42px;
  border: 1px solid #b9c2d0;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.compare-guide {
  display: flex;
  align-items: start;
  gap: 8px;
  margin: 16px 0 4px;
  padding: 13px 15px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 87, 217, 0.18);
  background: linear-gradient(135deg, var(--mint), #ffffff);
  color: var(--muted);
  font-size: 0.92rem;
}

.compare-guide strong {
  color: var(--teal-dark);
  white-space: nowrap;
}

.course-results {
  display: grid;
  gap: 0;
}

.course-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  padding: 34px 0;
  border-bottom: 1px solid #cfd7e4;
  transition: background 180ms ease, transform 180ms ease;
}

.course-result:hover {
  background: linear-gradient(90deg, rgba(232, 241, 255, 0.6), rgba(255, 255, 255, 0));
}

.compare-button.is-selected {
  color: #8a5600;
  background: var(--amber-soft);
  border-color: rgba(245, 170, 43, 0.7);
}

.course-main-link {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.course-logo-tile {
  width: 108px;
  height: 78px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--logo-color, var(--teal)) 35%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--logo-color, var(--teal)) 14%, #fff), #ffffff);
  color: var(--logo-color, var(--teal));
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 1px 0 rgba(0, 40, 110, 0.04);
}

.course-logo-tile.large {
  width: 190px;
  height: 160px;
  font-size: 2.15rem;
}

.entity-logo {
  width: 108px;
  height: 78px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--logo-color, var(--teal)) 25%, var(--line));
  box-shadow: 0 1px 0 rgba(0, 40, 110, 0.04);
  overflow: hidden;
}

img.entity-logo {
  object-fit: contain;
  display: block;
}

.entity-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.entity-logo rect {
  fill: #ffffff;
  stroke: color-mix(in srgb, var(--logo-color, var(--teal)) 28%, #d8e2f2);
  stroke-width: 2;
}

.entity-logo .logo-mark {
  fill: none;
  stroke: color-mix(in srgb, var(--logo-color, var(--teal)) 68%, #ffffff);
  stroke-width: 11;
  stroke-linecap: round;
}

.entity-logo .logo-dot.primary {
  fill: var(--logo-color, var(--teal));
}

.entity-logo .logo-dot.secondary {
  fill: var(--amber);
}

.entity-logo text {
  fill: var(--logo-color, var(--teal));
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  letter-spacing: 0;
}

.entity-logo .logo-caption {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.5px;
}

.entity-logo.large {
  width: 190px;
  height: 160px;
}

.entity-logo.is-language .logo-dot.secondary {
  fill: #6d4aff;
}

.course-copy {
  display: grid;
  gap: 8px;
}

.course-copy strong {
  font-size: 1.35rem;
  line-height: 1.16;
}

.course-main-link:hover .course-copy strong {
  color: var(--teal);
}

.course-university,
.course-meta-line,
.course-result-details p {
  color: var(--muted);
}

.money-value {
  display: inline-grid;
  gap: 2px;
  vertical-align: middle;
}

.money-value strong {
  color: var(--ink);
  font-weight: 950;
}

.money-value em {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
}

.course-meta-line .money-value {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.course-meta-line .money-value em {
  color: var(--muted);
}

.course-result-details {
  grid-column: 1;
  padding-left: 126px;
}

.course-result-details p {
  margin: 8px 0 0;
}

.mini-facts,
.intake-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-facts span,
.intake-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 850;
}

.mini-facts span {
  color: var(--teal-dark);
  background: var(--mint);
}

.intake-row {
  margin-top: 10px;
}

.intake-row span {
  color: #8a5600;
  background: var(--amber-soft);
}

.intake-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intake-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #8a5600;
  font-weight: 900;
}

.course-actions {
  grid-row: span 2;
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 148px;
}

.compare-button {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #b9c2d0;
  background: var(--white);
  color: #42516a;
  font-weight: 850;
  cursor: pointer;
}

.compare-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--mint);
}

.compare-button.is-selected {
  color: #8a5600;
  background: var(--amber-soft);
  border-color: rgba(245, 170, 43, 0.7);
}

.compare-panel {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(8, 22, 47, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(8, 22, 47, 0.2);
  transform: translateY(calc(100% + 30px));
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(22px);
}

.compare-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.compare-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.compare-panel-head strong,
.compare-panel-head span {
  display: block;
}

.compare-panel-head strong {
  font-size: 1rem;
}

.compare-panel-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.compare-panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compare-table-wrap {
  max-height: 44vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
}

.compare-table th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 130px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 950;
}

.compare-remove {
  min-height: 32px;
  border: 1px solid #cfd7e4;
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.compare-remove:hover {
  color: var(--teal-dark);
  border-color: var(--teal);
}

.compare-detail-link {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.compare-detail-link:hover {
  text-decoration: underline;
}

.compare-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  min-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(0, 87, 217, 0.22);
  border-radius: 999px;
  background: rgba(8, 22, 47, 0.94);
  color: var(--white);
  text-align: center;
  font-weight: 850;
  box-shadow: 0 18px 44px rgba(8, 22, 47, 0.24);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
}

.compare-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.empty-state {
  padding: 42px;
  margin-top: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.empty-state.compact {
  padding: 24px;
}

.directory-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 900;
}

.directory-count strong {
  color: var(--ink);
}

.course-detail-hero {
  padding: 70px 22px 62px;
  background: linear-gradient(90deg, var(--amber-soft) 0%, #ffffff 78%);
}

.course-detail-hero .breadcrumb {
  color: #42516a;
}

.course-hero-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 50px;
  border-radius: 8px 8px 8px 86px;
  background: linear-gradient(90deg, var(--amber-soft), rgba(255, 255, 255, 0.94));
  box-shadow: var(--shadow-soft);
}

.course-hero-copy h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1.03;
}

.course-university-line {
  color: var(--muted);
  font-size: 1.15rem;
}

.course-hero-actions {
  display: grid;
  grid-template-columns: 180px;
  gap: 12px;
}

.detail-tabs {
  position: sticky;
  top: 73px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.detail-tabs .inner {
  display: flex;
  gap: 38px;
  overflow-x: auto;
}

.detail-tabs a {
  position: relative;
  display: inline-flex;
  white-space: nowrap;
  text-decoration: none;
  color: #53647f;
  padding: 22px 0 18px;
  font-size: 1.06rem;
  font-weight: 850;
}

.detail-tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
}

.detail-tabs a.is-active {
  color: var(--ink);
}

.detail-tabs a.is-active::after {
  transform: scaleX(1);
}

.detail-grid,
.requirements-grid,
.fee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.course-detail-panel,
.requirement-card,
.fee-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(8, 22, 47, 0.03);
}

.course-detail-panel h2,
.requirement-card h3,
.fee-card h3,
.narrow h2 {
  margin-top: 0;
}

.fact-list {
  display: grid;
  gap: 14px;
}

.fact-list div {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.fact-list strong,
.fee-card th {
  text-align: left;
  color: #4d5b73;
  font-weight: 900;
}

.fact-list span,
.requirement-card p,
.narrow p,
.curriculum-list li {
  color: var(--muted);
}

.qs-search-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal, #0f766e) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.qs-search-link:hover {
  color: #0d5f58 !important;
  text-decoration: underline;
}

.check-list,
.curriculum-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.fee-card {
  padding: 0;
  overflow: hidden;
}

.fee-card h3 {
  padding: 20px 24px;
  margin: 0;
  background: #ffe2ad;
  border-bottom: 1px solid #152747;
}

.fee-card table {
  width: 100%;
  border-collapse: collapse;
}

.fee-card thead th {
  color: var(--ink);
  background: rgba(247, 250, 255, 0.9);
  font-size: 0.92rem;
}

.fee-card th,
.fee-card td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.fee-card tbody th {
  width: 46%;
  font-weight: 850;
}

.fee-card td .money-value {
  display: grid;
}

.fee-card tr:last-child th,
.fee-card tr:last-child td {
  border-bottom: 0;
}

.language-fee-table-wrap {
  display: grid;
}

.language-fee-table-card {
  overflow: hidden;
  border: 1.5px solid #152747;
  border-radius: 14px;
  background: #ffffff;
}

.language-fee-table-card table {
  width: 100%;
  border-collapse: collapse;
}

.language-fee-table-card thead th {
  padding: 24px 18px;
  color: #4d5b73;
  background: #ffe2ad;
  border-bottom: 1.5px solid #152747;
  text-align: center;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 900;
}

.language-fee-table-card td {
  padding: 20px 18px;
  border-bottom: 1px solid #cfd5df;
  color: #4d5b73;
  text-align: center;
  font-size: clamp(0.98rem, 1.6vw, 1.22rem);
}

.language-fee-table-card td .money-value {
  justify-items: center;
}

.language-fee-table-card tr:last-child td {
  border-bottom: 0;
}

.fee-note {
  color: var(--muted);
  margin-top: 18px;
}

.apply-band {
  padding: 54px 22px;
  background: linear-gradient(90deg, var(--amber-soft), #ffffff);
}

.apply-band .inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.apply-band h2 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.06;
}

.inner.narrow {
  max-width: 880px;
}

.curriculum-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}

.curriculum-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: embed;
}

html[dir="rtl"] .curriculum-list li,
[dir="rtl"] .curriculum-list li {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: embed;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none; /* CRITICAL FIX: Allows position: fixed to work globally */
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.tools-hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(245, 170, 43, 0.22), transparent 25%),
    linear-gradient(135deg, #06122b 0%, #0057d9 58%, #2b7cff 100%);
}

.tools-section {
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 87, 217, 0.08), transparent 24%),
    linear-gradient(180deg, var(--paper), #ffffff);
}

.tool-tabs {
  position: sticky;
  top: 86px;
  z-index: 16;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.tool-tabs button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.tool-tabs button:hover,
.tool-tabs button.is-active {
  background: var(--white);
  border-color: rgba(0, 87, 217, 0.2);
  color: var(--teal-dark);
  box-shadow: 0 8px 18px rgba(8, 22, 47, 0.06);
}

.tool-panel {
  display: none;
}

.tool-panel.is-active {
  display: block;
  animation: pageIn 280ms ease both;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 22px;
  align-items: start;
}

.tool-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.tool-form,
.tool-results,
.matcher-results,
.tool-compare-results {
  padding: 24px;
}

.tool-card-head {
  margin-bottom: 18px;
}

.tool-card-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.6vw, 2.6rem);
  line-height: 1.05;
}

.tool-card-head p:not(.kicker),
.tool-note {
  color: var(--muted);
  margin: 10px 0 0;
}

.cost-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.cost-breakdown div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), var(--surface));
}

.cost-breakdown span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.cost-breakdown strong,
.acc-price {
  color: var(--teal-dark);
  font-size: 1.15rem;
  font-weight: 950;
}

.cost-breakdown .money-value strong {
  color: var(--teal-dark);
  font-size: 1.15rem;
}

.recommendation-list,
.accommodation-results {
  display: grid;
  gap: 14px;
}

.recommendation-card,
.accommodation-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), var(--surface));
}

.recommendation-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.recommendation-card h3,
.accommodation-card h3 {
  margin: 0 0 6px;
}

.recommendation-card p,
.accommodation-card p {
  margin: 0;
  color: var(--muted);
}

.rank-badge,
.acc-status {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 950;
}

.accommodation-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.accommodation-card .meta,
.accommodation-card p,
.accommodation-card .listing-actions {
  grid-column: 1 / -1;
}

.acc-price {
  text-align: right;
}

.acc-price span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.tool-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tool-filter-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.tool-filter-grid input {
  accent-color: var(--teal);
}

.tool-compare-table {
  max-height: 56vh;
}

.faculty-tag {
  display: inline-flex;
  margin-top: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.dashboard-hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(245, 170, 43, 0.22), transparent 25%),
    linear-gradient(135deg, #06122b 0%, #0043ad 64%, #2b7cff 100%);
}

.dashboard-section {
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 87, 217, 0.08), transparent 28%),
    linear-gradient(180deg, var(--paper), #ffffff);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.student-mini-card,
.dashboard-card,
.dashboard-block,
.document-card,
.tracker-step,
.appointment-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.student-mini-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 22px;
}

.student-mini-card span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), #0b6bff);
  color: #ffffff;
  font-weight: 950;
  font-size: 1.2rem;
}

.student-mini-card small {
  color: var(--muted);
}

.dashboard-nav {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-nav a {
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
}

.dashboard-nav a:hover {
  background: var(--mint);
  color: var(--teal-dark);
}

.dashboard-main {
  display: grid;
  gap: 24px;
}

.dashboard-block {
  padding: 24px;
}

.dashboard-block-head {
  margin-bottom: 18px;
}

.dashboard-block-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  line-height: 1.06;
}

.dashboard-block-head p:not(.kicker) {
  color: var(--muted);
  margin: 10px 0 0;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-stat-grid article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), var(--surface));
}

.dashboard-stat-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.dashboard-stat-grid strong {
  color: var(--teal-dark);
  font-size: 1.05rem;
}

.dashboard-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card {
  padding: 20px;
}

.dashboard-card h3 {
  margin: 0 0 12px;
}

.dashboard-form,
.appointment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-form .wide {
  grid-column: 1 / -1;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.document-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.document-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.document-card h3 {
  margin: 0 0 6px;
}

.document-card p {
  margin: 0;
  color: var(--muted);
}

.doc-status {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.doc-status.is-uploaded {
  background: #def7ec;
  color: #046c4e;
}

.doc-status.is-missing {
  background: var(--amber-soft);
  color: #8a5600;
}

.document-upload {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px dashed rgba(0, 87, 217, 0.35);
  border-radius: var(--radius);
  background: var(--mint);
  cursor: pointer;
}

.document-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.document-upload span {
  color: var(--teal-dark);
  font-weight: 950;
}

.document-upload small {
  color: var(--muted);
}

.document-issues {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-issues li {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.84rem;
  font-weight: 850;
}

.document-issues .good {
  background: #def7ec;
  color: #046c4e;
}

.document-issues .warn {
  background: var(--amber-soft);
  color: #8a5600;
}

.document-issues .bad {
  background: #fee2e2;
  color: #991b1b;
}

.verification-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}

.verification-panel p {
  color: var(--muted);
  margin: 0;
}

.tracker-timeline {
  display: grid;
  gap: 10px;
}

.tracker-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.tracker-step > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 950;
}

.tracker-step.done > span {
  background: #def7ec;
  color: #046c4e;
}

.tracker-step.current {
  border-color: rgba(245, 170, 43, 0.56);
  box-shadow: 0 14px 42px rgba(245, 170, 43, 0.16);
}

.tracker-step.current > span {
  background: var(--amber);
  color: var(--navy);
}

.tracker-step h3,
.tracker-step p {
  margin: 0;
}

.tracker-step p {
  color: var(--muted);
}

.tracker-step button,
.saved-item button,
.appointment-item button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.tracker-step button:hover,
.saved-item button:hover,
.appointment-item button:hover {
  color: var(--teal-dark);
  border-color: var(--teal);
}

.inline-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.inline-add select {
  min-height: 40px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
}

.inline-add .button {
  min-width: 0;
  max-width: 100%;
}

.saved-list,
.appointment-list,
.notification-list,
.chat-history-list {
  display: grid;
  gap: 10px;
}

.saved-item,
.notification-item,
.chat-history-list article,
.appointment-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), var(--surface));
}

.saved-item,
.appointment-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.appointment-item span,
.chat-history-list span {
  color: var(--muted);
}

.whatsapp-automation-card textarea {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.platform-section {
  background: #ffffff;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  min-height: 270px;
  padding: 28px 22px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  overflow: hidden;
}

.platform-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 25px -5px rgba(0, 86, 179, 0.1), 0 10px 10px -5px rgba(0, 86, 179, 0.04);
}

.platform-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 800;
  font-size: 1rem;
}

.platform-card h3,
.platform-card p {
  margin: 0;
}

.platform-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Regional Focus Cards Enhancements */
.market-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.market-panel-banner {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.market-panel-banner.mena {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
}

.market-panel-banner.central {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
}

.market-panel-banner.global {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 50%, #3730a3 100%);
}

.market-panel-banner svg {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.market-panel-banner .region-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Admissions Guidance Section Enhancements */
.admissions-single-wrap {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.admissions-guidance-card {
  display: grid !important;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: center;
  min-height: auto !important;
  padding: 36px 32px !important;
  border-radius: 20px !important;
  border: 1px solid #e2e8f0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04) !important;
}

.admissions-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy, #0f172a), #1e3a8a);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.admissions-card-content h3 {
  font-size: 1.35rem;
  font-weight: 750;
  margin: 0 0 8px;
  color: var(--navy, #0f172a);
}

.admissions-card-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 20px;
}

.admissions-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .admissions-guidance-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px !important;
  }
}

.map-hero,
.operations-hero {
  background:
    radial-gradient(circle at 80% 8%, rgba(245, 170, 43, 0.24), transparent 26%),
    linear-gradient(135deg, #06122b 0%, #0043ad 56%, #2b7cff 100%);
}

.map-section {
  background:
    radial-gradient(circle at 78% 0%, rgba(0, 87, 217, 0.08), transparent 26%),
    linear-gradient(180deg, var(--paper), #ffffff);
}

.map-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.map-filter {
  position: sticky;
  top: 92px;
}

.map-filter-grid {
  display: grid;
  gap: 10px;
}

.map-filter-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.map-filter-chip:hover {
  border-color: rgba(0, 87, 217, 0.32);
  background: var(--mint);
}

.map-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.malaysia-map-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(185, 207, 244, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(232, 241, 255, 0.92), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 26% 32%, rgba(0, 87, 217, 0.2), transparent 18%),
    radial-gradient(circle at 80% 68%, rgba(245, 170, 43, 0.2), transparent 20%);
  box-shadow: var(--shadow-soft);
}

.map-shape {
  position: absolute;
  border: 1px solid rgba(0, 87, 217, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(183, 211, 255, 0.54));
  box-shadow: inset 0 0 46px rgba(0, 87, 217, 0.08), 0 18px 42px rgba(8, 22, 47, 0.08);
}

.map-shape.peninsula {
  left: 19%;
  top: 10%;
  width: 43%;
  height: 82%;
  border-radius: 54% 46% 48% 52% / 38% 42% 58% 62%;
  transform: rotate(4deg);
  clip-path: polygon(32% 0, 58% 4%, 72% 18%, 68% 38%, 84% 50%, 72% 69%, 78% 100%, 48% 92%, 35% 70%, 17% 56%, 26% 34%, 16% 18%);
}

.map-shape.borneo {
  right: 5%;
  top: 42%;
  width: 30%;
  height: 42%;
  border-radius: 58% 42% 48% 52%;
  transform: rotate(-5deg);
  clip-path: polygon(6% 42%, 32% 13%, 64% 18%, 94% 42%, 84% 78%, 48% 93%, 16% 78%);
}

.map-watermark {
  position: absolute;
  right: 30px;
  top: 22px;
  color: rgba(8, 22, 47, 0.06);
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 950;
  letter-spacing: 0;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 3px solid #ffffff;
  border-radius: 999px 999px 999px 3px;
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(8, 22, 47, 0.18);
  transform: translate(-50%, -50%) rotate(-45deg);
  cursor: pointer;
}

.map-pin span {
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: 950;
}

.map-pin:hover,
.map-pin.is-selected {
  z-index: 6;
  transform: translate(-50%, -62%) rotate(-45deg) scale(1.12);
  box-shadow: 0 18px 34px rgba(8, 22, 47, 0.26);
}

.map-pin-accommodation {
  background: var(--amber);
  color: var(--navy);
}

.map-pin-mrt {
  background: #6d4aff;
}

.map-pin-hospitals {
  background: #ef4444;
}

.map-pin-restaurants {
  background: #0f766e;
}

.map-pin-halal,
.map-pin-mosques {
  background: #0e9f6e;
}

.map-pin-shopping {
  background: #c026d3;
}

.map-pin-airports {
  background: #0369a1;
}

.map-detail-card,
.map-place-card,
.admin-map-summary,
.review-card-mini,
.moderation-item,
.crm-column,
.crm-card,
.seo-output-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.map-detail-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.map-detail-card h3,
.map-detail-card p {
  margin: 0;
}

.map-detail-card p {
  color: var(--muted);
}

.map-place-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.map-place-card {
  display: grid;
  gap: 5px;
  padding: 15px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.map-place-card:hover,
.map-place-card.is-selected {
  border-color: rgba(0, 87, 217, 0.36);
  transform: translateY(-2px);
}

.map-place-card span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.map-place-card small {
  color: var(--muted);
}

.operations-shell {
  grid-template-columns: 300px minmax(0, 1fr);
}

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

.admin-log-list {
  display: grid;
  gap: 10px;
}

.admin-log-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-public-grid {
  display: grid;
  gap: 12px;
}

.review-card-mini {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.review-card-mini strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.review-card-mini small,
.review-card-mini p {
  color: var(--muted);
  margin: 0;
}

.review-media {
  display: grid;
  place-items: center;
  min-height: 112px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--mint), #ffffff);
}

.review-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.review-media-placeholder {
  padding: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.moderation-panel {
  margin-top: 16px;
}

.moderation-list {
  display: grid;
  gap: 12px;
}

.moderation-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.moderation-item h4,
.moderation-item p {
  margin: 0 0 6px;
}

.moderation-item small {
  color: var(--muted);
}

.moderation-actions {
  display: grid;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.status-pending {
  background: var(--amber-soft);
  color: #8a5600;
}

.status-approved {
  background: #def7ec;
  color: #046c4e;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.admin-map-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.admin-map-summary > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.admin-map-summary article {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
}

.admin-map-summary strong {
  color: var(--teal-dark);
  font-size: 1.3rem;
}

.admin-map-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.seo-preview {
  display: grid;
  gap: 12px;
}

.seo-preview h3,
.seo-preview p {
  margin: 0;
}

.seo-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.seo-output-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.seo-output-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.seo-preview pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
}

.referral-list {
  margin-top: 16px;
}

.admin-table-wrap {
  overflow: auto;
}

.crm-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.crm-column {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.crm-column h3 {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 1rem;
}

.crm-column h3 span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
}

.crm-card {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.crm-card span,
.crm-card small,
.crm-card p {
  color: var(--muted);
  margin: 0;
}

.crm-card select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 6px 8px;
}

.admin-output {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.ai-consultant {
  position: fixed !important;
  left: 30px !important;
  right: auto !important;
  bottom: 40px !important;
  z-index: 86;
  font-family: inherit;
}

.ai-launcher {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-width: 178px;
  min-height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 9px 15px 9px 9px;
  background: linear-gradient(135deg, rgba(0, 87, 217, 0.96), rgba(6, 18, 43, 0.96));
  color: #ffffff;
  box-shadow: 0 22px 54px rgba(0, 87, 217, 0.28);
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.ai-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 68px rgba(0, 87, 217, 0.34);
}

.ai-launcher-mark {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal);
  font-weight: 950;
}

.ai-launcher > span:not(.ai-launcher-mark) {
  font-weight: 950;
  line-height: 1;
  text-align: start !important; /* CRITICAL RTL FIX */
}

body.is-rtl .ai-launcher {
  direction: rtl !important;
  text-align: right !important;
}
body.is-rtl .ai-launcher > span:not(.ai-launcher-mark) {
  text-align: right !important;
}

.ai-launcher em,
.ai-status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
}

.ai-launcher i,
.ai-status-line i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #29d978;
  box-shadow: 0 0 0 5px rgba(41, 217, 120, 0.16);
}

.ai-chat {
  position: fixed !important;
  left: 30px !important;
  right: auto !important;
  bottom: 120px !important;
  width: min(440px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 190px));
  display: grid;
  grid-template-rows: auto auto auto minmax(180px, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(185, 207, 244, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 90px rgba(8, 22, 47, 0.28);
  backdrop-filter: blur(24px);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  pointer-events: none;
}

.ai-chat.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ai-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #ffffff;
}

.ai-chat-head h2 {
  margin: 4px 0 2px;
  font-size: 1.25rem;
  line-height: 1.1;
}

.ai-chat-head span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
}

.ai-icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 950;
  cursor: pointer;
}

.ai-chat-tools,
.ai-suggestions,
.ai-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
}

.ai-chat-tools {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 72%, transparent);
}

.ai-chat-tools button,
.ai-suggestions button,
.ai-tool-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.ai-chat-tools button.is-active,
.ai-chat-tools button:hover,
.ai-suggestions button:hover,
.ai-tool-button:hover {
  border-color: rgba(0, 87, 217, 0.34);
  background: var(--mint);
  color: var(--teal-dark);
}

.ai-suggestions {
  padding-bottom: 6px;
}

.ai-suggestions button {
  font-size: 0.78rem;
}

.ai-messages {
  display: grid;
  gap: 10px;
  padding: 14px;
  overflow: auto;
}

.ai-message {
  max-width: 88%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(8, 22, 47, 0.04);
}

.ai-message.is-user {
  justify-self: end;
  background: linear-gradient(135deg, var(--teal), #0b6bff);
  color: #ffffff;
  border-color: transparent;
}

.ai-message.is-assistant {
  justify-self: start;
}

.ai-message p {
  margin: 0 0 8px;
}

.ai-message p:last-child {
  margin-bottom: 0;
}

.ai-message ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.ai-message code {
  border-radius: 6px;
  padding: 1px 5px;
  background: rgba(8, 22, 47, 0.08);
}

.ai-message-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ai-message-files span,
.ai-attachments button {
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  font-weight: 850;
}

.ai-message.is-assistant .ai-message-files span {
  background: var(--mint);
  color: var(--teal-dark);
}

.ai-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-typing i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  animation: typingPulse 900ms ease-in-out infinite;
}

.ai-typing i:nth-child(3) {
  animation-delay: 120ms;
}

.ai-typing i:nth-child(4) {
  animation-delay: 240ms;
}

.ai-attachment-note {
  margin: 0 14px 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #8a5600;
  font-size: 0.82rem;
  font-weight: 850;
}

.ai-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 10px;
}

.ai-attachments button {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.ai-attachments button:hover {
  border-color: var(--teal);
}

.ai-form {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 84%, transparent);
}

.ai-form textarea {
  width: calc(100% - 28px);
  margin: 14px 14px 0;
  min-height: 76px;
  max-height: 150px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.ai-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 87, 217, 0.12);
}

@keyframes typingPulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.university-thumbnail {
  width: 80px;
  height: 80px;
  min-width: 80px;
  max-width: 80px;
  object-fit: contain;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(8, 22, 47, 0.08);
  flex-shrink: 0;
  display: block;
  padding: 4px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.directory-row:hover .university-thumbnail {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(8, 22, 47, 0.14);
}

@media (max-width: 560px) {
  .directory-row .university-thumbnail {
    width: 64px;
    height: 64px;
    min-width: 64px;
    max-width: 64px;
    border-radius: 10px;
  }
}

@media (max-width: 1040px) {
  .inner,
  .dashboard-shell,
  .dashboard-main,
  .dashboard-sidebar,
  .dashboard-block,
  .dashboard-card,
  .student-mini-card,
  .dashboard-nav {
    min-width: 0;
    max-width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset: 76px 14px auto;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-actions .button {
    display: none;
  }

  .auto-translate-shell {
    max-width: 190px;
  }

  .grid.three,
  .grid.two,
  .grid.four,
  .directory-grid,
  .program-category-wrap,
  .platform-grid,
  .stats-band .inner,
  .help-timeline,
  .listing-grid,
  .comparison-strip,
  .service-list,
  .blog-list,
  .contact-wrap,
  .page-hero .inner,
  .trust-strip .inner,
  .directory-layout,
  .dashboard-shell,
  .dashboard-stat-grid,
  .dashboard-two,
  .dashboard-form,
  .appointment-form,
  .document-grid,
  .map-shell,
  .map-place-list,
  .admin-map-summary > div,
  .crm-board,
  .article-grid,
  .detail-grid,
  .requirements-grid,
  .fee-grid,
  .fee-guide-band,
  .fee-guide-grid,
  .tool-grid,
  .cost-breakdown {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .map-filter {
    position: static;
  }

  .dashboard-sidebar {
    position: static;
  }

  .results-toolbar,
  .apply-band .inner,
  .course-hero-card,
  .study-level-strip,
  .map-detail-card,
  .admin-map-summary,
  .directory-row {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-row {
    grid-template-columns: 1fr;
  }

  .directory-row-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .malaysia-map-stage {
    min-height: 460px;
  }

  .moderation-item {
    grid-template-columns: 1fr;
  }

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

  .study-level-strip nav {
    justify-content: flex-start;
  }

  .help-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .help-step-card {
    padding: 28px 16px 20px;
  }

  .course-hero-card {
    grid-template-columns: 1fr;
    padding: 28px;
    border-radius: var(--radius);
  }

  .course-logo-tile.large {
    width: 150px;
    height: 118px;
  }

  .entity-logo.large {
    width: 150px;
    height: 118px;
  }

  .course-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-result {
    grid-template-columns: 1fr;
  }

  .university-course-card {
    grid-template-columns: 1fr;
  }

  .university-course-card .listing-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-actions {
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

  .compare-guide,
  .compare-panel-head {
    display: grid;
  }

  .compare-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px;
  }

  .ai-consultant {
    right: 16px;
    bottom: 88px;
  }

  .ai-chat {
    right: 16px;
    bottom: 150px;
    max-height: calc(100vh - 166px);
  }

  .course-result-details {
    padding-left: 0;
  }

  .course-main-link {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .course-logo-tile {
    width: 86px;
    height: 66px;
  }

  .detail-tabs {
    top: 64px;
  }

  .program-category {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .tool-tabs {
    position: static;
    border-radius: var(--radius);
  }

  .recommendation-card,
  .accommodation-card,
  .tracker-step {
    grid-template-columns: 1fr;
  }

  .acc-price {
    text-align: left;
  }

  .university-card-top,
  .university-facts div {
    grid-template-columns: 1fr;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(6, 27, 58, 0.9), rgba(0, 87, 217, 0.72));
  }

  .hero-content {
    padding-top: 48px;
  }

  .footer .inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    padding: 12px 16px;
  }

  .brand span:last-child {
    max-width: 150px;
    line-height: 1.1;
  }

  .brand-logo {
    width: auto;
    height: 48px;
    max-height: 48px;
  }

  .nav-actions {
    gap: 8px;
  }

  .section,
  .article {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .course-hero-actions,
  .course-actions,
  .directory-row-actions,
  .curriculum-list,
  .tool-filter-grid {
    grid-template-columns: 1fr;
  }

  .directory-row-main {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
  }

  .directory-row .course-logo-tile {
    width: 82px;
    height: 62px;
    font-size: 0.82rem;
  }

  .tool-tabs button {
    flex: 1 1 100%;
  }

  .inline-add,
  .saved-item,
  .appointment-item,
  .verification-panel {
    grid-template-columns: 1fr;
  }

  .verification-panel {
    display: grid;
  }

  .results-toolbar {
    display: grid;
  }

  .sort-wrap {
    display: grid;
    align-items: stretch;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .course-detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ai-consultant {
    right: 16px;
    bottom: 84px;
  }

  .ai-launcher {
    min-width: 60px;
    padding: 9px;
  }

  .ai-launcher > span:not(.ai-launcher-mark),
  .ai-launcher em {
    display: none;
  }

  .ai-chat {
    inset: 12px 12px 92px;
    width: auto;
    max-height: none;
    border-radius: 16px;
  }

  .ai-chat-tools,
  .ai-suggestions,
  .ai-form-actions {
    padding-left: 12px;
    padding-right: 12px;
  }

  .auto-translate-shell > span,
  .auto-translate-shell small {
    display: none;
  }

  #google_translate_element {
    min-width: 104px;
  }
}



.language-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mint) 72%, transparent);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.country-hero {
  background: linear-gradient(135deg, #fff5df 0%, #ffffff 54%, #edf5ff 100%);
}

.country-grid,
.split-info,
.country-card-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.country-panel,
.country-card,
.seo-cta .inner,
.internal-links {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 40, 110, 0.03);
}

.country-panel,
.seo-cta .inner {
  padding: 26px;
}

.country-panel h2,
.seo-cta h2 {
  margin-top: 0;
}

.country-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  text-decoration: none;
}

.country-card:hover,
.country-panel:hover {
  border-color: rgba(0, 87, 217, 0.26);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.country-card span {
  color: var(--amber);
  font-weight: 950;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
}

.internal-links strong {
  margin-right: 4px;
}

.internal-links a:not(.button) {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.seo-cta {
  background: linear-gradient(90deg, #fff6e5, #ffffff 55%, #eef5ff);
  text-align: start;
  margin: 36px 0;
}

.seo-cta h2,
.seo-cta p {
  text-align: start;
}

.seo-cta .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.seo-cta .hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.seo-cta .hero-actions .button.secondary {
  background: #ffffff;
  border: 1.5px solid var(--teal);
  color: var(--teal) !important;
  box-shadow: 0 2px 6px rgba(0, 87, 217, 0.08);
}

.seo-cta .hero-actions .button.secondary:hover {
  background: var(--teal);
  color: #ffffff !important;
  border-color: var(--teal);
}

body.is-loading::before {
  content: "";
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 999;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--teal));
  background-size: 240% 100%;
  animation: loadingSweep 900ms linear infinite;
}

.reveal {
  will-change: opacity, transform, filter;
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 620ms ease;
  filter: blur(5px);
}

.reveal.is-visible {
  filter: blur(0);
}

.reveal:nth-child(2n) {
  transition-delay: 45ms;
}

.reveal:nth-child(3n) {
  transition-delay: 90ms;
}

@keyframes loadingSweep {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 240% 0;
  }
}

@media (max-width: 1040px) {
  .country-grid,
  .split-info,
  .country-card-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .language-status {
    display: none;
  }
}



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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Splash Screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

#splash-screen.hidden,
body.is-loaded #splash-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  animation: spin360 1.2s linear infinite;
}

@keyframes spin360 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Exact Amal WhatsApp Clone --- */
.wa-widget-box {
  position: fixed !important;
  bottom: 120px !important;
  right: 30px !important;
  left: auto !important;
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  z-index: 999999 !important;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.wa-widget-box.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.wa-header {
  background: #0f2b5b; /* Deep Blue */
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wa-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-profile img,
.whatsapp-avatar,
.chat-profile-img,
.chat-header img {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Stronger shadow to lift it off the background */
  margin-right: 15px;
  image-rendering: -webkit-optimize-contrast; /* Improves sharpness on webkit browsers */
  image-rendering: crisp-edges;
  flex-shrink: 0;
}
body.is-rtl .wa-profile img,
body.is-rtl .whatsapp-avatar,
body.is-rtl .chat-profile-img,
body.is-rtl .chat-header img,
html[dir="rtl"] .wa-profile img,
html[dir="rtl"] .whatsapp-avatar,
html[dir="rtl"] .chat-profile-img,
html[dir="rtl"] .chat-header img,
html[lang="ar"] .wa-profile img,
html[lang="ar"] .whatsapp-avatar,
html[lang="ar"] .chat-profile-img,
html[lang="ar"] .chat-header img {
  margin-right: 0;
  margin-left: 15px;
}
.wa-info { display: flex; flex-direction: column; text-align: left; }
body.is-rtl .wa-info { text-align: right; }
.wa-info h4 { margin: 0 0 2px 0; font-size: 0.95rem; color: #fff; font-weight: 700; line-height: 1; }
.wa-info span { font-size: 0.75rem; color: #a3b8dd; }
.wa-close {
  background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0.7; padding: 4px; line-height: 1;
}
.wa-close:hover { opacity: 1; }
.wa-body { 
  background: #f4f0e6; /* Warm Beige */
  padding: 20px; 
  display: flex; 
  flex-direction: column; 
}
.wa-time { 
  font-size: 0.7rem; 
  color: #888; 
  text-align: center; 
  margin-bottom: 8px; 
}
.wa-message {
  background: #fff;
  padding: 14px 16px;
  border-radius: 0 12px 12px 12px; /* LTR Tail */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.88rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left !important;
}
body.is-rtl .wa-message { 
  border-radius: 12px 0 12px 12px; /* RTL Tail */
  text-align: right !important;
}
.wa-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; transition: background 0.2s ease;
  align-self: center;
}
.wa-cta:hover { background: #1ebe57; color: #fff; }

.wa-trigger-btn {
  position: fixed !important;
  bottom: 40px !important;
  right: 30px !important;
  left: auto !important;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 999998 !important;
  border: none;
  transition: transform 0.2s ease;
}
.wa-trigger-btn:hover { transform: scale(1.05); }

/* BUG-11 NOTE: Widget-specific 560px overrides — kept separate from the main 560px block above.
   These !important rules intentionally override the earlier block for widget positioning only. */
@media (max-width: 560px) {
  .wa-widget-box {
    right: 16px !important;
    bottom: 100px !important;
    width: calc(100vw - 32px);
  }
  .wa-trigger-btn {
    right: 16px !important;
    bottom: 24px !important;
  }
  .ai-consultant {
    left: 16px !important;
    bottom: 24px !important;
  }
  .ai-chat {
    left: 12px !important;
    bottom: 100px !important;
    max-height: calc(100vh - 166px);
    width: auto;
  }
}

/* RTL Phone number bidirectional isolation (bidi protection) */
[data-phone],
.contact-phone,
.phone-number,
[dir="ltr"].notranslate {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
}

/* ==========================================================================
   Arrival & Student Welcome Pack Card
   ========================================================================== */
.arrival-pack-card {
  margin-top: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 10px 25px -5px rgba(0, 86, 179, 0.08), 0 8px 10px -6px rgba(0, 86, 179, 0.04);
  position: relative;
  overflow: hidden;
}

.arrival-pack-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.arrival-pack-title-wrap {
  flex: 1;
  min-width: 280px;
}

.arrival-pack-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.arrival-pack-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.arrival-pack-header p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
  max-width: 600px;
}

.arrival-pack-cta {
  background: #0056b3;
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.arrival-pack-cta:hover {
  background: #004494;
  transform: translateY(-2px);
}

.arrival-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.arrival-pack-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.arrival-pack-item:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 10px 18px -4px rgba(0, 86, 179, 0.08);
}

.arrival-pack-item .pack-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.arrival-pack-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.arrival-pack-item p {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   Study Duration & Cost Calculator Widget
   ========================================================================== */
.cost-calculator-section {
  background: #f8fafc;
  padding: 80px 20px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.calculator-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.calculator-inputs-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-living-display {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0056b3;
}

.calc-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: #ffffff;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-select:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.calc-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-radio-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  background: #f8fafc;
}

.calc-radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-radio-card.is-active {
  border-color: #0056b3;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #0056b3;
}

.calc-radio-card .radio-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.calc-radio-card.is-active .radio-title {
  color: #0056b3;
}

.calc-radio-card .radio-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.3;
}

.living-presets {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.preset-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.preset-btn:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.preset-btn.is-active {
  background: #0056b3;
  color: #ffffff;
  border-color: #0056b3;
  box-shadow: 0 2px 6px rgba(0, 86, 179, 0.25);
}

.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #cbd5e1;
  outline: none;
  cursor: pointer;
  accent-color: #0056b3;
}

.slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}

.calculator-results-panel {
  background: linear-gradient(145deg, #0b192c 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 36px 32px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 30px -5px rgba(11, 25, 44, 0.3);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.results-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.duration-badge {
  background: rgba(0, 86, 179, 0.4);
  border: 1px solid rgba(147, 197, 253, 0.3);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
}

.result-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

.result-value {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.myr-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.usd-val {
  font-size: 0.82rem;
  color: #94a3b8;
}

.result-total-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 6px 0;
}

.total-row {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin: 4px -8px;
}

.grand-title {
  font-size: 1.1rem;
  color: #f8fafc;
  font-weight: 800;
}

.grand-myr {
  font-size: 1.65rem;
  font-weight: 900;
  color: #f59e0b;
}

.grand-usd {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
}

.calc-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-whatsapp-btn {
  background: #25D366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.calc-whatsapp-btn:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

.calc-disclaimer {
  font-size: 0.74rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

/* Calculator Responsive Media Queries */
@media (max-width: 900px) {
  .calculator-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .calculator-inputs-panel,
  .calculator-results-panel {
    padding: 24px 18px;
  }
  .calc-radio-group {
    grid-template-columns: 1fr;
  }
  .living-presets {
    flex-wrap: wrap;
  }
  .preset-btn {
    min-width: calc(50% - 4px);
  }
  .grand-myr {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   Calculator Modal Dialog Styles
   ========================================================================== */
.calc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.calc-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.calc-modal-container {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  padding: 32px;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-modal-backdrop.is-open .calc-modal-container {
  transform: scale(1) translateY(0);
}

.calc-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.calc-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.calc-modal-header p {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
}

.calc-modal-close {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  font-size: 1.3rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.calc-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .calc-modal-container {
    padding: 20px 16px;
    max-height: 94vh;
  }
  .calc-modal-header h2 {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Courses Directory Pagination
   ========================================================================== */
.pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 28px 16px;
  border-top: 1px solid var(--border, #e2e8f0);
  width: 100%;
}

.pagination-counter {
  font-size: 0.9375rem;
  color: var(--muted, #64748b);
  font-weight: 500;
  text-align: center;
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink, #1e293b);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  text-decoration: none;
}

.pagination-btn:hover:not(:disabled):not(.is-active) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--teal, #0f766e);
}

.pagination-btn.is-active {
  background: var(--teal, #0f766e);
  border-color: var(--teal, #0f766e);
  color: #ffffff;
  cursor: default;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}

.pagination-btn:disabled,
.pagination-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 40px;
  color: #64748b;
  font-weight: 700;
  font-size: 1rem;
  user-select: none;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

body.is-rtl .pagination-prev svg,
body.is-rtl .pagination-next svg {
  transform: scaleX(-1);
}

@media (max-width: 640px) {
  .pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.8125rem;
  }
  .pagination-ellipsis {
    width: 24px;
    height: 36px;
  }
}


/* Strict Blog Article Layout Constraints to prevent overlap */
.blog-article-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 40px 20px 100px !important;
  padding-bottom: 100px !important; /* Clears the WhatsApp widget */
  box-sizing: border-box !important;
}

.blog-article-content > * {
  width: 100% !important;
  clear: both !important;
}

.blog-article-block {
  margin-bottom: 36px;
  clear: both;
  width: 100%;
}
