/* ============================================================
   خدمات الغسيل المتنقل للأثاث والمنازل - Stylesheet
   Theme: Qalam Education Platform Teal (#16a39a) & Deep Navy (#15374e)
   Direction: RTL (Arabic)
   Framework: Bootstrap 5 RTL Compatible
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  /* Primary Brand Theme: Qalam Teal (#16a39a) and Deep Navy (#15374e) */
  --clean-blue-light: #1ec7bb;
  --clean-blue: #16a39a;
  --clean-blue-dark: #118078;
  --clean-blue-deep: #0e2638;
  --clean-blue-rgb: 22, 163, 154;
  --brand-navy: #15374e;
  --brand-navy-dark: #0e2638;
  --brand-navy-deep: #0a1c2a;
  --brand-navy-rgb: 21, 55, 78;

  /* The Signature Gradient directly derived from #16A39A */
  --clean-gradient: linear-gradient(135deg, #1fcbbd 0%, #16a39a 50%, #0d5c56 100%);
  --clean-gradient-v: linear-gradient(180deg, #1fcbbd 0%, #16a39a 50%, #0d5c56 100%);
  --clean-gradient-hover: linear-gradient(135deg, #34e2d4 0%, #19b5ab 50%, #10756e 100%);

  /* Legacy primary compatibility mapped to clean blue */
  --primary-blue: var(--clean-blue);
  --primary-blue-dark: var(--clean-blue-dark);
  --primary-blue-light: var(--clean-blue-light);
  --primary-green: var(--clean-blue);
  --primary-green-dark: var(--clean-blue-dark);
  --primary-green-light: var(--clean-blue-light);
  --primary-green-rgb: var(--clean-blue-rgb);

  /* Hero Gradient - Derived purely from #16A39A */
  --hero-gradient-1: #094541;
  --hero-gradient-2: #0d5c56;
  --hero-gradient-3: #12837b;
  --hero-gradient-4: #16a39a;

  /* Neutral & Dark Palette */
  --text-dark: #0d2131;
  --text-body: #2c4659;
  --text-muted: #5c7689;

  --bg-light: #ffffff;
  --bg-soft: #f0fbf9;
  --bg-soft-blue: #e6f5f3;
  --bg-dark: #0a1c2a;
  --bg-dark-card: #112b3e;

  --border-light: #d6e8e5;
  --border-dark: #19405c;

  --font-family-primary: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 10px rgba(22, 163, 154, 0.06);
  --shadow-md: 0 10px 30px rgba(22, 163, 154, 0.10);
  --shadow-lg: 0 20px 45px rgba(22, 163, 154, 0.16);
  --shadow-blue: 0 10px 30px rgba(22, 163, 154, 0.35);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-family-primary);
  background-color: var(--bg-light);
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Prevent any horizontal animation from overflowing on mobile */
@media (max-width: 991px) {
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: translate3d(0, 25px, 0) !important;
  }
}

/* ============================================================
   Site Preloader / Splash Screen
   ============================================================ */
.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0d5c56 0%, #094541 65%, #052725 100%);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
  overflow: hidden;
  direction: rtl;
}

.site-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 2;
}

/* Background Soft Radiant Aura */
.preloader-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 199, 187, 0.28) 0%, rgba(22, 163, 154, 0.08) 55%, transparent 75%);
  filter: blur(40px);
  animation: preloaderAura 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes preloaderAura {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.9;
  }
}

/* Logo Drawing Wrap */
.preloader-logo-wrap {
  position: relative;
  width: 320px;
  max-width: 82vw;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 30px rgba(22, 163, 154, 0.45));
}

.preloader-qalam-img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-qalam-img.visible {
  opacity: 1;
  transform: scale(1);
  animation: preloaderLogoPulse 2s ease-in-out infinite alternate;
}

.preloader-drawing-wrap {
  position: relative;
  width: 440px;
  max-width: 86vw;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-drawing-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 25px rgba(30, 199, 187, 0.45));
  overflow: visible;
  transition: filter 0.5s ease;
}

.preloader-drawing-svg.completed {
  filter: drop-shadow(0 8px 32px rgba(30, 199, 187, 0.75));
  animation: preloaderLogoPulse 1.8s ease-in-out infinite alternate;
}

@keyframes preloaderLogoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 6px 25px rgba(30, 199, 187, 0.45));
  }
  100% {
    transform: scale(1.025);
    filter: drop-shadow(0 10px 35px rgba(30, 199, 187, 0.8));
  }
}

/* Tagline */
.preloader-tagline {
  font-family: var(--font-family-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: #9fe2dc;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-tagline.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 576px) {
  .preloader-logo {
    height: 38px;
  }
  .preloader-bar-wrap {
    width: 115px;
  }
}

/* Navbar */
.site-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition-smooth);
}

