html {
    scroll-behavior: smooth;
}

/* =========================
   공통 섹션
========================= */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #2f6fed;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.section-desc {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 42%, rgba(58, 160, 255, 0.32) 0%, rgba(58, 160, 255, 0.08) 28%, transparent 52%),
        linear-gradient(135deg, #050b18 0%, #07162d 46%, #0a2449 100%);
    padding: 86px 0 96px;
    color: #fff;
}

.service-hero.korean {
    background:
        radial-gradient(circle at 72% 42%, rgba(248, 113, 113, 0.28) 0%, rgba(248, 113, 113, 0.08) 28%, transparent 52%),
        linear-gradient(135deg, #12070a 0%, #3b0d17 52%, #172033 100%);
}

.service-hero.english {
    background:
        radial-gradient(circle at 72% 42%, rgba(34, 197, 94, 0.24) 0%, rgba(14, 165, 233, 0.08) 30%, transparent 52%),
        linear-gradient(135deg, #06130d 0%, #0f3a2a 50%, #0f2f48 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 82%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(82, 184, 255, 0.8), transparent);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    align-items: center;
    gap: 34px;
}

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

.hero-top {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    margin: 0 0 20px;
    border: 1px solid rgba(105, 200, 255, 0.34);
    border-radius: 999px;
    background: rgba(58, 160, 255, 0.12);
    color: #bfe7ff;
    font-size: 14px;
    font-weight: 800;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.badge {
    height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(155, 213, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
    font-weight: 800;
    color: #e8f6ff;
}

.hero h1 {
    margin: 0 0 24px;
    max-width: 760px;
    font-size: clamp(46px, 4.2vw, 68px);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: normal;
    text-shadow:
        0 3px 0 rgba(58, 160, 255, 0.16),
        0 16px 36px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(105, 200, 255, 0.18);
}

.hero-desc {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 34px;
    color: rgba(226, 242, 255, 0.9);
    word-break: keep-all;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    padding: 0 28px;
    border: 1px solid rgba(105, 200, 255, 0.55);
    border-radius: 14px;
    background: linear-gradient(180deg, #3aa0ff 0%, #1f6fe0 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(47, 128, 237, 0.3);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-secondary .brand-word {
    font-size: 1.04em;
    text-shadow: none;
}

.btn-secondary .brand-word::after {
    width: 0.18em;
    flex-basis: 0.18em;
}

.brand-word-light .brand-hi {
    color: #d9f1ff;
}

.brand-word-light .brand-sky {
    color: #ffffff;
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #4ab1ff 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(47, 128, 237, 0.38);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 24px;
    border: 1px solid rgba(191, 231, 255, 0.34);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #dff3ff;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
    border-color: rgba(191, 231, 255, 0.58);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.hero-image {
    display: flex;
    justify-content: center;
    padding: 20px;
    border: 1px solid rgba(210, 235, 255, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 50% 48%, rgba(245, 251, 255, 0.34) 0%, rgba(205, 235, 255, 0.22) 34%, rgba(78, 164, 235, 0.09) 62%, transparent 82%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(58, 160, 255, 0.045));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 30px 64px rgba(0, 0, 0, 0.18),
        0 0 54px rgba(58, 160, 255, 0.12);
}

.hero-image img {
    width: 100%;
    max-width: 680px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(210, 235, 255, 0.14);
    border-radius: 22px;
    box-shadow:
        0 18px 40px rgba(4, 16, 33, 0.24),
        0 0 34px rgba(170, 226, 255, 0.12);
    display: block;
    filter: brightness(1.08) contrast(1.06) saturate(1.04);
}

.hero-image-korean-script {
    padding: 16px;
    border-color: rgba(231, 196, 143, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 239, 205, 0.1), rgba(116, 38, 30, 0.08)),
        rgba(255, 255, 255, 0.035);
    box-shadow:
        inset 0 1px 0 rgba(255, 241, 211, 0.18),
        0 34px 70px rgba(12, 4, 7, 0.3),
        0 0 54px rgba(185, 105, 75, 0.14);
}

.hero-image-korean-script img {
    max-width: 720px;
    border-color: rgba(235, 205, 162, 0.2);
    border-radius: 20px;
    filter: contrast(1.02) saturate(0.96);
}

/* =========================
   왜 하이스카이인가
========================= */
.intro {
    background: #f8fafc;
}

.intro h2,
.curriculum-preview h2 {
    text-align: center;
    font-size: clamp(34px, 3.4vw, 46px);
    margin-bottom: 42px;
    color: #111827;
    font-weight: 800;
    word-break: keep-all;
}

.intro h2 .brand-word {
    font-size: 1.2em;
    text-shadow:
        0 2px 0 rgba(58, 160, 255, 0.14),
        0 12px 24px rgba(18, 58, 122, 0.12);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: #fff;
    border-radius: 22px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #edf0f5;
}

.card h3 {
    margin: 0 0 16px;
    font-size: 21px;
    color: #111827;
    font-weight: 800;
    line-height: 1.3;
    word-break: keep-all;
}

.card p {
    margin: 0;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
    word-break: keep-all;
}

/* =========================
   대표 강의 영상
========================= */
.featured-lecture {
    background: #ffffff;
}

.featured-lecture-video-wrap {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 28px;
    padding-top: 56.25%;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

.featured-lecture-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.featured-lecture-caption {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.caption-item {
    background: #f8fafc;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 24px 22px;
    text-align: center;
}

.caption-item h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    word-break: keep-all;
}

.caption-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
    word-break: keep-all;
}

.featured-lecture-bottom {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.lecture-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.lecture-link-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* =========================
   커리큘럼
========================= */
.curriculum-preview {
    background: #ffffff;
}

/* =========================
   반응형
========================= */
@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    }
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        max-width: 720px;
    }

    .card-grid,
    .featured-lecture-caption {
        grid-template-columns: 1fr;
    }

    .intro h2,
    .curriculum-preview h2 {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 70px 0;
    }

    .hero {
        padding: 50px 0 70px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-top {
        font-size: 13px;
    }

    .hero-desc,
    .card p,
    .section-desc,
    .caption-item p {
        font-size: 14px;
    }

    .card {
        padding: 20px;
    }

    .hero-actions,
    .btn-secondary,
    .btn-ghost,
    .lecture-link-btn {
        width: 100%;
    }

    .hero-image img {
        border-radius: 16px;
        aspect-ratio: 4 / 3;
    }

    .hero-image {
        padding: 12px;
        border-radius: 20px;
    }
}
