/* SELECTION */
.custom-selection-section {
    padding: 40px 0px;
    background-color: #F5F4F4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 20px;
    width: 100%;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

.custom-selection-section h2 {
    font-size: 27px;
    font-weight: 600;
    color: #000;
    font-family: "Roboto", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}



.custom-selection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 20px;
    justify-content: center;
    background-color: transparent;
    max-width: 1200px;
    width: 90%;
}

.custom-selection-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;

    max-width: 220px;
    width: 100%;
    height: 220px;
    border: 3px solid transparent; /* Start with a transparent border */
    transition: border-color 0.3s ease; /* Smooth transition on border color */
}

.custom-selection-item:hover {
    border-color: #D62598; /* Change only the color, not the width */
}

.custom-selection-item a{
    width: 100%;
    height: 100%;
    position: relative;
}

.custom-selection-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-selection-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-selection-overlay p,
.custom-homepage-overlay p{
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    font-family: "Roboto Bold", Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    text-align: center;
    line-height: 1.3;
}

.custom-selection-overlay h3{
    font-size: 18px;
    color: #fff;
    font-family: "Roboto Bold", sans-serif;
    text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    text-align: center;
    line-height: 1.3;

    text-transform: uppercase;
}

.custom-homepage-overlay p{
    max-width: 70%;
    text-align: center;
    line-height: 1.3;
}


    /* HOMEPAGE */
.custom-homepage-section{
    width: 100%;
    padding: 30px 0px;
}

.custom-homepage-content {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    grid-gap: 20px;
    justify-content: center;
    background-color: transparent;

    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.custom-homepage-content.no-campaigns {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    justify-content: center;
    background-color: transparent;

    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.custom-homepage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    justify-content: center;
    background-color: transparent;
    width: 100%;
    height: fit-content;
}


.custom-homepage-item {
    position: relative; /* Make it a containing block for the pseudo-element */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;

    height: 224px;
    width: 224px;
    overflow: hidden;
}

.no-campaigns .custom-homepage-item {
    height: 100%;
    width: 100%;
}

.custom-homepage-item::before {
    content: "";
    position: absolute;
    top: 0px; /* Inset the border inside */
    left: 0px;
    right: 0px;
    bottom: 0px;
    border: 3px solid transparent; /* Default transparent border */
    transition: border-color 0.3s ease; /* Smooth transition on hover */
    pointer-events: none; /* Avoid blocking interactions */
    z-index: 10;
}

.custom-homepage-item:hover::before {
    border-color: #D62598; /* Change the border color on hover */
}


.custom-homepage-item:first-child,
.custom-homepage-item:first-child::before{
    border-top-left-radius: 50px;
}

.custom-homepage-item:last-child,
.custom-homepage-item:last-child::before{
    border-bottom-right-radius: 50px;
}

.custom-homepage-item a{
    width: 100%;
    height: 100%;
    position: relative;
}

.custom-homepage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-homepage-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-homepage-overlay h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    font-family: "Segoe UI Bold", Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* SLIDER */
.custom-campaigns-section {
    position: relative; /* Enable positioning for the pseudo-element */
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0px 0px 50px 0px; /* Maintain the border radius */
    height: 468px;
    width: 468px;
    background-color: white; /* Optional: Set a background color */
}

.custom-campaigns-section::before {
    content: "";
    position: absolute;
    top: 0px; /* Offset for the inner border */
    left: 0px;
    right: 0px;
    bottom: 0px;
    border: 3px solid #D62598; /* Define the inner border */
    border-radius: 0px 0px 50px 0px; /* Adjust for the inner border thickness */
    pointer-events: none; /* Ensure the pseudo-element does not block interactions */
    z-index: 10;
}


.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    position: relative;
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item a{
    height: 100%;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
}

.slider-overlay h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.slider-overlay p {
    font-size: 14px;
    margin: 5px 0 0;
}

.slider-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-navigation .dot {
    width: 11px;
    height: 11px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid #D62598;
}

.slider-navigation .dot.active {
    background-color: #D62598;
}

@media screen and (max-width: 991px){
    /* TOP HOMEPAGE GRID + SLIDER */

    .custom-homepage-section,
    .product-families-grid{
        padding:20px 15px;

        width: inherit;
    }

    .custom-homepage-content {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .custom-homepage-overlay p{
        max-width: inherit;
        font-size: 18px;
    }

    .custom-homepage-grid{
        grid-area: 2/1;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .custom-homepage-item{
        height: auto;
        width: auto;
    }


    .custom-homepage-item:first-child,
    .custom-homepage-item:last-child{
        border-radius: 0px;
        height: 100%;
        width: 100%;
    }

    .custom-campaigns-section {
        grid-area: 1/1;
        height: 100%;
        width: 100%;
        border: none;
    }

    .custom-campaigns-section::before {
        content: "";
        position: absolute;
        top: 0px; /* Thickness of the inner border */
        left: 0px;
        right: 0px;
        bottom: 0px;
        border: 3px solid #D62598; /* Color and thickness of the inner border */
        border-radius: 0px 0px 50px 0px; /* Adjust to account for the inner border */
        pointer-events: none; /* Ensure the pseudo-element doesn't interfere with interactions */
        z-index: 10;
    }

    .custom-selection-section {
        padding: 20px 0px;
        margin-top: 0px;
    }


    .custom-selection-section h2 {
        font-size: 25px;
        line-height: 1.3;
        text-align: center;
        max-width: 80%;
    }

    .custom-selection-overlay p,
    .custom-homepage-overlay p{
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        font-family: "Segoe UI SemiBold", Tahoma, Geneva, Verdana, sans-serif;
        text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
        text-align: center;
        max-width: 80%;
        line-height: 22px;
    }

    .custom-selection-overlay h3{
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        font-family: "Roboto Bold", Tahoma, Geneva, Verdana, sans-serif;
        text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
        text-align: center;
        max-width: 80%;
        line-height: 22px;
    }

    .custom-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid-gap: 15px;
        width: auto;
        padding: 0 15px;
    }

    .custom-selection-item{
        height: inherit;
    }

    .slider {
        height: 100%;
    }

    .slider-navigation {
        bottom: 20px;
    }

    .slider-navigation .dot {
        width: 8px;
        height: 8px;
    }

}