.site-navbar.scrolled {
  position: fixed;
  top: 0;
  background: rgba(11, 78, 74, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 6px 25px rgba(6, 49, 46, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.nav-brand-logo:hover {
  transform: scale(1.03);
}

.nav-link-custom {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.nav-link-custom:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 15px rgba(30, 199, 187, 0.3);
}

.btn-nav-action {
  background: #ffffff;
  color: var(--clean-blue);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 9px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 18px rgba(22, 163, 154, 0.25);
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-action i {
  color: var(--clean-blue);
  font-size: 1.1rem;
}

.btn-nav-action:hover {
  background: #f0fbf9;
  color: var(--clean-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 163, 154, 0.35);
}

/* ============================================================
   Mobile Side Navigation (Offcanvas Drawer)
   ============================================================ */
.mobile-side-nav {
  width: 320px !important;
  max-width: 85vw !important;
  background-color: #ffffff !important;
  border: none !important;
  box-shadow: -10px 0 35px rgba(10, 28, 42, 0.16) !important;
  z-index: 1055 !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mobile-side-nav:not(.show) {
  visibility: hidden !important;
}

.mobile-side-nav.show {
  visibility: visible !important;
}

.mobile-side-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
}

.mobile-nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: none !important;
}

.btn-close-custom {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-custom:hover {
  background-color: #e2e8f0;
  color: #0b1e36;
  transform: rotate(90deg);
}

.mobile-side-nav-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  text-decoration: none;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.mobile-nav-link-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-nav-link-right i {
  font-size: 1.25rem;
  color: #16a39a;
  line-height: 1;
  width: 24px;
  text-align: center;
  transition: transform 0.2s ease;
}

.mobile-nav-arrow {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus,
.mobile-nav-link.active {
  background-color: rgba(22, 163, 154, 0.04);
  color: #16a39a;
}

.mobile-nav-link:hover .mobile-nav-link-right i,
.mobile-nav-link.active .mobile-nav-link-right i {
  color: #16a39a;
  transform: scale(1.15);
}

.mobile-nav-link:hover .mobile-nav-arrow,
.mobile-nav-link.active .mobile-nav-arrow {
  color: #16a39a;
  transform: translateX(-3px);
}

.mobile-nav-footer {
  padding: 22px;
  background: #f8fafc;
  border-top: 1px solid #eef2f6;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-mobile-nav-cta {
  background: linear-gradient(135deg, #16a39a 0%, #118078 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(22, 163, 154, 0.35);
  transition: all 0.25s ease;
}

.btn-mobile-nav-cta:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(22, 163, 154, 0.45);
}

.mobile-nav-quick-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-quick-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-quick-btn.quick-whatsapp {
  background-color: #e8fbf0;
  color: #05973a;
  border: 1px solid rgba(5, 151, 58, 0.2);
}

.mobile-quick-btn.quick-whatsapp:hover {
  background-color: #05973a;
  color: #ffffff;
}

.mobile-quick-btn.quick-call {
  background-color: #eff6ff;
  color: #16a39a;
  border: 1px solid rgba(22, 163, 154, 0.2);
}

.mobile-quick-btn.quick-call:hover {
  background-color: #16a39a;
  color: #ffffff;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #094541 0%, #0d5c56 30%, #11837b 65%, #16a39a 100%);
  color: #ffffff;
  padding-top: 130px;
  padding-bottom: 90px;
  /* border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px; */
  overflow: hidden;
}

/* Ambient glow with rich teal lighting */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 85% 15%, rgba(31, 203, 189, 0.38) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(22, 163, 154, 0.45) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero-section {
    padding-top: 150px;
    padding-bottom: 110px;
    /* border-bottom-left-radius: 70px;
    border-bottom-right-radius: 70px; */
  }
}

/* Background Decorators in Hero */
.hero-decorator-glow.g {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 350px;
  height: 350px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.15 !important;
  pointer-events: none;
  z-index: 1;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.hero-decorator-ring {
  position: absolute;
  top: 35px;
  left: 35px;
  width: 140px;
  height: 140px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
  animation: floatRing 7s ease-in-out infinite alternate;
}

@media (min-width: 992px) {
  .hero-decorator-ring {
    width: 180px;
    height: 180px;
    top: 50px;
    left: 70px;
  }
}

/* Hero Content (Right Column in RTL) */
.hero-content {
  position: relative;
  z-index: 5;
}

.hero-title {
  font-size: clamp(1.18rem, 5.2vw, 2.9rem);
  font-weight: 900;
  line-height: 1.34;
  margin-bottom: 24px;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

/* Luminous Teal Accent for "قلم" in Hero Section (Same hue as Hero, but much lighter and glowing) */
.hero-title .accent-keyword {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #76f7df 40%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #76f7df;
  filter: drop-shadow(0 0 22px rgba(45, 212, 191, 0.65)) drop-shadow(0 2px 6px rgba(9, 69, 65, 0.45));
}

.hero-title .accent-keyword::after {
  content: '';
  position: absolute;
  bottom: -0.25em;
  right: -0.05em;
  width: calc(100% + 0.1em);
  height: 0.36em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='heroLuminousTeal' x1='100%25' y1='0%25' x2='0%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='40%25' stop-color='%2376f7df'/%3E%3Cstop offset='100%25' stop-color='%232dd4bf'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3,17 Q50,4 97,17' fill='none' stroke='url(%23heroLuminousTeal)' stroke-width='5.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(45, 212, 191, 0.65));
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 500;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 36px;
  max-width: 580px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-hero-white {
  background: #ffffff;
  color: #16a39a;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 34px;
  border-radius: 50px;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(14, 38, 56, 0.3);
  transition: var(--transition-smooth);
}

.btn-hero-white i {
  color: #16a39a;
  font-size: 1.25rem;
}

.btn-hero-white:hover {
  background: #f0fbf9;
  color: #118078;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(14, 38, 56, 0.4);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.btn-hero-outline i {
  color: #ffffff;
  font-size: 1.25rem;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(30, 199, 187, 0.4);
}

/* Small screens: keep buttons in one row side-by-side */
@media (max-width: 767.98px) {
  .hero-btn-group {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: clamp(6px, 2vw, 12px);
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-hero-white,
  .btn-hero-outline {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px clamp(6px, 2.5vw, 16px);
    font-size: clamp(0.78rem, 2.8vw, 0.92rem);
    gap: clamp(5px, 1.8vw, 8px);
    justify-content: center;
    white-space: nowrap;
    text-align: center;
  }

  .btn-hero-white i,
  .btn-hero-outline i {
    font-size: clamp(0.95rem, 3.2vw, 1.15rem);
    flex-shrink: 0;
  }
}

/* Hero Phone & Badges Container (Left Column in RTL) */
.hero-visual-wrapper {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

@media (min-width: 992px) {
  .hero-visual-wrapper {
    margin-top: 0;
  }
}

.hero-phone-container {
  position: relative;
  display: inline-block;
  max-width: 330px;
  width: 100%;
}

@media (min-width: 1200px) {
  .hero-phone-container {
    max-width: 360px;
  }
}

.hero-phone-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.35));
  animation: floatPhone 6s ease-in-out infinite alternate;
}

/* Hero Floating Badges */
.hero-stat-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 14px 22px;
  box-shadow: 0 15px 35px rgba(7, 37, 92, 0.14);
  border: 1.5px solid rgba(22, 163, 154, 0.18);
  min-width: 190px;
  z-index: 10;
  transition: var(--transition-smooth);
}

.hero-stat-badge:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 45px rgba(22, 163, 154, 0.25);
  border-color: #16a39a;
}

.hero-stat-badge-top {
  top: 18%;
  right: -35px;
  left: auto;
  animation: floatBadgeTop 5s ease-in-out infinite alternate;
}

.hero-stat-badge-bottom {
  bottom: 24%;
  right: -50px;
  left: auto;
  animation: floatBadgeBottom 5.5s ease-in-out infinite alternate;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .hero-stat-badge-top {
    right: -20px;
  }
  .hero-stat-badge-bottom {
    right: -30px;
  }
}

@media (max-width: 991px) and (min-width: 576px) {
  .hero-stat-badge {
    min-width: 155px;
    padding: 10px 16px;
  }
  .hero-stat-badge-top {
    right: -15px;
    top: 12%;
  }
  .hero-stat-badge-bottom {
    right: -20px;
    bottom: 18%;
  }
}

@media (max-width: 575px) {
  .hero-stat-badge {
    position: relative;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    min-width: auto;
    width: 48%;
    margin-top: 15px;
    display: inline-block;
  }
  .mobile-badges-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: -30px;
    position: relative;
    z-index: 20;
  }
}

.stat-badge-number {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #1ec7bb 0%, #16a39a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-badge-text {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   Feature Sections
   ============================================================ */
.feature-section {
  padding: 85px 0;
  position: relative;
}

@media (min-width: 992px) {
  .feature-section {
    padding: 105px 0;
  }
}

.feature-section.bg-alt {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #f6fbfe 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.feature-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 22px;
  letter-spacing: -0.3px;
}

/* Unified Qalam Teal Accent with Matching Curved Gradient Underline */
.accent-teal,
.accent-keyword,
.student-heading-accent {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #20c5b5 0%, #16a39a 50%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #16a39a;
  white-space: nowrap;
}

.accent-teal::after,
.accent-keyword::after,
.student-heading-accent::after {
  content: '';
  position: absolute;
  bottom: -0.24em;
  right: -0.05em;
  width: calc(100% + 0.1em);
  height: 0.36em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='qalamTealGrad' x1='100%25' y1='0%25' x2='0%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%2320c5b5'/%3E%3Cstop offset='50%25' stop-color='%2316a39a'/%3E%3Cstop offset='100%25' stop-color='%230f766e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3,17 Q50,4 97,17' fill='none' stroke='url(%23qalamTealGrad)' stroke-width='5.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(22, 163, 154, 0.28));
}

.feature-description {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 500;
  line-height: 1.95;
  color: var(--text-body);
  max-width: 530px;
}

.feature-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.feature-img-wrapper::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(22, 163, 154, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.feature-img {
  max-width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

.hover-lift:hover .feature-img {
  transform: translateY(-8px) scale(1.02);
  filter: drop-shadow(0 15px 30px rgba(22, 163, 154, 0.2));
}

/* ============================================================
   CTA (Call to Action) Section
   ============================================================ */
.cta-section {
  padding: 100px 0 60px 0;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f0fbf9 55%, #e6f7f5 100%);
  position: relative;
}

.cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-body);
  max-width: 650px;
  margin: 0 auto 38px auto;
  line-height: 1.85;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-cta-green {
  background: linear-gradient(135deg, #1ec7bb 0%, #16a39a 50%, #118078 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 38px;
  border-radius: 50px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(22, 163, 154, 0.35);
  transition: var(--transition-smooth);
}

.btn-cta-green:hover {
  background: linear-gradient(135deg, #25d3c5 0%, #19b5aa 50%, #0d5c56 100%);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(22, 163, 154, 0.45);
}

.btn-cta-dark {
  background: #15374e;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  border: 2px solid #16a39a;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(21, 55, 78, 0.2);
  transition: var(--transition-smooth);
}

.btn-cta-dark:hover {
  background: #16a39a;
  border-color: #16a39a;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(22, 163, 154, 0.4);
}

.cta-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 10px;
}

/* Small screens: keep CTA buttons in one row side-by-side */
@media (max-width: 767.98px) {
  .cta-btn-group {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: clamp(6px, 2vw, 12px);
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-cta-green,
  .btn-cta-dark {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px clamp(6px, 2.5vw, 16px);
    font-size: clamp(0.78rem, 2.8vw, 0.92rem);
    gap: clamp(5px, 1.8vw, 8px);
    justify-content: center;
    white-space: nowrap;
    text-align: center;
  }

  .btn-cta-green i,
  .btn-cta-dark i {
    font-size: clamp(0.95rem, 3.2vw, 1.15rem);
    flex-shrink: 0;
  }
}

/* Decorative Wireframe Wave */
.cta-wave-svg {
  width: 100%;
  max-width: 980px;
  margin: 40px auto 0 auto;
  display: block;
  opacity: 0.85;
}

/* ============================================================
   Footer Section
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #081e3d 0%, #040f21 100%);
  color: #94a3b8;
  padding-top: 80px;
  padding-bottom: 40px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(30, 199, 187, 0.15);
}

.footer-brand-logo {
  height: 36px;
  width: auto;
  margin-bottom: 20px;
  /* filter: brightness(0) invert(1); */
}

.footer-brand-desc {
  color: #8da4be;
  line-height: 1.8;
  font-size: 0.92rem;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link-item {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.social-link-item:hover {
  background: linear-gradient(135deg, #1ec7bb 0%, #16a39a 100%);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 18px rgba(22, 163, 154, 0.5);
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, #1ec7bb, #16a39a);
  border-radius: 2px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-links-list a:hover {
  color: #60a5fa;
  padding-right: 4px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 60px;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.88rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
  }
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  margin-left: 18px;
  transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ============================================================
   Keyframe Animations & Micro-Interactions
   ============================================================ */
@keyframes floatPhone {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-0.5deg);
  }
  100% {
    transform: translateY(-16px) rotate(0.5deg);
  }
}

@keyframes handlePulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    box-shadow: 0 0 25px rgba(30, 199, 187, 0.85), 0 0 45px rgba(22, 163, 154, 0.4);
  }
}

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

/* Interactive Slider Teaser Hint */
.before-after-slider.is-teasing .ba-handle {
  animation: handlePulse 1.2s ease-in-out infinite;
}

/* Subtle Ambient CTA Waves */
.cta-wave-svg path:nth-child(1) {
  animation: ctaWaveFloat 6s ease-in-out infinite alternate;
}
.cta-wave-svg path:nth-child(2) {
  animation: ctaWaveFloat 8s ease-in-out infinite alternate-reverse;
}
.cta-wave-svg path:nth-child(3) {
  animation: ctaWaveFloat 7s ease-in-out infinite alternate;
}
.cta-wave-svg path:nth-child(4) {
  animation: ctaWaveFloat 9s ease-in-out infinite alternate-reverse;
}

/* Shimmer Sheen Beam on Primary Buttons */
.btn-hero-white,
.btn-cta-green {
  position: relative;
  overflow: hidden;
}

.btn-hero-white::after,
.btn-cta-green::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: none;
}

.btn-hero-white:hover::after,
.btn-cta-green:hover::after {
  left: 140%;
  opacity: 1;
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes floatBadgeTop {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes floatBadgeBottom {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(12px) rotate(-1deg);
  }
}

@keyframes floatRing {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-18px) rotate(12deg);
  }
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ec7bb 0%, #16a39a 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 22px rgba(22, 163, 154, 0.4);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: linear-gradient(135deg, #16a39a 0%, #118078 100%);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(22, 163, 154, 0.5);
}

/* ============================================================
   Floating WhatsApp Button
   ============================================================ */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.4);
  cursor: pointer;
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp-btn:hover {
  color: #ffffff;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 30px rgba(18, 140, 126, 0.55);
}

.floating-whatsapp-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Subtle Pulse Radar Wave */
.floating-whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.8;
  animation: whatsappPulse 2.5s infinite;
  pointer-events: none;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Tooltip Badge on Desktop Hover */
.floating-whatsapp-tooltip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: #0f172a;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}

.floating-whatsapp-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent #0f172a transparent transparent;
}

.floating-whatsapp-btn:hover .floating-whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.65rem;
  }

  .floating-whatsapp-tooltip {
    display: none;
  }
}

