* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
}

/* 상단 타이틀 */
.header {
    background: white;
    color: #1a237e;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #e0e0e0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.header-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-top: 2px;
}

/* 소식지 영역 */
.news-section {
    padding: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* 소식지 배너 */
.news-banner img {
    width: 100%;
    display: block;
}

.news-meta {
    background: #e8eaf6;
    padding: 10px 20px;
    text-align: center;
}

.news-date {
    color: #3949ab;
    font-size: 13px;
    font-weight: 600;
}

/* 소식지 헤드라인 */
.news-headline {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 24px 20px;
    text-align: center;
    margin: 0 -20px;
}

.news-headline h2 {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
    color: white;
}

.headline-sub {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    color: white !important;
}

/* 소식지 본문 */
.news-content {
    padding: 20px;
    line-height: 1.75;
    font-size: 15px;
}

.news-body p {
    margin-bottom: 14px;
    color: #444;
    text-align: justify;
    word-break: keep-all;
}

.news-section-title h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a237e;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8eaf6;
}

/* 사진 */
.news-photo {
    margin: 16px 0;
}

.news-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 요구안 박스 */
.news-box {
    background: #f8f9ff;
    border: 1px solid #d0d4f0;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.news-box h3 {
    font-size: 16px;
    font-weight: 900;
    color: #1a237e;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3949ab;
}

.news-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #3949ab;
    margin: 16px 0 8px;
}

.news-box ol, .news-box ul {
    padding-left: 20px;
    margin-bottom: 8px;
}

.news-box li {
    margin-bottom: 4px;
    font-size: 14px;
    color: #444;
}

.news-box p {
    margin-bottom: 4px;
}

.news-box strong {
    color: #1a237e;
    font-size: 14px;
}

/* 가입 안내 */
.news-join {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e8eaf6;
}

.join-button {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    padding: 20px 32px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    letter-spacing: -0.3px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(26, 35, 126, 0.3);
}

.join-button:active {
    transform: scale(0.97);
}

/* FAQ 플로팅 버튼 */
.faq-toggle {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(26, 35, 126, 0.35);
    z-index: 200;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.faq-toggle:active {
    transform: translateX(-50%) scale(0.96);
}

.faq-icon {
    width: 24px;
    height: 24px;
    background: white;
    color: #1a237e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
}

.faq-label {
    font-size: 15px;
    font-weight: 700;
}

/* FAQ 오버레이 */
.faq-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.faq-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* FAQ 패널 */
.faq-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 400;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}

.faq-panel.active {
    transform: translateY(0);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 12px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 20px 20px 0 0;
}

.faq-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a237e;
}

.faq-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.faq-item {
    border-bottom: 1px solid #f0f0f0;
}

.faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

.faq-question:active {
    background: #f5f5f5;
}

.faq-q-icon {
    width: 28px;
    height: 28px;
    background: #e8eaf6;
    color: #3949ab;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    flex-shrink: 0;
}

.faq-q-text {
    flex: 1;
}

.faq-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.faq-item.open .faq-answer {
    max-height: 2000px;
}

.faq-cards {
    padding: 4px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-card {
    background: linear-gradient(135deg, #e8eaf6, #f5f5ff);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    border-left: 3px solid #3949ab;
}

.faq-card strong {
    color: #1a237e;
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.faq-card ul {
    padding-left: 16px;
    margin-top: 8px;
}

.faq-card li {
    margin-bottom: 4px;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    .faq-toggle {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
    .faq-panel {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
