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

:root {
    --primary-color: #0b3d91; /* 짙은 블루 */
    --secondary-color: #d21034; /* 라오스 국기의 레드 */
    --accent-color: #4a90e2;
    --dark-color: #2b2b2b;
    --light-color: #f7f9fc;
    --border-color: #e2e8f0;
    --text-color: #333333;
    --text-light: #666666;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Noto Sans KR', 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================
   Header & GNB (Global Navigation Bar)
   ========================================== */
header {
    width: 100%;
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hd_util_box {
    background: var(--light-color);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-light);
}

.hd_util_wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
    gap: 20px;
}

.hd_util_wrap a:hover {
    color: var(--primary-color);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 108px;
}

#logo img {
    height: 66px;
    display: block;
    transition: var(--transition);
}

#logo img:hover {
    transform: scale(1.02);
}

.gnbArea {
    display: flex;
    align-items: center;
}

.gnb > ul {
    display: flex;
    align-items: center;
    gap: 50px;
}

.gnb > ul > li {
    position: relative;
}

.gnb > ul > li > a {
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    padding: 35px 0;
    display: block;
    position: relative;
    transition: var(--transition);
}

.gnb > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.gnb > ul > li:hover > a::after {
    width: 100%;
}

/* GNB 서브 메뉴 */
.gnb > ul > li > ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    z-index: 100;
}

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

.gnb > ul > li > ul > li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-color);
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
}

.gnb > ul > li > ul > li a:hover {
    background: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
}

.gnb > ul > li.apply_btn > a {
    background: #0b2e61;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
    display: inline-block;
    line-height: 1.2;
}

.gnb > ul > li.apply_btn > a:hover {
    background: #051630;
}

.gnb > ul > li.apply_btn > a::after {
    display: none !important;
}

/* 모바일 메뉴 버튼 */
#menu_open {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

#menu_open span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   Main Carousel (Slide)
   ========================================== */
.main_visual {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide_text_box {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #ffffff;
    z-index: 10;
}

.slide_text_box p {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s 0.3s ease-out;
    letter-spacing: 1px;
}

.slide_text_box h3 {
    font-size: 45px;
    font-weight: 700;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.6s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide.active .slide_text_box p,
.slide.active .slide_text_box h3 {
    opacity: 1;
    transform: translateY(0);
}

/* 슬라이드 화살표 및 인디케이터 */
.slide-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
}

.slide-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: auto;
}

.slide-btn:hover {
    background: var(--primary-color);
}

.slide-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: #ffffff;
    width: 30px;
    border-radius: 6px;
}

/* ==========================================
   Main Section & Content Grid
   ========================================== */
.sec01 {
    padding: 80px 0;
    background: #ffffff;
}

