/* Base styling */
/* Define custom CSS variables for themes based on SGA Logo */
/* :root {
            --primary-light: #005AAA;
            --secondary-light: #8DC63F;
            --background-light: #F3F4F6;
            --text-light: #1F2937;
        }

        .theme-dark {
            --primary-dark: #004B8C;
            --secondary-dark: #76A52D;
            --background-dark: #1F2937;
            --text-dark: #F3F4F6;
        }

        body {
            font-family: 'Inter', 'Cairo', sans-serif;
            transition: background-color 0.3s, color 0.3s;
            scroll-behavior: smooth;
        }

        .light-theme {
            --primary: var(--primary-light);
            --secondary: var(--secondary-light);
            background-color: var(--background-light);
            color: var(--text-light);
        }

        .dark-theme {
            --primary: var(--primary-dark);
            --secondary: var(--secondary-dark);
            background-color: var(--background-dark);
            color: var(--text-dark);
        }

        .bg-primary {
            background-color: var(--primary);
        }

        .text-primary {
            color: var(--primary);
        }

        .border-primary {
            border-color: var(--primary);
        }

        .bg-secondary {
            background-color: var(--secondary);
        }

        .text-secondary {
            color: var(--secondary);
        }

        .border-secondary {
            border-color: var(--secondary);
        } */

/* ======================
          تعديلات أساسية على SGA Website
          ====================== */

/* النصوص */
body,
p {
  font-size: 16px;
  line-height: 1.6;
  color: #222222;
}

.text-muted {
  color: #333333 !important; /* أوضح من الرمادي الفاتح */
  font-size: 16px;
  line-height: 1.6;
}

/* العناوين */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #1a3d7c; /* لون البراند */
  font-weight: 600;
  margin-bottom: 20px;
}

/* الأزرار */
.btn-primary {
  background-color: #1a3d7c;
  border-color: #1a3d7c;
  color: #fff;
  font-weight: bold;
  padding: 12px 24px;
  font-size: 16px;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #0f2852;
  border-color: #0f2852;
}

/* الأقسام */
section {
  padding: 60px 0;
}

section h2 {
  margin-bottom: 20px;
}

/* الـ Navbar */
.navbar-light .navbar-nav .nav-link {
  color: #222 !important;
  font-weight: 500;
  font-size: 15px;
  transition: 0.3s;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: #1a3d7c !important;
}

@media (max-width: 768px) {
  body,
  p {
    font-size: 15px;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 40px 0;
  }
}

.status {
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  display: none;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

[dir="ltr"] {
  font-family: "Inter", sans-serif;
}

[dir="rtl"] {
  font-family: "Cairo", sans-serif;
}

.swiper-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform-style: preserve-3d;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.3);
  opacity: 0.7;
  transition: all 1s ease-out;
}

.slide-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 0 20px;
  transform: translateZ(0); /* Enable hardware acceleration */
}

/* Active slide photo zoom effect - SIMPLE VERSION */
.swiper-slide-active .slide-bg {
  transform: scale(1);
  opacity: 1;
}

.swiper-slide-prev .slide-bg {
  transform: scale(1.3) translateX(-20px);
  opacity: 0.5;
}

.swiper-slide-next .slide-bg {
  transform: scale(1.3) translateX(20px);
  opacity: 0.5;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(100px) scale(0.8);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
}

.slide-description {
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(60px) rotateX(45deg);
  transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: 0.3s;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
  line-height: 1.6;
  perspective: 1000px;
}

/* Enhanced active slide text animations */
.swiper-slide-active         /* Active slide photo zoom effect - SIMPLE VERSION */
        .swiper-slide-active .slide-bg {
  transform: scale(1);
  opacity: 1;
}

.swiper-slide-prev .slide-bg {
  transform: scale(1.3) translateX(-20px);
  opacity: 0.5;
}

.swiper-slide-next .slide-bg {
  transform: scale(1.3) translateX(20px);
  opacity: 0.5;
}

/* Fixed slider text styles with proper visibility and responsive sizing */

