/* Basic Reset */
.custom-brand-logo-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container for the brand logo section */
.custom-brand-logo-section {
    position: relative; 
    background-image: url('../img/doted-bg.png'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    padding: 60px 0;
    text-align: center;
    overflow: hidden; 
    width: 100%; /* Ensure it takes full width */
}

/* Overlay using ::before */
.custom-brand-logo-section::before {
    content: ""; /* Required for pseudo-elements */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 64, 83, 0.7); /* Black overlay with 50% opacity */
    z-index: 1; /* Place it beneath the content */
}

/* Container within the section */
.custom-container {
    max-width: 100%; /* Ensure it takes full width */
    margin: 0 auto;
    position: relative; 
    z-index: 2; 
}

/* Section Heading */
.custom-section-heading {
    margin-bottom: 40px;
}

.custom-title {
    font-size: 32px;
    color: #fff; /* Make text white for contrast */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.2;
}

/* Subtitle Styling */
.custom-subtitle {
    font-size: 18px;
    color: var(--color-primary); /* Use primary color for subtitle */
    margin-top: 10px;
    text-align: center;
    font-weight: 400; /* Regular font weight */
    letter-spacing: 0.5px; /* Slight letter spacing */
    max-width: 800px;
    margin: 10px auto; /* Centered with some spacing above and below */
    line-height: 1.4; /* Improved readability */
}

/* Logo Carousel */
.custom-logo-carousel {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center;
    overflow: hidden;
    flex-wrap: wrap; /* Allow wrapping to fill available space */
    width: 100%; /* Ensure it takes full width */
}

.custom-slick-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the items within the carousel */
    gap: 20px;
    width: 100%; /* Ensure it takes full width */
}

.custom-brand-item-logo {
    flex: 1 1 20%; /* Ensure each logo takes up equal space, adjust percentage as needed */
    padding: 10px;
    transition: transform 0.3s ease-in-out;
    max-width: none; /* Remove max-width constraint */
}

.custom-brand-item-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /*filter: grayscale(100%); 
    transition: filter 0.3s ease, transform 0.3s ease;
    animation: custom-zoom 5s infinite alternate; /* Slower zoom effect */
}

/*@keyframes custom-zoom {
    0% {
        transform: scale(1);
        filter: grayscale(100%); 
    }
    50% {
        transform: scale(1.1);
        filter: grayscale(0); 
    }
    100% {
        transform: scale(1);
        filter: grayscale(100%); 
    }
}*/

/* Apply updated animation to the image */
.custom-brand-item-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.3s ease;
    animation: custom-zoom 5s infinite alternate; /* Slower zoom effect */
}

/* Modal Styles */
.custom-modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

.custom-modal-content {
    border-radius: 10px; /* Rounded corners for modal */
    overflow: hidden; /* Ensures content doesn't overflow */
}

.custom-modal-header {
    background-color: #333; /* Dark background for header */
    color: #fff; /* White text for contrast */
}

.custom-modal-title {
    font-size: 20px;
}

.custom-modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: #f7f8fa; /* Same background color as the section */
}

.custom-modal-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.custom-thumbnail-image {
    display: none;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .custom-title {
        font-size: 28px;
    }

    .custom-subtitle {
        font-size: 16px;
    }

    .custom-brand-item-logo {
        flex: 1 1 50%; /* Ensure two logos per row on small screens */
        max-width: 50%; /* Ensure it takes 50% of the container width */
    }

    .custom-thumbnail-image.d-block {
        display: block;
    }

    .custom-thumbnail-image.d-none {
        display: none;
    }
    .custom-brand-item-logo {
        flex: 1 1 100%; /* Ensure one logo per row on very small screens */
        max-width: 100%; /* Ensure it takes 100% of the container width */
    }
}

@media (max-width: 480px) {
    .custom-title {
        font-size: 24px;
    }

    .custom-subtitle {
        font-size: 14px;
    }

    .custom-brand-item-logo {
        flex: 1 1 100%; /* Ensure one logo per row on very small screens */
        max-width: 100%; /* Ensure it takes 100% of the container width */
    }
}
