/* Clean Design - 12px Font Version */

:root {
    /* === Ultra Simple Color System === */

    /* Colors - 총 4개만 */
    --color-primary: #115e59;           /* 브랜드 청록색 */
    --color-text: #1a202c;              /* 텍스트 (검은색) */
    --color-bg: #f8f9fa;                /* 배경 회색 */
    --color-border: #e2e8f0;            /* 테두리 */

    /* Legacy 호환성 */
    --primary-dark: #212020;
    --primary-blue: #000000;
    --bg-light: var(--color-bg);
    --bg-white: #ffffff;
    --text-dark: var(--color-text);
    --text-gray: var(--color-text);
    --text-light: var(--color-text);
    --border-color: var(--color-border);
    --color-text-secondary: var(--color-text);
    --color-text-light: var(--color-text);
    --color-bg-white: #ffffff;
    --color-bg-gray: var(--color-bg);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);

    /* Font Size - 총 3개만 */
    --fs-body: 14px;        /* 본문 */
    --fs-small: 12px;       /* 작은글 (날짜) */
    --fs-title: 22px;       /* 제목 */

    /* Font Weight - 총 3개만 */
    --fw-normal: 400;       /* 본문 */
    --fw-medium: 500;       /* 링크 */
    --fw-bold: 600;         /* 제목 */

    /* Spacing - 8px 기반 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 40px;
    --space-8: 64px;

    /* Legacy 호환성 */
    --fs-heading-1: 34px;
    --fs-heading-2: 27px;
    --fs-heading-3: var(--fs-title);
    --fs-heading-4: var(--fs-title);
    --fs-caption: var(--fs-small);
    --fs-nav-main: 22px;
    --fs-nav-mega: 20px;
    --fs-nav-mobile: var(--fs-body);
    --fs-button: var(--fs-body);
    --fs-footer: 20px;
    --fs-lg: var(--fs-title);
    --fs-large: var(--fs-title);
    --fs-sm: var(--fs-small);
    --fs-xl: 22px;
    --fs-2xl: 27px;
    --fs-3xl: 34px;
    --fs-4xl: 42px;
    --fs-5xl: 52px;
    --fw-semibold: var(--fw-bold);
}

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

body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: var(--fs-body);
    font-weight: var(--fw-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.3;
    color: var(--color-text);
}

h1 {
    font-size: var(--fs-heading-1);
    font-weight: var(--fw-bold);
}

h2 {
    font-size: var(--fs-heading-2);
    font-weight: var(--fw-semibold);
}

h3 {
    font-size: var(--fs-heading-3);
    font-weight: var(--fw-semibold);
}

h4 {
    font-size: var(--fs-heading-4);
    font-weight: var(--fw-medium);
}

p {
    font-size: var(--fs-body);
    font-weight: var(--fw-normal);
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

a {
    font-weight: var(--fw-medium);
    transition: color 0.3s ease;
}

strong, b {
    font-weight: var(--fw-semibold);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Single Line Header */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 var(--space-5);
    max-width: 1600px;
    margin: 0 auto;
}

/* Logo - Reduced to 40% */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 20px;  /* Reduced from 32px to approximately 40% */
    width: auto;
}

/* Main Navigation - Center */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 var(--space-4);
    color: var(--text-dark);
    text-decoration: none;
    font-size: var(--fs-nav-main);
    font-weight: var(--fw-medium);
    transition: all 0.3s ease;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.main-nav ul li:hover > a::after {
    transform: scaleX(1);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    position: absolute;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mega Menu */
.mega-menu-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 999;
    padding: var(--space-5) 0;
}

/* Mega menu hover controlled by JavaScript */
.mega-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.mega-menu-column {
    min-width: 180px;
}

.mega-menu-column h4 {
    font-size: var(--fs-nav-mega);
    font-weight: var(--fw-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--primary-blue);
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column ul li {
    margin-bottom: var(--space-2);
}

.mega-menu-column ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: var(--fs-nav-mega);
    transition: all 0.3s ease;
    display: block;
    padding: var(--space-1) 0;
}

.mega-menu-column ul li a:hover {
    color: var(--primary-blue);
    padding-left: var(--space-2);
}

/* Main Content */
main {
    flex: 1;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 0 var(--space-4);
}

.slide-content h2 {
    font-size: 36px;
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-3);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: var(--fs-3xl);  /* Using 3xl variable */
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.main-sections {
    padding: var(--space-8) 0;
}

/* 3-Column Grid */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-7);
}

/* Board-Style Card */
.section-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.section-card:hover {
    /* Removed box-shadow and border changes */
}

.section-card:hover h3 {
    color: #000000;  /* Change title to black on hover */
}

.section-card:hover a {
    color: #000000;  /* Change links to black on hover */
}

.section-card h3 {
    font-size: var(--fs-heading-4);
    color: var(--text-dark);
    font-weight: var(--fw-semibold);
    padding: var(--space-2) var(--space-4);
    background-color: var(--bg-light);
    margin: 0;
}

.card-content {
    flex: 1;
    padding: var(--space-2) var(--space-4);
    display: flex;
    flex-direction: column;
}

