:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 210 79% 54%;
  --primary-foreground: 210 40% 98%;
  --secondary: 142 46% 55%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --radius: 0.5rem;
  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 240 5.9% 10%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-accent-foreground: 240 5.9% 10%;
  --sidebar-border: 220 13% 91%;
  --sidebar-ring: 217.2 91.2% 59.8%;
}

.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 212.7 26.8% 83.9%;
  --sidebar-background: 240 5.9% 10%;
  --sidebar-foreground: 240 4.8% 95.9%;
  --sidebar-primary: 224.3 76.3% 48%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 240 3.7% 15.9%;
  --sidebar-accent-foreground: 240 4.8% 95.9%;
  --sidebar-border: 240 3.7% 15.9%;
  --sidebar-ring: 217.2 91.2% 59.8%;
}

* {
  border-color: hsl(var(--border));
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Cairo','Roboto', 'Amiri', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo','Montserrat', 'Amiri', sans-serif;
}

section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.bg-gradient-pdca {
  background: linear-gradient(135deg, #e5f0ff 0%, #e5f9e8 100%);
}

.animate-delay-300 {
  animation-delay: 300ms;
}

.animate-delay-600 {
  animation-delay: 600ms;
}

.animate-delay-900 {
  animation-delay: 900ms;
}

html {
  scroll-behavior: smooth;
}

/* RTL and Language-Specific Styles */
body[lang="ar"] {
  direction: rtl;
  font-family: 'Cairo','Amiri', 'Roboto', sans-serif;
}

body[lang="ar"] .container {
  text-align: right;
}

body[lang="ar"] .flex {
  flex-direction: row-reverse;
}

body[lang="ar"] .grid {
  direction: rtl;
}

body[lang="ar"] .text-left {
  text-align: right;
}

body[lang="ar"] .text-right {
  text-align: left;
}

body[lang="ar"] .ml-10 {
  margin-right: 2.5rem;
  margin-left: 0;
}

body[lang="ar"] .mr-3 {
  margin-left: 0.75rem;
  margin-right: 0;
}

body[lang="ar"] .mr-4 {
  margin-left: 1rem;
  margin-right: 0;
}

body[lang="ar"] .space-x-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

body[lang="ar"] .space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

/* Language Toggle Button */
#language-toggle,
#mobile-language-toggle {
  transition: all 0.3s ease;
}

#language-toggle:hover,
#mobile-language-toggle:hover {
  transform: translateY(-2px);
}

/* ================================
   Team In Action Slider Styles
   ================================ */

.team-slider-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.team-slider-wrapper {
  position: relative;
  height: 500px;
  perspective: 1500px;
  overflow: visible;
}

