/* ===== CERTIFICATES & TESTIMONIALS OVERHAUL ===== */
.certificates {
    background: linear-gradient(180deg, #fff 0%, #fcfcfc 100%);
    position: relative;
    overflow: hidden;
}

.certificates-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

/* Custom Certificate Visual (No Iframe) */
.certificate-wrapper {
    position: relative;
    perspective: 1000px;
}

.certificate-card-visual {
    background: #fff;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 10px solid #fff;
    outline: 1px solid #e0e0e0;
    transition: all 0.4s ease;
    background-image: radial-gradient(#f0f0f0 1px, transparent 1px);
    background-size: 20px 20px;
}

.certificate-card-visual::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid #FFD700;
    pointer-events: none;
}

.certificate-card-visual::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid #FFD700;
    pointer-events: none;
}

.cert-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.cert-logo {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cert-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cert-subtitle {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0.5rem;
}

.cert-body {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.cert-body p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
}

.cert-company {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
    display: block;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 2rem;
}

.cert-seal {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    border: 4px solid #fff;
    outline: 2px dashed #FFA500;
    position: relative;
}

.cert-seal::after {
    content: '★ QUALITY ★';
    position: absolute;
    font-size: 0.6rem;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.cert-signature {
    text-align: center;
}

.signature-img {
    font-family: 'Playfair Display', serif;
    /* Fallback for signature */
    font-size: 1.5rem;
    color: var(--primary);
    font-style: italic;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
    display: block;
    width: 150px;
}

.signature-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    margin-top: 0.5rem;
    display: block;
}

.certificate-card-visual:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* Testimonials Section */
.testimonials-wrapper {
    padding-left: 2rem;
}

.testimonials-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid #FFD700;
}

.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateX(10px);
    border-left-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.test-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.test-stars {
    color: #FFD700;
    font-size: 0.9rem;
}

.test-quote {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.author-info span {
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 992px) {
    .certificates-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .testimonials-wrapper {
        padding-left: 0;
    }
}

/* Certificates Logo Grid - Modern Cards */
.certificates-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.cert-logo-item {
    width: 200px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.cert-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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