@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

@font-face {
    font-family: 'Salonica';
    src: url('/fonts/Salonica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --main-green: #1b6331;
}

/* ======================================
   BASE
====================================== */
.overview-page {
    font-family: 'Pretendard', 'Jost', sans-serif;
    background: #fff;
    color: #111;
    letter-spacing: -0.02em;
    overflow-x: hidden;
}

/* ======================================
   1. HEADER (공통 리듬 적용)
====================================== */
.overview-header {
    text-align: center;
    padding: 0;
}

.top-title {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 400;
    color: #222;
    margin-bottom: 0.6rem;
}

.top-sub {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: #777;
    margin-bottom: 1.2rem;
}

.main-title {
    font-family: 'Jost', sans-serif;
    color: var(--main-green);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.desc {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    color: #444;
    line-height: 1.9;
    font-weight: 400;
}

.since {
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 6rem;
    letter-spacing: 0.1em;
    color: #000;
}

/* ======================================
   2. MAIN SECTION (이미지 + 텍스트)
====================================== */
.overview-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto 6rem;
}

.overview-image img {
    width: clamp(480px, 40vw, 640px);
    border-radius: 6px;
}

.overview-text {
    flex: 1;
    min-width: 380px;
    max-width: 640px;
}

.overview-text h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
    line-height: 1.6;
}

.overview-text h4 {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    font-weight: 700;
    color: var(--main-green);
    margin-bottom: 1.2rem;
}

.overview-text p {
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    color: #444;
    line-height: 1.9;
    word-break: keep-all;
}

/* ======================================
   3. FEATURE SECTION (3요소 카드)
====================================== */
.overview-features {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
    text-align: center;
}

.feature-item {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
}

.feature-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.feature-item h4 {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.feature-item h4::before {
    content: attr(data-num);
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 700;
    color: #000;
}

.feature-item h4 span {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    font-weight: 500;
    color: #222;
}

.feature-item p {
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    color: #444;
    line-height: 1.8;
}

.feature-item p:last-of-type {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: #000;
    margin-top: 0.4rem;
    letter-spacing: 0.05em;
}

/* ======================================
   4. BOTTOM SECTION
====================================== */
.overview-bottom {
    text-align: center;
    padding: 4rem 1rem 1rem;
}

.script-en {
    font-family: 'Salonica', cursive;
    font-size: clamp(2rem, 6vw, 5rem);
    color: #000;
    margin-top: -3rem;
    margin-bottom: 3rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.bottom-desc {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    color: #444;
    line-height: 1.8;
    max-width: 1100px;
    margin: 0 auto;
}

/* ======================================
   RESPONSIVE
====================================== */

/* --- 1200px 이하 --- */
@media (max-width: 1200px) {
    .overview-header {
        padding: 0;
    }

    .overview-main {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        margin-bottom: 5rem;
    }

    .overview-image img {
        width: 100%;
        max-width: 560px;
    }

    .overview-text {
        text-align: center;
        max-width: 700px;
    }

    .overview-features {
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .feature-item {
        max-width: 320px;
    }

    .script-en {
        margin-top: -2rem;
        margin-bottom: 2rem;
    }
}

/* --- 900px 이하 --- */
@media (max-width: 900px) {
    .overview-main {
        gap: 2.5rem;
    }

    .overview-text h3 {
        font-size: 1.3rem;
    }

    .overview-text p {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .feature-item h4::before {
        font-size: 1.6rem;
    }

    .overview-features {
        gap: 1.8rem;
    }

    .feature-item {
        min-width: 260px;
    }

    .overview-bottom {
        padding: 3.5rem 1rem;
    }

    .script-en {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
}

/* --- 800px 이하 --- */
@media (max-width: 800px) {
    .overview-header {
        padding: 0 0.5rem;
    }

    .overview-main {
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .overview-text h3 {
        font-size: 1.2rem;
    }

    .overview-text h4 {
        font-size: 0.9rem;
    }

    .overview-text p {
        font-size: 0.85rem;
    }

    .overview-features {
        gap: 1.5rem;
    }

    .feature-item {
        max-width: 400px;
    }

    .overview-bottom {
        padding: 3rem 1rem;
    }

    .script-en {
        font-size: 2rem;
        margin-top: -1rem;
        margin-bottom: 1.5rem;
    }
}

/* --- 600px 이하 --- */
@media (max-width: 600px) {
    .overview-main {
        gap: 1.8rem;
    }

    .overview-text {
        text-align: center;
    }

    .overview-text h3 {
        font-size: 1.1rem;
    }

    .overview-text p {
        font-size: 0.8rem;
        line-height: 1.7;
    }

    .overview-features {
        gap: 1.2rem;
    }

    .feature-item {
        max-width: 400px;
    }

    .overview-bottom {
        padding: 2.5rem 1rem;
    }

    .script-en {
        font-size: 1.8rem;
    }

    .bottom-desc {
        font-size: 0.85rem;
    }
    .since {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
}

/* --- 400px 이하 --- */
@media (max-width: 400px) {
    .top-title {
        font-size: 1.1rem;
    }

    .main-title {
        font-size: 0.95rem;
    }

    .overview-main {
        gap: 1.2rem;
    }

    .overview-text p {
        font-size: 0.78rem;
        line-height: 1.6;
    }

    .feature-item img {
        margin-bottom: 1rem;
    }

    .script-en {
        font-size: 1.5rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .bottom-desc {
        font-size: 0.8rem;
        line-height: 1.6;
    }
}