.team-slider {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.team-slide {
  position: absolute;
  width: 70%;
  max-width: 600px;
  height: 400px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.team-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-slide:hover img {
  transform: scale(1.05);
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-slide:hover .slide-overlay {
  opacity: 1;
}

.slide-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Slide States */
.team-slide.active {
  transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

.team-slide.prev {
  transform: translate(-120%, -50%) scale(0.8) rotateY(25deg);
  opacity: 0.6;
  z-index: 5;
  pointer-events: auto;
}

.team-slide.next {
  transform: translate(20%, -50%) scale(0.8) rotateY(-25deg);
  opacity: 0.6;
  z-index: 5;
  pointer-events: auto;
}

.team-slide.far-prev {
  transform: translate(-180%, -50%) scale(0.6) rotateY(35deg);
  opacity: 0.3;
  z-index: 2;
}

.team-slide.far-next {
  transform: translate(80%, -50%) scale(0.6) rotateY(-35deg);
  opacity: 0.3;
  z-index: 2;
}

/* Navigation Buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4d87c7, #6cc07b);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(77, 135, 199, 0.4);
  z-index: 20;
}

.slider-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(77, 135, 199, 0.5);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-prev {
  left: -10px;
}

.slider-next {
  right: -10px;
}

/* Progress Bar */
.slider-progress {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(77, 135, 199, 0.2);
  border-radius: 2px;
  margin-top: 30px;
  overflow: hidden;
}

.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4d87c7, #6cc07b);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Slide Counter */
.slider-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.slider-counter span:first-child {
  color: #4d87c7;
  font-size: 1.5rem;
}

.slider-counter-divider {
  color: #ccc;
}

.slider-counter span:last-child {
  color: #999;
}

/* Thumbnail Navigation */
.slider-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
  padding: 20px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #4d87c7 #e5f0ff;
}

.slider-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.slider-thumbnails::-webkit-scrollbar-track {
  background: #e5f0ff;
  border-radius: 3px;
}

.slider-thumbnails::-webkit-scrollbar-thumb {
  background: #4d87c7;
  border-radius: 3px;
}

.thumbnail {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.thumbnail:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.thumbnail.active {
  border-color: #4d87c7;
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(77, 135, 199, 0.4);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .team-slider-wrapper {
    height: 230px;
    min-height: 190px;
    padding-bottom: 40px;
  }
  .team-slide {
    width: 92%;
    height: 170px;
    min-height: 140px;
    left: 50%;
    top: 50%;
    border-radius: 10px;
    background: #f3f6fb;
  }
  .team-slide img {
    object-fit: contain;
    min-height: 0;
    border-radius: 10px;
  }
  .team-slide.prev {
    transform: translate(-80%, -50%) scale(0.6) rotateY(10deg);
    opacity: 0.3;
  }
  .team-slide.next {
    transform: translate(-20%, -50%) scale(0.6) rotateY(-10deg);
    opacity: 0.3;
  }
  .team-slide.far-prev,
  .team-slide.far-next {
    opacity: 0;
  }
  .slider-nav {
    width: 36px;
    height: 36px;
    top: 60%;
    z-index: 30;
  }
  .slider-prev {
    left: 0;
  }
  .slider-next {
    right: 0;
  }
  .slider-counter {
    font-size: 1rem;
    bottom: -30px;
  }
  .slider-progress {
    margin-top: 10px;
    height: 3px;
  }
  .thumbnail {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }
  .slide-number {
    font-size: 1rem;
  }
  .slider-thumbnails {
    margin-top: 30px;
    padding: 10px;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .team-slider-wrapper {
    height: 210px;
    min-height: 170px;
    padding-bottom: 30px;
  }
  .team-slide {
    width: 90%;
    height: 150px;
    min-height: 120px;
    border-radius: 6px;
    background: #f3f6fb;
  }
  .team-slide img {
    object-fit: contain;
    min-height: 0;
    border-radius: 6px;
  }
  .slider-nav {
    width: 28px;
    height: 28px;
    top: 65%;
  }
  .slider-counter {
    font-size: 0.9rem;
    bottom: -20px;
  }
  .slider-progress {
    margin-top: 6px;
    height: 2px;
  }
  .slider-thumbnails {
    gap: 2px;
    margin-top: 18px;
    padding: 6px;
  }
  .thumbnail {
    width: 24px;
    height: 24px;
    border-radius: 4px;
  }
  .slide-number {
    font-size: 0.8rem;
  }
}

/* RTL Support for Slider */
body[lang="ar"] .slider-prev {
  right: -10px;
  left: auto;
}

body[lang="ar"] .slider-next {
  left: -10px;
  right: auto;
}

body[lang="ar"] .team-slide.prev {
  transform: translate(20%, -50%) scale(0.8) rotateY(-25deg);
}

body[lang="ar"] .team-slide.next {
  transform: translate(-120%, -50%) scale(0.8) rotateY(25deg);
}

body[lang="ar"] .team-slide.far-prev {
  transform: translate(80%, -50%) scale(0.6) rotateY(-35deg);
}

body[lang="ar"] .team-slide.far-next {
  transform: translate(-180%, -50%) scale(0.6) rotateY(35deg);
}

@media (max-width: 768px) {
  body[lang="ar"] .slider-prev {
    right: 5px;
    left: auto;
  }

  body[lang="ar"] .slider-next {
    left: 5px;
    right: auto;
  }

  body[lang="ar"] .team-slide.prev {
    transform: translate(-10%, -50%) scale(0.7) rotateY(-15deg);
  }

  body[lang="ar"] .team-slide.next {
    transform: translate(-90%, -50%) scale(0.7) rotateY(15deg);
  }
}