/* Base slider text styles - Always visible with white text and black shadows */
.slide-title {
  font-size: 2.5rem; /* Larger for desktop */
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: white; /* White text */
  opacity: 1; /* Always visible - FIXED */
  transform: translateY(0); /* No hidden transform - FIXED */
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  /* Strong black shadow for light backgrounds */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 4px 4px 8px rgba(0, 0, 0, 0.7),
    6px 6px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  line-height: 1.1;
  text-align: center;
}

.slide-description {
  font-size: 1.2rem; /* Larger for desktop */
  color: white; /* White text */
  opacity: 1; /* Always visible - FIXED */
  transform: translateY(0); /* No hidden transform - FIXED */
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: 0.2s;
  /* Strong black shadow for light backgrounds */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 2px 2px 6px rgba(0, 0, 0, 0.7),
    3px 3px 9px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
}

/* Active slide enhanced visibility */
.swiper-slide-active .slide-title {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: titlePulse 0.8s ease-out;
}

.swiper-slide-active .slide-description {
  opacity: 1;
  transform: translateY(0);
  animation: descriptionFloat 1s ease-out 0.5s both;
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
  .slide-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 3px;
  }

  .slide-description {
    font-size: 1.4rem;
    max-width: 90%;
  }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .slide-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
  }

  .slide-description {
    font-size: 1.3rem;
    max-width: 90%;
  }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) and (min-width: 769px) {
  .slide-title {
    font-size: 2.5rem;
    margin-bottom: 1.3rem;
    letter-spacing: 1px;
    padding: 0 1rem;
  }

  .slide-description {
    font-size: 1.2rem;
    max-width: 90%;
    padding: 0 1.5rem;
  }

  .slide-content {
    max-width: 90%;
    padding: 0 1rem;
  }
}

/* Tablet portrait (768px and below) */
@media (max-width: 768px) {
  .slide-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
    padding: 0 1rem;
    /* Enhanced shadow for mobile */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1), 4px 4px 12px rgba(0, 0, 0, 0.8);
  }

  .slide-description {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 90%;
    padding: 0 1.5rem;
    /* Enhanced shadow for mobile */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 1), 2px 2px 8px rgba(0, 0, 0, 0.8);
  }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
  .slide-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0px;
    line-height: 1.3;
    padding: 0 0.5rem;
    /* Maximum shadow for small screens */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1), 4px 4px 16px rgba(0, 0, 0, 0.9);
  }

  .slide-description {
    font-size: 1rem;
    line-height: 1.4;
    max-width: 90%;
    padding: 0 1rem;
    /* Maximum shadow for small screens */
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 1), 2px 2px 12px rgba(0, 0, 0, 0.9);
  }

  .slide-content {
    max-width: 95%;
    padding: 0 0.5rem;
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  .slide-title {
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
    padding: 0 0.5rem;
    font-weight: 700;
  }

  .slide-description {
    font-size: 0.8rem;
    line-height: 1.3;
    padding: 0 0.8rem;
  }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
  .slide-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
  }

  .slide-description {
    font-size: 0.8rem;
    line-height: 1.25;
    padding: 0 0.5rem;
  }
}

@media (max-height: 500px) and (max-width: 768px) {
  .slide-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
  }

  .slide-description {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .slide-content {
    padding: 0 0.5rem;
  }
}

/* Animation adjustments for mobile performance */
@media (max-width: 768px) {
  .slide-title {
    transform: translateY(0); /* No transform on mobile */
  }

  .slide-description {
    transform: translateY(0); /* No transform on mobile */
  }

  /* Simpler animations on mobile */
  .swiper-slide-active .slide-title {
    animation: titlePulse 0.6s ease-out;
  }

  .swiper-slide-active .slide-description {
    animation: descriptionFloat 0.8s ease-out 0.3s both;
  }
}

/* RTL support for Arabic */
[dir="rtl"] .slide-content {
  font-family: "Cairo", sans-serif;
}

[dir="rtl"] .slide-title {
  letter-spacing: normal;
}

