@media (min-width: 1650px) {
    .container {
        max-width: 1550px;
    }
}
@media (max-width: 1650px) {
    .container {
        max-width: 1320px;
    }
}
@media (max-width: 1400px) {
    .container {
        max-width: 1235px;
    }
}
@media (max-width: 1300px) {
    .container {
        max-width: 1000px;
    }
    body {font-size: 0.95rem;}
    .logo {
        max-width: 200px;
        top: 25px;
    }
    .gnb-item, .gnb-item ul li {width: 115px;}
    .family-site-box {
        width: 130px;
        padding: 8px 15px;
    }
    .main .map {right: 0;}
}
/* ===================== */
/* 태블릿 */
/* ===================== */
.m-btn, .mobile-menu {
    display: none;
}
.m-btn {
    width: 95px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 99;
    padding: 8px 25px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    color: #123d7a;
    font-size: 15px;
    transition: all 0.25s ease;
}
.intro .m-btn {color: #fff;}
.m-gnb .col-3 {width: 35%;}
.m-gnb .col-9 {width: 65%;}

/* 모바일 메뉴 */
.m-btn.menu-close {
    color: #fff;
}
.mobile-gnb, .mnav-sub {
    padding: 0;
}
.mobile-menu {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s;
    z-index: 9999;
    width: 100%;
    top: 0;
    left: 0;
}
.mobile-menu .logo {
    background: url(/images/logo-terraone-w.png) no-repeat !important;
    background-size: 100% auto !important;
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-inner {
    padding: 0 25px;
    margin-top: 80px;
}
.mnav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.mnav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
}
.mnav-link {
    color: #fff;
    font-size: 21px;
    font-weight: bold;
}
.mnav-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: 0.3s;
}
.mnav-item.open .mnav-arrow {
    transform: rotate(-135deg);
}
.mnav-sub {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s;
    padding: 0 8px;
}
.mnav-item.open .mnav-sub {max-height: 500px;}
.mnav-sub a {
    display: block;
    color: #ffffff;
    padding: 10px 0;
    text-decoration: none;
}
.mnav-sub li:last-child a {padding-bottom: 30px;}
.mnav-sub a.active {color: #00d4ff;}

@media (max-width: 1200px) {
    .gnb-box,
    .family-site-box {display: none;}
    .m-btn {display: block !important;}
    .lang.dropdown {
        top: 12px;
        right: 110px;
        position: absolute;
    }
    .mobile-menu {display: block}
    .main .map {
        position: relative;
        left: 25px;
        margin-top: 35px;
    }
    .main .news {margin: 0;}
    .logo, .intro .logo,
    .intro header:hover .logo{
        width: 150px;
        background-size: 100% auto;
        background-repeat: no-repeat;
    }
    .intro header:hover .logo {
        background: url(/images/logo-terraone-w.png) no-repeat;
        background-size: 100%;
        max-width: 160px;
    }
}

@media (max-width: 1080px) {
    .container {
        max-width: 840px;
    }
    .main .sites .data {
        position: relative;
        text-align: center;
    }
    #section4 .col-8 {width: 50%;}
    #section4 .safed-zone .box.col-4 {width: 50%;}
    #section4 .row {align-items: flex-start !important;}
    #section4 .safed-zone .row {
        align-items: stretch !important;
    }
}
@media (max-width: 960px) {
    .container {
        max-width: 720px;
    }
    .intro .main section.p-0 {height: 100vh;}
    .intro .main section {height: 75vh;}
    .main .container.business .row .col-3 {
        display: flex;
        flex-direction: column;
        width: 50%;
        flex: auto;
        margin-bottom: 25px;
    }
    .main .container.business .row .col-4 {
        display: flex;
        flex-direction: column;
        width: 100%;
        flex: auto;
        margin-bottom: 25px;
        padding: 0;
    }
    .intro .main section.sites {
        height: auto;
        padding: 5em 0;
    }
    .history .box .col-5 div img {height: 260px;}
    .linear-box {max-height: max-content !important;}
    .flex-container {height: min(720px, 20vh);}
    .aiinfra .content section {
        height: auto;
        padding: 10em 0;
    }
    .aiinfra .display-5 {font-size: calc(1rem + 2.1vw);}
    .infra .recoard-box .col-3 {width: 33.33333333%;}
    .restarea .recoard-box .col-3 {width: 50%;}
    .env-label {display: none;}
    .news .card img {max-height: 150px;}
    #section4 .col-8 {width: 100%;}
    #section4 .col.pc-box img {
        width: 100%;
        margin-top: 35px;
    }
}
/* ===================== */
/* 모바일 */
/* ===================== */

