/* Main page header styling */
.services-page-header-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: -59.1px;
}


/* Overlay */
.services-page-header-image-overlay {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 13, 30, 0.6);
    z-index: 1;
}

@media (min-width: 768px) {
    .services-page-header-image-overlay {
        top: 59.1px;
    }
}

/* Content container */
.services-page-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    flex: 1; /* Fills remaining space above the banner */
}

/* Centered heading and HR container */
.services-page-header-heading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px; /* Adjust as needed */
}

@media (max-width: 767px) {
    .services-page-header-heading {
        font-size: 1.9rem !important;
    }
}

@media (max-width: 575px) {
    .services-page-header-heading {
        font-size: 1.6rem !important;
    }
}

/* Full-width gold banner */
.services-page-header-banner {
    position: absolute;
    bottom: 0;
    height: auto;
    width: 100%;
    background-color: rgba(137, 115, 95, 0.9); /* Gold with transparency */
    text-align: center;
    padding: 15px 0;
    border-bottom: 1.5px solid #E2E2E2;
    z-index: 2;
}

/* Banner text */
.banner-text {
    color: white;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 575px) {
    .banner-text {
        font-size: 0.9rem !important;
    }
}




@media (max-width: 575px) {
    .services-page-header-image-container {
        height: 475px;
    }
}

@media (min-width: 576px) {
    .services-page-header-image-container {
        height: 550px;
    }
}

@media (min-width: 768px) {
    .services-page-header-image-container {
        height: 650px;
    }
}

@media (min-width: 992px) {
    .services-page-header-image-container {
        height: 700px;
    }
}

@media (min-width: 768px) {
    .floatRightClear {
        float: right;
        clear: right;
    }
}

.services-description-image-container {
    width: 275px;
    height: 350px;
    background-size: cover; /* Ensures the image covers the entire div */
    background-position: center center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
}

@media (max-width: 767px) {
    .services-description-image-container {
        width: 100% !important;
        min-height: 600px;
    }
}

@media (max-width: 500px) {
    .services-description-image-container {
        width: 100% !important;
        min-height: 500px;
    }
}

@media (max-width: 400px) {
    .services-description-image-container {
        width: 100% !important;
        min-height: 400px;
    }
}

.services-supporting-content-background {
    position: relative;
}

.services-supporting-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(14, 13, 30, 0.6);
    z-index: 1; /* Ensure the overlay is below the text and boxes */
}

.services-supporting-content-container {
    position: relative; /* Keeps the content above the overlay */
    z-index: 2; /* Make sure the content stays above the overlay */
}

.service-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.services-review-container {
    background-color: var(--primary-gold);
    height: auto;
    border-bottom: 1.5px solid #E2E2E2;
}

.category-services-list {
    display: flex;
    flex-wrap: wrap;
}

.category-service-link {
    text-decoration: none;
    color: white;
    position: relative;
    display: block;
    height: 100%;
}

.category-service-link:hover .category-service-name {
    background: rgba(137, 115, 95, 1);
}

.category-service-link:hover .category-service-item {
    transform: scale(1.1); /* Zoom the image */
}

.category-service-item-wrapper {
    position: relative;
    width: 100%;
    height: 300px; /* Set a fixed height */
    overflow: hidden; /* Ensure the zoom effect doesn't overflow */
    border-radius: 6px;
}

.category-service-item {
    position: relative;
    height: 100%; /* Full height of the container */
    background-size: cover; /* Ensures the background image is sized to cover the div */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Ensure no repeat */
    transition: transform 0.3s ease; /* Transition for zoom effect */
    will-change: transform; /* Smooth zooming */
}

.category-service-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(14, 13, 30, 0.2);
    z-index: 1; /* Ensure overlay is below the gold box */
}

.category-service-item:hover {
    transform: scale(1.1); /* Zoom effect on hover */
}

.category-service-name {
    font-size: 1.1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(137, 115, 95, 0.8); /* Gold color */
    text-align: center;
    padding: 1rem;
    margin-bottom: 0;
    color: white;
    z-index: 2; /* Ensure the name is above the image */
    transition: background 0.3s ease;
}

.category-service-name:hover {
    cursor: pointer; /* Optional: Make the name feel clickable */
}

/* Input field styling */
#problemInput {
    height: 50px;
    border: 1.5px solid #fff;
    border-radius: 0.375rem;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background-color: var(--primary-blue);
    color: #fff;
    outline: none;
    width: 100%;  /* Allow the input to fill the container */
    box-sizing: border-box;
}

#problemDropdown .list-group-item {
    cursor: pointer;
}

#problemInput::placeholder {
    color: rgb(201, 201, 201);
}

/* Styling for the search icon button */
.problem-input-search-icon {
    background: transparent;
    border: none;
    position: absolute;
    right: 16px;  /* Adjust position */
    top: 50%;
    transform: translateY(-50%); /* Vertically center the icon */
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 1;
    color: #fff;
    font-size: 1.4rem;
    cursor: not-allowed;
    pointer-events: none;
}

.list-group {
    --bs-list-group-color: var(--primary-navy);
    --bs-list-group-bg: #f7f7f7;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(213, 213, 213, 0.749);
    transition: background-color 0.1s ease-in, color 0.1s ease-in;
}

.list-group-item:hover {
    background-color: var(--primary-gold);
    color: #fff;
}

.problem-search-image-container {
    width: 100%;
    height: 250px; /* Set desired height */
    background-size: cover; /* Ensures the image fully covers the div */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents repetition */
    position: relative; /* Needed for the clickable overlay */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Ensures the entire div is clickable */
}