:root {
    --primary-color: #03c75a;
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    word-break: keep-all;
}

.hero {
    padding: 5rem 1.5rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #111;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.1s ease, opacity 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
} /* <-- 닫는 괄호 추가 완료! */

/* ==========================================
   사이드바 (Drawer Menu) 스타일
   ========================================== */
.sidebar-open-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 900;
    padding: 10px 16px;
    background-color: #212529;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px; /* 초기 위치: 화면 왼쪽 밖에 숨김 */
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    z-index: 1001;
    transition: left 0.3s ease; /* 부드럽게 미끄러지듯 등장 */
    padding: 2rem 1.5rem;
}

.sidebar.active {
    left: 0; /* 화면으로 슬라이드 인 */
}

.sidebar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #495057;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.sidebar-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.sidebar-nav a:hover {
    background-color: #f1f3f5;
    color: #03c75a;
}

/* 어두운 배경 오버레이 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

/* ==========================================
   세미나 게시판 갤러리 레이아웃
   ========================================== */
.main-container {
    max-width: 1100px;
    margin: 4rem auto 2rem;
    padding: 0 1.5rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.seminar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.seminar-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

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

.card-image-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #f8f9fa;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
}

.badge.upcoming { background-color: #03c75a; }
.badge.closed { background-color: #868e96; }

.card-content {
    padding: 1.5rem;
}

.seminar-date {
    font-size: 0.8rem;
    color: #868e96;
}

.card-content h3 {
    margin: 0.5rem 0;
    font-size: 1.15rem;
    color: #212529;
}

.card-content p {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.card-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #03c75a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
}

.card-btn.secondary {
    background-color: #495057;
}

/* ==========================================
   푸터 및 개인정보처리방침 모달 스타일
   ========================================== */
footer {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f1f3f5;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 개인정보처리방침 모달(팝업) */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.privacy-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.privacy-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #212529;
}

.privacy-body {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.6;
    white-space: pre-line;
}

.close-btn {
    display: block;
    margin: 1.5rem 0 0 auto;
    padding: 0.5rem 1.2rem;
    background: var(--primary-color, #03c75a);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
