﻿/* @import url("https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Montserrat:wght@400;700;900&display=swap"); */
/* @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap'); */

/* Global Font Reset to Dubai */
* {
  font-family: 'Dubai', 'Dubai Medium', 'Dubai-Medium', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Global Background Reset */
/* Global Background Reset */
body,
html {
  background-color: #050505 !important;
  /* Deep Black Base to match WhyUs */
  color: #e0e0e0;
  min-height: 100%;
}

/* --- Contrast Aurora Background (Magic Hit) --- */
.aurora-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  /* Behind everything */
  background: #02040a;
  /* Darker than pure black, slight blue tint base */
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  filter: blur(100px);
  /* Strong blur for magic feel */
  opacity: 0.5;
  animation: floatAurora 20s infinite alternate;
}

/* Blob 1: Brand Blue Hit (Top Right) */
.aurora-1 {
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.3) 0%, transparent 70%);
}

/* Blob 2: Cyan Hit (Bottom Left) */
.aurora-2 {
  bottom: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(77, 171, 247, 0.25) 0%, transparent 70%);
  animation-delay: -5s;
  animation-duration: 25s;
}

/* Blob 3: Deep Navy Shadow (Center - Moving) */
.aurora-3 {
  top: 30%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(10, 17, 40, 0.6) 0%, transparent 80%);
  animation-delay: -10s;
}

@keyframes floatAurora {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

/* Cinematic Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  animation: noiseAnimation 0.5s steps(5) infinite;
}

@keyframes noiseAnimation {
  0% {
    background-position: 0 0;
  }

  20% {
    background-position: 20px -20px;
  }

  40% {
    background-position: -20px 20px;
  }

  60% {
    background-position: 20px 20px;
  }

  80% {
    background-position: -20px -20px;
  }

  100% {
    background-position: 0 0;
  }
}

/* --- Magic Glow Hits (Random Blue Strikes) --- */
.magic-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  /* Above bg, below content */
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: screen;
}

.glow-blue {
  background: radial-gradient(circle, rgba(0, 123, 255, 0.5) 0%, transparent 70%);
}

.glow-cyan {
  background: radial-gradient(circle, rgba(77, 171, 247, 0.4) 0%, transparent 70%);
}

/* Lenis smooth scrolling integration */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}


/* --- Menu Styles from Index --- */
/* Hamburger Button */
.hamburger-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 12px 4px rgba(255, 255, 255, 0.22);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s, background 0.3s ease;
}

.hamburger-btn::before,
.hamburger-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.hamburger-btn::before {
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

.hamburger-btn::after {
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    transparent,
    rgba(255, 255, 255, 0.3)
  );
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-btn.active {
  transform: rotate(135deg);
  transition-delay: 0.2s;
}

.hamburger-btn .bar {
  position: absolute;
  left: 15px;
  width: 30px;
  height: 3px;
  background-color: #4dabf7;
  border-radius: 2px;
  transition: top 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s,
    transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s,
    opacity 0s linear 0.4s;
}

.hamburger-btn .bar:nth-child(1) {
  top: 19px;
}

.hamburger-btn .bar:nth-child(2) {
  top: 29px;
}

.hamburger-btn .bar:nth-child(3) {
  top: 39px;
}

.hamburger-btn.active .bar {
  transition: top 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0s,
    transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s,
    opacity 0s linear 0.2s;
}

.hamburger-btn.active .bar:nth-child(1) {
  top: 29px;
}

.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
  top: 29px;
  transform: rotate(90deg);
}

body.menu-open>*:not(.menu-overlay):not(.hamburger-btn) {
  filter: blur(5px);
  pointer-events: none;
  /* Prevent clicks on blurred content */
}

.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 80%;
  height: 100%;
  background-color: #1f2f5f;
  z-index: 1999;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.menu-overlay.active {
  visibility: visible;
  transform: translateX(0);
}

.menu-content {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
  width: 100%;
  /* Ensure full width for centering */
}

.menu-overlay.active .menu-content {
  opacity: 1;
  transform: translateY(0);
}

.menu-logo {
  max-width: 210px;
  margin-top: 3rem;
  /* Lower logo */
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  /* Separator Line */
  filter: none;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Tighter spacing */
  align-items: center;
  /* Center items */
}

