/* Apply Open Sans to the entire body */
body {
    font-family:"Plus Jakarta Sans", serif;
    font-weight: 400; /* Regular weight */
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Apply Open Sans to headings */
h1, h2, h3, h4, h5, h6 {
   
    font-weight: 600; /* Semi-bold weight */
    color: #222;
    margin-top: 0;
    margin-bottom: 1rem;
}
.brand-name{
  color: #d40d17;
}
.link-white{
  color: #fff;
}

/* Custom styles for the hero section */
.hero-section {
  background-image: url('../images/amer-about-us-hero.jpg'); /* Replace with your image URL */
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
}
.hero-section-contact {
  background-image: url('../images/Contact-us-hero.jpg'); /* Replace with your image URL */
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
}

.hero-section-services {
  background-image: url('../images/our-services-hero.jpg'); /* Replace with your image URL */
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
}
.hero-section h1 {
  font-size: 3.5rem;
  font-weight: bold;
}
.hero-section p {
  font-size: 1.5rem;
}

/* Carousel Container */
.carousel {
    max-height: 600px; /* Set maximum height */
    overflow: hidden; /* Ensure content doesn't overflow */
    position: relative; /* Ensure positioning works correctly */
  }
  
  /* Carousel Images */
  .carousel-item img {
    width: 100%; /* Ensure images take full width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the container without distorting the image */
  }
  
  /* Carousel Captions */
  .carousel-title{
    position: relative;
    font-size: 80px;
    color: var(--insur-black);
    font-weight: 400;
    line-height: 80px;
    letter-spacing: -0.04e
  }
 .carousel-caption {
    position: absolute;
    top: 50%; /* Vertically center */
    left: 15%; /* Left-align with some margin */
    transform: translateY(-50%); /* Adjust for vertical centering */
    text-align: left; /* Left-align text */
    font-size: 18px;
    color: #121213;
    font-weight: 400;
    letter-spacing: var(--insur-letter-spacing);
    line-height: 30px;
    padding-bottom: 41px;
    opacity: 0; /* Start with captions hidden */
    animation: slideIn 0.8s ease-out 0.5s forwards; /* Animation */
    width: 90%; /* Ensure captions don't overflow on small screens */
    max-width: 600px; /* Limit maximum width for larger screens */
    padding: 20px; /* Add padding for better spacing */
   
    border-radius: 8px; /* Optional: Add rounded corners */
  }
  @media (max-width: 767.98px) {
    .carousel-control-prev,
    .carousel-control-next {
      display: none;
    }
  }
  
  /* Keyframes for Slide-In Animation */
  @keyframes slideIn {
    0% {
      opacity: 0;
      transform: translate(-10%, -50%); /* Start slightly to the left */
    }
    100% {
      opacity: 1;
      transform: translate(0, -50%); /* Move to final position */
    }
  }
  
  /* Ensure captions are visible when active */
  .carousel-item.active .carousel-caption {
    opacity: 1;
  }
  
  
  /* Adjust carousel caption for mobile */
@media (max-width: 767.98px) {
  .carousel-caption {
    bottom: 20px; /* Adjust caption position */
    padding: 10px; /* Add padding */
  }
  .carousel-caption h5 {
    font-size: 1.2rem; /* Reduce heading size for mobile */
  }
  .carousel-title {
    font-size: 1.5rem; /* Reduce title size for mobile */
  }
  .carousel-caption p {
    font-size: 0.9rem; /* Reduce paragraph text size for mobile */
    margin-bottom: 0.5rem; /* Add spacing between paragraphs */
  }
  .carousel-caption .btn {
    font-size: 0.8rem; /* Reduce button text size for mobile */
    padding: 5px 10px; /* Adjust button padding */
  }
}
   /* Change the color of the previous and next buttons */
   .carousel-control-prev-icon,
   .carousel-control-next-icon {
     background-color: #056c3d; /* Change to your desired color */
     border-radius: 50%; /* Optional: Make the background circular */
     padding: 10px; /* Optional: Adjust padding for better visibility */
   }
 
   /* Optional: Add hover effects */
   .carousel-control-prev:hover .carousel-control-prev-icon,
   .carousel-control-next:hover .carousel-control-next-icon {
     background-color: #045530; /* Slightly darker shade for hover */
   }
  @media (max-width: 576px) {
    .carousel {
      max-height: 300px; /* Adjust height for mobile screens */
    }
  
    .carousel-caption {
      left: 5px; /* Reduce left margin for very small screens */
      width: 95%; /* Full width for very small screens */
      padding: 10px; /* Minimal padding */
    }
  
    .carousel-caption h5 {
      font-size: 1rem; /* Smaller heading size for very small screens */
    }
  
    .carousel-caption p {
      font-size: 0.8rem; /* Smaller paragraph size for very small screens */
    }
  }

/* Sticky Top Bar */
.sticky-top {
 
    font-weight: 500; /* Medium weight */
    background-color: #056c3d !important;
    z-index: 1020;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

/* Footer */
footer {
   
    font-weight: 400; /* Regular weight */
    background-color: #056c3d !important;
    color: #fff;
    padding: 40px 0;
}

footer a {
  
    font-weight: 400; /* Regular weight */
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #f8f9fa;
}

/* Back to Top Button */
#back-to-top {
  
    font-weight: 500; /* Medium weight */
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #056c3d !important;
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: #045530 !important;
}

/* Contact Form */
#contact form {
   
    font-weight: 400; /* Regular weight */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#contact .form-label {
   
    font-weight: 600; /* Semi-bold weight */
    color: #333;
}

