/* 기본 설정 (Reset & Base) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333333; /* 짙은 먹색 */
    background-color: #F9F7F2; /* 한지 느낌의 미색 */
    line-height: 1.6;
}

/* 한국적 단아함을 위한 명조체 제목 설정 */
h1, h2, h3, h4 {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. 헤더 스타일 */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    position: sticky; /* 스크롤 내려도 상단 고정 */
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: #2C3E50;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a:hover {
    color: #4A6C60; /* 비취색 포인트 */
    font-weight: bold;
}

/* 2. 히어로 섹션 (메인) */
.hero {
    height: 80vh; /* 화면 높이의 80% */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1517154421773-052f839d910d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* 버튼 스타일 */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background-color: #4A6C60; /* 비취색 */
    color: white;
}

.btn-primary:hover {
    background-color: #3A554C;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #4A6C60;
    color: #4A6C60;
    margin-top: 15px;
}

.btn-secondary:hover {
    background-color: #4A6C60;
    color: white;
}

/* 3. 섹션 공통 스타일 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2C3E50;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

/* 카드 그리드 스타일 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.card-header {
    font-size: 0.9rem;
    color: #8D6E63; /* 갈색 포인트 */
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

/* 배경색 유틸리티 */
.bg-light {
    background-color: #EFEBE4; /* 조금 더 진한 한지색 */
}

/* 5. 푸터 */
footer {
    background-color: #333;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
}
/* 레벨 테스트 모달 스타일 */
.modal {
    display: none; /* 평소에는 숨김 */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* 배경 어둡게 */
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #F9F7F2;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

.level-icon {
    font-size: 3rem;
    margin: 20px 0;
}

/* 퀴즈 보기 버튼 스타일 */
.option-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
}

.option-btn:hover {
    background-color: #4A6C60;
    color: white;
    border-color: #4A6C60;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
/* 구글 번역 위젯 스타일 정리 */
#google_translate_element {
    margin-left: 20px;
    padding-top: 5px;
}
.goog-te-gadget-simple {
    border: 1px solid #ddd !important;
    padding: 5px !important;
    border-radius: 4px !important;
}