.menu-link {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1.25rem;
  /* Smaller, cleaner font size */
  font-weight: 500;
  /* Slightly lighter weight */
  color: #f3f6ff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  text-shadow: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center content */
  gap: 12px;
  /* Reduced gap */
  width: auto;
  /* Allow width to fit content */
  min-width: 180px;
  /* Reduced min-width */
  /* Minimum width for touch target */
  padding: 0.8rem 15px;
  /* Reduced padding */
  /* Reduced padding */
  box-sizing: border-box;
}

.menu-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s ease;
  opacity: 0.9;
}

.menu-link:hover svg,
.menu-link.active svg {
  transform: scale(1.1) rotate(-5deg);
}

.menu-link::after,
.menu-link::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #4dabf7, #fdfcf5);
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.menu-link::before {
  top: 0;
  bottom: auto;
  transform-origin: left;
}

.menu-link:hover,
.menu-link.active {
  color: #ffffff;
  transform: scale(1.05);
}

.menu-link:hover::after,
.menu-link:hover::before,
.menu-link.active::after,
.menu-link.active::before {
  transform: scaleX(1);
}

* {
  box-sizing: border-box;
}

html,
body {
  background: #050505;
  /* Dark Theme */
  color: #e0e0e0;
  /* Light Text */
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 16px;
  /* min-height: 100vh; - Removed to fix Lenis conflict */
  margin: 0;
  padding: 0;
  /* Removed all global overflow/height constraints to fix scrolling */
  overflow-x: clip;
  /* Essential for slider arrows */
}

.page {
  max-width: 100vw;
  overflow-x: clip;
}

/* Responsive Arrows to prevent horizontal scroll */
@media (max-width: 1400px) {

  .featured-agencies .swiper-button-prev,
  .featured-agencies .swiper-button-next {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  /* Move arrows INSIDE or closer on smaller laptops */
  .featured-agencies .swiper-button-next {
    left: -20px !important;
  }

  .featured-agencies .swiper-button-prev {
    right: -20px !important;
  }
}

@media (max-width: 768px) {

  /* On mobile, arrows can overlap content slightly or be hidden */
  .featured-agencies .swiper-button-next {
    left: 0px !important;
  }

  .featured-agencies .swiper-button-prev {
    right: 0px !important;
  }
}

::selection {
  background: #efefef;
  color: #000000;
  mix-blend-mode: difference;
}

::-moz-selection {
  background: #efefef;
  color: #000000;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 900;
}

h1 {
  font-size: 3em;
}

.hero-title {
  font-size: 8vw;
  line-height: 1em;
  font-weight: 900;
}

.nav-title {
  font-size: 4em;
}

a {
  transition: all 0.25s ease-in-out;
}

.white,
a.white {
  color: #efefef;
}

.black,
.text-brand-black {
  color: #000000 !important;
}

/* Standardized Section Description */
.section-desc-std {
  font-family: 'Almarai', sans-serif;
  /* Or IBM Plex Sans Arabic depending on preference, plan said Almarai/consistent */
  font-size: 1.15rem;
  line-height: 1.8;
  color: #e0e0e0 !important;
  max-width: 800px;
  margin: 0 auto;
}

.pearl,
a.pearl {
  color: #fff;
}

.green,
a.green {
  color: #00BCD4;
}

.pink {
  color: #b73b3b;
}

.blend {
  mix-blend-mode: difference !important;
  color: #efefef;
  position: relative;
  z-index: 2;
}


.bg-black {
  background-color: #0e2a47;
}

.bg-green {
  background-color: #00BCD4;
}

.bg-topographic {
  background-image: url(https://assets.codepen.io/319606/bg-topographic.svg);
  background-size: 5000px;
  opacity: 0.1;
  pointer-events: none;
}

.custom-cursor {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: difference;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #00BCD4;
  transition: transform 350ms ease;
  transform: translate(-50%, -50%) scale(0.3);
  z-index: 1000;
}

.custom-cursor--link {
  transform: translate(-50%, -50%) scale(1.25);
}

.swoosh {
  background-image: url("https://assets.codepen.io/319606/2023-logo-swoosh.svg");
  background-size: 100%;
  background-repeat: no-repeat;
  top: 20px;
  left: 18px;
  width: 230px;
  height: 45px;
  z-index: 1000;
  background-position: left;
}

.sticky-nav {
  top: 20px;
  left: 20px;
  position: fixed;
  width: calc(100% - 40px);
  z-index: 999;
}

.sticky-nav.difference {
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: difference;
}

.sticky-nav.difference #nav-btn {
  filter: invert(0);
}



.sticky-nav #nav-btn {
  width: 60px;
  z-index: 999;
  filter: invert(1);
}

