/* =========================================================
   V3.1 영종평생교육원 메인페이지
   메인페이지는 풀다운 메뉴를 사용하지 않음
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

:root {
    --blue: #0b658f;
    --text: #23272b;
    --muted: #6f7780;
    --line: #e5e8eb;
    --bg: #f5f7f9;
}

body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    background: var(--bg);
    color: var(--text);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1000;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 17px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container h1 a {
    font-size: 22px;
    font-weight: 700;
    color: #2c3135;
}

.auth-links {
    display: flex;
    gap: 16px;
}

.auth-links a {
    font-size: 13px;
    color: #6b7075;
}

.auth-links a:hover {
    color: var(--blue);
}


/* =========================================================
   MAIN NAVIGATION
   메인페이지에서는 풀다운 없음
========================================================= */

.navbar {
    background: #fff;
    border-top: 1px solid #eceeef;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 48px;

    width: 100%;
}

.nav-item > a {
    display: block;

    position: relative;

    line-height: 54px;

    font-size: 16px;
    font-weight: 600;

    color: #30353a;

    white-space: nowrap;

    transition: color .2s ease;
}

.nav-item > a:hover,
.nav-item > a.active {
    color: var(--blue);
}

.nav-item > a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    background: var(--blue);
}


/* =========================================================
   MAIN HERO
========================================================= */

.main-section {
    background: #f5f7f9;
    padding: 28px 20px 38px;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;

    grid-template-columns: 7fr 3fr;

    gap: 22px;
}


/* =========================================================
   BANNER
========================================================= */

.banner-area {
    position: relative;

    height: 380px;

    overflow: hidden;

    background: #153c56;

    box-shadow: 0 8px 24px rgba(37,56,73,.07);
}

.main-banner {
    position: absolute;

    inset: 0;

    height: 380px;

    opacity: 0;

    visibility: hidden;

    transition: opacity .55s ease;

    background-size: cover;
    background-position: center;
}

.main-banner.active {
    opacity: 1;
    visibility: visible;
}

.main-banner::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8,31,48,.85) 0%,
            rgba(8,31,48,.62) 44%,
            rgba(8,31,48,.08) 76%,
            rgba(8,31,48,0) 100%
        );
}


/* 각 배너 이미지 */

.banner-home {
    background-image:
        url('../images/banner-home.webp');
}

.banner-water {
    background-image:
        url('../images/banner-water.webp');
}

.banner-license {
    background-image:
        url('../images/banner-license.webp');
}

.banner-life {
    background-image:
        url('../images/banner-life.webp');
}

.banner-community {
    background-image:
        url('../images/banner-community.webp');
}


/* 마이페이지는 별도 이미지 없이 안정적인 컬러 배너 */

.banner-mypage {
    background-image:
        url('../images/banner-mypage.webp');
}


.banner-content {
    position: absolute;

    left: 48px;

    top: 50%;

    transform: translateY(-50%);

    max-width: 520px;

    color: #fff;

    z-index: 2;
}

.banner-small {
    font-size: 13px;

    margin-bottom: 14px;

    opacity: .86;

    letter-spacing: 1px;
}

.banner-content h2 {
    font-size: 34px;

    line-height: 1.32;

    margin-bottom: 15px;

    font-weight: 700;

    letter-spacing: -1.2px;
}

.banner-content p {
    font-size: 15px;

    line-height: 1.75;

    color: rgba(255,255,255,.9);

    margin-bottom: 24px;
}

.banner-button {
    display: inline-block;

    border: 1px solid rgba(255,255,255,.75);

    color: #fff;

    padding: 10px 20px;

    font-size: 13px;

    transition: .22s;
}

.banner-button:hover {
    background: #fff;

    color: #164967;
}


/* 배너 선택점 */

.banner-dots {
    position: absolute;

    left: 48px;

    bottom: 24px;

    z-index: 4;

    display: flex;

    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;

    border: 0;
    border-radius: 50%;

    padding: 0;

    background: rgba(255,255,255,.45);

    cursor: pointer;
}

.dot.active {
    width: 24px;

    border-radius: 8px;

    background: #fff;
}


/* =========================================================
   공지사항 + 합격수기
========================================================= */

.side-area {
    height: 380px;

    display: grid;

    grid-template-rows: 1fr 1fr;

    gap: 14px;
}

.side-box {
    background: #fff;

    border: 1px solid #e3e7ea;

    padding: 20px 22px;

    overflow: hidden;
}

.side-title {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 13px;

    border-bottom: 1px solid #edf0f2;
}

.side-title h3 {
    font-size: 18px;

    color: #23282d;
}

.side-title a {
    color: #8a9197;

    font-size: 12px;
}

.side-title a:hover {
    color: var(--blue);
}

.side-list {
    padding-top: 8px;
}

.side-list li {
    border-bottom: 1px solid #f0f2f3;
}

.side-list li:last-child {
    border-bottom: 0;
}

.side-list a {
    display: flex;

    justify-content: space-between;

    gap: 14px;

    padding: 9px 0;

    color: #545b61;

    font-size: 13px;
}

.side-list .text {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.side-list .date {
    color: #a4a9ae;

    font-size: 11px;

    flex-shrink: 0;
}

.review-text {
    padding-top: 14px;

    font-size: 13px;

    color: #5b6268;

    line-height: 1.75;
}

.review-name {
    margin-top: 9px;

    font-size: 12px;

    color: #92989d;
}


/* =========================================================
   추천강좌
========================================================= */

.recommended-section {
    background: #fff;

    padding: 58px 20px 70px;
}

.recommended-container {
    max-width: 1200px;

    margin: 0 auto;
}

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 24px;
}

.section-label {
    display: block;

    font-size: 11px;

    font-weight: 700;

    color: #1671a1;

    letter-spacing: 1.3px;

    margin-bottom: 7px;
}

.section-heading h2 {
    font-size: 27px;

    color: #202428;

    margin-bottom: 7px;

    letter-spacing: -.8px;
}

.section-heading p {
    font-size: 14px;

    color: #7a8187;
}

.course-more {
    font-size: 13px;

    color: #667078;
}

.course-more:hover {
    color: var(--blue);
}


/* 강좌 카드 */

.course-grid {
    display: grid;

    grid-template-columns: repeat(5,1fr);

    gap: 18px;
}

.course-card {
    background: #fff;

    border: 1px solid #e2e6e9;

    overflow: hidden;

    transition: .22s;
}

.course-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 26px rgba(24,43,59,.08);
}

.course-image {
    position: relative;

    display: flex;

    align-items: flex-end;

    height: 145px;

    padding: 18px;

    overflow: hidden;
}

.water-course {
    background:
        linear-gradient(
            135deg,
            #0b4669,
            #1684a8
        );
}

