/* home.css - 홈 화면 스타일 */

.home-main-section {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    overflow-y: auto;
    padding-bottom: 180px; /* 하단 탭 + 충분한 여유 공간 */
}

/* Hero Section */
.home-hero {
    background: linear-gradient(135deg, #1428A0 0%, #0d1b6b 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.home-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.home-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 32px;
    display: block;
}

.home-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.home-btn-primary {
    background: white;
    color: #1428A0;
}

.home-btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.home-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
}

.home-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Section Title */
.home-section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: #1a1a1a;
}

/* Features Section */
.home-features {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.home-feature-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.home-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1428A0, #0d1b6b);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.home-feature-card:hover::before {
    transform: scaleX(1);
}

.home-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #1428A0;
}

.home-feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.home-feature-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.home-feature-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.home-feature-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1428A0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Stats Section */
.home-stats {
    padding: 60px 20px;
    background: white;
    max-width: 1200px;
    margin: 0 auto;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.home-stat-card {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: 12px;
    transition: all 0.3s;
}

.home-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.home-stat-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.home-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #1428A0;
    margin-bottom: 8px;
}

.home-stat-label {
    font-size: 14px;
    color: #666;
}

/* About Section */
.home-about {
    padding: 60px 20px 200px 20px; /* 하단 패딩을 아예 크게 */
    max-width: 1200px;
    margin: 0 auto;
}

.home-about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.home-about-item {
    text-align: center;
    padding: 32px 24px;
}

.home-about-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.home-about-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.home-about-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ================================
   모바일 레이아웃 (768px 이하)
   ================================ */
@media (max-width: 768px) {

    /* 전체 페이지 여백 줄이기 */
    .home-main-section {
        padding-bottom: 150px; /* 모바일: 하단 탭 + 충분한 여유 공간 */
    }

    /* Hero 영역 압축 */
    .home-hero {
        padding: 28px 16px 24px;
    }

    .home-title {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .home-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* CTA 버튼 세로 정렬 + 풀폭 */
    .home-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .home-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    }

    /* 섹션 패딩 줄이기 */
    .home-features,
    .home-stats,
    .home-about {
        padding: 24px 14px;
    }

    .home-section-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    /* 🔹 게시판 6개 카드: 3개씩 두 줄로 보이게 */
    .home-features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3열 고정 */
        gap: 8px; /* 카드 간격 줄이기 */
    }

    .home-feature-card {
        padding: 14px 8px;
        border-width: 1px;
    }

    .home-feature-icon {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .home-feature-title {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .home-feature-desc {
        font-size: 11px;
        line-height: 1.4;
    }

    .home-feature-badge {
        margin-top: 6px;
        font-size: 10px;
        padding: 2px 6px;
    }

    /* 통계 카드 압축 */
    .home-stat-card {
        padding: 20px 12px;
    }

    .home-stat-number {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .home-stat-label {
        font-size: 12px;
    }

    /* About 섹션 하단 여백 */
    .home-about {
        padding-bottom: 180px; /* 모바일: 하단 패딩을 아예 크게 */
    }

    /* About 카드 압축 */
    .home-about-item {
        padding: 20px 14px;
    }

    .home-about-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .home-about-item h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .home-about-item p {
        font-size: 13px;
    }
}

/* ================================
   아주 작은 모바일 (480px 이하)
   ================================ */
@media (max-width: 480px) {
    .home-title {
        font-size: 24px;
    }

    .home-subtitle {
        font-size: 13px;
    }

    .home-feature-icon {
        font-size: 26px;
    }

    .home-feature-title {
        font-size: 13px;
    }

    .home-stat-icon {
        font-size: 30px;
    }

    .home-about-icon {
        font-size: 30px;
    }
}
