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

:root {
    --primary-yellow: #F5B800;
    --primary-green: #8BC34A;
    --dark-gray: #333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-gray);
}

.turtle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-yellow);
}

.cta-button {
    background: var(--primary-yellow);
    color: var(--dark-gray);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 184, 0, 0.3);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-yellow);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    line-height: 1.2;
}

.hero h1 .highlight {
    color: var(--primary-yellow);
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-yellow);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--dark-gray);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 184, 0, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-gray);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--primary-yellow);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-yellow);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    animation: floatPhone 3s ease-in-out infinite;
}

@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Phone Carousel 
   ======================================== */
.phone-carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}




/* ========================================
   Section Common
   ======================================== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
}

/* ========================================
   How It Works - 인터랙티브 시뮬레이션
   ======================================== */
.how-it-works-sim {
    padding: 6rem 5%;
    background: linear-gradient(180deg, #E8F5E9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* 장식 원 */
.how-it-works-sim .deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.deco-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-green);
    top: -80px;
    right: -60px;
}

.deco-2 {
    width: 200px;
    height: 200px;
    background: var(--primary-yellow);
    bottom: -40px;
    left: -60px;
}

.deco-3 {
    width: 140px;
    height: 140px;
    background: #E53935;
    bottom: 60px;
    right: 10%;
}

/* 래퍼 */
.sim-wrapper {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 진행 표시 바 */
.sim-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 44px;
}

.sim-dot-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sim-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    background: #E0E0E0;
    color: #9E9E9E;
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
    border: 3px solid transparent;
}

.sim-dot.active {
    background: #2E7D32;
    color: white;
    transform: scale(1.18);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
    border-color: rgba(46, 125, 50, 0.15);
}

.sim-dot.done {
    background: #4CAF50;
    color: white;
}

.sim-dot-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #BDBDBD;
    transition: color 0.4s;
    white-space: nowrap;
}

.sim-dot-label.active .sim-dot-text {
    color: #2E7D32;
}

.sim-dot-label.done .sim-dot-text {
    color: #4CAF50;
}

.sim-line {
    width: 72px;
    height: 3px;
    background: #E0E0E0;
    margin-top: 22px;
    border-radius: 2px;
    transition: background 0.5s;
    position: relative;
    overflow: hidden;
}

.sim-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #4CAF50;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(.4, 0, .2, 1);
}

.sim-line.done::after {
    width: 100%;
}

/* 패널 공통 */
.sim-panel {
    background: var(--white);
    border-radius: 28px;
    padding: 40px 36px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    min-height: 380px;
    display: none;
    position: relative;
    overflow: hidden;
}

.sim-panel.active {
    display: block;
    animation: simPanelIn 0.45s cubic-bezier(.4, 0, .2, 1);
}

@keyframes simPanelIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sim-panel-header {
    margin-bottom: 24px;
}

.sim-panel-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-panel-sub {
    font-size: 0.9rem;
    color: #666;
}

/* 패널 1: 미션 선택 */
.sim-mission-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sim-mission-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid #EEEEEE;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    background: var(--white);
}

.sim-mission-option:hover {
    border-color: #4CAF50;
    background: #f6fdf6;
}

.sim-mission-option.selected {
    border-color: #2E7D32;
    background: #E8F5E9;
    box-shadow: 0 2px 12px rgba(46, 125, 50, 0.12);
}

.sim-mission-option .sim-m-thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    background: #FFF8E1;
    flex-shrink: 0;
}

.sim-mission-option .sim-m-emoji {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #FFF8E1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sim-mission-option .sim-m-info {
    flex: 1;
    min-width: 0;
}

.sim-mission-option .sim-m-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.sim-m-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.sim-m-category.daily {
    background: #E3F2FD;
    color: #1976D2;
}

.sim-m-category.weekly {
    background: #F3E5F5;
    color: #7B1FA2;
}

.sim-m-category.event {
    background: #FFE5E5;
    color: #D32F2F;
}

.sim-mission-option .sim-m-desc {
    font-size: 0.78rem;
    color: #666;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.sim-mission-option .sim-m-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.sim-mission-option .sim-m-points {
    font-size: 0.95rem;
    font-weight: 900;
    color: #2E7D32;
}

.sim-mission-option .sim-m-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: all 0.25s;
}

.sim-mission-option.selected .sim-m-check {
    background: #2E7D32;
    border-color: #2E7D32;
    color: white;
}

