﻿@charset "utf-8";

/* =========================================================
   EGOO Company Qualifications
   Brand Color: #e66b2e
========================================================= */

.egoo-honor-section,
.egoo-honor-section *,
.egoo-honor-lightbox,
.egoo-honor-lightbox * {
    box-sizing: border-box;
}

.egoo-honor-section {
    width: 100%;
    padding: 62px 0 76px;
}

.egoo-honor-heading {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.egoo-honor-heading > span {
    display: block;
    margin-bottom: 7px;
    color: #e66b2e;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: 1px;
}

.egoo-honor-heading h2 {
    margin: 0;
    color: #20252b;
    font-size: 32px;
    line-height: 42px;
    font-weight: 600;
}

.egoo-honor-heading p {
    margin: 12px auto 0;
    color: #747a80;
    font-size: 14px;
    line-height: 24px;
}

.egoo-honor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.egoo-honor-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e9e1dc;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(49, 39, 32, .045);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.egoo-honor-card:hover {
    transform: translateY(-4px);
    border-color: #efc8b4;
    box-shadow: 0 16px 36px rgba(67, 47, 36, .08);
}

.egoo-honor-image {
    position: relative;
    width: 100%;
    padding: 0;
    display: block;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid #eee7e2;
    outline: none;
    background: #faf9f8;
    cursor: zoom-in;
}

.egoo-honor-image-inner {
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.egoo-honor-image-inner img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    transition: transform .28s ease;
}

.egoo-honor-card:hover .egoo-honor-image-inner img {
    transform: scale(1.025);
}

.egoo-honor-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e66b2e;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(230, 107, 46, .22);
    transition: background .2s ease, transform .2s ease;
}

.egoo-honor-card:hover .egoo-honor-zoom {
    background: #c95722;
    transform: scale(1.06);
}

.egoo-honor-card h3 {
    margin: 0;
    padding: 16px 16px 18px;
    color: #34393f;
    font-size: 15px;
    line-height: 23px;
    font-weight: 600;
    text-align: center;
    word-break: normal;
}

.egoo-honor-empty {
    padding: 56px 24px;
    border: 1px solid #e7e0db;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.egoo-honor-empty > i {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff2eb;
    color: #e66b2e;
    font-size: 24px;
}

.egoo-honor-empty h3 {
    margin: 0;
    color: #30353b;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
}

.egoo-honor-empty p {
    margin: 8px 0 0;
    color: #82878c;
    font-size: 14px;
    line-height: 23px;
}


/* =========================================================
   Lightbox
========================================================= */

.egoo-honor-no-scroll {
    overflow: hidden;
}

.egoo-honor-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100080;
    display: none;
    padding: 34px;
}

.egoo-honor-lightbox-mask {
    position: absolute;
    inset: 0;
    background: rgba(24, 22, 21, .78);
    backdrop-filter: blur(2px);
}

.egoo-honor-lightbox-dialog {
    position: relative;
    z-index: 2;
    width: min(980px, 94vw);
    max-height: calc(100vh - 68px);
    margin: 0 auto;
    padding: 22px;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

.egoo-honor-lightbox-close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 5;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #e66b2e;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(230, 107, 46, .22);
    transition: background .2s ease, transform .2s ease;
}

.egoo-honor-lightbox-close:hover {
    background: #c95722;
    transform: rotate(90deg);
}

.egoo-honor-lightbox-image {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    border-radius: 10px;
    background: #f7f6f5;
}

.egoo-honor-lightbox-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    display: block;
    object-fit: contain;
}

.egoo-honor-lightbox-dialog h3 {
    margin: 15px 48px 0;
    color: #30353b;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    text-align: center;
}


/* =========================================================
   Mobile
========================================================= */

@media screen and (max-width: 767px) {

    .egoo-honor-section {
        padding: 38px 0 48px;
    }

    .egoo-honor-heading {
        margin-bottom: 24px;
    }

    .egoo-honor-heading h2 {
        font-size: 25px;
        line-height: 34px;
    }

    .egoo-honor-heading p {
        line-height: 22px;
    }

    .egoo-honor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .egoo-honor-card {
        border-radius: 9px;
    }

    .egoo-honor-image-inner {
        aspect-ratio: 1 / 1.08;
        padding: 10px;
    }

    .egoo-honor-zoom {
        right: 8px;
        bottom: 8px;
        width: 32px;
        height: 32px;
    }

    .egoo-honor-card h3 {
        padding: 12px 10px 14px;
        font-size: 14px;
        line-height: 21px;
    }

    .egoo-honor-lightbox {
        padding: 12px;
    }

    .egoo-honor-lightbox-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 14px;
        border-radius: 10px;
    }

    .egoo-honor-lightbox-close {
        right: 8px;
        top: 8px;
        width: 34px;
        height: 34px;
    }

    .egoo-honor-lightbox-image img {
        max-height: calc(100vh - 130px);
    }

    .egoo-honor-lightbox-dialog h3 {
        margin: 12px 38px 0;
        font-size: 14px;
        line-height: 22px;
    }
}
