/* =========================================================
   CERTIFICATIONS & ACCREDITATIONS
========================================================= */

.certifications-section {

    position: relative;

    padding: 50px 0;

    background: var(--primary);

    overflow: hidden;

    color: #ffffff;

}


/* =========================================================
   TECHNICAL GRID
========================================================= */

.cert-bg-grid {

    position: absolute;

    inset: 0;

    opacity: .065;

    background-image:

        linear-gradient(
            rgba(255,255,255,.7) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.7) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    pointer-events: none;

}


/* =========================================================
   BACKGROUND CALIBRATION ICONS
========================================================= */

.cert-bg-icons {

    position: absolute;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

}


.cert-bg-icon {

    position: absolute;

    color: #ffffff;

    opacity: .055;

}


/* =========================================================
   BACKGROUND ICON 1
========================================================= */

.cert-icon-1 {

    top: 7%;

    left: 2%;

    font-size: 150px;

    animation:
        certificateFloat 6s ease-in-out infinite;

}


/* =========================================================
   BACKGROUND ICON 2
========================================================= */

.cert-icon-2 {

    top: 15%;

    right: 3%;

    font-size: 145px;

    animation:
        certificateFloat 7s ease-in-out infinite reverse;

}


/* =========================================================
   BACKGROUND ICON 3
========================================================= */

.cert-icon-3 {

    bottom: 7%;

    left: 5%;

    font-size: 135px;

}


/* =========================================================
   BACKGROUND ICON 4
========================================================= */

.cert-icon-4 {

    bottom: 15%;

    right: 6%;

    font-size: 125px;

    animation:
        certificateFloat 5s ease-in-out infinite;

}


/* =========================================================
   BACKGROUND ICON 5
========================================================= */

.cert-icon-5 {

    top: 45%;

    left: 20%;

    font-size: 90px;

    animation:
        certificateRotate 25s linear infinite;

}


/* =========================================================
   BACKGROUND ICON 6
========================================================= */

.cert-icon-6 {

    top: 52%;

    right: 20%;

    font-size: 85px;

}


/* =========================================================
   SECTION HEADING
========================================================= */

.cert-heading {

    position: relative;

    z-index: 2;

    max-width: 800px;

    margin: 0 auto 55px;

    text-align: center;

}


/* =========================================================
   LABEL
========================================================= */

.cert-label {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-bottom: 18px;

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2.5px;

}


.cert-label span {

    display: block;

    width: 40px;

    height: 2px;

    background: #ffffff;

    border-radius: 10px;

}


/* =========================================================
   MAIN HEADING
========================================================= */

.cert-heading h2 {

    margin: 0 0 18px;

    color: #ffffff;

    font-size:
        clamp(34px, 4vw, 52px);

    font-weight: 700;

    line-height: 1.12;

}


.cert-heading h2 span {

    display: block;

    font-weight: 800;

}


/* =========================================================
   DESCRIPTION
========================================================= */

.cert-heading p {

    max-width: 700px;

    margin: 0 auto;

    color:
        rgba(255,255,255,.75);

    font-size: 14px;

    line-height: 1.9;

}


/* =========================================================
   CERTIFICATE ROW
========================================================= */

.certificate-row {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;

}


/* =========================================================
   CERTIFICATE CARD
========================================================= */

.certificate-card {

    position: relative;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid
        rgba(255,255,255,.25);

    border-radius: 16px;

    box-shadow:
        0 20px 45px
        rgba(0,0,0,.18);

    transition:
        transform .4s ease,
        box-shadow .4s ease;

}


/* =========================================================
   CARD HOVER
========================================================= */

.certificate-card:hover {

    transform:
        translateY(-10px);

    box-shadow:
        0 30px 60px
        rgba(0,0,0,.28);

}


/* =========================================================
   CERTIFICATE IMAGE PREVIEW
========================================================= */

.certificate-preview {

    position: relative;

    height: 340px;

    background: #f5f6f9;

    overflow: hidden;

    border-bottom:
        1px solid #e2e3e8;

}


