.lang-switcher {
  display: inline-block;
  position: relative;
  width: 100%;
  max-width: 150px;
  margin: 10px auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Dropdown Button */
.dropdown-btn {
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dropdown-btn:hover {
  border-color: #17a2b8;
  box-shadow: 0 0 8px rgba(23, 162, 184, 0.3);
}

/* Dropdown Menu */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 5px;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  top: 100%;
  left: 0;
}

/* Dropdown Items */
.dropdown-content a {
  color: #333;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #17a2b8;
  color: #fff;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

@media (max-width: 480px) {
  .lang-switcher {
    max-width: 100px;
    margin: 10px auto;
    padding: 0 5px;
  }

  .dropdown-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .dropdown-content a {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .dropdown-content {
    min-width: 130px;
  }
}

.typing-animation {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.typing-animation h1 {
  font-size: clamp(
    2rem,
    5vw + 1rem,
    5rem
  ); /* Default size for larger screens */
  margin: 0;
  color: #fff;
}

p.textintro {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.2rem); /* Paragraph font size */
  line-height: 1.8;
  text-align: justify;
}

.typing-animation .line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  position: relative; /* Ensure the caret is positioned correctly */
}

/* RTL Caret */
.typing-animation.rtl .line::after {
  right: auto;
  left: 0; /* Move caret to the left */
  animation: blink-caret 0.5s step-end infinite;
}

@keyframes typing-1 {
  from {
    width: 0;
  }
  to {
    width: 80%;
  }
}

@keyframes typing-2 {
  from {
    width: 0;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to {
    width: 72%;
    opacity: 1;
  }
}

@keyframes typing-rtl-1 {
  from {
    width: 0;
  }
  to {
    width: 80%; /* Set the same width as LTR */
  }
}

@keyframes typing-rtl-2 {
  from {
    width: 0;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to {
    width: 72%; /* Set the same width as LTR */
    opacity: 1;
  }
}

.typing-animation .line.line-1 {
  width: 0;
  animation: typing-1 1.5s steps(22, end) forwards;
}

.typing-animation .line.line-2 {
  width: 0;
  opacity: 0;
  animation: typing-2 1.5s steps(26, end) forwards;
  animation-delay: 1.5s;
}

.typing-animation .line.line-1::after,
.typing-animation .line.line-2::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0.05em;
  background: white;
  animation: blink-caret 0.5s step-end infinite;
}

.typing-animation .line.line-1::after {
  animation: blink-caret 0.5s step-end infinite, caret-hide 0s 1.5s forwards;
}

.typing-animation .line.line-2::after {
  animation: blink-caret 0.5s step-end infinite, caret-hide 0s 3s forwards; /* Adjusted timing for line 2 */
}

/* Caret hide keyframe */
@keyframes caret-hide {
  to {
    background: transparent;
  }
}

@keyframes blink-caret {
  from,
  to {
    background: transparent;
  }
  1% {
    background: white;
  }
}

.typing-animation.rtl .line.line-1::after {
  left: 0;
  right: auto;
  animation: blink-caret 0.5s step-end infinite, caret-hide 0s 1.5s forwards;
}

.typing-animation.rtl .line.line-2::after {
  left: 0;
  right: auto;
  animation: blink-caret 0.5s step-end infinite, caret-hide 0s 3s forwards;
}

.typing-animation.rtl .line::after,
.typing-animation .line::after {
  animation: none; /* Reset animation when switching */
}

@keyframes caret-hide {
  to {
    background: transparent;
  }
}

@keyframes blink-caret {
  from,
  to {
    background: transparent;
  }
  1% {
    background: white;
  }
}

.display-3,
.p-3 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

[lang="ar"] .col-lg-6 {
  text-align: right !important;
}
/* Media Queries */

/* For screens 1520px and below */
@media (max-width: 1520px) {
  .typing-animation h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  }

  .typing-animation .line {
    max-width: 65vw; /* Further limit the width for very small screens */
  }

  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 85%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 75%;
      opacity: 1;
    }
  }
}

// Media Query for 1460px
@media (max-width: 1460px) {
  .typing-animation h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  }

  .typing-animation .line {
    max-width: 65vw; /* Further limit the width for very small screens */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(18, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(22, end) forwards;
    animation-delay: 1.5s;
  }
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 80%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 70%;
      opacity: 1;
    }
  }
}

@media (max-width: 1400px) {
  .typing-animation h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  }

  .typing-animation .line {
    max-width: 65vw; /* Further limit the width for very small screens */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(18, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(22, end) forwards;
    animation-delay: 1.5s;
  }
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 85%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 75%;
      opacity: 1;
    }
  }
}