/* Download Modal & Contact Modal Customization */
.custom-modal .modal-content {
  border-radius: 24px;
  border: none;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.custom-modal .modal-header {
  background: linear-gradient(135deg, #0e2638 0%, #16a39a 60%, #1ec7bb 100%);
  color: #ffffff;
  border-bottom: none;
  padding: 24px 28px;
}

.custom-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.custom-modal .form-control:focus {
  border-color: #16a39a;
  box-shadow: 0 0 0 0.25rem rgba(22, 163, 154, 0.22);
}

.store-badge-btn {
  display: inline-block;
  transition: var(--transition-smooth);
}

.store-badge-btn:hover {
  transform: scale(1.05);
}

.store-badge-img {
  height: 48px;
  width: auto;
}

/* ============================================================
   Section: خدمات تصنع الفرق (Services + Before & After Results)
   Combined VIP Comparison Section
   ============================================================ */
.services-results-section {
  position: relative;
  padding: 100px 0 95px 0;
  background-color: #ffffff;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(30, 199, 187, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(22, 163, 154, 0.04) 0%, transparent 40%);
  overflow: hidden;
}

/* Background Atmosphere Layer */
.services-results-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 0;
}

/* Translucent Curved Ribbon SVGs */
.services-results-ribbon-tl {
  position: absolute;
  top: -30px;
  left: -40px;
  width: 340px;
  height: 250px;
  opacity: 0.65;
  filter: drop-shadow(0 8px 25px rgba(30, 199, 187, 0.15));
}

.services-results-ribbon-tr {
  position: absolute;
  top: 10px;
  right: -50px;
  width: 360px;
  height: 260px;
  opacity: 0.55;
  filter: drop-shadow(0 8px 25px rgba(30, 199, 187, 0.12));
}

.services-results-ribbon-br {
  position: absolute;
  bottom: -30px;
  left: -50px;
  width: 380px;
  height: 260px;
  opacity: 0.5;
  filter: drop-shadow(0 -8px 25px rgba(22, 163, 154, 0.12));
}

/* Glossy 3D Water Bubbles */
.bubble-item {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.3) 30%, rgba(30, 199, 187, 0.15) 60%, rgba(22, 163, 154, 0.1) 82%, rgba(30, 199, 187, 0.35) 100%);
  box-shadow: 
    inset -4px -4px 10px rgba(30, 199, 187, 0.25),
    inset 4px 4px 12px rgba(255, 255, 255, 0.85),
    0 10px 25px rgba(22, 163, 154, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.bubble-item::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 28%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(-35deg);
  filter: blur(0.5px);
}

.bubble-tl-1 {
  width: 105px;
  height: 105px;
  top: 40px;
  left: 30px;
  animation: floatBubble 7s ease-in-out infinite alternate;
}

.bubble-tl-2 {
  width: 48px;
  height: 48px;
  top: 140px;
  left: 135px;
  opacity: 0.85;
}

.bubble-tl-3 {
  width: 26px;
  height: 26px;
  top: 85px;
  left: 145px;
  opacity: 0.7;
}

.bubble-tr-1 {
  width: 110px;
  height: 110px;
  top: 75px;
  right: -25px;
  opacity: 0.85;
  animation: floatBubble 8s ease-in-out infinite alternate-reverse;
}

.bubble-tr-2 {
  width: 52px;
  height: 52px;
  top: 30px;
  right: 100px;
  opacity: 0.75;
}

.bubble-tr-3 {
  width: 24px;
  height: 24px;
  top: 115px;
  right: 70px;
  opacity: 0.65;
}

.bubble-mid-1 {
  width: 40px;
  height: 40px;
  top: 60px;
  left: 25%;
  opacity: 0.75;
}

.bubble-br-1 {
  width: 42px;
  height: 42px;
  bottom: 80px;
  left: 45px;
  opacity: 0.75;
}

@keyframes floatBubble {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bubble-item {
    animation: none !important;
  }
}

/* Header Area */
.services-results-header {
  position: relative;
  z-index: 2;
  margin-bottom: 45px;
}

.services-results-title {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.services-results-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: #556c88;
  margin: 0 auto;
  max-width: 650px;
  line-height: 1.8;
}

/* Container & Cards */
.services-results-container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
}