/* 로딩 / 에러 */
.sim-missions-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    gap: 16px;
}

.sim-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #E0E0E0;
    border-top-color: #2E7D32;
    border-radius: 50%;
    animation: simSpin 0.8s linear infinite;
}

@keyframes simSpin {
    to {
        transform: rotate(360deg);
    }
}

.sim-loading-text {
    font-size: 0.9rem;
    color: #666;
}

.sim-error-state {
    text-align: center;
    padding: 40px 0;
}

.sim-error-state .sim-error-emoji {
    font-size: 2rem;
    margin-bottom: 12px;
}

.sim-error-state .sim-error-msg {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

.sim-retry-btn {
    padding: 10px 28px;
    background: var(--primary-yellow);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.sim-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 184, 0, 0.3);
}

/* 패널 2: 포인트 획득 */
.sim-points-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.sim-confetti {
    font-size: 3.5rem;
    animation: simBounceIn 0.6s cubic-bezier(.4, 0, .2, 1);
}

@keyframes simBounceIn {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.sim-big-points {
    font-size: 3.8rem;
    font-weight: 900;
    color: #FF9800;
    margin: 16px 0 4px;
    animation: simCountPop 0.5s cubic-bezier(.4, 0, .2, 1) 0.3s both;
}

@keyframes simCountPop {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sim-points-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 24px;
}

.sim-selected-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #E8F5E9;
    border-radius: 14px;
    margin-bottom: 20px;
}

.sim-selected-badge .sim-sb-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.sim-selected-badge .sim-sb-emoji {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #FFF8E1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sim-selected-badge .sim-sb-title {
    font-size: 0.88rem;
    font-weight: 700;
}

.sim-selected-badge .sim-sb-check {
    font-size: 0.78rem;
    color: #2E7D32;
    font-weight: 600;
}

.sim-wallet-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
    border-radius: 16px;
    border: 1px solid #FFE0B2;
}

.sim-wallet-icon {
    font-size: 1.8rem;
}

.sim-wallet-info {
    display: flex;
    flex-direction: column;
}

.sim-wallet-label {
    font-size: 0.78rem;
    color: #666;
    font-weight: 500;
}

.sim-wallet-total {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FF9800;
}

/* 패널 3: 나눔 참여 */
.sim-donate-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
}

.sim-project-preview {
    width: 100%;
    max-width: 420px;
    border: 2px solid #FFCDD2;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    transition: transform 0.3s;
}

.sim-project-preview:hover {
    transform: translateY(-2px);
}

.sim-project-img {
    height: 130px;
    background: linear-gradient(135deg, #FFCDD2, #EF9A9A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.sim-project-img::after {
    content: '진행중인 나눔 프로젝트';
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.25);
    padding: 3px 10px;
    border-radius: 6px;
}

.sim-project-detail {
    padding: 18px 22px;
}

.sim-project-detail h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.sim-prog-bar {
    height: 10px;
    background: #FFCDD2;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sim-prog-fill {
    height: 100%;
    background: linear-gradient(90deg, #EF5350, #E53935);
    border-radius: 5px;
    transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

.sim-prog-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #666;
}

.sim-donate-btn {
    padding: 16px 56px;
    background: linear-gradient(135deg, #E53935, #C62828);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.3);
}

.sim-donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.4);
}

/* 성공 화면 */
.sim-donate-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 0;
}

.sim-donate-success.show {
    display: flex;
    animation: simSuccessPop 0.6s cubic-bezier(.4, 0, .2, 1);
}

@keyframes simSuccessPop {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.sim-success-emoji {
    font-size: 4rem;
}

.sim-success-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #2E7D32;
}

.sim-success-desc {
    font-size: 0.92rem;
    color: #666;
    text-align: center;
    line-height: 1.6;
}

.sim-success-summary {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.sim-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    background: #E8F5E9;
    border-radius: 14px;
}

.sim-s-label {
    font-size: 0.72rem;
    color: #666;
    font-weight: 600;
}

.sim-s-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: #2E7D32;
}

/* 네비게이션 버튼 */
.sim-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.sim-btn {
    padding: 13px 32px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    font-family: inherit;
}

.sim-btn-primary {
    background: #2E7D32;
    color: white;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.sim-btn-primary:hover {
    background: #1B5E20;
    transform: translateY(-2px);
}

.sim-btn-ghost {
    background: transparent;
    color: #666;
    border: 2px solid #E0E0E0;
}

.sim-btn-ghost:hover {
    border-color: #BDBDBD;
    background: #F5F5F5;
}

.sim-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
}

