* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    overflow: auto;
   
  }
  /* Styling for the navigation menu */
  .hero-sub-nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow for premium look */
    padding: 10px 0;
  }
  
  .hero-sub-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Ensure all items stay centered */
  }
  
  .hero-sub-nav ul li {
    position: relative;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
  }
  
  .hero-sub-nav ul li:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Subtle hover background */
  }
  
  .hero-sub-nav ul li a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  .hero-sub-nav ul li a:hover {
    color: #007bff; /* Link color change on hover */
  }
  
  /* Updated dropdown style */
  .hero-sub-nav ul li:hover .dropdown {
    display: block;
  }
  
  .hero-sub-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%; /* Dropdown appears below the menu item */
    left: 0;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Premium shadow effect */
    border-radius: 8px;
    width: 200px; /* Fixed width to prevent shifting other elements */
    z-index: 100; /* Ensure dropdown stays on top */
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
  }
  
  .hero-sub-nav ul li:hover .dropdown {
    opacity: 1;
    transform: translateY(0); /* Smooth dropdown appearance */
    pointer-events: auto;
  }
  
  .hero-sub-nav .dropdown li {
    padding: 10px 0;
    display: block;
  }
  
  .hero-sub-nav .dropdown li a {
    color: #555;
    font-size: 14px;
    transition: color 0.3s ease;
  }
  
  .hero-sub-nav .dropdown li a:hover {
    color: #007bff; /* Hover effect for dropdown links */
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .hero-sub-nav ul {
      flex-direction: row; /* Keep items in a row on smaller screens */
      flex-wrap: wrap;
      justify-content: center;
      background-color: rgba(255, 255, 255, 1);
    }
  
    .hero-sub-nav ul li {
      padding: 10px;
      text-align: center;
    }
  
    .hero-sub-nav ul li a {
      font-size: 14px; /* Smaller font size for mobile */
    }
  
    /* Responsive dropdown */
    .hero-sub-nav .dropdown {
      position: absolute;
      left: 0%; 
      transform: translateX(-50%); /* Center the dropdown under the parent */
      width: 200px; /* Smaller width so it doesn't take the whole screen */
      max-width: 200px; /* Limit the dropdown width on small screens */
      background-color: #fff; /* Keep a clean background */
      padding: 10px 0;
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Subtle shadow */
      border-radius: 8px;
      z-index: 100; /* Ensure it stays on top */
      top: 130%; /* Ensure it stays below the parent menu */
    }
  
    .hero-sub-nav .dropdown li {
      padding: 10px 0;
      text-align: center;
      width: 100%;
    }
  
    .hero-sub-nav .dropdown li a {
      font-size: 12px; /* Ensure readability for dropdown items */
      color: #333;
    }
  
    /* Adjust font size for main nav */
    .hero-sub-nav ul li a {
      font-size: 14px; /* Reduce font size for navigation items on smaller screens */
    }
  }
  

@media (max-width: 768px) {
  .hero-content h1 {
      font-size: 24px;
  }

  .hero-content p {
      font-size: 16px;
  }

  .btn {
      font-size: 14px;
      padding: 10px 20px;
  }
}

/* Main styles remain unchanged for larger screens */

/* Responsive Design */


  
  
  .slider {
    position: relative;
    height: 100vh; /* Adjust this value as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #312e7f;
  }
  
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 1s ease;
  }
  
  .current {
    opacity: 1;
  }
  
  .hero-content {
    width: 50%;
    padding: 2rem;
    text-align: center;
    color: #ffffff;
    animation: slideIn 1.5s ease;
  }
  
  .hero-content h1 {
    font-weight: normal;
    padding: 0 1rem;
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-weight: normal;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: cursive;
  }

  .hero-content h2{
    font-weight: normal;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: cursive;
  }
  
  .hero-content .btn {
    padding: 0.8rem 1.5rem;
    background-color: transparent; /* Transparent background */
    color: white; /* White text */
    border: 2px solid white; /* White border */
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease; /* Smooth transition for color changes */
  }
  
  .hero-content .btn:hover {
    background-color: white; /* White background on hover */
    color: #312e7f; /* Change text color to match the dark background on hover */
    border: 2px solid white; /* Keep the white border */
  }
  
  
  .hero-image {
    width: 50%;
    height: 100%;
  }
  
  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .slide-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white; /* White background */
    color: #312e7f; /* Dark text color for contrast */
    border: none;
    padding: 1.5rem;
    width: 3rem;
    height: 3rem; /* Ensure equal width and height for the circle */
    border-radius: 50%; /* Full circle */
    cursor: pointer;
    font-size: 1.5rem; /* Adjust font size */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* Soft shadow for a premium look */
    z-index: 2;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
  }
  
  .slide-btn:hover {
    background-color: #f0f0f0; /* Slightly darker on hover */
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3); /* More prominent shadow on hover */
  }
  
  
  /* Responsive styling for mobile screens */
    /* Responsive styling for mobile screens */
