﻿/* =========================================
   MOBILE BANNER FINAL FIX
========================================= */

.page-banner {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
}

    .page-banner img {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 0 !important;
    }

.banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

@media (max-width: 576px) {

    .page-banner {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

        .page-banner img {
            width: 100% !important;
            height: auto !important;
            object-fit: contain !important;
        }
}
/*=========================================
    COMMON SECTION
=========================================*/

.section-title {
    max-width: 760px;
    margin: auto;
    text-align: center;
    margin-bottom: 60px;
}

    .section-title span,
    .section-tag {
        display: inline-block;
        background: rgba(11,61,145,.08);
        color: var(--primary);
        padding: 8px 20px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 1px;
        margin-bottom: 18px;
    }

    .section-title h2 {
        font-size: 42px;
        color: var(--secondary);
        margin-bottom: 18px;
    }

    .section-title p {
        color: #666;
        line-height: 1.9;
    }

/*=========================================
    INTRODUCTION
=========================================*/

.certificate-intro {
    padding: 100px 0;
    background: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.intro-content h2 {
    font-size: 42px;
    color: var(--secondary);
    margin: 20px 0;
    line-height: 1.3;
}

.intro-content p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 20px;
}

.certificate-list {
    margin-top: 30px;
}

    .certificate-list li {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 18px;
        color: #444;
        font-weight: 500;
    }

    .certificate-list i {
        color: var(--primary);
        font-size: 18px;
    }

.intro-image img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(11,61,145,.12);
}

/*=========================================
    CERTIFICATE CARDS
=========================================*/

.certificate-section {
    padding: 100px 0;
    background: #F7FAFF;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 28px;
}

.certificate-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E7EDF7;
    box-shadow: 0 12px 35px rgba(11,61,145,.08);
    transition: .35s;
}

    .certificate-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 22px 45px rgba(11,61,145,.18);
    }

    .certificate-card img {
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

.certificate-content {
    padding: 25px;
    text-align: center;
}

    .certificate-content h3 {
        color: var(--secondary);
        font-size: 22px;
        margin-bottom: 12px;
    }

    .certificate-content p {
        color: #666;
        line-height: 1.8;
        margin-bottom: 22px;
    }

.btn-view {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 30px;
    transition: .35s;
}

    .btn-view:hover {
        background: var(--secondary);
    }
/*=========================================
    OEM SECTION
=========================================*/

.oem-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.oem-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.oem-card {
    background: #fff;
    border: 1px solid #E8EEF7;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(11,61,145,.08);
    transition: .35s;
}

    .oem-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 22px 45px rgba(11,61,145,.18);
        border-color: var(--primary);
    }

    .oem-card img {
        max-width: 150px;
        max-height: 70px;
        object-fit: contain;
        display: block;
        margin: 0 auto 20px;
        transition: .35s;
    }

    .oem-card:hover img {
        transform: scale(1.08);
    }

    .oem-card h3 {
        font-size: 22px;
        color: var(--secondary);
        margin-bottom: 8px;
    }

    .oem-card span {
        display: inline-block;
        color: var(--primary);
        font-weight: 600;
        background: rgba(11,61,145,.08);
        padding: 8px 16px;
        border-radius: 30px;
        font-size: 14px;
    }
.oem-logo {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

    .oem-logo img {
        max-width: 150px;
        max-height: 70px;
        object-fit: contain;
        transition: .35s;
    }

.oem-card:hover .oem-logo img {
    transform: scale(1.08);
}

/*=========================================
    COMPLIANCE
=========================================*/

.compliance-section {
    padding: 100px 0;
    background: #F7FAFF;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.compliance-item {
    background: #fff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid #E8EEF7;
    box-shadow: 0 10px 30px rgba(11,61,145,.08);
    transition: .35s;
}

    .compliance-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(11,61,145,.16);
    }

    .compliance-item i {
        width: 75px;
        height: 75px;
        margin: auto;
        border-radius: 18px;
        background: linear-gradient(135deg,#0B3D91,#2563EB);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 30px;
        margin-bottom: 20px;
    }

    .compliance-item h3 {
        color: var(--secondary);
        font-size: 22px;
        line-height: 1.5;
    }

/*=========================================
    WHY CERTIFICATIONS
=========================================*/

.why-certificate {
    padding: 100px 0;
    background: #FFFFFF;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 28px;
}

.why-card {
    background: #fff;
    border: 1px solid #E8EEF7;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(11,61,145,.08);
    transition: .35s;
}

    .why-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 22px 45px rgba(11,61,145,.18);
        border-color: var(--primary);
    }

    .why-card i {
        width: 75px;
        height: 75px;
        margin: auto;
        border-radius: 18px;
        background: linear-gradient(135deg,#0B3D91,#2563EB);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 30px;
        margin-bottom: 22px;
    }

    .why-card h3 {
        color: var(--secondary);
        font-size: 22px;
        margin-bottom: 15px;
    }

    .why-card p {
        color: #666;
        line-height: 1.8;
        font-size: 15px;
    }
/*=========================================
    CERTIFICATE GALLERY
=========================================*/

.gallery-section {
    padding: 100px 0;
    background: #F7FAFF;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
}

    .gallery-grid img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: 20px;
        cursor: pointer;
        border: 1px solid #E8EEF7;
        box-shadow: 0 12px 30px rgba(11,61,145,.08);
        transition: .35s;
    }

        .gallery-grid img:hover {
            transform: scale(1.05);
            box-shadow: 0 22px 45px rgba(11,61,145,.18);
        }

