/* ==========================================================================
   StudyCo Landing Page Master CSS
   Design System: Golden Yellow (#F5B000), Deep Black (#111111)
   Fully Fluid & 100% Responsive for All Screen Sizes (320px to 2560px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design System Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary: #F5B000;
  --color-primary-hover: #E09E00;
  --color-primary-light: #FFF9E6;
  --color-black: #111111;
  --color-black-light: #222222;
  --color-white: #FFFFFF;

  /* Service Card Theme Accent Colors (Matching IMG_7834.jpeg) */
  --service-yellow-bg: #FFFDF0;
  --service-yellow-accent: #F5B000;

  --service-blue-bg: #F0F7FF;
  --service-blue-accent: #2563EB;

  --service-purple-bg: #F8F5FF;
  --service-purple-accent: #7C3AED;

  --service-green-bg: #F0FDF4;
  --service-green-accent: #10B981;

  /* Neutral Gray Scale */
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-600: #4B5563;
  --color-gray-800: #1F2937;

  /* Typography Fallbacks */
  --font-family: 'Poppins', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.1);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Global Resets & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
}

/* Arabic Typography */
[lang="ar"], [dir="rtl"], [dir="rtl"] body {
  font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

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

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, select, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Container Utility with CSS Logical Properties */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-padding {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

/* Typography Headings */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-block-end: clamp(2rem, 4vw, 3.5rem);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-black);
  margin-block-end: 0.75rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--color-gray-600);
}

/* --------------------------------------------------------------------------
   3. Header & Navigation (Glassmorphic & Mobile Drawer)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: clamp(64px, 8vh, 74px);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  height: clamp(58px, 7vh, 66px);
}

.header-container {
  display: flex;
  direction: ltr !important;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.35rem, 0.8vw, 0.85rem);
  width: 100%;
}

.brand-logo {
  flex: 0 0 auto !important;
  margin-inline-end: clamp(0.35rem, 0.8vw, 0.85rem) !important;
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: clamp(26px, 2.8vw, 32px);
  width: auto;
  max-width: 125px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

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

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.08rem, 0.3vw, 0.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto !important;
  margin-inline-start: auto;
}

.lang-selector {
  position: relative;
  flex: 0 0 auto;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: clamp(0.66rem, 0.72vw, 0.78rem);
  font-weight: 600;
  color: var(--color-black);
  padding: 0.2rem 0.28rem;
  transition: var(--transition);
  white-space: nowrap !important;
}

.nav-item.active .nav-link,
.nav-link:hover {
  color: var(--color-primary-hover);
}

.nav-item.active .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  inset-inline: 0;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.dropdown-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

/* Dropdown Menu Desktop */
.dropdown-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  list-style: none;
  z-index: 1100;
  border: 1px solid var(--color-gray-100);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-gray-800);
  transition: var(--transition);
}

.dropdown-link:hover {
  background-color: var(--color-primary-light);
  color: var(--color-black);
  padding-inline-start: 1.5rem;
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 108px;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-black);
  transition: var(--transition);
  cursor: pointer;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background-color: var(--color-gray-200);
}

.lang-btn .globe-icon {
  width: 16px;
  height: 16px;
  color: var(--color-gray-600);
  flex-shrink: 0;
}

.lang-btn .dropdown-icon {
  width: 12px;
  height: 12px;
  color: var(--color-gray-600);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lang-btn[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
  padding: 0.5rem 0;
  min-width: 175px;
  max-height: 380px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  list-style: none;
  z-index: 1200;
}

.lang-selector.open .lang-menu,
.lang-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-800);
  transition: background-color 0.15s ease, color 0.15s ease;
  text-align: start;
  border: none;
  background: transparent;
  cursor: pointer;
}

.lang-item button:hover,
.lang-item button:focus-visible {
  background-color: var(--color-primary-light);
  color: var(--color-black);
  outline: none;
}

.lang-item button.active,
.lang-item button[aria-current="true"] {
  font-weight: 700;
  color: var(--color-black);
  background-color: rgba(245, 176, 0, 0.12);
}