@media screen and (max-width: 768px) {
  .slide {
    flex-direction: column;
    justify-content: flex-start; /* Align the items vertically */
  }

  .hero-image {
    width: 100%;
    height: 50vh; /* Image takes top half of the screen */
  }

  .hero-content {
    margin-top: 25%;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    background-color: #312e7f;
    color: white;
    order: 2; /* Push content below the image */
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Make the button responsive */
  .hero-content .btn {
    padding: 0.7rem 1.2rem; /* Reduce padding */
    font-size: 0.9rem; /* Adjust font size */
    width: 100%; /* Ensure the button fills the available width */
    max-width: 250px; /* Limit the button width */
    margin: 1rem auto; /* Center the button */
  }

  .slide-btn {
    width: 2.7rem; /* Smaller width */
    height: 2.7rem; /* Smaller height */
    font-size: 1.2rem; /* Smaller font size */
    padding: 0.8rem; /* Smaller padding */
  }


  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  



  /* why choose us */
  .choose-us {
    padding: 2rem 1rem; /* Padding for the section */
    background-color: white; /* White background for the section */
    text-align: center; /* Center align text */
  }
  
  .section-heading {
    font-size: 2.5rem; /* Increased font size for prominence */
    color: #312e7f; /* Dark color for the heading */
    margin-bottom: 1.5rem; /* Reduced spacing below heading */
    font-weight: bold; /* Bold weight for better visibility */
    letter-spacing: 0.5px; /* Slightly increased letter spacing */
  }
  
  .categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive grid layout */
    gap: 1.5rem; /* Gap between items */
    margin: 0 auto; /* Center the grid */
    max-width: 1200px; /* Max width to prevent stretching on large screens */
  }
  
  .category {
    padding: 1rem; /* Inner padding for each category */
  }
  
  .category-heading {
    font-size: 1rem; /* Font size for headings */
    color: #312e7f; /* Dark color for text */
    margin: 0.3rem 0; /* Reduced margin for headings */
    display: flex; /* Use flexbox to align icon and heading */
    align-items: center; /* Center align icon with text */
    font-weight: 600; /* Semi-bold for headings */
    transition: color 0.3s ease; /* Smooth transition for hover effect */
  }
  
  .category-heading i {
    margin-right: 0.5rem; /* Space between icon and heading */
    font-size: 1.5rem; /* Size for the Font Awesome icons */
    color: #9e3137; /* Color for icons */
  }
  
  .category-heading:hover {
    color: #9e3137; /* Change color on hover for interactivity */
  }
  
  .category-description {
    text-align: justify;
    font-size: 1rem; /* Size for description text */
    color: #555; /* Darker shade for improved readability */
    line-height: 1.6; /* Increased line height for better readability */
    margin: 1.2rem 0; /* Margin for the description */
  }
  
  
  .responsive-image-container {
    text-align: center; /* Center align the image container */
    margin: 2rem 0; /* Add margin above and below the image */
  }
  
  .responsive-image {
    max-width: 100%; /* Ensure the image does not exceed the container width */
    height: auto; /* Maintain the aspect ratio */
    border-radius: 10px; /* Optional: adds rounded corners to the image */
  }

  

  /* Section container */
.services-section {
  padding: 3rem 1rem; /* Padding for the section */
  background-color: white; /* Light background color for the section */
  text-align: center; /* Center align the text */
}

/* Heading style */
.services-section .section-heading {
  font-size: 2.5rem; /* Font size for the section heading */
  color: #312e7f; /* Dark heading color */
  margin-bottom: 2rem; /* Space below the heading */
  font-weight: bold; /* Bold font */
}

/* Grid layout for services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid with auto-fit */
  gap: 2rem; /* Space between the boxes */
  max-width: 1200px;
  margin: 0 auto; /* Center the grid */
}

/* Individual service box */
.service-box {
  background-color: #312e7f; /* Background color for the boxes */
  color: white; /* Text color */
  padding: 2rem; /* Padding inside the boxes */
  border-radius: 10px; /* Rounded corners */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation for hover */
}

