/* General Styles for the Clients Page */
.clients-section {
    padding: 60px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Light background for the section */
}

.clients-section .container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.section-title {
    font-size: 2.5em; /* Larger, more prominent title */
    color: #212529;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-description {
    font-size: 1.1em;
    color: #6c757d;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Header Specific Styles (moved from inline for better organization) */
.page-header-section {
    position: relative; /* For image overlay */
    overflow: hidden; /* Ensure background doesn't overflow */
}

.page-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    padding: 20px 0; /* Adjust internal padding if needed */
}

.page-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8em;
    font-weight: 600;
    margin: 0; /* Reset default margin */
    flex-grow: 1; /* Allow title to take available space */
    text-align: left; /* Align title to the left */
}

.breadcrumb-nav {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9em;
    margin: 0; /* Reset default margin */
    display: flex;
    align-items: center;
}

.breadcrumb {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 8px;
    color: inherit; /* Inherit color from parent */
}

.breadcrumb-item a {
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-item.active {
    font-weight: 400; /* Active item usually less bold */
}

/* Client Grid Layout */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between items */
    justify-content: center; /* Center items in the grid */
    margin-top: 40px;
}

.client-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    min-height: 150px; /* Consistent height for items */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* More pronounced shadow */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden; /* Ensure image doesn't overflow rounded corners */
}

.client-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Enhanced hover shadow */
    transform: translateY(-5px); /* Slight lift effect */
}

.client-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures entire logo is visible */
    border-radius: 8px;
    filter: grayscale(80%); /* Subtle grayscale on default */
    transition: filter 0.3s ease;
}

.client-item:hover img {
    filter: grayscale(0%); /* Full color on hover */
}

.client-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensures link is clickable over image */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    background-color: rgba(0, 123, 255, 0.1); /* Subtle blue overlay */
    transition: opacity 0.3s ease;
}

.client-item:hover .client-link {
    opacity: 1; /* Show overlay on hover */
}

.overlay-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #007bff;
    font-size: 1.4em;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    padding: 8px;
    display: flex; /* Use flex for centering icon */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2; /* Ensure icon is above the link overlay */
    opacity: 0; /* Hidden by default */
    transform: scale(0.8); /* Slightly smaller */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.client-item:hover .overlay-icon {
    opacity: 1; /* Show on hover */
    transform: scale(1); /* Return to normal size */
}

/* No Clients Found Message */
.no-clients-found {
    grid-column: 1 / -1; /* Span across all columns */
    text-align: center;
    padding: 50px;
    background-color: #f0f0f0;
    border-radius: 10px;
    color: #555;
    font-style: italic;
}

.no-clients-found p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.no-clients-found .placeholder-image {
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    opacity: 0.7;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2em;
    }
    .section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .client-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Slightly smaller items on medium screens */
        gap: 20px;
    }
    .client-item {
        min-height: 130px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .page-header-inner {
        flex-direction: column; /* Stack header elements */
        text-align: center;
        padding: 15px 0;
    }
    .page-title {
        font-size: 1.5em;
        margin-bottom: 10px;
        text-align: center;
    }
    .breadcrumb-nav {
        justify-content: center;
    }
    .clients-section {
        padding: 40px 15px;
    }
    .section-title {
        font-size: 1.8em;
    }
    .section-description {
        font-size: 0.95em;
    }
    .client-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Smaller items on tablets */
        gap: 15px;
    }
    .client-item {
        min-height: 120px;
        padding: 10px;
    }
    .overlay-icon {
        font-size: 1.1em;
        padding: 6px;
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 576px) {
    .clients-section {
        padding: 30px 10px;
    }
    .section-title {
        font-size: 1.5em;
    }
    .section-description {
        font-size: 0.9em;
        margin-bottom: 25px;
    }
    .client-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Two columns on mobile */
        gap: 10px;
    }
    .client-item {
        min-height: 100px;
        border-radius: 8px;
    }
    .overlay-icon {
        font-size: 1em;
        padding: 4px;
        top: 3px;
        right: 3px;
    }
}

/* Ensure images scale correctly within items */
.client-item img {
    width: auto; /* Allow image to determine its width based on max-width/height */
    height: auto;
}