:root {
    --gold: #e8b91f;
    --black: #000000;
    --gray-900: #111111;
    --gray-700: #555555;
    --gray-600: #666666;
    --gray-500: #777777;
    --gray-300: #dddddd;
    --gray-100: #f9f9f9;
    --white: #ffffff;
    --header-h: 100px;
    --container: 1600px;
    --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: keep-all;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

.eyebrow {
    color: var(--gold);
    font-weight: 600;
    font-size: clamp(15px, 1.6vw, 18px);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.section-title {
    font-weight: 600;
    font-size: clamp(24px, 2.6vw, 38px);
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--black);
}

.section-title--center {
    text-align: center;
}

.section-title--white {
    color: var(--white);
}

.title-highlight {
    position: relative;
    display: inline-block;
}

.title-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.02em;
    width: 0%;
    height: 0.42em;
    background: rgba(232, 185, 31, 0.4);
    mix-blend-mode: multiply;
    transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.7s;
}

.section-title.aos-animate .title-highlight::after {
    width: 100%;
}

.section-desc {
    margin-top: 24px;
    font-weight: 400;
    font-size: clamp(15px, 1.1vw, 20px);
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: var(--gray-700);
}

.section-desc--center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.02em;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn-outline {
    border: 1px solid currentColor;
    background: transparent;
}

.btn-outline--white {
    color: var(--white);
}

.btn-outline--white:hover {
    background: var(--white);
    color: var(--black);
}

.btn-outline--black {
    color: var(--black);
}

