/* header */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Two-Layer Navigation Container */
.custom-nav-wrapper {
  font-family: "Poppins", sans-serif;
  width: 100%;
  position: relative;
}

/* Top Bar Layer */
.custom-top-bar {
  background-color: #2c4db3ff; /* Royal Blue */
  color: #ffffff;
  padding: 8px 0;
  font-size: 14px;
}

.custom-top-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-contact-email {
  display: flex;
  align-items: center;
}

.custom-contact-email i {
  margin-right: 8px;
  color: #ffffff;
}

.custom-social-icons {
  display: flex;
  gap: 15px;
}

.custom-social-icons a {
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.custom-social-icons a:hover {
  color: #f0f0f0;
  transform: translateY(-2px);
}

/* Main Navigation Layer */
.custom-main-nav {
  background: linear-gradient(
    to right,
    #ffffff 24%,
    #ffffff 24%
  ); /* Half white, half royal blue */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
  transition: all 0.3s ease;
}

.custom-main-nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.custom-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 65px;
}

.custom-logo {
  height: 65px;
  position: relative;
  top: 4px;
}

.custom-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.custom-menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: black; /* Changed to white for mobile view */
  border-radius: 3px;
  transition: all 0.3s ease;
}

.custom-nav-menu {
  display: flex;
  list-style: none;
}

.custom-nav-item {
  position: relative;
  margin-left: 20px;
}

.custom-nav-link {
  text-decoration: none;
  color: black; /* Default color for left side (white bg) */
  font-weight: 500;
  font-size: 14px;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}


/* Style for links on the right side (blue bg) */
.custom-nav-item:nth-child(n + 4) .custom-nav-link {
  color: black;
}

.custom-nav-link i {
  margin-right: 8px;
  font-size: 14px;
}

.custom-nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.custom-nav-item:nth-child(-n + 3) .custom-nav-link::after {
  background-color: black; /* Royal blue for left side */
}

.custom-nav-item:nth-child(n + 4) .custom-nav-link::after {
  background-color: black; /* White for right side */
}

.custom-nav-link:hover::after {
  width: 100%;
}

.custom-nav-item:nth-child(-n + 3) .custom-nav-link:hover {
  color: black; /* Changed to black on hover */
}

.custom-nav-item:nth-child(n + 4) .custom-nav-link:hover {
  color: black; /* Changed to black on hover */
}

/* Dropdown Menu */
.custom-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 210px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.custom-nav-item:hover .custom-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
  font-size: 11.5px;
  font-weight: 500;
}

.custom-dropdown-item i {
  margin-right: 10px;
  color: #4169e1;
  font-size: 14px;
}

.custom-dropdown-item:last-child {
  border-bottom: none;
}

.custom-dropdown-item:hover {
  background-color: #f9f9f9;
  color: #4169e1;
  padding-left: 25px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .custom-top-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .custom-logo {
    height: 60px;
  }

  .custom-main-nav {
    background-color: white !important;
  }

  .custom-menu-toggle {
    display: flex;
  }

  .custom-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #4169e1; /* White background for mobile menu */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .custom-nav-menu.active {
    display: flex;
  }

  .custom-nav-item {
    margin: 0;
    width: 100%;
    margin-bottom: 10px;
  }

  .custom-nav-link {
    width: 100%;
    padding: 10px 0;
    color: black; /* Royal blue for mobile navigation links */
  }

  .custom-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    width: 100%;
    margin-top: 10px;
    display: none;
    background-color: #ffffff; /* White background for dropdown */
  }

  .custom-dropdown.active {
    display: block;
  }

  .custom-nav-item.active .custom-dropdown {
    display: block;
  }

  /* Style dropdown items for mobile */
  .custom-dropdown-item {
    color: #4169e1; /* Royal blue for dropdown links */
  }

  .custom-dropdown-item i {
    color: #4169e1; /* Royal blue for dropdown icons */
  }

  .custom-dropdown-item:hover {
    color: #4169e1; /* Keep royal blue on hover */
  }
}