.basic-course {
    background:
        linear-gradient(
            135deg,
            #245d78,
            #5b9bad
        );
}

.license-course {
    background:
        linear-gradient(
            135deg,
            #22584f,
            #59947e
        );
}

.lifelong-course {
    background:
        linear-gradient(
            135deg,
            #65616d,
            #9b909f
        );
}

.digital-course {
    background:
        linear-gradient(
            135deg,
            #354d6d,
            #647f9f
        );
}

.course-image-text {
    color: #fff;

    font-size: 18px;

    line-height: 1.35;

    font-weight: 700;
}

.course-badge {
    position: absolute;

    left: 14px;

    top: 14px;

    padding: 5px 9px;

    background: rgba(255,255,255,.94);

    color: #1a6385;

    font-size: 10px;

    font-weight: 700;
}

.course-info {
    padding: 17px 16px 15px;
}

.course-category {
    font-size: 11px;

    color: #1680a9;

    margin-bottom: 8px;
}

.course-info h3 {
    min-height: 45px;
}

.course-info h3 a {
    color: #222;

    font-size: 15px;

    line-height: 1.45;

    font-weight: 700;
}

.course-info h3 a:hover {
    color: var(--blue);
}

.course-description {
    font-size: 12px;

    color: #777f85;

    line-height: 1.65;

    min-height: 61px;

    margin-top: 9px;
}

.course-bottom {
    display: flex;

    justify-content: space-between;

    border-top: 1px solid #edf0f2;

    margin-top: 12px;

    padding-top: 11px;

    font-size: 11px;
}

.course-bottom span {
    color: #8b9297;
}

.course-bottom strong {
    color: #16749c;
}


/* =========================================================
   반응형
========================================================= */

@media(max-width:1100px) {

    .nav-menu {
        gap: 28px;
    }

    .nav-item > a {
        font-size: 15px;
    }

}


@media(max-width:1000px) {

    .course-grid {
        grid-template-columns: repeat(3,1fr);
    }

}


@media(max-width:900px) {

    .main-container {
        grid-template-columns: 1fr;
    }

    .side-area {
        height: auto;

        grid-template-columns: 1fr 1fr;

        grid-template-rows: auto;
    }

    .nav-menu {
        justify-content: flex-start;

        overflow-x: auto;
    }

}


@media(max-width:700px) {

    .nav-menu {
        gap: 20px;
    }

    .nav-item > a {
        font-size: 14px;
    }

    .course-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading p {
        display: none;
    }

}


@media(max-width:650px) {

    .banner-area,
    .main-banner {
        height: 330px;
    }

    .banner-content {
        left: 28px;
        right: 25px;
    }

    .banner-content h2 {
        font-size: 26px;
    }

    .banner-dots {
        left: 28px;
    }

    .side-area {
        grid-template-columns: 1fr;
    }

}


@media(max-width:480px) {

    .course-grid {
        grid-template-columns: 1fr;
    }

}


/* V3.3 실사 이미지별 초점 보정 */
.banner-water { background-position: center 58%; }
.banner-license { background-position: center 42%; }
.banner-life { background-position: center center; }
.banner-community { background-position: center 53%; }
.banner-mypage { background-position: center 38%; }


/* =========================================================
   V3.4 HOME 바다 배너
   HOME은 영종의 바다·하늘 색감을 살리기 위해
   다른 배너보다 오버레이를 조금 더 가볍게 적용
========================================================= */
.banner-home {
    background-position: center 58%;
}

.banner-home::before {
    background:
        linear-gradient(
            90deg,
            rgba(8,45,62,.68) 0%,
            rgba(8,45,62,.44) 42%,
            rgba(8,45,62,.10) 74%,
            rgba(8,45,62,0) 100%
        );
}


/* V3.5 마이페이지 배너 이미지 교체 */
.banner-mypage {
    background-image: url('../images/banner-mypage.webp');
    background-position: center 48%;
}


/* =========================================================
   V4.1 우측 게시판 탭
   ① 교육원 소식 : 공지사항 / 교육일정
   ② 후기 : 합격수기 / 수강후기
========================================================= */

.board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 35px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0f2;
}

.board-tabs {
    display: flex;
    align-items: center;
    gap: 17px;
}

.board-tab {
    position: relative;
    padding: 0 0 10px;
    margin-bottom: -11px;
    border: 0;
    background: transparent;
    color: #8a9197;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.board-tab:hover {
    color: #375f75;
}

.board-tab.active {
    color: #20262b;
    font-weight: 700;
}

.board-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--blue);
}

.board-more {
    flex-shrink: 0;
    color: #969ca1;
    font-size: 11px;
}

.board-more:hover {
    color: var(--blue);
}

.board-panel {
    padding-top: 7px;
}

.board-panel[hidden] {
    display: none !important;
}


/* 공지사항 */

.news-list li {
    border-bottom: 1px solid #f0f2f3;
}

.news-list li:last-child {
    border-bottom: 0;
}

.news-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    color: #50585e;
}

.news-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.news-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
}

.news-list time {
    flex-shrink: 0;
    color: #a0a7ac;
    font-size: 10px;
}

.news-badge {
    flex-shrink: 0;
    min-width: 31px;
    padding: 3px 5px;
    border-radius: 2px;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
}

.news-badge.notice {
    background: #edf5f9;
    color: #276b8c;
}

.news-badge.recruit {
    background: #eef7f2;
    color: #39735d;
}

.news-badge.new {
    background: #f5f0eb;
    color: #8a674c;
}


/* 교육일정 */

.schedule-list li {
    border-bottom: 1px solid #f0f2f3;
}

.schedule-list li:last-child {
    border-bottom: 0;
}

.schedule-list a {
    display: grid;
    grid-template-columns: 37px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 40px;
    padding: 5px 0;
}

.schedule-date {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: var(--blue);
    line-height: 1;
}

.schedule-date strong {
    font-size: 15px;
}

.schedule-date span {
    font-size: 10px;
    color: #8f979d;
}

.schedule-text {
    min-width: 0;
}

.schedule-category {
    display: block;
    margin-bottom: 2px;
    color: #8a9298;
    font-size: 9px;
}

.schedule-text strong {
    display: block;
    overflow: hidden;
    color: #4d555b;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* 합격수기 / 수강후기 */

.featured-review {
    position: relative;
    display: block;
    min-height: 120px;
    padding: 12px 2px 0 18px;
    color: #525a60;
}

.quote-mark {
    position: absolute;
    top: 1px;
    left: 0;
    color: #b5cfda;
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1;
}

.featured-review p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 57px;
    color: #565e64;
    font-size: 12px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.review-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #f0f2f3;
}

.review-meta strong {
    display: block;
    color: #2e586c;
    font-size: 11px;
}

