/* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Malgun Gothic', dotum, sans-serif;
}
body {
    color: #333;
    background-color: #fcfcfc;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 레이아웃 */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo h1 {
    font-size: 1.5rem;
    color: #1a365d;
}
.nav a {
    margin: 0 15px;
    font-weight: bold;
    color: #4a5568;
}
.nav a:hover {
    color: #1a365d;
}
.nav-meta {
    font-size: 0.85rem;
    color: #718096;
}

/* 메인 배너 (PC 기준 대형 화면) */
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1545128485-c400e7702796?q=80&w=1920') no-repeat center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: left;
    padding-left: 10%;
}
.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 300;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}
.btn-more {
    display: inline-block;
    padding: 10px 25px;
    background-color: #1a365d;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 퀵 메뉴 (Flexbox 활용 자동 정렬) */
.quick-menu {
    display: flex;
    justify-content: space-between;
    margin-top: -40px; /* 배너 위로 살짝 걸치게 */
    margin-bottom: 50px;
    gap: 15px;
}
.quick-item {
    flex: 1;
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.quick-item:hover {
    transform: translateY(-5px);
}
.quick-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}
.quick-item h3 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 5px;
}
.quick-item p {
    font-size: 0.85rem;
    color: #718096;
}

/* 메인 그리드 (3단 배치) */
.main-content {
    display: grid;
    grid-template-columns: repeat(3, 13fr);
    gap: 30px;
    margin-bottom: 60px;
}
.content-box {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.content-box h3 {
    font-size: 1.2rem;
    color: #1a365d;
    margin-bottom: 15px;
    border-bottom: 2px solid #1a365d;
    padding-bottom: 8px;
}
.image-placeholder, .video-placeholder {
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 15px;
}
.timetable li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #edf2f7;
}
.post-list li {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 푸터 */
.footer {
    background: #2d3748;
    color: #a0aec0;
    padding: 40px 0;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.8;
}
.copyright {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #4a5568;
}

/* ==========================================
   ★ 반응형 미디어 쿼리 (모바일/태블릿 최적화)
   ========================================== */
@media (max-width: 1024px) {
    .quick-menu {
        flex-wrap: wrap;
        margin-top: 20px;
    }
    .quick-item {
        flex: calc(33.33% - 15px); /* 태블릿에서는 3줄/2줄 분할 */
    }
    .main-content {
        grid-template-columns: repeat(2, 1fr); /* 2단 배열로 축소 */
    }
}

@media (max-width: 768px) {
    .header-wrap {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    .nav {
        margin: 15px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav a {
        margin: 0 5px;
        font-size: 0.9rem;
    }
    .hero-banner {
        height: 350px;
        padding-left: 20px;
        text-align: center;
        justify-content: center;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .quick-item {
        flex: calc(50% - 15px); /* 모바일에서는 2개씩 배치 */
    }
    .main-content {
        grid-template-columns: 1fr; /* 모바일은 무조건 한 줄로 세로 정렬 */
    }
}