@media (max-width: 1330px) {
  .typing-animation h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  }

  .typing-animation .line {
    max-width: 65vw; /* Further limit the width for very small screens */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(18, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(22, end) forwards;
    animation-delay: 1.5s;
  }
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 85%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 80%;
      opacity: 1;
    }
  }
}
@media (max-width: 1320px) {
  .typing-animation h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  }

  .typing-animation .line {
    max-width: 65vw; /* Further limit the width for very small screens */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(18, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(22, end) forwards;
    animation-delay: 1.5s;
  }
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 85%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 77%;
      opacity: 1;
    }
  }
}
@media (max-width: 1300px) {
  .typing-animation h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  }

  .typing-animation .line {
    max-width: 65vw; /* Further limit the width for very small screens */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(18, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(22, end) forwards;
    animation-delay: 1.5s;
  }
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 90%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 80%;
      opacity: 1;
    }
  }
}
@media (max-width: 1260px) {
  .typing-animation h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  }

  .typing-animation .line {
    max-width: 65vw; /* Further limit the width for very small screens */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(18, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(22, end) forwards;
    animation-delay: 1.5s;
  }
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 85%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 77%;
      opacity: 1;
    }
  }
}

@media (max-width: 1240px) {
  .typing-animation h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  }

  .typing-animation .line {
    max-width: 65vw; /* Further limit the width for very small screens */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(18, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(22, end) forwards;
    animation-delay: 1.5s;
  }
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 85%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 77%;
      opacity: 1;
    }
  }
}

/* Adjustments for smaller screens */
@media (max-width: 1320px) {
  .typing-animation h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4rem);
  }

  .typing-animation .line {
    max-width: 80%; /* Limit the width slightly for smaller screens */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(20, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(24, end) forwards;
    animation-delay: 1.5s;
  }
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 80%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 72%;
      opacity: 1;
    }
  }
}

@media (max-width: 1256px) {
  .typing-animation h1 {
    font-size: clamp(1.8rem, 4vw + 1rem, 3.5rem);
  }

  .typing-animation .line {
    max-width: 100%; /* Adjust for smaller width */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(15, end) forwards; /* Stops earlier */
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(18, end) forwards; /* Stops earlier */
    animation-delay: 1.5s;
  }

  .typing-animation .blink-caret {
    animation: blink-caret 0.75s step-end infinite;
  }

  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 75%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 65%;
      opacity: 1;
    }
  }
}

@media (max-width: 1214px) {
  .typing-animation h1 {
    font-size: clamp(1.8rem, 4vw + 1rem, 3.5rem);
  }

  .typing-animation .line {
    max-width: 100%; /* Adjust for smaller width */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(15, end) forwards; /* Stops earlier */
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(18, end) forwards; /* Stops earlier */
    animation-delay: 1.5s;
  }

  .typing-animation .blink-caret {
    animation: blink-caret 0.75s step-end infinite;
  }

  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 70%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 65%;
      opacity: 1;
    }
  }
}

@media (max-width: 1210px) {
  .typing-animation h1 {
    font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
  }

  .typing-animation .line {
    max-width: 100%; /* Adjust for smaller width */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(15, end) forwards; /* Stops earlier */
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(18, end) forwards; /* Stops earlier */
    animation-delay: 1.5s;
  }

  .typing-animation .blink-caret {
    animation: blink-caret 0.75s step-end infinite;
  }

  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 65%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 60%;
      opacity: 1;
    }
  }
}

@media (max-width: 1180px) {
  .typing-animation h1 {
    font-size: clamp(1.8rem, 4vw + 1rem, 2.5rem);
  }

  .typing-animation .line {
    max-width: 100%; /* Adjust for smaller width */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(15, end) forwards; /* Stops earlier */
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(18, end) forwards; /* Stops earlier */
    animation-delay: 1.5s;
  }

  .typing-animation .blink-caret {
    animation: blink-caret 0.75s step-end infinite;
  }

  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 60%;
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 55%;
      opacity: 1;
    }
  }
}

/* Media Query for 1080px and below */
@media (max-width: 1080px) {
  .typing-animation h1 {
    font-size: clamp(
      1.8rem,
      4vw + 1rem,
      2.5rem
    ); /* Increase the font size for smaller screens */
  }

  p.textintro {
    font-size: clamp(
      0.9rem,
      2vw + 0.3rem,
      1.1rem
    ); /* Smaller paragraph font size */
  }

  .typing-animation .line {
    max-width: 100%; /* Allow full width for centering */
    overflow: hidden;
  }

  /* Adjust keyframes for centering and size */
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 67%; /* Full width for centering */
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 60%; /* Slightly smaller to fit within center */
      opacity: 1;
    }
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(22, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(26, end) forwards;
    animation-delay: 1.5s;
  }
}

