/* ===== 전역 설정 ===== */
:root {
    --content-width-pc: 1280px;
    --content-width-tablet: 800px;
    --content-width-mobile: 480px;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #121212;
    line-height: 1.5;
    overflow-x: hidden;
    background: white;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.content-max {
    max-width: var(--content-width-pc);
    margin: auto;
}

.content-gray {
    background: #f0f0f0;
}


/* ===== 반응형 유틸리티 클래스 ===== */

.desktop-only {
    display: inherit;
}

.tablet-only {
    display: none;
}

.tablet-extra {
    display: none;
}


/* ===== Container ===== */

.container {
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    background: white;
    position: sticky;
    top: 0px;
    z-index: 100;
}

/* 메뉴 버튼 (태블릿용) */
.menu-btn {
    display: none;
    font-weight: 700;
    font-size: 18px;
    color: black;
    padding: 6px 3px;
    z-index: 200;
}


/*
 * 테블릿 이하 화면에서 `.menu-btn`을 보이도록 설정합니다.
 * - 기본값: 숨김 (`display: none`) — 데스크탑 등 큰 화면에서 메뉴 버튼이 보이지 않게 함
 */
 
@media (max-width: 1279px) {
    .menu-btn {
        display: block !important;
    }
}

/*
 * 데스크탑 전용 요소 `.desktop-only`는
 * 화면 너비가 799px 이하일 경우 보이지 않도록 설정합니다.
 */
@media (max-width: 799px) {
    .desktop-only {
        display: none !important;
    }
}

/* 사이드바 메뉴 */
.sidebar-menu {
    position: fixed;
    top: 0px;
    right: -100%;
    width: 100%;
    height: 100%;
    z-index: 1000;
    transition: right 0.3s ease;
    background-color:white
}

.sidebar-menu.active {
    right: 0px;
}

.sidebar-menu.active .sidebar-overlay {
    opacity: 1;
    pointer-events: all;
}

.sidebar-menu.active .sidebar-content {
    transform: translateX(0);
}

.sidebar-close:hover {
    color: #543a97;
}

.sidebar-nav li a:hover {
    color: #543a97;
    padding-left: 15px;
}

/* ===== 버튼 ===== */
.btn {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.48px;
    padding: 16px 39px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #543a97;
    color: white;
}

.btn-primary:hover {
    background: #432d7a;
}

.btn-second {
    background: white;
    color: black;
    border: 1px solid #d7d7d7;
}

.btn-second:hover {
    background: #f5f5f5;
}

.btn-detail {
    background: #543a97;
    color: white;
    font-size: 22px;
    letter-spacing: -0.84px;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 0 auto 8px;
}

.btn-detail:hover {
    background: #432d7a;
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 640px;
    background-image: url('assets/images/hero.jpg');
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 0.6s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 80px 0;
    width: 100%;
}

.hero-text {
    text-align: center;
    color: white;
}

.hero-subtitle {
    font-weight: 500;
    font-size: 32px;
    letter-spacing: -1.28px;
    line-height: 1.35;
    margin-bottom: 16px;
    color: white;
}

.hero-title {
    font-weight: 700;
    font-size: 72px;
    letter-spacing: -3.6px;
    margin-bottom: 16px;
}

.hero-description {
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* ===== 섹션 타이틀 ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-link {
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -0.64px;
    color: #543a97;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: #432d7a;
}

/* 섹션 타이틀 */
.section-title h2 {
    font-size: 48px;
    letter-spacing: -1.12px;
    margin-bottom: 8px;
    font-weight: 700;
    color: black;
}

.section-title-white {
    font-weight: 700;
    font-size: 56px;
    letter-spacing: -2.24px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.section-title-center {
    font-weight: 700;
    font-size: 56px;
    letter-spacing: -2.24px;
    text-align: center;
    color: black;
    margin: 0 auto 40px;
    max-width: 1120px;
}

.section-subtitle {
    font-weight: 500;
    font-size: 18px;
    color: #555;
    margin-top: 4px;
}

/* ===== 구독 서비스 ===== */
.subscription-service {
    padding: 72px 80px 80px;
}

.subscription-service .section-title {
    max-width: 1120px;
    margin: 0 auto 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.card-image {
    flex: 1 1 50%;
    min-width: 0px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.card-content {
    flex: 1 1 50%;
    min-width: 0px;
    padding: 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.card-title-en {
    font-weight: 700;
    font-size: 40px;
    letter-spacing: -0.8px;
    color: black;
}

.card-title-ko {
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -1.28px;
    line-height: 1.35;
    color: black;
}

.card-description {
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -0.36px;
    color: #5e5e5e;
    line-height: 1.5;
}

.card-shadow {
    border-radius: 10px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

/* ===== 실시간 신청 현황 ===== */
.application-status {
    position: relative;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 40px 80px;
}

.application-status::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.application-status .container {
    position: relative;
    z-index: 1;
}

.table-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.status-row {
    display: flex;
    width: 100%;
    height: 56px;
    position: relative;
    border-bottom: 1px solid #d7d7d7;
    justify-content: space-between;
}

.status-row .cell {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
}

.status-header .cell {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.32px;
    color: black;
    padding: 0px;
}

.status-header .cell p {
    font-weight: 700;
    line-height: normal;
}

.status-row .cell p {
    line-height: 1.5;
    text-align: center;
}

/* 컬럼 너비 */
.cell.col-service {
    width: 300px;
    flex-shrink: 0;
}

.cell.col-service p {
    font-weight: 700;
    font-size: 16px;
    color: black;
    padding: 0 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.cell.col-address {
    flex: 1;
    min-width: 0px;
}

.cell.col-address p {
    font-weight: 300;
    font-size: 16px;
    color: black;
    text-align: left;
    padding-left: 8px;
}

.cell.col-applicant {
    width: 140px;
    flex-shrink: 0;
}

.cell.col-applicant p {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: -0.32px;
    color: #5e5e5e;
}

.cell.col-date {
    width: 180px;
    flex-shrink: 0;
}

.cell.col-date p {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: -0.32px;
    color: #5e5e5e;
}

.status-header .col-address p {
    font-weight: 700;
}

.status-header .col-applicant p {
    font-weight: 700;
}

.status-header .col-date p {
    font-weight: 700;
}

.cell.col-status {
    width: 120px;
    flex-shrink: 0;
    padding: 0px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 33px;
    padding: 7px 8px;
    border-radius: 2px;
    font-weight: 500;
    font-size: 16px;
    color: white;
    text-align: center;
    white-space: nowrap;
}

.tag-completed {
    background: #12950f;
}

.tag-new {
    background: #222;
}

.tag-progress {
    background: #ff6b00;
}


/* ============================================ */
/* ===== 태블릿 반응형 (800px - 1279px) ===== */
/* ============================================ */

/* 반응형 유틸리티 */
@media (max-width: calc(var(--content-width-pc) - 1px)) and (min-width: var(--content-width-tablet)) {
    .desktop-only {
        display: none !important;
    }

    .tablet-only {
        display: inherit !important;
    }

    .tablet-extra {
        display: flex !important;
    }

    /* Container */
    .container {
        min-width: 800px;
        padding: 0 8px;
    }

    /* Header */
    .nav-main {
        height: 48px;
        padding: 0 8px;
    }

    /* Hero */
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-description {
        font-size: 18px;
    }

    /* 구독 서비스 */
    .subscription-service {
        padding: 72px 24px 80px;
    }

    .subscription-service {
        max-width: 100%;
    }
    .section-title {
        max-width: 100%;
    }

    .card-content {
        text-align: left;
    }

    /* 실시간 신청 현황 */
    .application-status {
        padding: 60px 24px 80px;
    }

    .table-container {
        overflow-x: auto;
    }

    /* Footer */
    .footer-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
        gap: 20px;
        font-size: 14px;
    }
}


/* ================================ */
/* ===== 모바일 (799px 이하) ===== */
/* ================================ */

@media (max-width: calc(var( --content-width-tablet) - 1px)) {
    .tablet-only {
        display: inherit !important;
    }

    /* 서브배너 */
    .banner {
        height: 320px !important;
    }

    .container {
        padding: 0 16px;
    }

    /* Header */
    .nav-main {
        height: 48px;
        padding: 0 8px;
    }

    /* Hero */
    .hero-slider {
        height: 440px;
    }

    .hero-content {
        padding: 80px 16px;
    }

    .hero-subtitle {
        font-size: 18px;
        letter-spacing: -0.2px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -1.28px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0px;
    }

    .btn {
        text-align: center;
        width: 100%;
        font-size: 20px;
        padding: 14px 30px;
    }
    .section-link {
        font-size: 18px;
        letter-spacing: -0.36px;
    }

    .section-title-white {
        font-size: 36px;
        letter-spacing: -1.44px;
        margin-bottom: 24px;
    }

    .section-title-center {
        font-size: 36px;
    }

    /* 구독 서비스 */
    .subscription-service {
        padding: 40px 16px;
    }

    .card-image {
        height: 200px;
        width: 100%;
        border-radius: 12px;
    }

    .card-content {
        text-align: center;
        padding: 16px;
    }

    .card-title-en {
        font-size: 22px;
    }

    .card-title-ko {
        font-size: 18px;
    }

    .card-description {
        font-size: 14px;
    }

    /* 실시간 신청 현황 */
    .application-status {
        padding: 40px 8px;
    }

    .table-container {
        overflow-x: auto;
    }

    .application-status .col-address {
        display: none;
    }
}

/* ================================= */
/* ===== 소형 모바일 (480px 이하) ===== */
/* ================================= */
@media (max-width: var(--content-width-mobile)) {
    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        font-size: 20px;
        padding: 14px 30px;
    }

    .section-link {
        font-size: 18px;
    }

    .section-title-white,
    .section-title-center {
        font-size: 36px;
    }

    /* 서비스 카드 */
    .card-title-en {
        font-size: 22px;
    }

    .card-title-ko {
        font-size: 18px;
    }

    .card-description {
        font-size: 14px;
    }

    /* Footer */
    .footer-nav {
        font-size: 12px;
        gap: 10px;
    }
}

