@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800;900&display=swap');

/* 
   부산지역아동센터협의회 (부지협) 메인 스타일시트
   Premium Design: Blue Theme, Modern Typography, Micro-animations 
*/

:root {
    /* Brand Colors - Blue Theme */
    --color-primary: #0056b3; /* Deep Blue */
    --color-primary-light: #3384ff; /* Vibrant Blue */
    --color-primary-dark: #003d82; /* Dark Blue */
    --color-secondary: #ff6b6b; /* Accent Color (Warm) */
    
    /* Backgrounds & Neutrals */
    --color-bg-white: #ffffff;
    --color-bg-gray: #f8fafc;
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;

    /* Shadows - Modern Soft UI */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 18px; /* 전반적인 폰트 크기 확대 */
    overflow-x: hidden;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.py-section {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--color-bg-gray);
}

.mt-4 { margin-top: 1rem; }
.font-bold { font-weight: 700; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 86, 179, 0.39);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.23);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Header & Nav */
.header {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

/* Top Utility Bar */
.header-top {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.header-top-container {
    display: flex;
    justify-content: flex-end;
}

.top-util-wrapper {
    display: flex;
    align-items: center;
}

.top-util-list {
    display: flex;
    align-items: center;
    height: 40px;
    font-size: 0.85rem;
    color: #555;
}

.top-util-list li {
    display: flex;
    align-items: center;
}

.top-util-list a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    transition: color var(--transition-fast);
}

.top-util-list a:hover {
    color: var(--color-primary);
}

.top-util-list .divider {
    width: 1px;
    height: 12px;
    background-color: #ddd;
}

.lang-select {
    font-weight: 600;
}

/* Auth Button (Login/Signup) */
.auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px;
    height: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--color-primary);
    color: #ffffff;
    white-space: nowrap;
    transition: background-color var(--transition-fast);
}

.auth-btn:hover {
    background-color: var(--color-primary-dark);
}

/* Main Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 44px; /* 로고 높이에 맞춰 조절 가능 */
    width: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text-main);
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.all-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 5px;
}

.all-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #111;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Impact Statistics Section (Soft UI Card Design) */
.impact-section {
    padding: 80px 0;
    background-color: var(--color-bg-gray); /* 연한 회색 배경과 자연스럽게 어우러짐 */
    position: relative;
}

.impact-header {
    text-align: center;
    margin-bottom: 60px;
}

.impact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: var(--color-text-main);
}

.impact-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.impact-card {
    background: white;
    border-radius: 24px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 86, 179, 0.1);
}

/* 아이콘 효과 (Soft UI - 흰 배경에 파란 선) */
.impact-icon {
    font-size: 2.5rem;
    color: var(--color-primary); /* SVG 아이콘 선 색상 지정 (currentColor) */
    margin-bottom: 20px;
    background: white; /* 깔끔한 흰색 배경 */
    border: 1px solid rgba(0, 86, 179, 0.1); /* 얇고 은은한 파란색 테두리 */
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.08); /* 부드러운 파란빛 그림자 */
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.impact-card:hover .impact-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.15); /* 호버 시 그림자 강조 */
}

.impact-number-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 8px;
}

/* 프리미엄 블루 그라데이션 타이포그래피 */
.impact-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.impact-plus {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-secondary); /* 포인트 컬러 (코랄/레드 계열) 적용 */
    margin-left: 4px;
    line-height: 1;
}

.impact-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-top: 8px;
}
/* Partners Section (Marquee) */
.partner-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe); /* 연한 파스텔 블루 그라데이션, 분위기 밝게 */
    padding: 60px 0;
    overflow: hidden;
}

.partner-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary); /* 브랜드 파란색 강조 */
    margin-bottom: 40px;
}


.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* 양쪽 끝을 투명하게 처리 (페이드아웃) */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.partner-logo {
    width: 200px;
    height: 80px;
    margin: 0 15px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.partner-logo img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
}

.partner-logo:hover {
    background-color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    color: var(--color-primary);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* 정확히 절반 이동 후 초기화 (무한 반복) */
    }
}

