/* ===========================================
   Clients Page - Logo Grid
   =========================================== */

:root {
    --cl-primary: #ff5e14;
    --cl-secondary: #010e2a;
    --cl-gradient: linear-gradient(135deg, #ff5e14 0%, #ff7b3d 100%);
}

.clients-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 500px;
}

.clients-section .section-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.cl-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 94, 20, 0.12);
    color: var(--cl-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 94, 20, 0.2);
}

.cl-section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--cl-secondary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.cl-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--cl-gradient);
    border-radius: 2px;
}

.cl-section-desc {
    font-size: 1.05rem;
    color: #6c757d;
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

/* ===== Client Grid ===== */
.cl-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.cl-card {
    background: #ffffff;
    border: 1.5px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cl-card[data-lightbox] {
    cursor: zoom-in;
}

.cl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cl-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

/* Zoom Icon for lightbox-enabled cards */
.cl-card[data-lightbox]::after {
    content: '\F4DE';
    font-family: "bootstrap-icons";
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--cl-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 94, 20, 0.4);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    z-index: 2;
}

.cl-card[data-lightbox]:hover::after {
    opacity: 1;
    transform: scale(1);
}

.cl-card:hover {
    transform: translateY(-8px);
    border-color: var(--cl-primary);
    box-shadow: 0 15px 35px rgba(255, 94, 20, 0.2);
}

.cl-card:hover::before {
    transform: scaleX(1);
}

.cl-card img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(60%);
    opacity: 0.85;
    transition: all 0.4s ease;
}

.cl-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* Empty State */
.cl-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #94a3b8;
}

.cl-empty i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}

.cl-empty h5 {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

/* Animation */
@keyframes clFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cl-card {
    animation: clFadeUp 0.5s ease-out backwards;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .cl-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 991.98px) {
    .cl-grid { grid-template-columns: repeat(4, 1fr); }
    .clients-section { padding: 60px 0; }
    .cl-section-title { font-size: 2rem; }
}

@media (max-width: 767.98px) {
    .cl-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .cl-section-title { font-size: 1.6rem; }
    .cl-card { height: 110px; padding: 1rem 0.75rem; }
}

@media (max-width: 575.98px) {
    .cl-grid { grid-template-columns: repeat(2, 1fr); }
    .cl-card { height: 100px; }
    .cl-card img { max-height: 60px; }
}