.lang-item .check-icon {
  width: 16px;
  height: 16px;
  color: #B45309;
  flex-shrink: 0;
  display: none;
}

.lang-item button.active .check-icon,
.lang-item button[aria-current="true"] .check-icon {
  display: block;
}

/* Header WhatsApp Button */
.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background-color: var(--color-primary);
  color: var(--color-black);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-whatsapp-header:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.wa-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  cursor: pointer;
  z-index: 1300;
}

.mobile-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--color-black);
  border-radius: 3px;
  transition: var(--transition);
}

/* --------------------------------------------------------------------------
   4. Hero Section (Centered Balanced 2-Column Grid inside Shared Container)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 176, 0, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  padding-block: clamp(1.5rem, 3.5vh, 2.75rem);
  min-height: clamp(430px, 56vh, 560px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  direction: ltr !important;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: start;
  padding: 0;
  z-index: 3;
  width: 100%;
}

[dir="rtl"] .hero-content {
  direction: rtl;
  align-items: flex-start;
  text-align: start;
}

.hero-title {
  font-size: clamp(1.85rem, min(3.2vw, 4.5vh), 2.65rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-black);
  margin-block-end: clamp(0.5rem, 1.2vh, 0.85rem);
  width: 100%;
}

.hero-title .highlight {
  color: var(--color-primary);
  display: inline-block;
}

.hero-desc {
  font-size: clamp(0.875rem, min(1.15vw, 1.6vh), 1rem);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-block-end: clamp(0.75rem, 1.6vh, 1.25rem);
  width: 100%;
}

.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: clamp(0.75rem, 1.6vh, 1.35rem);
  width: 100%;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.trust-badge svg {
  width: 15px;
  height: 15px;
  color: var(--color-primary);
}

.hero-action-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}

.hero-btn-wrapper {
  position: relative;
  display: inline-flex;
  direction: ltr !important;
  align-items: center;
  width: fit-content;
  margin: 0;
}

.btn-hero-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: clamp(0.7rem, 1.5vh, 0.9rem) clamp(1.4rem, 2.2vw, 1.85rem);
  background-color: var(--color-primary);
  color: var(--color-black);
  font-size: clamp(0.875rem, 1.1vw, 0.95rem);
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(245, 176, 0, 0.35);
  transition: var(--transition);
  max-width: 100%;
}

.btn-hero-whatsapp:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 176, 0, 0.45);
}

.hero-arrow-annotation {
  display: inline-block;
  width: 42px;
  height: 38px;
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
  color: var(--color-black);
  transform: rotate(-10deg) translateY(-2px) !important;
  flex-shrink: 0;
}

.hero-sub-text {
  display: flex;
  direction: ltr !important;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--color-gray-600);
  margin: 0;
  white-space: nowrap;
}

.hero-sub-text span.dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-gray-400);
  border-radius: 50%;
  flex-shrink: 0;
}

/* On desktop the photo is a full-bleed section background, exactly like
   the reference: the grid only reserves the right column, while the image
   itself stretches across the whole hero band behind the text. */
.hero-graphic-wrap {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  max-height: clamp(380px, 55vh, 480px);
}

.hero-image-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: block;
  background: transparent;
  z-index: 1;
}

/* One full-band image: solid photo on the right, its baked dissolve
   starting mid-screen and carrying a faint scene hint behind the copy. */
.hero-image-container img,
#hero-student-img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right 25%;
  display: block;
}

/* Dotted Flight Path Curve SVG */
.flight-path-svg {
  position: absolute;
  top: 15px;
  inset-inline-end: 15px;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 6;
  opacity: 0.85;
}

/* Floating Airplane Badge (Free interactive CSS element) */
.floating-plane-badge {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(245, 176, 0, 0.4);
  z-index: 10;
  animation: floatPlane 3.5s ease-in-out infinite;
}