#contact .form-control {
   
    font-weight: 400; /* Regular weight */
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
}

#contact .btn {
   
    font-weight: 500; /* Medium weight */
    margin-right: 10px;
    background-color: #056c3d;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#contact .btn:hover {
    background-color: #045530;
}
/* Contact Info Styling */
.contact-info {
  background-color: #f8f9fa; /* Light background */
  border: 1px solid #ddd; /* Add a border */
}

.contact-info h4 {
  color: #056c3d; /* Custom color for the heading */
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Map Container Styling */
.map-container {
  margin-top: 1rem; /* Add spacing between contact info and map */
  border: 1px solid #ddd; /* Add a border */
  border-radius: 8px; /* Rounded corners */
  overflow: hidden; /* Ensure the iframe fits inside the container */
}

.map-container iframe {
  display: block; /* Remove extra spacing below the iframe */
  width: 100%;
  height: 300px; /* Adjust height as needed */
}
/* Main Services Cards */
#main-services .card {
   
    font-weight: 400; /* Regular weight */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

#main-services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#main-services .card-title {
   
    font-weight: 600; /* Semi-bold weight */
    font-size: 1.25rem;
    color: #056c3d;
}

#main-services .card-text {
   
    font-weight: 400; /* Regular weight */
    color: #666;
}

/* List of Services Cards */
#list-of-services .card {
    
    font-weight: 400; /* Regular weight */
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

#list-of-services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#list-of-services .card-title {
    
    font-weight: 600; /* Semi-bold weight */
    font-size: 1.25rem;
    color: #056c3d;
}

#list-of-services .card-text {
   
    font-weight: 400; /* Regular weight */
    color: #666;
}

#list-of-services .btn {
   
    font-weight: 500; /* Medium weight */
    margin-right: 10px;
    
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
/* Ensure images are responsive and don't crop */
.card-img-container {
  overflow: hidden; /* Prevents the image from overflowing */
  height: 200px; /* Set a fixed height for the image container */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-top {
  width: 100%; /* Ensure the image takes the full width of the container */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Ensures the image covers the container without distortion */
}

/* Adjust image container height for mobile devices */
@media (max-width: 767.98px) {
  .card-img-container {
      height: 150px; /* Reduce height for smaller screens */
  }
}

/* Add hover effect to cards */
.card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

/* Center card text */
.card-body {
  text-align: center;
}
/* Adjust card height or spacing on mobile */
@media (max-width: 767.98px) {
  .card {
      margin-bottom: 1rem; /* Add more space between stacked cards */
  }
  .card-body {
      padding: 1rem; /* Adjust padding for better spacing */
  }
}
.gdpr-notification {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 15px;
  text-align: center;
  z-index: 9999;
}
.gdpr-notification .btn-close { /* Target the btn-close within .gdpr-notification */
  color: #fff; 
} 
.contact-buttons {
  display: flex; 
  justify-content: center; 
}

@media (max-width: 768px) { 
  .contact-buttons {
      flex-direction: column;
      align-items: center;
  }
}
.contact-buttons .btn {
  margin-bottom: 10px; 
  margin-top: 20px;
}