/* --- 테마: Modern Green (어린이집 평가제 준비) --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&family=Pretendard:wght@300;400;500;600;700&display=swap');

:root {
    --mg-primary: #2e8b57;
    --mg-primary-light: #3cb371;
    --mg-primary-dark: #1e6b3e;
    --mg-accent: #f0c040;
    --mg-teal: #5bbfb5;
    --mg-bg: #f7faf8;
    --mg-bg-dark: #eef5f0;
    --mg-text: #2c3e2d;
    --mg-text-light: #5a6e5c;
    --mg-white: #ffffff;
    --mg-shadow: rgba(46,139,87,0.12);
    --mg-border: #d4e8d9;
}

/* ========== Global Body Override ========== */
body {
    font-family: 'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: var(--mg-bg) !important;
    color: var(--mg-text) !important;
    line-height: 1.8 !important;
    word-break: keep-all;
}

/* ========== 글/포스트 컨텐츠 래퍼 ========== */
.premium-content-wrapper {
    font-family: 'Noto Sans KR', 'Pretendard', sans-serif;
    background-color: var(--mg-white);
    color: var(--mg-text);
    line-height: 1.9;
    word-break: keep-all;
    padding: 48px 40px;
    border-radius: 20px;
    margin: 24px auto;
    max-width: 860px;
    box-shadow: 0 4px 24px var(--mg-shadow), 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--mg-border);
    border-top: 4px solid var(--mg-primary);
}

.premium-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--mg-primary-dark);
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--mg-border);
    line-height: 1.4;
}

.premium-content-wrapper h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--mg-primary-dark);
    text-align: left;
    padding-bottom: 12px;
    margin: 44px 0 24px 0;
    border-bottom: 2px solid var(--mg-primary-light);
    border-left: 5px solid var(--mg-primary);
    padding-left: 16px;
}

.premium-content-wrapper h3 {
    font-size: 1.45em;
    font-weight: 600;
    color: var(--mg-primary);
    margin: 32px 0 16px 0;
    padding-left: 14px;
    border-left: 4px solid var(--mg-teal);
}

.premium-content-wrapper h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--mg-text);
    margin: 24px 0 12px 0;
}

.premium-content-wrapper p {
    font-size: 1.05em;
    line-height: 1.9;
    color: var(--mg-text);
    margin-bottom: 18px;
}

.premium-content-wrapper strong {
    color: var(--mg-primary-dark);
    font-weight: 600;
}

.premium-content-wrapper em {
    color: var(--mg-text-light);
    font-style: italic;
}

.premium-content-wrapper ul,
.premium-content-wrapper ol {
    margin: 16px 0 24px 20px;
    padding-left: 10px;
}

.premium-content-wrapper li {
    margin-bottom: 10px;
    line-height: 1.8;
    position: relative;
    padding-left: 8px;
}

.premium-content-wrapper ul li::marker {
    color: var(--mg-primary);
    font-size: 1.1em;
}

.premium-content-wrapper ol li::marker {
    color: var(--mg-primary);
    font-weight: 600;
}

/* ========== 이미지 영역 ========== */
.premium-image-wrapper {
    margin: 32px 0;
    text-align: center;
}

.premium-image-wrapper .image-container {
    position: relative;
    display: inline-block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(46,139,87,0.15);
    border: 1px solid var(--mg-border);
}

.premium-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.ai-disclaimer {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(46,139,87,0.85);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ========== 정보 하이라이트 ========== */
.info-highlight {
    background: linear-gradient(135deg, #f0f9f3 0%, #e8f5ec 100%);
    border-left: 5px solid var(--mg-primary);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 28px 0;
    box-shadow: 0 2px 8px rgba(46,139,87,0.08);
}

.info-highlight p {
    color: var(--mg-text) !important;
    margin: 0 !important;
    font-size: 1.05em;
}

/* ========== 팁/참고 박스 ========== */
.tip-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 5px solid var(--mg-accent);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.tip-box::before {
    content: "TIP";
    display: inline-block;
    background: var(--mg-accent);
    color: #7c5c00;
    font-weight: 700;
    font-size: 0.78em;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.warning-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fde8e8 100%);
    border-left: 5px solid #ef4444;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.checklist-box {
    background: var(--mg-bg);
    border: 2px solid var(--mg-border);
    border-radius: 16px;
    padding: 28px;
    margin: 28px 0;
}

.checklist-box h4 {
    color: var(--mg-primary-dark);
    margin-top: 0;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mg-border);
    margin-bottom: 16px;
}

.checklist-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.checklist-box ul li {
    padding: 8px 0 8px 32px;
    position: relative;
    border-bottom: 1px solid rgba(212,232,217,0.5);
}