.floating-plane-badge .plane-icon {
  width: 22px;
  height: 22px;
  transform: rotate(-35deg);
}

[dir="rtl"] .floating-plane-badge .plane-icon {
  transform: rotate(35deg) scaleX(-1);
}

@keyframes floatPlane {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

/* Floating Stats Card (Real interactive UI element) */
.floating-stats-card {
  position: absolute;
  bottom: 22px;
  left: 46%;
  right: auto;
  inset-inline-end: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.floating-card-icon {
  width: 34px;
  height: 34px;
  background-color: var(--service-yellow-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.floating-card-text {
  display: flex;
  flex-direction: column;
}

.floating-card-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-black);
  line-height: 1.2;
}

.floating-card-sub {
  font-size: 0.66rem;
  color: var(--color-gray-600);
  line-height: 1.2;
  margin-block-end: 2px;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #F59E0B;
}

.rating-stars svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.rating-stars .rating-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-black);
  margin-inline-start: 4px;
}

/* Services Section (Clean spacing below Hero, zero overlapping) */
.services-section {
  position: relative;
  z-index: 1;
  margin-block-start: 0;
  padding-block: clamp(3rem, 6vh, 5rem);
}

/* --------------------------------------------------------------------------
   5. Services Section (4 Seamless Merged Cutout Cards - Matching Reference)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   5. Services Section (4 Seamless Merged Cutout Cards - Matching Master Reference 100%)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  --card-bg: #FEF9EE;
  --card-btn-bg: #F5B000;
  --card-btn-color: #111111;
  --icon-bg: #F5B000;
  --icon-color: #FFFFFF;
  --icon-ring: rgba(245, 176, 0, 0.25);
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 2rem 0 0 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.service-card.theme-yellow {
  --card-bg: #FEF9EE;
  --card-btn-bg: #F5B000;
  --card-btn-color: #111111;
  --icon-bg: #F5B000;
  --icon-color: #FFFFFF;
  --icon-ring: rgba(245, 176, 0, 0.25);
}

.service-card.theme-blue {
  --card-bg: #F0F6FF;
  --card-btn-bg: #2563EB;
  --card-btn-color: #FFFFFF;
  --icon-bg: #2563EB;
  --icon-color: #FFFFFF;
  --icon-ring: rgba(37, 99, 235, 0.22);
}

.service-card.theme-purple {
  --card-bg: #F7F4FF;
  --card-btn-bg: #7C3AED;
  --card-btn-color: #FFFFFF;
  --icon-bg: #7C3AED;
  --icon-color: #FFFFFF;
  --icon-ring: rgba(124, 58, 237, 0.22);
}

.service-card.theme-green {
  --card-bg: #F0FDF4;
  --card-btn-bg: #059669;
  --card-btn-color: #FFFFFF;
  --icon-bg: #059669;
  --icon-color: #FFFFFF;
  --icon-ring: rgba(16, 185, 129, 0.22);
}

.service-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 1.5rem;
  flex: 1 1 auto;
  z-index: 5;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 1.15rem;
  background-color: var(--icon-bg);
  color: var(--icon-color);
  box-shadow: 0 0 0 5px var(--icon-ring);
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.08);
}

.service-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin-block-end: 0.6rem;
  text-align: center;
}

.service-desc {
  font-size: 0.86rem;
  color: #4B5563;
  line-height: 1.6;
  margin-block-end: 1.25rem;
  text-align: center;
  flex-grow: 1;
}

.btn-service-action {
  background-color: var(--card-btn-bg);
  color: var(--card-btn-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition);
  margin-block-end: 1rem;
  margin-block-start: auto;
  margin-inline: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-service-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-service-action .wa-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Seamless Cutout & Photo Merged at Bottom of Card */
.service-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  margin: 0;
  padding: 0;
  margin-block-start: auto;
  margin-block-end: 0;
  overflow: hidden;
  display: flex;
  background: transparent;
}

.service-img-merged {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: none;
  outline: none;
  box-shadow: none;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-merged {
  transform: scale(1.04);
}

.service-img-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35px;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--card-bg) 0%, transparent 100%);
}

