@charset "utf-8";

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', 'Roboto', sans-serif; color: #222; font-size: 16px; line-height: 1.5; word-break: keep-all; background-color: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; vertical-align: middle; }

:root {
    --ku-green: #00452E; /* Konkuk Green */
    --ku-green-dark: #003322;
    --ku-gold: #C4A059;
    --text-primary: #111;
    --text-secondary: #555;
    --bg-gray: #f7f7f7;
    --border-color: #e5e5e5;
}

.container { width: 1240px; margin: 0 auto; position: relative; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0; position: relative; }

/* Header */
.main-header { height: 90px; background: transparent; border-bottom: 1px solid rgba(255,255,255,0.2); position: fixed; top: 40px; left: 0; width: 100%; z-index: 100; transition: all 0.3s; }
.main-header.sticky { background: #fff; top: 0; border-bottom: 1px solid #e5e5e5; height: 80px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.header-container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
/* Logo visibility fix */
.logo a { display: block; height: 44px; }
.logo img { height: 100%; transition: filter 0.3s; opacity: 1; visibility: visible; }
.main-header.sticky .logo img { filter: none; }

.main-nav .gnb_depth1 { display: flex; gap: 40px; }
.main-nav .gnb_depth1 > li > a { font-size: 18px; font-weight: 700; color: #fff; padding: 33px 0; display: block; position: relative; transition: color 0.3s; }
.main-header.sticky .main-nav .gnb_depth1 > li > a { color: #222; padding: 28px 0; }

.main-nav .gnb_depth1 > li > a::after { content:''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: #fff; transition: width 0.3s; }
.main-header.sticky .main-nav .gnb_depth1 > li > a::after { background: var(--ku-green); }
.main-nav .gnb_depth1 > li:hover > a { color: #fff; opacity: 0.8; }
.main-header.sticky .main-nav .gnb_depth1 > li:hover > a { color: var(--ku-green); opacity: 1; }

.main-nav .gnb_depth1 > li:hover > a::after { width: 100%; }

.mobile-menu-btn { display: none; font-size: 24px; color: #fff; }
.main-header.sticky .mobile-menu-btn { color: #222; }

/* Utility Bar */
.utility-bar { background: transparent; border-bottom: 1px solid rgba(255,255,255,0.2); height: 40px; display: flex; align-items: center; z-index: 102; position: fixed; top: 0; left: 0; width: 100%; transition: all 0.3s; }
.utility-bar.sticky { background: #fff; opacity: 0; pointer-events: none; } /* Fade out on scroll or hide */

.utility-bar .container { display: flex; justify-content: space-between; }
.ku_service a { margin-right: 15px; color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 500; }
.utility-links a { margin-left: 15px; color: rgba(255,255,255,0.8); font-size: 12px; }

/* Visual Hero (Full Screen Slider) */
.visual_wrap { position: relative; height: 100vh; overflow: hidden; background: #000; }
.slider-container { width: 100%; height: 100%; position: relative; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: 100% 100%; background-position: center; opacity: 0; transition: opacity 0.8s ease; display: flex; align-items: center; }
.slide.active { opacity: 1; z-index: 1; }
/* Dark overlay */
.slide::before { content:''; position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0.3) 100%); }

.slide-content { position: relative; z-index: 2; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.5); width: 1240px; margin: 0 auto; padding-left: 20px; top: 200px; }
.slide-sub { font-size: 20px; margin-bottom: 10px; font-weight: 300; opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s 0.2s forwards; }
.slide-content h2 { font-size: 54px; font-weight: 700; line-height: 1.2; opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s 0.4s forwards; }
.slide-content .highlight { color: #FFD700; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.slider-controls { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; width: 1240px; padding: 0 20px; }
.progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.3); margin-right: 20px; position: relative; border-radius: 2px; overflow: hidden; }
.progress-bar .fill { 
    height: 100%; 
    background: #FFD700; /* Yellow highlight for active segment */
    position: absolute;
    top: 0;
    transition: left 0.3s ease; /* Smooth transition between segments */
}
/* Disable previous animation styles */
.slide.active ~ .slider-controls .progress-bar .fill { width: auto; animation: none; }

.slider-controls .arrows button { color: #fff; border: 1px solid rgba(255,255,255,0.5); width: 36px; height: 36px; border-radius: 50%; margin-left: 8px; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.slider-controls .arrows button:hover { background: #fff; color: var(--ku-green); }

/* Quick Menu Floating */
.quick-menu-floating { position: fixed; top: 180px; right: 50px; width: 120px; z-index: 999; font-size: 13px; }
/* .visual_wrap .quick-menu-floating override removed since we moved it out */

.qm-header { background: #C4D600; color: #000; padding: 10px; border-top-left-radius: 10px; border-top-right-radius: 10px; font-weight: 700; text-align: center; font-size: 14px; }

.quick-menu-floating ul { background: var(--ku-green); }
.quick-menu-floating li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.quick-menu-floating li a { display: block; padding: 15px 10px; color: #fff; text-align: left; display: flex; align-items: center; gap: 10px; transition: background 0.2s; }
.quick-menu-floating li a:hover { background: rgba(0,0,0,0.1); }
.quick-menu-floating li img { width: 24px; }
.quick-menu-floating li span { font-weight: 500; }
.quick-menu-floating .qm-footer { background: var(--ku-green-dark); color: #fff; text-align: center; padding: 10px; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; cursor: pointer; font-size: 12px; }

/* Common Section */
.sec { padding: 80px 0; }
.sec-title h3 { font-size: 48px; font-weight: 700; color: #222; margin-bottom: 30px; letter-spacing: -1px; }
.sec-title h3 span { color: var(--ku-green); }
.sec-title { position: relative; display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.more-link { font-size: 14px; color: #666; font-weight: 500; }

/* Dropdown Sub-menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 140px;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 3px solid var(--ku-green);
    border-radius: 0 0 5px 5px;
}
/* Ensure parent relative positioning for correct dropdown placement */
.main-nav .gnb_depth1 > li { position: relative; } 

.main-nav .gnb_depth1 > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    top: 100%; /* slight move up effect */
}
.main-header.sticky .main-nav .gnb_depth1 > li:hover .sub-menu {
    top: 100%;
}
.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #555 !important; /* Force dark color in dropdown */
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center;
}
.sub-menu li a:hover {
    background: #f5f5f5;
    color: var(--ku-green) !important;
}
.sub-menu li a::after { display: none; } /* Remove underline effect */

/* Tab Styling Update */
.tab-list { margin-bottom: 20px; border-bottom: none; gap: 5px; display: inline-flex; width: auto; flex-wrap: wrap; }
.tab-list li {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px; /* Round buttons */
    margin-right: 5px;
    padding: 10px 30px;
    color: #666;
    font-weight: 500;
    position: relative;
    top: 0;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
    text-align: center;
}
.tab-list li.active {
    background: var(--ku-green);
    color: #fff;
    border-color: var(--ku-green);
    box-shadow: 0 4px 10px rgba(0,69,46,0.2);
}
.tab-list li:hover {
    border-color: var(--ku-green);
    color: var(--ku-green);
}
.tab-list li.active:hover {
    color: #fff;
}
/* Remove highlight class logic as we standardized */
.tab-list li.highlight { background: #fff; color: #666; border-color: #ddd; }
.tab-list li.highlight.active { background: var(--ku-green); color: #fff; border-color: var(--ku-green); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.notice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.notice-card { background: #f7f7f7; border: none; border-radius: 20px; padding: 30px; transition: all 0.3s; display: flex; flex-direction: column; height: 320px; position: relative; overflow: hidden; }
.notice-card:hover { transform: none; background: var(--ku-green); color: #fff; box-shadow: 0 15px 30px rgba(0,69,46,0.3); }

.notice-card .cat { color: var(--ku-green); font-weight: 700; font-size: 18px; margin-bottom: 10px; display: block; position: relative; padding-bottom: 15px; border-bottom: none; width: auto; }
.notice-card .cat::after { content:''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: #ddd; transition: background 0.3s; }
.notice-card:hover .cat { color: #fff; }
.notice-card:hover .cat::after { background: #fff; }

.notice-card .tit { font-size: 22px; font-weight: 700; margin-bottom: 20px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: auto; max-height: 64px; margin-top: 10px; color: #222; }
.notice-card:hover .tit { color: #fff; }

.notice-card .desc { font-size: 15px; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: auto; position: relative; padding-left: 15px; }
.notice-card .desc::before { content:'■'; position: absolute; left: 0; top: 0; font-size: 10px; color: var(--ku-green); margin-right: 5px; }
.notice-card:hover .desc { color: rgba(255,255,255,0.9); }
.notice-card:hover .desc::before { color: #fff; }

.notice-card .date { font-size: 16px; color: #888; margin-top: 20px; font-weight: 500; font-family: 'Roboto', sans-serif; }
.notice-card:hover .date { color: rgba(255,255,255,0.8); }

/* Event Section */
.event-sec { background: #f4f6f5; }
.event-desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.desc-item .marker { width: 10px; height: 10px; background: #C4D600; display: block; margin-bottom: 15px; }
.desc-item h4 { font-size: 24px; font-weight: 700; margin-bottom: 15px; }
.desc-item .main-p { font-size: 18px; font-weight: 500; margin-bottom: 10px; color: #333; }
.desc-item .sub-p { font-size: 15px; color: #666; line-height: 1.6; }

.event-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s; }
.event-card:hover { transform: translateY(-5px); }
.event-card .thumb { height: 180px; overflow: hidden; }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.event-card:hover .thumb img { transform: scale(1.1); }
.event-card .info { padding: 20px; }
.event-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; height: 44px; overflow: hidden; }
.event-card .date { font-size: 13px; color: #888; }

/* Announcement Section */
.announce-sec { background: var(--ku-green); padding: 80px 0; color: #fff; overflow: hidden; }
.announce-sec .sec-title h3 { color: #fff; margin-bottom: 10px; }
.announce-sec .sec-title span { color: #fff; }
.announce-sec .center { flex-direction: column; align-items: center; justify-content: center; text-align: center; }

.announce-slider-wrapper { width: 100%; position: relative; padding: 0 50px; max-width: 1600px; margin: 0 auto; }
.announce-track { display: flex; gap: 20px; transition: transform 0.5s ease; width: 100%; overflow: visible; }
.announce-item { min-width: 300px; flex: 0 0 300px; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: transform 0.3s; }
.announce-item:hover { transform: translateY(-10px); }
.announce-item img { width: 100%; display: block; }

.announce-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.announce-controls button { color: rgba(255,255,255,0.7); font-size: 24px; transition: color 0.3s; }
.announce-controls button:hover { color: #fff; }
.ann-dots { display: flex; gap: 10px; }
.ann-dots span { width: 10px; height: 10px; border: 1px solid #fff; border-radius: 50%; cursor: pointer; }
.ann-dots span.active { background: #fff; }

/* Responsive */
@media (max-width: 1400px) {
    .visual_wrap .quick-menu-floating { right: 20px; top: 120px; transform: none; }
}

@media (max-width: 1240px) {
    .container { width: 100%; }
    .notice-grid, .event-list { grid-template-columns: repeat(2, 1fr); }
    .slide-content { width: 100%; }
}

@media (max-width: 768px) {
    .visual_wrap .quick-menu-floating { display: none; }
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .sec-title h3 { font-size: 32px; }
    .event-desc-grid { grid-template-columns: 1fr; }
    .slide-content h2 { font-size: 32px; }
    .announce-item { min-width: 250px; flex: 0 0 250px; }
}