/* Media Query for 991px and below */
/* For screen sizes at 991px and below */
@media (max-width: 991.5px) {
  /* Center the h1 text and make it responsive */
  .typing-animation h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem); /* Larger font size */
    text-align: center;
    margin: 0 auto; /* Center the text */
  }

  /* Adjust the paragraph font size */
  p.textintro {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.4rem); /* Paragraph font size */
    text-align: center; /* Center the paragraph as well */
  }

  /* Set width for lines to ensure full centering */
  .typing-animation .line {
    max-width: 100%;
    margin: 0 auto;
    text-align: center; /* Ensure the typing animation stays in the center */
    overflow: hidden;
  }

  /* Adjust keyframes for centering and size */
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 55%; /* Increase width to 75% to appear larger */
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 50%; /* Slightly smaller than line 1 to fit within center */
      opacity: 1;
    }
  }

  /* Apply the typing animations with adjusted width */
  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(22, end) forwards;
    text-align: center;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(26, end) forwards;
    animation-delay: 1.5s;
    text-align: center;
  }
}

@media (max-width: 865px) {
  /* Center the h1 text and make it responsive */
  .typing-animation h1 {
    font-size: clamp(1.8rem, 4vw + 1rem, 3rem); /* Larger font size */
    text-align: center;
    margin: 0 auto; /* Center the text */
  }

  /* Adjust the paragraph font size */
  p.textintro {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.4rem); /* Paragraph font size */
    text-align: center; /* Center the paragraph as well */
  }

  /* Set width for lines to ensure full centering */
  .typing-animation .line {
    max-width: 100%;
    margin: 0 auto;
    text-align: center; /* Ensure the typing animation stays in the center */
    overflow: hidden;
  }

  /* Adjust keyframes for centering and size */
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 47%; /* Increase width to 75% to appear larger */
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 43%; /* Slightly smaller than line 1 to fit within center */
      opacity: 1;
    }
  }

  /* Apply the typing animations with adjusted width */
  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(22, end) forwards;
    text-align: center;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(26, end) forwards;
    animation-delay: 1.5s;
    text-align: center;
  }
}

@media (max-width: 830px) {
  /* Center the h1 text and make it responsive */
  .typing-animation h1 {
    font-size: clamp(1.6rem, 4vw + 1rem, 2.8rem); /* Larger font size */
    text-align: center;
    margin: 0 auto; /* Center the text */
  }

  /* Adjust the paragraph font size */
  p.textintro {
    font-size: clamp(1.2rem, 2vw + 0.5rem, 1.6rem); /* Paragraph font size */
    text-align: center; /* Center the paragraph as well */
  }

  /* Set width for lines to ensure full centering */
  .typing-animation .line {
    max-width: 100%;
    margin: 0 auto;
    text-align: center; /* Ensure the typing animation stays in the center */
    overflow: hidden;
  }

  /* Adjust keyframes for centering and size */
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 47%; /* Increase width to 75% to appear larger */
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 43%; /* Slightly smaller than line 1 to fit within center */
      opacity: 1;
    }
  }

  /* Apply the typing animations with adjusted width */
  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(22, end) forwards;
    text-align: center;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(26, end) forwards;
    animation-delay: 1.5s;
    text-align: center;
  }
}

@media (max-width: 625px) {
  /* Center the h1 text and make it responsive */
  .typing-animation h1 {
    font-size: clamp(1.5rem, 4vw + 1rem, 2.5rem); /* Larger font size */
    text-align: center;
    margin: 0 auto; /* Center the text */
  }

  /* Adjust the paragraph font size */
  p.textintro {
    /* font-size: clamp(1rem, 2vw + 0.5rem, 0.8rem);  */
    font-size: clamp(1rem, 2vw + 0.5rem, 1.2rem);
    text-align: center; /* Center the paragraph as well */
  }

  /* Set width for lines to ensure full centering */
  .typing-animation .line {
    max-width: 100%;
    margin: 0 auto; 
    text-align: center; /* Ensure the typing animation stays in the center */
    overflow: hidden;
  }

  /* Adjust keyframes for centering and size */
  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 47%; /* Increase width to 75% to appear larger */
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 43%; /* Slightly smaller than line 1 to fit within center */
      opacity: 1;
    }
  }

  /* Apply the typing animations with adjusted width */
  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(22, end) forwards;
    text-align: center;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(26, end) forwards;
    animation-delay: 1.5s;
    text-align: center;
  }
}

