/* =========================================================================
   1. Design Token & Custom Styles (공통 변수 및 기본 설정)
   ========================================================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --light-bg: #f3f4f6;
    --text-main: #111827;
    --text-sub: #4b5563;
    --dark-bg: #0f172a;
    --white: #ffffff;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    word-break: keep-all;
    overflow-x: hidden;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }
a { text-decoration: none; color: inherit; }


/* =========================================================================
   2. Header & Navbar (다크 헤더 적용)
   ========================================================================= */
.custom-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar-nav.nav-pills { background: transparent; }

.navbar-nav.nav-pills .nav-link {
    border-radius: 50px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 5px 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-nav.nav-pills .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-2px);
}

.navbar-nav.nav-pills .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
    font-weight: 800;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-apply {
    background-color: var(--primary);
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 24px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    white-space: nowrap;
    color: var(--white);
}

.btn-apply:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar-toggler:focus { box-shadow: none; }


/* =========================================================================
   3. Hero Section (상단 메인 영역)
   ========================================================================= */
.hero { padding-top: 100px; padding-bottom: 30px; text-align: center; }
.hero h1 { font-weight: 800; color: var(--dark-bg); letter-spacing: -0.02em; }
.hero p { color: var(--text-sub); font-size: 1.125rem; }
.hero-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    margin-top: 30px;
    height: 370px;
    position: relative;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }


/* =========================================================================
   4. Common Components (공통 카드, 버튼, 탭 등)
   ========================================================================= */
.custom-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    height: 100%;
}
.custom-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.contact-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 32px;
    background-color: var(--dark-bg);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}
.contact-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Modal Custom */
.modal-content { border-radius: 24px; padding: 10px; border: none; box-shadow: var(--shadow-hover); }
.modal-header { border-bottom: none; padding: 20px 20px 0; }
.modal-footer { border-top: none; padding: 0 20px 20px; }
.modal-body-text { background: #f8fafc; padding: 20px; border-radius: 12px; font-size: 0.95rem; color: var(--text-main); }

/* 공지사항 모달 이미지 스타일 */
.notice-image {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    background-color: #f8fafc;
}

/* 앵커 링크 스크롤 시 fixed 헤더에 가리지 않도록 오프셋 처리 */
#noticeList {
    scroll-margin-top: 90px;
}

.nav-pills {
    background: var(--white);
    padding: 6px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}
.nav-pills .nav-link {
    border-radius: 50px;
    color: var(--text-sub);
    font-weight: 600;
    padding: 10px 20px;
    white-space: nowrap;
    font-size: 0.95rem;
}
.nav-pills .nav-link.active {
    background-color: var(--dark-bg);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================================
   5. Page: Service (서비스 소개)
   ========================================================================= */
.bento-item { overflow: hidden; height: 100%; }
.bento-content { padding: 30px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.bento-content h3 { font-weight: 800; color: var(--dark-bg); margin-bottom: 12px; font-size: 1.5rem; }
.bento-img { height: 300px; width: 100%; object-fit: cover; }
.bento-list li { margin-bottom: 8px; color: var(--text-sub); display: flex; align-items: start; gap: 6px; font-size: 0.95rem; }
.bento-list li::before { content: '•'; color: var(--primary); font-weight: bold; }


/* =========================================================================
   6. Page: Story (성공사례)
   ========================================================================= */
/* 탭 버튼 컨테이너 스크롤바 숨김 */
.story-tab-wrap {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.story-tab-wrap::-webkit-scrollbar { display: none; }

.story-btn {
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: var(--white);
    color: var(--text-sub);
    font-weight: 600;
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}
.story-btn:hover { border-color: var(--primary); color: var(--primary); }
.story-btn.active {
    background: var(--dark-bg);
    color: var(--white);
    border-color: var(--dark-bg);
    box-shadow: var(--shadow-soft);
}
.story-cnt { display: none; animation: fadeUp 0.5s ease forwards; }
.story-cnt.active { display: block; }

.story-detail-card {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #e2e8f0;
}
.interview-q { color: var(--primary); font-weight: 700; margin-bottom: 8px; font-size: 1.1rem; }
.interview-a { color: var(--text-main); margin-bottom: 24px; line-height: 1.7; }

.story-video {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    margin-bottom: 24px;
}
.story-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.story-hash span {
    background: #eff6ff;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 6px;
    display: inline-block;
    margin-bottom: 6px;
}


/* =========================================================================
   7. Page: Guide (가이드)
   ========================================================================= */
.special-benefit-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}
.benefit-img-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: #fff;
    max-width: 200px;
    margin: 0 auto;
}

/* Accordion Custom */
.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md) !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    padding: 20px;
    background-color: var(--white);
    color: var(--text-main);
    box-shadow: none !important;
    font-size: 1rem;
}
.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: #eff6ff;
}
.accordion-button:focus { border-color: rgba(59,130,246,0.5); }
.accordion-body { color: var(--text-sub); line-height: 1.7; white-space: pre-line; padding: 20px; font-size: 0.95rem; }