.service-result-card {
  /* background: #ffffff; */
  border-radius: 30px;
  /* border: 1px solid rgba(22, 163, 154, 0.12); */
  box-shadow: 0 16px 45px rgba(22, 163, 154, 0.08);
  padding: 30px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.service-result-card:last-child {
  margin-bottom: 0;
}

@media (hover: hover) {
  .service-result-card:hover {
    box-shadow: 0 22px 55px rgba(22, 163, 154, 0.13);
    border-color: rgba(22, 163, 154, 0.24);
  }
}

/* Slider Column (Right in RTL) */
.service-result-slider-col {
  flex: 0 0 60%;
  max-width: 60%;
}

/* Info Column (Left in RTL) */
.service-result-info {
  flex: 0 0 40%;
  max-width: 40%;
  padding-right: 28px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  justify-content: center;
}

/* Main Row: Icon on Right, Text Column on Left in RTL */
.service-result-main-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin-bottom: 22px;
}

.service-result-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f4fc 0%, #d8ecf8 100%);
  border: 2px solid rgba(30, 199, 187, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  box-shadow: 0 6px 18px rgba(22, 163, 154, 0.08);
  transition: var(--transition-smooth);
}

.service-result-card:hover .service-result-icon {
  transform: scale(1.06);
  border-color: rgba(30, 199, 187, 0.5);
}

.service-result-icon svg {
  width: 32px;
  height: 32px;
}

/* Text Column: Title, Accent Bar, and Description */
.service-result-text-col {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.service-result-title {
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  font-weight: 900;
  color: #081a33;
  margin-bottom: 8px;
  line-height: 1.35;
  text-align: right;
  width: 100%;
}

.service-result-accent-bar {
  width: 44px;
  height: 3.5px;
  background: linear-gradient(90deg, #1ec7bb 0%, #16a39a 100%);
  border-radius: 2px;
  margin-bottom: 12px;
  margin-right: 0;
  margin-left: auto;
  align-self: flex-start;
}

.service-result-description {
  font-size: 0.98rem;
  color: #4b627f;
  line-height: 1.8;
  margin-bottom: 0;
  text-align: right;
  width: 100%;
}

/* Divider between text and buttons (hidden on desktop, used in tablet/mobile) */
.service-result-divider {
  display: none;
}

/* Action Buttons */
.service-result-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-top: auto;
}

.btn-card-primary {
  background: linear-gradient(135deg, #1ec7bb 0%, #16a39a 55%, #118078 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 50px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(22, 163, 154, 0.35);
  transition: var(--transition-smooth);
  text-decoration: none;
  min-height: 46px;
  flex: 1 1 auto;
  white-space: nowrap;
}

.btn-card-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 163, 154, 0.45);
  background: linear-gradient(135deg, #2ae0d3 0%, #19b5ab 55%, #18415c 100%);
}

.btn-card-primary i {
  font-size: 1.15rem;
}

.btn-card-outline {
  background: #ffffff;
  color: #16a39a !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1.5px solid #16a39a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
  text-decoration: none;
  min-height: 46px;
  flex: 1 1 auto;
  white-space: nowrap;
}

.btn-card-outline:hover {
  background: #f0fbf9;
  color: #118078 !important;
  border-color: #118078;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 154, 0.12);
}

.btn-card-outline i {
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.btn-card-outline:hover i {
  transform: translateX(-3px);
}

/* ============================================================
   Interactive Before / After Slider Component
   ============================================================ */
.before-after-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background-color: #0d1e38;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --pos: 50%;
}

.before-after-slider img.ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}

.ba-layer-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  will-change: clip-path;
}

/* Divider Line */
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2.5px;
  background: #ffffff;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

/* Handle Center Button */
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(22, 163, 154, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  cursor: ew-resize;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.before-after-slider:hover .ba-handle {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 8px 24px rgba(22, 163, 154, 0.35), 0 0 0 2.5px #16a39a;
}

.before-after-slider.is-dragging .ba-handle {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 10px 28px rgba(22, 163, 154, 0.45), 0 0 0 3px #1ec7bb;
}

.ba-handle-arrows {
  width: 22px;
  height: 22px;
  display: block;
}

/* Corner Badges */
.ba-badge {
  position: absolute;
  top: 14px;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  z-index: 6;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ba-badge--before {
  left: 14px;
  background: rgba(8, 26, 51, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ba-badge--after {
  right: 14px;
  background: linear-gradient(135deg, rgba(30, 199, 187, 0.92) 0%, rgba(22, 163, 154, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Responsive Media Queries */
@media (max-width: 1199px) {
  .service-result-info {
    padding-left: 24px;
  }
}

@media (max-width: 991px) {
  .services-results-section {
    padding: 70px 0 60px 0;
  }
  /* Keep one corner ribbon and one glossy bubble on mobile to keep the design vibrant without crowding */
  .services-results-ribbon-tl {
    width: 170px;
    height: 125px;
    top: -15px;
    left: -25px;
    opacity: 0.38;
  }
  .services-results-ribbon-tr,
  .services-results-ribbon-br {
    display: none !important;
  }

  .bubble-item {
    display: none !important;
  }
  .bubble-tr-1 {
    display: block !important;
    width: 56px;
    height: 56px;
    top: 20px;
    right: 12px;
    opacity: 0.85;
    animation: floatBubble 6s ease-in-out infinite alternate !important;
  }
  .service-result-card {
    flex-direction: column;
    padding: 24px;
    border-radius: 26px;
    gap: 20px;
    width: 100%;
    align-items: stretch;
  }

  /* Top Section: Info Box (Right: Text & Icon, Middle: Divider, Left: Buttons) */
  .service-result-info {
    order: 1;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    padding-right: 0;
    padding-left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 0;
  }

  .service-result-main-row {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 0;
  }

  .service-result-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

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

  .service-result-text-col {
    flex: 1 1 auto;
    min-width: 0;
  }

  .service-result-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .service-result-accent-bar {
    width: 36px;
    height: 3px;
    margin-bottom: 8px;
  }

  .service-result-description {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .service-result-divider {
    display: block;
    width: 1px;
    min-height: 75px;
    align-self: stretch;
    background: rgba(22, 163, 154, 0.14);
    flex-shrink: 0;
    margin: 0 4px;
  }

  .service-result-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
    max-width: 180px;
    margin-top: 0;
  }

  .btn-card-outline,
  .btn-card-primary {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  /* Bottom Section: Full Width Slider */
  .service-result-slider-col {
    order: 2;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    display: block;
  }

  .before-after-slider {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    display: block;
    border-radius: 18px;
  }
}

/* On Small Mobile Screens (< 575px): Keep the exact same 2-column division with scaled fonts */
@media (max-width: 575px) {
  .services-results-section {
    padding: 50px 0 40px 0;
  }
  .service-result-card {
    padding: 14px 12px;
    border-radius: 20px;
    gap: 14px;
  }
  .service-result-info {
    gap: 8px;
  }
  .service-result-main-row {
    gap: 8px;
  }
  .service-result-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-width: 1.5px;
    margin-top: 2px;
  }
  .service-result-icon svg {
    width: 20px;
    height: 20px;
  }
  .service-result-title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 3px;
  }
  .service-result-accent-bar {
    width: 26px;
    height: 2px;
    margin-bottom: 4px;
  }
  .service-result-description {
    font-size: 0.72rem;
    line-height: 1.45;
  }
  .service-result-divider {
    display: block !important;
    width: 1px;
    min-height: 60px;
    margin: 0 2px;
    background: rgba(22, 163, 154, 0.12);
  }
  .service-result-actions {
    flex: 0 0 auto;
    flex-direction: column;
    gap: 6px;
    min-width: 96px;
    max-width: 110px;
  }
  .btn-card-outline,
  .btn-card-primary {
    width: 100%;
    min-height: 32px;
    padding: 5px 6px;
    font-size: 0.74rem;
    border-radius: 25px;
    gap: 4px;
  }
  .btn-card-outline i {
    font-size: 0.75rem;
  }
  .btn-card-primary i {
    font-size: 0.85rem;
  }
  .service-result-slider-col {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    display: block;
  }
  .before-after-slider {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 175px;
    border-radius: 14px;
  }
  .ba-handle {
    width: 36px;
    height: 36px;
  }
  .ba-handle-arrows {
    width: 16px;
    height: 16px;
  }
  .ba-badge {
    top: 8px;
    padding: 3px 10px;
    font-size: 0.72rem;
  }
  .ba-badge--before {
    left: 8px;
  }
  .ba-badge--after {
    right: 8px;
  }
  .bubble-tl-1 {
    width: 75px;
    height: 75px;
    left: 10px;
  }
  .bubble-tr-1 {
    width: 75px;
    height: 75px;
    right: -15px;
  }
  .bubble-mid-1, .bubble-tl-3, .bubble-tr-3 {
    display: none;
  }
}

/* ============================================================
   Section 4: باقات تناسب احتياجك (Pricing Section)
   Mockup Replica: Desktop (Image 2) & Mobile (Image 3)
   ============================================================ */
.pricing-section {
  padding: 85px 0 75px 0;
  background: radial-gradient(circle at 50% 15%, #f1f7ff 0%, #fbfdff 65%, #f4f8fe 100%);
  position: relative;
  overflow: hidden;
}

/* Background Floating Bubble Accents */
.pricing-ambient-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(186, 230, 253, 0.35) 60%, rgba(14, 165, 233, 0.15) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset -4px -4px 10px rgba(14, 165, 233, 0.1), 0 8px 24px rgba(14, 165, 233, 0.08);
  z-index: 1;
}

.pricing-bubble-1 {
  width: 55px;
  height: 55px;
  top: 60px;
  right: 6%;
}

.pricing-bubble-2 {
  width: 32px;
  height: 32px;
  top: 130px;
  right: 12%;
}

.pricing-bubble-3 {
  width: 65px;
  height: 65px;
  top: 80px;
  left: 5%;
}

.pricing-bubble-4 {
  width: 28px;
  height: 28px;
  top: 170px;
  left: 11%;
}

.pricing-bubble-5 {
  width: 46px;
  height: 46px;
  bottom: 70px;
  right: 4%;
}

.pricing-header {
  margin-bottom: 38px;
  position: relative;
  z-index: 2;
}

.pricing-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ebf4ff;
  color: #16a39a;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid #d0e6ff;
  flex-direction: row-reverse;
}

.pricing-top-badge i {
  font-size: 1rem;
}

.pricing-main-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: #0b1e36;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.pricing-title-accent {
  color: #16a39a;
}

.pricing-main-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Stacked Wide Horizontal Cards Container */
.pricing-cards-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 2;
}

/* Base Card */
.pricing-wide-card {
  background: #ffffff;
  border: 1.2px solid rgba(22, 163, 154, 0.09);
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(10, 28, 42, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.pricing-wide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 70, 180, 0.09);
}

.card-plan-blue:hover {
  border-color: rgba(22, 163, 154, 0.3);
}

.card-plan-green:hover {
  border-color: rgba(5, 151, 58, 0.3);
}

/* Visual Orb Image */
.pricing-card-visual {
  flex: 0 0 auto;
}

.pricing-card-visual img {
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 70, 180, 0.08));
  animation: none !important;
  transform: none !important;
}

/* Titles and Typography */
.pricing-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.pricing-plan-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: #0b1e36;
  margin: 0;
  white-space: nowrap;
}

