/* Certificates Section Styling - Exact Match with Global Offices */

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 20px;
    justify-content: flex-start;
    max-width: 400px;
}

.certificate-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.certificate-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Certificate Logo - Compact size */
.certificate-logo {
    width: 90px;
    height: 70px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-item:hover .certificate-logo {
    transform: scale(1.05);
}

.certificate-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Certificate Title - Better visibility */
.certificate-title {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.certificate-item:hover .certificate-title {
    color: #007bff;
}

/* No Certificates Message */
.no-certificates-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    opacity: 0.7;
    grid-column: 1 / -1;
}

/* Responsive Design - Closer spacing */
@media (max-width: 1199px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
    }
}

@media (max-width: 991px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 5px;
    }
    
    .certificate-item {
        padding: 5px 3px;
    }
    
    .certificate-logo {
        width: 75px;
        height: 60px;
    }
    
    .certificate-title {
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 4px;
    }
    
    .certificate-item {
        padding: 4px 2px;
        gap: 3px;
    }
    
    .certificate-logo {
        width: 65px;
        height: 50px;
    }
    
    .certificate-title {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 575px) {
    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }
    
    .certificate-item {
        padding: 3px 2px;
        gap: 2px;
    }
    
    .certificate-logo {
        width: 55px;
        height: 40px;
    }
    
    .certificate-title {
        font-size: 9px;
        letter-spacing: 0.4px;
    }
}

/* Animation */
.certificate-item {
    animation: fadeInUp 0.6s ease-out;
}

.certificate-item:nth-child(1) { animation-delay: 0.1s; }
.certificate-item:nth-child(2) { animation-delay: 0.2s; }
.certificate-item:nth-child(3) { animation-delay: 0.3s; }
.certificate-item:nth-child(4) { animation-delay: 0.4s; }
.certificate-item:nth-child(5) { animation-delay: 0.5s; }
.certificate-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