/* =========================================================
   CERTIFICATE IMAGE
========================================================= */

.certificate-preview img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: top center;

    transition:
        transform .6s ease;

}


/* =========================================================
   IMAGE HOVER ZOOM
========================================================= */

.certificate-card:hover
.certificate-preview img {

    transform:
        scale(1.04);

}


/* =========================================================
   PDF OVERLAY
========================================================= */

.certificate-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(1,87,146,.58);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;

}


/* =========================================================
   SHOW OVERLAY
========================================================= */

.certificate-card:hover
.certificate-overlay {

    opacity: 1;

    visibility: visible;

}


/* =========================================================
   VIEW PDF BUTTON
========================================================= */

.certificate-view-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 13px 19px;

    background: #ffffff;

    color: var(--primary);

    border: none;

    border-radius: 7px;

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;

    box-shadow:
        0 10px 25px
        rgba(0,0,0,.22);

    transform:
        translateY(15px);

    transition:
        transform .3s ease,
        background .3s ease,
        color .3s ease,
        box-shadow .3s ease;

}


/* =========================================================
   BUTTON ANIMATION
========================================================= */

.certificate-card:hover
.certificate-view-btn {

    transform:
        translateY(0);

}


/* =========================================================
   BUTTON HOVER
========================================================= */

.certificate-view-btn:hover {

    color: var(--primary-dark);

    background: #ffffff;

    transform:
        translateY(-4px);

    box-shadow:
        0 15px 30px
        rgba(0,0,0,.3);

}


.certificate-view-btn i {

    font-size: 15px;

}


/* =========================================================
   CERTIFICATE INFORMATION
========================================================= */

.certificate-info {

    display: flex;

    align-items: center;

    gap: 14px;

    min-height: 105px;

    padding: 20px;

    background: #ffffff;

}


/* =========================================================
   CERTIFICATE ICON
========================================================= */

.certificate-icon {

    flex-shrink: 0;

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--primary-light);

    color: var(--primary);

    border-radius: 11px;

    font-size: 22px;

    transition:
        background .35s ease,
        color .35s ease,
        transform .35s ease;

}


/* =========================================================
   CERTIFICATE ICON HOVER
========================================================= */

.certificate-card:hover
.certificate-icon {

    background: var(--primary);

    color: #ffffff;

    transform:
        rotate(-6deg)
        scale(1.05);

}


/* =========================================================
   CERTIFICATE TEXT
========================================================= */

.certificate-text {

    min-width: 0;

}


.certificate-text h4 {

    margin: 0 0 5px;

    color: #111111;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.3;

}


.certificate-text p {

    margin: 0;

    color: #666666;

    font-size: 11px;

    line-height: 1.5;

}


/* =========================================================
   TRUST STRIP
========================================================= */

.cert-trust-strip {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    margin-top: 55px;

    padding-top: 28px;

    border-top:
        1px solid
        rgba(255,255,255,.18);

}


/* =========================================================
   TRUST ITEM
========================================================= */

.cert-trust-item {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    padding: 0 15px;

    border-right:
        1px solid
        rgba(255,255,255,.12);

}


.cert-trust-item:last-child {

    border-right: none;

}


/* =========================================================
   TRUST ICON
========================================================= */

.cert-trust-item > i {

    color: #ffffff;

    font-size: 22px;

}


/* =========================================================
   TRUST TITLE
========================================================= */

.cert-trust-item strong {

    display: block;

    margin-bottom: 2px;

    color: #ffffff;

    font-size: 11px;

    font-weight: 800;

}


/* =========================================================
   TRUST DESCRIPTION
========================================================= */

.cert-trust-item span {

    display: block;

    color:
        rgba(255,255,255,.55);

    font-size: 9px;

}


/* =========================================================
   ANIMATION — FLOAT
========================================================= */

@keyframes certificateFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-15px);

    }

}


/* =========================================================
   ANIMATION — ROTATE
========================================================= */