/* --------------------------------------------------------------------------
   6. Popular Study Destinations (6 Country Cards)
   -------------------------------------------------------------------------- */
.destinations-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-block-end: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.country-card {
  --card-bg: var(--color-white);
  background-color: var(--card-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-100);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.country-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.country-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.country-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  border-radius: 0;
  border: none;
  outline: none;
  box-shadow: none;
  display: block;
  transition: transform 0.5s ease;
}

.country-card:hover .country-img-box img {
  transform: scale(1.06);
}

.country-img-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 65%, var(--card-bg) 100%);
}

.country-flag-badge {
  position: absolute;
  top: 15px;
  inset-inline-end: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-white);
  padding: 3px;
  box-shadow: var(--shadow-md);
  z-index: 5;
}

.country-flag-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.country-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-items: center;
  text-align: center;
}

.country-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
  margin-block-end: 0.4rem;
  text-align: center;
}

.country-desc {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-block-end: 1.25rem;
  line-height: 1.5;
  text-align: center;
  flex-grow: 1;
}

.btn-country-consult {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-black);
  padding: 0.55rem 1.1rem;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

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

/* Colored Country WhatsApp Buttons (Matching Reference Image 100%) */
.btn-country-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition);
  margin-block-start: 0.5rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  justify-content: center;
}