/* Banner Section */
.hero {
    position: relative;
    padding: 220px 0 180px; /* 위아래 여백을 더 주어 영역 높이를 키움 (캐릭터 머리와 위쪽 글씨가 보이게) */
    overflow: hidden;
    background-color: var(--color-bg-gray);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.png') no-repeat center bottom;
    background-size: cover; /* 화면을 꽉 채우되, 중심을 아래쪽으로 맞춰 발이 잘리지 않게 함 */
    opacity: 1;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51,132,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.hero-actions .btn-outline-white {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.hero-actions .btn-outline-white:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Quick Links / Features Grid */
.grid {
    display: grid;
    gap: 24px;
}

/* Donation Section */
.donation-layout {
    display: flex;
    gap: 32px;
    margin-top: -60px; /* Pull up over the hero like before */
    position: relative;
    z-index: 10;
    align-items: stretch; /* 양쪽 박스 높이 맞춤 */
}

.donation-layout .section-title-left {
    min-height: 2.2em; /* 제목 영역 높이 통일 */
    display: flex;
    align-items: flex-end;
}

.donation-form-wrap {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
}

.donation-methods-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-title-left {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* Card overrides */
.donation-form-card, .donation-methods-card {
    background: white;
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    flex: 1; /* 부모 높이에 맞춰 늘어나도록 설정 */
    display: flex;
    flex-direction: column;
}

.donation-methods-card {
    justify-content: center; /* 오른쪽 카드 내용을 세로 중앙 정렬 */
}

.donation-methods-card .methods-grid {
    flex: 1;
    align-content: center; /* 그리드 아이템들을 세로 중앙에 배치 */
}

.donation-form-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Toggle (iOS Style Segment Control) */
.toggle-group {
    display: flex;
    background: #f1f5f9;
    border-radius: 100px;
    padding: 6px;
    position: relative;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
}

.toggle-btn.active {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.donation-msg {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

/* Forms - Modern Background Based */
.form-select, .form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit; /* textarea 폰트 깨짐 방지 */
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-main);
    background-color: #f8fafc;
    outline: none;
    transition: all var(--transition-fast);
}

.form-select:focus, .form-input:focus {
    background-color: white;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 4px rgba(51, 132, 255, 0.15);
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit .form-input {
    padding-right: 40px;
}

.input-with-unit .unit {
    position: absolute;
    right: 20px;
    color: var(--color-text-main);
    font-weight: 700;
}

.btn-donate {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    width: 100%;
    padding: 18px 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.3);
    border: none;
    margin-top: auto; /* 박스 하단에 밀착 */
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 86, 179, 0.4);
    filter: brightness(1.05);
}

/* Methods Grid */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px; /* 상하 간격 축소 및 텍스트 공간 확보를 위해 좌우 간격 축소 */
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 12px; /* 아이콘과 텍스트 사이 간격 축소 */
    padding: 16px;
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.method-item:hover {
    transform: translateY(-4px);
    background-color: #f8fafc;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.method-item.active {
    background-color: #eef4ff;
    border: 2px solid var(--color-primary);
    border-radius: 16px;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.1);
}

.method-item.active .method-icon {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.method-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: white;
    color: var(--color-primary); /* SVG 아이콘 선 색상 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    border: 1px solid rgba(0, 86, 179, 0.1);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.05);
    transition: all var(--transition-normal);
}

.method-icon img {
    width: 24px;
    height: auto;
}

.method-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--color-text-main);
}

.method-text p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.35;
    letter-spacing: -0.3px; /* 2줄에 맞추기 위해 자간 축소 */
    word-break: keep-all; /* 단어 단위로 줄바꿈 (일시기-부 끊김 방지) */
}

/* News & Notices */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.view-all {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.view-all:hover {
    color: var(--color-primary);
}

.news-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.board-header h3, .news-gallery h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-text-main);
}

.news-gallery {
    display: flex;
    flex-direction: column;
    padding-top: 36px; /* 왼쪽 카드의 padding과 동일하게 맞춤 (타이틀 높이 일치) */
}

.board-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.board-list li:last-child {
    border-bottom: none;
}

.board-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}

.board-list a:hover .board-title {
    color: var(--color-primary);
    text-decoration: underline;
}