@media (max-width: 540px) {
    body {font-size: 16px;}
    p {
        font-size: 15px;
    }
    .m-br br {display: none;}
    .title {
        padding-top: 100px;
    }
    .container {
        padding-right: 25px;
        padding-left: 25px;
    }
    .row {
        margin: 0;
    }
    .intro .main section {
        height: auto;
    }
    .custom-marker-body {
        width: 25px;
        height: 25px;
    }
    .custom-marker-dot {
        width: 15px;
        height: 15px;
    }
    .col-3 {width: 50%;}
    .footer .container {flex-direction: column !important}
    .swiper-pagination-container {bottom: 10%;}
    .greeting .col-4, .greeting .col-7,
    .ci .col-4, .ci .col-7,
    .history .col-5, .history .col-6,
    .esg .col-4,
    .restarea .col-3 {
        width: 100% !important;
    }
    .ci .col-4 {margin-bottom: 20px;}
    .ci .p-5.border.mt-5 {
        margin-top: 10px !important;
    }
    .history .col-5, .history .col-6 {width: 100%;}
    .main .business .col-3,
    .main .business .col-4 {
        width: 100% !important;
        margin-bottom: 20px;
        flex: none !important;
        padding: 0;

    }
    .main .business .card {min-height: 200px;}
    .main .title h1 {font-size: 31px;}
    .news .thumbnail {width: 100%;}
    .news .card img {max-height: 200px;}
    .content section {padding: 50px 0;}
    .title {
        padding-top: 150px;
    }
    .title h1 {
        text-align: center;
    }
    .process-zone .col {
        width: 50%;
    }
    h5 {font-size: 15px;}
    hr {margin: 5rem 0;}
    .contact .col-4, .contact .col-7 {width: 100%;}
    .infra .title {
        padding-top: 150px;
        color: #fff;
        height: auto;
        padding-bottom: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .infra .content .title {
        padding-bottom: 0;
    }
    .core .card {
        padding: 25px;
    }
    .core .card h2 br {
        display: none;
    }
    .core .col-4, .core .col-8 {width: 100%;}
    .core .row .col-8 .card {
        flex-direction: column;
        gap: 20px;
    }
    .recoard-box .col-3,
    .recoard-box .col-4 {width: 100% !important;}
    .flex-container .flex-slide {
        object-fit: cover;
        background-size: 250% !important;
    }
    .flex-container .flex h2 {font-size: 15px;}
    .hr-bottom button {width: 49%; margin-top: 15px;}
    .aiinfra .row .row {
        margin: 0 -15px;
    }
    .aiinfra section {
        height: auto;
        padding: 50px 0 !important;
    }
    .aiinfra .col-4, .aiinfra .col-8, .aiinfra .col-6,
    .aiinfra .col-7, .aiinfra .col-5, .aiinfra .col-3 {width: 100%; text-align: left;}
    .aiinfra .justify-content-between {
        flex-direction: column-reverse !important;
    }
    .aiinfra .record {margin-top: 25px; height: auto;}
    .aiinfra .record img {height: auto;}
    .aiinfra .energy-icon-wrap h2 {
        font-size: 15px !important;
        letter-spacing: -0.5px;
    }
    .aiinfra .col-7.text-end {text-align: left !important;}
    .aiinfra .energy-icon-wrap svg, .aiinfra #section5 .energy-icon-wrap .img-fluid {width: 75px; height: 75px;}
    .aiinfra .energy-icon-wrap {flex-direction: row; gap: 15px; text-align: left;}
    .infra .content .title {
        padding-top: 0 !important;
    }
    .hr-bottom button {
        padding: 10px 15px;
    }
    .esg-e .mb-5.pb-5 {
        margin-bottom: 0 !important;
    }
    .history .box {
        margin-bottom: 50px;
        flex-direction: column-reverse !important;
    }
    .history .box .col-5 div img {
        height: 270px;
    }
    .history .year {font-size: 36px !important;}
    .history dl {
        padding: 10px 0;
    }
    .flex-container.flex-slide-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }
    .flex-container.flex-slide-4 .flex-slide {
        flex: none;
        aspect-ratio: 1 / 1;
        background-size: cover;
    }
    .flex-container.flex-slide-4 .flex-slide:last-child {
        grid-column: 1 / -1;
        max-height: 195px;
        width: 100%;
    }
    #section4 .col-8 {
        padding: 0 !important;
    }

}