.dropdown-menu {
  background-color: #ffffff; /* Background color for dropdown */
  border: none; /* Remove border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.dropdown-item {
  font-weight: bold; /* Make text bold */
  font-size: 1.1rem; /* Slightly larger font size */
  color: #333333; /* Text color */
  padding: 10px 20px; /* Increased padding for a better click area */
  transition: background-color 0.3s, color 0.3s; /* Smooth transitions */
}

.dropdown-item:hover {
  background-color: #17a2b8; /* Change background on hover */
  color: #ffffff; /* Change text color on hover */
}
.submenu {
  padding-left: 20px; /* Indent submenu */
}

a.text-white.mb-2 {
  display: block; /* Ensure each menu item appears on a new line */
}
img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Adjusting for Mobile */
@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
  p {
    font-size: 1rem;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
/* Accordion Styles */
.accordion-button {
  background-color: #17a2b8;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  padding: 15px;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s, color 0.3s;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: #0056b3;
  color: #fff;
}

.accordion-body {
  padding: 20px;
  background-color: #f8f9fa;
  color: #333;
  /* font-size: 14px; */
  border-top: 1px solid #e9ecef;
}

.accordion-item {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accordion-header {
  border-bottom: 1px solid #dee2e6;
}

.accordion-collapse {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.accordion-collapse.show {
  max-height: 500px; /* Adjust as needed */
  opacity: 1;
}

.accordion-body {
  opacity: 0;
}

.accordion-collapse.show .accordion-body {
  opacity: 1;
}
html[lang="ar"] .back-to-top {
  right: auto;
  left: 20px;  /* Place on the left for RTL languages */
}
/* @media (max-width: 480px) {
  .history {
    margin: 20px 0;
  }
} */

/* Hide carousel arrows */
#carouselExampleIndicators .carousel-control-prev,
#carouselExampleIndicators .carousel-control-next {
    display: none;
}

/* Hide the indicator dots */
#carouselExampleIndicators .carousel-indicators {
    display: none;
}

.carousel-item img {
    transition: none !important;
    transform: none !important;
}

.our_history {
  transition: none !important;
  transform: none !important;
}


.our_history {
  width: 75%;
  height: auto;
  transition: none !important;
  transform: none !important;
}

@media (max-width: 992px) {
  .our_history {
    width: 50%;
  }
}

.custom-carousel img {
  height: 60vh; 
  max-height: 550px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  
}


@media (max-width: 768px) {
  .custom-carousel img {
    height: 45vh;
    max-height: 350px;
  }
}


@media (max-width: 480px) {
  .custom-carousel img {
    height: 30vh; 
    max-height: 200px;
  }
}


.background-title {
  min-height: clamp(300px, 40vh, 400px);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.history {
  margin: 40px 0;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}
/* Default font size for larger screens */
.approach,
.list {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #333333;
  text-align: justify;
  line-height: 1.8;
}

/* Hover styles for links */
/* .app-link {
  color: #007bff;
  text-decoration: none;
  font-size: 1.5rem;
} */
/* 
.app-link:hover {
  color: #000000;
  text-decoration: none;
} */

ul {
  padding-left: 0px;
}
@media (max-width: 1024px) {
  .background-title {
    min-height: clamp(250px, 35vh, 350px); /* Adjust height for medium screens */
  }
  
}
/* Smaller screens (max-width: 768px) */
@media (max-width: 768px) {
  .background-title {
    min-height: clamp(200px, 30vh, 300px); 
  }
  .history {
    font-size: clamp(1.5rem, 2vw, 2rem); 
    margin: 40px 0;
  }
  /* .app-link {
    color: #007bff;
    text-decoration: none;
    font-size: 1.2rem;
  } */
  .approach {
    font-size: clamp(1rem, 2.5vw, 1.4rem); 
  }
  .accordion-button {
    font-size: 1rem; 
    /* padding: 1.25rem;  */
  }
  
  /* .accordion-body {
    font-size: 1rem; 
  } */
}

/* Very small screens (max-width: 480px) */
@media (max-width: 480px) {
  .background-title {
    min-height: clamp(150px, 25vh, 250px);
  }
  .history {
  margin: 40px 0;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}
  /* .app-link {
    font-size: 0.9rem;
  } */
  /* .approach {
    font-size: clamp(0.8rem, 2vw, 1rem); 
  } */
  .accordion-button {
    font-size: 0.9rem; 
    padding: 1rem; 
  }
  
  .accordion-body {
    font-size: 0.75rem; 
  }
}

.email-link {
text-decoration: none;
color:#fff;
}
.email-link:hover {
text-decoration: underline;
color: #fff;
}

.footer-whatsapp {
  display: flex; /* Center the image */
  justify-content: center; /* Center the content */
  align-items: center; /* Align items vertically */
  background-color: #25D366; /* WhatsApp green background */
  border-radius: 50%; /* Circular button */
  width: 60px; /* Fixed width */
  height: 60px; /* Fixed height */
  transition: background-color 0.3s; /* Smooth transition for hover effect */
 
}

/* Image styling */
.footer-whatsapp img {
  width: 30px; /* Set image width */
  height: auto; /* Maintain aspect ratio */
}

/* Hover effect */
.footer-whatsapp:hover {
  background-color: #128C7E; /* Darker green on hover */
}

/* Footer styling */
footer {
  display: flex;
  justify-content: center; /* Center the content */
  align-items: center; /* Align items vertically */
  background-color: #f1f1f1; /* Light gray footer background */
  padding: 20px; /* Padding for the footer */
}

.responsive-text {
  font-size: clamp(0.85rem, 2vw, 1rem); /*  Default size */
  text-align: center; /* Center text */
  display: block; /* Make it block level */
  margin: 10px 0; /* Add some margin if needed */
}

/* For tablets */
@media (max-width: 768px) {
  .responsive-text {
      font-size: 0.875rem; /* Smaller font size for tablets */
  }
}

@media (max-width: 576px) {
  
  .accordion-button {
  
    padding: 1rem; 
  }
  
  .accordion-body {
    font-size: 0.85rem; 
  }
}

.responsive-heading {
  font-size: clamp(1.2rem, 4vw, 2.5rem);
}


/* Approach text style — ensure it always overrides Bootstrap or global <p> rules */
/* .approach {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* Medium screens */
/* @media (max-width: 768px) {
  .approach {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
  }
}

/* Small screens */
/* @media (max-width: 480px) {
  .approach {
    font-size: clamp(0.9rs
} */ 




.about-us-section .section-title {
  color: #1D3557;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 2rem);
  text-align: center;
  margin-bottom: 60px;
}

.about-us-section .section-title span {
  padding: 0 clamp(0.5rem, 1vw, 1rem); /* responsive horizontal padding */
}

.about-card {
  margin-top: 0;
}

/* Base card wrapper */
/* Card wrapper with visible border */
/* Card wrapper with thicker and gradient border */
.card-wrapper {
  position: relative;
  background: linear-gradient(120deg, #ffffff, #f9f9f9);
  border-radius: 20px;
  padding: 50px 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border: 5px solid; /* color will be set per card type */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional subtle scale effect on hover (can remove if needed) */


/* Border color per card type */
.mission-card-wrapper { border-color:  #138496; }
.approach-card-wrapper { border-color: #17a2b8; }

/* Card Icon - colorful & subtle glow */
.card-wrapper .card-icon {
  font-size: clamp(2rem, 4vw, 2.2rem);
  margin-bottom: 20px;
  color: inherit; /* keeps the current color */
  text-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Card headings */
.card-wrapper h5 {
  /* font-size: clamp(1.3rem, 2.2vw, 1.6rem); */
  margin-bottom: 1rem;
  color: #1D3557;
}

/* Highlighted key words */
.highlight-key, .highlight {
  background: linear-gradient(
  90deg,
  rgba(23, 162, 184, 0.30),
  rgba(72, 201, 215, 0.30)
);

  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 600;
}

/* Card paragraph */
.card-wrapper p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: #444;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
}

/* Feature list styling */
.feature-list .feature-item {
  display: flex;
  align-items: center;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: #333;
  line-height: 1.6;
  /* position: relative; */
  /* padding-left: 10px; */
  /* margin-bottom: 10px; */
}

.feature-list .feature-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.05);
}

/* Feature icons - keep colorful with soft shadow */
.feature-list .feature-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Icon colors per card type */
.mission-card-wrapper .card-icon,
.mission-card-wrapper .feature-icon { color: #138496; }

.approach-card-wrapper .card-icon,
.approach-card-wrapper .feature-icon { color: #17a2b8; }

.approach-card-wrapper .feature-icon {
background: linear-gradient(135deg, rgba(23,162,184,0.2), rgba(32,201,151,0.2));
}

/* Remove pseudo-elements */
.mission-card-wrapper::before,
.approach-card-wrapper::before { display: none; }


@media (max-width: 991px) {
  .about-card {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .feature-card-wrapper {
    padding: 30px 20px;
  }
}

/* Small Screens / Mobile */
@media (max-width: 576px) {
  .feature-list .feature-item {
    flex-direction: row;
    align-items: center;
    font-size: 0.95rem;
  }

  .feature-list .feature-icon {
    font-size: 1.1rem;
    margin-right: 8px;
  }
}

/* Smooth AOS Animation */
[data-aos] {
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0);
}


.highlight-key {
  /* border-bottom: 4px solid rgba(255, 193, 7, 0.6);  */
  font-weight: 600;
}
.highlight {
  /* border-bottom: 4px solid rgba(40, 167, 69, 0.6);  */
  font-weight: 600;
}

/* Section */
.services-section {
  background-color: #f8f9fa;
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.services-section .section-title {
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 700;
  color: #1D3557;
  margin-bottom: 3rem;
  white-space: normal;
}

/* Card */
.service-card {
  background: #fff;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.5rem 1rem;
  word-wrap: break-word;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Icon with colored circle */
.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  margin: 0 auto 12px auto;
  transition: all 0.3s ease;
}

/* Each card’s color */
.vocational { background-color: #e0f7fa; color: #17a2b8; }
.parental { background-color: #fff3cd; color: #ffc107; }
.early { background-color: #d4edda; color: #28a745; }
.social { background-color: #e7e1f6; color: #6f42c1; }
.sensory { background-color: #fff4e1; color: #fd7e14; }

/* Text */
.service-card h5 {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem); /* smaller */
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1D3557;
  white-space: normal; /* allow wrapping but not cutting words */
  overflow-wrap: break-word;
  word-break: normal;
}

.service-card p {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  color: #444;
  line-height: 1.5;
  margin-top: 0.5rem;
  word-break: normal;
  white-space: normal;
}

/* Responsive Grid */
.row.g-4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .col-lg-2 { flex: 0 0 30%; max-width: 30%; }
}

@media (max-width: 768px) {
  .col-md-4 { flex: 0 0 45%; max-width: 45%; }
}

@media (max-width: 576px) {
  .col-sm-6 { flex: 0 0 90%; max-width: 90%; }
  .service-card { padding: 1rem; margin-bottom: 20px; }
  .service-card h5 { font-size: 1rem; } /* keep heading readable */
  .service-card p { font-size: 0.9rem; }
}

.spinner-image {
  position: relative;
  width: 7rem;
  height: 7rem;
  border-top: 3px solid #17a2b8;
  border-radius: 50%;
  animation: rotate 2s linear infinite;
}

/* Inner circles */
.spinner-image::before,
.spinner-image::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border-top: 3px solid transparent;
}

.spinner-image::before {
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-top-color: #6fc3d5;
  animation: rotate 2s linear infinite;
}

.spinner-image::after {
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-top-color: #0f6c85;
  animation: rotate 1s linear infinite;
}

/* Rotation animation */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive spinner sizes */
@media (max-width: 768px) {
  .spinner-image {
    width: 5rem;
    height: 5rem;
  }

  .spinner-image::before {
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
  }

  .spinner-image::after {
    top: 7px;
    left: 7px;
    right: 7px;
    bottom: 7px;
  }
}

@media (max-width: 480px) {
  .spinner-image {
    width: 4rem;
    height: 4rem;
  }

  .spinner-image::before {
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
  }

  .spinner-image::after {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
  }
}