.review-meta span {
    display: block;
    margin-top: 2px;
    color: #979da2;
    font-size: 9px;
}

.review-meta .review-arrow {
    color: #7895a3;
    font-size: 16px;
    transition: transform .2s ease;
}

.featured-review:hover .review-arrow {
    transform: translateX(3px);
}

@media(max-width:650px) {
    .board-tab {
        font-size: 14px;
    }

    .news-title,
    .featured-review p {
        font-size: 13px;
    }
}


/* =========================================================
   V5 추천강좌
   정수 3 + 전문자격 1 + 평생교육 1
========================================================= */

.course-grid-v5 {
    align-items: stretch;
}

.course-card-v5 {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e3e7ea;
    background: #fff;
}

.course-card-v5.featured-course {
    border-color: #b8d0dc;
    box-shadow: 0 10px 26px rgba(28, 84, 111, .08);
}

.course-thumb {
    position: relative;
    display: block;
    height: 140px;
    overflow: hidden;
    background: #1e526b;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.course-card-v5:hover .course-thumb img {
    transform: scale(1.035);
}

.course-thumb-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(7, 35, 50, .05) 0%,
            rgba(7, 35, 50, .18) 48%,
            rgba(7, 35, 50, .70) 100%
        );
}

.course-thumb-overlay.license-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(24, 64, 58, .04) 0%,
            rgba(24, 64, 58, .15) 45%,
            rgba(24, 64, 58, .72) 100%
        );
}

.course-thumb-overlay.life-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(60, 62, 73, .02) 0%,
            rgba(60, 62, 73, .16) 47%,
            rgba(60, 62, 73, .72) 100%
        );
}

.course-thumb-category {
    position: absolute;
    left: 15px;
    bottom: 13px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.course-card-v5 .course-badge {
    left: 13px;
    top: 13px;
    min-width: auto;
    padding: 5px 8px;
    border: 0;
    background: rgba(255,255,255,.94);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    font-size: 9px;
    letter-spacing: .5px;
}

.badge-start {
    color: #326b80;
}

.badge-best {
    color: #0c658e;
}

.badge-exam {
    color: #805e31;
}

.badge-license {
    color: #3c705d;
}

.badge-new {
    color: #68617c;
}

.course-info-v5 {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 15px 15px;
}

.course-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.course-track {
    overflow: hidden;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.course-track.water {
    color: #15769b;
}

.course-track.license {
    color: #477b67;
}

.course-track.life {
    color: #706a80;
}

.course-level {
    flex-shrink: 0;
    padding: 3px 6px;
    border: 1px solid #e1e5e8;
    color: #8b9297;
    font-size: 9px;
}

.course-info-v5 h3 {
    min-height: 46px;
    margin: 0;
}

.course-info-v5 h3 a {
    display: block;
    color: #24292d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.48;
    letter-spacing: -.45px;
}

.course-info-v5 h3 a:hover {
    color: var(--blue);
}

.course-info-v5 .course-description {
    min-height: 64px;
    margin-top: 9px;
    color: #737b81;
    font-size: 11px;
    line-height: 1.7;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #edf0f2;
}

.course-meta span {
    position: relative;
    color: #8a9297;
    font-size: 10px;
}

.course-meta span + span::before {
    content: "·";
    margin-right: 9px;
    color: #c1c6ca;
}

.course-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #f0f2f3;
    color: #40535d;
    font-size: 11px;
    font-weight: 700;
}

.course-action span {
    color: #6e95a6;
    font-size: 14px;
    transition: transform .2s ease;
}

.course-action:hover {
    color: var(--blue);
}

.course-action:hover span {
    transform: translateX(3px);
}

.course-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding: 12px 14px;
    background: #f8fafb;
    border: 1px solid #edf0f2;
}

.course-note-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    border: 1px solid #9eb5c0;
    border-radius: 50%;
    color: #527486;
    font-family: Georgia, serif;
    font-size: 11px;
    font-weight: 700;
}

.course-note p {
    color: #838a90;
    font-size: 11px;
    line-height: 1.5;
}


/* LearnDash 연동 시 JS/PHP에서 추가할 수 있는 상태 클래스 */

.course-card-v5.is-enrolled .course-action {
    color: #35765d;
}

.course-card-v5.is-complete .course-action {
    color: #667078;
}


/* 반응형 */

@media(max-width:1000px) {

    .course-grid-v5 {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media(max-width:700px) {

    .course-grid-v5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-thumb {
        height: 155px;
    }

}

@media(max-width:480px) {

    .course-grid-v5 {
        grid-template-columns: 1fr;
    }

    .course-thumb {
        height: 190px;
    }

    .course-info-v5 h3,
    .course-info-v5 .course-description {
        min-height: auto;
    }

}


/* =========================================================
   V5.1 신규강좌
========================================================= */

.new-courses-section {
    background: #f7f9fa;
    padding: 48px 20px 56px;
    border-top: 1px solid #edf0f2;
}

.new-courses-container {
    max-width: 1200px;
    margin: 0 auto;
}

.new-course-heading {
    margin-bottom: 21px;
}

.new-course-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.new-course-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e8eb;
    transition: transform .2s ease, box-shadow .2s ease;
}

.new-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 20px rgba(26, 45, 59, .06);
}

.new-course-thumb {
    position: relative;
    display: block;
    height: 116px;
    overflow: hidden;
    background: #dde5e9;
}

.new-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.new-course-card:hover img {
    transform: scale(1.025);
}

.new-course-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 38, 48, 0) 30%,
        rgba(20, 38, 48, .34) 100%
    );
}

.new-course-badge {
    position: absolute;
    left: 11px;
    top: 11px;
    padding: 4px 7px;
    background: rgba(255,255,255,.94);
    color: #166f94;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;
}

.new-course-badge.coming {
    color: #6f7780;
}

.new-course-body {
    padding: 13px 13px 14px;
}

.new-course-category {
    display: block;
    margin-bottom: 6px;
    color: #4d788c;
    font-size: 10px;
    font-weight: 700;
}

.new-course-body h3 {
    min-height: 42px;
    margin: 0;
}

.new-course-body h3 a {
    display: block;
    color: #292f33;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.35px;
}

.new-course-body h3 a:hover {
    color: var(--blue);
}

.new-course-body p {
    margin-top: 7px;
    color: #838b91;
    font-size: 10px;
    line-height: 1.55;
}


/* =========================================================
   V5.1 가벼운 Footer
========================================================= */

.site-footer {
    background: #f7f9fb;
    border-top: 1px solid #e3e8ec;
    color: #68727a;
    font-size: 12px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* 상담을 별도 카드가 아닌 얇은 안내줄로 */

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 0;
    border-bottom: 1px solid #e7ebee;
}

.footer-support {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 12px;
}

