/* ==========================================================
   CERTIFICATIONS – PREMIUM VERSION
========================================================== */

.certifications-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

/* FULL-WIDTH PAGE HERO */
.certifications-hero {
    position: relative;
    isolation: isolate;
    width: 100vw;
    max-width: none;
    margin: 80px calc(50% - 50vw) 0;
    padding: 85px 25px 75px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(8, 68, 110, .96), rgba(16, 145, 174, .9)),
        #08446e;
    color: #ffffff;
}

.certifications-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    opacity: .45;
}

.certifications-hero::after {
    position: absolute;
    inset: -30%;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.22), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(105,224,235,.24), transparent 32%);
    content: "";
    pointer-events: none;
}

.certifications-hero-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,.15);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.certifications-hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
}

.certifications-hero p {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 20px;
}

/* HEADER */
.certifications-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0b2a4a;
}

.certifications-header p {
    max-width: 720px;
    margin: auto;
    color: #5b6b7a;
}

/* BADGES */
.certifications-highlights {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 50px 0 60px;
    flex-wrap: wrap;
}

.cert-badge {
    background: #ffffff;
    padding: 14px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.cert-badge:hover {
    transform: translateY(-5px);
}

.cert-badge i {
    color: #189af0;
}

/* GRID */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* CARD */
.certificate-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* THUMB */
.certificate-thumb {
    height: 200px;
    background: #f4f8fc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* IMAGE ZOOM */
.certificate-thumb img {
    max-width: 100%;
    max-height: 180px;
    transition: 0.4s;
}

.certificate-card:hover img {
    transform: scale(1.1);
}

/* PDF STYLE */
.certificate-card.pdf .certificate-thumb {
    background: linear-gradient(135deg, #08446e, #1091ae);
}

.certificate-card.pdf i {
    font-size: 55px;
    color: #fff;
    transition: 0.3s;
}

.certificate-card.pdf:hover i {
    transform: scale(1.2);
}

/* OVERLAY */
.cert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: 0.3s;
}

.certificate-card:hover .cert-overlay {
    opacity: 1;
}

/* INFO */
.certificate-info {
    padding: 16px;
    text-align: center;
}

.certificate-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #0b2a4a;
}

.certificate-info span {
    font-size: 13px;
    color: #189af0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .certifications-hero {
        margin-top: 65px;
    }

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