@media (max-width: 615px) {
  .typing-animation h1 {
    font-size: clamp(
      1.2rem,
      4vw + 0.5rem,
      2rem
    ); /* Responsive and slightly smaller */
    text-align: center; /* Ensure text remains centered */
  }

  .typing-animation .line {
    max-width: 75%; /* Ensure lines don't cut off */
    margin: 0 auto; /* Keep typing line centered */
  }

  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 42%; /* Adjusted to fit within the max-width */
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 36%; /* Adjusted to fit within the max-width */
      opacity: 1;
    }
  }
}

@media (max-width: 578px) {
  .typing-animation h1 {
    font-size: clamp(
      1.2rem,
      4vw + 0.5rem,
      2.2rem
    ); /* Responsive and slightly smaller */
    text-align: center; /* Ensure text remains centered */
  }

  .typing-animation .line {
    max-width: 75%; /* Ensure lines don't cut off */
    margin: 0 auto; /* Keep typing line centered */
  }

  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 42%; /* Adjusted to fit within the max-width */
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 36%; /* Adjusted to fit within the max-width */
      opacity: 1;
    }
  }
}

@media (max-width: 550px) {
  .typing-animation h1 {
    font-size: clamp(
      1.1rem,
      4vw + 0.4rem,
      2rem
    ); /* Decrease font size smoothly */
    text-align: center; /* Ensure text remains centered */
  }

  .typing-animation .line {
    max-width: 75%; /* Adjusted to keep centered and avoid cut-offs */
    margin: 0 auto; /* Keep typing line centered */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(18, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(22, end) forwards;
    animation-delay: 1.5s;
  }

  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 42%; /* Adjust based on font-size decrease */
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 36%; /* Adjusted to fit within max-width */
      opacity: 1;
    }
  }
}

@media (max-width: 530px) {
  .typing-animation h1 {
    font-size: clamp(
      1rem,
      3.5vw + 0.4rem,
      1.8rem
    ); /* Further decrease font size */
    text-align: center;
  }

  .typing-animation .line {
    max-width: 80%; /* Further reduce width to prevent cut-off */
    margin: 0 auto; /* Keep typing line centered */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(18, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(22, end) forwards;
    animation-delay: 1.5s;
  }

  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 42%; /* Adjusted to fit within reduced max-width */
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 36%; /* Adjust based on font size */
      opacity: 1;
    }
  }
}

@media (max-width: 350px) {
  .typing-animation h1 {
    font-size: clamp(
      1rem,
      3.5vw + 0.4rem,
      1.6rem /* Reduced max size for better fitting */
    );
    text-align: center;
  }

  p.textintro {
    font-size: clamp(0.9rem, 2vw + 0.3rem, 1rem); /* Adjusted max size */
    text-align: center;
  }

  .typing-animation .line {
    max-width: 80%; /* Further reduce width to prevent cut-off */
    margin: 0 auto; /* Keep typing line centered */
  }

  .typing-animation .line.line-1 {
    animation: typing-1 1.5s steps(18, end) forwards;
  }

  .typing-animation .line.line-2 {
    animation: typing-2 1.5s steps(22, end) forwards;
    animation-delay: 1.5s;
  }

  @keyframes typing-1 {
    from {
      width: 0;
    }
    to {
      width: 44%; /* Adjusted to fit within reduced max-width */
    }
  }

  @keyframes typing-2 {
    from {
      width: 0;
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    to {
      width: 40%; /* Adjust based on font size */
      opacity: 1;
    }
  }
}

.carousel-control-prev,
.carousel-control-next {
  display: none;
}
.carousel-indicators {
  display: none;
}
/* .custom-card {
  background: linear-gradient(135deg, rgba(249, 249, 249, 0.8), rgba(232, 240, 254, 0.8));
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  padding: 20px;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
} */
.goog-te-banner-frame,
.goog-te-gadget {
  display: none !important;
}
.custom-card {
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transform: translate(-100vw, -100vh); /* Start off-screen for puzzle effect */
  opacity: 0;
  transition: all 1s ease-in-out;
}

/* Puzzle Animation */
.custom-card:nth-child(1) {
  transition-delay: 0.2s;
  transform: translate(-100vw, -100vh);
}
.custom-card:nth-child(2) {
  transition-delay: 0.4s;
  transform: translate(100vw, -100vh);
}
.custom-card:nth-child(3) {
  transition-delay: 0.6s;
  transform: translate(-100vw, 100vh);
}

.custom-card:nth-child(4) {
  transition-delay: 0.8s;
}
.custom-card:nth-child(5) {
  transition-delay: 1s;
}
.custom-card:nth-child(6) {
  transition-delay: 1.2s;
}

.custom-card.loaded {
  transform: translate(0, 0);
  opacity: 1;
}

.custom-card .card-body {
  position: relative;
  z-index: 1;
}

.custom-card .card-title {
  /* font-size: 1.5rem; */
  font-family: "Handlee", sans-serif;
  margin-top: 15px;
  color: #0056b3;
}

.custom-card .card-text {
  color: #333;
  text-align: justify;
  /* font-size: 1rem; */
  line-height: 1.5;
}

.custom-card .icon-animation {
  color: #0056b3;
  animation: bounce 2s infinite;
}

/* Animation for Icons */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(
      1,
      1fr
    ); /* Single column on smaller screens */
  }
}

