/* ============================================================
   Modern Homepage Stylesheet — mizalaat-maka.com
   Professional, clean, RTL-first design
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #c8a456;
  --primary-dark: #a88a3a;
  --primary-light: #e8d5a0;
  --secondary: #1a1a2e;
  --secondary-light: #16213e;
  --accent: #0f3460;
  --dark: #0d0d0d;
  --gray-900: #1a1a1a;
  --gray-800: #2d2d2d;
  --gray-700: #404040;
  --gray-600: #555;
  --gray-500: #777;
  --gray-400: #999;
  --gray-300: #bbb;
  --gray-200: #e0e0e0;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --font-ar: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --shadow-xl: 0 16px 60px rgba(0,0,0,.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
  --transition-fast: .2s ease;
  --container-max: 1280px;
  --header-height: 80px;
  --topbar-height: 38px;
  --hero-slide-height: 600px;
}

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

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

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

body {
  font-family: var(--font-ar);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul, ol { list-style: none; }

.auto-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Section Titles ---------- */
.sec-title {
  margin-bottom: 50px;
}
.sec-title.centered { text-align: center; }
.sec-title .subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  position: relative;
  padding: 6px 20px;
  background: linear-gradient(135deg, rgba(200,164,86,.1), rgba(200,164,86,.05));
  border-radius: 30px;
  border: 1px solid rgba(200,164,86,.2);
}
.sec-title h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.sec-title .desc {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}
.sec-title .separater {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  margin: 0 auto 15px;
  border-radius: 3px;
}
.sec-title.light h2,
.sec-title.light .desc,
.sec-title.light .subtitle { color: var(--white); }
.sec-title.light .subtitle {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}
.sec-title.light .separater {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

/* ---------- Buttons ---------- */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-ar);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}
.btn-modern:hover::before { opacity: 1; }

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(200,164,86,.4);
}
.btn-primary-modern::before {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,164,86,.5);
  color: var(--white);
}

.btn-outline-modern {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-modern::before {
  background: var(--white);
}
.btn-outline-modern:hover {
  color: var(--secondary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-dark-modern {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(26,26,46,.3);
}
.btn-dark-modern::before {
  background: var(--secondary-light);
}
.btn-dark-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,26,46,.4);
  color: var(--white);
}

/* ============================================================
   HEADER
   ============================================================ */
.modern-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  transition: all var(--transition);
}

/* Top Bar */
.header-topbar {
  background: var(--secondary);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.header-topbar a { color: rgba(255,255,255,.7); }
.header-topbar a:hover { color: var(--primary); }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-info-item i { color: var(--primary); font-size: 14px; }
.topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-social a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font-size: 13px;
  transition: all var(--transition-fast);
}
.topbar-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Main Nav */
.header-main {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0;
  transition: all var(--transition);
}
.modern-header.scrolled .header-main {
  box-shadow: var(--shadow-md);
}
.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.header-logo a {
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header-logo .logo-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
}

/* Desktop Nav */
.header-nav { display: flex; align-items: center; gap: 5px; }
.header-nav > li { position: relative; }
.header-nav > li > a,
.header-nav > li > .nav-link-wrap > a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.header-nav > li > .nav-link-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-nav > li.has-children > .nav-link-wrap .nav-arrow {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gray-500);
  border-radius: 50%;
  transition: all var(--transition-fast);
}
.header-nav > li > a:hover,
.header-nav > li.current > a,
.header-nav > li > .nav-link-wrap > a:hover,
.header-nav > li.current > .nav-link-wrap > a {
  color: var(--primary);
  background: rgba(200,164,86,.08);
}
.header-nav > li.has-children:hover > .nav-link-wrap .nav-arrow,
.header-nav > li.current.has-children > .nav-link-wrap .nav-arrow {
  color: var(--primary);
  transform: rotate(180deg);
}

/* Dropdown */
.header-nav li ul {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 100;
  border: 1px solid var(--gray-200);
}
.header-nav li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-nav li ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.header-nav li ul li a:hover {
  background: rgba(200,164,86,.08);
  color: var(--primary);
  padding-right: 20px;
}
.header-nav .dropdown-parent-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-cta .btn-modern { padding: 10px 24px; font-size: 13px; }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 20px;
  color: var(--secondary);
}