/* Ensure text doesn't overflow */
.slide-content * {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Additional fixes for non-active slides */
.swiper-slide .slide-title,
.swiper-slide .slide-description {
  opacity: 1 !important; /* Force visibility */
  color: white !important; /* Force white color */
}

.swiper-slide-active .slide-description {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
  animation: descriptionFloat 1s ease-out 0.5s both;
}

/* Previous slide text effects */
.swiper-slide-prev .slide-title {
  opacity: 0;
  transform: translateX(-100px) scale(0.9) rotate(-5deg);
  transition-duration: 0.6s;
}

.swiper-slide-prev .slide-description {
  opacity: 0;
  transform: translateX(-80px) rotateX(-30deg);
  transition-duration: 0.8s;
}

/* Next slide text effects */
.swiper-slide-next .slide-title {
  opacity: 0;
  transform: translateX(100px) scale(1.1) rotate(5deg);
  transition-duration: 0.6s;
}

.swiper-slide-next .slide-description {
  opacity: 0;
  transform: translateX(80px) rotateX(30deg);
  transition-duration: 0.8s;
}

/* Title animation keyframes */
@keyframes titlePulse {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Description float animation */
@keyframes descriptionFloat {
  0% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-5px) rotateX(2deg);
  }
  100% {
    transform: translateY(0) rotateX(0deg);
  }
}

/* Add subtle continuous animation to active text */
.swiper-slide-active .slide-title {
  animation: titlePulse 0.8s ease-out, titleBreath 4s ease-in-out infinite 1s;
}

.swiper-slide-active .slide-description {
  animation: descriptionFloat 1s ease-out 0.5s both,
    descriptionSway 6s ease-in-out infinite 2s;
}

@keyframes titleBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.05);
  }
}

@keyframes descriptionSway {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  25% {
    transform: translateY(-4px) rotateX(1deg);
  }
  75% {
    transform: translateY(4px) rotateX(-1deg);
  }
}

/* Fragment overlay system */
.fragment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

/* Show fragments on active slide */
.swiper-slide-active .fragment-overlay {
  opacity: 1;
}

.fragment {
  position: absolute;
  background-size: cover;
  background-position: center;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
  filter: brightness(1.2) contrast(1.1) saturate(1.2);
}

/* Fragment positioning and sizing */
.fragment-1 {
  top: 10%;
  left: 5%;
  width: 120px;
  height: 100px;
  transform: scale(0) rotate(45deg);
}

.fragment-2 {
  top: 30%;
  right: 8%;
  width: 80px;
  height: 80px;
  transform: scale(0) rotate(-30deg);
}

.fragment-3 {
  bottom: 25%;
  left: 10%;
  width: 100px;
  height: 90px;
  transform: scale(0) rotate(60deg);
}

.fragment-4 {
  top: 60%;
  right: 15%;
  width: 90px;
  height: 70px;
  transform: scale(0) rotate(-45deg);
}

.fragment-5 {
  top: 15%;
  left: 45%;
  width: 60px;
  height: 60px;
  transform: scale(0) rotate(90deg);
}

.fragment-6 {
  bottom: 40%;
  right: 40%;
  width: 70px;
  height: 80px;
  transform: scale(0) rotate(-60deg);
}

/* Active slide fragment animations */
.swiper-slide-active .fragment {
  transform: scale(1) rotate(0deg);
}

.swiper-slide-active .fragment-1 {
  transition-delay: 0.1s;
  transform: scale(1.2) rotate(15deg);
}

.swiper-slide-active .fragment-2 {
  transition-delay: 0.2s;
  transform: scale(1.1) rotate(-10deg);
}

.swiper-slide-active .fragment-3 {
  transition-delay: 0.15s;
  transform: scale(1.3) rotate(25deg);
}

.swiper-slide-active .fragment-4 {
  transition-delay: 0.25s;
  transform: scale(1.1) rotate(-20deg);
}

.swiper-slide-active .fragment-5 {
  transition-delay: 0.3s;
  transform: scale(1) rotate(30deg);
}

.swiper-slide-active .fragment-6 {
  transition-delay: 0.2s;
  transform: scale(1.2) rotate(-15deg);
}

/* Parallax effect on fragments during transition */
.swiper-slide-prev .fragment {
  transform: scale(0.5) translateX(-100px) rotate(-45deg);
  opacity: 0.3;
}