.btn-country-wa:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-yellow-btn { background-color: var(--color-primary); color: var(--color-black); }
.theme-blue-btn { background-color: #2563EB; color: var(--color-white); }
.theme-navy-btn { background-color: #1E293B; color: var(--color-white); }
.theme-red-btn { background-color: #DC2626; color: var(--color-white); }
.theme-darkblue-btn { background-color: #1D4ED8; color: var(--color-white); }
.theme-darknavy-btn { background-color: #0F172A; color: var(--color-white); }

/* --------------------------------------------------------------------------
   7. Statistics Bar (#111111 Dark Rounded Container)
   -------------------------------------------------------------------------- */
.stats-bar-section {
  padding-block: 2.5rem;
}

.stats-bar-container {
  background-color: var(--color-black);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  color: var(--color-white);
  box-shadow: var(--shadow-xl);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
  padding-inline-end: 1rem;
}

.stat-item:last-child {
  border-inline-end: none;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(245, 176, 0, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 26px;
  height: 26px;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-block-end: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-gray-300);
}

/* --------------------------------------------------------------------------
   8. Interactive Tools (6.1 Advisor & 6.2 Calculator)
   -------------------------------------------------------------------------- */
.tools-section {
  background-color: var(--color-gray-50);
}

.tools-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
  max-width: 900px;
  margin-inline: auto;
}

.tools-tabs {
  display: flex;
  gap: 1rem;
  border-block-end: 2px solid var(--color-gray-200);
  margin-block-end: 2rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-600);
  border-block-end: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--color-black);
  border-block-end-color: var(--color-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Advisor Wizard */
.wizard-progress {
  width: 100%;
  height: 6px;
  background-color: var(--color-gray-200);
  border-radius: var(--radius-full);
  margin-block-end: 2rem;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  width: 25%;
  background-color: var(--color-primary);
  transition: width 0.4s ease;
}

.wizard-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-block-end: 1.5rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-block-end: 2rem;
}

.option-card {
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-card.selected,
.option-card:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-wizard {
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-wizard-prev {
  background-color: var(--color-gray-200);
  color: var(--color-black);
}

.btn-wizard-next {
  background-color: var(--color-primary);
  color: var(--color-black);
}

/* Calculator Form */
.calc-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-block-end: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray-800);
}

.form-control {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background-color: var(--color-white);
  color: var(--color-black);
  height: 48px;
}

/* Native selects use the system font: Android Chrome breaks Arabic glyph
   joining when a webfont is applied inside <select>/<option>. */
select.form-control,
select.form-control option {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif !important;
}

.calc-result-box {
  background-color: var(--service-yellow-bg);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-block-end: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.calc-result-label {
  color: var(--color-gray-600);
}

.calc-result-val {
  font-weight: 700;
  color: var(--color-black);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   8.5 Floating Admission Advisor Chatbot Widget
   -------------------------------------------------------------------------- */
.chatbot-widget-wrap {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chatbot-trigger-btn {
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background-color: var(--color-primary);
  color: var(--color-black);
  box-shadow: 0 8px 24px rgba(245, 176, 0, 0.45);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.chatbot-trigger-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(245, 176, 0, 0.6);
}

.chatbot-trigger-btn .chat-icon {
  width: 26px !important;
  height: 26px !important;
}

.chatbot-badge-text {
  display: none !important;
}

.chatbot-pulse {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  width: 14px;
  height: 14px;
  background-color: #10B981;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.chatbot-window {
  position: fixed;
  bottom: 92px;
  inset-inline-end: 28px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  background-color: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2500;
}

.chatbot-header {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.chatbot-avatar-box {
  position: relative;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-black);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #10B981;
  border-radius: 50%;
  border: 2px solid var(--color-black);
}

.chatbot-header-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.chatbot-header-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.chatbot-status {
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

.chatbot-close-btn {
  font-size: 1.5rem;
  color: var(--color-gray-400);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.chatbot-close-btn:hover { color: var(--color-white); }

.chatbot-messages {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--color-gray-50);
}

.chat-bubble {
  max-width: 88%;
  padding: 0.85rem 1.15rem;
  border-radius: 18px;
  font-size: 0.885rem;
  line-height: 1.55;
  animation: fadeIn 0.3s ease;
  word-break: break-word;
}

.chat-bubble.bot {
  align-self: flex-start;
  background-color: var(--color-white);
  color: var(--color-black);
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-gray-200);
}

[dir="rtl"] .chat-bubble.bot {
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background-color: var(--color-primary);
  color: var(--color-black);
  border-bottom-right-radius: 4px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 176, 0, 0.25);
}

[dir="rtl"] .chat-bubble.user {
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 4px;
}

/* 2-Column Options Grid */
.chatbot-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  width: 100%;
  margin-block-start: 0.35rem;
}

.chatbot-option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.65rem;
  background-color: var(--color-white);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  color: var(--color-black);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.chatbot-option-card:hover {
  background-color: #FFFDF0;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(245, 176, 0, 0.2);
}

.chatbot-option-card.full-width {
  grid-column: span 2;
  background-color: #FAFAFA;
}

.chatbot-option-card .opt-icon {
  font-size: 1.1rem;
}

.chatbot-result-card {
  background-color: #FFFDF5;
  border: 1.5px solid var(--color-primary);
  border-radius: 16px;
  padding: 1.25rem;
  margin-block-start: 0.5rem;
  box-shadow: 0 8px 20px rgba(245, 176, 0, 0.15);
}

.chatbot-result-card .result-header {
  margin-bottom: 0.75rem;
}

.chatbot-result-card .result-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-black);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 0.4rem;
}

.chatbot-result-card h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-black);
  margin: 0;
}

.chatbot-result-card .result-details {
  font-size: 0.825rem;
  color: var(--color-gray-600);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.chatbot-result-card .btn-result-wa {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.chatbot-footer {
  padding: 0.75rem 1.25rem;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  justify-content: center;
}

.chatbot-restart-btn {
  font-size: 0.825rem;
  color: var(--color-gray-600);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s ease;
}

.chatbot-restart-btn:hover {
  color: var(--color-black);
}

/* --------------------------------------------------------------------------
   9. Student Testimonials Carousel
   -------------------------------------------------------------------------- */
.testimonials-section {
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   9. Student Testimonials Slider (Manual User Scroll / Arrow Controlled)
   -------------------------------------------------------------------------- */
.testimonials-slider-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 1.5rem;
  cursor: grab;
}

.testimonials-slider-container::-webkit-scrollbar {
  display: none;
}

.testimonials-slider-container:active {
  cursor: grabbing;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: none !important;
}

.testimonial-card {
  flex: 0 0 360px;
  width: 360px;
  max-width: 85vw;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-gray-100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  user-select: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  border-color: rgba(245, 176, 0, 0.35);
}

.testimonial-text {
  font-size: 0.935rem;
  color: var(--color-gray-700);
  line-height: 1.65;
  margin-block-end: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--color-gray-100);
  padding-top: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-black);
}