.sparkle-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
}

.sparkle-blue {
  color: #16a39a;
}

.sparkle-green {
  color: #05973a;
}

.pricing-plan-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
  font-weight: 500;
}

/* Feature Items */
.pricing-col-item {
  display: flex;
  align-items: center;
}

.feat-icon-circle {
  font-size: 0.95rem;
  line-height: 1;
}

.icon-blue {
  color: #16a39a;
}

.icon-green {
  color: #05973a;
}

.col-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.v-divider {
  width: 1px;
  background-color: #e2e8f0;
  display: inline-block;
  flex-shrink: 0;
}

/* Price Block */
.pricing-price-col {
  text-align: center;
}

.price-from-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.price-big-number {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
}

.price-currency {
  font-size: 1rem;
  font-weight: 800;
}

.price-blue .price-big-number,
.price-blue .price-currency {
  color: #16a39a;
}

.price-green .price-big-number,
.price-green .price-currency {
  color: #05973a;
}

/* Buttons */
.btn-order-pill {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-pill-blue {
  background: #16a39a;
  box-shadow: 0 4px 14px rgba(22, 163, 154, 0.32);
}

.btn-pill-blue:hover {
  background: #118078;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(22, 163, 154, 0.42);
}

.btn-pill-green {
  background: #05973a;
  box-shadow: 0 4px 14px rgba(5, 151, 58, 0.32);
}

.btn-pill-green:hover {
  background: #047d30;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(5, 151, 58, 0.42);
}

.btn-order-pill i {
  font-size: 1rem;
}

/* Trust Badges Bottom Bar */
.pricing-trust-bar {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  flex-direction: row-reverse;
}

.trust-bar-item i {
  color: #16a39a;
  font-size: 1.05rem;
}

.trust-bar-divider {
  width: 1px;
  height: 18px;
  background-color: #cbd5e1;
  display: inline-block;
}

/* ============================================================
   Desktop Layout (min-width: 768px) -> Image 2 Replica
   ============================================================ */
@media (min-width: 768px) {
  .pricing-wide-card {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 12px;
    align-items: center;
    padding: 22px 32px;
  }

  .pricing-top-block {
    display: contents;
  }

  .pricing-card-visual {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
  }

  .pricing-card-visual img {
    max-width: 140px;
  }

  .pricing-card-heading {
    grid-column: 2;
    grid-row: 1;
  }

  .pricing-card-h-divider {
    display: none;
  }

  .pricing-mid-bar {
    display: contents;
  }

  .pricing-features-group {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .pricing-col-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    /* flex-direction: row-reverse; */
  }

  .br-mob {
    display: none;
  }

  .v-divider {
    height: 16px;
  }

  .v-divider-price {
    display: none;
  }

  .pricing-price-col {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .pricing-btn-block {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    justify-content: center;
  }

  .btn-order-pill {
    padding: 10px 24px;
    width: auto;
    flex-direction: row-reverse;
  }
}

/* ============================================================
   Mobile Layout (max-width: 767.98px) -> Image 3 Replica
   ============================================================ */
@media (max-width: 767.98px) {
  .pricing-section {
    padding: 50px 0 40px 0;
  }

  .pricing-header {
    margin-bottom: 22px;
  }

  .pricing-ambient-bubble {
    display: none;
  }

  .pricing-cards-container {
    gap: 16px;
  }

  .pricing-wide-card {
    display: flex;
    flex-direction: column;
    padding: 20px 18px 18px 18px;
    border-radius: 24px;
    gap: 14px;
    box-shadow: 0 8px 25px rgba(10, 28, 42, 0.05);
  }

  /* Top Row: Orb on Right, Title & Description on Left */
  .pricing-top-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
  }

  .pricing-card-heading {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pricing-plan-title {
    font-size: 1.25rem;
    font-weight: 800;
  }

  .pricing-plan-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
    margin-top: 4px;
  }

  .pricing-card-visual {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pricing-card-visual img {
    max-width: 90px;
    width: 100%;
  }

  /* Thin Horizontal Divider */
  .pricing-card-h-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: #eef2f6;
    margin: 2px 0 0 0;
  }

  /* Middle 4-Column Bar (3 Features + 1 Price) */
  .pricing-mid-bar {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    padding: 6px 0;
  }

  .pricing-features-group {
    display: flex;
    flex: 3 1 0;
    align-items: stretch;
    justify-content: space-around;
  }

  .pricing-col-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 6px;
    flex: 1 1 0;
    padding: 0 2px;
  }

  .feat-icon-circle {
    font-size: 1.05rem;
  }

  .col-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
    white-space: normal;
  }

  .br-mob {
    display: block;
  }

  .v-divider {
    width: 1px;
    height: 100%;
    min-height: 38px;
    background-color: #eef2f6;
    margin: 0 3px;
  }

  .v-divider-price {
    display: block;
  }

  .pricing-price-col {
    display: flex;
    flex: 1.2 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2px;
  }

  .price-from-label {
    font-size: 0.72rem;
    margin-bottom: 2px;
  }

  .price-big-number {
    font-size: 1.75rem;
    line-height: 1;
  }

  .price-currency {
    font-size: 0.82rem;
  }

  /* Bottom Full-Width Button */
  .pricing-btn-block {
    width: 100%;
    margin-top: 2px;
  }

  .btn-order-pill {
    width: 100%;
    padding: 11px 0;
    font-size: 0.95rem;
    border-radius: 50px;
    gap: 8px;
  }

  /* Trust Bar on Mobile */
  .pricing-trust-bar {
    margin-top: 22px;
    gap: 8px 12px;
  }

  .trust-bar-item {
    font-size: 0.75rem;
    gap: 5px;
  }

  .trust-bar-item i {
    font-size: 0.9rem;
  }

  .trust-bar-divider {
    display: none;
  }
}