.sticky-nav #nav-btn .icon {
  position: relative;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #fff;
}

#takeover-nav {
  position: fixed;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  left: 0;
  top: -200%;
  transition: all 0.5s ease-in-out;
  z-index: 996;
}

#takeover-nav.shown {
  top: 0;
}

#takeover-nav .nav-col {
  min-height: 100vh;
}

#takeover-nav .nav-col a {
  color: #efefef;
}

#takeover-nav .nav-col a:hover {
  color: #0e2a47;
}

#takeover-nav .nav-contact .content {
  max-width: 700px;
}

#takeover-nav .nav-items {
  font-size: 2.5em;
  font-weight: 700;
}

#takeover-nav .contact-items {
  font-size: 1.25em;
  font-weight: 700;
}

#takeover-nav .contact-items a:hover {
  color: #00BCD4;
}

#takeover-nav .social {
  font-size: 0.75em;
}

#takeover-nav .social a {
  color: #00BCD4;
}

#takeover-nav .social a:hover {
  color: #efefef;
}

.gradient-overlay {
  top: 0;
  height: 100%;
  background: -moz-linear-gradient(
    top,
    rgba(5, 5, 5, 0) 0%,
    rgba(5, 5, 5, 0.18) 32%,
    rgba(7, 12, 26, 0.38) 48%,
    rgba(11, 20, 40, 0.6) 64%,
    rgba(18, 32, 74, 0.82) 82%,
    rgba(35, 59, 118, 0.98) 100%
  );
  background: -webkit-linear-gradient(
    top,
    rgba(5, 5, 5, 0) 0%,
    rgba(5, 5, 5, 0.18) 32%,
    rgba(7, 12, 26, 0.38) 48%,
    rgba(11, 20, 40, 0.6) 64%,
    rgba(18, 32, 74, 0.82) 82%,
    rgba(35, 59, 118, 0.98) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0) 0%,
    rgba(5, 5, 5, 0.18) 32%,
    rgba(7, 12, 26, 0.38) 48%,
    rgba(11, 20, 40, 0.6) 64%,
    rgba(18, 32, 74, 0.82) 82%,
    rgba(35, 59, 118, 0.98) 100%
  );
  z-index: 1;
  border-bottom-right-radius: 15vw;
  pointer-events: none;
  box-shadow: none;
}

.video-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-bottom-right-radius: 15vw;
  pointer-events: none;
}

#video-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  min-width: 100%;
  background-position: center center;
  background-size: cover;
  object-fit: cover;
  transform: rotate(180deg);
}

section {
  min-height: 700px;
  height: 700px;
  width: 100%;
}

section.hero {
  background-color: transparent;
  border-bottom-right-radius: 15vw;
  position: relative;
  z-index: 5;
}

section.hero:before,
section.hero:after {
  content: none;
}

section.two {
  background-color: transparent;
  /* Allow aurora to show */
  border-bottom-right-radius: 15vw;
  position: relative;
  z-index: 4;
}

section.two::before {
  content: "";
  background-color: transparent;
  position: absolute;
  top: 100%;
  left: 0;
  width: 15vw;
  height: 15vw;
}

section.two::after {
  content: "";
  background-color: #050505;
  /* Match next section */
  position: absolute;
  top: 100%;
  left: 0;
  width: 15vw;
  height: 15vw;
  border-top-left-radius: 15vw;
}

section.three {
  background-color: #050505;
  position: relative;
  z-index: 3;
}

/* Radial glow behind franchise logo for contrast on dark bg */
.franchise-logo-glow::before {
  content: "";
  position: absolute;
  inset: 2% 1%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 35%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.28) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(6px);
  transform: scaleX(0.85) scaleY(1.1);
  transform-origin: center;
  z-index: 0;
  pointer-events: none;
}