/* Animation for Icons */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .custom-card {
    flex: 1 1 100%; /* Single column on smaller screens */
    max-width: 100%;
  }
}

.team {
  opacity: 0;
  animation: fadeIn 1.5s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.team {
  background: linear-gradient(135deg, #ffffff, #f3f4f5);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.team:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.rowTeachers {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Adjust as needed */
  justify-content: center; /* Ensures proper centering on smaller screens */
}

.team {
  flex: 1 1 calc(25% - 20px); /* 4 cards per row on large screens */
  max-width: calc(25% - 20px);
}

/* Medium screens: 2 cards per row */
@media (max-width: 992px) {
  .team {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

/* Small screens: 1 card per row */
@media (max-width: 576px) {
  .team {
    flex: 1 1 calc(100% - 20px);
    max-width: calc(100% - 20px);
  }
}

/* .carousel-img {
  max-width: 75%; 
  height: auto; 
  display: block; 
  margin: 0 auto;"
} */

/* Background Section */
.background-section {
  position: relative;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.puzzle-wrapper {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  line-height: 0;
}

/* .puzzle-wrapper {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 1fr; 
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  aspect-ratio: 2 / 1;
} */

.puzzle-piece {
  /* aspect-ratio: 1.25; */
  background-image: url("../img/Hangover.webp");
  background-repeat: no-repeat;
  background-size: 900% 500%;
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 100%;
  height: 100%;
}

/* Define background positions */
.puzzle-piece:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  background-position: 0% 0%;
}
.puzzle-piece:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  background-position: 12.5% 0%;
}
.puzzle-piece:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
  background-position: 25% 0%;
}
.puzzle-piece:nth-child(4) {
  grid-column: 4;
  grid-row: 1;
  background-position: 37.5% 0%;
}
.puzzle-piece:nth-child(5) {
  grid-column: 5;
  grid-row: 1;
  background-position: 50% 0%;
}
.puzzle-piece:nth-child(6) {
  grid-column: 6;
  grid-row: 1;
  background-position: 62.5% 0%;
}
.puzzle-piece:nth-child(7) {
  grid-column: 7;
  grid-row: 1;
  background-position: 75% 0%;
}
.puzzle-piece:nth-child(8) {
  grid-column: 8;
  grid-row: 1;
  background-position: 87.5% 0%;
}

.puzzle-piece:nth-child(9) {
  grid-column: 1;
  grid-row: 2;
  background-position: 0% 25%;
}
.puzzle-piece:nth-child(10) {
  grid-column: 2;
  grid-row: 2;
  background-position: 12.5% 25%;
}
.puzzle-piece:nth-child(11) {
  grid-column: 3;
  grid-row: 2;
  background-position: 25% 25%;
}
.puzzle-piece:nth-child(12) {
  grid-column: 4;
  grid-row: 2;
  background-position: 37.5% 25%;
}
.puzzle-piece:nth-child(13) {
  grid-column: 5;
  grid-row: 2;
  background-position: 50% 25%;
}
.puzzle-piece:nth-child(14) {
  grid-column: 6;
  grid-row: 2;
  background-position: 62.5% 25%;
}
.puzzle-piece:nth-child(15) {
  grid-column: 7;
  grid-row: 2;
  background-position: 75% 25%;
}
.puzzle-piece:nth-child(16) {
  grid-column: 8;
  grid-row: 2;
  background-position: 87.5% 25%;
}

.puzzle-piece:nth-child(17) {
  grid-column: 1;
  grid-row: 3;
  background-position: 0% 50%;
}
.puzzle-piece:nth-child(18) {
  grid-column: 2;
  grid-row: 3;
  background-position: 12.5% 50%;
}
.puzzle-piece:nth-child(19) {
  grid-column: 3;
  grid-row: 3;
  background-position: 25% 50%;
}
.puzzle-piece:nth-child(20) {
  grid-column: 4;
  grid-row: 3;
  background-position: 37.5% 50%;
}
.puzzle-piece:nth-child(21) {
  grid-column: 5;
  grid-row: 3;
  background-position: 50% 50%;
}
.puzzle-piece:nth-child(22) {
  grid-column: 6;
  grid-row: 3;
  background-position: 62.5% 50%;
}
.puzzle-piece:nth-child(23) {
  grid-column: 7;
  grid-row: 3;
  background-position: 75% 50%;
}
.puzzle-piece:nth-child(24) {
  grid-column: 8;
  grid-row: 3;
  background-position: 87.5% 50%;
}

.puzzle-piece:nth-child(25) {
  grid-column: 1;
  grid-row: 4;
  background-position: 0% 75%;
}
.puzzle-piece:nth-child(26) {
  grid-column: 2;
  grid-row: 4;
  background-position: 12.5% 75%;
}
.puzzle-piece:nth-child(27) {
  grid-column: 3;
  grid-row: 4;
  background-position: 25% 75%;
}
.puzzle-piece:nth-child(28) {
  grid-column: 4;
  grid-row: 4;
  background-position: 37.5% 75%;
}
.puzzle-piece:nth-child(29) {
  grid-column: 5;
  grid-row: 4;
  background-position: 50% 75%;
}
.puzzle-piece:nth-child(30) {
  grid-column: 6;
  grid-row: 4;
  background-position: 62.5% 75%;
}
.puzzle-piece:nth-child(31) {
  grid-column: 7;
  grid-row: 4;
  background-position: 75% 75%;
}
.puzzle-piece:nth-child(32) {
  grid-column: 8;
  grid-row: 4;
  background-position: 87.5% 75%;
}

[data-aos] {
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}
[data-aos="flip-left"] {
  transform: rotateY(180deg);
}

[data-aos="flip-right"] {
  transform: rotateY(-180deg);
}

[data-aos="flip-up"] {
  transform: rotateX(-180deg);
}

[data-aos="flip-down"] {
  transform: rotateX(180deg);
}

/* 
[data-aos="fade-left"] {
  transform: translateX(-100%);
}

[data-aos="fade-right"] {
  transform: translateX(100%);
}

[data-aos="fade-up"] {
  transform: translateY(100%);
}

[data-aos="fade-down"] {
  transform: translateY(-100%);
} */

html[lang="ar"] .back-to-top {
  right: auto;
  left: 20px; /* Place on the left for RTL languages */
}

#intro-text:lang(ar) {
  direction: rtl; /* Arabic text should be right-to-left */
  text-align: right; /* Ensure the text is aligned to the right */
}

#intro-text {
  direction: ltr; /* Default direction for English text */
}

