/* 공통 기본 스타일 (라이트모드만) */

/* 박스 사이징 전역 설정 */
*, *::before, *::after {
    box-sizing: border-box;
}

.post-wrapper {
    line-height: 2.1;
    color: #2c2c2c;
    background: transparent !important;
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    max-width: 750px;
    margin: 0 auto;
    padding: 40px 20px;
    word-break: keep-all; /* 한글 단어 단위 줄바꿈 유지 */
}

/* 이미지 반응형 */
.post-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 표(Table) 반응형 */
.post-wrapper table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

/* 테이블 가로 스크롤 — 박스 밖으로 안 넘치도록 */
.post-wrapper .tip-box,
.post-wrapper .action-box,
.post-wrapper div[style] {
    overflow-x: auto;
}

.post-wrapper table td,
.post-wrapper table th {
    padding: 10px 12px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 박스 안 테이블 배경 초기화 — 인라인 bgcolor 무력화, 우측 공백 흰색 방지 */
.tip-box table,
.action-box table {
    background-color: transparent !important;
}
.tip-box table td,
.action-box table td {
    background-color: transparent !important;
}

.intro-header { margin-bottom: 60px; }

/* ========================================
    수정된 부분: 인사말 줄바꿈 및 레이아웃 최적화
   ======================================== */
.intro-greeting {
    display: block !important;          /* flex 제거 -> block으로 변경하여 <br> 허용 */
    white-space: normal !important;     /* 텍스트 줄바꿈 강제 허용 */
    font-size: 1.1em;
    font-weight: 800;
    margin: 0 0 20px 0;
    border: none !important;
    color: #2c2c2c !important;
    line-height: 1.5 !important;        /* 줄바꿈 시 문장 간격 확보 */
}

.brand-highlight {
    color: var(--point-color);
    font-weight: 900;
}

.intro-lead-text {
    font-size: 1.15em;
    font-weight: 700;
    color: #2c2c2c;
    display: block;
    margin-bottom: 10px;
}

h2.section-title {
    font-size: 1.75em;
    margin: 80px 0 30px;
    font-weight: 800;
    letter-spacing: -1px;
    border-top: none;
    border-right: none;
    border-bottom: none;
    color: #2c2c2c !important;
}

h3.sub-section-title {
    font-size: 1.3em;
    margin: 40px 0 15px;
    font-weight: 700;
    color: var(--point-color);
}

.philosophy-box {
    margin: 60px 0;
    padding: 25px 30px;
    border-left: 6px solid var(--point-color);
    background-color: rgba(16, 185, 129, 0.03);
}

.tip-box {
    background-color: #f1f3f5;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}

.tip-box h3 {
    margin-top: 0;
    color: #2c2c2c;
    font-size: 1.2em;
    font-weight: 700;
}

.tip-box p,
.tip-box li {
    color: #2c2c2c;
}

.action-box {
    background-color: #fff4e6;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ffd8a8;
    margin: 40px 0;
}

.action-box h3 {
    margin-top: 0;
    color: #2c2c2c;
    font-size: 1.2em;
    font-weight: 700;
}

.action-box p,
.action-box li {
    color: #2c2c2c;
}

.dream-message {
    text-align: center;
    margin: 120px 0 80px;
    font-weight: 800;
    font-size: 1.25em;
    color: #2c2c2c;
    line-height: 1.9;
}

.brand-footer-box {
    margin-top: 100px;
    padding: 45px;
    border: 2px solid var(--point-color);
    text-align: center;
    border-radius: 16px;
}

.brand-footer-box strong {
    display: block;
    font-size: 1.6em;
    font-weight: 900;
    color: var(--point-color);
    margin-bottom: 15px;
}

.brand-footer-box p {
    color: #2c2c2c;
}

ul, ol { margin: 20px 0; padding-left: 20px; }
li { margin-bottom: 10px; }

/* ===== 모바일 반응형 미디어 쿼리 ===== */

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
    .post-wrapper {
        padding: 30px 15px;
        line-height: 1.9;
    }

    .intro-greeting {
        font-size: 1em;
        display: block !important;      /* 모바일 레이아웃 강제 고정 */
        white-space: normal !important;
    }

    .intro-lead-text {
        font-size: 1.05em;
    }

    h2.section-title {
        font-size: 1.5em;
        margin: 60px 0 25px;
    }

    h3.sub-section-title {
        font-size: 1.15em;
        margin: 30px 0 12px;
    }

    .philosophy-box {
        padding: 20px 15px;
        margin: 40px 0;
    }

    .tip-box,
    .action-box {
        padding: 20px;
        margin: 30px 0;
    }

    .dream-message {
        font-size: 1.1em;
        margin: 80px 0 60px;
    }

    .brand-footer-box {
        padding: 30px 20px;
        margin-top: 60px;
    }

    .brand-footer-box strong {
        font-size: 1.35em;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    .post-wrapper {
        padding: 20px 12px;
        line-height: 1.8;
    }

    .intro-greeting {
        font-size: 0.95em;
        display: block !important;
        white-space: normal !important;
    }

    .intro-lead-text {
        font-size: 1em;
    }

    h2.section-title {
        font-size: 1.3em;
        margin: 50px 0 20px;
        letter-spacing: -0.5px;
    }

    h3.sub-section-title {
        font-size: 1.1em;
        margin: 25px 0 10px;
    }

    .philosophy-box {
        padding: 15px 12px;
        margin: 30px 0;
        border-left-width: 4px;
    }

    .tip-box,
    .action-box {
        padding: 15px;
        margin: 25px 0;
        border-left-width: 4px;
    }

    .tip-box h3,
    .action-box h3 {
        font-size: 1.1em;
    }

    /* 버튼형 링크 — 인라인 style의 white-space: nowrap 때문에
       글자가 길면 overflow-x: hidden에 가려 우측이 잘려 보이는 문제 수정 */
    .post-wrapper a[style*="inline-block"] {
        white-space: normal !important;
        max-width: 100%;
        word-break: keep-all;
    }

    .dream-message {
        font-size: 1em;
        margin: 60px 0 40px;
        line-height: 1.7;
    }

    .brand-footer-box {
        padding: 25px 15px;
        margin-top: 50px;
    }

    .brand-footer-box strong {
        font-size: 1.2em;
        margin-bottom: 12px;
    }

    ul, ol {
        padding-left: 18px;
    }

    li {
        margin-bottom: 8px;
    }
}
