@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --primary-color: #0056b3; 
    --secondary-color: #1a73e8; 
    --text-main: #222; 
    --border-color: #e0e0e0; 
    --content-width: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', sans-serif; color: var(--text-main); line-height: 1.6; background-color: #fff; }
ul, li { list-style: none; }
a { text-decoration: none; color: inherit; }
.inner { max-width: var(--content-width); margin: 0 auto; width: 100%; padding: 0 20px; }

/* ==================== 상단 헤더 영역 ==================== */
.top-ribbon { background-color: #f4f6f8; border-bottom: 1px solid #eaeaea; }
.ribbon-wrap { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 13px; color: #444; }

.header-main { padding: 15px 0; display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 26px; font-weight: 800; color: #111; letter-spacing: -1px; }

.header-utils-gov { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 700; color: #333; flex-shrink: 0; }
.header-utils-gov a { display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.header-utils-gov a:hover { color: var(--secondary-color); }

.header-gnb { border-top: 1px solid var(--border-color); border-bottom: 2px solid var(--primary-color); }
.gnb-menu { display: flex; gap: 60px; font-size: 18px; font-weight: 800; padding: 18px 0; }
.gnb-menu li a:hover { color: var(--secondary-color); }

/* ==================== 메인 비주얼 (Hero) 영역 ==================== */
main { padding: 40px 0; }
.hero-section { display: flex; gap: 24px; height: 440px; margin-bottom: 60px; align-items: stretch; }

.hero-center-banner { 
    flex: 1; height: 100%; 
    background: linear-gradient(90deg, rgba(5, 10, 20, 0.9) 0%, rgba(5, 10, 20, 0.6) 55%, rgba(5, 10, 20, 0.2) 100%), url('./assets/seyeon_bg.png') no-repeat center center;
    background-size: cover;
    border-radius: 12px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.banner-content { position: relative; z-index: 2; padding: 0 50px; color: #fff; }
.banner-content h2 { font-size: 38px; font-weight: 800; margin-bottom: 15px; line-height: 1.3; text-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.banner-content p { font-size: 16px; font-weight: 500; opacity: 0.95; }

.hero-right-col { width: 340px; height: 100%; display: flex; flex-direction: column; gap: 16px; }
.gov-login-box { 
    flex: 1; border: 1px solid #e1e8f0; border-radius: 12px; padding: 18px 20px; 
    background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.03); display: flex; flex-direction: column; justify-content: center; 
}
.login-desc { font-size: 19px; font-weight: 600; line-height: 1.4; color: #111; margin-bottom: 10px; }
.btn-gov-login { 
    width: 100%; background: var(--primary-color); color: #fff; border: none; padding: 12px; 
    font-size: 17px; font-weight: 700; border-radius: 6px; cursor: pointer; transition: 0.2s; margin-top: 15px; 
}
.btn-gov-login:hover { background: #004085; }

.gov-classroom-banner {
    flex: 1; border: 1px solid #e1e8f0; border-radius: 12px; background: #fff; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.03); display: flex; flex-direction: column; 
    cursor: pointer; transition: 0.2s; overflow: hidden;
}
.gov-classroom-banner:hover { border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(0,0,0,0.06); transform: translateY(-2px); }
.classroom-top-area { flex: 1; background: #f8f9fa; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #eaeaea; font-size: 64px; color: var(--primary-color); }
.classroom-bottom-area { padding: 14px 10px; background: #fff; text-align: center; }
.classroom-bottom-area h3 { font-size: 20px; font-weight: 800; color: #222; }

/* ==================== VOD 교육 목록 섹션 ==================== */
.course-list-section { margin-top: 20px; }
.vod-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; }
.vod-tabs button { 
    background: #f4f6f8; border: 1px solid transparent; padding: 10px 30px; 
    font-size: 15px; font-weight: 700; color: #666; border-radius: 30px; cursor: pointer; transition: 0.2s; 
}
.vod-tabs button.active { background: var(--primary-color); color: #fff; box-shadow: 0 4px 10px rgba(0,86,179,0.3); }

.vod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* 💡 제목 길이에 상관없이 카드의 높이와 버튼 위치를 일정하게 맞춤 */
.vod-card { 
    border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: 0.2s; 
    background: #fff; cursor: pointer;
    display: flex; flex-direction: column; 
}
.vod-card:hover { border-color: var(--primary-color); box-shadow: 0 8px 20px rgba(0,0,0,0.08); transform: translateY(-5px); }

.vod-thumb { 
    width: 100%; aspect-ratio: 16/9; background: #eef2f6; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 40px; color: #c4d1e0; transition: 0.2s;
}
.vod-card:hover .vod-thumb { color: var(--primary-color); }

.vod-info { 
    padding: 20px; 
    display: flex; flex-direction: column; flex: 1; 
}
.vod-info .cate { font-size: 13px; color: var(--secondary-color); font-weight: 800; margin-bottom: 8px; }
.vod-info .title { font-size: 17px; font-weight: 800; line-height: 1.4; color: #111; word-break: keep-all; margin-bottom: 15px; }

/* 💡 수강신청 버튼 (카드 내용이 짧아도 항상 맨 밑에 위치하도록 margin-top: auto) */
.btn-enroll {
    margin-top: auto;
    padding: 12px;
    background: #36455b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}
.btn-enroll:hover { background: #2563eb; }

/* ==================== 푸터 영역 ==================== */
footer { 
    background-color: #fafafa; 
    margin-top: 60px; 
    /* 기존 footer 자체의 border-top은 제거 (파트너스 선과 겹침 방지) */
}


.footer-partners { 
    border-top: 1px solid #dce4ec; 
    border-bottom: 1px solid #dce4ec; 
    background-color: #fff; 
    padding: 12px 0; /* 💡 위아래 여백을 기존 28px에서 12px로 대폭 줄임 */
}
.partners-wrap { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 80px; /* 로고 사이 넉넉한 간격 */
    flex-wrap: wrap; 
}
.partner-item {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.partner-item img {
    height: 38px; 
    object-fit: contain;
    transition: transform 0.3s ease; 
}
.partner-item:hover img {
    transform: translateY(-3px); 
}
.partner-text { 
    font-size: 15px; 
    font-weight: 700; 
    color: #777; 
}

/* 하단 메인 정보 영역 */
.footer-main-content { 
    padding: 50px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 20px; 
    flex-wrap: wrap; 
}
.footer-info-left { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}
.footer-logo span { 
    font-size: 24px; 
    font-weight: 800; 
    color: #333; 
}
.footer-texts p { 
    margin: 0 0 8px 0; 
    font-size: 14px; 
    line-height: 1.6; 
    color: #666; 
}
.footer-texts .copyright { 
    margin-top: 15px; 
    color: #aaa; 
    font-size: 13px; 
}

/* 우측 고객센터 */
.footer-info-right { 
    text-align: right; 
    flex-shrink: 0; 
}
.cscenter-title { 
    font-size: 15px; 
    font-weight: 700; 
    color: #333; 
    margin-bottom: 6px; 
}
.cscenter-number { 
    font-size: 28px; 
    font-weight: 800; 
    color: var(--primary-color); 
    letter-spacing: normal; 
}

/* PC 화면 여백 및 버튼 효과 */
.download-btn-wrap {
    margin-top: 40px;
}
.btn-hero-download:hover {
    background: #fff !important;
    color: #111 !important;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    /* 1. 전체 여백 및 상단 리본 */
    .inner { padding: 0 16px; } 
    .ribbon-wrap {
        flex-direction: column; 
        gap: 6px;
        text-align: center;
        font-size: 12px;
    }
    
    /* 2. 헤더 로고 및 우측 유틸(로그인/회원가입) */
    .header-main {
        flex-direction: column;
        gap: 12px;
        padding: 15px 10px;
    }
    .header-utils-gov {
        font-size: 14px; 
        gap: 15px;
    }
    
    /* 3. GNB 메뉴 (손가락 스와이프로 가로 스크롤 가능하게) */
    .header-gnb .inner { padding: 0; }
    .gnb-menu {
        gap: 16px; 
        padding: 12px 16px;
        font-size: 14px;
        overflow-x: auto; 
        white-space: nowrap; 
        justify-content: flex-start;
    }
    .gnb-menu::-webkit-scrollbar { display: none; } 

    /* 4. 메인 히어로 배너 (답답함 해소 및 높이 확장) */
    .hero-section {
        flex-direction: column;
        height: auto;
        gap: 24px; /* 박스들 사이의 좁은 간격을 넓게 벌림 */
        margin-bottom: 50px;
    }
    
    /* 최상단 이미지 배너 높이 확장 */
    .hero-center-banner { 
        height: 420px; 
    } 
    .banner-content { padding: 0 20px; }
    .banner-content h2 { 
        font-size: 24px; 
        word-break: keep-all; 
        line-height: 1.4; 
        margin-bottom: 15px;
    } 
    .banner-content p { font-size: 14px; line-height: 1.5; }
    
    /* 로그인 박스와 강의실 입장 버튼 */
    .hero-right-col { 
        width: 100%; 
        height: auto; 
        gap: 20px; /* 로그인 박스와 강의실 버튼 사이 간격 확장 */
    } 

    /* 로그인 박스 내부 여백을 넉넉하게 */
    .gov-login-box { 
        padding: 50px 20px; 
        min-height: 270px;
        justify-content: center;
    }

    /* 💡 쪼그라들었던 강의실 입장 배너 높이 강제 확보 */
    .gov-classroom-banner {
        min-height: 180px; 
    }
    .classroom-top-area {
        font-size: 54px; /* 아이콘 크기 살짝 조정 */
    }

    /* 5. VOD 교육 목록 (모바일에서 1줄에 2개씩 배치하여 크기 절반으로 축소) */
    .vod-grid {
        grid-template-columns: repeat(2, 1fr); /* 💡 핵심: 1fr(1개)을 2개로 쪼갬 */
        gap: 12px; /* 카드 사이 간격도 살짝 줄임 */
    }

    /* 카드가 작아졌으니 안쪽 여백과 글씨 크기도 맞춤 다이어트 */
    .vod-info { 
        padding: 12px; 
    }
    .vod-info .title { 
        font-size: 14px; 
        margin-bottom: 10px; 
    }
    .btn-enroll {
        padding: 8px;
        font-size: 13px;
    }

    /* 6. 푸터 파트너스 로고 (간격 좁히고 안 튀어나가게) */
    .footer-partners { padding: 15px 10px; }
    .partners-wrap { 
        gap: 12px; 
        justify-content: center;
    }
    .partner-item img { height: 24px; } 

    /* 7. 푸터 하단 정보 영역 */
    .footer-main-content { 
        flex-direction: column; 
        padding: 30px 16px; 
        gap: 20px;
    }
    .footer-logo span { font-size: 20px; }
    .footer-texts p { font-size: 12px; } 
    
    .footer-info-right { 
        width: 100%; 
        text-align: left; 
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
    .cscenter-number { font-size: 24px; }
}


    .download-btn-wrap {
        margin-top: 25px;      
        margin-bottom: 13px;   
    }