@charset "utf-8";

.mw_biz_wrap {
    color: #1e293b;
}

/* Hero Intro Section (biz_1, biz_2와 완벽히 통합된 스타일) */
.mw_biz_intro {
    text-align: center;
    margin: 0 auto 60px auto;
    padding: 0 20px 0 20px;
}

.mw_biz_title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    word-break: keep-all;
    margin: 0 0 24px 0;
}

.mw_biz_title span {
    color: var(--point-color, #da251c);
}

.mw_biz_desc {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #475569;
    word-break: keep-all;
    margin: 0;
    text-align: justify;
    text-align-last: center;
}

/* Section Common Titles */
.mw_sec_head {
    text-align: center;
    margin-bottom: 40px;
}

.mw_sec_title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.mw_sec_sub {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
    word-break: keep-all;
}

/* Image Gallery Section (1행 4열 디자인) */
.mw_rd_gallery_wrap {
    margin-top: 40px;
    margin-bottom: 90px;
}

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

.mw_rd_img_card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.mw_rd_img_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
}

.mw_rd_img_box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f1f5f9;
}

.mw_rd_img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mw_rd_img_card:hover .mw_rd_img_box img {
    transform: scale(1.06);
}

.mw_rd_img_overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.mw_rd_img_card:hover .mw_rd_img_overlay {
    opacity: 1;
}

.mw_rd_img_overlay i {
    color: #ffffff;
    font-size: 2.2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.mw_rd_img_card:hover .mw_rd_img_overlay i {
    transform: scale(1);
}

/* Modal Layer Popup */
.mw_modal_layer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(37, 37, 37, 0.75);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.mw_modal_content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw_modal_content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.mw_modal_close {
    position: absolute;
    top: -45px;
    right: -10px;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.mw_modal_close:hover {
    transform: scale(1.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Patent & Certificate Section (100vw 전체 화면 폭, 테두리 없음, 뱃지 없음, 1행 3열) */
.mw_cert_section {
    background: #f8fafc;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 80px 0;
    box-sizing: border-box;
}

.mw_cert_container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.mw_cert_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
    margin-top: 40px;
}

.mw_cert_card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.mw_cert_img_box {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 14px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mw_cert_card:hover .mw_cert_img_box {
    border-color: #cbd5e1;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);*/
}

.mw_cert_img_box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}

.mw_cert_title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    word-break: keep-all;
}

/* Responsive Design */
@media (max-width: 992px) {
    .mw_biz_title {
        font-size: 2.2rem;
    }

    .mw_biz_desc {
        font-size: 1.05rem;
        text-align: center;
    }

    .mw_rd_gallery_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .mw_cert_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .mw_cert_section {
        padding: 60px 0;
    }
}

@media (max-width: 640px) {
    .mw_biz_title {
        font-size: 1.8rem;
    }

    .mw_biz_desc {
        font-size: 1rem;
    }

    .mw_rd_gallery_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mw_cert_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .mw_cert_section {
        padding: 40px 0;
    }
}