/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Gallery Container */
.partner-gallery {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    font-family: Arial, sans-serif;
}

/* Gallery Header */
.gallery-header {
    text-align: center;
    margin-bottom: 30px;
}
.gallery-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}
.gallery-description {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Gallery Grid - Mobile First Approach */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default to 3 columns */
    gap: 8px;
    width: 100%;
}

/* Gallery Item */
.gallery-item {
    text-align: center;
    transition: transform 0.2s ease;
    width: 100%; /* Ensure items take full width of their column */
}
.gallery-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.gallery-item img {
    /* Changed width to 80% */
    width: 60%;
    height: auto;
    display: block; /* Remove any default inline spacing */
    /* Add margin-left and margin-right auto to center the image if needed */
    margin: 0 auto;
}
.gallery-item h3 {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr); /* 6 columns on tablet */
        gap: 10px;
    }
}
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(12, 1fr); /* 12 columns on desktop */
        gap: 12px;
    }
}

/* Custom Button Styling */
.btn-custom {
    /* Set a custom background color and border color */
    background-color: #007bff; /* Primary Blue color */
    border-color: #007bff;
    color: #ffffff; /* White text */
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease; /* Smooth hover effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.btn-custom:hover,
.btn-custom:focus {
    /* Darken the color on hover/focus */
    background-color: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
    /* Remove the default Bootstrap outline on focus if preferred */
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.5); 
}

/* Custom Dropdown Menu Styling */
.dropdown-menu-custom {
    /* Set a contrasting background for the dropdown */
    background-color: #f8f9fa; /* Light background */
    border: 1px solid #ced4da; /* Light border */
    border-radius: 0.5rem; /* Slightly rounded corners */
    padding: 0.5rem 0;
    max-height: 400px; /* Limit height */
    overflow-y: auto; /* Enable scrolling for long lists */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow for depth */
}

.dropdown-menu-custom .dropdown-item {
    /* Style for individual items */
    padding: 0.5rem 1rem;
    color: #343a40; /* Dark text */
    font-size: 0.95rem;
    white-space: nowrap; /* Prevent items from wrapping */
}

.dropdown-menu-custom .dropdown-item:hover,
.dropdown-menu-custom .dropdown-item:focus {
    /* Highlight effect on hover/focus */
    background-color: #e9ecef; /* Lighter background on hover */
    color: #007bff; /* Change text color to primary blue */
}

/* Scrollbar styling for a cleaner look (optional) */
.dropdown-menu-custom::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu-custom::-webkit-scrollbar-thumb {
    background-color: #ced4da;
    border-radius: 10px;
}

.dropdown-menu-custom::-webkit-scrollbar-track {
    background: transparent;
}