/*=========================================
    CALL TO ACTION
=========================================*/

.certificate-cta {
    padding: 100px 0;
    background: linear-gradient(135deg,#0B3D91,#2563EB);
}

.cta-box {
    max-width: 900px;
    margin: auto;
    text-align: center;
    color: #fff;
}

    .cta-box h2 {
        font-size: 42px;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .cta-box p {
        font-size: 17px;
        line-height: 1.9;
        opacity: .95;
        margin-bottom: 35px;
    }

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: .35s;
    text-decoration: none;
}

.btn-primary {
    background: #fff;
    color: var(--primary);
}

    .btn-primary:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(0,0,0,.18);
    }

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

    .btn-outline:hover {
        background: #fff;
        color: var(--primary);
    }

/*=========================================
    RESPONSIVE
=========================================*/

@media(max-width:1200px) {

    .certificate-grid,
    .why-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media(max-width:991px) {

    .page-banner {
        height: 330px;
    }

    .banner-content h1 {
        font-size: 42px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .certificate-grid,
    .oem-grid,
    .compliance-grid,
    .why-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .section-title h2,
    .intro-content h2,
    .cta-box h2 {
        font-size: 34px;
    }
}

@media(max-width:576px) {

    .page-banner {
        height: 260px;
    }

    .banner-content h1 {
        font-size: 30px;
    }

    .banner-content p {
        font-size: 15px;
    }

    .certificate-intro,
    .certificate-section,
    .oem-section,
    .compliance-section,
    .why-certificate,
    .gallery-section,
    .certificate-cta {
        padding: 70px 0;
    }

    .certificate-grid,
    .oem-grid,
    .compliance-grid,
    .why-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2,
    .intro-content h2,
    .cta-box h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-outline {
        width: 220px;
        text-align: center;
    }
}
.certificate-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0 30px;
}

.certificate-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 30px;
    width: max-content;
    animation: certificateMarquee 45s linear infinite;
}

.certificate-card {
    flex: 0 0 360px;
    width: 360px;
    background: #ffffff;
    border: 1px solid #e3eaf3;
    border-radius: 18px;
    overflow: hidden;
    padding: 18px;
    box-shadow: 0 12px 35px rgba(11, 61, 145, 0.10);
    display: flex;
    flex-direction: column;
    transition: 0.35s ease;
}

    .certificate-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 45px rgba(11, 61, 145, 0.16);
    }


    /* Certificate image area */

    .certificate-card > img {
        width: 100%;
        height: 440px;
        display: block;
        object-fit: contain;
        object-position: center;
        background: #f8fafc;
        border-radius: 10px;
    }


/* Certificate information */

.certificate-content {
    padding: 18px 5px 5px;
    text-align: center;
}

    .certificate-content h3 {
        margin: 0 0 6px;
        color: #0B3D91;
        font-size: 18px;
        line-height: 1.4;
        font-weight: 700;
    }

    .certificate-content p {
        margin: 0 0 15px;
        color: #667085;
        font-size: 13px;
        line-height: 1.5;
    }


/* View button */

.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 155px;
    padding: 11px 20px;
    background: #0B3D91;
    color: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

    .btn-view:hover {
        background: #1266D5;
        color: #ffffff;
        transform: translateY(-2px);
    }


/* =====================================================
   MARQUEE
   ===================================================== */

@keyframes certificateMarquee {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}


/* Pause on hover */

.certificate-marquee:hover .certificate-grid {
    animation-play-state: paused;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 991px) {

    .certificate-grid {
        gap: 25px;
        animation-duration: 40s;
    }

    .certificate-card {
        flex: 0 0 330px;
        width: 330px;
        padding: 15px;
    }

        .certificate-card > img {
            height: 410px;
        }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 767px) {

    .certificate-marquee {
        padding: 10px 0 25px;
    }

    .certificate-grid {
        gap: 20px;
        animation-duration: 35s;
    }

    .certificate-card {
        flex: 0 0 300px;
        width: 300px;
        padding: 14px;
        border-radius: 15px;
    }

        .certificate-card > img {
            height: 385px;
        }

    .certificate-content {
        padding-top: 15px;
    }

        .certificate-content h3 {
            font-size: 17px;
        }

        .certificate-content p {
            font-size: 12px;
        }
}


/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media (max-width: 480px) {

    .certificate-card {
        flex: 0 0 275px;
        width: 275px;
    }

        .certificate-card > img {
            height: 350px;
        }
}