/* ============================================================
   Section: الدورات الأكثر طلباً (Popular Courses Section)
   Matches Reference Images for Desktop & Mobile
   ============================================================ */

.popular-courses-section {
  position: relative;
  background: linear-gradient(180deg, #f9fdfd 0%, #f0f9fa 50%, #f9fdfd 100%);
  padding: 95px 0 105px;
  overflow: hidden;
  direction: rtl;
  text-align: right;
}

/* Background Decorative Elements */
.courses-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Top-Left Slogan: معاً نصنع مستقبلك */
.courses-slogan-decor {
  position: absolute;
  top: 45px;
  left: 5%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  user-select: none;
}

.courses-slogan-text {
  font-family: var(--font-family-primary);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.25;
  transform: rotate(-5deg);
  letter-spacing: -0.3px;
}

.courses-slogan-curve {
  width: clamp(100px, 10vw, 135px);
  height: auto;
  margin-top: -6px;
  margin-left: 5px;
}

/* 3D Glossy Spheres */
.courses-sphere-tr {
  position: absolute;
  top: 70px;
  right: 6%;
  width: clamp(55px, 6vw, 75px);
  height: clamp(55px, 6vw, 75px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(167, 243, 208, 0.8) 35%, rgba(45, 212, 191, 0.45) 70%, rgba(20, 184, 174, 0.6) 100%);
  box-shadow: inset -3px -3px 8px rgba(20, 184, 174, 0.25), 0 10px 25px rgba(20, 184, 174, 0.2);
  opacity: 0.75;
  animation: floatSphere1 6s ease-in-out infinite alternate;
}

.courses-sphere-bl {
  position: absolute;
  bottom: 80px;
  left: 6%;
  width: clamp(65px, 7vw, 85px);
  height: clamp(65px, 7vw, 85px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(167, 243, 208, 0.8) 35%, rgba(45, 212, 191, 0.45) 70%, rgba(20, 184, 174, 0.6) 100%);
  box-shadow: inset -3px -3px 8px rgba(20, 184, 174, 0.25), 0 12px 28px rgba(20, 184, 174, 0.22);
  opacity: 0.75;
  animation: floatSphere2 7s ease-in-out infinite alternate;
}

/* Dot Matrices */
.courses-dots-tr {
  position: absolute;
  top: 110px;
  right: 12%;
  width: 72px;
  height: 90px;
  background-image: radial-gradient(#14b8ae 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.32;
}

.courses-dots-bl {
  position: absolute;
  bottom: 45px;
  left: 12%;
  width: 72px;
  height: 75px;
  background-image: radial-gradient(#14b8ae 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.28;
}

/* Abstract Soft Wave Side Accents */
.courses-wave-right {
  position: absolute;
  top: 30%;
  right: -80px;
  width: 240px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(45, 212, 191, 0.16) 0%, rgba(20, 184, 174, 0.04) 60%, transparent 75%);
  filter: blur(20px);
}

.courses-wave-left {
  position: absolute;
  bottom: 10%;
  left: -90px;
  width: 260px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(45, 212, 191, 0.16) 0%, rgba(20, 184, 174, 0.04) 60%, transparent 75%);
  filter: blur(22px);
}

@keyframes floatSphere1 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(4deg); }
}

@keyframes floatSphere2 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(14px) rotate(-4deg); }
}

/* Section Header */
.popular-courses-header {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.popular-courses-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #e6f7f5;
  color: #0d655f;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(20, 184, 174, 0.25);
  box-shadow: 0 2px 8px rgba(20, 184, 174, 0.08);
}

.popular-courses-badge i {
  color: #14b8ae;
  font-size: 1rem;
}

.popular-courses-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #163853;
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.popular-courses-desc {
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  color: #5c7489;
  line-height: 1.8;
  margin: 0 auto;
}

/* Courses Grid */
.popular-courses-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Course Card (Desktop Base) */
.popular-course-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 14px 20px;
  border: 1px solid #e5f1f3;
  box-shadow: 0 10px 30px rgba(22, 56, 83, 0.045);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.popular-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(20, 184, 174, 0.12);
  border-color: rgba(20, 184, 174, 0.35);
}

.course-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background-color: #f1f5f9;
  position: relative;
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.popular-course-card:hover .course-card-thumb img {
  transform: scale(1.04);
}

.course-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0 4px;
}

.course-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #163853;
  margin-bottom: 10px;
  line-height: 1.4;
}

.course-card-desc {
  font-size: 0.86rem;
  color: #5c7489;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #edf5f6;
  font-size: 0.82rem;
  color: #64748b;
}

.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.course-meta-item i {
  color: #14b8ae;
  font-size: 0.95rem;
}

.course-meta-item .meta-val {
  color: #163853;
  font-weight: 700;
}

/* CTA Bottom Button */
.popular-courses-cta {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 48px;
}

.btn-courses-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: #14b8ae;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 50px;
  border: 1.8px solid #14b8ae;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(20, 184, 174, 0.1);
  transition: var(--transition-smooth);
}

.btn-courses-all i {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.btn-courses-all:hover {
  background-color: #14b8ae;
  color: #ffffff;
  border-color: #14b8ae;
  box-shadow: 0 8px 25px rgba(20, 184, 174, 0.3);
  transform: translateY(-2px);
}

.btn-courses-all:hover i {
  transform: translateX(-3px);
}

/* ============================================================
   Responsive Adjustments
   ============================================================ */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .popular-courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile (< 768px) - Matches Reference Image 2: Horizontal Compact Cards */
@media (max-width: 767px) {
  .popular-courses-section {
    padding: 60px 0 70px;
  }

  .popular-courses-header {
    margin-bottom: 36px;
  }

  .courses-slogan-decor {
    top: 20px;
    left: 4%;
  }

  .courses-slogan-text {
    font-size: 0.95rem;
  }

  .courses-slogan-curve {
    width: 95px;
  }

  .courses-dots-tr, .courses-dots-bl {
    display: none;
  }

  .popular-courses-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* Horizontal Layout for Mobile */
  .popular-course-card {
    flex-direction: row-reverse; /* RTL: Image on the Right, Content on the Left */
    align-items: stretch;
    padding: 11px;
    border-radius: 16px;
  }

  .course-card-thumb {
    width: 38%;
    min-width: 120px;
    max-width: 145px;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
    border-radius: 12px;
    flex-shrink: 0;
    align-self: stretch;
  }

  .course-card-content {
    width: 62%;
    padding: 2px 10px 2px 2px;
    justify-content: space-between;
  }

  .course-card-title {
    font-size: clamp(0.98rem, 3.8vw, 1.08rem);
    margin-bottom: 6px;
    line-height: 1.35;
  }

  .course-card-desc {
    font-size: clamp(0.75rem, 2.9vw, 0.83rem);
    line-height: 1.48;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
  }

  .course-card-meta {
    padding-top: 8px;
    font-size: 0.76rem;
  }

  .course-meta-item {
    gap: 4px;
  }

  .course-meta-item i {
    font-size: 0.85rem;
  }

  .popular-courses-cta {
    margin-top: 36px;
  }

  .btn-courses-all {
    width: 82%;
    max-width: 280px;
    justify-content: center;
    padding: 11px 24px;
    font-size: 0.95rem;
  }
}

/* Extra Small Mobile (<= 390px) */
@media (max-width: 390px) {
  .popular-course-card {
    padding: 9px;
  }

  .course-card-thumb {
    width: 35%;
    min-width: 105px;
  }

  .course-card-title {
    font-size: 0.92rem;
  }

  .course-card-desc {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .course-card-meta {
    font-size: 0.7rem;
  }
}

/* ============================================================
   Student Solutions Section (كل ما تحتاجه كطالب)
   ============================================================ */
.student-solutions-section {
  position: relative;
  padding: 6.5rem 0;
  background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 45%, #f0fdfa 100%);
  overflow: hidden;
  contain: paint;
  scroll-margin-top: 85px;
}

/* Background & Decorative Layer */
.student-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* 3D Glossy Floating Spheres */
.student-sphere {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #99f6e4 30%, #14b8a6 70%, #0f766e 100%);
  box-shadow: inset -4px -6px 14px rgba(15, 118, 110, 0.45), 0 10px 25px rgba(20, 184, 166, 0.22);
  opacity: 0.55;
  transition: transform 0.3s ease;
}

.student-sphere-tl {
  width: 75px;
  height: 75px;
  top: 6%;
  left: 2%;
  filter: blur(0.5px);
}

.student-sphere-tr {
  width: 90px;
  height: 90px;
  top: 4%;
  right: -25px;
}

.student-sphere-bl {
  width: 50px;
  height: 50px;
  bottom: 8%;
  left: 3%;
}

.student-sphere-br {
  width: 80px;
  height: 80px;
  bottom: 3%;
  right: -20px;
}

.student-sphere-center {
  width: 35px;
  height: 35px;
  top: 15%;
  right: 18%;
  opacity: 0.4;
}

/* Dot Matrices */
.student-dots {
  position: absolute;
  width: 100px;
  height: 85px;
  pointer-events: none;
  background-image: radial-gradient(#14b8a6 2.2px, transparent 2.2px);
  background-size: 16px 16px;
  opacity: 0.4;
}

.student-dots-tr {
  top: 8%;
  right: 3.5%;
}

.student-dots-bl {
  bottom: 6%;
  left: 3.5%;
}

/* Soft Curved Waves */
.student-wave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.student-wave-tl {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.35) 0%, rgba(20, 184, 166, 0.1) 60%, transparent 80%);
}

.student-wave-br {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.3) 0%, rgba(20, 184, 166, 0.08) 60%, transparent 80%);
}