.author-uni {
  font-size: 0.8rem;
  color: var(--color-gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   10. Partner Universities Slider (Manual User Scroll / Arrow Controlled)
   -------------------------------------------------------------------------- */
.universities-section {
  position: relative;
  overflow: hidden;
}

.universities-slider-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 1rem;
  cursor: grab;
}

.universities-slider-container::-webkit-scrollbar {
  display: none;
}

.universities-slider-container:active {
  cursor: grabbing;
}

.universities-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  align-items: center;
  animation: none !important;
}

.uni-logo-box {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  width: 220px;
  flex: 0 0 220px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.uni-logo-box:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(245, 176, 0, 0.15);
}

.uni-logo-box img {
  max-height: 52px;
  max-width: 100%;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Slider Navigation Arrow Controls
   -------------------------------------------------------------------------- */
.slider-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-block-start: 2rem;
  width: 100%;
}

.slider-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-200);
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.slider-nav-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-black);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(245, 176, 0, 0.35);
}

.slider-nav-btn:active {
  transform: scale(0.95);
}

.slider-nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* --------------------------------------------------------------------------
   11. CTA Banner Section (Full-Width Edge-to-Edge Strip matching Reference Image)
   -------------------------------------------------------------------------- */
.cta-banner-section {
  padding-block: 0;
  width: 100%;
  overflow: hidden;
  margin-block-start: 3rem;
}

.cta-banner-card {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  background-color: var(--color-primary);
  padding: clamp(2.5rem, 5vw, 4rem) max(1.5rem, 6vw);
  position: relative;
  overflow: hidden;
  display: flex;
  direction: ltr !important;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
}

.cta-banner-content {
  max-width: 620px;
  position: relative;
  z-index: 5;
}

[dir="rtl"] .cta-banner-content {
  direction: rtl;
  text-align: start;
}

.cta-icon-headset {
  width: 44px;
  height: 44px;
  margin-block-end: 1rem;
  color: var(--color-black);
}

.cta-banner-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--color-black);
  line-height: 1.2;
  margin-block-end: 0.75rem;
}

.cta-banner-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--color-black);
  opacity: 0.9;
  margin-block-end: 2rem;
}