@keyframes certificateRotate {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1100px) {

    .certificate-row {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .certificate-preview {

        height: 380px;

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .certifications-section {

        padding: 80px 0;

    }


    .cert-heading {

        margin-bottom: 40px;

    }


    .certificate-preview {

        height: 360px;

    }


    /* Trust Strip */

    .cert-trust-strip {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 25px;

    }


    .cert-trust-item:nth-child(2) {

        border-right: none;

    }


    .cert-trust-item:nth-child(3) {

        border-top:
            1px solid
            rgba(255,255,255,.1);

        padding-top: 20px;

    }


    .cert-trust-item:nth-child(4) {

        border-top:
            1px solid
            rgba(255,255,255,.1);

        border-right: none;

        padding-top: 20px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .certifications-section {

        padding: 65px 0;

    }


    .cert-heading {

        margin-bottom: 35px;

    }


    /* Label */

    .cert-label {

        gap: 8px;

        font-size: 9px;

        letter-spacing: 1.5px;

    }


    .cert-label span {

        width: 22px;

    }


    /* Heading */

    .cert-heading h2 {

        font-size: 32px;

    }


    /* Description */

    .cert-heading p {

        font-size: 12px;

        line-height: 1.7;

    }


    /* =====================================================
       HORIZONTAL CERTIFICATE SCROLL
    ====================================================== */

    .certificate-row {

        display: flex;

        gap: 18px;

        overflow-x: auto;

        padding:
            5px 3px 20px;

        scroll-snap-type:
            x mandatory;

        scrollbar-width: thin;

    }


    /* Scrollbar */

    .certificate-row::-webkit-scrollbar {

        height: 5px;

    }


    .certificate-row::-webkit-scrollbar-track {

        background:
            rgba(255,255,255,.12);

        border-radius: 10px;

    }


    .certificate-row::-webkit-scrollbar-thumb {

        background:
            rgba(255,255,255,.55);

        border-radius: 10px;

    }


    /* Mobile Card */

    .certificate-card {

        flex:
            0 0 290px;

        scroll-snap-align:
            start;

    }


    /* Mobile Preview */

    .certificate-preview {

        height: 300px;

    }


    /* =====================================================
       ALWAYS SHOW VIEW BUTTON ON MOBILE
    ====================================================== */

    .certificate-overlay {

        opacity: 1;

        visibility: visible;

        align-items: flex-end;

        padding-bottom: 15px;

        background:
            linear-gradient(
                transparent,
                rgba(1,87,146,.4)
            );

    }


    .certificate-view-btn {

        transform:
            translateY(0);

    }


    /* Certificate Information */

    .certificate-info {

        min-height: 95px;

        padding: 15px;

    }


    /* Certificate Icon */

    .certificate-icon {

        width: 48px;

        height: 48px;

        font-size: 19px;

    }


    /* Certificate Title */

    .certificate-text h4 {

        font-size: 14px;

    }


    /* Certificate Description */

    .certificate-text p {

        font-size: 10px;

    }


    /* =====================================================
       TRUST STRIP
    ====================================================== */

    .cert-trust-strip {

        grid-template-columns:
            1fr;

        gap: 15px;

    }


    .cert-trust-item {

        justify-content: flex-start;

        padding:
            0 0 14px;

        border-right: none;

        border-bottom:
            1px solid
            rgba(255,255,255,.1);

    }


    .cert-trust-item:nth-child(3),
    .cert-trust-item:nth-child(4) {

        border-top: none;

        padding-top: 0;

    }


    .cert-trust-item:last-child {

        border-bottom: none;

    }


    /* =====================================================
       BACKGROUND ICONS
    ====================================================== */

    .cert-bg-icon {

        font-size:
            70px !important;

    }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .certificate-card {

        flex:
            0 0 270px;

    }


    .certificate-preview {

        height: 285px;

    }


    .cert-heading h2 {

        font-size: 29px;

    }


    .cert-label {

        font-size: 8px;

    }

}