.badge {
    background: var(--color-bg-gray);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
}

.badge-new {
    background: rgba(255, 107, 107, 0.1);
    color: var(--color-secondary);
}

.board-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.board-date {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.gallery-grid {
    flex: 1; /* 컨테이너 높이에 맞춰 늘어남 */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md); /* 모던 UI 그림자로 변경 */
    border: 1px solid rgba(0,0,0,0.03);
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-img-placeholder {
    height: 160px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-weight: bold;
}

.gallery-item:hover .gallery-img-placeholder {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.gallery-info {
    padding: 20px;
    flex: 1; /* 텍스트 박스가 하단까지 꽉 차게 늘어남 */
    display: flex;
    flex-direction: column;
}

.gallery-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* =========================================
   About Sub-page Styles (기관안내)
   ========================================= */

/* Sub Hero */
.sub-hero {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sub-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

.sub-hero-content {
    position: relative;
    z-index: 1;
}

.sub-hero-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}

.sub-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.sub-hero-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

/* About Intro Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.about-paragraph {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.about-stats-content {
    display: flex;
    gap: 20px;
}

.stat-box {
    flex: 1;
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all var(--transition-normal);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-box-primary {
    background: var(--color-primary);
    color: white;
}

.stat-box-primary .stat-value,
.stat-box-primary .stat-label {
    color: white;
}

.stat-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.stat-unit {
    font-size: 1.5rem;
    font-weight: 600;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Purpose Section */
.purpose-container {
    max-width: 900px;
    margin: 0 auto;
}

.purpose-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.7;
    margin-bottom: 32px;
    text-align: center;
}

.purpose-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    position: relative;
    border-left: 6px solid var(--color-primary);
}

.purpose-card p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.purpose-list-wrap h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text-main);
    text-align: center;
}

.purpose-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.purpose-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

.check-icon {
    width: 32px;
    height: 32px;
    background: #e0f2fe;
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon svg {
    width: 18px;
    height: 18px;
}

.purpose-list p {
    font-size: 1.1rem;
    color: var(--color-text-main);
    line-height: 1.6;
    margin-top: 4px;
}

.purpose-list strong {
    color: var(--color-primary);
}

.purpose-paragraph {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
}

.purpose-quote {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    padding: 32px;
    background: #e0f2fe;
    border-radius: 20px;
}

/* Image Sections */
.image-wrapper {
    width: 100%;
    text-align: center;
}

.mb-section {
    margin-bottom: 80px;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.shadow-img {
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
}

/* CTA Section */
.about-cta-section {
    background: var(--color-primary-dark);
    color: white;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
}

.cta-number {
    font-size: 5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cta-unit {
    font-size: 2.5rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.25rem;
    border-radius: 100px;
}

.cta-btn {
    background: white;
    color: var(--color-primary-dark);
}

.cta-btn:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-text-main);
    color: #94a3b8;
    padding: 60px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    /* 어두운 배경에 로고가 안보일 경우 아래 주석을 해제하여 하얗게 반전시킬 수 있습니다 */
    /* filter: brightness(0) invert(1); */
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* =========================================
   My Donation History Page (Sub Page)
========================================= */

/* Sub Hero */
.sub-hero {
    padding: 160px 0 60px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    text-align: center;
}

.sub-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.sub-desc {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* MyPage Layout */
.mypage-section {
    background-color: var(--color-bg-gray);
    padding-bottom: 80px;
}

.mypage-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: -40px; /* Pull up over hero */
    position: relative;
    z-index: 10;
}

/* Summary Card */
.mypage-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.summary-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--color-text-main);
}

.profile-name strong {
    font-weight: 800;
}

.profile-grade {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-primary {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--color-primary);
}

.badge-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.badge-fill {
    background-color: #f1f5f9;
    color: var(--color-text-main);
}

.summary-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.25rem;
    color: var(--color-text-main);
}

.stat-value strong {
    font-size: 1.5rem;
    font-weight: 800;
}

.stat-value.highlight {
    color: var(--color-primary);
}