.btn-cta-black {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-cta-black:hover {
  background-color: var(--color-black-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-banner-image {
  position: absolute;
  right: 0;
  left: auto;
  top: 0;
  height: 100%;
  width: 48%;
  max-width: 680px;
  object-fit: cover;
  object-position: center 20%;
  mask-image: linear-gradient(to right, transparent 0%, black 35%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%);
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

/* --------------------------------------------------------------------------
   12. Centered Luxury Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding-block-start: 3.5rem;
  padding-block-end: 2rem;
}

.footer-centered-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-block-end: 2.75rem;
  gap: 1.25rem;
}

.footer-logo-centered img {
  height: clamp(38px, 5vw, 48px);
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.footer-logo-centered:hover img {
  transform: scale(1.05);
}

.footer-centered-desc {
  font-size: 0.95rem;
  color: var(--color-gray-400);
  line-height: 1.7;
  max-width: 580px;
  margin-inline: auto;
}

.footer-social-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-block-start: 0.5rem;
}

.social-link-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-black);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 176, 0, 0.35);
}

.social-link-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom-bar {
  border-block-start: 1px solid rgba(255, 255, 255, 0.1);
  padding-block-start: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-gray-400);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   13. Comprehensive Fluid Responsive Media Queries
   -------------------------------------------------------------------------- */

/* Laptop & Medium Screens (1025px to 1280px) */
@media (max-width: 1280px) {
  .container {
    max-width: 1140px;
    padding-inline: 1.5rem;
  }

  .nav-menu {
    gap: 0.4rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.45rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .destinations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .footer-top-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries & Mobile Header Navigation Drawer
   -------------------------------------------------------------------------- */
.mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  color: var(--color-black);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.mobile-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Tablet & mobile header: nav is desktop-only, logo centered, language + WhatsApp at the edges */
@media (max-width: 1180px) {
  .site-header {
    height: auto;
    padding-block: 0.6rem;
  }

  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    position: relative;
  }

  .brand-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    display: flex;
    align-items: center;
    z-index: 5;
  }

  .brand-logo img {
    height: 34px;
    max-width: 130px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
    margin-inline-start: 0 !important;
    z-index: 10;
  }

  .mobile-toggle,
  .main-nav {
    display: none !important;
  }

  /* Anchor the dropdown to the button's left edge so it always opens
     into the visible side of the screen, whatever the text direction. */
  .lang-menu {
    inset-inline: auto;
    left: 0;
    right: auto;
    width: min(280px, calc(100vw - 32px));
    min-width: 0;
    max-height: min(62vh, 430px);
  }

  .lang-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }

  .btn-whatsapp-header {
    padding: 0.38rem 0.75rem;
    font-size: 0.78rem;
  }

  /* Hero Section on Mobile: image goes back into the normal flow */
  .hero-section {
    padding-block: 1.5rem 2rem;
    min-height: auto;
    display: block;
  }

  .hero-graphic-wrap {
    position: relative;
  }

  .hero-image-container {
    position: relative;
    inset: auto;
  }

  .hero-image-container::after {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  [dir="rtl"] .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    text-align: center;
  }

  .hero-desc {
    font-size: 0.9rem;
    text-align: center;
    max-width: 100%;
  }

  .trust-badges-row {
    justify-content: center;
    gap: 0.4rem;
  }

  .trust-badge {
    font-size: 0.76rem;
    padding: 0.25rem 0.6rem;
  }

  .hero-action-box {
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .btn-hero-whatsapp {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    font-size: 0.88rem;
    padding: 0.75rem 1.25rem;
  }

  .hero-sub-text {
    font-size: 0.78rem;
    justify-content: center;
  }

  .hero-graphic-wrap {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    min-height: auto;
    margin-block-start: 1rem;
    display: flex;
    justify-content: center;
  }

  .hero-image-container {
    width: 100%;
    height: auto;
    min-height: auto;
    max-height: none;
    box-shadow: none;
    overflow: hidden;
  }

  .hero-image-container img,
  #hero-student-img {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 88% 25%;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .floating-plane-badge {
    top: 10px;
    inset-inline-end: 10px;
    width: 36px;
    height: 36px;
  }

  .floating-plane-badge .plane-icon {
    width: 18px;
    height: 18px;
  }

  .floating-stats-card {
    bottom: 10px;
    left: 10px;
    right: auto;
    inset-inline-end: auto;
    padding: 0.4rem 0.65rem;
    gap: 0.4rem;
    border-radius: 12px;
    max-width: calc(100% - 20px);
  }

  .floating-card-icon {
    width: 32px;
    height: 32px;
  }

  .floating-card-title {
    font-size: 0.75rem;
  }

  .floating-card-sub {
    font-size: 0.65rem;
  }

  /* Grids on Tablet */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-bar-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-item {
    border-inline-end: none;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
  }

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

  .footer-top-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Screens (320px to 768px) */
@media (max-width: 768px) {
  .site-header {
    height: 60px;
    display: flex;
    align-items: center;
  }

  .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-inline: 0.75rem !important;
    position: relative;
  }

  .brand-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 5;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .brand-logo img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.35rem !important;
    margin-inline-start: 0 !important;
    z-index: 10;
  }

  .lang-btn {
    padding: 0.32rem 0.5rem;
    font-size: 0.74rem;
    gap: 0.2rem;
    border-radius: var(--radius-full);
    background-color: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
  }

  .lang-btn .globe-icon {
    width: 14px;
    height: 14px;
  }

  .lang-btn .dropdown-icon {
    width: 11px;
    height: 11px;
  }

  /* icon-only WhatsApp button so it never collides with the centered logo */
  .btn-whatsapp-header {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .btn-whatsapp-header .btn-wa-text {
    display: none !important;
  }

  .btn-whatsapp-header .wa-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .hero-section {
    padding-block: 2rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .trust-badges-row {
    gap: 0.4rem;
  }

  .trust-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  .btn-hero-whatsapp {
    width: 100%;
    max-width: 380px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-sub-text {
    flex-wrap: wrap;
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .hero-graphic-wrap {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    height: auto;
    max-height: none;
    margin-block-start: 1.5rem;
    display: flex;
    justify-content: center;
  }

  .hero-image-container {
    width: 100%;
    height: auto;
    max-height: none;
    background: transparent;
    overflow: hidden;
    display: flex;
  }

  .hero-image-container img,
  #hero-student-img {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 88% 25%;
    display: block;
  }

  .floating-plane-badge {
    top: 12px;
    inset-inline-end: 12px;
    width: 34px;
    height: 34px;
  }

  .floating-plane-badge .plane-icon {
    width: 16px;
    height: 16px;
  }

  /* Compact and docked at the bottom-left corner so the StudyCo
     logo on the backpack stays visible. */
  .floating-stats-card {
    bottom: 10px;
    inset-inline-end: auto;
    inset-inline-start: auto;
    left: 10px;
    right: auto;
    padding: 0.3rem 0.55rem;
    gap: 0.35rem;
    border-radius: 10px;
  }

  .floating-card-icon {
    width: 24px;
    height: 24px;
  }

  .floating-card-icon svg {
    width: 12px;
    height: 12px;
  }

  .floating-card-title {
    font-size: 0.68rem;
  }

  .floating-card-sub {
    font-size: 0.55rem;
  }

  .floating-stats-card .rating-stars svg {
    width: 10px;
    height: 10px;
  }

  .floating-stats-card .rating-num {
    font-size: 0.62rem;
  }

  /* Section Headers */
  .section-header {
    margin-block-end: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Cards Grids */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .destinations-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .destinations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-bar-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  /* Interactive Tools Tabs */
  .tools-tabs {
    flex-direction: column;
    border-block-end: none;
    gap: 0.5rem;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
    border-radius: var(--radius-md);
    background-color: var(--color-gray-100);
    border-block-end: none;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-black);
    box-shadow: var(--shadow-sm);
  }

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

  .calc-form {
    grid-template-columns: 1fr;
  }

  .calc-result-item {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }

  /* Testimonials */
  .testimonial-card {
    flex: 0 0 100%;
  }

  .slider-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-block-start: 1.25rem;
  }

  .slider-nav-btn {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  /* Partners */
  .universities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* CTA Banner */
  .cta-banner-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    align-items: center;
  }

  .cta-banner-content {
    align-items: center;
    max-width: 100%;
  }

  .cta-banner-image {
    display: none;
  }

  .btn-cta-black {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-brand {
    align-items: flex-start;
    text-align: start;
  }

  [dir="rtl"] .footer-brand {
    align-items: flex-start;
    text-align: start;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }

  /* Chatbot on mobile */
  .chatbot-window {
    inset-inline-end: 12px;
    bottom: 80px;
    width: calc(100vw - 24px);
    height: 480px;
  }

  .chatbot-widget-wrap {
    inset-inline-end: 14px;
    bottom: 14px;
  }
}

/* Extra Small Devices (< 400px) */
@media (max-width: 400px) {
  .container {
    padding-inline: 0.85rem;
  }

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

  .brand-logo img {
    height: 32px;
    max-width: 130px;
  }
}