.franchise-logo-glow img {
  position: relative;
  z-index: 1;
}


@media screen and (min-width: 1200px) {
  .hero {
    height: 75vh;
  }

  .hero #video-bg {
    object-position: 0 5vw;
  }
}

@media screen and (max-width: 1199px) {
  .hero #video-bg {
    object-position: 0 15vw;
  }
}

@media screen and (max-width: 767px) {
  #takeover-nav .nav-menu {
    min-height: 500px;
  }

  #takeover-nav .nav-menu a {
    color: #000000;
  }

  #takeover-nav .nav-menu a:hover {
    color: #efefef;
  }

  #takeover-nav .nav-contact {
    min-height: 600px;
  }

  #takeover-nav .nav-contact .nav-title {
    font-size: 2.5em;
  }
}

@media screen and (max-width: 575px) {
  header .swoosh {
    width: 165px;
    height: 35px;
    top: 10px;
  }

  header .sticky-nav {
    top: 10px;
  }

  header .sticky-nav .logo {
    width: 150px;
    height: 35px;
  }

  header .sticky-nav #nav-btn {
    width: 40px;
  }

  header #takeover-nav .contact-items {
    font-size: 1em;
  }

  .hero {
    min-height: 600px;
    height: 600px;
  }

  .hero .hero-title {
    font-size: 12vw;
  }

  .hero #video-bg {
    object-position: 0 30vw;
  }
}

/* --- Styles Copied from Index (style.css) --- */

/* CTA Button with Simple Curve and Shadow */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background-color: #233b76;
  /* Branding Blue */
  color: #fff;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  /* Reduced from 50px as per Index */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(35, 59, 118, 0.3);
}

.cta-button:hover {
  background-color: #1a2c5a;
  /* Darker Navy */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(35, 59, 118, 0.4);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(-5px);
  /* Move arrow left for RTL */
}

/* Highlight Blue (Underline Effect) */
.highlight-blue {
  position: relative;
  display: inline-block;
  color: inherit;
  z-index: 1;
  /* Ensure text is on top */
}

.highlight-blue::after {
  content: '';
  position: absolute;
  bottom: 2px;
  /* moved down slightly */
  left: 0;
  width: 100%;
  height: 12px;
  /* Thicker line */
  background-color: #233b76;
  opacity: 0.4;
  /* More visible opacity */
  z-index: -1;
  /* Behind text */
  border-radius: 4px;
}

/* Typography Consistency */
.franchise-def {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.3;
}

.franchise-val {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #e0e0e0 !important;
  line-height: 1.8;
}

/* --- Featured Agencies Section --- */
/* --- Featured Agencies Section --- */
.featured-agencies .agency-card {
  background: rgba(255, 255, 255, 0.05);
  /* Glass Background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.featured-agencies .agency-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #233b76;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.featured-agencies .agency-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  /* Slightly lighter on hover */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(77, 171, 247, 0.5);
}

.featured-agencies .logo-wrapper {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.featured-agencies .logo-wrapper::after {
  content: none;
}

.featured-agencies .agency-logo {
  max-height: 100%;
  max-width: 300px;
  object-fit: contain;
  /* filter: grayscale(100%); -- Removed to show logo clearly */
  /* opacity: 0.7; -- Removed to show logo clearly */
  filter: grayscale(0%);
  opacity: 1;
  transition: all 0.4s ease;
}

.featured-agencies .agency-card:hover .agency-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.featured-agencies .agency-title {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  /* White Title */
  margin-bottom: 1rem;
}

.featured-agencies .agency-desc {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1rem;
  color: #e0e0e0;
  /* Light Grey Text */
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Enhanced Featured Agencies Slider --- */
.featured-agencies-slider {
  padding: 2rem 1rem 4rem 1rem;
  /* Extra bottom padding for pagination */
  overflow: hidden;
  /* Ensure no horizontal scrollbar */
}

/* Custom Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  background-color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: #233b76;
  /* Brand Blue */
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #233b76;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(35, 59, 118, 0.3);
}

/* Custom Pagination */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #cbd5e1;
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: #4dabf7;
  /* Highlight Blue */
  width: 30px;
  border-radius: 6px;
}

