﻿.certifications-page {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

/* ==============================
   HERO
============================== */

.certifications-hero {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient( 135deg, #eaf6ff 0%, #f7fbff 48%, #ffffff 100% );
}

    .certifications-hero::before {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        right: -150px;
        top: -210px;
        border-radius: 50%;
        background: rgba(11, 114, 185, 0.08);
        filter: blur(2px);
    }

    .certifications-hero::after {
        content: "";
        position: absolute;
        width: 340px;
        height: 340px;
        left: -170px;
        bottom: -180px;
        border-radius: 50%;
        background: rgba(42, 151, 219, 0.07);
    }

.certifications-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 75px 30px;
}

.certifications-small-title {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-left: 2px;
    color: #0b72b9;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

    .certifications-small-title::after {
        content: "";
        display: block;
        width: 150px;
        height: 2px;
        margin-top: 9px;
        background: linear-gradient( to right, #0b72b9 0%, #0b72b9 45%, rgba(11, 114, 185, 0.55) 65%, rgba(11, 114, 185, 0.15) 82%, rgba(11, 114, 185, 0) 100% );
    }

.certifications-hero h1 {
    margin: 0;
    max-width: 720px;
    color: #123d5a;
    font-family: 'DM Serif Display', serif;
    font-size: 58px;
    font-weight: 400;
    line-height: 1.12;
}

    .certifications-hero h1 span {
        position: relative;
        display: inline-block;
        color: #0b72b9;
    }

        .certifications-hero h1 span::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -5px;
            height: 4px;
            background: #f2a900;
            border-radius: 10px;
            opacity: 0.9;
        }

.certifications-hero p {
    max-width: 650px;
    margin: 22px 0 0;
    color: #61798c;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}


/* ==============================
   CERTIFICATIONS SECTION
============================== */

.certifications-section {
    padding: 90px 30px 100px;
    background: #ffffff;
}

.certifications-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.certifications-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.certifications-label {
    margin-bottom: 13px;
    color: #0b72b9;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.certifications-heading h2 {
    margin: 0;
    color: #183f5a;
    font-family: 'DM Serif Display', serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
}

.certifications-heading p {
    max-width: 680px;
    margin: 18px auto 0;
    color: #71879a;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.8;
}


/* ==============================
   CERTIFICATE GRID
============================== */

.certification-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.certification-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4edf4;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(21, 73, 105, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
}

    .certification-card:hover {
        transform: translateY(-7px);
        border-color: #b9d8ed;
        box-shadow: 0 18px 40px rgba(21, 73, 105, 0.13);
    }

.certification-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 390px;
    padding: 22px;
    overflow: hidden;
    background: #f6faff;
}

    .certification-image-wrapper::before {
        content: "";
        position: absolute;
        width: 190px;
        height: 190px;
        top: -85px;
        right: -70px;
        border-radius: 50%;
        background: rgba(11, 114, 185, 0.055);
    }

.certification-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 345px;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.certification-card:hover .certification-image {
    transform: scale(1.025);
}

.certification-card-content {
    padding: 20px 22px 23px;
    background: #ffffff;
    border-top: 1px solid #edf3f7;
}

    .certification-card-content h3 {
        margin: 0;
        color: #244e6a;
        font-family: 'DM Sans', sans-serif;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.5;
    }


/* ==============================
   EMPTY STATE
============================== */

.certification-empty {
    grid-column: 1 / -1;
    padding: 70px 30px;
    text-align: center;
    background: #f8fbfe;
    border: 1px dashed #c9dce9;
    border-radius: 14px;
    color: #71879a;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
}


/* ==============================
   QUALITY STATEMENT
============================== */

.certifications-quality-section {
    position: relative;
    overflow: hidden;
    padding: 85px 30px;
    background: linear-gradient( 135deg, #eef8ff 0%, #f8fcff 55%, #eaf6ff 100% );
}

    .certifications-quality-section::before {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        right: -160px;
        top: -170px;
        border-radius: 50%;
        background: rgba(11, 114, 185, 0.07);
    }

.certifications-quality-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

    .certifications-quality-content h2 {
        margin: 0;
        color: #183f5a;
        font-family: 'DM Serif Display', serif;
        font-size: 42px;
        font-weight: 400;
        line-height: 1.25;
    }

        .certifications-quality-content h2 span {
            color: #0b72b9;
        }

    .certifications-quality-content p {
        max-width: 700px;
        margin: 20px auto 0;
        color: #657d90;
        font-family: 'DM Sans', sans-serif;
        font-size: 15px;
        line-height: 1.8;
    }


/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 992px) {

    .certification-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certifications-hero h1 {
        font-size: 48px;
    }
}

@media (max-width: 767px) {

    .certifications-hero {
        min-height: 330px;
    }

    .certifications-hero-content {
        padding: 60px 22px;
    }

    .certifications-hero h1 {
        font-size: 40px;
    }

    .certifications-hero p {
        font-size: 14px;
    }

    .certifications-section {
        padding: 65px 20px 75px;
    }

    .certifications-heading h2 {
        font-size: 34px;
    }

    .certification-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .certification-image-wrapper {
        min-height: 360px;
    }

    .certifications-quality-section {
        padding: 65px 20px;
    }

    .certifications-quality-content h2 {
        font-size: 34px;
    }
}


/* ==============================
   CERTIFICATION PREVIEW
============================== */

body.certification-preview-open {
    overflow: hidden;
}

.certification-preview {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

    .certification-preview.active {
        display: flex;
    }

.certification-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 37, 58, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certification-preview.active .certification-preview-backdrop {
    opacity: 1;
}

.certification-preview-box {
    position: relative;
    z-index: 2;
    width: min(850px, 94vw);
    max-height: 92vh;
    padding: 18px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 30, 55, 0.35);
    transform: scale(0.94);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.certification-preview.active .certification-preview-box {
    transform: scale(1);
    opacity: 1;
}

.certification-preview-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #0b5c91;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 50, 80, 0.25);
    transition: background 0.25s ease, transform 0.25s ease;
}

    .certification-preview-close:hover {
        background: #234e86;
        transform: scale(1.08);
    }

.certification-preview-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(92vh - 80px);
    overflow: auto;
    padding: 8px;
    background: #f5f9fc;
    border-radius: 10px;
}

.certification-preview-image {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.certification-preview-title {
    padding: 14px 5px 3px;
    color: #244e6a;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 767px) {

    .certification-preview {
        padding: 20px;
    }

    .certification-preview-box {
        width: 96vw;
        padding: 12px;
        border-radius: 12px;
    }

    .certification-preview-close {
        top: -10px;
        right: -10px;
        width: 34px;
        height: 34px;
        font-size: 23px;
    }
}

/* ==============================
   CERTIFICATE HOVER ZOOM
============================== */

.certification-image-wrapper {
    position: relative;
    cursor: pointer;
}

.certification-zoom-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 30, 38, 0.62);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certification-image-wrapper:hover .certification-zoom-overlay {
    opacity: 1;
}

.certification-zoom-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: #ffffff;
    transform: scale(0.75);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.certification-image-wrapper:hover .certification-zoom-icon {
    transform: scale(1);
    opacity: 1;
}

.certification-zoom-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 767px) {

    .certification-zoom-icon {
        width: 50px;
        height: 50px;
    }

        .certification-zoom-icon svg {
            width: 26px;
            height: 26px;
        }
}