.btn-outline--black:hover {
    background: var(--black);
    color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
    /* border-bottom: 1px solid transparent; */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.header-inner {
    max-width: 1920px;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 0 60px;
}

.logo img {
    height: 40px;
    width: auto;
    transition: opacity 0.2s ease;
}

.logo:hover img {
    opacity: 0.8;
}

.gnb {
    justify-self: center;
}

.gnb ul {
    display: flex;
    gap: clamp(24px, 3vw, 48px);
}

.gnb a {
    position: relative;
    display: inline-block;
    color: var(--white);
    font-weight: 400;
    font-size: 17px;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.gnb a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.gnb a:hover {
    color: var(--gold);
}

.gnb a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions .btn {
    padding: 10px 22px;
    font-size: 15px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    max-height: 998px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.55) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    color: var(--white);
}

.hero__kicker {
    font-weight: 400;
    font-size: clamp(14px, 1.05vw, 19px);
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.hero__title {
    font-weight: 500;
    font-size: clamp(24px, 3.2vw, 44px);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hero__title .accent {
    display: block;
    margin-top: 8px;
    color: var(--gold);
    font-weight: 800;
    font-size: clamp(44px, 6.4vw, 102px);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.hero__desc {
    margin-top: 32px;
    font-weight: 300;
    font-size: clamp(15px, 1.2vw, 22px);
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- Company ---------- */
.company {
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 24px 120px;
}

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    background: var(--white);
    padding: 20px 0 100px;
}

.marquee__track {
    display: inline-flex;
    gap: 60px;
    animation: marquee-scroll 26s linear infinite;
}

.marquee__track span {
    font-family: var(--font);
    font-weight: 900;
    font-size: clamp(48px, 8vw, 120px);
    color: var(--gray-100);
    letter-spacing: 0;
    text-transform: uppercase;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- Result / Stats ---------- */
.result {
    background: var(--gray-100);
    padding: 100px 60px 120px;
}

.result .eyebrow,
.result .section-title,
.result .section-desc {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.result .eyebrow {
    text-align: left;
}

.stats-grid {
    max-width: var(--container);
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(220px, 30vw, 280px);
    overflow: hidden;
}

.stat-card--tall {
    grid-row: 1 / 3;
    justify-content: flex-start;
}

.stat-card__photo {
    width: 100%;
    aspect-ratio: 321 / 340;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 32px;
}

.stat-card__number {
    font-weight: 700;
    font-size: clamp(40px, 5vw, 76px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--gray-700);
}

.stat-card__unit {
    font-weight: 600;
    font-size: 0.5em;
    letter-spacing: -0.02em;
}

.stat-card__caption {
    margin-top: 16px;
    font-size: clamp(14px, 1.7vw, 18px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--black);
}

/* ---------- Lecture ---------- */
.lecture {
    background: var(--gray-100);
    padding: 100px 60px 120px;
}

.lecture .section-desc {
    margin-top: 22px;
}

.lecture-swiper {
    max-width: var(--container);
    margin: 60px auto 0;
}

.lecture-swiper .swiper-slide {
    height: auto;
}

.lecture-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lecture-swiper__controls {
    max-width: var(--container);
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.lecture-swiper__pagination.swiper-pagination {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

.lecture-swiper__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--gray-300);
    opacity: 1;
    margin: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.lecture-swiper__pagination .swiper-pagination-bullet-active {
    background: var(--gold);
    transform: scale(1.2);
}

.lecture-swiper__btn {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lecture-swiper__btn--prev svg {
    transform: rotate(180deg);
}

.lecture-swiper__btn:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.lecture-swiper__btn.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.lecture-card__thumb {
    aspect-ratio: 365 / 266;
    border-radius: 15px;
    overflow: hidden;
    background: var(--gray-300);
}

.lecture-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lecture-card:hover .lecture-card__thumb img {
    transform: scale(1.06);
}

.lecture-card__title {
    margin-top: clamp(14px, 2.2vw, 24px);
    font-weight: 600;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.4;
    letter-spacing: -0.015em;
    min-height: 2.6em;
}

.lecture-card__date {
    margin-top: 6px;
    font-weight: 400;
    font-size: clamp(13px, 1.4vw, 18px);
    color: var(--gray-500);
}

.lecture__more {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

/* ---------- Support ---------- */
.support {
    padding: clamp(60px, 9vw, 100px) clamp(20px, 5vw, 60px);
}

.support__inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}

.support__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.support__overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
    padding: clamp(48px, 8vw, 90px) clamp(20px, 4vw, 40px);
}

.support-grid {
    max-width: 1000px;
    margin: clamp(32px, 6vw, 56px) auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 3vw, 24px);
}

.support-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: clamp(24px, 4.5vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 40px);
    min-height: clamp(170px, 28vw, 230px);
    backdrop-filter: blur(4px);
}

.support-card__title {
    color: var(--white);
    font-weight: 600;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.support-card .btn {
    align-self: flex-start;
    padding: clamp(11px, 2vw, 14px) clamp(18px, 3.4vw, 26px);
    font-size: clamp(13px, 1.5vw, 15px);
}

/* ---------- To top ---------- */
.to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin: clamp(24px, 3vw, 48px) auto 0;
    position: relative;
    z-index: 5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--white);
    padding: clamp(48px, 9vw, 80px) clamp(20px, 5vw, 60px) clamp(28px, 4vw, 40px);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.footer-logo img {
    height: clamp(28px, 4vw, 40px);
    width: auto;
}

.footer-info {
    margin-top: clamp(20px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info p {
    display: flex;
    flex-wrap: wrap;
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: 500;
    color: var(--gray-700);
    letter-spacing: -0.02em;
}

/* 이메일은 눌러서 바로 메일을 쓸 수 있게 링크로 두되, 글줄 모양은 그대로 둔다 */
.footer-info a:hover {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-info p span {
    flex: none;
    width: 64px;
    color: var(--gray-900);
    font-size: clamp(14px, 1.7vw, 18px);
}

.footer-nav {
    margin-top: clamp(20px, 4vw, 36px);
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(14px, 3vw, 32px);
}

.footer-nav a {
    font-weight: 400;
    font-size: clamp(14px, 1.7vw, 18px);
    color: var(--black);
}

.footer-line {
    margin-top: clamp(28px, 5vw, 50px);
    border: none;
    border-top: 1px solid var(--gray-300);
}

.footer-bottom {
    margin-top: clamp(20px, 3vw, 32px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-copyright {
    font-size: clamp(13px, 1.4vw, 15px);
    color: var(--gray-600);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 24px);
}

.footer-legal a {
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 500;
    color: var(--gray-700);
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .header-inner {
        padding: 0 32px;
    }

    .stats-grid {
        grid-template-columns: minmax(220px, 300px) 1fr;
        grid-template-rows: repeat(4, auto);
    }

    .stat-card--tall {
        grid-row: 1 / 5;
        grid-column: 1;
    }

    .stat-card__photo {
        max-width: 260px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 64px;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }

    .logo img {
        height: 26px;
    }

    .header-actions {
        gap: 16px;
    }

    .header-actions .btn {
        padding: 9px 16px;
        font-size: 14px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
        gap: 5px;
    }

    .gnb {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-h));
        background: rgba(10, 10, 10, 0.98);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .gnb.is-open {
        transform: translateX(0);
    }

    .gnb ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 36px;
    }

    .gnb a {
        font-size: 22px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

@media (max-width: 640px) {

    .section-desc {
        text-wrap: balance;
    }

    .company,
    .result,
    .lecture,
    .support {
        padding-left: 24px;
        padding-right: 24px;
    }

    .result,
    .lecture {
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .company {
        padding-top: 110px;
        padding-bottom: 80px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .stat-card--tall {
        grid-column: auto;
        grid-row: auto;
    }

    .stat-card__photo {
        max-width: none;
    }

    .lecture-swiper__controls {
        gap: 12px;
    }

    .support {
        padding: 60px 20px;
    }

    .support__overlay {
        padding: 60px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .to-top {
        width: 64px;
        height: 64px;
        margin-top: clamp(20px, 5vw, 32px);
    }
}
/* ---------- 그누보드 연동 추가분 ---------- */
/* 메인 강좌 스와이퍼: 최신글 카드 전체를 링크로 감쌈 (skin/latest/lecture) */
.lecture-card__link {
    display: block;
    height: 100%;
    color: inherit;
}

/* 화면에는 감추고 스크린리더에만 읽히는 텍스트.
   그누보드 스킨 전반에서 쓰는 클래스이므로 모든 페이지에 적용되도록 여기에 둡니다. */
.sound_only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 팝업레이어 (관리자 > 환경설정 > 팝업레이어) ---------- */
#hd_pop {
    position: relative;
    z-index: 1000;
    max-width: var(--container);
    margin: 0 auto;
    height: 0;
}

/* '팝업레이어 알림' 제목은 스크린리더 전용 */
#hd_pop h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    font-size: 0;
    line-height: 0;
}

.hd_pops {
    position: absolute;
    max-width: calc(100vw - 24px);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.hd_pops_con {
    max-width: 100%;
    line-height: 1.6;
}

.hd_pops_con img {
    display: block;
    max-width: 100%;
    height: auto;
}

.hd_pops_footer {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: var(--gray-900);
    color: var(--white);
}

.hd_pops_footer button {
    padding: 12px 16px;
    border: 0;
    background: none;
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    letter-spacing: -0.02em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hd_pops_footer .hd_pops_reject {
    text-align: left;
}

.hd_pops_footer .hd_pops_reject:hover {
    color: var(--gold);
}

.hd_pops_footer .hd_pops_close {
    flex: none;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 600;
}

.hd_pops_footer .hd_pops_close:hover {
    background: var(--gold);
    color: var(--gray-900);
}

@media (max-width: 640px) {
    /* 관리자가 지정한 좌표/크기가 모바일 화면을 넘지 않도록 보정 */
    .hd_pops {
        left: 12px !important;
        right: 12px;
        width: auto;
    }

    .hd_pops_con {
        width: auto !important;
        height: auto !important;
        max-height: 70vh;
        overflow: auto;
    }
}