/* 시뮬레이션 반응형 */
@media (max-width: 768px) {
    .how-it-works-sim {
        padding: 4rem 4%;
    }

    .sim-panel {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .sim-line {
        width: 44px;
    }

    .sim-dot {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .sim-mission-option .sim-m-thumb,
    .sim-mission-option .sim-m-emoji {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .sim-mission-option {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }

    .sim-mission-option .sim-m-info {
        flex: 1;
        min-width: 0;
    }

    .sim-mission-option .sim-m-info h4 {
        font-size: 0.88rem;
    }

    .sim-mission-option .sim-m-desc {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .sim-big-points {
        font-size: 3rem;
    }

    .sim-success-summary {
        flex-direction: column;
        gap: 10px;
    }

    .sim-donate-btn {
        padding: 14px 40px;
    }
}

/* ========================================
   Popular Missions Section
   ======================================== */
.popular-missions {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.mission-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.mission-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mission-content {
    padding: 1.5rem;
}

.mission-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.badge-event {
    background: #FFE5E5;
    color: #D32F2F;
}

.badge-daily {
    background: #E3F2FD;
    color: #1976D2;
}

.badge-weekly {
    background: #F3E5F5;
    color: #7B1FA2;
}

.mission-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
}

.mission-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.mission-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mission-points {
    background: var(--primary-yellow);
    color: var(--dark-gray);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
}

.mission-join {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s;
}

.mission-join:hover {
    gap: 0.8rem;
}

.view-all-link {
    text-align: center;
    margin-top: 2rem;
}

.view-all-button {
    display: inline-block;
    background: var(--white);
    color: var(--dark-gray);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--primary-yellow);
    transition: all 0.3s;
}

.view-all-button:hover {
    background: var(--primary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 184, 0, 0.3);
}

/* ========================================
   Live Feed Section
   ======================================== */
.live-feed {
    padding: 6rem 5%;
    background: var(--white);
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feed-card {
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feed-image {
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #FFE57F, #FFD54F);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

.feed-content {
    padding: 1.5rem;
}

.feed-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    margin-bottom: 0;
}

.feed-user strong {
    color: var(--dark-gray);
    font-size: 1rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.feed-content h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.feed-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.feed-points {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--dark-gray);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ========================================
   Nanum Projects Section
   ======================================== */
.nanum-projects {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #F0F8E8 0%, #E8F5E9 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

.project-period {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.progress-container {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-yellow), var(--primary-green));
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto;
}

.status-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-complete {
    background: #FFF3E0;
    color: #EF6C00;
}

.status-ongoing {
    background: #E3F2FD;
    color: #1976D2;
}

/* ========================================
   Impact Stats Section
   ======================================== */
.impact-stats {
    padding: 6rem 5%;
    background: var(--dark-gray);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.impact-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
    display: block;
}

.impact-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========================================
   Partners Section (협력 기관)
   ======================================== */
.partners-section {
    padding: 5rem 5%;
    background: #FFFDF5;
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px 20px;
    background: #fff;
    border: 1.5px solid #e8dfc8;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.partner-card img {
    width: 100%;
    max-width: 180px;
    height: 110px;
    object-fit: contain;
}

.partner-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    word-break: keep-all;
    line-height: 1.4;
    text-align: center;
}

/* ========================================
   Together Section (참여하기)
   ======================================== */
.together-section {
    padding: 6rem 5%;
    background: linear-gradient(180deg, #ffffff 0%, #FFF9E6 50%, #F0F8E8 100%);
    position: relative;
}

.together-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.together-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.together-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.together-card.featured {
    border-color: var(--primary-yellow);
    background: linear-gradient(180deg, #FFFDF5 0%, var(--white) 100%);
    transform: scale(1.03);
}

.together-card.featured:hover {
    transform: scale(1.03) translateY(-8px);
}

.together-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-yellow);
    color: var(--dark-gray);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.together-card-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: block;
}

.together-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
}

.together-card-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.together-benefits {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.together-benefits li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.together-benefits li:last-child {
    border-bottom: none;
}

.together-card-btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    color: var(--dark-gray);
    background: var(--light-gray);
    border: 2px solid #eee;
}

.together-card-btn:hover {
    border-color: var(--primary-yellow);
    background: #FFF9E6;
    transform: translateY(-2px);
}

.together-card-btn.primary {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--dark-gray);
}

.together-card-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(245, 184, 0, 0.3);
    transform: translateY(-2px);
}

/* 하단 CTA 배너 */
.together-bottom {
    max-width: 1200px;
    margin: 0 auto;
}

.together-bottom-inner {
    background: linear-gradient(135deg, #2E7D32, #388E3C);
    border-radius: 24px;
    padding: 3rem 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.together-bottom-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.together-bottom-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.together-bottom .btn-primary {
    background: var(--primary-yellow);
    color: var(--dark-gray);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Together Section 반응형 */
@media (max-width: 1024px) {
    .together-cards {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .together-card.featured {
        transform: none;
        order: -1;
    }

    .together-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .together-section {
        padding: 4rem 4%;
    }

    .together-bottom-inner {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
    }

    .together-bottom-text p br {
        display: none;
    }
}

/* ========================================
   CTA Section
   ======================================== */
.final-cta {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--primary-yellow), #FFD54F);
    text-align: center;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.final-cta p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.app-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.app-button {
    background: var(--dark-gray);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
    transition: transform 0.3s;
}

.app-button:hover {
    transform: scale(1.05);
}

.app-icon {
    font-size: 2rem;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 5% 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-icon:hover {
    background: var(--primary-yellow);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* ========================================
   Scroll Animation
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero-stats .stat-item {
        flex: 1 1 0;
        min-width: 0;
    }

    .hero-stats .stat-number {
        font-size: 1.4rem;
        word-break: keep-all;
    }

    .hero-stats .stat-label {
        font-size: 0.78rem;
        word-break: keep-all;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .missions-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* together-cards는 위 @media에서 처리 */

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   API 연동 피드 섹션을 위한 스타일
   styles.css의 Live Feed Section 아래에 추가
   ======================================== */
/* 사용자 아바타 이미지 스타일 */
.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* 미션 인증 이미지 스타일 */
.mission-proof-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* 피드 footer 스타일: 좋아요 수와 포인트 표시 */
.feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}


.feed-likes {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}


.feed-card {
    opacity: 1;
    /* 초기에는 이미 보이도록 설정 (API로 데이터가 로드된 후에 애니메이션 적용) */
}

.feed-card.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .mission-proof-image {
        max-height: 200px;
    }
}


.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}


.mission-proof-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    max-height: 300px;
    object-fit: cover;
    display: block;
}


.feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}


.feed-likes {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

/* fade-in  */
.feed-card {
    opacity: 1;
    /* 초기에는 이미 보이도록 설정 (API로 데이터가 로드된 후에 애니메이션 적용) */
}

.feed-card.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .mission-proof-image {
        max-height: 200px;
    }
}

/* user-avatar-img  */
.user-avatar-img {
    border: 2px solid var(--primary-yellow);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


@media (max-width: 768px) {
    .feed-user {
        padding: 0.875rem 1rem;
    }

    .user-avatar,
    .user-avatar-img {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   Subpage Styles (Missions & Nanum)
   ======================================== */
.page-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-gray);
    text-decoration: none;
}

.page-header .logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--dark-gray);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #eee;
    transition: all 0.3s;
    cursor: pointer;
}

.back-btn:hover {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: var(--white);
}

.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5% 4rem;
}

.page-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Filter */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    border: 2px solid #eee;
    background: var(--white);
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary-green);
}