.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.con-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.card-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.card-box h4 {
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more_btn {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

.pic_lt ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pic_lt li {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lt_img {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

.lt_img p {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.lt_img:hover p {
    transform: scale(1.08);
}

.text_cell {
    flex-grow: 1;
}

.pic_subject {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}

.pic_subject:hover {
    color: var(--primary-color);
}

.wr_content {
    font-size: 13px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.lt_date {
    font-size: 12px;
    color: #999999;
}

/* ==========================================
   CS Info & Banner Sections (Sec02)
   ========================================== */
.sec02 {
    padding: 60px 0;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.support-banner {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.support-banner:hover {
    box-shadow: var(--shadow-hover);
}

.support-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs_info_box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.cs_info_box img {
    width: 70px;
    height: 70px;
}

.cs_info_text h5 {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.cs_info_text .call {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.cs_info_text .mail {
    font-size: 14px;
    color: var(--text-light);
}

.quick_wrap {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

.quick_box {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.quick_box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.quick_box img {
    height: 40px;
    margin-bottom: 10px;
}

.quick_box h5 {
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================
   Partners Section (Sec03)
   ========================================== */
.sec03 {
    padding: 50px 0;
    background: #ffffff;
    text-align: center;
}

.sec03 h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partners-logos img {
    height: 50px;
    opacity: 0.8;
    transition: var(--transition);
    filter: grayscale(100%);
}

.partners-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ==========================================
   Footer Component
   ========================================== */
#ft {
    background: #1a202c;
    color: #a0aec0;
    padding: 50px 0;
    font-size: 14px;
}

.ft_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#ft_link {
    border-bottom: 1px solid #2d3748;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

#ft_link ul {
    display: flex;
    gap: 30px;
}

#ft_link a {
    color: #e2e8f0;
    font-weight: 600;
    transition: var(--transition);
}

#ft_link a:hover {
    color: var(--accent-color);
}

#ft_content_1 dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 15px;
    margin-bottom: 20px;
}

#ft_content_1 dt {
    color: #718096;
    font-weight: 600;
}

#ft_content_1 dd {
    color: #cbd5e0;
}

.copyright {
    margin-top: 20px;
    color: #718096;
}

.admin {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.admin a {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 4px;
    background: #2d3748;
    color: #e2e8f0;
    transition: var(--transition);
}

.admin a:hover {
    background: var(--primary-color);
}

/* ==========================================
   Sub Page Layout (Sidebar & Content)
   ========================================== */
#sub_top_img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/images/sub/sub_top.jpg');
}

#sub_top_img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

#sub_top_img h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 1px;
}

#container_c {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.sub_menu {
    width: 240px;
    flex-shrink: 0;
}

.sub_menu_title {
    background: var(--primary-color);
    color: #ffffff;
    padding: 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.sub_menu_title h4 {
    font-size: 18px;
    font-weight: 700;
}

.sub_menu li:not(.sub_menu_title) a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    background: #ffffff;
}

.sub_menu li:not(.sub_menu_title) a:hover,
.sub_menu li:not(.sub_menu_title) a.on {
    background: var(--light-color);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.sub_content_area {
    flex-grow: 1;
}

.page_title {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.page_title h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-color);
}

.sub_con {
    font-size: 16px;
    line-height: 1.8;
}

.sub_con img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.sub_con_txt7 {
    margin-bottom: 15px;
    text-align: justify;
    word-break: keep-all;
}

.sign {
    margin-top: 40px;
    text-align: right;
    font-size: 18px;
}

.sign b {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 42px;
    font-weight: normal;
    color: #333333;
    margin-left: 15px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
}

/* ==========================================
   Board Components (List, View, Table)
   ========================================== */
.tbl_head01 {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.tbl_head01 th {
    background: var(--light-color);
    border-top: 2px solid var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 10px;
    font-weight: 700;
    font-size: 15px;
}

.tbl_head01 td {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
}

.tbl_head01 .td_subject {
    text-align: left;
}

.tbl_head01 .td_subject a {
    font-weight: 500;
}

.tbl_head01 .td_subject a:hover {
    color: var(--primary-color);
}

/* 포토갤러리 게시판 (그리드) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-img-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover .gallery-img-box img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 20px;
}

.gallery-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

/* ==========================================
   Admin Panel & Dashboard UI
   ========================================== */
.admin-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--dark-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.admin-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.admin-nav {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #06265c;
}

.btn-danger {
    background: var(--secondary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #a30b26;
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--dark-color);
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* 폼 요소 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 200px;
}

/* 대시보드 카드 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 로그인 화면 */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    background: #ffffff;
}

.login-box h3 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.login-error {
    background: #fff5f5;
    color: var(--secondary-color);
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #fed7d7;
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
@media (max-width: 992px) {
    .hd_util_box {
        display: none; /* 스마트폰 헤더 뚱뚱함 방지! */
    }

    .nav-inner {
        height: 80px;
    }
    
    #logo img {
        height: 45px;
    }

    .gnb > ul {
        display: none; /* 모바일 전용 네비게이션 드로어가 필요함 */
    }

    #menu_open {
        display: flex;
    }

    .con-grid, .banner-grid, .dashboard-grid {
        grid-template-columns: 1fr;
    }

    #container_c {
        flex-direction: column;
        padding: 0 15px;
        margin: 25px auto;
    }

    .sub_menu {
        width: 100%;
        margin-bottom: 30px;
    }

    .sub_content_area {
        width: 100%;
    }

    .page_title h3 {
        font-size: 22px;
    }

    .sub_con {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* ==========================================
   Mobile Navigation Drawer & Overlay
   ========================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: absolute;
    right: -300px;
    top: 0;
    width: 280px;
    height: 100%;
    background: #ffffff;
    padding: 24px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-menu-overlay.active .mobile-menu-drawer {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.mobile-menu-header img {
    height: 36px;
    display: block;
}

.mobile-menu-close {
    border: none;
    background: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    color: var(--secondary-color);
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu-list > li > strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mobile-menu-list > li > ul {
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-list > li > ul > li a {
    display: block;
    font-size: 14px;
    color: #475569;
    padding: 4px 0;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-menu-list > li > ul > li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.mobile-apply-btn {
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.mobile-apply-btn a {
    display: block;
    background: #0b2e61;
    color: #ffffff !important;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(11, 46, 97, 0.15);
}

/* ==========================================
   Timeline Layout (History Page)
   ========================================== */
.timeline-container {
    position: relative;
    padding-left: 50px;
    margin: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 20px;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

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

.timeline-badge {
    position: absolute;
    top: 15px;
    left: -40px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #d21034;
    box-shadow: 0 0 0 3px rgba(210, 16, 52, 0.15);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-badge::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d21034;
}

.timeline-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.timeline-box:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    background-color: #ffffff;
    border-color: #cbd5e1;
}

.timeline-date {
    font-size: 18px;
    font-weight: 700;
    color: #d21034;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.timeline-desc {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    font-weight: 400;
}

/* ==========================================
   Organization Chart Layout
   ========================================== */
.org-chart-container {
    width: 100%;
    margin: 40px 0;
    font-family: 'Noto Sans KR', sans-serif;
}

.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.org-node {
    width: 220px;
    padding: 15px 0;
    text-align: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.org-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.node-president {
    background: linear-gradient(135deg, #d4af37 0%, #2e7d32 100%);
}

.node-senior-vp {
    background-color: #2b7a78;
}

.node-secretary-general {
    background-color: #0b1e36;
}

.node-vp {
    background: linear-gradient(135deg, #2f5f98 0%, #1e3d64 100%);
}

.org-node-placeholder {
    width: 220px;
}

.org-line {
    width: 2px;
    height: 35px;
    background-color: #cbd5e1;
    margin: 5px 0;
}

.org-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 500px;
}

.org-committees {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.committee-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.committee-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.card-blue { border-left: 5px solid #2f5f98; }
.card-sky { border-left: 5px solid #4a90e2; }
.card-gray { border-left: 5px solid #718096; }
.card-orange { border-left: 5px solid #d4af37; }
.card-red { border-left: 5px solid #d21034; }

.committee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.committee-header h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.member-badge {
    font-size: 12px;
    font-weight: 600;
    background-color: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.committee-list {
    display: grid;
    gap: 12px 15px;
}

.list-single {
    grid-template-columns: 1fr;
}

.list-double {
    grid-template-columns: 1fr 1fr;
}

.committee-list li {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.committee-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #d4af37;
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .org-committees {
        grid-template-columns: 1fr;
    }
    .org-row {
        flex-direction: column;
        align-items: center;
    }
    .org-node-placeholder {
        display: none;
    }
}

/* ==========================================
   Certificates Page Layout
   ========================================== */
.cert-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.cert-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cert-img-box {
    width: 100%;
    border: 1px solid #f1f5f9;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    height: 380px;
    overflow: hidden;
}

.cert-img-box img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 4px;
    transition: var(--transition);
}

.cert-card:hover .cert-img-box img {
    transform: scale(1.02);
}

.cert-info {
    text-align: center;
    padding: 10px 0 5px 0;
}

.cert-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0b2e61;
    line-height: 1.4;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .cert-grid-container {
        grid-template-columns: 1fr;
    }
    .cert-img-box {
        height: auto;
        min-height: 250px;
    }
}

/* ==========================================
   Directions Page Layout (Office Map)
   ========================================== */
.directions-container {
    width: 100%;
    margin: 40px 0;
    font-family: 'Noto Sans KR', sans-serif;
}

.map-wrapper {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.directions-title {
    font-size: 20px;
    font-weight: 700;
    color: #0b2e61;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-table-wrapper {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

.directions-table {
    width: 100%;
    border-collapse: collapse;
}

.directions-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.directions-table tr:last-child {
    border-bottom: none;
}

.directions-table .lbl {
    width: 25%;
    background-color: #f8fafc;
    color: #0b2e61;
    font-weight: 700;
    font-size: 15px;
    padding: 20px 25px;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
}

.directions-table .val {
    color: #334155;
    font-size: 15px;
    padding: 20px 25px;
    font-weight: 500;
    vertical-align: middle;
    text-align: left;
}

@media (max-width: 768px) {
    .directions-table .lbl {
        width: 35%;
        padding: 15px;
    }
    .directions-table .val {
        padding: 15px;
    }
}

/* ==========================================
   Purpose Page Layout (Objective Business)
   ========================================== */
.purpose-container {
    width: 100%;
    margin: 40px 0;
    font-family: 'Noto Sans KR', sans-serif;
}

.purpose-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.purp-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.purp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.purp-img-box {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.purp-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.purp-card:hover .purp-img-box img {
    transform: scale(1.03);
}

.purp-caption {
    padding: 18px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.purp-intro-section {
    margin-bottom: 35px;
}

.purp-sub-title {
    font-size: 20px;
    font-weight: 700;
    color: #0b2e61;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.purp-sub-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: #d21034;
    margin-right: 10px;
    border-radius: 2px;
}

.purp-intro-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    text-align: justify;
    word-break: keep-all;
}

.purp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.purp-grid-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.purp-grid-item:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateX(3px);
}

.purp-check-icon {
    font-size: 18px;
    color: #d4af37;
}

.purp-grid-item span {
    font-size: 15px;
    font-weight: 700;
    color: #0b2e61;
}

@media (max-width: 768px) {
    .purpose-gallery, .purp-grid {
        grid-template-columns: 1fr;
    }
    .purp-img-box {
        height: 220px;
    }
}

.purpose-main-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 45px;
    border: 1px solid #e2e8f0;
}

.purpose-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   Project Cards Layout (Business Page)
   ========================================== */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
    font-family: 'Noto Sans KR', sans-serif;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.project-badge {
    background-color: #fee2e2;
    color: #d21034;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.project-date {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-title {
    font-size: 21px;
    font-weight: 700;
    color: #0b2e61;
    margin-bottom: 24px;
    line-height: 1.4;
}

.project-body {
    display: flex;
    flex-direction: column;
}

.project-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    border-bottom: 1px dashed #e2e8f0;
    padding: 14px 0;
    align-items: flex-start;
}

.project-row:last-child {
    border-bottom: none;
}

.project-lbl {
    font-size: 15px;
    font-weight: 700;
    color: #0b2e61;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-val {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    font-weight: 500;
    word-break: keep-all;
}

.pin-icon {
    color: #d21034;
    margin-right: 4px;
}

.project-bullet-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-bullet-list li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 6px;
}

.project-bullet-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #64748b;
}

.project-bullet-list li:last-child {
    margin-bottom: 0;
}

.project-img-wrapper {
    margin-top: 25px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.project-img-wrapper img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .project-card {
        padding: 20px;
    }
    .project-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px 0;
    }
    .project-title {
        font-size: 18px;
    }
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.gallery-item-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.gallery-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.06);
}

.gallery-img-box {
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: #f1f5f9;
}

.gallery-img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.gallery-item-card:hover .gallery-img-box img {
    transform: scale(1.02);
}

.gallery-caption {
    padding: 12px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
    .project-gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-img-box {
        height: 180px;
    }
}