/* Mobile Menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--white);
  z-index: 9999;
  overflow-y: auto;
  transition: right var(--transition);
  box-shadow: var(--shadow-xl);
  padding: 20px;
}
.mobile-menu-panel.active { right: 0; }

.mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 20px;
}
.mobile-menu-nav { padding: 0; }
.mobile-menu-nav li { border-bottom: 1px solid var(--gray-200); }
.mobile-menu-nav li a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
}
.mobile-menu-nav li a:hover { color: var(--primary); }
.mobile-menu-nav > li.has-children {
  padding: 6px 0;
}
.mobile-parent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mobile-parent-link {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 8px 0;
}
.mobile-parent-toggle {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.mobile-parent-toggle i {
  transition: transform var(--transition-fast);
}
.mobile-menu-nav > li.open > .mobile-parent-row .mobile-parent-toggle i {
  transform: rotate(180deg);
}
.mobile-submenu {
  display: none;
  padding-right: 14px;
}
.mobile-menu-nav > li.open > .mobile-submenu { display: block; }
.mobile-submenu li { border-bottom: 1px dashed var(--gray-200); }
.mobile-submenu li:last-child { border-bottom: 0; }
.mobile-submenu li a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 9px 0;
}
.mobile-menu-nav > li.current > .mobile-parent-row .mobile-parent-link,
.mobile-submenu li.current > a {
  color: var(--primary);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-section {
  position: relative;
  margin-top: calc(var(--header-height) + var(--topbar-height));
}
.hero-slider .slide {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 520px;
  display: flex !important;
  align-items: center;
  overflow: hidden;
}
.hero-slider .slide .slider-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-slider .slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.85) 0%, rgba(15,52,96,.6) 100%);
  z-index: 1;
}
.hero-slider .slide .hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  max-height: calc(100% - 48px);
  overflow: hidden;
}
.hero-content .hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(200,164,86,.2);
  border: 1px solid rgba(200,164,86,.4);
  border-radius: 30px;
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-content .hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  margin-bottom: 30px;
  line-height: 1.8;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-content .hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Owl Carousel fade fix — stack slides during transition */
.hero-slider .owl-stage { position: relative; }
.hero-slider .owl-item {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-slider .owl-item .slide { opacity: 1; }
.hero-slider.owl-carousel .owl-item {
  -webkit-transform: none !important;
  transform: none !important;
}

/* Owl Carousel custom for hero */
.hero-slider .owl-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.hero-slider .owl-dot span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  display: block;
  transition: all var(--transition);
}
.hero-slider .owl-dot.active span {
  background: var(--primary);
  width: 30px;
  border-radius: 6px;
}
.hero-slider .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 5;
  padding: 0 20px;
  pointer-events: none;
}
.hero-slider .owl-nav button {
  pointer-events: all;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.15) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2) !important;
  color: var(--white) !important;
  font-size: 20px !important;
  transition: all var(--transition);
}
.hero-slider .owl-nav button:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* ============================================================
   FEATURES / SERVICES INTRO
   ============================================================ */
.features-section {
  padding: 80px 0;
  background: var(--white);
  position: relative;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card .feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200,164,86,.1), rgba(200,164,86,.05));
  color: var(--primary);
  font-size: 36px;
  transition: all var(--transition);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  transform: scale(1.1);
}
.feature-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.8;
}

/* Logo icon in features section */
.features-section .logo-icon {
  text-align: center;
  margin-bottom: 20px;
}
.features-section .logo-icon img {
  display: inline-block;
  max-height: 70px;
  width: auto;
}

/* ============================================================
   ABOUT / STATS SECTION
   ============================================================ */
.about-section {
  padding: 100px 0;
  position: relative;
  background: var(--secondary);
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('') center/cover no-repeat;
  opacity: .15;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.about-content { color: var(--white); }
.about-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}
.about-content .about-text {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  line-height: 1.9;
  margin-bottom: 30px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 25px 15px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
  transition: all var(--transition);
}
.stat-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-5px);
}
.stat-card .stat-icon {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 10px;
}
.stat-card .stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 5px;
}
.stat-card .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

/* About Image */
.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-image-wrapper .video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 24px;
  z-index: 3;
  transition: all var(--transition);
  box-shadow: 0 0 0 15px rgba(200,164,86,.3);
}
.about-image-wrapper .video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 25px rgba(200,164,86,.2);
}

/* ============================================================
   SERVICES / CATEGORIES SECTION
   ============================================================ */
.services-section {
  padding: 80px 0;
  background: var(--gray-100);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.service-card .card-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.service-card .card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover .card-image img {
  transform: scale(1.08);
}
.service-card .card-image .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover .card-image .card-overlay { opacity: 1; }

.service-card .card-body {
  padding: 24px;
}
.service-card .card-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}
.service-card .card-body h4 a { color: inherit; }
.service-card .card-body h4 a:hover { color: var(--primary); }
.service-card .card-body p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 15px;
}
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition-fast);
}
.service-card .card-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-banner h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}
.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}
.cta-banner .btn-modern {
  position: relative;
  z-index: 2;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: 80px 0;
  background: var(--secondary);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .1;
}
.testimonial-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-5px);
}
.testimonial-card .quote-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 15px;
  opacity: .5;
}
.testimonial-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.testimonial-card .testimonial-text {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.9;
}

