/* 기본 스타일 */
:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --secondary-bg: #fff;
    --border-color: #ddd;
    --accent-color: #1293d2;
    --card-bg: #fff;
    --header-bg: #35424a;
    --footer-bg: #35424a;
    --hover-color: #1293d2;
    --section-bg: #f8f9fa;
    --light-text: #555;
    --dark-text: #333;
    --muted-text: #666;
    --table-row-bg: #fff;
    --table-alt-row-bg: #f9f9f9;
    --btn-primary-bg: #1293d2;
    --btn-primary-color: #fff;
    --btn-outline-border: #1293d2;
    --btn-outline-color: #1293d2;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* 헤더 스타일 */
header {
    background-color: var(--header-bg);
    color: white;
    padding: 10px 0 16px;
    border-bottom: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

header nav {
    text-align: center;
    width: 100%;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav ul li {
    display: inline;
    margin: 0 25px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--accent-color);
}

/* 히어로 섹션 */
.hero {
    min-height: 400px;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    text-align: center;
    color: white;
    padding-top: 100px;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0c7ab0;
}

/* 기능 섹션 */
.features {
    padding: 60px 0;
    text-align: center;
}

.features h2 {
    font-size: 30px;
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    padding: 30px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* 푸터 */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
    transition: all 0.3s ease;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-logo {
    flex: 2;
    min-width: 300px;
    text-align: center;
}

.footer-logo-img {
    height: 100px;
    width: auto;
    margin-bottom: 15px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3, 
.footer-contact h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #1293d2;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #1293d2;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: #1293d2;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #1293d2;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 반응형 디자인 */
@media(max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #35424a;
        position: absolute;
        top: 160px; /* 로고 + 헤더 패딩 높이에 맞춤 */
        left: 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    header nav ul.active {
        display: flex;
    }
    
    header nav ul li {
        display: block;
        text-align: center;
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    header nav ul li:last-child {
        border-bottom: none;
    }
    
    /* 모바일에서 테마 전환 스위치 스타일 개선 */
    .theme-switch-wrapper {
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
        transform: scale(1) !important;
        margin-left: 10px !important;
        vertical-align: middle;
    }
    
    .menu-toggle {
        display: block;
        color: white;
        font-size: 24px;
        cursor: pointer;
        position: absolute;
        top: 25px;
        right: 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    .container {
        width: 90%;
    }
}

@media(min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    header nav ul {
        display: block !important;
    }
}