/* slider */
.simple-slider-container {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.simple-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.simple-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.simple-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.5s ease;
}

.simple-slide:hover .simple-slide-image {
  transform: scale(1.05);
}

.simple-slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
}

.simple-slide-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  margin: 0 0 15px 0;
  font-weight: 700;
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.8s ease;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 5px;
}

.simple-slide-description {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
    opacity 0.8s ease 0.3s;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 5px;
}

/* Animate text for active slide */
.swiper-slide-active .simple-slide-title {
  transform: translateY(0);
  opacity: 1;
}

.swiper-slide-active .simple-slide-description {
  transform: translateY(0);
  opacity: 1;
}

/* Controls */
.simple-slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 20;
  transform: translateY(-50%);
  pointer-events: none;
}

.simple-button-prev,
.simple-button-next {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 20px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  pointer-events: all;
}

.simple-button-prev:hover,
.simple-button-next:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.simple-button-prev svg,
.simple-button-next svg {
  color: white;
  width: 24px;
  height: 24px;
}

/* Pagination */
.simple-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  display: flex;
  gap: 10px;
  z-index: 20;
}

.simple-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.simple-pagination .swiper-pagination-bullet-active {
  background-color: white;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .simple-slider-container {
    height: 100px !important;
  }
}

/* about Section */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: black;
}