.filter-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

/* Counts */
.mission-count,
.project-count {
    text-align: center;
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 1.5rem;
}

/* Animations from subpages */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mission-card,
.project-card {
    /* Base styles are already in .mission-card/.project-card above, 
       but subpages add specific animation properties */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

/* Loading & Error States */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E0E0E0;
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
}

.error-state .error-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state .error-msg {
    color: #999;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.retry-btn {
    padding: 0.75rem 2rem;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.3);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: #999;
    font-size: 1.1rem;
}

/* Responsive Overrides for Subpages */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.6rem;
    }

    .page-header {
        padding: 0.8rem 4%;
    }
}

/* ========================================
   Partner Section (Preview 2 Style)
   ======================================== */
.partner-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.partner-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-logo-circle {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
    flex-shrink: 0;
    border: 2px solid #eee;
}

.partner-name {
    font-weight: bold;
    color: #333;
}

/* Recruitment Card */
.recruit-card {
    background: #fdfdfd;
    border: 2px dashed #ddd;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
}

.recruit-card:hover {
    border-color: #F5B800;
    background: #fffcf0;
}

.recruit-text {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
}

.recruit-icon {
    font-size: 2rem;
    color: #ccc;
}

/* ========================================
   Contact Form Page (참여 문의)
   ======================================== */