/* Hover effect for service boxes */
.service-box:hover {
  transform: translateY(-10px); /* Lift up effect on hover */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Soft shadow on hover */
}

/* Icon style */
.service-box i {
  font-size: 3rem; /* Size of the icon */
  color: #9e3137; /* Icon color */
  margin-bottom: 1rem; /* Space below the icon */
}

/* Heading style inside the boxes */
.service-heading {
  font-size: 1.5rem; /* Font size for service headings */
  margin-bottom: 1rem; /* Space below the heading */
  font-weight: 600; /* Semi-bold font */
}

/* Description text style */
.service-description {
  font-size: 1rem; /* Size for description text */
  color: #eee; /* Lighter color for description text */
  line-height: 1.6; /* Increased line height for readability */
}

  
.services-section {
  padding: 50px 20px;
  background-color: #f3f7fa; /* Light blue background */
  text-align: center;
}

.services-header h2 {
  font-size: 20px;
  font-style: italic;
  color: #7d7d7d; /* Light grey color */
  margin-bottom: 5px;
}

.services-header h3 {
  font-size: 32px;
  font-weight: bold;
  color: #333; /* Dark grey color */
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
  margin: 0 auto;
  max-width: 1200px; /* Center the grid and limit its maximum width */
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-item img {
  width: 80px; /* Adjust the size of the icons */
  height: 80px; /* Ensuring the images are square */
  margin-bottom: 20px;
}

.service-item p {
  font-size: 16px;
  font-weight: bold;
  color: #0073b1; /* Blue color */
  margin: 0;
}

/* Responsive design adjustments */
@media screen and (max-width: 1024px) {
  .services-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .services-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .services-header h3 {
      font-size: 28px; /* Smaller font for smaller screens */
  }
}

@media screen and (max-width: 480px) {
  .services-grid {
      grid-template-columns: 1fr;
  }

  .services-header h2 {
      font-size: 18px; /* Adjust font size for small screens */
  }

  .services-header h3 {
      font-size: 24px; /* Adjust font size for small screens */
  }

  .service-item img {
      width: 60px; /* Adjust icon size for smaller screens */
      height: 60px; /* Adjust icon size for smaller screens */
  }

  .service-item p {
      font-size: 14px; /* Adjust font size for smaller screens */
  }
}


*, *:before, *:after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}


/*testimonial*/

.container2 {
  font-family: 'Poppins';
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  margin-top: -80px; /* Default margin for larger screens */
}

.testimonial-container {
  background-color: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 700px; /* Increased width for a larger box */
  display: flex;
  align-items: center;
  position: relative;
}

.dots {
  position: absolute;
  left: 20px; /* Adjusted for larger container */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dot {
  height: 12px;
  width: 12px;
  background-color: #3b4b63;
  border-radius: 50%;
}

.dot.active {
  background-color: #50c4f0;
}

.testimonial-content {
  text-align: center;
  margin: 0 auto;
  width: 80%; /* Ensuring the content is centered */
}

.icon {
  margin-bottom: 25px;
}

.icon svg {
  width: 100px; /* Adjust this width as necessary */
  height: auto;
}

.quote {
  font-style: italic;
  color: #3b4b63;
  margin-bottom: 30px;
  font-size: 1.2rem; /* Increased font size for better readability */
}

.author {
  font-weight: bold;
  color: #3b4b63;
  margin-top: 20px; /* Ensuring space between quote and author */
  text-align: center; /* Centering the author text */
}

.controls {
  position: absolute;
  right: 20px; /* Adjusted for larger container */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.controls button {
  background-color: #f0f0f0;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: rgb(74, 159, 239);
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s;
}

.controls button:hover {
  background-color: #3b4b63;
  transform: scale(1.1);
}

.quote-container {
  display: none;
}

.quote-container.active {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container2 {
      margin-top: 0; /* Remove top margin for smaller screens */
  }

  .testimonial-container {
      width: 90%; /* Adjust width for smaller screens */
      padding: 20px; /* Reduce padding */
      flex-direction: column; /* Stack items vertically */
      align-items: flex-start; /* Align items to the start */
  }


  .icon svg {
      width: 80px; /* Reduce icon size */
  }

  .quote {
      font-size: 1rem; /* Adjust font size for smaller screens */
  }
  
  .author {
      font-size: 1rem; /* Adjust font size for smaller screens */
  }
}
