.guardianage-top {
  display: flex;
}

.guardianage-top-left {
  width: 50%;
  padding: 100px;
}

.guardianage-top-right {
  padding: 100px;
  width: 50%;
}

/* Smaller Accordion Container */
.accordion-small {
  width: 60vw; /* 30% of the viewport width */
  max-width: 100%;
  /* margin: 20px auto; */
  border: none !important; /* Ensures no border on accordion container */
  background-color: transparent;
}

/* Reuse styles from .accordion-item */
.accordion-small .accordion-item,
.accordion-small .accordion-header,
.accordion-small .accordion-content {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent;
}

/* Ensure header style remains the same */
.accordion-small .accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Positions title on the left and icon on the right */
  padding: 15px;
  cursor: pointer;
  font-weight: bold;
  background-color: white;
  position: relative;
  box-shadow: none !important;
}

.accordion-small .accordion-header .title {
  text-align: left; /* Aligns title to the left */
  font-family: 'Raleway', sans-serif !important;
  font-weight: 500 !important;
  font-size: 20px;
}

.accordion-small .accordion-header .icon {
  font-size: 25px;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 500 !important;
  transition: transform 0.3s;
  text-align: right; /* Aligns icon to the right */
}

.accordion-small .accordion-header::after {
  content: "";
  display: block;
  width: 90%; /* 90% of the header width */
  height: 1px;
  background-color: #b4b4b4;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.accordion-small .accordion-header .number,
.accordion-small .accordion-header .title,
.accordion-small .accordion-header .icon {
  font-size: 20px; /* Adjusted size for smaller accordion */
  font-family: 'Raleway', sans-serif !important;
  font-weight: 500 !important;
}

/* Accordion Content Styling with Two Columns */
.accordion-small .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
  padding: 0 15px;
}

.accordion-small .accordion-item.active .accordion-content {
  max-height: 300px; /* Adjust as needed */
}

/* Two-column layout within the content */
.accordion-small .accordion-content .column-container {
  display: flex;
  gap: 10px;
  padding-top: 10px;
}

.accordion-small .accordion-content .column-container ul {
  flex: 1; /* Each column takes equal width */
  list-style-type: disc;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.services-image {
  display: block; /* Ensures the image behaves as a block element */
  margin: 0 auto; /* Centers the image horizontally */
  width: 500px;
  transition: transform 0.3s ease; /* Smooth transition for the shrinking effect */
}

.services-image:hover {
  transform: scale(0.95); /* Slightly shrink the image on hover */
}

.packages-container {
  position: relative;
  text-align: center;
  color: white;
  margin-bottom: 20px;
}

.image-wrapper {
  position: relative;
}

.pop-image {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 0 auto;
}

.image-title {
  position: absolute;
  text-align: left;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  color: white;
}

.bottom-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 80%;
}

.text-section {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 10px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  overflow: hidden;
  align-self: flex-end; /* Keep the text-section at the bottom */
  height: 150px; /* Set a fixed height for the text section */
}

.text-content {
  position: relative; /* Positioned relative to the text section */
  z-index: 1; /* Ensures this text is above the hidden text */
}

.text-section::after {
  content: attr(data-hover-text);
  position: absolute;
  top: 100%; /* Position it initially below the .text-section */
  left: 0;
  right: 0;
  opacity: 0;
  padding: 10px;
  font-size: 14px;
  color: white;
  transition: all 0.3s ease-in-out;

}

.text-section:hover::after {
  opacity: 1;
  top: 0; /* Slide up to the position above the .text-content */
}


.vertical-line {
  width: 1px;
  background-color: white;
  height: 150px;
  align-self: center;
}


/* Mobile styling */
@media (max-width: 768px) {
  /* Stacks the left and right sections vertically */
  .cover-image {
    height: 150px;
  }

  .guardianage-top {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .guardianage-top-left, .guardianage-top-right {
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  /* Adjusts the accordion width */
  .accordion-small {
    width: 100%;
  }

  /* Reduces font size for better readability on smaller screens */
  .accordion-small .accordion-header .title {
    font-size: 18px;
  }

  .accordion-small .accordion-header .icon {
    font-size: 22px;
  }

  .accordion-small .accordion-content .column-container {
    flex-direction: column; /* Stacks items vertically */
    gap: 5px;
  }

  .accordion-small .accordion-content .column-container ul {
    padding: 0;
    margin: 0;
  }

  /* Reduces font size for accordion content */
  .accordion-small .accordion-content .column-container ul li {
    font-size: 14px;
  }

  .services-image {
    display: none;
  }

  .bottom-text {
    bottom: 7%; /* Adjusts hidden text to appear higher on the image */
    padding: 10px;
    font-size: 8px !important;
    line-height: 1.2 !important;
  }

  .text-section {
    font-size: 8px !important; /* Smaller font size on mobile */
    line-height: 1.2 !important;
  }

  .text-section::after {
    font-size: 8px !important; /* Ensures hover text is also smaller */
    line-height: 1.2 !important;
  }

  .pop-image {
    width: 100%;
    height: 200px;
  }

  .packages-container {
    width: 98%;
  }

  .image-wrapper {
    width: 98%;
  }
}

/* Extra Small Screen Styling */
@media (max-width: 480px) {
  .accordion-small .accordion-header .title {
    font-size: 16px;
  }

  .accordion-small .accordion-header .icon {
    font-size: 20px;
  }

  /* Further reduces padding */
  .guardianage-top-left, .guardianage-top-right {
    padding: 15px;
  }

  .accordion-small .accordion-content .column-container ul li {
    font-size: 12px;
  }
}