/* AOS transition on animation trigger */
[data-aos].aos-animate {
  transform: translate(0, 0); /* Move back to normal position */
  opacity: 1; /* Fade in */
}

/* [data-aos="fade-left"] {
  transform: translateX(-100%);
}

[data-aos="fade-right"] {
  transform: translateX(100%);
}

[data-aos="fade-up"] {
  transform: translateY(100%);
}

[data-aos="fade-down"] {
  transform: translateY(-100%);
}


[data-aos].aos-animate {
  transform: translate(0, 0);
  opacity: 1; 
  transition: transform 1s ease, opacity 1s ease;
} */

.testimonial-container {
  background: linear-gradient(to bottom, #ffffff, #f7f7f7);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
}

.testimonial-container {
  background: linear-gradient(-45deg, #e8f0fe, #ffffff, #d1e7fd);
  background-size: 400% 400%;
  /* animation: gradientAnimation 15s ease infinite; */
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* .testimonial-item.highlight {
  box-shadow: 0 0 20px #17a2b8;
  transform: scale(1.05);
  transition: all 0.3s ease-in-out;
}

.testimonial-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
} */

.fas.fa-quote-left {
  animation: bounce 2s infinite;
}

.quote-icon {
  position: absolute;
  top: clamp(0.2rem, 1.5vw, 0.5rem);
  left: clamp(1%, 5vw, 2rem);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.card-body {
  text-align: center;
}

.icon-padding {
  margin-bottom: 30px;
}

.title-padding {
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.25rem;
}

/* .title-padding {
  padding-bottom: 10px;
  font-size: 30px;
  font-weight: 600;
} */

.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

/* .custom-card {
  width: 280px;
  margin: 10px;
  flex: 1 1 300px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e0e0e0;
} */

/* .custom-card {
  width: 100%;
  max-width: 350px; 
  padding: 1.5rem;
  margin: auto;
  border: none;
  box-shadow 0.3s ease;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
} */

.custom-card {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.5rem;
  margin: 0 auto 2rem auto;
  margin-bottom: 60px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .card-body {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .icon-padding {
    margin-right: 1.5rem; /* Space between icon and text */
    margin-bottom: 0;
  }
}

.card-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1.125rem);
  line-height: 1.6;
  color: #4d4d4d;
}

.icon-animation {
  font-size: clamp(2rem, 3vw, 3rem);
  color: #3498db;
  transition: color 0.3s ease;
}

.icon-animation:hover {
  color: #2980b9;
}

.custom-card .card-body {
  flex: 1;
}

@media (max-width: 991.5px) {
  .custom-card {
    flex: 1 1 45%;
  }
}

@media (max-width: 669px) {
  .custom-card {
    flex: 1 1 100%;
  }
}

.custom-card .title-padding:hover {
  color: darkblue;
  cursor: pointer;
  transform: scale(1.02);
  text-decoration: underline;
}

.carousel-control-prev,
.carousel-control-next {
  display: none;
  cursor: default;
}

.card-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: #2c3e50;
}

/* .card-text {
  
  color: #4d4d4d;
  line-height: 1.6;
} */

.card-text {
  color: #4d4d4d;
  line-height: 1.6;
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1.125rem);
}

