@charset "utf-8";

/* ==========================================================================
   1. FONT & RESET
   ========================================================================== */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* Paperlogy Web Font */
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2'); font-weight: 100; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
    --primary-color: #004ea2;
    --accent-color: #00d2d3;
    --text-dark: #111111;
    --text-body: #444444;
    --text-light: #888888;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --footer-bg: #1a1a1a;
    
    --max-width: 1440px;
    --header-height: 90px;
    
    --font-title: 'Paperozi', sans-serif;
    --font-body: 'Paperozi', sans-serif;
    --font-eng: 'Montserrat', sans-serif;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    min-height: 100%; /* [수정] height 고정을 풀고 최소 높이로 변경 */
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* overflow-y 관련 설정이 있다면 삭제해주세요 */
}

ul, ol, li { list-style: none; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* Container */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   2. HEADER (Fixed, Mega Menu, Scroll Dark)
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: transparent;
    border-bottom: none !important; /* [전역 설정] 기본적으로 선 없음 강제 */
    color: var(--white);
    overflow: hidden;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo a {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 24px;
    color: inherit;
    display: flex; align-items: center; gap: 8px;
}

/* GNB Layout */
.gnb { display: flex; gap: 70px; height: 100%; margin: 0; align-items: center; }
.gnb > li { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.gnb > li > a {
    font-weight: 500;
    font-size: 18px;
    padding: 30px 0;
    color: inherit;
    position: relative;
    z-index: 1002;
}

.gnb > li > a::after {
    content: '';
    position: absolute;
    bottom: 25px; left: 0;
    width: 0%; height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

/* --------------------------------------------------------------------------
   [서브페이지 기본 상태] - 클래스 선택자 수정 (.sub-type 직접 타겟팅)
   -------------------------------------------------------------------------- */
#header.sub-type {
    background: transparent;
    color: #111;  /* 검정 글씨 */
    border-bottom: none !important; /* [핵심] 선 제거 확실하게 적용 */
    box-shadow: none !important;    /* 그림자도 제거 */
}

#header.sub-type .logo a,
#header.sub-type .gnb > li > a,
#header.sub-type .header-util-btn {
    color: #111;
}

#header.sub-type .header-util-btn {
    border-color: rgba(0,0,0,0.3);
}

/* --------------------------------------------------------------------------
   [메인페이지 스크롤 시] - .main-type 직접 타겟팅
   -------------------------------------------------------------------------- */
#header.main-type.scrolled {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-bottom: none !important; /* 선 제거 */
    height: 80px;
}

#header.main-type.scrolled .header-inner { height: 80px; }

/* 메인 스크롤 시 요소 색상 변경 (검정) */
#header.main-type.scrolled .logo a,
#header.main-type.scrolled .gnb > li > a,
#header.main-type.scrolled i {
    color: #111 !important; 
}

#header.main-type.scrolled .header-util-btn {
    color: #111 !important;
    border-color: rgba(0,0,0,0.3) !important;
}

#header.main-type.scrolled .header-util-btn:hover {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

/* --------------------------------------------------------------------------
   [서브페이지 스크롤 시] - 메인과 동일한 스타일 적용 (흰색 80% + 검정 글씨)
   -------------------------------------------------------------------------- */
#header.sub-type.scrolled {
    background: rgba(255, 255, 255, 0.8) !important; /* [변경] 남색(#004ea2) -> 흰색 투명 */
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-bottom: none !important;
    height: 80px;
}

#header.sub-type.scrolled .header-inner { height: 80px; }

/* 글씨 색상: 흰색 -> 검정(#111)으로 변경 */
#header.sub-type.scrolled .logo a,
#header.sub-type.scrolled .gnb > li > a,
#header.sub-type.scrolled i {
    color: #111 !important; 
}

/* 유틸 버튼(ERP, WEBMAIL) 스타일: 검정 테두리 */
#header.sub-type.scrolled .header-util-btn {
    color: #111 !important;
    border-color: rgba(0,0,0,0.3) !important;
}

/* 유틸 버튼 호버 효과 */
#header.sub-type.scrolled .header-util-btn:hover {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}
/* --------------------------------------------------------------------------
   [HOVER STATE] 마우스 오버 시
   -------------------------------------------------------------------------- */
header:not(.scrolled):hover {
  background: #fff !important;
  color: #111 !important;
  height: 300px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-bottom: none !important; /* 오버 시에도 선 생기지 않도록 방지 */
}