/* Section Header */
.student-solutions-header {
  margin-bottom: 3.5rem;
}

.student-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 999px;
  padding: 0.45rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.08);
}

.student-badge i {
  font-size: 1.15rem;
  color: #14b8a6;
}

.student-heading {
  font-size: 2.45rem;
  font-weight: 800;
  color: #163853;
  margin-bottom: 0.95rem;
  letter-spacing: -0.02em;
}

.student-subheading {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #64748b;
  max-width: 680px;
  margin-bottom: 0;
}

/* Cards Grid */
.student-solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "learn"
    "achieve"
    "grad"
    "prep";
  gap: 1.5rem;
}

.solution-card-learn { grid-area: learn; }
.solution-card-achieve { grid-area: achieve; }
.solution-card-grad { grid-area: grad; }
.solution-card-prep { grid-area: prep; }

@media (min-width: 992px) {
  .student-solutions-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "achieve learn"
      "prep    grad";
    gap: 1.85rem;
  }
}

/* Solution Card Container */
.solution-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(20, 184, 166, 0.16);
  box-shadow: 0 10px 30px -5px rgba(22, 163, 154, 0.08), 0 4px 14px rgba(0, 0, 0, 0.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  overflow: hidden;
  position: relative;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px -10px rgba(20, 184, 166, 0.22), 0 6px 18px rgba(0, 0, 0, 0.04);
  border-color: rgba(20, 184, 166, 0.35);
}

/* Card Body Layout */
.solution-card-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1.85rem 2.25rem;
  min-height: 225px;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Content Side (Left in RTL when image is on Right) */
.solution-card-content {
  flex: 1 1 58%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  z-index: 2;
}

.solution-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #163853;
  margin: 0;
  line-height: 1.2;
  text-align: right;
  width: 100%;
}

.solution-card-bar {
  display: block;
  width: 38px;
  height: 3.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
  margin-top: 6px;
  margin-bottom: 12px;
  margin-left: 0;
  margin-right: 0;
}

.solution-card-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 1.35rem;
  text-align: right;
  max-width: 100%;
}

/* Buttons */
.btn-solution {
  align-self: flex-end; /* Go to the other side (Left in RTL) */
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.58rem 1.65rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-solution i {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.btn-solution:hover i {
  transform: translateX(-4px);
}

.btn-solution-solid {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #ffffff !important;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.32);
}

.btn-solution-solid:hover {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.42);
}

.btn-solution-outline {
  background: transparent;
  color: #0d9488 !important;
  border: 1.5px solid #14b8a6;
}

.btn-solution-outline:hover {
  background: #14b8a6;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.28);
}

/* Visual Side (Left in RTL) */
.solution-card-visual {
  flex: 0 0 42%;
  max-width: 42%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 145px;
}

.solution-visual-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, rgba(20, 184, 166, 0.05) 55%, transparent 72%);
  pointer-events: none;
  z-index: 1;
}

.solution-img {
  max-width: 100%;
  height: auto;
  max-height: 155px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 14px rgba(20, 184, 166, 0.12));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover .solution-img {
  transform: scale(1.05) translateY(-3px);
}

/* Responsive Adjustments for Mobile & Tablets */
@media (max-width: 767.98px) {
  .student-solutions-section {
    padding: 5.5rem 0 4.25rem;
  }

  .student-solutions-header {
    margin-bottom: 2.25rem;
  }

  .student-heading {
    font-size: 1.85rem;
  }

  .student-subheading {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0 0.5rem;
  }

  .solution-card-body {
    padding: 1.25rem 1.15rem;
    min-height: 160px;
    gap: 0.85rem;
  }

  .solution-card-content {
    flex: 1 1 58%;
    min-width: 0;
  }

  .solution-card-visual {
    flex: 0 0 42%;
    max-width: 42%;
    min-width: 0;
    min-height: 115px;
  }

  .solution-card-title {
    font-size: 1.35rem;
    text-align: right;
  }

  .solution-card-bar {
    width: 32px;
    height: 3px;
    margin-top: 4px;
    margin-bottom: 8px;
    margin-left: 0;
    margin-right: 0;
  }

  .solution-card-desc {
    font-size: 0.78rem;
    line-height: 1.48;
    margin-bottom: 0.9rem;
    text-align: right;
    max-width: 100%;
  }

  .btn-solution {
    align-self: flex-end;
    margin-top: auto;
    padding: 0.4rem 1.25rem;
    font-size: 0.82rem;
    gap: 0.45rem;
  }

  .solution-img {
    max-height: 115px;
  }

  .solution-visual-glow {
    width: 115px;
    height: 115px;
  }

  .student-dots {
    display: none;
  }

  .student-sphere-tr {
    right: 2%;
    width: 60px;
    height: 60px;
  }

  .student-sphere-br {
    right: 2%;
    width: 50px;
    height: 50px;
  }

  .student-wave {
    display: none;
  }
}

@media (max-width: 420px) {
  .student-heading {
    font-size: 1.65rem;
  }

  .student-subheading {
    font-size: 0.82rem;
  }

  .solution-card-body {
    padding: 1.05rem 0.85rem;
    gap: 0.65rem;
  }

  .solution-card-title {
    font-size: 1.25rem;
  }

  .solution-card-desc {
    font-size: 0.74rem;
    line-height: 1.42;
    margin-bottom: 0.8rem;
  }

  .btn-solution {
    padding: 0.36rem 1.05rem;
    font-size: 0.78rem;
  }

  .solution-img {
    max-height: 100px;
  }

  .solution-visual-glow {
    width: 100px;
    height: 100px;
  }
}

/* ============================================================
   Section 6.5: Testimonials / Student Reviews ("قصص حقيقية من طلابنا")
   Pinned-Board Scrapbook Style matching Visual Truth
   ============================================================ */

.testimonials-section {
  position: relative;
  padding: 100px 0 120px;
  background: linear-gradient(180deg, #f8fcfd 0%, #f0f9fa 50%, #e8f5f6 100%);
  overflow: hidden;
  contain: paint;
  z-index: 1;
}

/* Ambient Background Lights & Grids */
.testimonials-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.testimonials-glow-1 {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 154, 0.12) 0%, rgba(22, 163, 154, 0) 70%);
  filter: blur(40px);
}