.swiper-slide-next .fragment {
  transform: scale(0.7) translateX(100px) rotate(45deg);
  opacity: 0.5;
}

/* Navigation buttons */
.swiper-button-prev,
.swiper-button-next {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 18px;
}

/* Pagination */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: white;
}

/* Slide backgrounds with photos */
.slide-1 {
  background-image: url("../../photos/slide1.jpg");
  background-size: cover;
  background-position: center;
}
.slide-2 {
  background-image: url("../../photos/slide2.jpg");
  background-size: cover;
  background-position: center;
}
.slide-3 {
  background-image: url("../../photos/slide3.jpg");
  background-size: cover;
  background-position: center;
}
.slide-4 {
  background-image: url("../../photos/slide4.jpg");
  background-size: cover;
  background-position: center;
}
.slide-5 {
  background-image: url("../../photos/slide5.jpg");
  background-size: cover;
  background-position: center;
}
.slide-6 {
  background-image: url("../../photos/slide6.jpg");
  background-size: cover;
  background-position: center;
}

/* Fragment backgrounds - inherit from parent slide */
.fragment.slide-1 {
  background-image: url("../../photos/slide1.jpg");
}
.fragment.slide-2 {
  background-image: url("../../photos/slide2.jpg");
}
.fragment.slide-3 {
  background-image: url("../../photos/slide3.jpg");
}
.fragment.slide-4 {
  background-image: url("../../photos/slide4.jpg");
}
.fragment.slide-5 {
  background-image: url("../../photos/slide5.jpg");
}
.fragment.slide-6 {
  background-image: url("../../photos/slide6.jpg");
}

/* ------------------------------------------------------------------
 * 3. NAVIGATION (ARROWS) STYLES
 * ------------------------------------------------------------------ */

/* Style both Prev and Next buttons */
.mySwiper .swiper-button-prev,
.mySwiper .swiper-button-next {
  /* Use a dark, highly visible color for the arrows on a light background */
  color: #333; 
  /* Reduce the size of the default arrow icon */
  font-size: 20px; 
  width: 40px;
  height: 40px;
  top: 50%;
  margin-top: -20px; /* Center vertically */
  transition: all 0.3s ease;
}

