/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Colors */
:root {
    --primary-color: #004c99; /* Deep Blue */
    --secondary-color: #00a2e8; /* Cyan */
    --accent-color: #ff6b6b;
    --text-dark: #222;
    --text-light: #666;
    --border-color: #e5e5e5;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
}

/* Top Utility Bar */
.top-bar {
    background-color: #f4f5f7;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    height: 40px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-bar a {
    color: var(--text-light);
    margin-right: 20px;
    transition: color 0.3s;
}

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

.top-bar-right a:last-child {
    margin-right: 0;
}

.lang-btn {
    font-weight: 600;
    color: #333 !important;
    border: 1px solid #ccc;
    padding: 2px 8px;
    border-radius: 3px;
}

/* Header */
.header {
    background-color: var(--bg-light);
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

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

.logo h1 {
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

.gnb {
    height: 100%;
}

.main-menu {
    display: flex;
    height: 100%;
}

.menu-item {
    position: relative;
    height: 100%;
}

.menu-item > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.menu-item:hover > a {
    color: var(--primary-color);
}

.menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.menu-item:hover > a::after {
    width: 100%;
}

/* Unified Mega Menu */
.unified-mega-menu {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100vw;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    display: none;
    padding: 40px 0;
    z-index: 101;
    transform: translateX(calc(-50vw + 50%));
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.gnb:hover .unified-mega-menu {
    display: block;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.mega-column {
    border-right: 1px solid #f0f0f0;
    padding-right: 20px;
}
.mega-column:last-child {
    border-right: none;
    padding-right: 0;
}

.mega-group {
    margin-bottom: 25px;
}

.mega-group h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}
.mega-group h4 a {
    transition: color 0.2s;
}
.mega-group h4 a:hover {
    color: var(--primary-color);
}

.mega-group ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 10px;
}

.mega-group ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 3px;
    height: 3px;
    background-color: #999;
    border-radius: 50%;
}

.mega-group ul li a {
    font-size: 14px;
    color: #666;
    transition: color 0.2s;
}

.mega-group ul li a:hover {
    color: var(--primary-color);
    font-weight: 500;
}

.gnb-bg {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255,255,255,0.98);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    z-index: 100;
    transition: height 0.3s;
}

.header-utils {
    display: flex;
    gap: 15px;
}

.header-utils button {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.header-utils button:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    color: white;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease 0.3s both;
}

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

.slide-badge {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.slide h2 {
    font-size: 46px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 300;
}

.slide h2 .highlight {
    font-weight: 700;
    color: #fff;
}

.slide p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-more:hover {
    background-color: #0088cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Abstract Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    backdrop-filter: blur(10px);
    z-index: 1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    right: 300px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 10;
}

.slider-controls .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

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

.slider-pagination {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 30px;
    border-radius: 5px;
    background-color: white;
}

/* Quick Links */
.quick-links {
    margin-top: 0;
    position: relative;
    z-index: 20;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.quick-card {
    padding: 30px 20px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.quick-card:last-child {
    border-right: none;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    transition: height 0.3s;
    z-index: 0;
}

.quick-card:hover::before {
    height: 100%;
}

.quick-card .icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.quick-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.quick-card p {
    font-size: 14px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.quick-card:hover .icon,
.quick-card:hover h3,
.quick-card:hover p {
    color: white;
}

/* Content Section */
.content-section {
    padding: 80px 0;
}

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

/* Board (Tabs) */
.board-wrapper {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

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

.tabs {
    display: flex;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
}

.btn-plus {
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.3s;
}

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

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.board-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.board-list li:last-child {
    border-bottom: none;
}

.board-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    overflow: hidden;
}

.board-list .tag {
    background-color: #666;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    min-width: 45px;
    text-align: center;
}

.board-list .tag.tag-blue { background-color: var(--secondary-color); }
.board-list .tag.tag-green { background-color: #27ae60; }

.board-list .title {
    font-size: 16px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.board-list li:hover .title {
    color: var(--primary-color);
    font-weight: 500;
}

.board-list .date {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 20px;
}

/* Banners Area */
.banner-wrapper h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.service-banners {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.banner-card {
    display: flex;
    align-items: center;
    padding: 30px 20px;
    border-radius: 15px;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.banner-card::after {
    content: '\f105';
    font-family: 'FontAwesome';
    position: absolute;
    right: 20px;
    font-size: 24px;
    opacity: 0.5;
    transition: right 0.3s;
}

.banner-card:hover::after {
    right: 15px;
    opacity: 1;
}

.banner-card.b1 {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.banner-card.b2 {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
}

.b-icon {
    font-size: 40px;
    margin-right: 20px;
    opacity: 0.8;
}

.b-text h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.b-text p {
    font-size: 14px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: #2b2b2b;
    color: #a0a0a0;
}

.footer-top {
    border-bottom: 1px solid #3d3d3d;
    padding: 20px 0;
}

.footer-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-links a.privacy {
    color: var(--secondary-color);
    font-weight: 700;
}

.sns-links {
    display: flex;
    gap: 15px;
}

.sns-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #3d3d3d;
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s;
}

.sns-links a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    padding: 40px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-info {
    display: flex;
    gap: 40px;
}

.f-logo {
    font-size: 30px;
    font-weight: 900;
    color: #666;
    letter-spacing: 1px;
}

.address p {
    font-size: 14px;
    margin-bottom: 5px;
}

.copyright {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.family-sites {
    display: flex;
    align-items: center;
}

.family-sites select {
    padding: 8px 15px;
    background-color: #1a1a1a;
    color: #a0a0a0;
    border: 1px solid #3d3d3d;
    outline: none;
    width: 200px;
}

.btn-go {
    background-color: #3d3d3d;
    color: white;
    border: none;
    padding: 9px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quick-card {
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .gnb {
        display: none;
    }
    
    .slide h2 {
        font-size: 32px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 20px;
    }
}