.footer-support strong {
    color: #35424a;
    font-size: 12px;
}

.footer-support > a {
    color: #315f75;
    font-size: 13px;
    font-weight: 700;
}

.footer-support span {
    color: #8b949b;
    font-size: 11px;
}

.footer-support .footer-email {
    position: relative;
    padding-left: 12px;
    color: #707b82;
    font-size: 11px;
    font-weight: 400;
}

.footer-support .footer-email::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 10px;
    background: #d3d9dd;
    transform: translateY(-50%);
}


.footer-policy {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.footer-policy a {
    position: relative;
    color: #69737a;
    font-size: 11px;
}

.footer-policy a + a::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 1px;
    height: 9px;
    background: #d4dade;
    transform: translateY(-50%);
}

.footer-policy a:hover {
    color: var(--blue);
}

.footer-policy .important {
    color: #334f61;
    font-weight: 700;
}


/* 기관정보 */

.footer-info {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 26px;
    padding: 19px 0 17px;
}

.footer-brand {
    color: #34434c;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.footer-details {
    color: #7d878e;
}

.footer-details p {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 18px;
    margin: 0 0 6px;
    line-height: 1.65;
}

.footer-details p:last-child {
    margin-bottom: 0;
}

.footer-details span {
    position: relative;
}

.footer-details span + span::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 5px;
    width: 1px;
    height: 9px;
    background: #d7dde1;
}

.footer-details strong {
    margin-right: 5px;
    color: #616c73;
    font-weight: 600;
}


/* 저작권 */

.footer-bottom {
    padding: 11px 0 15px;
    border-top: 1px solid #e7ebee;
    color: #959da3;
    font-size: 10px;
}


/* 반응형 */

@media(max-width:1000px) {

    .new-course-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media(max-width:800px) {

    .footer-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 9px;
    }

}