@media (max-width: 768px) {
  .text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .text {
    font-size: 0.875rem;
  }
}

/* @media (max-width: 768px) {
  .card-text {
    font-size: 0.875rem;
  }
}
@media (max-width: 480px) {
  .card-text {
    font-size: 0.875rem;
  }
} */
/* Default icon styling */
.icon-animation {
  color: #3498db;
  transition: color 0.3s ease;
  font-size: 2.4rem; /* Base font size for the icon */
}

/* Hover effect */
.icon-animation:hover {
  color: #2980b9;
}

/* Ensure the icon is responsive */
@media (max-width: 1200px) {
  .icon-animation {
    font-size: 2.2rem; /* Slightly smaller for medium screens */
  }
}

@media (max-width: 992px) {
  .icon-animation {
    font-size: 2rem; /* Adjust size for tablets */
  }
}

@media (max-width: 768px) {
  .icon-animation {
    font-size: 1.8rem; /* Smaller size for smaller tablets */
  }
}

@media (max-width: 576px) {
  .icon-animation {
    font-size: 1.6rem; /* Even smaller for mobile phones */
  }
}

@media (max-width: 320px) {
  .icon-animation {
    font-size: 1.4rem; /* For very small screens like iPhone 5 */
  }
}

.icon-padding {
  margin-bottom: 1rem;
}
/* Flex container for header */
/* Flex container for header */

