:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Navbar styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    padding: 1rem 1.2rem !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section (Index only) */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/hero_main.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Page Header (Sub pages) */
.page-header {
    background-color: #34495e;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Header Background Images */
.header-intro { background-image: url('../img/header_intro.jpg'); }
.header-biz { background-image: url('../img/header_biz.jpg'); }
.header-related { background-image: url('../img/header_related.jpg'); }
.header-board { background-image: url('../img/board_main1.jpg'); }

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Sidebar styles */
.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background-color: var(--accent-color);
    color: white;
}

/* Footer styles */
footer {
    background-color: #f8f9fa;
    padding: 50px 0;
    margin-top: 100px;
    border-top: 1px solid #dee2e6;
}

.footer-link-text {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-link-text:hover {
    color: var(--accent-color);
}

/* Card styles */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* Content specific styles */
.history-list {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #eee;
    margin-left: 20px;
}

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

.history-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 2px solid white;
}

.history-date {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.biz-content-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.biz-content-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.biz-content-card h4 i {
    margin-right: 15px;
    color: var(--accent-color);
}

.sub-item-title {
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
    display: block;
}

.sub-item-desc {
    color: #666;
    font-size: 0.95rem;
    padding-left: 5px;
}

.journal-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.info-box {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 30px;
}

.info-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.info-title i {
    margin-right: 10px;
    color: var(--accent-color);
}

.org-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.org-card h4 {
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.member-item {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

.position-label {
    font-weight: bold;
    color: var(--accent-color);
    margin-right: 10px;
}

.related-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: #fff;
}

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

.related-img-wrapper {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fdfdfd;
    border-bottom: 1px solid #f5f5f5;
}

.related-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-body {
    padding: 20px;
    text-align: center;
}

.related-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Modal styles for terms/privacy */
.modal-body {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.8;
    max-height: 500px; /* Set max height for scrolling */
    overflow-y: auto;  /* Enable vertical scroll */
}