@media(max-width:700px) {

    .new-course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width:480px) {

    .new-course-grid {
        grid-template-columns: 1fr;
    }

    .new-course-thumb {
        height: 170px;
    }

    .footer-policy {
        flex-wrap: wrap;
        gap: 9px 16px;
    }

    .footer-support {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .footer-support .footer-email {
        padding-left: 0;
    }

    .footer-support .footer-email::before {
        display: none;
    }

    .footer-details p {
        display: block;
    }

    .footer-details span {
        display: block;
        margin-bottom: 3px;
    }

    .footer-details span + span::before {
        display: none;
    }

}


/* =========================================================
   V6 최종 통합 조정
   - 좌우 메뉴 그룹 분리
   - 20px 세로 리듬
   - 기업·공공기관 배너
   - Footer 브랜드 강화
========================================================= */


/* -----------------------------
   NAV : 핵심메뉴 / 사용자메뉴 분리
----------------------------- */

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-primary,
.nav-utility {
    display: flex;
    align-items: center;
}

.nav-primary {
    gap: 32px;
}

.nav-utility {
    gap: 14px;
    margin-left: 54px;
}

.nav-primary > a,
.nav-utility > a {
    position: relative;
    display: block;
    line-height: 54px;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

/* 핵심 교육·사업 메뉴 */
.nav-primary > a {
    color: #30353a;
    font-size: 15px;
    font-weight: 600;
}

/* 홈을 가장 왼쪽에서 조금 더 명확하게 */
.nav-primary > a:first-child {
    font-weight: 700;
}

/* 커뮤니티는 보조메뉴 성격 */
.nav-community {
    color: #737d84 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* 마이페이지는 가벼운 버튼형 */
.nav-mypage {
    line-height: 1 !important;
    padding: 9px 14px;
    border: 1px solid #d5dde2;
    background: #fafcfd;
    color: #466576 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.nav-mypage:hover,
.nav-mypage.active {
    border-color: #9bb9c7;
    background: #f6fafc;
    color: #0b658f !important;
}

/* active underline는 핵심/커뮤니티에만 */
.nav-primary > a.active::after,
.nav-community.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--blue);
}

.nav-mypage.active::after {
    display: none;
}


/* -----------------------------
   기업·공공기관 배너
----------------------------- */

.banner-institution {
    background-image:
        url('../images/banner-institution.webp');

    background-position: center 50%;
}

.banner-institution::before {
    background:
        linear-gradient(
            90deg,
            rgba(24,43,56,.88) 0%,
            rgba(24,43,56,.64) 43%,
            rgba(24,43,56,.12) 77%,
            rgba(24,43,56,0) 100%
        );
}


/* -----------------------------
   큰 섹션 간격 20px 통일
----------------------------- */

/* 메뉴 바로 아래 배너 영역 */
.main-section {
    margin-top: 0;
    padding-top: 20px;
    padding-bottom: 0;
}

/* 배너/소식 영역과 추천강좌 사이 */
.recommended-section {
    margin-top: 20px;
    padding-top: 34px;
    padding-bottom: 42px;
}

/* 추천강좌와 신규강좌 사이 */
.new-courses-section {
    margin-top: 20px;
    padding-top: 34px;
    padding-bottom: 42px;
}


/* -----------------------------
   Footer 브랜드 영역
----------------------------- */

.footer-info {
    grid-template-columns: 185px 1fr;
    gap: 28px;
}

.footer-brand {
    width: 185px;
    align-self: start;
}

.footer-brand-ko {
    color: #536f82;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.7px;
    white-space: nowrap;
}

.footer-brand-en {
    margin-top: 7px;
    color: #8799a4;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.48;
    letter-spacing: 1.05px;
    white-space: nowrap;
}

/* 기관정보 앞 청색 세로선 */
.footer-details {
    position: relative;
    padding-left: 25px;
}

.footer-details::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 2px;
    background: #89adbd;
}


/* -----------------------------
   반응형
----------------------------- */

@media(max-width:1100px) {

    .nav-primary {
        gap: 22px;
    }

    .nav-utility {
        margin-left: 28px;
    }

    .nav-primary > a {
        font-size: 14px;
    }

}

@media(max-width:900px) {

    .nav-container {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 28px;
    }

    .nav-primary,
    .nav-utility {
        flex-shrink: 0;
    }

    .nav-utility {
        margin-left: 10px;
    }

}

@media(max-width:800px) {

    .footer-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-brand {
        width: auto;
    }

    .footer-details {
        padding-left: 18px;
    }

}

@media(max-width:600px) {

    .nav-primary {
        gap: 18px;
    }

    .nav-utility {
        gap: 10px;
    }

    .nav-mypage {
        padding: 8px 11px;
    }

    .footer-brand-ko {
        font-size: 19px;
    }

}


/* =========================================================
   V6.1 정렬 보정
   - 홈(HOME)
   - 핵심메뉴 폭 = 좌측 70% 배너 폭
   - 기업·공공기관 끝선 = 좌측 배너 끝선
   - Footer 기관정보 3열 x 2행
========================================================= */


/* ---------------------------------------------------------
   메인메뉴 정렬
   main-container = 7fr + 22px gap + 3fr
   따라서 nav-primary도 좌측 7fr 영역과 같은 폭으로 설정
--------------------------------------------------------- */

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 좌측 메인배너와 정확히 같은 폭 */
.nav-primary {
    flex: 0 0 calc((100% - 22px) * 0.7);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 0;
}

/* 홈의 왼쪽 시작점 / 기업·공공기관 오른쪽 끝점 고정 */
.nav-primary > a {
    flex: 0 0 auto;

    color: #30353a;
    font-size: 15px;
    font-weight: 600;

    text-align: center;
    white-space: nowrap;
}

/* 첫 메뉴는 배너 왼쪽선에 맞춤 */
.nav-primary > a:first-child {
    text-align: left;
}

/* 마지막 메뉴는 배너 오른쪽선에 맞춤 */
.nav-primary > a:last-child {
    text-align: right;
}

/* 우측 사용자 메뉴는 나머지 30% 영역 안에서 오른쪽 정렬 */
.nav-utility {
    flex: 1 1 auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 14px;

    margin-left: 22px;
}


/* ---------------------------------------------------------
   Footer 기관정보 3열 x 2행 정렬
--------------------------------------------------------- */

.footer-details {
    position: relative;
    padding-left: 25px;
    color: #7d878e;
}

.footer-details::before {
    content: "";

    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;

    width: 2px;

    background: #89adbd;
}

.footer-info-grid {
    display: grid;

    grid-template-columns:
        minmax(145px, .85fr)
        minmax(235px, 1.15fr)
        minmax(255px, 1.25fr);

    column-gap: 28px;
    row-gap: 9px;

    align-items: start;
}

.footer-info-item {
    min-width: 0;

    display: flex;
    align-items: baseline;

    gap: 7px;

    line-height: 1.55;
}

.footer-info-item strong {
    flex: 0 0 auto;

    color: #5f6c74;
    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}

.footer-info-item span {
    color: #7d878e;
    font-size: 11px;

    white-space: nowrap;
}

.footer-address {
    display: flex;
    align-items: baseline;

    gap: 7px;

    margin-top: 10px;
    padding-top: 9px;

    border-top: 1px solid #edf0f2;

    line-height: 1.55;
}

.footer-address strong {
    color: #5f6c74;
    font-size: 11px;
    font-weight: 600;
}

.footer-address span {
    color: #7d878e;
    font-size: 11px;
}


/* ---------------------------------------------------------
   반응형 보정
--------------------------------------------------------- */

@media(max-width:1100px) {

    .nav-primary {
        flex-basis: calc((100% - 18px) * 0.7);
    }

    .nav-primary > a {
        font-size: 13.5px;
    }

    .nav-utility {
        margin-left: 18px;
    }

    .footer-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media(max-width:900px) {

    .nav-container {
        overflow-x: auto;
        gap: 26px;
    }

    .nav-primary {
        flex: 0 0 auto;
        width: auto;

        gap: 22px;

        justify-content: flex-start;
    }

    .nav-utility {
        flex: 0 0 auto;
        margin-left: 0;
    }

}

@media(max-width:700px) {

    .footer-info-grid {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }

    .footer-info-item span {
        white-space: normal;
    }

    .footer-address {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

}


/* =========================================================
   V6.2 Footer 최종 줄맞춤
   1열: 대표자 ↕ 출판사신고
   2열: 사업자등록번호 ↕ 원격평생교육시설 신고번호
   3열: 통신판매업신고 ↕ 개인정보보호책임자
========================================================= */

.footer-info-grid {
    display: grid;

    grid-template-columns:
        minmax(195px, 0.90fr)
        minmax(285px, 1.25fr)
        minmax(310px, 1.35fr);

    grid-template-rows: auto auto;

    column-gap: 34px;
    row-gap: 10px;

    width: 100%;
    align-items: baseline;
}

/* 각 항목은 '항목명 + 값'을 한 줄로 유지 */
.footer-info-item {
    display: flex;
    align-items: baseline;
    gap: 7px;

    min-width: 0;

    font-size: 11px;
    line-height: 1.55;
}

/* 1행 */
.footer-info-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.footer-info-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.footer-info-item:nth-child(3) { grid-column: 3; grid-row: 1; }

/* 2행 */
.footer-info-item:nth-child(4) { grid-column: 1; grid-row: 2; }
.footer-info-item:nth-child(5) { grid-column: 2; grid-row: 2; }
.footer-info-item:nth-child(6) { grid-column: 3; grid-row: 2; }

.footer-info-item strong,
.footer-info-item span {
    white-space: nowrap;
}

@media(max-width:1100px) {

    .footer-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        column-gap: 26px;
    }

    .footer-info-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

}

@media(max-width:700px) {

    .footer-info-grid {
        grid-template-columns: 1fr;
    }

    .footer-info-item {
        flex-wrap: wrap;
    }

    .footer-info-item strong,
    .footer-info-item span {
        white-space: normal;
    }

}


/* =========================================================
   V6.3 주메뉴 영문 서브라벨
========================================================= */

.nav-primary > a,
.nav-utility > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 58px;
    line-height: 1.1;

    padding-top: 1px;
    box-sizing: border-box;
}

/* 홈/기업 끝선 정렬 유지 */
.nav-primary > a:first-child {
    align-items: flex-start;
}

.nav-primary > a:last-child {
    align-items: flex-end;
}

.nav-ko {
    display: block;

    color: inherit;

    font-size: inherit;
    font-weight: inherit;

    line-height: 1.15;

    white-space: nowrap;
}

.nav-en {
    display: block;

    margin-top: 4px;

    color: #94a1a9;

    font-size: 8px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: .75px;

    white-space: nowrap;
}

/* 커뮤니티/마이페이지 영문은 더 조용하게 */
.nav-community .nav-en,
.nav-mypage .nav-en {
    color: #a1abb1;
    font-size: 7.5px;
    letter-spacing: .65px;
}

/* 마이페이지의 2단 메뉴에 맞춰 버튼 높이 조정 */
.nav-mypage {
    height: 40px !important;
    padding: 7px 14px !important;
}

/* active underline 위치 */
.nav-primary > a.active::after,
.nav-community.active::after {
    bottom: 0;
}

/* 메뉴가 4px 높아졌지만 배너와의 시각적 간격은 20px 유지 */
.main-section {
    padding-top: 20px;
}

@media(max-width:1100px) {

    .nav-en {
        font-size: 7px;
        letter-spacing: .5px;
    }

}

@media(max-width:900px) {

    .nav-primary > a:first-child,
    .nav-primary > a:last-child {
        align-items: center;
    }

}


/* =========================================================
   V6.4 Footer 3행 x 2열 / 정상 줄간격 / 영문 폭 맞춤
========================================================= */

/* 브랜드 영역: 한글과 영문의 좌우 폭을 시각적으로 맞춤 */
.footer-brand {
    width: 185px;
}

.footer-brand-ko {
    display: block;
    width: 100%;

    color: #536f82;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: -0.65px;
    white-space: nowrap;
}

.footer-brand-en {
    display: flex;
    flex-direction: column;

    width: 100%;

    margin-top: 5px;

    color: #8799a4;
    font-size: 8.4px;
    font-weight: 600;
    line-height: 1.28;

    letter-spacing: 0;
}

/* 각 영문 줄을 한글 폭에 맞춰 양쪽 정렬 */
.footer-brand-en::first-line {
    letter-spacing: .82px;
}

/* 기존 br 구조에서도 두 줄 폭을 맞추기 위해 word-spacing 보정 */
.footer-brand-en {
    text-align: justify;
    text-align-last: justify;
}

/* 3행 x 2열 */
.footer-info-grid {
    display: grid;

    grid-template-columns:
        minmax(310px, 1fr)
        minmax(360px, 1.15fr);

    grid-template-rows: repeat(3, auto);

    column-gap: 44px;
    row-gap: 3px;

    width: 100%;

    align-items: baseline;
}

/* 순서: 1행 좌/우, 2행 좌/우, 3행 좌/우 */
.footer-info-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.footer-info-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.footer-info-item:nth-child(3) { grid-column: 1; grid-row: 2; }
.footer-info-item:nth-child(4) { grid-column: 2; grid-row: 2; }
.footer-info-item:nth-child(5) { grid-column: 1; grid-row: 3; }
.footer-info-item:nth-child(6) { grid-column: 2; grid-row: 3; }

.footer-info-item {
    display: flex;
    align-items: baseline;

    gap: 7px;

    min-height: 18px;

    line-height: 1.35;
}

.footer-info-item strong {
    flex: 0 0 auto;

    margin: 0;

    color: #5f6c74;
    font-size: 11px;
    font-weight: 600;

    line-height: 1.35;
    white-space: nowrap;
}

.footer-info-item span {
    color: #7d878e;
    font-size: 11px;

    line-height: 1.35;
    white-space: nowrap;
}

/* 주소도 위 정보와 너무 벌어지지 않게 */
.footer-address {
    margin-top: 6px;
    padding-top: 6px;

    line-height: 1.35;
}

/* Footer 전체 세로 높이도 살짝 압축 */
.footer-info {
    padding-top: 16px;
    padding-bottom: 14px;
}

@media(max-width:1100px) {

    .footer-info-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
    }

}