.testimonials-glow-2 {
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 55, 78, 0.08) 0%, rgba(21, 55, 78, 0) 70%);
  filter: blur(50px);
}

.testimonials-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22, 163, 154, 0.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.7;
}

/* Section Header */
.testimonials-header {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
  z-index: 2;
}

.testimonials-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: rgba(22, 163, 154, 0.10);
  border: 1px solid rgba(22, 163, 154, 0.22);
  border-radius: 50px;
  color: #118078;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(22, 163, 154, 0.08);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.testimonials-badge i {
  color: #16a39a;
  font-size: 1.05rem;
}

.testimonials-title {
  color: #15374e;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
}

.testimonials-subtitle {
  color: #5c7689;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500;
  line-height: 1.8;
  margin: 0 auto;
}

/* Floating Doodle Notes (Desktop >= 1200px) */
.doodle-note {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  font-family: 'Cairo', sans-serif;
  color: #15374e;
}

.doodle-right {
  top: 15px;
  right: 4%;
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.doodle-right .doodle-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #15374e;
  background: rgba(255, 255, 255, 0.75);
  padding: 6px 14px;
  border-radius: 12px;
  border: 1.5px dashed rgba(22, 163, 154, 0.45);
  box-shadow: 0 4px 12px rgba(21, 55, 78, 0.05);
}

.doodle-right .doodle-sparkle {
  color: #16a39a;
  font-size: 1.15rem;
  margin-left: 4px;
}

.doodle-left {
  top: 10px;
  left: 4%;
  transform: rotate(3deg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.doodle-left .doodle-box {
  background: rgba(255, 255, 255, 0.75);
  padding: 8px 16px;
  border-radius: 14px;
  border: 1.5px dashed rgba(21, 55, 78, 0.3);
  box-shadow: 0 4px 12px rgba(21, 55, 78, 0.05);
  text-align: right;
}

.doodle-left .doodle-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #15374e;
  display: block;
}

.doodle-left .doodle-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: #16a39a;
  display: block;
  margin-top: 2px;
}

/* Ambient Desk Decor Items */
.desk-decor-books {
  position: absolute;
  right: 1.5%;
  bottom: 45px;
  width: 145px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 15px 25px rgba(21, 55, 78, 0.14));
  transition: transform 0.4s ease;
}

.desk-decor-mug {
  position: absolute;
  left: 1.5%;
  bottom: 45px;
  width: 125px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 15px 25px rgba(21, 55, 78, 0.14));
  transition: transform 0.4s ease;
}

/* Testimonials Grid (Desktop: Exactly 4 columns in 1 single row) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
  z-index: 4;
  margin-top: 30px;
  padding-top: 14px;
}

/* Testimonial Scrapbook Card */
.testimonial-card {
  position: relative;
  background: transparent;
  border-radius: 16px;
  padding: 0;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  z-index: 10;
}

/* Natural Rotations for Scrapbook Feel */
.testimonial-card.card-rot-1 {
  transform: rotate(-1.5deg);
}

.testimonial-card.card-rot-2 {
  transform: rotate(1.2deg);
}

.testimonial-card.card-rot-3 {
  transform: rotate(-1deg);
}

.testimonial-card.card-rot-4 {
  transform: rotate(1.8deg);
}

/* 3D Pushpins and Washi Tape Fasteners */
.pin-wrap {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: none;
}

.pushpin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28), inset 0 -2px 5px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.85);
  cursor: default;
}

.pushpin::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: rgba(0, 0, 0, 0.25);
  transform: translateX(-50%) rotate(20deg);
  border-radius: 2px;
}

.pushpin::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(0.4px);
}

.pin-teal {
  background: radial-gradient(circle at 35% 30%, #3fe3d6 0%, #16a39a 55%, #0e635e 100%);
}

.pin-navy {
  background: radial-gradient(circle at 35% 30%, #34729e 0%, #15374e 55%, #0a1b27 100%);
}

.pin-pearl {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e2ecf0 55%, #9fb4be 100%);
}

.pin-coral {
  background: radial-gradient(circle at 35% 30%, #ff8a80 0%, #e11d48 55%, #881337 100%);
}

/* Washi Tape Fastener */
.washi-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 98px;
  height: 27px;
  background: rgba(22, 163, 154, 0.42);
  backdrop-filter: blur(3px);
  border-left: 3px dashed rgba(22, 163, 154, 0.7);
  border-right: 3px dashed rgba(22, 163, 154, 0.7);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 12;
  border-radius: 2px;
}

/* WhatsApp Screenshot Image Container */
.testimonial-img-box {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(22, 163, 154, 0.16);
  background: transparent;
  box-shadow: 0 12px 28px rgba(21, 55, 78, 0.1), 0 3px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 0;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.testimonial-card:hover .testimonial-img-box {
  box-shadow: 0 20px 45px rgba(22, 163, 154, 0.22), 0 6px 16px rgba(21, 55, 78, 0.08);
  border-color: rgba(22, 163, 154, 0.45);
}

.testimonial-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.testimonial-card:hover .testimonial-img {
  transform: scale(1.02);
}

/* Quote Headline */
.testimonial-quote-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  flex: 1;
}

.testimonial-quote-icon {
  color: #16a39a;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.9;
  margin-top: 2px;
}

.testimonial-quote-text {
  color: #15374e;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

/* Card Footer (Student Meta & Stars) */
.testimonial-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed rgba(22, 163, 154, 0.22);
  margin-top: auto;
}

.student-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(22, 163, 154, 0.16) 0%, rgba(21, 55, 78, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a39a;
  font-size: 0.92rem;
  border: 1px solid rgba(22, 163, 154, 0.25);
  flex-shrink: 0;
}

.student-info {
  display: flex;
  flex-direction: column;
}

.student-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #15374e;
  line-height: 1.25;
}

.student-dept {
  font-size: 0.72rem;
  color: #5c7689;
  line-height: 1.25;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.82rem;
  display: flex;
  gap: 2px;
  direction: ltr;
}

/* Bottom CTA Area */
.testimonials-cta-wrap {
  margin-top: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.testimonials-cta-doodle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #15374e;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
}

.testimonials-cta-doodle span {
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px dashed rgba(22, 163, 154, 0.4);
}

.cta-arrow-sketch {
  width: 44px;
  height: 32px;
  transform: scaleX(-1);
}

.btn-testimonials-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, #15374e 0%, #16a39a 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 10px 28px rgba(22, 163, 154, 0.35);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-testimonials-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(22, 163, 154, 0.48);
  color: #ffffff;
  background: linear-gradient(135deg, #0e2638 0%, #1ec7bb 100%);
}

.btn-testimonials-cta i {
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.btn-testimonials-cta:hover i {
  transform: translateX(-4px);
}

/* ============================================================
   Responsive Adaptations
   ============================================================ */

/* Screens < 1200px (Tablet Landscape & small laptops) */
@media (max-width: 1199px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    gap: 28px;
  }

  .desk-decor-books,
  .desk-decor-mug,
  .doodle-note {
    display: none !important;
  }
}

/* Screens < 768px (Mobile & Small Tablets) */
@media (max-width: 767px) {
  .testimonials-section {
    padding: 70px 0 85px;
  }

  .testimonials-header {
    margin-bottom: 35px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 580px;
    margin: 25px auto 0;
    gap: 22px 16px;
    padding-top: 14px;
  }

  /* Reset rotation on mobile to guarantee zero horizontal overflow */
  .testimonial-card {
    transform: none !important;
  }

  .testimonial-card:hover {
    transform: translateY(-4px) !important;
  }

  .pushpin {
    width: 24px;
    height: 24px;
  }

  .pin-wrap {
    top: -12px;
  }

  .testimonials-cta-wrap {
    margin-top: 40px;
  }

  .btn-testimonials-cta {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 13px 25px;
  }
}

@media (max-width: 480px) {
  .testimonials-title {
    font-size: 1.75rem;
  }

  .testimonials-grid {
    gap: 20px 12px;
  }

  .pushpin {
    width: 22px;
    height: 22px;
  }

  .pin-wrap {
    top: -11px;
  }
}