/* Owl dots for testimonials */
.testimonials-section .owl-dots {
  text-align: center;
  margin-top: 30px;
  direction: ltr;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.testimonials-section .owl-dots .owl-dot {
  display: inline-block !important;
  vertical-align: middle;
}
.testimonials-section .owl-dot span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: inline-block;
  margin: 0;
  transition: all var(--transition);
}
.testimonials-section .owl-dot.active span {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

/* ============================================================
   ARTICLES / NEWS
   ============================================================ */
.articles-section {
  padding: 80px 0;
  background: var(--white);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.article-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid #ececf2;
  box-shadow: 0 8px 28px rgba(20, 22, 43, 0.06);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(20, 22, 43, 0.14);
  border-color: #e5e5ef;
}
.article-card .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.article-card .card-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.article-card .card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s ease;
}
.article-card:hover .card-image img { transform: scale(1.06); }
.article-card .card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card .article-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(200,164,86,.12);
  border: 1px solid rgba(200,164,86,.22);
  border-radius: 999px;
  padding: 6px 11px;
  margin-bottom: 12px;
}
.article-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 13px;
  font-size: 12px;
  color: #777a90;
}
.article-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.article-card .card-meta i { color: var(--primary); font-size: 13px; }
.article-card .card-body h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
  line-height: 1.55;
  min-height: 58px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-body h4 a { color: inherit; }
.article-card .card-body h4 a:hover { color: var(--primary); }
.article-card .article-excerpt {
  font-size: 14px;
  color: #666b82;
  line-height: 1.9;
  margin-bottom: 16px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed #dddfea;
  margin-top: auto;
}
.article-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}
.article-card .read-more:hover {
  color: var(--primary-dark);
  gap: 10px;
}

/* Owl nav hide for articles & testimonials */
.testimonials-carousel .owl-nav { display: none !important; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-section {
  padding: 60px 0;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
}
.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.partner-logo {
  opacity: .5;
  transition: opacity var(--transition);
  max-height: 60px;
}
.partner-logo:hover { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.modern-footer {
  background: var(--secondary);
  color: rgba(255,255,255,.7);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.footer-about p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links li a::before {
  content: '←';
  font-size: 12px;
  opacity: 0;
  transition: all var(--transition-fast);
}
.footer-links li a:hover {
  color: var(--primary);
  padding-right: 5px;
}
.footer-links li a:hover::before { opacity: 1; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 14px;
}
.footer-contact li i {
  color: var(--primary);
  font-size: 16px;
  margin-top: 4px;
  flex-shrink: 0;
}
.footer-contact li a { color: rgba(255,255,255,.6); }
.footer-contact li a:hover { color: var(--primary); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 16px;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: var(--primary); }
.footer-bottom a:hover { color: var(--primary-light); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(200,164,86,.4);
  border: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================================
   WHATSAPP & CALL FLOATING BUTTONS
   ============================================================ */
.floating-btns {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 998;
}
.floating-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.floating-btn:hover {
  transform: scale(1.1);
  color: var(--white);
}
.floating-btn.whatsapp { background: #25d366; }
.floating-btn.whatsapp:hover { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
.floating-btn.phone-btn { background: var(--primary); }
.floating-btn.phone-btn:hover { box-shadow: 0 4px 20px rgba(200,164,86,.5); }

/* Pulse animation for floating buttons */
@keyframes pulse-ring {
  0% { transform: scale(.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.floating-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulse-ring 2s ease infinite;
}

/* ============================================================
   FIXED RATIO IMAGES
   ============================================================ */
.fixed-ratio {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.fixed-ratio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 991px) {
  :root { --header-height: 70px; --topbar-height: 0px; }
  .hero-section { margin-top: var(--header-height); }
  .hero-content h1 { font-size: 36px; }
.hero-slider .slide {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}   .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .sec-title h2 { font-size: 28px; }
  
  .header-nav, .header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .header-topbar { display: none; }
}

@media (max-width: 767px) {
  .hero-content h1 { font-size: 28px; }
  .hero-content .hero-desc { -webkit-line-clamp: 3; line-clamp: 3; }
.hero-slider .slide {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-card { padding: 15px 10px; }
  .stat-card .stat-number { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sec-title h2 { font-size: 24px; }
  .cta-banner h2 { font-size: 22px; }
  .hero-content .hero-btns { flex-direction: column; }
  .hero-content .hero-btns .btn-modern { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .auto-container { padding: 0 15px; }
  .hero-content h1 { font-size: 24px; }
.hero-slider .slide {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}  .feature-card { padding: 30px 20px; }
  .floating-btns { bottom: 20px; right: 15px; }
  .scroll-top-btn { bottom: 20px; left: 15px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all .6s ease;
}
.fade-up.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth loading */
.page-wrapper {
  opacity: 0;
  animation: fadeInPage .5s ease forwards;
}
@keyframes fadeInPage {
  to { opacity: 1; }
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-overlay .search-close {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
}
.search-overlay form {
  width: 90%;
  max-width: 600px;
}
.search-overlay input {
  width: 100%;
  padding: 18px 25px;
  font-size: 20px;
  font-family: var(--font-ar);
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  color: var(--white);
  outline: none;
  direction: rtl;
}
.search-overlay input::placeholder { color: rgba(255,255,255,.4); }
.search-overlay input:focus { border-color: var(--primary); }

