/* ============================================
   남강직업전문학교 - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;900&family=Pretendard:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1B3A5C;
    --primary-dark: #0F2440;
    --primary-light: #2A5A8C;
    --accent: #E8792B;
    --accent-light: #F09A56;
    --bg-light: #F7F8FA;
    --bg-warm: #FBF9F6;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    --border: #E2E5EA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-top {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 13px;
    padding: 6px 0;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.header-top a {
    color: rgba(255,255,255,0.8);
}

.header-top a:hover {
    color: var(--white);
}

.header-main {
    padding: 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 26px;
    color: var(--primary);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
}

.logo div {
    line-height: 1.1;
}

.logo span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
    display: block;
    margin-top: 0;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav > li {
    list-style: none;
    position: relative;
}

.nav > li > a {
    display: block;
    padding: 28px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.nav > li:hover > a::after,
.nav > li.active > a::after {
    width: 60%;
}

.nav > li:hover > a {
    color: var(--primary);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--white);
    min-width: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 8px 0;
    border: 1px solid var(--border);
}

.nav > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    list-style: none;
}

.dropdown li a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--text-mid);
    transition: var(--transition);
}

.dropdown li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 28px;
}

.dropdown li a.nav-all-courses {
    color: #E8792B;
    font-weight: 700;
}

.dropdown li a.nav-all-courses:hover {
    color: #d06820;
    background: var(--bg-light);
    padding-left: 28px;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: var(--text-dark);
}

/* ============================================
   HERO SECTION (메인 비주얼)
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,121,43,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent-light);
}

.hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232,121,43,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--bg-light);
}

.section-warm {
    background: var(--bg-warm);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-light);
}

.section-title .accent-bar {
    display: inline-block;
    width: 40px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 16px;
}

/* ============================================
   COURSE CARDS (교육과정 카드)
   ============================================ */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.course-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-card-img.interior {
    background: linear-gradient(135deg, #2C3E50, #3498DB);
}

.course-card-img.bakery {
    background: linear-gradient(135deg, #8B4513, #D2691E);
}

.course-card-img.hair {
    background: linear-gradient(135deg, #6B3FA0, #9B59B6);
}

.course-card-img .icon {
    font-size: 60px;
    opacity: 0.9;
}

.course-card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.course-card-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.course-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 50px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.course-card-body > div:last-child {
    margin-top: auto;
    padding-top: 16px;
}

.course-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.course-card-link:hover {
    gap: 10px;
}

/* ============================================
   INFO CARDS (안내 카드)
   ============================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.info-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-card .icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   STATS SECTION (숫자 통계)
   ============================================ */
.stats {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-light);
}

.stat-item p {
    font-size: 15px;
    opacity: 0.8;
}

/* ============================================
   NOTICE / NEWS (공지사항)
   ============================================ */
.notice-list {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background: var(--bg-light);
}

.notice-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 16px;
    flex-shrink: 0;
}

.notice-badge.new {
    background: var(--accent);
}

.notice-item .title {
    flex: 1;
    font-size: 15px;
    color: var(--text-dark);
}

.notice-item .date {
    font-size: 13px;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer p {
    font-size: 14px;
    line-height: 1.8;
}

.footer h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* ============================================
   SUB PAGE COMMON
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232,121,43,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.page-hero .breadcrumb {
    font-size: 14px;
    opacity: 0.7;
    position: relative;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.page-hero .breadcrumb a:hover {
    color: var(--white);
}

.page-content {
    padding: 60px 0 80px;
}

.content-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.content-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
}

.content-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-dark);
}

.content-box p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-box ul, .content-box ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.content-box li {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 6px;
}

/* Timeline (연혁) */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--bg-light);
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-mid);
    margin-bottom: 4px;
}

/* Organization Chart */
.org-chart {
    text-align: center;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
}

.org-box {
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    min-width: 140px;
    position: relative;
}

.org-box.head {
    background: var(--primary);
    color: var(--white);
    font-size: 17px;
    padding: 18px 40px;
}

.org-box.dept {
    background: var(--bg-light);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.org-box.sub {
    background: var(--white);
    color: var(--text-mid);
    border: 1px solid var(--border);
    font-weight: 500;
}

.org-connector {
    width: 2px;
    height: 24px;
    background: var(--border);
    margin: 0 auto;
}

/* Facility Cards */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.facility-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.facility-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.facility-card .icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.facility-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.facility-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Course Detail */
.course-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.course-detail-img {
    height: 300px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.course-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.course-info-table th,
.course-info-table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.course-info-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary);
    width: 140px;
}

.course-info-table td {
    color: var(--text-mid);
}

/* Tomorrow Card (내일배움카드) */
.card-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.card-step {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    position: relative;
}

.card-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}

.card-step h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-step p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Map Placeholder */
.map-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.map-placeholder .icon {
    font-size: 48px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease both;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-main .container {
        height: 64px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        display: flex;
    }

    .nav > li > a {
        padding: 16px 24px;
    }

    .nav > li > a::after {
        display: none;
    }

    .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--bg-light);
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .nav > li:hover .dropdown,
    .nav > li.open .dropdown {
        display: block;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .section-title h2 {
        font-size: 26px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .content-box {
        padding: 24px;
    }

    .course-detail-header {
        grid-template-columns: 1fr;
    }

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

    .card-steps {
        grid-template-columns: 1fr;
    }

    .org-level {
        flex-direction: column;
        align-items: center;
    }
}


.dropdown li a.nav-all-courses {
    color: #E8792B !important;
    font-weight: 700 !important;
}

.dropdown li a.nav-all-courses:hover {
    color: #d06820 !important;
}