.contact-page {
    min-height: calc(100vh - 140px);
    background: linear-gradient(180deg, #FFF9E6 0%, #ffffff 40%);
    padding: 3rem 5%;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 640px;
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header h1 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.contact-header p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* 폼 공통 */
.contact-form {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.required {
    color: #E53935;
    font-weight: 700;
}

.optional {
    font-size: 0.78rem;
    color: #999;
    font-weight: 500;
    margin-left: 0.3rem;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
    margin-top: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark-gray);
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.15);
    background: var(--white);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #bbb;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* 참여 유형 선택 */
.type-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.type-option input[type="radio"] {
    display: none;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.2rem 0.5rem;
    border: 2px solid #eee;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s;
    background: #fafafa;
}

.type-card:hover {
    border-color: var(--primary-yellow);
    background: #FFF9E6;
}

.type-option input[type="radio"]:checked+.type-card {
    border-color: var(--primary-yellow);
    background: #FFF9E6;
    box-shadow: 0 2px 12px rgba(245, 184, 0, 0.15);
}

.type-icon {
    font-size: 1.6rem;
}

.type-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark-gray);
}

/* 연락처 필드 */
.contact-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.field-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.contact-field .form-input {
    flex: 1;
}

.contact-error {
    display: none;
    color: #E53935;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* 체크박스 */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.25s;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 900;
}

.checkbox-text {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
}

.checkbox-text strong {
    color: var(--dark-gray);
}

.privacy-detail {
    display: block;
    font-size: 0.78rem;
    color: #999;
    margin-top: 2px;
}

/* 제출 버튼 */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-yellow);
    color: var(--dark-gray);
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 184, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 성공 화면 */
.contact-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    animation: simSuccessPop 0.6s cubic-bezier(.4, 0, .2, 1);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.contact-success h2 {
    font-size: 1.5rem;
    color: #2E7D32;
    margin-bottom: 0.75rem;
}

.contact-success p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* 반응형 */
@media (max-width: 768px) {
    .contact-page {
        padding: 2rem 4%;
    }

    .contact-form {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
    }

    .type-selector {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ========================================
   History Page (Timeline)
   ======================================== */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    margin-left: -1.5px;
    content: "";
    background-color: #e9ecef;
}

.timeline>li {
    position: relative;
    min-height: 50px;
    margin-bottom: 50px;
}

.timeline>li:after,
.timeline>li:before {
    display: table;
    content: " ";
}

.timeline>li:after {
    clear: both;
}

.timeline>li .timeline-panel {
    position: relative;
    width: 100%;
    padding: 0 20px 0 100px;
    text-align: left;
}

.timeline>li .timeline-image {
    position: absolute;
    left: 0;
    width: 80px;
    height: 80px;
    z-index: 100;
    background-color: var(--primary-yellow);
    color: white;
    border-radius: 100%;
    border: 7px solid #f1f1f1;
    text-align: center;
    overflow: hidden;
}

.timeline>li .timeline-image h4 {
    font-size: 10px;
    margin-top: 12px;
    line-height: 14px;
}

.timeline>li .timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline>li.timeline-inverted>.timeline-panel {
    padding: 0 20px 0 100px;
}

.timeline-heading h4 {
    margin-top: 0;
    color: inherit;
    font-weight: 700;
}

.timeline-heading .subheading {
    text-transform: none;
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.timeline-body>p,
.timeline-body>ul {
    margin-bottom: 0;
    color: #666;
    line-height: 1.6;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .timeline:before {
        left: 50%;
    }

    .timeline>li {
        min-height: 100px;
        margin-bottom: 100px;
    }

    .timeline>li .timeline-panel {
        float: left;
        width: 41%;
        padding: 0 20px 20px 30px;
        text-align: right;
    }

    .timeline>li .timeline-image {
        left: 50%;
        width: 100px;
        height: 100px;
        margin-left: -50px;
    }

    .timeline>li .timeline-image h4 {
        font-size: 13px;
        margin-top: 16px;
        line-height: 18px;
    }

    .timeline>li.timeline-inverted>.timeline-panel {
        float: right;
        padding: 0 30px 20px 20px;
        text-align: left;
    }
}

/* Text utility helpers (if not present) */
.text-muted {
    color: #6c757d;
}

.text-center {
    text-align: center;
}