html {
    scroll-behavior: smooth;
}

.banner_item {
    height: 480px; /* Match the image height */
}

.banner_img {.banner_item {
    height: 480px; /* Match the image height */
}

.banner_img {
    height: 100%; /* Fill the parent */
    object-fit: cover;
    filter: brightness(0.6);
}

#carouselExampleCaptions {
    margin-top: 100px; /* Same as navbar height */
}

.footer-logo-container {
    height: 125px;
    width: 250px;
    max-width: 100%; /* Ensures it doesn't overflow its column */
}

.footer-logo-img {
    height: 65px;
    width: auto;
}

    height: 100%; /* Fill the parent */
    object-fit: cover;
    filter: brightness(0.6);
}

#carouselExampleCaptions {
    margin-top: 100px; /* Same as navbar height */
}

.icon-link {
  text-decoration: none;   /* removes underline/underscore */
  vertical-align: middle;  /* aligns icon with text */
  font-size: 1.2rem;       /* slightly bigger icons */
  display: inline-block; /* Required for transform to work */
#carouselExampleCaptions {
    margin-top: 100px; /* Same as navbar height */
}

  transition: transform 0.2s ease-in-out;
}

.icon-link:hover {
  transform: translateY(-2px);
}

.contact-link {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

.contact-link:hover {
    transform: translateY(-3px);
}

/* Custom Form Styling */
.form-control:focus {
    border-color: #0d6efd; /* Bootstrap primary color */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.hover-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.15) !important;
}

/* --- Modern FAQ Accordion Styling --- */
#faq .accordion-item {
    border: none; /* Remove default borders */
    margin-bottom: 1rem; /* Add space between items */
    border-radius: 0.5rem; /* Softer corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    overflow: hidden; /* Ensures border-radius is respected by children */
}

#faq .accordion-button {
    background-color: #ffffff; /* Clean white background */
    color: #212529; /* Standard text color */
    font-weight: 600; /* Make the question text slightly bolder */
    box-shadow: none !important; /* Remove the focus box-shadow */
}

/* Style for the button when the accordion item is open */
#faq .accordion-button:not(.collapsed) {
    background-color: #e7f1ff; /* A light blue to indicate active state */
    color: #0d6efd; /* Bootstrap primary color for text */
}

/* Customizing the plus/minus icon */
#faq .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2Z'/%3e%3c/svg%3e");
    transition: transform 0.2s ease-in-out;
}

#faq .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8Z'/%3e%3c/svg%3e");
    transform: rotate(0deg); /* No rotation needed for a minus sign */
}

/* Responsive carousel captions for mobile */
@media (max-width: 767.98px) {
  .carousel-caption {
    top: 25% !important;
    bottom: auto;
    transform: translateY(0);
    padding: 10px 5px;
    left: 0;
    right: 0;
    text-align: center;
    /* background: rgba(0,0,0,0.3); Optional: adds readability */
    border-radius: 8px;
  }
  .carousel-caption h5,
  .carousel-caption p {
    font-size: 1.1rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2;
    word-break: break-word;
  }
  .carousel-caption .btn {
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    margin-top: 0.5rem;
  }
  .carousel-caption .display-1 {
    font-size: 1.5rem !important;
  }
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none; /* Hidden by default */
  z-index: 99;
}

/* Footer Contact Link Hover Effect */
.footer-contact-link {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.footer-contact-link:hover {
  transform: translateY(-3px);
}
