@import url("/css/common.css?v=20260916-22");

/* ==========================================================================
   STEP21 공개 메인페이지
   ========================================================================== */

.home-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #f7fbff 0, #f7fbff 240px, #f5f7fa 240px);
}

.home-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e6ebf0;
}

.home-header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.home-brand {
    color: var(--ui-primary);
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-nav a {
    padding: 7px 9px;
    border-radius: 6px;
    color: #526173;
    font-size: 12.5px;
    font-weight: 500;
}

.home-nav a:hover {
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.home-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 56px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 28px;
    align-items: center;
    padding: 28px 0 44px;
}

.home-kicker {
    margin-bottom: 10px;
    color: var(--ui-primary);
    font-size: 12px;
    font-weight: 700;
}

.home-hero h1 {
    margin: 0;
    color: #1f2d3d;
    font-size: clamp(27px, 4vw, 39px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -.035em;
}

.home-hero p {
    max-width: 720px;
    margin: 16px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.home-actions .btn {
    min-height: 40px;
}

.home-login-card {
    padding: 22px;
    background: #fff;
    border: 1px solid #dde5ed;
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(15, 23, 42, .055);
}

.home-login-card h2 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 650;
}

.home-login-card p {
    margin: 0 0 18px;
    font-size: 12.5px;
    line-height: 1.65;
}

.home-section {
    margin-top: 26px;
}

.home-section-head {
    margin-bottom: 14px;
}

.home-section-head h2 {
    margin: 0 0 4px;
    color: #223042;
    font-size: 19px;
    font-weight: 650;
}

.home-section-head p {
    margin: 0;
    color: #7b8794;
    font-size: 12.5px;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-feature {
    padding: 17px;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 9px;
}

.home-feature strong {
    display: block;
    margin-bottom: 6px;
    color: #283648;
    font-size: 14px;
    font-weight: 650;
}

.home-feature span {
    color: #748091;
    font-size: 12px;
    line-height: 1.65;
}

.home-course-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.home-course {
    padding: 14px;
    background: #fff;
    border: 1px solid #e2e8ee;
    border-radius: 8px;
    color: #435266;
    font-size: 12.5px;
    line-height: 1.55;
}

.home-footer {
    padding: 22px 16px 30px;
    border-top: 1px solid #e3e8ef;
    background: #fff;
    color: #8893a0;
    text-align: center;
    font-size: 11.5px;
}

.home-footer a {
    margin-left: 12px;
    color: #657385;
}

@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 680px) {
    .home-header-inner {
        width: calc(100% - 24px);
    }

    .home-nav a:not(.home-login-link) {
        display: none;
    }

    .home-main {
        width: calc(100% - 24px);
        padding-top: 28px;
    }

    .home-hero {
        padding-top: 16px;
    }

    .home-hero h1 {
        font-size: 27px;
    }

    .home-feature-grid,
    .home-course-list {
        grid-template-columns: 1fr;
    }
}


.home-notice-list {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 9px;
    overflow: hidden;
}

.home-notice-row {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 13px;
    border-top: 1px solid #edf0f3;
    color: #435266;
    font-size: 12.5px;
}

.home-notice-row:first-child {
    border-top: 0;
}

.home-notice-row > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-notice-row time {
    flex: 0 0 auto;
    color: #8b98a7;
    font-size: 11.5px;
}

.notice-top {
    display: inline-flex;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 99px;
    background: #edf5fb;
    color: var(--ui-primary);
    font-size: 10px;
    font-weight: 600;
}

.site-popup {
    position: fixed;
    z-index: 90;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(15,23,42,.18);
    overflow: hidden;
}

.site-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    background: #f8fafc;
    border-bottom: 1px solid #e6ebf0;
}

.site-popup-head strong {
    color: #334155;
    font-size: 13px;
}

.site-popup-close {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
}

.site-popup-body {
    padding: 16px;
    color: #475569;
    font-size: 12.5px;
    line-height: 1.65;
    overflow: auto;
}

.site-popup-body img {
    max-width: 100%;
    height: auto;
}

.site-popup-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-top: 1px solid #edf0f3;
    background: #fff;
    font-size: 11px;
}

.site-popup-foot label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

@media (max-width: 720px) {
    .site-popup {
        right: 12px !important;
        left: 12px !important;
        top: 72px !important;
        width: auto !important;
        height: auto !important;
        max-height: calc(100vh - 90px);
    }
}