/* Improved Card Styling */
/* Old Agency Card Duplicate Removed */

/* --- Premium Featured Agencies Section --- */
/* --- Premium Featured Agencies Section --- */
.featured-agencies {
  height: auto !important;
  /* Override global section height */
  min-height: auto !important;
  padding: 8rem 0 3rem 0;
  /* Reduced to 3rem (Minimal gap) */
  /* Massive bottom padding for large gap */
  background: transparent;
  /* Dark Theme Adjustment */
  position: relative;
  overflow: visible !important;
  z-index: 2;
  border-bottom-right-radius: 15vw;
  /* Brand Curve */
  /* Light Reflection Blur for Agencies Curve */
  box-shadow: inset 0 -20px 60px -10px rgba(77, 171, 247, 0.25);
  border-bottom: 1px solid rgba(77, 171, 247, 0.2);
}

/* Transition to Next Section (Dark Blue) - Updated to White/Gray context */
/* This blocks the area below to prepare for the curve cutout */
/* Transition to Next Section (Dark Blue) - Updated to Black context */
/* This blocks the area below to prepare for the curve cutout */
.featured-agencies::before,
.featured-agencies::after {
  content: none;
}

/* --- Next Section (Support Services) --- */
/* --- Next Section (Support Services) --- */
section.join-us {
  background-color: transparent;
  /* Dark */
  position: relative;
  z-index: 1;
  /* Sit behind */
  min-height: auto;
  height: auto !important;
  /* Fix overlap issue: allow expansion */
  padding-bottom: 5rem;
  /* Standard spacing */
  display: block;
  /* Changed from flex center for flexible layout */
  color: #e0e0e0;
  /* Light Text */
}

/* Service Images */
/* Service Images */
/* Service Images Wrapper */
.img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  display: inline-block;
  /* Wraps image tightly */
}

/* Gradient Overlay */
.img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  /* Cover bottom part */
  background: linear-gradient(to top, rgba(35, 59, 118, 0.9), transparent);
  pointer-events: none;
  /* Allow clicks to pass through if needed */
  transition: opacity 0.3s ease;
}

/* Service Images */
/* Service Images */
.service-img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px !important;
  box-shadow: none !important;
  display: block;
  /* Infinite Breathing Zoom Animation */
  animation: breathingZoom 8s ease-in-out infinite alternate;
  will-change: transform;
  /* Performance hint */
}

/* Keyframes for soft infinite zoom */
@keyframes breathingZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
    /* Very subtle zoom in */
  }
}

/* Hover effect removed */

/* Typography Enhancements */
.join-us h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 1.25rem !important;
  /* Minimized Heading */
}

.join-us p.lead {
  font-size: 0.9rem !important;
  /* Compact Body Text */
  line-height: 1.5 !important;
}

/* Updated Spacing for Support Services */
.support-services .service-row {
  margin-bottom: 8rem !important;
  /* Significantly increased from mb-5 (3rem) */
}

.support-services .service-row:last-child {
  margin-bottom: 0 !important;
}



/* Old decoration removed to allow curve transition */
/* Duplicate hover rule removed */
/* --- Consultation Section --- */
/* --- Consultation Section --- */
.consultation-section {
  background-color: transparent;
  padding-top: 5rem;
  padding-bottom: 0 !important;
  /* Remove bottom padding to fix footer height */
  padding-left: 0;
  padding-right: 0;
  margin-top: 0rem !important;
  position: relative;
  z-index: 2;
  border-top: none;
  height: auto !important;
  /* Fix overlap issue */
  min-height: auto !important;
}

.consultation-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* border-top removed in favor of ::before */
  overflow: hidden !important;
  position: relative;
  text-align: center;
}

.consultation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #233b76;
  /* Brand Blue */
  z-index: 3;
  /* Above everything */
}

.card-bg-icon {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 250px;
  height: 250px;
  opacity: 0.05;
  transform: rotate(15deg);
  pointer-events: none;
  z-index: 0;
  stroke: #233b76;
  fill: none;
  color: transparent;
  /* Override currentColor if set */
}

/* Ensure all content sits above the icon */
.consultation-card>*:not(.card-bg-icon) {
  position: relative;
  z-index: 2;
}

