@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --text: #111;
    --point-red: #c84d53; /* 강조색(붉은색) */
    --green: #1f7a4d;
    --content-width: 820px; /* 본문 기준 폭 */
}

body {
    font-family: 'Pretendard', sans-serif;
    background: #fff;
    margin: 0;
    /*padding:40px;*/
    color: var(--text);
    word-break: keep-all;
}

.container.offlinecenter {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== 상단 본문 이미지 ===== */
.container.offlinecenter .header-image-wrap {
    max-width: var(--content-width);
    margin: 0 auto 44px;
}

.container.offlinecenter .header-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 이미지 그리드 : 본문 폭과 동일 ===== */
.container.offlinecenter .grid-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
}

.container.offlinecenter .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3열 유지 */
    gap: 14px; /* gap 축소 */
}

.container.offlinecenter figure {
    margin: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: none; /* 카드 그림자 제거 */
    overflow: hidden;
}

.container.offlinecenter img {
    width: 100%;
    display: block;
}

.container.offlinecenter figcaption {
    padding: 12px 14px 14px;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    body {
        padding: 0 !important;
    }
    .container.offlinecenter .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .container.offlinecenter .header-image-wrap,
    .container.offlinecenter .grid-wrap {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .container.offlinecenter .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 섹션 공통 스타일 ===== */
.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* 붉은색 꽃무늬 아이콘 (유사하게 CSS로 표현) */
.section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--point-red);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--point-red); /* 이중 테두리 효과로 꽃 느낌 */
    /* 이미지 아이콘이 있다면 background-image로 대체 가능 */
}

.section-desc {
    font-size: clamp(14px, 2.2vw, 16px);
    color: #333;
    line-height: 1.8;
    text-align: justify; /* 양쪽 정렬 */
    word-break: break-all; /* 모바일 공백 이슈 해결을 위해 글자 단위로 줄바꿈 */
}

.hero {
    position: relative;
}

.hero__inner {
    position: relative;
    max-width: 100%;
    color: var(--text);
}

.hero__title {
    margin: 0;
    font-weight: 800;
    /* 모바일에서도 너무 작아지지 않게 */
    font-size: clamp(24px, 4.2vw, 36px);
    line-height: 1.2;
    text-align: left;
}

.hero__divider {
    height: 2px;
    margin: 14px 0 18px;
    background: #111;
    opacity: .2;
}

.hero__desc {
    margin: 0 0 14px;
    font-size: clamp(14px, 2.2vw, 16px);
    line-height: 1.8;
}

/* 뉴스레터 그리드 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.news-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--green);
}

.news-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
    word-break: keep-all;
}

.news-card-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.news-date {
    font-size: 13px;
    color: #999;
}

.news-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* 작은 화면에서 패딩/레이아웃만 다듬기 */
@media (max-width: 600px) {
    .hero {
        padding: 24px 16px;
    }
}