/* History Tabs */
.mypage-history {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.history-tabs-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.history-tabs {
    display: flex;
    gap: 24px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
    border-radius: 3px 3px 0 0;
}

.tab-item.active .tab-btn {
    color: var(--color-primary);
}

.tab-item.active .tab-btn::after {
    width: 100%;
}

.tab-btn:hover {
    color: var(--color-primary);
}

.select-sm {
    padding: 8px 32px 8px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* History Table */
.history-table-wrap {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.history-table th {
    background-color: #f8fafc;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
}

.history-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    color: var(--color-text-main);
    vertical-align: middle;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table .amount {
    font-size: 1.1rem;
}

.status {
    font-size: 0.85rem;
    font-weight: 700;
}

.status-success {
    color: #10b981; /* Green */
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.page-link:hover {
    background-color: #f1f5f9;
    color: var(--color-primary);
}

.page-link.active {
    background-color: var(--color-primary);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .donation-layout {
        flex-direction: column;
    }
    
    .donation-form-wrap {
        flex: none;
        width: 100%;
    }
    
    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    .impact-grid {
        flex-direction: column;
        gap: 40px;
    }
    .impact-divider {
        display: none;
    }
    
    .impact-section .container {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 16px;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .header-top {
        display: none; /* 모바일에서는 탑 메뉴 숨김 */
    }
    
    .all-menu-btn {
        display: flex;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .gallery-grid,
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    /* MyPage Responsive */
    .mypage-summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 24px;
    }

    .summary-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
        border-top: 1px solid var(--color-border);
        padding-top: 24px;
    }

    .stat-action {
        width: 100%;
        margin-top: 8px;
    }

    .stat-action .btn {
        width: 100%;
    }

    .mypage-history {
        padding: 24px;
    }

    .history-tabs-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .history-filter {
        width: 100%;
    }

    .history-filter .form-select {
        width: 100%;
    }
}

/* Modals (기부상담 등) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* 어두운 오버레이 */
    backdrop-filter: blur(8px); /* Glassmorphism 효과 */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-text-main);
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.modal-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.consult-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.consult-form label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.textarea-input {
    resize: none;
    height: 120px;
}

/* Modal Two-Column Layout with Mascot */
.consult-modal {
    max-width: 850px; /* 기존 500px에서 확장 */
}

.modal-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

.modal-left {
    flex: 1;
}

.modal-right {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f8fafc; /* var(--color-bg-gray) 대신 안전하게 하드코딩 혹은 변수 사용 */
    border-radius: 20px;
    padding: 30px 20px;
    height: 100%;
}

/* 말풍선 스타일 */
.mascot-speech-bubble {
    background: white;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-primary-dark);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    position: relative;
    margin-bottom: 24px;
    border: 2px solid var(--color-primary-light);
}

.mascot-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 12px 12px 0;
    border-style: solid;
    border-color: var(--color-primary-light) transparent transparent transparent;
    z-index: 1;
}

.mascot-speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
    z-index: 2;
}