/* Ensure text is visible on white background (already dark) */
.consultation-card .text-center {
  margin-top: 0;
  /* Reset margin since padding is back */
}

.consultation-card .form-label {
  color: #ffffff;
  /* White Label */
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.consultation-card .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  /* Glassy Input */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
  color: #ffffff;
  /* White Text */
}

.consultation-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.consultation-card .form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #4dabf7;
  box-shadow: 0 0 0 4px rgba(77, 171, 247, 0.1);
  color: #ffffff;
}

/* Dropdown readability for consultation and agency request forms */
.consultation-card select.form-control,
.agency-request-card select.form-control {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f2f7ff;
}

.consultation-card select.form-control:focus,
.agency-request-card select.form-control:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #4dabf7;
  box-shadow: 0 0 0 4px rgba(77, 171, 247, 0.1);
  color: #ffffff;
}

.consultation-card select.form-control option,
.agency-request-card select.form-control option {
  background-color: #f3f8ff;
  color: #10223f;
}

.consultation-card select.form-control option[disabled],
.agency-request-card select.form-control option[disabled] {
  color: #6c7d98;
}

.btn-submit {
  background-color: #233b76;
  border: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #4dabf7;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(35, 59, 118, 0.2);
}

.form-check-input:checked {
  background-color: #233b76;
  border-color: #233b76;
}

