/* ISO Certificates Section */
.certificates-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.certificates-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="%23ffffff20"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.certificates-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.certificates-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.certificates-title p {
    font-size: 18px;
    color: #546e7a;
    font-weight: 400;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.certificate-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.certificate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12);
}

.certificate-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.certificate-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.certificate-item:hover img {
    transform: scale(1.05);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .certificates-section {
        padding: 60px 15px;
    }

    .certificates-title h2 {
        font-size: 32px;
    }

    .certificates-title p {
        font-size: 16px;
    }

    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .certificates-section {
        padding: 40px 10px;
    }

    .certificates-title h2 {
        font-size: 26px;
        letter-spacing: 1px;
    }

    .certificates-title p {
        font-size: 14px;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .certificate-item {
        padding: 15px;
    }
}

/* RTL Support for Arabic */
[dir='rtl'] .certificates-title h2 {
    letter-spacing: 0;
}