header:not(.scrolled):hover .logo a,
header:not(.scrolled):hover .gnb > li > a,
header:not(.scrolled):hover .header-util { color: #111; }

header:not(.scrolled):hover .gnb > li > a::after { background-color: var(--primary-color); }

header:not(.scrolled):hover .header-util-btn {
  border-color: #ddd;
  color: #333;
}
header:not(.scrolled):hover .header-util-btn:hover {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

/* Dropdown Menu Items (Mega Menu) */
.dropdown {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 50px;
    z-index: 1001;
}

header:hover .dropdown {
    opacity: 1;
    visibility: visible;
    top: 70px;
}

.dropdown li { margin-bottom: 10px; }
.dropdown li a {
    font-size: 15px;
    color: #555;
    display: block;
    transition: 0.2s;
}

.dropdown li a:hover {
    color: var(--primary-color);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   HEADER UTILITY BUTTONS
   -------------------------------------------------------------------------- */
.header-util-btn {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255, 0.4);
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

.header-util-btn:hover {
    background-color: rgba(255,255,255, 0.2);
    border-color: #fff;
}

/* ==========================================================================
   [추가 수정] 메인페이지 스크롤 중 마우스 오버 시 -> 메뉴 펼침 강제 적용
   기존 스크롤 스타일(높이 80px)을 덮어쓰기 위해 우선순위를 높임
   ========================================================================== */

/* 1. 헤더 배경 및 높이 확장 */
#header.main-type.scrolled:hover {
    height: 300px !important;      /* 메뉴가 펼쳐지도록 높이 확장 */
    background: #fff !important;   /* 배경은 완전 흰색 */
    color: #111 !important;        /* 글씨는 검정색 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 2. 로고, 메뉴, 아이콘 색상 (검정) */
#header.main-type.scrolled:hover .logo a,
#header.main-type.scrolled:hover .gnb > li > a,
#header.main-type.scrolled:hover i {
    color: #111 !important;
}

/* 3. 유틸 버튼 (ERP, WEBMAIL) 디자인 (검정 테두리/글씨) */
#header.main-type.scrolled:hover .header-util-btn {
    color: #111 !important;
    border-color: #ddd !important;
}

/* 4. 유틸 버튼 호버 시 (검정 배경/흰 글씨) */
#header.main-type.scrolled:hover .header-util-btn:hover {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

/* 5. GNB 메뉴 밑줄 포인트 색상 (기존 유지) */
#header.main-type.scrolled:hover .gnb > li > a::after {
    background-color: var(--primary-color);
}


/* ==========================================================================
   3. MOBILE NAVIGATION (Added)
   ========================================================================== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}
.mobile-nav.active { right: 0; display: block; }

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    backdrop-filter: blur(3px);
}
.mobile-nav-overlay.active { display: block; }

.mobile-gnb { list-style: none; padding: 0; margin-top: 60px; }
.mobile-gnb > li { border-bottom: 1px solid #f1f1f1; }
.mobile-gnb > li > a {
    display: flex; justify-content: space-between;
    padding: 16px 0;
    font-size: 17px; font-weight: 700; color: #222;
    text-decoration: none;
}

.mobile-dropdown {
    list-style: none;
    padding: 10px 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: block;
}
.mobile-dropdown li { margin-bottom: 8px; }
.mobile-dropdown li:last-child { margin-bottom: 0; }
.mobile-dropdown li a {
    display: block; padding: 5px 0;
    font-size: 14px; color: #666; font-weight: 400;
}

.btn-close-mobile {
    position: absolute; top: 20px; right: 20px;
    font-size: 28px; color: #333; cursor: pointer;
    width: 40px; height: 40px; text-align: center; line-height: 40px;
}


/* ==========================================================================
   4. HERO SLIDER (Full Screen)
   ========================================================================== */
.hero-slider-wrap {
    position: relative;
    width: 100%;
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    background-color: #222;
}

.slider-container { width: 100%; height: 100%; position: relative; }

.slide-item {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important; 
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    z-index: 1;
}

.slide-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.slide-item.active { opacity: 1; visibility: visible; z-index: 3; }

.slide-content {
    position: absolute;
    top: 48%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 1100px;
    padding: 0 24px;
    color: var(--white);
}

