/* General Styling */
.image_container {
  position: relative !important;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  /* Ensures the image covers the container without distortion */
}

.text-overlay {
  position: absolute;
  top: 40% !important;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  background: #94AA52;
  /* Adds a semi-transparent background */
  padding: 10px 20px;
  border-radius: 5px;
}

.modern-toggler {
  position: relative;
  width: 30px;
  height: 30px;
  border: none;
  background-color: #033537;
  /* Main background color */
  border-radius: 10px;
  /* Rounded edges */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Soft shadow */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-toggler:hover {
  transform: scale(1.1);
  /* Slightly enlarge on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  /* Enhanced shadow */
}

.toggler-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Space between lines */
}

.toggler-icon span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: white;
  /* Line color */
  border-radius: 2px;
  transition: all 0.3s ease;
}

.modern-toggler[aria-expanded="true"] .toggler-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  /* Top bar turns into part of "X" */
}

.modern-toggler[aria-expanded="true"] .toggler-icon span:nth-child(2) {
  opacity: 0;
  /* Hide middle bar */
}

.modern-toggler[aria-expanded="true"] .toggler-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  /* Bottom bar turns into part of "X" */
}


/* Responsive Styles */
@media (max-width: 768px) {
  .text-overlay {
    font-size: 2rem;
    padding: 8px 16px;
  }
}

@media (max-width: 576px) {
  .text-overlay {
    font-size: 1.5rem;
    padding: 6px 12px;
    display: none;
  }
}


@media(min-width:600px) {

  .images {
    display: block;
    height: 450px !important;
    width: 100%;
  }




  .text-overlay {
    position: absolute;
    top: 75%;
    /* Vertically centers the text */
    left: 50%;
    /* Horizontally centers the text */
    transform: translate(-50%, -50%);
    /* Ensures the text is perfectly centered */
    color: white;
    /* Sets text color */
    font-size: 30px;
    /* Adjust font size */
    font-weight: bold;
    /* Optional: bold the text */
    text-align: center;
    /* Center the text horizontally */
    background-color: #94AA52;
    /* Adds a transparent background for readability */
    padding: 5px 35px 5px 35px;
    /* Adds some padding around the text */
    border-top-left-radius: 20px;
    /* Adds rounded corner to the top-left */
    border-bottom-right-radius: 20px;
    /* Adds rounded corner to the bottom-right */
  }


  .img-2 {
    height: auto;
    display: block;
    margin: 0 auto;
    height: 526px;
    width: 540px;

    position: absolute;
  }

  .accordion-header {
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    height: 46px;
    width: 499px;
    padding: 15px 15px 15px 15px;
    color: black;
  }

  .accordion-item {
    background-color: transparent !important;
  }

  .accordion-body {
    font-size: 16px;
    line-height: 24px;
    height: 123px;
    width: 499px;
    padding: 15px 15px 15px 15px;
    box-sizing: border-box;
    word-wrap: break-word;
    margin-top: 2rem !important;

  }

  .card-body {
    height: 340px;
    width: 287px;
    font-size: 16px;
    line-height: 24px;
    background-position: 50px 50px;
    background-repeat: no-repeat;
    color: #3d3d3d;
    padding: 27px 0 0 0;
    text-decoration: none solid rgb(61, 61, 61);
    position: relative;
    text-align: center;

  }

  .card-title {
    font-family: Merriweather, serif !important;
    font-size: 22px;
    font-weight: 600;
    line-height: 27px;
    text-align: center;
    color: #ffffff;
    height: 54px;
    width: 240px;
    margin: 4px 0 0;
  }

  .card-text {
    font-family: Merriweather, serif !important;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    height: 48px;
    width: 240px;
    display: block;
    color: #ffffff;
  }

  .btn-warning {
    font-family: Josefin Sans, serif;
    font-size: 12px !important;
    /* Increased font size for readability */
    font-weight: bold !important;
    line-height: 1;
    /* Ensures the text stays in one line */
    text-align: center;
    width: auto;
    /* Adjust width to fit content */
    padding: 8px 30px;
    /* Adjusted padding for better balance */
    background-color: #f3c242;
    color: #000000;
    position: relative;
    border-radius: 30px !important;
    /* Added border radius for rounded corners */
    display: inline-block;
    /* Makes the button width adjust to its content */
    white-space: nowrap;
    /* Ensures the text stays on one line */
  }

  .btn-warning:hover {
    background-color: #033537 !important;
    border: #033537 !important;
    color: white !important;
  }

  @media (max-width: 768px) {
    .col-lg-6 {
      margin: 0 auto;
      /* Center the FAQ section on smaller screens */
      padding: 0 15px;
      /* Add some padding for better readability */
    }

    h2.text-center {
      font-size: 24px;
      /* Adjust font size for the heading */
      margin-left: -10px !important;
      /* Remove left margin for center alignment */
    }

    .accordion {
      margin-left: -7rem;
    }

    .accordion-item {
      margin-left: 0;
      /* Remove extra left margin for smaller screens */
      margin-top: 1rem;
      /* Add spacing between items */
    }

    .accordion-button {
      font-size: 1rem;
      /* Adjust font size for the button */
      padding: 10px;
      /* Add padding for touch accessibility */
    }

    .accordion-body {
      font-size: 0.9rem;
      /* Adjust font size for better readability */
    }

    .accordion-button {
      background-color: transparent;
      /* Ensure transparency on mobile */
    }

    .accordion-item {
      background-color: transparent;
      /* Remove background for accordion item on mobile */
    }
  }

  /* Default for desktop */
  .background-image {
    background: url(https://images.unsplash.com/photo-1566041510394-cf7c8fe21800?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTJ8fHdoaXRlJTIwZG90dGVkfGVufDB8fDB8fHww);
    height: 800px;
  }

  /* Mobile view - when screen width is less than 768px */
  @media (max-width: 768px) {
    .background-image {
      height: 1050px;
      /* Increase height for mobile view */
    }
  }

  @media (max-width: 576px) {
    .quicky {
      margin-left: 1rem !important;
    }

    .quicks {
      margin-left: -4rem !important;
    }
  }
}