/* Board List */
.board-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.board-list li {
    padding: var(--space-1) 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

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

.board-list li:hover {
    /* Removed background and padding changes */
}

.board-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: var(--fs-body);  /* Using body font variable */
    flex: 1;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-list a:hover {
    color: #000000;  /* Changed to black on hover */
}

.board-list .date {
    color: var(--color-text);
    opacity: 0.5;
    font-size: var(--fs-small);
    margin-left: var(--space-3);
    white-space: nowrap;
}

/* More Link */
.more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    text-decoration: none;
    font-size: var(--fs-caption);
    font-weight: var(--fw-medium);
    transition: all 0.3s ease;
    padding: var(--space-1) 0;
    background-color: var(--bg-light);
}

.more-link::after {
    content: '→';
    margin-left: var(--space-1);
    transition: margin 0.3s ease;
}

.more-link:hover {
    color: var(--primary-blue);
    background-color: rgba(0, 0, 0, 0.05);
}

.more-link:hover::after {
    margin-left: var(--space-2);
}

/* Quick Links */
.quick-links {
    padding: 0 var(--space-4);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.link-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-4);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.link-box:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: rgba(0, 0, 0, 0.03);
}

.link-box h4 {
    font-size: var(--fs-lg);
    color: var(--text-dark);
    margin-bottom: var(--space-2);
    transition: color 0.3s ease;
    font-weight: var(--fw-semibold);
}

.link-box:hover h4 {
    color: var(--primary-blue);
}

.link-box p {
    font-size: var(--fs-sm);  /* Using small font variable */
    color: var(--text-gray);
    line-height: 1.5;
}

/* Minimal Footer - Single Line */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: var(--space-4) 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-info-inline {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    font-size: var(--fs-footer);
    color: rgba(255, 255, 255, 0.8);
}

.footer-info-inline strong {
    color: white;
    font-weight: var(--fw-semibold);
}

.footer-info-inline span {
    display: flex;
    align-items: center;
}

.footer-info-inline .separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 var(--space-1);
}

.footer-links-inline {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.footer-links-inline a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--fs-footer);  /* Using footer font variable */
    transition: color 0.3s ease;
}

.footer-links-inline a:hover {
    color: var(--primary-blue);
}

.footer-links-inline .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Report Button */
.report-btn {
    margin-left: var(--space-4);
    padding: var(--space-1) var(--space-3);
    background-color: #c41e3a;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: var(--fs-footer);
}

.report-btn:hover {
    background-color: #a01729;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-white);
    z-index: 998;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-content {
    padding: var(--space-4);
}

.mobile-menu-section {
    margin-bottom: var(--space-5);
}

.mobile-menu-section h4 {
    font-size: var(--fs-nav-mobile);
    font-weight: var(--fw-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--primary-blue);
}

.mobile-menu-section ul {
    list-style: none;
}

.mobile-menu-section ul li {
    margin-bottom: var(--space-2);
}

.mobile-menu-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: var(--fs-nav-mobile);
    display: block;
    padding: var(--space-2) 0;
    transition: all 0.3s ease;
}

.mobile-menu-section ul li a:hover {
    color: var(--primary-blue);
    padding-left: var(--space-2);
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 var(--space-4);
    }

    .main-nav ul li a {
        padding: 0 var(--space-4);
    }

    .mega-menu-content {
        gap: var(--space-6);
    }

    .section-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .footer-minimal {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .header-container {
        height: 50px;
    }
    
    .logo img {
        height: 16px;  /* 40% reduction maintained on mobile */
    }
    
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Mega Menu - Hidden on mobile */
    .mega-menu-overlay {
        display: none;
    }
    
    /* Mobile Menu Position Adjustment */
    .mobile-menu-overlay {
        top: 50px;
    }
    
    /* Hero Banner */
    .hero-banner {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: var(--fs-5xl);  /* Using 5xl font variable */
    }
    
    .slide-content p {
        font-size: var(--fs-xl);  /* Using xl font variable */
    }
    
    /* Content Sections */
    .main-sections {
        padding: var(--space-6) 0;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        margin-bottom: var(--space-5);
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    footer {
        padding: var(--space-3) 0;
    }

    .footer-info-inline {
        flex-direction: column;
        gap: var(--space-1);
        text-align: center;
    }

    .footer-info-inline .separator {
        display: none;
    }

    .footer-links-inline {
        flex-direction: column;
        gap: var(--space-2);
    }

    .footer-links-inline .separator {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }

    .hero-banner {
        height: 200px;
    }

    .slide-content h2 {
        font-size: var(--fs-4xl);
    }

    .slide-content p {
        font-size: var(--fs-body);
    }

    .section-card h3 {
        font-size: var(--fs-lg);
        padding: var(--space-2) var(--space-3);
    }

    .card-content {
        padding: var(--space-2) var(--space-3);
    }

    .board-list li {
        padding: var(--space-2) 0;
    }

    .board-list a {
        font-size: var(--fs-sm);
    }

    .board-list .date {
        font-size: 9px;
    }

    .footer-info-inline {
        font-size: var(--fs-small);
    }

    .footer-links-inline a {
        font-size: var(--fs-small);
    }

    .report-btn {
        font-size: var(--fs-small);
    }
}