/* Logo Wrapper */
.featured-agencies .logo-wrapper {
  height: 80px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.featured-agencies .agency-logo {
  max-height: 100%;
  max-width: 140px;
  filter: grayscale(0%);
  opacity: 1;
  transition: all 0.4s ease;
}

.featured-agencies .agency-card:hover .agency-logo {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* Typography */
/* Typography */
.featured-agencies .agency-title {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.featured-agencies .agency-desc {
  font-size: 0.95rem;
  color: #e0e0e0;
  line-height: 1.7;
}

/* --- Clear Blue Navigation --- */

/* Arrows */
.featured-agencies .swiper-button-prev,
.featured-agencies .swiper-button-next {
  width: 60px;
  /* Larger hit area */
  height: 60px;
  background-color: #233b76;
  /* Brand Blue Background */
  border-radius: 50%;
  color: #fff;
  /* White Arrow Icon */
  opacity: 1;
  /* Ensure full visibility */
  z-index: 100;
  /* Top of everything */
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(35, 59, 118, 0.4);
  /* Centered vertically by default in Swiper, but let's ensure */
  top: 50%;
  transform: translateY(-50%);
}

.featured-agencies .swiper-button-prev::after,
.featured-agencies .swiper-button-next::after {
  font-size: 24px;
  font-weight: bold;
}

.featured-agencies .swiper-button-prev:hover,
.featured-agencies .swiper-button-next:hover {
  background-color: #4dabf7;
  /* Lighter Blue on Hover */
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(77, 171, 247, 0.5);
}

/* Position Adjustment: Move them outside the 85% container */
.featured-agencies .swiper-button-next {
  left: -80px !important;
  /* Move left (outside) for RTL Next */
  right: auto !important;
}

.featured-agencies .swiper-button-prev {
  right: -80px !important;
  /* Move right (outside) for RTL Prev */
  left: auto !important;
}

/* Pagination (Dots) */
.featured-agencies .swiper-pagination {
  bottom: 0px !important;
  /* Position at the very bottom padding */
}

.featured-agencies .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background-color: #cbd5e1;
  /* Light gray inactive */
  opacity: 1;
  margin: 0 6px !important;
  transition: all 0.3s ease;
}

.featured-agencies .swiper-pagination-bullet-active {
  background-color: #233b76;
  /* Brand Blue Active */
  width: 40px;
  /* Elongated active dot */
  border-radius: 10px;
}

/* Responsive Adjustments for Navigation */
@media (max-width: 1200px) {
  .featured-agencies .swiper-button-next {
    left: -40px !important;
  }

  .featured-agencies .swiper-button-prev {
    right: -40px !important;
  }
}

@media (max-width: 768px) {

  /* On mobile, keep arrows smaller or maybe inside if needed, but keeping consistent */
  .featured-agencies .swiper-button-prev,
  .featured-agencies .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .featured-agencies .swiper-button-prev::after,
  .featured-agencies .swiper-button-next::after {
    font-size: 16px;
  }

  .featured-agencies .swiper-button-next {
    left: -20px !important;
  }

  .featured-agencies .swiper-button-prev {
    right: -20px !important;
  }
}

/* --- Slider Focus Effects & Buttons --- */

/* Slide Transitions */
/* Slide Transitions - Side Slides Smaller */
.featured-agencies .swiper-slide {
  transition: all 0.5s ease;
  transform: scale(0.9) !important;
  /* Balanced Side Styling */
  opacity: 0.5;
  filter: blur(4px);
}

/* Slide Active - Center Slide Highlighted */
.featured-agencies .swiper-slide-active {
  transform: scale(1.08) !important;
  /* Slightly larger than normal, subtle pop */
  opacity: 1 !important;
  filter: blur(0) !important;
  z-index: 10;
}

/* Ensure cards handle the height gracefully */
.featured-agencies .agency-card {
  height: 100%;
  padding-bottom: 4rem;
  /* Space for button */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Agency Button */
/* Agency Button - Matched to CTA Button */
.featured-agencies .agency-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 12px 30px;
  background-color: #233b76;
  /* Brand Blue */
  color: #fff;
  border: none;
  border-radius: 10px;
  /* Matched to CTA */
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  /* Matched font */
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  align-self: center;
  box-shadow: 0 4px 15px rgba(35, 59, 118, 0.3);
}

.featured-agencies .agency-btn:hover {
  background-color: #1a2c5a;
  /* Darker Navy */
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(35, 59, 118, 0.4);
}

.featured-agencies .agency-desc {
  margin-bottom: 1rem;
  flex-grow: 1;
  /* Push button down */
}

/* --- Arrows Outside & Layout Fixes --- */

/* Ensure overflow is visible so arrows can be seen outside */
.featured-agencies-slider {
  overflow: visible !important;
  position: relative;
}

/* Position Arrows Outside */
/* In RTL: Prev is Right, Next is Left */
.featured-agencies .swiper-button-prev {
  right: -70px !important;
  left: auto !important;
}

.featured-agencies .swiper-button-next {
  left: -70px !important;
  right: auto !important;
}

/* Ensure they are visible on smaller screens or adjust */
@media (max-width: 992px) {

  /* On tablets/mobile, keep them inside or slightly overlapping because margin is smaller */
  .featured-agencies .swiper-button-prev {
    right: -20px !important;
  }

  .featured-agencies .swiper-button-next {
    left: -20px !important;
  }
}

@media (max-width: 576px) {

  /* Hide arrows on mobile if needed, or keep small */
  .featured-agencies .swiper-button-prev,
  .featured-agencies .swiper-button-next {
    display: none;
    /* Often better to rely on swipe on mobile */
  }
}

/* --- New Robust Slider Layout --- */

/* Main wrapper that centers everything */
.slider-section-container {
  width: min(1100px, 80%);
  /* Wider side margins */
  margin: 0 auto;
  position: relative;
  padding: 0 40px 70px;
  /* More side padding + space for pagination */
}

@media (min-width: 1400px) {
  .slider-section-container {
    width: min(1200px, 75%);
  }
}

/* The actual swiper tracks */
.featured-agencies-slider {
  width: 100%;
  overflow: visible !important;
  /* Ultimate fix for clipping */
  padding: 50px 10px 60px 10px;
  /* Keep padding for spacing */
}

/* Float card above others on hover & Remove Blur */
.featured-agencies .swiper-slide:hover {
  z-index: 50 !important;
  /* Force on top */
  filter: blur(0) !important;
  /* Clear blur if it was non-active */
  opacity: 1 !important;
}

.featured-agencies .agency-card {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  /* Help with z-index */
}

.featured-agencies .agency-card:hover {
  z-index: 50 !important;
}

/* Navigation Arrows (Positioned relative to Container, NOT Swiper) */
.featured-agencies .swiper-button-prev,
.featured-agencies .swiper-button-next {
  width: 60px;
  height: 60px;
  background-color: #233b76;
  border-radius: 50%;
  color: #fff;
  opacity: 1;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(35, 59, 118, 0.4);
  top: 50%;
  margin-top: 0;
  /* Handled by transform */
}

/* Explicit Positioning Outside */
.featured-agencies .swiper-button-next {
  left: -70px !important;
  /* Outside Left */
  right: auto !important;
}

.featured-agencies .swiper-button-prev {
  right: -70px !important;
  /* Outside Right */
  left: auto !important;
}

/* Flip arrows for correct RTL direction */
.featured-agencies .swiper-button-prev,
.featured-agencies .swiper-button-next {
  transform: translateY(-50%) scaleX(-1) !important;
  /* Flip icon horizontally */
}

/* Hover effect needs to maintain flip */
.featured-agencies .swiper-button-prev:hover,
.featured-agencies .swiper-button-next:hover {
  background-color: #4dabf7;
  transform: translateY(-50%) scaleX(-1) scale(1.1) !important;
}

/* Pagination (Positioned relative to Container) */
.featured-agencies .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  left: 0;
  width: 100%;
  margin-top: 50px;
  /* Increased from 20px for more space */
  text-align: center;
  display: flex !important;
  justify-content: center !important;
  align-items: center;
}



/* --- Integrated Footer Styles --- */
.social-link-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #1a2c5a;
  /* Default Dark Blue */
  transition: all 0.3s ease;
  background-color: #f0f2f5;
}