.icon-text-container h4 {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Medium screens (Tablets, up to 768px) */
@media (max-width: 768px) {
  .icon-text-container h4 {
    font-size: 1.15rem; /* Slightly smaller heading */
  }
}

/* Small screens (Phones, up to 576px) */
@media (max-width: 576px) {
  .icon-text-container h4 {
    font-size: 1rem; /* Smaller heading for phones */
  }
}

/* Very small screens (e.g., iPhone 5, up to 320px) */
@media (max-width: 320px) {
  .icon-text-container h4 {
    font-size: 0.95rem; /* Compact heading for very small screens */
  }
}

.same-font-size {
  font-size: 20px; /* Adjust the font size as needed */
}

.icon-text-container p {
  font-size: 1rem; /* Slightly increase text size */
  color: #333; /* Darker color for better readability */
}

.carousel-img {
  width: 100%; /* Full width within the carousel container */
  max-width: 500px; /* Initial maximum width */
  max-height: 600px; /* Initial maximum height */
  object-fit: cover;
  margin-bottom: 50px;
}

.cover-img {
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Ensure the image is responsive */
.responsive-img {
  width: 100%; /* The image will take up the width of its container */
  height: auto; /* Maintain aspect ratio */
  max-width: 150px; /* Set a max-width to keep the image from becoming too large */
}

/* For tablets (up to 768px) */
@media (max-width: 768px) {
  .responsive-img {
    max-width: 120px; /* Reduce the image size on medium screens */
  }
}

/* For mobile screens (up to 576px) */
@media (max-width: 576px) {
  .responsive-img {
    max-width: 100px; /* Reduce further on smaller screens */
  }
}

.teacher-position,
.client-position {
  font-size: 1rem; /* Adjust based on your design */
}

/* Medium screens (Tablets, up to 768px) */
@media (max-width: 768px) {
  .teacher-position,
  .client-position {
    font-size: 0.9rem; /* Slightly smaller for tablets */
  }
}

/* Small screens (Phones, up to 576px) */
@media (max-width: 576px) {
  .teacher-position,
  .client-position {
    font-size: 0.875rem; /* Smaller for mobile screens */
  }
}

/* 
@media (max-width: 320px) {
  .responsive-img {
    max-width: 80px;  
  }
} */

/* Default font size for larger screens */
p.responsive-text {
  font-size: 1rem; /* Default for larger screens */
}

@media (max-width: 768px) {
  p.responsive-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  p.responsive-text {
    font-size: 0.875rem;
  }
}

/* Medium screens - Less than 992px */
@media (max-width: 991.5px) {
  .carousel-img {
    width: 100%;
    max-width: 450px;
    max-height: 540px;
  }
}

@media (max-width: 767.5px) {
  .carousel-img {
    width: 100%;
    max-width: 360px;
    max-height: 450px;
  }
}

@media (max-width: 576px) {
  .carousel-img {
    width: 100%;
    max-width: 330px;
    max-height: 410px;
  }
}

@media (max-width: 480px) {
  .carousel-img {
    width: 100%;
    max-width: 290px;
    max-height: 370px;
  }
}

@media (max-width: 320px) {
  .carousel-img {
    width: 100%;
    max-width: 275px;
    max-height: 350px;
  }
}

.background-facilities {
  background-size: cover;
  padding: 2rem 0;
}

.icon-text-container {
  display: flex;
  flex-direction: row; /* Align icon and title horizontally */
  align-items: center; /* Center them vertically */
}

.icon-text-container .pl-4 {
  display: flex;
  flex-direction: column; /* Keep the text vertically aligned under the title */
}

/* Margin for carousel to separate it from the text */
.carousel-inner {
  margin-top: 20px; /* Adjust this if you want space between the text and images */
}

.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;
  align-items: center;
  background-color: #f1f1f1;
  padding: 20px;
}

.language-toggle {
  position: absolute;
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #4caf50;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

#language-label {
  margin-left: 10px;
  font-size: 16px;
}

body.loading {
  overflow: hidden; /* Prevent scrolling while loading */
}

.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner-wrapper {
  position: relative;
}

.spinner-image {
  width: 10vw; /* Responsive width based on viewport width */
  height: 10vw; /* Responsive height based on viewport width */
  max-width: 100px; /* Maximum width for large screens */
  max-height: 100px; /* Maximum height for large screens */
  animation: spin 2s linear infinite;
}

/* Adjustments for different screen sizes */
@media (max-width: 768px) {
  .spinner-image {
    width: 15vw;
    height: 15vw;
  }
}

@media (max-width: 480px) {
  .spinner-image {
    width: 20vw;
    height: 20vw;
  }
}

.loading-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  border: 5px solid #ccc;
  border-radius: 50%;
  border-top: 5px solid #3498db;
  animation: rotate 5s linear infinite;
  transform: translate(-50%, -50%);
}

.d-none {
  display: none;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.testimonial-item {
  min-height: 400px; /* or whatever fits your layout */
}
.testimonial-card {
  height: 100%;
}
.testimonial-item video {
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  max-height: 400px;
}

/* .testimonial-text {
  line-height: 1.6;
  font-size: 1.05rem;
} */


/* .testimonial-text {
color: #333;
} */

/* .testimonial-item {
  display: flex;
  justify-content: center;
  align-items: stretch;
}


.testimonial-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px; 
  max-height: none; 
  transition: all 0.3s ease-in-out;
}


.testimonial-text {
  color: #333;
  line-height: 1.6;
  word-wrap: break-word;
}


@media (max-width: 768px) {
  .testimonial-card {
    padding: 2rem;
    min-height: auto;
  }
} */
.carousel-image {
  max-width: 75%;
  height: auto;
}

.items {
  max-width: 1000px;
}

.video-testimonial {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.feature-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.feature-item {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

.feature-icon {
  width: 35px;
  height: 35px;
  min-width: 35px;
  background-color: #e9f4ff;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  color: #007bff;
  font-size: 1.2rem;
}

.bg-card-wrapper {
  position: relative;
  background:  rgba(255,255,255,0.9);;
  border-radius: 20px;
  padding: 50px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
 
  /* border-left: 15px solid #17a2b8; */
}

/* optional: slight offset shadow layer behind the card */
  .bg-card-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: #17a2b8; /* semi-transparent green */
    border-radius: 20px;
    z-index: -1;
  }


/* Title (Why 123 Autism?) */
.bg-card-wrapper h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
}

/* Paragraph text */
.bg-card-wrapper p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  text-align: justify;
}

/* List items */
.feature-card li {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
}

/* Section title text */
.section-title span {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.feature-icon i {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #17a2b8;
}

.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;
  }
}

.learn-more-btn {
  border-radius: 10px;
}