.checklist-box ul li:last-child {
    border-bottom: none;
}

.checklist-box ul li::before {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 8px;
    color: var(--mg-primary);
    font-weight: 700;
    font-size: 1.1em;
}

/* ========== 통계/수치 카드 ========== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.stat-card {
    background: var(--mg-white);
    border: 1px solid var(--mg-border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--mg-shadow);
}

.stat-card .stat-number {
    font-size: 2em;
    font-weight: 800;
    color: var(--mg-primary);
    display: block;
}

.stat-card .stat-label {
    font-size: 0.9em;
    color: var(--mg-text-light);
    margin-top: 4px;
}

/* ========== FAQ 섹션 ========== */
.faq-section {
    margin: 40px 0;
}

.faq-item {
    background: var(--mg-bg);
    border: 1px solid var(--mg-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--mg-primary-light);
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 1.08em;
    color: var(--mg-primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(46,139,87,0.05);
}

.faq-question::after {
    content: "+";
    font-size: 1.4em;
    font-weight: 300;
    color: var(--mg-primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    color: var(--mg-text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

/* ========== 버튼/CTA 섹션 ========== */
.premium-purchase-section {
    text-align: center;
    margin: 48px auto;
    padding: 44px 36px;
    background: linear-gradient(135deg, #f0f9f3 0%, #e0f2e5 100%);
    border-radius: 20px;
    border: 1px solid var(--mg-border);
    box-shadow: 0 4px 20px var(--mg-shadow);
}

.purchase-content h3 {
    color: var(--mg-primary-dark) !important;
    font-size: 1.7em !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    border: none !important;
    padding: 0 !important;
}

.purchase-content p {
    color: var(--mg-text-light);
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.05em;
}

.premium-purchase-button {
    display: inline-block !important;
    padding: 16px 48px !important;
    font-size: 1.2em !important;
    font-weight: 600 !important;
    color: var(--mg-white) !important;
    background: linear-gradient(145deg, var(--mg-primary), var(--mg-primary-dark)) !important;
    border: none !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(46,139,87,0.3) !important;
    cursor: pointer !important;
    letter-spacing: 0.3px !important;
}

.premium-purchase-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(46,139,87,0.4) !important;
    background: linear-gradient(145deg, var(--mg-primary-light), var(--mg-primary)) !important;
}

/* ========== 테이블 ========== */
.premium-content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.premium-content-wrapper th {
    background: var(--mg-primary);
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.premium-content-wrapper td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--mg-border);
    font-size: 0.95em;
}

.premium-content-wrapper tr:nth-child(even) {
    background: var(--mg-bg);
}

.premium-content-wrapper tr:hover {
    background: #e8f5ec;
}

/* ========== 타임라인 ========== */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 32px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--mg-primary-light), var(--mg-teal));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: var(--mg-bg);
    border-radius: 12px;
    border: 1px solid var(--mg-border);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 20px;
    width: 14px;
    height: 14px;
    background: var(--mg-primary);
    border-radius: 50%;
    border: 3px solid var(--mg-white);
    box-shadow: 0 0 0 2px var(--mg-primary-light);
}

.timeline-item h4 {
    margin-top: 0;
    color: var(--mg-primary-dark);
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
    .premium-content-wrapper {
        padding: 28px 20px;
        margin: 12px 8px;
        border-radius: 14px;
    }

    .premium-title {
        font-size: 1.6em;
    }

    .premium-content-wrapper h2 {
        font-size: 1.4em;
    }

    .premium-content-wrapper h3 {
        font-size: 1.2em;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .premium-purchase-section {
        padding: 28px 20px;
    }

    .faq-question {
        padding: 14px 18px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .premium-content-wrapper {
        padding: 20px 16px;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }
}

/* ========== 포스트 목록 카드 (홈페이지용) ========== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.post-card {
    background: var(--mg-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--mg-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px var(--mg-shadow);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: 20px;
}

.post-card-title {
    font-size: 1.15em;
    font-weight: 600;
    color: var(--mg-primary-dark);
    margin-bottom: 8px;
    line-height: 1.5;
}

.post-card-excerpt {
    font-size: 0.92em;
    color: var(--mg-text-light);
    line-height: 1.7;
}

/* ========== 링크 스타일 ========== */
.premium-content-wrapper a {
    color: var(--mg-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.premium-content-wrapper a:hover {
    color: var(--mg-primary-dark);
}

/* ========== 코드/인용 ========== */
.premium-content-wrapper blockquote {
    border-left: 4px solid var(--mg-teal);
    margin: 24px 0;
    padding: 16px 24px;
    background: var(--mg-bg);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--mg-text-light);
}

/* ========== 스크롤 애니메이션 ========== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
