@charset "utf-8";

/* Container Reset */
.cert-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 71px;
    /* Origin of Top:71 */
    padding-bottom: 50px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* Sections */
.cert-section {
    display: flex;
    flex-wrap: wrap;
    padding-left: 30px;
    padding-right: 30px;
}

/* Distances between section origins */
.sec-1 {
    margin-bottom: 116px;
    /* 515 - 71(origin) - 328(img bounds) = 116px. But let's just make it exact: 515-71=444px spacing. Img block is 328. Margin=116 */
}

.sec-2 {
    margin-bottom: 109px;
    /* 952 - 515(origin) - 328(img bounds) = 109px */
}

.sec-3 {}

/* Left Column */
.cert-left {
    width: 230px;
    flex-shrink: 0;
    margin-right: 40px;
}

.cert-left hr {
    border: none;
    height: 1px;
    background-color: #CE0000;
    margin: 0;
}

.cert-left h2 {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Base Top-line / Bot-line offsets */
.cert-left hr.top-line {
    margin-bottom: 4px;
}

/* Title top 76, minus hr top 71 (1px height) = 4px spacing */
.cert-left h2 {
    margin-bottom: 3px;
}

/* 32px between Ti 76 and Bot-L 108 minus 28.8px height = 3.2px */

/* Exact gaps for left column bot-line and elements per section */
.sec-1 hr.bot-line {
    margin-bottom: 20px;
}

/* 129 - 109 = 20 */
.sec-1 .logo-img {
    margin-bottom: 15px;
}

/* 239 - 224 = 15 */

.sec-2 hr.top-line {
    margin-bottom: 4px;
}

/* 520 - 515(1px) = 4 */
.sec-2 hr.bot-line {
    margin-bottom: 20px;
}

/* 573 - 553 = 20 */
.sec-2 .logo-img {
    margin-bottom: 20px;
}

/* 715 - 695 = 20 */

.sec-3 hr.top-line {
    margin-bottom: 4px;
}

/* 957 - 952(1px) = 4 */
.sec-3 hr.bot-line {
    margin-bottom: 7px;
}

/* 997 - 990 = 7 */
.sec-3 .logo-img {
    margin-bottom: 5px;
}

/* 1097 - 1092 = 5 */

.cert-left .desc-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.5px;
    color: #000;
    margin: 0;
    text-align: center;
}

.cert-left .logo-img {
    margin: 0 auto;
    margin-bottom: 15px;
}

.cert-left .logo-s1 {
    width: 180px;
}

.cert-left .logo-s2 {
    width: 230px;
}

.cert-left .logo-s3 {
    width: 180px;
}

.cert-left .logo-img img {
    width: 100%;
    vertical-align: top;
}

.cert-left .patent-list {
    display: flex;
    justify-content: center;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.cert-left .patent-list .pl-left {
    width: 68px;
    flex-shrink: 0;
}

/* Right Column */
.cert-right {
    flex: 1;
    max-width: 770px;
    flex-shrink: 0;
}

/* Grid for 200px width (3 columns) */
.cert-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    justify-content: flex-start;
    gap: 88px;
}

/* Grid for 185px width (4 columns) */
.cert-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 185px);
    justify-content: flex-start;
    gap: 10px;
}

/* Margin between row 1 and row 2 of Grid 4 in Section 3 */
.sec-3 .ext-row {
    margin-top: 31px;
    /* 1289 - 952 = 337. Image bounds = 306. 337 - 306 = 31px */
}

/* Cert Item */
.cert-item {
    text-align: center;
}

.cert-item .img-box {
    background-color: #fff;
    margin-bottom: 0px;
    overflow: hidden;
}

.cert-grid-3 .img-box {
    width: 200px;
    height: 282px;
}

.cert-grid-4 .img-box {
    width: 185px;
    height: 261px;
}

.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    vertical-align: top;
}

.cert-item p {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: -0.5px;
    color: #000;
    margin: 0;
    margin-top: 8px;
    /* Original gap 290 - 282 = 8, 270 - 261 = 9. Averaged to 8px for visual tight text */
}

/* Responsive adjustments */
@media screen and (max-width: 1100px) {
    .cert-section {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
    }

    .cert-left {
        width: 100%;
        text-align: center;
        margin-bottom: 40px;
        margin-right: 0;
        box-sizing: border-box;
    }

    .cert-left .patent-list {
        justify-content: center;
    }

    .cert-left .logo-img {
        margin: 0 auto 30px;
    }

    .cert-right {
        width: 100%;
        box-sizing: border-box;
    }

    .cert-grid-3,
    .cert-grid-4 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .cert-grid-3 .cert-item,
    .cert-grid-4 .cert-item {
        width: calc(33.333% - 14px);
    }

    .cert-grid-3 .img-box,
    .cert-grid-4 .img-box {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1.4;
    }
}

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

    .cert-grid-3,
    .cert-grid-4 {
        gap: 15px;
    }

    .cert-grid-3 .cert-item,
    .cert-grid-4 .cert-item {
        width: calc(50% - 7.5px);
    }
}