.modal-mascot {
    width: 200px;
    height: auto;
    object-fit: contain;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {
    .modal-layout {
        flex-direction: column;
    }
    .modal-right {
        display: none; /* 모바일에서는 깔끔하게 폼만 표시 */
    }
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-tabs-wrap {
    justify-content: center;
    margin-bottom: 40px;
}

.faq-tabs {
    justify-content: center;
    width: auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 86, 179, 0.1);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.q-icon {
    font-family: 'Montserrat', 'Arial Black', sans-serif !important;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.q-text {
    flex: 1;
}

.q-toggle {
    color: var(--color-text-muted);
    transition: transform var(--transition-normal);
    display: flex;
    align-items: center;
}

.faq-item.active .q-toggle {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f8fafc;
}

.answer-inner {
    padding: 0 30px 30px 30px;
    display: flex;
    gap: 16px;
}

.a-icon {
    font-family: 'Montserrat', 'Arial Black', sans-serif !important;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-secondary);
    line-height: 1;
    margin-top: 4px;
}

.a-text {
    flex: 1;
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Distribution Page Styles */
.process-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
    gap: 16px;
    overflow-x: auto;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.process-step .step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-background);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    transition: transform var(--transition-normal);
}

.process-step:hover .step-icon {
    transform: translateY(-5px);
    background-color: var(--color-primary);
    color: white;
}

.step-title {
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.process-arrow {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.distribution-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dist-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dist-card.closed {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.dist-card.closed:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.dist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dist-dday {
    font-weight: 800;
    color: var(--color-secondary);
}

.dist-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--color-text-main);
    flex-grow: 1;
}

.dist-info {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    font-size: 0.95rem;
}

.dist-info li {
    margin-bottom: 8px;
    color: var(--color-text-main);
    display: flex;
    gap: 12px;
}

.info-label {
    color: var(--color-text-muted);
    font-weight: 600;
    min-width: 60px;
}

.dist-action {
    margin-top: auto;
}

.btn-full {
    width: 100%;
    display: block;
    text-align: center;
}

.btn-disabled {
    background-color: #cbd5e1;
    color: white;
    cursor: not-allowed;
    border: none;
}

.badge-ongoing { background-color: var(--color-secondary); color: white; }
.badge-closed { background-color: #64748b; color: white; }
.badge-result { background-color: var(--color-primary-dark); color: white; }
.badge-new { background-color: #f59e0b; color: white; }

@media (max-width: 992px) {
    .distribution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .distribution-grid {
        grid-template-columns: 1fr;
    }
    .process-wrapper {
        flex-direction: column;
    }
    .process-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }
}

/* Board Table & Form Styles */
.board-table-wrap {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.board-table th {
    background-color: #f8fafc;
    color: var(--color-text-main);
    font-weight: 700;
    padding: 16px;
    border-bottom: 2px solid var(--color-primary-light);
}

.board-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.board-table tr:hover td {
    background-color: #f1f5f9;
}

.board-table .text-left {
    text-align: left;
}

.notice-row td {
    background-color: #f8fafc;
    font-weight: 600;
}

.board-link {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 600;
}

.board-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.apply-form .form-group {
    margin-bottom: 20px;
}

.apply-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.apply-form .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: white;
}

.apply-form .form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    outline: none;
}

@media (max-width: 768px) {
    .board-table th:nth-child(1),
    .board-table td:nth-child(1),
    .board-table th:nth-child(4),
    .board-table td:nth-child(4),
    .board-table th:nth-child(5),
    .board-table td:nth-child(5) {
        display: none;
    }
    
    .apply-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}
/* =========================================
   11. Modal Styles (기부상담 모달)
========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content.consult-modal {
    background: #fff;
    width: 90%;
    max-width: 900px;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-text-dark);
}

.modal-layout {
    display: flex;
    flex-wrap: wrap;
}

.modal-left {
    flex: 1;
    padding: 48px;
    min-width: 300px;
}

.modal-right {
    flex: 0 0 320px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.modal-header p {
    color: var(--color-text-body);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.consult-form .form-group {
    margin-bottom: 20px;
}

.consult-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.consult-form .form-input,
.consult-form .form-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fcfcfd;
}

.consult-form .form-input:focus,
.consult-form .form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(51,132,255,0.1);
}

.consult-form .textarea-input {
    resize: vertical;
    min-height: 100px;
}

.btn-donate {
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-donate:hover {
    background: #1e5dd6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(51,132,255,0.3);
}

.mascot-speech-bubble {
    background: #fff;
    padding: 16px 24px;
    border-radius: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.5;
    position: relative;
    margin-bottom: 32px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.mascot-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.modal-mascot {
    width: 180px;
    height: auto;
    animation: floatMascot 3s ease-in-out infinite;
}

@keyframes floatMascot {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {
    .modal-layout {
        flex-direction: column;
    }
    .modal-right {
        display: none;
    }
    .modal-left {
        padding: 32px 24px;
    }
}

/* Full Menu Overlay (Sitemap) */
.full-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
}
.full-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.full-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
}
.full-menu-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-text-main);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}
.full-menu-close:hover {
    transform: rotate(90deg);
}
.full-menu-content {
    padding-top: 40px;
}
.full-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}
.full-menu-col h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
}
.full-menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.full-menu-col ul li {
    margin-bottom: 12px;
}
.full-menu-col ul li a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.full-menu-col ul li a:hover {
    color: var(--color-primary);
}
.full-menu-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
    padding-bottom: 40px;
}
.full-menu-util {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.full-menu-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
@media (max-width: 768px) {
    .full-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ============================================================
   모바일 최적화 — index.html (홈)  [1단계]
   body.page-home 하위로만 적용 → 다른 페이지에는 영향 없음
   ============================================================ */

/* 태블릿 이하 (≤992px) */
@media (max-width: 992px) {
    /* impact 그리드: 기존 flex-direction:column(grid엔 무효)을 보정 → 2열 */
    .page-home .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 모바일 (≤768px) */
@media (max-width: 768px) {
    /* 섹션 세로 여백 축소 */
    .page-home .py-section { padding: 48px 0; }
    .page-home .impact-section { padding: 56px 0; }
    .page-home .partner-section { padding: 40px 0; }
    .page-home .cta-banner { padding: 56px 0; }

    /* Hero */
    .page-home .hero { 
        padding: 100px 0 70px; 
        background-position: center bottom 10%; /* 모바일에서 배경 위치 조정 */
    }
    .page-home .hero-title {
        font-size: 2rem;
        line-height: 1.35;
        word-break: keep-all; /* 한글 단어 단위 줄바꿈 ("사 회," 방지) */
    }
    .page-home .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
        word-break: keep-all;
    }
    .page-home .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .page-home .hero-actions .btn {
        width: 100%;
        padding: 14px 20px;
    }

    /* 기부 섹션 */
    .page-home .donation-layout { margin-top: -32px; gap: 24px; }
    .page-home .donation-form-card,
    .page-home .donation-methods-card { padding: 24px; border-radius: 20px; }
    .page-home .section-title-left { font-size: 1.25rem; }
    
    /* 기부 참여 방법 - 세로 스크롤 UI (그리드) */
    .page-home .methods-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .page-home .method-item {
        background-color: #f8fafc;
        border: 1px solid rgba(0,0,0,0.02);
    }

    /* 소통과 나눔 */
    .page-home .section-title { font-size: 1.6rem; }
    .page-home .board-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .page-home .board-list a { width: 100%; }
    .page-home .board-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

    /* 갤러리 - 세로 스크롤 UI (그리드) */
    .page-home .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .page-home .gallery-item {
        width: 100%;
    }

    /* 숫자로 보는 부지협 (impact) */
    .page-home .impact-header { margin-bottom: 32px; }
    .page-home .impact-title { font-size: 1.8rem; }
    .page-home .impact-subtitle { font-size: 1rem; }
    .page-home .impact-grid { gap: 14px; }
    .page-home .impact-card { padding: 28px 12px; border-radius: 20px; }
    .page-home .impact-icon { width: 60px; height: 60px; margin-bottom: 14px; }
    .page-home .impact-icon svg { width: 28px; height: 28px; }
    .page-home .impact-number { font-size: 2.4rem; letter-spacing: -1px; }
    .page-home .impact-plus { font-size: 1.5rem; }
    .page-home .impact-label { font-size: 0.9rem; word-break: keep-all; }

    /* 파트너 */
    .page-home .partner-title {
        font-size: 1.05rem;
        margin-bottom: 24px;
        word-break: keep-all;
    }
    .page-home .partner-logo { width: 140px; height: 60px; margin: 0 10px; }

    /* CTA 배너 */
    .page-home .cta-content h2 { font-size: 1.6rem; word-break: keep-all; }
    .page-home .cta-content p { font-size: 1rem; }
}

/* 소형 폰 (≤480px) */
@media (max-width: 480px) {
    .page-home .hero-title { font-size: 1.7rem; }
    .page-home .impact-number { font-size: 2rem; }
    .page-home .impact-card { padding: 24px 10px; }
    .page-home .partner-logo { width: 120px; height: 50px; }
}

/* ============================================================
   모바일 최적화 — faq.html (FAQ) [2단계]
   ============================================================ */
@media (max-width: 768px) {
    /* 서브 히어로 컴팩트화 */
    .sub-hero { padding: 90px 0 40px; }
    .sub-title { font-size: 1.8rem; margin-bottom: 8px; }
    .sub-desc { font-size: 0.95rem; }

    /* FAQ 카테고리 탭 (가로 스크롤-스와이프 지원) */
    .faq-tabs-wrap {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        margin-bottom: 24px;
        padding-bottom: 8px;
        justify-content: flex-start;
    }
    .faq-tabs-wrap::-webkit-scrollbar { display: none; }
    .faq-tabs {
        display: flex;
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
    }
    .tab-btn {
        padding: 6px 0;
        font-size: 1rem;
    }

    /* FAQ 아코디언 모바일 최적화 */
    .faq-question {
        padding: 16px 20px;
        font-size: 1.05rem;
        gap: 12px;
    }
    .q-icon { 
        font-size: 1.4rem; 
    }
    .answer-inner {
        padding: 0 20px 20px 20px;
        gap: 12px;
    }
    .a-icon { 
        font-size: 1.4rem; 
        margin-top: 2px; 
    }
    .a-text { 
        font-size: 0.95rem; 
    }
}

/* ============================================================
   모바일 최적화 — donation_history.html (나의 기부내역) [3단계]
   ============================================================ */
@media (max-width: 768px) {
    /* 내역 탭 가로 스크롤 적용 */
    .mypage-history .history-tabs-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .mypage-history .history-tabs {
        display: flex;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        gap: 12px;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    .mypage-history .history-tabs::-webkit-scrollbar { display: none; }
    .mypage-history .tab-item { flex: 0 0 auto; }
    .mypage-history .tab-btn { font-size: 1rem; padding: 6px 0; }
    
    /* 테이블을 모바일 앱 카드형 UI로 변환 */
    .history-table-wrap {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .history-table thead { display: none; }
    .history-table, .history-table tbody, .history-table tr, .history-table td {
        display: block;
        width: 100%;
    }
    .history-table tr {
        background: #fff;
        border: 1px solid var(--color-border);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }
    .history-table td {
        padding: 10px 0;
        border-bottom: 1px solid #f1f5f9;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .history-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .history-table td:first-child {
        padding-top: 0;
    }
    .history-table td::before {
        font-weight: 600;
        color: var(--color-text-muted);
        font-size: 0.9rem;
    }
    /* th가 없으므로 content를 직접 매핑하여 모바일 뷰어의 가독성 향상 */
    .history-table td:nth-child(1)::before { content: "결제날짜"; }
    .history-table td:nth-child(2)::before { content: "기부유형"; }
    .history-table td:nth-child(3)::before { content: "결제방법"; }
    .history-table td:nth-child(4)::before { content: "결제금액"; }
    .history-table td:nth-child(5)::before { content: "처리상태"; }
}

/* ============================================================
   모바일 최적화 — distribution_list.html (배분사업 리스트) [4단계]
   ============================================================ */
@media (max-width: 768px) {
    /* 마이페이지/서브페이지 헤더 최적화 */
    .mypage-header {
        padding: 40px 0 24px !important;
        text-align: center;
    }
    .mypage-header h1 {
        font-size: 1.8rem !important;
        margin-bottom: 8px !important;
    }
    .mypage-header p {
        font-size: 0.95rem !important;
        word-break: keep-all;
    }

    /* 상태 탭 (전체/진행중/마감/심사중) 모바일 스와이프 지원 */
    .mypage-section .history-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding-bottom: 12px !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    .mypage-section .history-tabs::-webkit-scrollbar { display: none; }
    
    .mypage-section .history-tabs .tab-item {
        flex: 0 0 auto !important;
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
        border-radius: 100px !important;
        border: 1px solid var(--color-border) !important;
        background: #fff !important;
        color: var(--color-text-muted) !important;
        font-weight: 600;
        cursor: pointer;
    }
    .mypage-section .history-tabs .tab-item.active {
        background: var(--color-primary) !important;
        color: #fff !important;
        border-color: var(--color-primary) !important;
    }

    /* 배분사업 리스트 그리드 모바일 최적화 */
    .distribution-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .dist-card {
        border-radius: 20px !important;
    }
    
    .dist-title {
        font-size: 1.15rem !important;
        margin-bottom: 16px !important;
        word-break: keep-all;
        line-height: 1.4;
    }
    
    .dist-info li {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
    }
}