@media(max-width:760px) {

    .footer-info-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: 4px;
    }

    .footer-info-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .footer-info-item span {
        white-space: normal;
    }

    .footer-brand-en {
        width: 185px;
    }

}


/* =========================================================
   V6.5 최종 보정
   - 홈(HOME) + YOUNGJONG
   - 로그인/회원가입을 마이페이지 가까이
   - Footer 영문 전체표기
   - Footer 반드시 2행 × 3열
========================================================= */


/* ---------------------------------------------------------
   HOME도 다른 메뉴와 동일한 2단 높이
--------------------------------------------------------- */

.nav-primary > a:first-child {
    align-items: flex-start;
}

.nav-primary > a:first-child .nav-en {
    width: 100%;
    text-align: center;
}


/* ---------------------------------------------------------
   로그인 / 회원가입
   상단 우측에서 아래로 내려 커뮤니티/마이페이지와 가깝게
--------------------------------------------------------- */

.site-header {
    position: relative;
}

.header-top {
    position: relative;
    padding-top: 14px;
    padding-bottom: 20px;
}

.auth-links {
    position: absolute;

    right: 20px;
    bottom: -16px;

    z-index: 20;

    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-links a {
    position: relative;

    color: #858e94;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.auth-links a + a::before {
    content: "";

    position: absolute;
    left: -6px;
    top: 50%;

    width: 1px;
    height: 9px;

    background: #d3d9dd;

    transform: translateY(-50%);
}

.auth-links a:hover {
    color: #356b84;
}

/* 우측 메뉴가 auth와 너무 붙지 않도록 상단 공간만 아주 조금 확보 */
.navbar {
    position: relative;
}

.nav-utility {
    padding-top: 4px;
}


/* ---------------------------------------------------------
   Footer 브랜드
   한글 아래 영문 전체 문구 + 두 줄 모두 한글 폭에 맞춤
--------------------------------------------------------- */

.footer-brand {
    width: 190px;
    align-self: start;
}

.footer-brand-ko {
    display: block;

    width: 100%;

    color: #536f82;

    font-size: 21px;
    font-weight: 700;

    line-height: 1.2;
    letter-spacing: -0.65px;

    white-space: nowrap;
}

.footer-brand-en {
    display: block;

    width: 100%;

    margin-top: 6px;

    color: #8799a4;

    font-size: 8.1px;
    font-weight: 600;

    line-height: 1.3;
}

.footer-brand-en-line {
    display: block;

    width: 100%;

    text-align: justify;
    text-align-last: justify;

    white-space: nowrap;
}

/* 첫 줄과 둘째 줄 모두 좌우 끝을 한글 폭과 시각적으로 맞춤 */
.footer-brand-en-line:first-child {
    letter-spacing: .12px;
}

.footer-brand-en-line:last-child {
    margin-top: 1px;
    letter-spacing: .08px;
}


/* ---------------------------------------------------------
   Footer 정보 : 반드시 2행 × 3열
--------------------------------------------------------- */

.footer-details {
    position: relative;

    padding-left: 24px;

    color: #7d878e;
}

.footer-details::before {
    content: "";

    position: absolute;

    left: 0;
    top: 1px;
    bottom: 1px;

    width: 2px;

    background: #89adbd;
}

.footer-info-grid {
    display: grid !important;

    grid-template-columns:
        minmax(185px, .80fr)
        minmax(265px, 1.05fr)
        minmax(315px, 1.25fr) !important;

    grid-template-rows: auto auto !important;

    column-gap: 30px !important;
    row-gap: 4px !important;

    width: 100%;

    align-items: baseline;
}


/* 1행 */
.footer-r1c1 {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.footer-r1c2 {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.footer-r1c3 {
    grid-column: 3 !important;
    grid-row: 1 !important;
}


/* 2행 */
.footer-r2c1 {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

.footer-r2c2 {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

.footer-r2c3 {
    grid-column: 3 !important;
    grid-row: 2 !important;
}


.footer-info-item {
    display: flex;

    align-items: baseline;

    gap: 6px;

    min-width: 0;
    min-height: 17px;

    margin: 0;
    padding: 0;

    line-height: 1.3;
}

.footer-info-item strong {
    flex: 0 0 auto;

    margin: 0;

    color: #606c74;

    font-size: 10.5px;
    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;
}

.footer-info-item span {
    margin: 0;

    color: #7c858c;

    font-size: 10.5px;

    line-height: 1.3;

    white-space: nowrap;
}


/* 주소도 기관정보 바로 아래 자연스럽게 */
.footer-address {
    display: flex;

    align-items: baseline;

    gap: 6px;

    margin-top: 5px;
    padding-top: 5px;

    border-top: 1px solid #edf0f2;

    line-height: 1.3;
}

.footer-address strong,
.footer-address span {
    font-size: 10.5px;
    line-height: 1.3;
}

.footer-info {
    padding-top: 15px;
    padding-bottom: 13px;
}


/* ---------------------------------------------------------
   반응형
--------------------------------------------------------- */

@media(max-width:1100px) {

    .footer-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto !important;
        column-gap: 24px !important;
    }

    .footer-info-item {
        grid-column: auto !important;
        grid-row: auto !important;
    }

}

@media(max-width:900px) {

    .auth-links {
        position: static;

        margin-left: auto;

        padding-top: 4px;
    }

    .header-top {
        padding-bottom: 14px;
    }

}

@media(max-width:700px) {

    .footer-info-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-info-item {
        grid-column: auto !important;
        grid-row: auto !important;

        flex-wrap: wrap;
    }

    .footer-info-item span {
        white-space: normal;
    }

    .footer-brand {
        width: 190px;
    }

}


/* =========================================================
   V6.6 정밀보정
   - 메뉴 underline 제거
   - 한글/영문 좌측 정렬
   - 가벼운 hover
   - 로그인/회원가입과 마이페이지 사이 10px 여유
   - Footer 브랜드 정돈
   - Footer 반드시 2행 x 3열
========================================================= */


/* ---------------------------------------------------------
   주메뉴: 모두 좌측 정렬
--------------------------------------------------------- */

.nav-primary > a,
.nav-utility > a {
    align-items: flex-start !important;
    text-align: left !important;
}

.nav-primary > a:first-child,
.nav-primary > a:last-child {
    align-items: flex-start !important;
    text-align: left !important;
}

.nav-ko,
.nav-en {
    width: auto !important;
    text-align: left !important;
}

.nav-en {
    margin-top: 4px;
    color: #96a2a9;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .65px;
}


/* ---------------------------------------------------------
   메뉴 선택 underline 완전 제거
--------------------------------------------------------- */

.nav-primary > a.active::after,
.nav-community.active::after,
.main-menu.active::after,
.main-menu::after {
    display: none !important;
    content: none !important;
}


/* ---------------------------------------------------------
   롤오버: 아주 가벼운 반응만
--------------------------------------------------------- */

.main-menu {
    transition:
        color .18s ease,
        transform .18s ease,
        opacity .18s ease;
}

.main-menu:hover {
    color: #246b8a !important;
    transform: translateY(-1px);
}

.main-menu:hover .nav-en {
    color: #6f91a1;
}


/* ---------------------------------------------------------
   마이페이지
--------------------------------------------------------- */

.nav-mypage {
    transform: none;
}

.nav-mypage:hover {
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   로그인 / 회원가입
   마이페이지와 너무 붙지 않게 10px 수준의 수직 여유
--------------------------------------------------------- */

.auth-links {
    bottom: -5px !important;
}

.nav-utility {
    padding-top: 5px;
}

/* 로그인/회원가입과 메뉴 영역 사이 최소 10px 감각 확보 */
.navbar {
    margin-top: 10px;
}


/* ---------------------------------------------------------
   Footer 브랜드
--------------------------------------------------------- */

.footer-info {
    grid-template-columns: 200px 1fr !important;
    gap: 28px !important;
}

.footer-brand {
    width: 200px !important;
    align-self: start;
}

.footer-brand-ko {
    display: block;
    width: 100%;

    color: #536f82;

    font-size: 21px;
    font-weight: 700;

    line-height: 1.18;
    letter-spacing: -0.65px;

    white-space: nowrap;
}

.footer-brand-en {
    display: flex !important;
    flex-direction: column;

    width: 100%;

    margin-top: 6px;

    color: #8799a4;

    font-size: 8.1px;
    font-weight: 600;

    line-height: 1.25;

    overflow: visible !important;
}

.footer-brand-en span {
    display: block;

    width: 100%;

    white-space: nowrap;

    /* 한글 브랜드 폭과 양 끝을 시각적으로 맞춤 */
    text-align: justify;
    text-align-last: justify;
}

.footer-brand-en span + span {
    margin-top: 2px;
}


/* ---------------------------------------------------------
   Footer 기관정보: 반드시 2행 x 3열
--------------------------------------------------------- */

.footer-details {
    position: relative;

    padding-left: 24px;

    color: #7d878e;
}

.footer-details::before {
    content: "";

    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;

    width: 2px;

    background: #89adbd;
}


/*
   정확한 DOM 순서:
   1 대표자
   2 사업자등록번호
   3 통신판매업신고
   4 출판사신고
   5 원격평생교육시설 신고번호
   6 개인정보보호책임자

   CSS Grid의 자동배치는
   1 2 3
   4 5 6
   으로 정확히 2행 x 3열을 만듭니다.
*/
.footer-info-grid {
    display: grid !important;

    grid-template-columns:
        minmax(180px, .80fr)
        minmax(270px, 1.10fr)
        minmax(315px, 1.25fr) !important;

    grid-template-rows: auto auto !important;

    grid-auto-flow: row !important;

    column-gap: 30px !important;
    row-gap: 3px !important;

    width: 100%;
    margin: 0;
    padding: 0;

    align-items: baseline;
}


/* 과거 nth-child 배치 규칙 전부 무효화 */
.footer-info-grid > * {
    grid-column: auto !important;
    grid-row: auto !important;
}


.footer-cell {
    display: flex;
    align-items: baseline;

    gap: 6px;

    min-width: 0;
    min-height: 17px;

    margin: 0;
    padding: 0;

    line-height: 1.3;
}

.footer-cell strong {
    flex: 0 0 auto;

    margin: 0;

    color: #606c74;

    font-size: 10.5px;
    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;
}

.footer-cell span {
    margin: 0;

    color: #7c858c;

    font-size: 10.5px;

    line-height: 1.3;

    white-space: nowrap;
}


.footer-address {
    margin-top: 5px !important;
    padding-top: 5px !important;

    line-height: 1.3;
}


/* Footer 전체 높이 압축 */
.footer-info {
    padding-top: 14px !important;
    padding-bottom: 12px !important;
}


/* ---------------------------------------------------------
   반응형
--------------------------------------------------------- */

@media(max-width:1100px) {

    .footer-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto !important;
    }

}

@media(max-width:760px) {

    .footer-info-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-cell {
        flex-wrap: wrap;
    }

    .footer-cell span {
        white-space: normal;
    }

    .footer-brand {
        width: 200px !important;
    }

}


/* =========================================================
   V6.7 FOOTER 최종 정렬
   - 브랜드 영문 완전 좌측정렬
   - 브랜드 빈 공간 축소
   - 청색 세로선 좌측 이동
   - 기관정보 정확히 2행 × 3열
========================================================= */

/* 풋터 전체: 브랜드 폭을 줄여 정보영역을 왼쪽으로 당김 */
.footer-info {
    display: grid !important;
    grid-template-columns: 158px minmax(0, 1fr) !important;
    gap: 16px !important;

    padding-top: 14px !important;
    padding-bottom: 12px !important;
}


/* 브랜드 */
.footer-brand {
    width: 158px !important;
    min-width: 158px !important;
    align-self: start;
}

.footer-brand-ko {
    width: auto !important;

    color: #536f82;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.18;
    letter-spacing: -0.7px;

    white-space: nowrap;
}

/* 영문: 무조건 좌측 정렬 */
.footer-brand-en {
    display: block !important;

    width: auto !important;

    margin-top: 5px !important;

    color: #8799a4;

    font-size: 7.7px !important;
    font-weight: 600;

    line-height: 1.32 !important;

    text-align: left !important;
    text-align-last: left !important;
    letter-spacing: .15px !important;

    overflow: visible !important;
}

.footer-brand-en span {
    display: block !important;

    width: auto !important;

    margin: 0 !important;

    text-align: left !important;
    text-align-last: left !important;

    white-space: nowrap !important;
}


/* 청색 세로선: 브랜드 바로 오른쪽으로 당김 */
.footer-details {
    position: relative;

    min-width: 0;

    padding-left: 17px !important;
}

.footer-details::before {
    content: "";

    position: absolute;

    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;

    width: 2px;

    background: #89adbd;
}


/* 기관정보: 데스크톱에서 정확히 2행 × 3열 */
.footer-info-grid {
    display: grid !important;

    grid-template-columns:
        minmax(150px, .72fr)
        minmax(235px, 1.08fr)
        minmax(285px, 1.30fr) !important;

    grid-template-rows: auto auto !important;

    grid-auto-flow: row !important;

    column-gap: 24px !important;
    row-gap: 4px !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    align-items: baseline;
}


/* 이전 버전의 nth-child 강제 좌표 완전 무효화 */
.footer-info-grid > .footer-cell:nth-child(n) {
    grid-column: auto !important;
    grid-row: auto !important;
}


/*
  DOM 순서 그대로:
  1  대표자
  2  사업자등록번호
  3  통신판매업신고
  4  출판사신고
  5  원격평생교육시설 신고번호
  6  개인정보보호책임자

  따라서 CSS Grid는
  [1][2][3]
  [4][5][6]
  으로 배치
*/
.footer-cell {
    display: flex !important;

    align-items: baseline;

    gap: 5px;

    min-width: 0;
    min-height: 17px;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1.3;
}

.footer-cell strong {
    flex: 0 0 auto;

    margin: 0 !important;

    color: #606c74;

    font-size: 10.5px;
    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;
}

.footer-cell span {
    margin: 0 !important;

    color: #7c858c;

    font-size: 10.5px;

    line-height: 1.3;

    white-space: nowrap;
}


/* 주소는 바로 아래에 가볍게 */
.footer-address {
    margin-top: 5px !important;
    padding-top: 5px !important;

    border-top: 1px solid #edf0f2;

    line-height: 1.3;
}


/* 태블릿 이하에서만 반응형 전환 */
@media(max-width: 980px) {

    .footer-info {
        grid-template-columns: 145px minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .footer-brand {
        width: 145px !important;
        min-width: 145px !important;
    }

    .footer-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto !important;
        column-gap: 20px !important;
    }

}

@media(max-width: 700px) {

    .footer-info {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .footer-brand {
        width: auto !important;
        min-width: 0 !important;
    }

    .footer-details {
        padding-left: 14px !important;
    }

    .footer-info-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-cell {
        flex-wrap: wrap;
    }

    .footer-cell span {
        white-space: normal;
    }

}


/* =========================================================
   V6.8 헤더 간격 보정
   - 상단 영종평생교육원 ↔ 주메뉴 간격 축소
========================================================= */

.header-top {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.navbar {
    margin-top: 4px !important;
}

/* 로그인/회원가입은 마이페이지와 너무 붙지 않는 기존 여유 유지 */
.auth-links {
    bottom: -5px !important;
}

/* 주메뉴 자체 높이는 유지하여 한글/영문 정렬이 흐트러지지 않게 함 */
.nav-primary > a,
.nav-utility > a {
    height: 58px;
}


/* WordPress plugin wrapper safety — V6.8.1 디자인 자체는 변경하지 않음 */
body.yj-v681-home-page { margin: 0; }
body.yj-v681-home-page .entry-content,
body.yj-v681-home-page .wp-block-post-content { max-width: none !important; padding: 0 !important; margin: 0 !important; }

/* =========================================================
   YJ-RECOMMENDED-HEIGHT-PATCH-V1.0.0
   추천강좌만 PC에서 세로 여유를 소폭 확대
   - 신규강좌/배너/게시판/메뉴 영향 없음
========================================================= */
@media (min-width: 1001px) {
    .recommended-section .course-thumb {
        height: 160px;
    }

    .recommended-section .course-info-v5 {
        padding: 18px 16px 17px;
    }

    .recommended-section .course-info-v5 h3 {
        min-height: 50px;
    }

    .recommended-section .course-info-v5 .course-description {
        min-height: 68px;
        margin-top: 10px;
    }

    .recommended-section .course-action {
        margin-top: 15px;
    }
}
/* YJ-RECOMMENDED-HEIGHT-PATCH-END */

/* YJ_REC_IMAGE_EN_BADGE_HIDE_V1_START */
/* 추천강좌 이미지 위 영문 배지만 숨김 - 신규강좌는 영향 없음 */
.recommended-section .course-thumb .course-badge,
.recommended-section .course-thumb .recommended-badge,
.recommended-section .course-thumb .badge-recommended,
.recommended-section .course-thumb [class*="recommended"][class*="badge"],
.recommended-section .course-thumb [class*="badge"][class*="recommend"] {
    display: none !important;
}
/* YJ_REC_IMAGE_EN_BADGE_HIDE_V1_END */
