.categoriesContainer {
    font-family: var(--inter-font);
}

.bannerContainer {
    position: relative;
}

.bannerContainer :where(.bannerBGround, .bannerBGround .BGroundImage) {
    background-color: #f05f17;
}

.bannerContainer .bannerBGround {
    background-image: url("/images/foodAndBeverages/backgroundImage.svg");
    background-repeat: repeat-x;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bannerContent {
    position: absolute;
    top: 0;
    left: 0;
    height: calc(100% - 100px);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bannerContent img {
    position: absolute;
    width: fit-content;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 110%;
    z-index: 0;
}

.midContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    justify-content: center;
}

.midContent h1 {
    color: var(--white-clr);
    text-align: center;
}

.midContent .buttons {
    display: flex;
    gap: 20px;
}

.midContent .buttons button {
    height: 50px;
    padding-inline: 20px;
    letter-spacing: 0.8px;
}

.midContent .buttons button:last-child {
    background-color: var(--white-clr);
    color: var(--black-clr);
}

.searchCGYContainer {
    position: relative;
    z-index: 100;
    margin-top: -100px;
    height: 100px;
    background: #fef8f2;
}

.searchCGY {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    padding-inline: 20px;
}

.searchCGYItem {
    position: relative;
    overflow: visible !important; /* This allows the dropdown to pop out */
    z-index: 1000;
    border: 1px solid rgba(227, 227, 227, 1);
}

.searchCGY .searchCGYItem {
    max-width: 500px;
    margin-inline: auto;
    height: 60px;
    border-radius: 30px;
    overflow: hidden;
    margin-block: auto;
    padding: 5px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(227, 227, 227, 1);
    background-color: white;
}

.searchCGY .searchCGYItem input {
    margin: 10px;
    width: 100%;
    height: 100%;
    font-size: 15px;
    padding-inline: 25px 0px;
    font-weight: 300;
    font-family: var(--poppins-font);
}

.searchCGY .searchCGYItem input::placeholder {
    color: var(--light-gray);
}

.searchCGY .searchCGYItem button {
    min-width: 50px;
    height: 100%;
    border-radius: 30px;
    background: #fa5c00;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.categoriesContent {
    padding: 0 5% 40px;
    background: #f4861f0f;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 40px;
}

.imageCGYContainer ul {
    display: flex;
    list-style-type: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.imageCGYContainer ul li {
    color: #323232;
    background: transparent;
    padding: 10px 25px 10px 10px;
    border-radius: 45px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    border: 1px solid #fcdbbc;
}

.imageCGYContainer ul li.active {
    color: var(--white-clr);
    background: #f05f17;
}

.imageCGYContainer ul li button {
    background-color: #f4861f1a;
    width: 60px;
    padding: 15px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.imageCGYContainer ul li.active button {
    background-color: #ffffff4d;
}

.imageCGYContainer ul li button img {
    width: 100%;
    aspect-ratio: 1/1;
}

.sameCGYContainer {
    background-color: var(--white-clr);
    border-radius: 50px;
    border: 1px solid #fcdbbc;
    padding: 30px;
    margin-top: 10px;
}

.sameCGYContainer h2 {
    font-family: var(--poppins-font);
}

.sameCGYContainer ul {
    display: flex;
    list-style-type: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.sameCGYContainer ul li {
    background: #fcdbbc99;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.sameCGYContainer.noRadius {
    border-radius: 0px;
    border-inline: 0px;
    border-top: 0px;
    background-color: transparent;
}

@media screen and (max-width: 1000px) {
    .searchCGY {
        position: absolute;
        top: -30px;
        left: 0;
        width: 100%;
        padding-inline: 20px;
    }

    .bannerContainer .bannerBGround:nth-child(2) {
        margin-top: -200px;
    }

    .searchCGYContainer {
        margin-top: -80px;
        height: 80px;
    }

    .categoriesContent {
        padding: 0 5% 10px;
    }

    .imageCGYContainer ul li button {
        width: 40px;
        padding: 10px;
    }
}

/* Container styling */
.searchDropdown {
    position: absolute;
    top: 70px; /* Increased slightly to create a gap from the input box */
    left: 0;
    width: 100%;
    background: #fdf7f2; /* Your requested background color */
    border-radius: 20px; /* Matching the rounded style of the input */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft shadow for floating effect */
    list-style: none;
    padding: 25px 0;
    margin: 0;
    display: none;
    z-index: 9999;
    max-height: 450px;
    overflow-y: auto;
    border: none; /* Removes any accidental edges */
    margin-top: 5px;
}

/* "CATEGORIES" Label */
.dropdown-header {
    font-size: 12px;
    font-weight: 800;
    color: #000;
    padding: 0 35px 15px 35px;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
    font-family: var(--inter-font);
}

/* Individual Result Items */
.searchDropdown li:not(.dropdown-header) {
    padding: 10px 35px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Hover state - slightly darker version of the BG */
.searchDropdown li:not(.dropdown-header):hover {
    background-color: #f5eee7;
}

/* Text styling */
.result-text {
    font-size: 16px;
    font-weight: 700; /* Bold as seen in image */
    color: #1a1a1a;
    font-family: var(--inter-font);
}

/* The external link icon */
.result-icon {
    color: #323232;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.searchCGYItem button img,
.searchCGYItem button svg {
    pointer-events: none;
}

/* Container for the 4-parent or 1-parent layout */
.category-group {
    margin-bottom: 40px;
    text-align: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
}

/* Parent Category Title */
.category-heading {
    color: #4a4a4a;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Wrapper for the pills */
.subcategory-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* The Subcategory Pill Styling */
.pill-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #fff2e5;
    color: #333333;
    border-radius: 25px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

/* 1. Set the base transition so the animation is smooth */
.category-heading {
    transition: all 0.2s ease-in-out;
}

/* 2. Trigger the hover effect when the parent link is hovered */
.category-group a:hover .category-heading {
    color: #fa5c00; /* Uses your Orangeggs brand orange */
    transform: translateX(4px); /* Adds a subtle slide to the right */
}

.pill-btn:hover {
    background-color: #f47b20;
    color: #ffffff;
    border-color: #f47b20;
}

/* Smooth fade for the AJAX load */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