/* =========================================================================
   8. Footer (푸터 영역)
   ========================================================================= */
.footer-custom {
    background-color: var(--dark-bg);
    color: #94a3b8;
    padding: 60px 0 40px;
    font-size: 0.9rem;
    margin-top: auto;
}
.footer-custom a { color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer-custom a:hover { color: var(--white); transform: translateX(2px); display: inline-block; }
.footer-brand span { letter-spacing: -0.5px; }
.company-info span { display: block; margin-bottom: 4px; font-size: 0.85rem; color: #64748b; }
.copyright-text { border-top: 1px solid #1e293b; padding-top: 20px; font-size: 0.8rem; }

.social-links a {
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #334155;
    padding: 6px 16px;
    border-radius: 50px;
}
.social-links a:hover {
    background-color: var(--white);
    color: var(--dark-bg);
    border-color: var(--white);
    transform: none;
}


/* =========================================================================
   9. Media Queries (반응형 설정)
   ========================================================================= */
@media (max-width: 991px) {
    .hero { padding-top: 50px; }
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .hero-visual { height: 250px; margin-top: 24px; }

    .navbar-collapse {
        background: transparent;
        padding: 0;
        margin: 0;
        border: none;
        box-shadow: none;
    }
    .navbar-nav {
        background: var(--dark-bg);
        padding: 24px;
        border-radius: var(--radius-md);
        margin-top: 12px;
        box-shadow: var(--shadow-hover);
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        align-items: center;
        width: 100%;
    }
    .nav-pills .nav-link {
        padding: 5px 20px;
        font-size: 1rem;
        display: inline-flex;
        justify-content: center;
        width: auto;
        margin-bottom: 8px;
    }
    .btn-apply {
        margin-top: 12px;
        width: auto;
        display: inline-block;
    }

    .bento-content { padding: 24px; }
    .bento-content h3 { font-size: 1.25rem; }
    .story-btn { padding: 6px 12px; font-size: 0.85rem; }
    .special-benefit-card { padding: 20px; }
    .footer-custom { padding: 40px 0 30px; text-align: left; }
    .social-links { margin-bottom: 20px; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =========================================================================
   10. Notice List Styles (공지사항 전용 디자인)
   ========================================================================= */
.notice-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 왼쪽 포인트 라인 (호버 시 등장) */
.notice-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 호버 효과: 배경색 변경 + 위로 둥둥 + 테두리 강조 */
.notice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
    background-color: #f8fafc;
}

.notice-card:hover::before {
    opacity: 1;
}

/* 아이콘 박스 (🔔) */
.notice-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 16px;
}

/* 날짜 뱃지 */
.notice-date-badge {
    display: inline-block;
    background-color: #f1f5f9;
    color: var(--text-sub);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

/* 제목 스타일 */
.notice-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
}

/* 오른쪽 화살표 아이콘 */
.notice-arrow {
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.notice-card:hover .notice-arrow {
    color: var(--primary);
    transform: translateX(4px);
}


/* =========================================================================
   11. Page: Index — Hero + Notices 좌우 분할 레이아웃
   ========================================================================= */
.home-split {
    padding-top: 56px;
    padding-bottom: 64px;
}

.home-split .hero-text h1 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--dark-bg);
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.home-split .hero-text p {
    font-size: 1.05rem;
    color: var(--text-sub);
}

.home-split .hero-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    margin-top: 24px;
    height: 220px;
}

.home-split .hero-visual img {
    width: 100%; height: 100%; object-fit: cover;
}

.notices-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e2e8f0;
}

.notices-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--light-bg);
}

.notices-panel-header h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.02em;
}

/* 공지 패널 안의 notice-card 스타일 보정 */
.notices-panel .notice-card {
    padding: 14px 16px;
}

.notices-panel .notice-icon-box {
    width: 36px; height: 36px; font-size: 1rem;
}

.notices-panel .notice-title {
    font-size: 0.92rem;
}

@media (max-width: 991px) {
    .home-split { padding-top: 32px; padding-bottom: 40px; }
    .home-split .hero-text h1 { font-size: 1.75rem; }
    .home-split .hero-visual { height: 200px; }
    .notices-panel { padding: 20px 16px; }
}


/* =========================================================================
   12. Page: Guide — 좌우 분할 + 플로팅 버튼
   ========================================================================= */

/* PC: FAQ 컬럼 sticky */
@media (min-width: 992px) {
    .faq-sticky-col {
        position: sticky;
        top: 90px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .faq-sticky-col::-webkit-scrollbar { display: none; }
}

/* 섹션 앵커 오프셋 */
#section-guide, #section-faq {
    scroll-margin-top: 90px;
}

/* 플로팅 내비게이션 (모바일 전용) */
.guide-float-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 6px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.guide-float-nav a {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 22px;
    border-radius: 50px;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.guide-float-nav a:hover,
.guide-float-nav a.active {
    background: var(--white);
    color: var(--dark-bg);
}