.about-page-wrapper {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.custom-about-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: 500px;
  flex-direction: row;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

.about-image-column {
  width: 50%;
  overflow: visible;
  padding-left: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.about-image-column img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-height: 500px;
}

.about-content-column {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content-text {
  font-size: 0.9rem;
  margin-bottom: 30px;
  color: black;
  text-align: justify;
}

.about-more-button {
  position: relative;
  display: inline-block;
  padding: 5px 10px;
  color: #2c4db3ff;
  border: 2px solid #2c4db3ff;
  text-decoration: none;
  border-bottom-right-radius: 15px;
  border-top-left-radius: 15px;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
  width: fit-content;
}

.about-more-button:hover {
  color: #fff;
}

.about-more-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #2c4db3ff;
  transition: left 0.5s ease;
  z-index: -1;
}

.about-more-button:hover::before {
  left: 0;
}

/* Desktop styles */
@media (min-width: 1025px) {
  .custom-about-container {
    flex-direction: row;
  }

  .about-image-column {
    width: 50%;
    padding-left: 40px;
    padding-right: 0;
  }

  .about-content-column {
    width: 50%;
    padding: 40px;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .about-page-wrapper {
    padding: 15px;
  }

  .custom-about-container {
    flex-direction: row;
    max-width: 100%;
  }

  .about-image-column {
    width: 45%;
    padding-left: 20px;
    padding-right: 10px;
  }

  .about-content-column {
    width: 55%;
    padding: 30px 20px 30px 10px;
  }

  .about-content-text {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .about-page-wrapper {
    padding: 10px;
  }

  .custom-about-container {
    flex-direction: column;
    max-width: 100%;
    min-height: auto;
  }

  .about-image-column {
    width: 100%;
    min-height: 250px;
    overflow: visible;
    padding: 20px;
    order: 1;
  }

  .about-image-column img {
    max-height: 300px;
  }

  .about-content-column {
    width: 100%;
    padding: 30px 20px;
    order: 2;
  }

  .about-content-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .about-more-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .about-page-wrapper {
    padding: 5px;
  }

  .about-image-column {
    min-height: 200px;
    padding: 15px;
  }

  .about-image-column img {
    max-height: 200px;
  }

  .about-content-column {
    padding: 20px 15px;
  }

  .about-content-text {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .about-more-button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* services */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

.services-section {
  padding: 0px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
}

.services-heading {
  text-align: center;
  margin-bottom: 50px;
}

.services-heading img {
  max-width: 180px;
  height: auto;
  border: 2px solid #004aad;
  padding: 10px;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  width: 250px;
  height: 250px;
  perspective: 1000px;
  cursor: pointer;
}

.service-front,
.service-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  transition: transform 0.6s;
  display: flex;
  border-top-right-radius: 35px;
  border-bottom-left-radius: 35px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.service-front {
  background-color: #004aad;
  z-index: 2;
}

.service-back {
  background-color: #ffffff;
  transform: rotateY(180deg);
  border: 1px solid #e9ecef;
  overflow: hidden;
  position: relative;
}

.service-back-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-back::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #ff8c00;
  transition: height 0.6s ease;
  z-index: 1;
}

.service-card:hover .service-front {
  transform: rotateY(-180deg);
}

.service-card:hover .service-back {
  transform: rotateY(0deg);
}

.service-card:hover .service-back::before {
  height: 100%;
}

.service-card:hover .service-back p {
  color: white;
  text-align: left;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.service-icon i {
  color: #004aad;
  font-size: 24px;
}

.service-front h3 {
  font-size: 13px;
  color: white;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.service-back p {
  color: #555;
  line-height: 1.6;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
  transition: color 0.6s ease;
}

/* gallery */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

.gallery-section {
  padding: 0px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  padding: 5px;
}

.gallery-heading {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-heading img {
  max-width: 180px;
  height: auto;
  border: 2px solid #004aad;
  padding: 10px;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.gallery-item {
  width: 250px;
  height: 250px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 2px solid #004aad;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 80%;
  max-width: 900px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-slider {
  position: relative;
  width: 100%;
}

.modal-slider img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #004aad;
  font-size: 24px;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.prev-btn:hover,
.next-btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #004aad;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .gallery-item {
    width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .gallery-item {
    width: 100%;
  }
}

/* FAQS */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

.faq-section {
  padding: 0px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
}

.faq-heading {
  text-align: center;
  margin-bottom: 50px;
}

.faq-heading img {
  max-width: 180px;
  height: auto;
  border: 2px solid #004aad;
  padding: 10px;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.faq-container {
  display: flex;
  gap: 40px;
  align-items: stretch; /* Changed from flex-start to stretch to make heights equal */
}

.faq-image {
  flex: 0 0 40%; /* Changed from 40% to 50% */
  overflow: hidden;
}

.faq-image img {
  width: auto;
  height: 370px; /* Changed from 500px to 100% to fill container */
  display: block;
  transition: transform 0.5s ease;
  object-fit: cover; /* Added to maintain aspect ratio */
}

.faq-content {
  flex: 0 0 50%; /* Changed from 60% to 50% */
}

.faq-card {
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-card:hover {
  box-shadow: 0 5px 15px rgba(0, 74, 173, 0.1);
}

.faq-question {
  padding: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
}

.faq-question h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: black;
  font-family: "Poppins", sans-serif;
}

.faq-icon {
  font-size: 24px;
  font-weight: bold;
  color: #004aad;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fff;
}

.faq-answer p {
  margin: 0;
  padding: 0 20px;
  color: black;
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

/* FAQ card hover effect */
.faq-card:hover .faq-answer {
  max-height: 300px;
  padding: 20px 0;
}

.faq-card:hover .faq-icon {
  transform: rotate(45deg);
}

.faq-card:hover .faq-question {
  background-color: #004aad;
}

.faq-card:hover .faq-question h3 {
  color: white;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .faq-container {
    flex-direction: column;
  }

  .faq-image,
  .faq-content {
    flex: 0 0 100%;
  }

  .faq-image {
    margin-bottom: 30px;
  }

  .faq-image img {
    height: 300px; /* Set a fixed height for mobile view */
  }
}

@media (max-width: 768px) {
  .faq-image img {
    position: relative;
    right: 100px;
  }
}

/* blogs */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

.blog-section {
  padding: 0px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
}

.blog-heading {
  text-align: center;
  margin-bottom: 50px;
}

.blog-heading img {
  max-width: 180px;
  height: auto;
  border: 2px solid #004aad;
  padding: 10px;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.blog-container {
  position: relative;
  overflow: hidden;
  padding: 0 60px; /* Space for navigation buttons */
}

.blog-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.blog-slide {
  min-width: calc(100% / 3); /* Show 3 cards at a time */
  padding: 0 15px;
}

.blog-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 74, 173, 0.2);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.blog-date {
  font-weight: 500;
}

.blog-category {
  color: #004aad;
  font-weight: 500;
}

.blog-content h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
  line-height: 1.4;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.blog-content p {
  margin: 0 0 20px 0;
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.blog-read-more {
  display: inline-block;
  color: #004aad;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  font-family: "Poppins", sans-serif;
}

.blog-read-more:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #004aad;
  transition: width 0.3s ease;
}

.blog-read-more:hover:after {
  width: 100%;
}

.blog-prev,
.blog-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: #004aad;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.blog-prev {
  left: 0;
}

.blog-next {
  right: 0;
}

.blog-prev:hover,
.blog-next:hover {
  background-color: #004aad;
  color: white;
}

.blog-dots {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.blog-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.blog-dot.active {
  background-color: #004aad;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .blog-slide {
    min-width: calc(100% / 2); /* Show 2 cards at a time on medium screens */
  }

  .blog-image {
    height: 180px;
  }

  .blog-content h3 {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .blog-slide {
    min-width: 100%; /* Show 1 card at a time on small screens */
  }

  .blog-container {
    padding: 0 40px;
  }

  .blog-prev,
  .blog-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .blog-content {
    padding: 15px;
  }

  .blog-image {
    height: 160px;
  }
}

/* review */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

.testimonial-section {
  padding: 0px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
}

.testimonial-heading {
  text-align: center;
  margin-bottom: 50px;
}

.testimonial-heading img {
  max-width: 180px;
  height: auto;
  border: 2px solid #004aad;
  padding: 10px;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.testimonial-container {
  padding: 0 15px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px; /* Increased vertical and horizontal gap between cards */
}

.testimonial-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px; /* Increased padding for more space inside cards */
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Added to contain the fill effect */
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 74, 173, 0.2);
}

.testimonial-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative; /* Added for proper layering */
  z-index: 2; /* Added to keep content above the fill */
}

.testimonial-text {
  margin-bottom: 30px; /* Increased margin for more vertical space */
  flex-grow: 1;
}

.testimonial-text p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
  transition: color 0.3s ease; /* Added transition for text color */
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 15px; /* Added padding for more separation */
  border-top: 1px solid #f0f0f0; /* Added a subtle separator line */
  transition: border-color 0.3s ease; /* Added transition for border color */
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  transition: border-color 0.3s ease; /* Added transition for border color */
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #333;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  transition: color 0.3s ease; /* Added transition for text color */
}

.author-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  transition: color 0.3s ease; /* Added transition for text color */
}

.testimonial-icon {
  position: absolute;
  bottom: 25px;
  right: 25px;
  font-size: 24px;
  color: #004aad;
  opacity: 0.3;
  transition: color 0.3s ease, opacity 0.3s ease; /* Added transition */
}

/* Fill effect */
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background-color: #004aad;
  z-index: 1;
  transition: width 0.5s ease;
}

.testimonial-card:hover::before {
  width: 100%;
}

/* Hover text color changes */
.testimonial-card:hover .testimonial-text p {
  color: #fff;
}

.testimonial-card:hover .author-info h4 {
  color: #fff;
}

.testimonial-card:hover .author-info p {
  color: #fff;
}

.testimonial-card:hover .testimonial-author {
  border-top-color: rgba(255, 255, 255, 0.3);
}

.testimonial-card:hover .author-image {
  border-color: #fff;
}

.testimonial-card:hover .testimonial-icon {
  color: #fff;
  opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; /* Slightly reduced gap for medium screens */
  }

  .testimonial-card {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 25px; /* Further reduced gap for small screens */
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-text {
    margin-bottom: 20px;
  }

  .testimonial-text p {
    font-size: 14px;
  }
}
