/* Google Fonts - Noto Sans KR */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    --primary-color: #1a2b49; /* 로고의 네이비색 */
    --accent-color: #f48c26;  /* 로고의 오렌지색 */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans KR', sans-serif; line-height: 1.6; color: var(--text-color); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 공통 타이틀 스타일 */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary-color); font-weight: 700; margin-bottom: 15px; }
.section-title p { font-size: 1.15rem; color: #666; word-break: keep-all; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; font-weight: 700; transition: 0.3s; cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background-color: var(--accent-color); color: var(--white); }
.btn-primary:hover { background-color: #d67a1f; }

/* Header */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-icon { height: 50px; width: auto; }
.logo-title { font-size: 2.4rem; font-weight: 900; color: var(--primary-color); letter-spacing: -2px; line-height: 1; margin-bottom: -5px; }
.logo-title span { color: var(--accent-color); }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-weight: 500; font-size: 1.05rem; color: var(--primary-color); position: relative; }
.nav-menu a:hover { color: var(--accent-color); }

/* Hero Section */
/* 배경 이미지는 asset 폴더 내에 있어야 함 */
.hero { 
    background: linear-gradient(rgba(26, 43, 73, 0.6), rgba(26, 43, 73, 0.6)), url('./hero_bg.avif') center/cover no-repeat; 
    height: 650px; 
    display: flex; align-items: center; text-align: center; color: var(--white); 
}
.hero-content h1 { font-size: 3.2rem; margin-bottom: 25px; line-height: 1.3; font-weight: 800; }
.hero-content p, 
.hero-subtitle { 
    font-size: 1.4rem; 
    margin-bottom: 40px; 
    opacity: 0.95; 
    font-weight: 300; 
    color: var(--white); /* Ensure it's white */
}
.hero span { color: var(--accent-color); }

/* Statistics Section */
/* Statistics Section */
.stats-section { padding: 100px 0; background: url('con_bg.png') repeat; }  /* 배경 패턴 적용 */
.stat-box { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 50px; 
    max-width: 1000px; 
    margin: 0 auto; 
}
.stat-visual {
    flex: 1;
    height: 300px;
    background: url('stats_bg_people.png') center/contain no-repeat; /* PNG 이미지로 교체 */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-number {
    font-size: 10rem; /* 엄청 크게 */
    color: #d66a55; /* 붉은 계열 */
    font-weight: 900;
    line-height: 1;
    position: relative;
    z-index: 10;
}
.stat-content {
    flex: 1;
    text-align: left;
}
.stat-content .stat-desc {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
    letter-spacing: -1px;
}
.stat-content p {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stat-box { flex-direction: column; text-align: center; gap: 30px; }
    .stat-visual { width: 100%; height: 200px; }
    .stat-number { font-size: 6rem; }
    .stat-content { text-align: center; }
    .stat-content .stat-desc { font-size: 1.5rem; word-break: keep-all; }
}

/* About Section */
.about-section { padding: 100px 0; }
.about-content { display: flex; gap: 50px; align-items: center; flex-wrap: wrap; }
.about-text { flex: 1; background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-left: 5px solid var(--accent-color); }
.about-list { flex: 1; font-size: 1.1rem; line-height: 2.2; }
.about-list li strong { color: var(--primary-color); }

/* Curriculum */
.curriculum { padding: 100px 0; background-color: #f0f4f8; }
.curriculum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.card { background: var(--white); border-radius: 12px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eaeaea; }
.card:hover { transform: translateY(-7px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-img { height: 220px; background-color: #ddd; background-size: cover; background-position: center; position: relative; }
.card-badge { position: absolute; top: 15px; left: 15px; background: var(--accent-color); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.card-body { padding: 30px; }
.card-body h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.6rem; }
.card-target { color: #888; font-size: 0.95rem; margin-bottom: 20px; display: block; font-weight: 500; }
.card-list li { margin-bottom: 10px; padding-left: 20px; position: relative; font-size: 1rem; color: #444; }
.card-list li::before { content: "✔"; color: var(--accent-color); position: absolute; left: 0; font-weight: bold; }

/* Reviews */
.reviews { padding: 100px 0; background-color: var(--primary-color); color: var(--white); }
.reviews .section-title h2 { color: var(--white); }
.reviews .section-title p { color: rgba(255,255,255,0.7); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.review-card { background: rgba(255,255,255,0.08); padding: 30px; border-radius: 10px; border-top: 4px solid var(--accent-color); transition: 0.3s; }
.review-card:hover { background: rgba(255,255,255,0.15); }
.review-text { font-style: italic; margin-bottom: 20px; line-height: 1.7; opacity: 0.9; font-size: 1.05rem; }
.review-author { font-weight: 700; text-align: right; color: var(--accent-color); font-size: 0.95rem; }

/* Contact Form */
.contact { padding: 100px 0; background: var(--white); }
.contact-wrapper { max-width: 700px; margin: 0 auto; background: var(--white); padding: 50px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 1px solid #eee; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--primary-color); font-size: 1.05rem; }
.form-control { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; transition: 0.3s; background: #f9f9f9; }
.form-control:focus { border-color: var(--primary-color); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(26, 43, 73, 0.1); }
.btn-block { width: 100%; font-size: 1.2rem; padding: 16px; border-radius: 8px; }

/* Footer */
footer { background: #000; color: #999; padding: 50px 0; font-size: 0.9rem; border-top: 1px solid #222; }
.footer-content { text-align: center; }
.footer-info p { margin-bottom: 8px; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 25px; margin-bottom: 10px; }
.social-icon { width: 26px; height: 26px; display: block; transition: all 0.3s ease; }
.social-icon:hover { transform: translateY(-3px); filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4)); }
.social-icon img { width: 100%; height: 100%; object-fit: contain; }
.footer-copy { margin-top: 30px; font-size: 0.8rem; color: #555; }

/* Reference Images Section */
.ref-section { 
    padding: 50px 0; 
    background: url('con_bg.png') repeat; /* 패턴 이미지 적용 */
}
.ref-images img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0; /* 이미지 사이 간격 없애기 (필요시 조정) */
}

/* Mobile */
@media (max-width: 768px) {
    .header-inner { height: 60px; }
    .nav-menu { display: none; } /* 추후 햄버거 메뉴 구현 권장 */
    
    /* Hero Typography Improvements */
    .hero-content h1 { 
        font-size: 2.0rem; /* Slightly smaller for better fit */
        word-break: keep-all; 
        line-height: 1.4;
    }
    .hero-content p, 
    .hero-subtitle { 
        font-size: 1.1rem; 
        word-break: keep-all;
        line-height: 1.6;
    }
    
    /* Stat Box Improvements */
    .stat-box h3 { font-size: 3.5rem; }
    
    .about-content { gap: 30px; flex-direction: column; }
    
    /* About List Readability Fix */
    .about-list { 
        padding-left: 10px; 
        padding-right: 10px; 
        word-break: keep-all; /* 단어 단위로 줄바꿈 */
    }
    .about-list li { margin-bottom: 25px; } /* 간격 조금 더 확보 */

    .contact-wrapper { padding: 30px 20px; }

    /* Mobile Bottom Action Bar Transformation */
    .fab-container {
        width: 100%;
        bottom: 20px; /* Lift up slightly */
        right: 0;
        left: 0;
        flex-direction: row; /* Horizontal layout */
        justify-content: center; /* Center buttons */
        gap: 15px; /* Space between buttons */
        background: transparent; /* Transparent background */
        border-top: none;
        padding: 0 20px; /* Side padding */
        box-shadow: none;
        align-items: center;
        pointer-events: none; /* Allow clicks to pass through empty space */
        height: auto;
    }

    .fab-btn {
        width: 50px !important; /* Fixed small size */
        min-width: auto; 
        height: 50px;
        border: 1px solid #ddd;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-radius: 50%; /* Circle */
        flex: 0 0 auto; /* Don't stretch */
        transition: transform 0.2s;
        pointer-events: auto;
        padding: 0; /* Reset padding */
    }
    
    .fab-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        background: #fff;
    }

    .fab-btn .fab-content {
        padding: 0;
        justify-content: center;
        gap: 0;
        width: 100%;
        height: 100%;
    }

    /* Hide text on mobile */
    .fab-btn .fab-text {
        display: none !important; 
    }
    
    /* Reset hover expansion on mobile */
    .scroll-top:hover, .share-btn:hover {
        width: 50px !important; 
    }

    /* Ensure body has space for bottom bar so content isn't covered at very bottom */
    body { padding-bottom: 70px; }
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    align-items: flex-end; /* Align to the right side */
}

/* Hidden state for Scroll Top button */
.fab-btn.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
    height: 0;
    margin: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.fab-btn {
    width: 60px; /* Slightly larger for easier clicking */
    height: 60px;
    border-radius: 30px;
    background: var(--white);
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.fab-btn:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    background-color: #fff; 
}

/* Button Inner Content */
.fab-btn .fab-content {
    display: flex;
    align-items: center;
    height: 100%;
    /* To center icon initially: 
       Width 60px. Icon ~24px. 
       Padding needs to balance.
    */
    padding: 0 18px; 
}

/* Text Styling */
.fab-btn .fab-text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: #333;
}

/* Hover Effects for Both Buttons */
.scroll-top:hover,
.share-btn:hover {
    width: 140px; /* Expand width enough for text */
}

.scroll-top:hover .fab-text,
.share-btn:hover .fab-text {
    max-width: 100px; /* Reveal text */
    opacity: 1;
    margin-left: 10px; /* Add space between icon and text */
}

/* Share Button Specific Icon Color on Hover */
.share-btn:hover svg {
    stroke: var(--primary-color);
}