.slide-title {
    font-family: 'Paperozi', sans-serif !important;
    font-weight: 700 !important;
    font-size: 72px; 
    line-height: 1.2;
    margin-bottom: 40px; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.slide-org {
    font-family: 'Paperozi', sans-serif !important;
    font-weight: 400 !important;
    font-size: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s;
}

.slide-item.active .slide-title,
.slide-item.active .slide-org { opacity: 1; transform: translateY(0); }

.hero-interface {
    position: absolute;
    bottom: 80px;
    left: 10%;
    z-index: 20;
    padding-left: 24px;
}

.slider-controls { display: flex; align-items: center; gap: 25px; }

.control-btn {
    background: none !important;
    border: none !important;
    width: auto; height: auto;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}

.control-btn:hover { color: #fff; transform: scale(1.1); }

.slider-dots { display: flex; gap: 12px; margin: 0 15px; }
.dot {
    width: 10px; height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active { background: #fff; transform: scale(1.3); }


/* ==========================================================================
   5. QUICK MENU SECTION (흰색 배경 스타일로 복귀)
   ========================================================================== */
.quick-menu-section {
    padding: 120px 0;
    /* 배경 이미지는 그대로 둠 */
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* 1. [수정] 오버레이를 다시 '흰색'으로 변경 */
.quick-menu-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.85); /* 흰색 + 투명도 85% */
    z-index: 1;
}

.quick-menu-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* 2. [수정] 제목 색상을 다시 '검정'으로 변경 */
.qm-header { 
    text-align: left; 
    margin-bottom: 40px; 
    color: #111; /* 흰색(#fff) -> 검정(#111) */
}
.qm-header h2 {
    font-family: var(--font-eng);
    font-size: 52px; 
    font-weight: 700;
    margin-bottom: 25px;
}

.qm-container { display: flex; gap: 30px; justify-content: center; width: 100%; }

.qm-left {
    flex: 0 0 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qm-banner {
    flex: 1;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* 그림자 연하게 */
}
.qm-banner:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.qm-banner.blue { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); }
.qm-banner.green { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); }

.qm-text h3 {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111;
}

.btn-qm {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}
.qm-banner.green .btn-qm { background-color: #2e7d32; }
.qm-banner:hover .btn-qm { padding-right: 35px; }

.qm-icon-graphic {
    font-size: 100px;
    opacity: 0.8;
    transform: rotate(-15deg);
    color: rgba(0,0,0,0.05);
    position: absolute;
    right: 20px; bottom: -20px;
    transition: 0.3s;
}
.qm-banner:hover .qm-icon-graphic { transform: rotate(0deg) scale(1.1); opacity: 1; color: rgba(255,255,255,0.6); }
.qm-banner.blue .qm-icon-graphic { color: #64b5f6; }
.qm-banner.green .qm-icon-graphic { color: #81c784; }

/* 3. [수정] 오른쪽 박스 배경을 밝게 변경 */
.qm-right {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(255,255,255,0.9); /* 흰색 반투명 */
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.4);
}

.qm-item { text-align: center; cursor: pointer; transition: 0.3s; padding: 30px 20px; border-radius: 16px; }
.qm-item:hover { background-color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.qm-circle {
    width: 100px; height: 100px;
    background-color: #fff;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    color: #666;
    transition: 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.qm-item:hover .qm-circle { background-color: var(--primary-color); color: #fff; transform: rotateY(180deg); }

/* 4. [수정] 아이템 텍스트 색상을 다시 '어둡게' 변경 */
.qm-item h4 { 
    font-family: var(--font-title); 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 10px; 
    color: #333; /* 흰색 -> 검정 */ 
}
.qm-item span { 
    font-size: 14px; 
    color: #666; /* 밝은회색 -> 진한회색 */ 
    display: block; 
    margin-bottom: 20px; 
}

/* 버튼 스타일 복귀 */
.btn-qm-small {
    font-size: 13px; 
    color: #666; 
    border: 1px solid #999; 
    padding: 6px 18px; 
    border-radius: 20px; 
    transition: 0.3s; 
    background: rgba(255,255,255,0.5);
}
.qm-item:hover .btn-qm-small { background: #333; color: #fff; border-color: #333; }/* 


/* ==========================================================================
   6. NOTICE CARD SECTION (수정됨)
   ========================================================================== */
.notice-card-section {
    position: relative;
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
}

.notice-card-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.nc-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nc-header { margin-bottom: 40px; color: #fff; }
.nc-header h2 { font-family: var(--font-eng); font-size: 52px; font-weight: 700; margin-bottom: 25px; }

.nc-filters { display: flex; gap: 30px; margin-bottom: 20px; }
.nc-filters span { 
    color: rgba(255,255,255,0.5); 
    text-decoration: none; 
    transition: 0.3s; 
    cursor: pointer; 
    font-size: 25px; 
    font-weight: 500;
    margin-right: 20px;
}
.nc-filters span:hover, .nc-filters span.active { 
    color: #fff; 
    font-weight: 800; 
    border-bottom: 2px solid #fff; 
    padding-bottom: 5px;
}

/* 5열 그리드 유지 */
.nc-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px; 
}

.nc-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px 24px;
    
    /* [중요] 카드 크기 고정 (늘어나지 않음) */
    height: 380px;       /* 고정 높이 */
    min-height: 380px;
    
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; /* 내용물을 위쪽부터 정렬 */
    cursor: pointer; overflow: hidden;
}

.nc-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.nc-date { 
    text-align: right; 
    color: #fff; 
    font-family: var(--font-eng); 
    line-height: 1; 
    
    /* [수정] 날짜와 제목 사이의 간격 조정 */
    margin-bottom: 40px; 
}
.nc-day { display: block; font-size: 30px; font-weight: 700; }
.nc-year { font-size: 13px; opacity: 0.6; }

/* [수정] 컨텐츠 영역 위치 이동 (위쪽으로) */
.nc-content { 
    margin-top: 0;       /* 하단 배치 제거 */
    margin-bottom: 0;    
    position: relative;
    z-index: 2;
}

/* [수정] 카테고리 뱃지: 폰트 키움 */
.nc-badge {
    display: inline-block; padding: 8px 14px; /* 패딩 증가 */
    background-color: #6200ea; color: #fff; 
    font-size: 16px; /* [변경] 14px -> 16px */
    border-radius: 30px; margin-bottom: 20px; font-weight: 800;
}

/* [수정] 제목: 폰트 키움 & 잘리지 않게 조정 */
.nc-title {
    font-size: 24px; /* [변경] 20px -> 24px */
    font-weight: 800; 
    color: #fff; 
    line-height: 1.4; 
    margin-bottom: 0;
    
    /* 긴 제목 처리: 최대 4줄까지 표시하고 넘치면 말줄임 */
    display: -webkit-box; 
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
    word-break: keep-all; /* 단어 단위 줄바꿈 */
}

/* 설명글(.nc-desc) 스타일은 삭제함 */

/* 화살표 위치 유지 */
.nc-arrow {
    position: absolute; bottom: 30px; right: 24px; width: 30px; height: 1px; background-color: rgba(255,255,255,0.3); transition: 0.3s;
}
.nc-arrow::after {
    content: ''; position: absolute; right: 0; top: -5px; width: 8px; height: 8px;
    border-top: 1px solid rgba(255,255,255,0.3); border-right: 1px solid rgba(255,255,255,0.3); transform: rotate(45deg); transition: 0.3s;
}
.nc-card:hover .nc-arrow { width: 40px; background-color: var(--accent-color); }
.nc-card:hover .nc-arrow::after { border-color: var(--accent-color); }

/* 반응형 */
@media (max-width: 1200px) {
    .nc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .nc-grid { grid-template-columns: repeat(1, 1fr); }
    .nc-card { height: auto; min-height: 300px; } /* 모바일은 유동적 */
    .nc-filters { flex-wrap: wrap; gap: 15px; }
}
/* ==========================================================================
   7. PARTNER & FOOTER
   ========================================================================== */
.partner-section { padding: 80px 0; border-top: 1px solid #eee; overflow: hidden; background: #fff; }
.slider-track { display: flex; gap: 60px; animation: scroll 30s linear infinite; width: max-content; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

footer { background: var(--footer-bg); color: #aaa; padding: 80px 0 40px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-info h2 { color: #fff; font-size: 20px; margin-bottom: 20px; }
.footer-links { display: flex; gap: 20px; margin-bottom: 20px; }
.footer-links a { color: #fff; font-weight: 500; }
.address p { line-height: 1.8; margin-bottom: 5px; }
.copyright {
    margin-top: 60px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; font-family: var(--font-eng); font-size: 13px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .gnb { display: none; }
    .header-util-btn { display: none; }
    .mobile-nav { display: block; }

    .qm-container { flex-direction: column; }
    .qm-left { flex: none; display: grid; grid-template-columns: 1fr 1fr; }
    .nc-grid { grid-template-columns: repeat(2, 1fr); }
    .slide-title { font-size: 50px; }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 20px; }
    .hero-slider-wrap { height: 100vh !important; }
    .slide-content { left: 5%; width: 90%; text-align: center; padding: 0; }
    .slide-title { font-size: 36px; margin-bottom: 20px; }
    .hero-interface { bottom: 50px; left: 50%; transform: translateX(-50%); padding: 0; }
    
    .quick-menu-section { padding: 100px 0; min-height: auto; display: block; }
    .qm-left { grid-template-columns: 1fr; }
    .qm-right { flex-direction: column; gap: 20px; margin-top: 30px; }
    
    .notice-card-section { padding: 100px 0; min-height: auto; display: block; }
    .nc-grid { grid-template-columns: 1fr; }
    
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* ==========================================================================
   [수정] SUB PAGE LAYOUT FIX (서브 페이지 레이아웃 고정)
   이 코드를 style.css 맨 아래에 붙여넣어 기존 내용을 덮어쓰세요.
   ========================================================================== */
/* ==========================================================================
   [수정] SUB PAGE LAYOUT FIX (서브 페이지 레이아웃 고정 - 헤더 너비 일치)
   ========================================================================== */

/* 1. 서브 헤더: 무조건 흰색 배경 + 하단 선 */
#header.sub-type {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 90px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* 서브 헤더 텍스트 색상 (검정) */
#header.sub-type .logo a,
#header.sub-type .gnb > li > a,
#header.sub-type .header-util-btn,
#header.sub-type i {
    color: #111111 !important;
}
#header.sub-type .header-util-btn {
    border-color: #dddddd !important;
}

/* 2. 서브 비주얼 (배너) */
.sub-visual {
    position: relative;
    width: 100%;
    height: 240px; 
    margin-top: 90px; 
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1920&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sub-visual::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
}
.sub-visual h2 {
    position: relative; z-index: 2;
    color: #ffffff !important;
    font-size: 42px;
    font-weight: 700;
    font-family: var(--font-title);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 3. 로케이션 바 (너비 확장) */
.location-bar {
    width: 100%;
    height: 50px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 10;
}

.location-inner {
    /* [수정] 1200px -> var(--max-width)로 변경하여 헤더와 동일하게 확장 */
    max-width: var(--max-width); 
    margin: 0 auto;
    height: 100%;
    display: flex; align-items: center;
    padding: 0 24px;
}

.loc-home {
    height: 100%; display: flex; align-items: center;
    padding-right: 20px; border-right: 1px solid #eee;
    color: #555; font-size: 16px;
}
.loc-depth { position: relative; height: 100%; }
.loc-btn {
    height: 100%; padding: 0 25px;
    font-size: 14px; color: #444; font-weight: 500;
    border-right: 1px solid #eee;
    display: flex; align-items: center; gap: 8px;
}
.loc-btn i { font-size: 11px; color: #888; transition: 0.3s; }
.loc-list {
    display: none; position: absolute; top: 50px; left: -1px;
    min-width: 180px; background: #fff; border: 1px solid #444;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.loc-depth.active .loc-list { display: block; }
.loc-list li a {
    display: block; padding: 12px 20px; border-bottom: 1px solid #eee; font-size: 14px; color: #666;
}
.loc-list li a:hover, .loc-list li a.current {
    background: #f8f9fa; color: #004ea2; font-weight: 700;
}

/* 4. 인사말 페이지 본문 너비 확장 */
.greeting-page {
    /* [수정] 본문 너비를 헤더 최대폭(1440px)까지 확장 */
    max-width: var(--max-width) !important; 
    margin: 0 auto;
    padding: 80px 24px 120px; 
}

/* ==========================================================================
   [수정] 서브 페이지 헤더 오류 수정 (style.css 맨 아래에 추가)
   ========================================================================== */
/* 서브 페이지 헤더 기본 상태: 흰색 배경, 높이 90px 고정 */
#header.sub-type {
    background-color: #fff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    height: 90px !important;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* 부드러운 애니메이션 */
}

/* 서브 페이지 헤더 텍스트 색상 (검정) */
#header.sub-type .logo a,
#header.sub-type .gnb > li > a,
#header.sub-type .header-util-btn,
#header.sub-type i {
    color: #111 !important;
}
#header.sub-type .header-util-btn {
    border-color: #ddd !important;
}

/* [핵심 Fix] 마우스를 올렸을 때 높이 확장 (메뉴 펼침) */
#header.sub-type:hover {
    height: 300px !important; 
    border-bottom: 1px solid #e5e5e5 !important; /* 펼쳐졌을 때도 선 유지 */
}

/* 메뉴 호버 시 파란색 밑줄 */
#header.sub-type .gnb > li > a::after {
    background-color: #004ea2 !important;
}