.social-link-simple:hover {
  background-color: #1a2c5a;
  transform: translateY(-2px);
  color: #fff;
}

.social-link-simple svg {
  width: 20px;
  height: 20px;
}

/* Fresh Highlight Class to fix double-line issue */
.title-highlight {
  position: relative;
  display: inline-block;
  color: inherit;
  z-index: 1;
}

.title-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: #4dabf7;
  opacity: 0.4;
  z-index: -1;
  border-radius: 4px;
}

/* CTA Submit Button */
.cta-submit {
  background: #233b76;
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.cta-submit:hover {
  background: #1a2c5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(35, 59, 118, 0.2);
  color: #fff;
}

/* Social Circle Icons with Springy Hover */
/* Social Circle Icons: Simple White Background with Shadow */
.social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  /* White default */
  color: #233b76;
  /* Brand Blue Icon */
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  /* Subtle shadow */
  transition: all 0.3s ease;
}

.social-circle:hover {
  background-color: #233b76;
  /* Brand Blue Background */
  color: #ffffff;
  /* White Icon */
  transform: translateY(-3px);
  /* Gentle lift */
  box-shadow: 0 8px 20px rgba(35, 59, 118, 0.2);
  /* Colored shadow on hover */
}

.social-circle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* --- Compact Footer --- */
.main-footer {
  margin-top: 6rem !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  border-top: none !important;
}

.main-footer .footer-text-group a,
.main-footer .footer-text-group span {
  color: #ffffff !important;
}

/* --- Global Scroll Animations --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Franchise Text Section Branding */
.franchise-def {
  color: #ffffff;
  /* White for Dark Theme */
  font-weight: 700;
}

.franchise-val {
  color: #e0e0e0;
  /* Light Grey for Dark Theme */
  line-height: 1.8;
}

.highlight-blue {
  color: #ffffff;
  /* White with blue underline */
  font-weight: 700;
}

/* Success Button Styling */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #233b76;
  color: #fff;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(35, 59, 118, 0.3);
}

.cta-button:hover {
  background-color: #1a2c5a;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(35, 59, 118, 0.5);
}

.cta-button svg {
  transition: transform 0.4s ease;
}

.cta-button:hover svg {
  transform: translate(3px, -3px) scale(1.1);
  /* Growth/Success Movement */
}

/* Explore Button Specific Animation */
.cta-button.btn-explore:hover svg {
  transform: scale(1.2) rotate(15deg);
  /* "Looking closer" effect */
}

/* White Variation Shadow Fix */
.cta-button[style*="background-color: #fff"],
.cta-button[style*="background-color: rgb(255, 255, 255)"],
.cta-button.btn-light {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-button[style*="background-color: #fff"]:hover,
.cta-button[style*="background-color: rgb(255, 255, 255)"]:hover,
.cta-button.btn-light:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background-color: #f8f9fa !important;
}

.franchise-val strong {
  color: #4dabf7;
}