/* Add a subtle circle/background behind the arrows for better visibility */
.mySwiper .swiper-button-prev::after,
.mySwiper .swiper-button-next::after {
  /* Use the default unicode content (or an SVG) but ensure a good backdrop */
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
  border: 1px solid #ddd; /* Subtle border */
  border-radius: 50%;
  padding: 10px; /* Adjust padding to size the circle */
  line-height: 1; 
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover Effect for interaction */
.mySwiper .swiper-button-prev:hover,
.mySwiper .swiper-button-next:hover {
  color: #007bff; /* Change arrow color on hover */
}
.mySwiper .swiper-button-prev:hover::after,
.mySwiper .swiper-button-next:hover::after {
  background: #fff; /* Solid white background on hover */
  border-color: #007bff; /* Highlight border on hover */
}

/* Style the disabled state */
.mySwiper .swiper-button-disabled {
  opacity: 0.3; 
  cursor: default;
  pointer-events: none; /* Ensure no click events */
}

/* Style the entire pagination container/wrapper */
.mySwiper .swiper-pagination {
  bottom: 10px; /* Adjust vertical position */
}

/* Style all pagination bullets (dots) */
.mySwiper .swiper-pagination-bullet {
  background: #ccc; /* Default color of the inactive dots */
  opacity: 1; /* Reset default opacity if needed */
  width: 10px;
  height: 10px;
  margin: 0 4px !important; /* Adjust spacing between dots */
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Style the active pagination bullet */
.mySwiper .swiper-pagination-bullet-active {
  background: #007aff; /* Active color */
  width: 25px; /* Make the active dot wider */
  border-radius: 5px; /* Change to a rounded rectangle shape */
}

/* Demo controls */
.controls {
  position: fixed;
  top: 20px;
  inset-inline-start: 20px; /* Replaces left: 20px */
  z-index: 100;
  display: flex;
  gap: 10px;
}

.control-btn {
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Add this CSS to your existing stylesheet */
/* FIXED CONTACT SIDEBAR - VERTICAL STACK */
.contact-sidebar {
  position: fixed;
  inset-inline-end: 0; /* Replaces right: 0 */
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

  /* RTL: Shadow direction flips automatically */
  [dir="rtl"] .contact-sidebar {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }

.contact-item {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
  border: 3px solid white;
  border-inline-end: none; /* Replaces border-right: none */
}

/* Hover effect - direction aware */
[dir="ltr"] .contact-item:hover {
  transform: translateX(-10px);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .contact-item:hover {
  transform: translateX(10px);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

/* Colors exactly matching your screenshot */
.phone-call {
  background-color: #dc3545;
}

.whatsapp {
  background-color: #25d366;
}

.email {
  background-color: #007bff;
}

.quote {
  background-color: #fd7e14;
}

.facebook {
  background-color: #1877f2;
}

.linkedin {
  background-color: #0077b5;
}

.twitter {
  background-color: #1da1f2;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .contact-sidebar {
    inset-inline-end: 10px;
    transform: translateY(-50%) scale(0.9);
  }

  .contact-item {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .controls {
    inset-inline-start: 10px;
    flex-direction: column;
    gap: 5px;
  }

  .control-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ISO Certificate Modal */
#iso-modal {
  backdrop-filter: blur(5px);
}

#iso-modal.show {
  display: flex;
}

#modal-iso-image {
  max-width: 90vw;
  max-height: 90vh;
  transition: transform 0.3s ease;
}

#modal-iso-image:hover {
  transform: scale(1.02);
}

#close-iso-modal {
  font-family: Arial, sans-serif;
  line-height: 1;
}

/* Make original image clickable */
.iso-certificate-image {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.iso-certificate-image:hover {
  transform: scale(1.05);
}

/* --- New Testimonials Section Styling --- */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  /* Adjusted shadow for a better lift effect */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

/* --- New Testimonials Swiper Styling --- */

/* Customize Pagination Dots */
.swiper-pagination-testimonials.swiper-pagination-bullets .swiper-pagination-bullet {
    background: #ccc; /* Lighter color for inactive */
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: background 0.3s;
}

.swiper-pagination-testimonials.swiper-pagination-bullets .swiper-pagination-bullet-active {
    background: #1a3d7c; /* Primary color */
    width: 12px;
    height: 12px;
}

/* Customize Navigation Arrows */
.swiper-button-next-testimonials,
.swiper-button-prev-testimonials {
    color: #1a3d7c !important; /* Primary color */
    opacity: 0.8;
    transition: opacity 0.3s;
    background-color: white;
    border-radius: 50%;
    width: 44px; /* Larger hit area */
    height: 44px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    top: 50%; /* Center vertically */
    transform: translateY(-50%);
}

.swiper-button-next-testimonials:hover,
.swiper-button-prev-testimonials:hover {
    opacity: 1;
    background-color: #f0f0f0;
}

/* Ensure icons are visible inside the button */
.swiper-button-next-testimonials::after,
.swiper-button-prev-testimonials::after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Hide arrows on mobile for a cleaner look */
@media (max-width: 768px) {
    .swiper-button-next-testimonials,
    .swiper-button-prev-testimonials {
        display: none !important;
    }
}

/* Terms Modal - Fixed Scrolling Structure */
/* Terms Modal - Fixed Scrolling Structure */
#terms-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  overflow-y: auto;
}

#terms-modal.flex {
  display: flex;
}

/* Modal Container - Fixed max-height with flex layout */
.terms-modal-container {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 75vw;
  max-height: 90vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Dark mode support */
.dark .terms-modal-container {
  background-color: #1f2937;
}

/* Fixed Header */
.terms-modal-header {
  flex-shrink: 0;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dark .terms-modal-header {
  border-bottom-color: #374151;
}

/* Scrollable Content Area */
.terms-modal-content {
  flex-grow: 1;
  flex-shrink: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* Fixed Footer */
.terms-modal-footer {
  flex-shrink: 0;
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: right;
}

.dark .terms-modal-footer {
  border-top-color: #374151;
}