/**
 * StarBuilder Base Theme - Default Stylesheet
 *
 * Uses CSS custom properties set by head.sub.php:
 * --sb-primary, --sb-primary-dark, --sb-primary-light
 */

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
}
a { color: #333; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sb-primary, #FF6B35); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin-top: 0; }

#sb-wrapper {
    overflow-x: hidden;
}

.sb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
#sb-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sb-header-top {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.sb-header-top .sb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
}
.sb-top-phone {
    color: var(--sb-primary, #FF6B35);
    font-weight: bold;
}
.sb-top-util a {
    color: #666;
    margin-left: 15px;
    font-size: 13px;
}
.sb-top-util a:hover {
    color: var(--sb-primary, #FF6B35);
}

.sb-header-main .sb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.sb-logo a {
    display: block;
}
.sb-logo h1 {
    font-size: 24px;
    color: var(--sb-primary, #FF6B35);
    margin: 0;
    font-weight: 800;
}
.sb-logo img {
    max-height: 50px;
}
.sb-logo-pc { display: block; }
.sb-logo-mobile { display: none; }

/* Mobile toggle */
.sb-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.sb-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

/* Navigation */
.sb-gnb {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ========================================
   Page Header (Sub pages)
   ======================================== */
.sb-page-header {
    background: linear-gradient(135deg, var(--sb-primary, #FF6B35), var(--sb-primary-dark, #e55a2b));
    color: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
}
.sb-page-title {
    font-size: 28px;
    margin: 0 0 8px;
}
.sb-breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}
.sb-breadcrumb a { color: #fff; }
.sb-bc-sep { margin: 0 6px; }

/* ========================================
   Hero Section
   ======================================== */
.sb-hero {
    background: linear-gradient(135deg, var(--sb-primary, #FF6B35), var(--sb-primary-dark, #e55a2b));
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-hero-text h2 {
    font-size: 42px;
    margin: 0 0 15px;
    font-weight: 800;
}
.sb-hero-text p {
    font-size: 20px;
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   Banner Slider
   ======================================== */
.sb-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}
.sb-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}
.sb-slider .swiper-slide a {
    display: block;
}
.sb-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
    width: 10px;
    height: 10px;
}
.sb-slider .swiper-pagination-bullet-active {
    background: var(--sb-primary, #FF6B35);
    opacity: 1;
}

/* Button style: default */
.sb-slider-btn-default .swiper-button-prev,
.sb-slider-btn-default .swiper-button-next {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.sb-slider-btn-default .swiper-button-prev::after,
.sb-slider-btn-default .swiper-button-next::after {
    font-size: 28px;
}

/* Button style: circle */
.sb-slider-btn-circle .swiper-button-prev,
.sb-slider-btn-circle .swiper-button-next {
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    color: #fff;
    transition: background 0.2s;
}
.sb-slider-btn-circle .swiper-button-prev:hover,
.sb-slider-btn-circle .swiper-button-next:hover {
    background: rgba(0,0,0,0.6);
}
.sb-slider-btn-circle .swiper-button-prev::after,
.sb-slider-btn-circle .swiper-button-next::after {
    font-size: 18px;
}

/* Button style: hidden - no nav buttons rendered */

/* ========================================
   Quick Links
   ======================================== */
.sb-quick-links {
    padding: 40px 0;
    background: #f8f9fa;
}
.sb-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.sb-quick-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}
.sb-quick-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    color: var(--sb-primary, #FF6B35);
}
.sb-quick-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sb-primary-light, #FFF0E8);
    color: var(--sb-primary, #FF6B35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}
.sb-quick-item span {
    font-size: 15px;
    font-weight: 600;
}

/* ========================================
   Section Title
   ======================================== */
.sb-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px;
    position: relative;
}

/* ========================================
   Greeting Section
   ======================================== */
.sb-greeting {
    padding: 60px 0;
    text-align: center;
}
.sb-greeting-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* ========================================
   Main Boards
   ======================================== */
.sb-main-boards {
    padding: 50px 0 60px;
    background: #f8f9fa;
}
.sb-board-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.sb-board-col {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.sb-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sb-primary, #FF6B35);
}
.sb-board-header .sb-section-title {
    margin: 0;
    font-size: 18px;
}
.sb-more {
    font-size: 13px;
    color: #888;
}
.sb-more:hover {
    color: var(--sb-primary, #FF6B35);
}

/* Board Tabs */
.sb-board-tabs {
    display: flex;
    gap: 0;
}
.sb-board-tab {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    padding: 0 12px 0 0;
    margin-right: 12px;
    border-right: 2px solid #e0e0e0;
    line-height: 1;
    transition: color 0.2s;
}
.sb-board-tab:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}
.sb-board-tab.active {
    color: #2c3e50;
}
.sb-board-tab:hover {
    color: var(--sb-primary, #FF6B35);
}
.sb-tab-content {
    display: none;
}
.sb-tab-content.active {
    display: block;
}

/* Latest list skin */
.sb-latest-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sb-latest-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sb-latest-list li:last-child {
    border-bottom: none;
}
.sb-latest-list .sb-lt-subject {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}
.sb-latest-list .sb-lt-date {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    white-space: nowrap;
}

/* Latest gallery skin */
.sb-latest-gallery .sb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.sb-latest-gallery .sb-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: #f0f0f0;
}
.sb-latest-gallery .sb-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.sb-latest-gallery .sb-gallery-item:hover img {
    transform: scale(1.05);
}
.sb-latest-gallery .sb-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    padding: 20px 10px 8px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Calendar & Meal Section
   ======================================== */
.sb-cal-meal-section {
    padding: 50px 0 60px;
}

/* Mini Calendar */
.sb-mini-cal {
    margin-top: 5px;
}
.sb-mini-cal-header {
    text-align: center;
    margin-bottom: 12px;
}
.sb-mini-cal-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}
.sb-mini-cal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.sb-mini-cal-table th {
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    border-bottom: 1px solid #eee;
}
.sb-mini-cal-table th.sun { color: #e74c3c; }
.sb-mini-cal-table th.sat { color: #3498db; }
.sb-mini-cal-table td {
    padding: 4px;
    font-size: 14px;
    color: #555;
    vertical-align: middle;
    height: 36px;
}
.sb-mini-cal-table td.sun span { color: #e74c3c; }
.sb-mini-cal-table td.sat span { color: #3498db; }
.sb-mini-cal-table td.today span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #2c3e50;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
}
.sb-cal-day-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.sb-cal-day-btn:hover {
    opacity: 0.8;
    transform: scale(1.15);
}

/* Calendar Popup */
.sb-cal-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-cal-popup-content {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}
.sb-cal-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.sb-cal-popup-close:hover { color: #333; }
.sb-cal-popup-content h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #2c3e50;
}
.sb-cal-popup-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sb-cal-popup-item:last-child { border-bottom: none; }
.sb-cal-popup-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.sb-cal-popup-item strong {
    font-size: 15px;
    color: #333;
}
.sb-cal-popup-period {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}
.sb-cal-popup-item p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Today's Meal */
.sb-meal-today {
    margin-top: 5px;
}
.sb-meal-today-date {
    text-align: center;
    padding: 10px;
    background: var(--sb-primary-light, #FFF0E8);
    border-radius: 8px;
    margin-bottom: 15px;
}
.sb-meal-date-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--sb-primary, #FF6B35);
}
.sb-meal-today-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sb-meal-today-item:last-child { border-bottom: none; }
.sb-meal-today-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--sb-primary, #FF6B35);
    margin-bottom: 6px;
}
.sb-meal-today-label i {
    width: 18px;
    text-align: center;
    margin-right: 4px;
}
.sb-meal-today-menu {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    padding-left: 22px;
}
.sb-meal-today-empty {
    text-align: center;
    padding: 40px 0;
    color: #aaa;
    font-size: 14px;
}
.sb-meal-today-empty i { display: block; }
.sb-meal-today-empty p { margin: 0; }

/* ========================================
   Popup Layer
   ======================================== */
.sb-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-popup-modal {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 90vw;
}
.sb-popup-header {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
    background: #f8f9fa;
}
.sb-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-popup-close:hover { color: #333; }
.sb-popup-modal iframe { display: block; }
.sb-popup-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    font-size: 13px;
    color: #666;
}
.sb-popup-footer label { cursor: pointer; }

/* ========================================
   Footer
   ======================================== */
#sb-footer {
    background: #2c3e50;
    color: #aaa;
    padding: 40px 0 20px;
    font-size: 14px;
}
.sb-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}
.sb-footer-name {
    color: #fff;
    font-size: 18px;
    margin: 0 0 12px;
}
.sb-footer-contact p {
    margin: 4px 0;
    font-size: 13px;
}
.sb-footer-contact i {
    width: 18px;
    text-align: center;
    margin-right: 6px;
    color: var(--sb-primary, #FF6B35);
}
.sb-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.sb-footer-links a {
    color: #ccc;
    font-size: 13px;
    padding: 0 12px;
    border-right: 1px solid rgba(255,255,255,0.2);
    line-height: 1;
}
.sb-footer-links a:first-child { padding-left: 0; }
.sb-footer-links a:last-child { border-right: none; padding-right: 0; }
.sb-footer-links a:hover { color: #fff; }
.sb-privacy { color: #fff !important; }

.sb-footer-logo {
    display: inline-block;
    margin-bottom: 14px;
}
.sb-footer-logo img {
    max-height: 44px;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.sb-footer-logo:hover img {
    opacity: 1;
}

.sb-footer-channels {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.sb-channel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    font-size: 16px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.sb-channel-icon:hover {
    background: var(--ch-color, #fff);
    color: #fff;
    transform: translateY(-2px);
}

.sb-footer-copy {
    text-align: center;
    font-size: 12px;
    color: #777;
}
.sb-footer-copy p { margin: 0; }

#sb-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--sb-primary, #FF6B35);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}
#sb-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
#sb-top-btn:hover {
    background: var(--sb-primary-dark, #e55a2b);
}

/* Admin bar offset */
body.sb-has-adminbar #sb-top-btn {
    bottom: 70px;
}

/* ========================================
   Gnuboard Common Overrides
   ======================================== */
.sound_only { position: absolute; overflow: hidden; clip: rect(0 0 0 0); width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; }

/* ========================================
   Gnuboard Pagination
   ======================================== */
.pg_wrap { clear: both; display: block; text-align: center; padding: 25px 0 10px; }
.pg { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pg_page,
.pg_current {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 8px;
    border-radius: 6px; font-size: 13px; text-decoration: none;
    transition: all 0.15s;
}
.pg_page {
    color: #555; background: #f0f0f0; border: 1px solid #e5e5e5;
}
.pg_page:hover {
    background: var(--sb-primary-light, #FFF0E8);
    color: var(--sb-primary, #FF6B35);
    border-color: var(--sb-primary, #FF6B35);
}
.pg_current {
    background: var(--sb-primary, #FF6B35);
    color: #fff; border: 1px solid var(--sb-primary, #FF6B35); font-weight: 700;
}
.pg_start, .pg_prev, .pg_next, .pg_end {
    font-size: 12px; text-indent: 0; overflow: visible;
    background-image: none !important;
}

/* ========================================
   Content Page
   ======================================== */
.sb-content-page {
    padding: 30px 0;
    min-height: 400px;
}
.sb-content-page h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* ========================================
   Module Common
   ======================================== */
.sb-module {
    padding: 30px 0;
}
.sb-module-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
}

/* ========================================
   Form Elements
   ======================================== */
.sb-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--sb-primary, #FF6B35);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.sb-btn:hover {
    background: var(--sb-primary-dark, #e55a2b);
    color: #fff;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
    .sb-hero-text h2 { font-size: 32px; }
    .sb-board-row { grid-template-columns: 1fr; }
    .sb-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Header */
    .sb-header-top { display: none; }
    .sb-mobile-toggle { display: flex; }
    .sb-logo-pc { display: none; }
    .sb-logo-mobile { display: block; max-height: 36px; }
    .sb-gnb {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        flex-direction: column;
        z-index: 100;
    }
    .sb-gnb.sb-mobile-open { display: block; }
    .sb-menu-1depth {
        flex-direction: column !important;
    }
    .sb-menu-2depth,
    .sb-menu-3depth {
        position: static !important;
        box-shadow: none !important;
        display: block !important;
    }
    .sb-menu-2depth .sb-menu-item > a { padding-left: 30px !important; }
    .sb-menu-3depth .sb-menu-item > a { padding-left: 50px !important; }

    /* Hero */
    .sb-hero { padding: 50px 20px; min-height: 250px; }
    .sb-hero-text h2 { font-size: 26px; }
    .sb-hero-text p { font-size: 16px; }

    /* Slider */
    .sb-slider .swiper-slide img { max-height: 400px; }
    .sb-slider .swiper-button-prev,
    .sb-slider .swiper-button-next { display: none; }

    /* Quick links */
    .sb-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sb-quick-item { padding: 20px 10px; }

    /* Page header */
    .sb-page-header { padding: 25px 0; }
    .sb-page-title { font-size: 22px; }

    /* Footer */
    .sb-footer-inner { flex-direction: column; gap: 20px; }
    .sb-footer-links { margin-top: 10px; }
    .sb-footer-links a { padding: 0 8px; font-size: 12px; }
}

@media (max-width: 480px) {
    .sb-latest-gallery .sb-gallery-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Page Content
   ======================================== */
.sb-page-content {
    padding: 30px 0 60px;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.sb-page-content img {
    max-width: 100%;
    height: auto;
}
.sb-page-content table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* ========================================
   Election One-Page Styles
   ======================================== */

/* Election CSS Variables */
:root {
    --el-navy: #1A2744;
    --el-dark-navy: #0F1A2E;
    --el-blue: #1B5E9E;
    --el-light-blue: #2980B9;
    --el-accent: #D4A843;
    --el-white: #FFFFFF;
    --el-off-white: #F4F6F8;
    --el-light-gray: #E8ECF0;
    --el-gray: #8896A7;
    --el-dark-gray: #4A5568;
    --el-text: #2D3748;
    --el-red: #C0392B;
    --el-green: #27AE60;
}

/* Election sections base */
.el-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.el-section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.el-section-header h2 {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--el-navy);
    margin-bottom: 0.5rem;
}
.el-accent-bar {
    width: 60px;
    height: 3px;
    background: var(--el-accent);
    margin: 0.8rem auto 0.5rem;
}
.el-section-header p {
    color: var(--el-gray);
    font-size: 0.95rem;
}

/* --- HERO --- */
.el-hero {
    min-height: 100vh;
    background: var(--el-dark-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 1.5rem;
}
.el-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(27,94,158,0.15) 0%, transparent 60%);
}
.el-hero-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}
.el-hero-text { flex: 1; }
.el-hero-party {
    height: 42px;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: elFadeUp 0.8s 0.2s forwards;
}
.el-hero-name {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--el-white);
    line-height: 1.1;
    opacity: 0;
    animation: elFadeUp 0.8s 0.4s forwards;
}
.el-hero-hanja {
    font-size: 1.1rem;
    color: var(--el-gray);
    margin-top: 0.3rem;
    font-family: Georgia, serif;
    opacity: 0;
    animation: elFadeUp 0.8s 0.5s forwards;
}
.el-hero-divider {
    width: 80px;
    height: 3px;
    background: var(--el-accent);
    margin: 1.5rem 0;
    opacity: 0;
    animation: elFadeUp 0.8s 0.6s forwards;
}
.el-hero-catchphrase {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.5rem;
    color: var(--el-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: elFadeUp 0.8s 0.7s forwards;
}
.el-hero-catchphrase2 {
    font-size: 1.1rem;
    color: var(--el-light-blue);
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0;
    animation: elFadeUp 0.8s 0.8s forwards;
}
.el-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    opacity: 0;
    animation: elFadeUp 0.8s 0.9s forwards;
}
.el-hero-info {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    opacity: 0;
    animation: elFadeUp 0.8s 1s forwards;
}
.el-hero-info-item {
    font-size: 0.85rem;
    color: var(--el-gray);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.el-hero-photo {
    flex: 0 0 340px;
    opacity: 0;
    animation: elFadeUp 0.8s 0.5s forwards;
}
.el-hero-photo img {
    width: 340px;
    height: 440px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.el-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--el-gray);
    font-size: 0.8rem;
    text-align: center;
    animation: elBounce 2s infinite;
}
.el-scroll-indicator span {
    display: block;
    font-size: 1.5rem;
    margin-top: 0.3rem;
}

/* --- PROFILE --- */
.el-profile-section {
    background: var(--el-white);
    padding: 5rem 1.5rem;
}
.el-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: start;
}
.el-profile-photo img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.el-profile-cards {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.el-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--el-off-white);
    border-radius: 10px;
    border-left: 4px solid var(--el-accent);
    transition: transform 0.3s, box-shadow 0.3s;
}
.el-profile-card:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.el-label {
    font-size: 0.75rem;
    color: var(--el-gray);
}
.el-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--el-text);
}

/* --- AWARDS --- */
.el-awards-section {
    padding: 5rem 1.5rem;
    background: var(--el-off-white);
}
.el-awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.el-award-card {
    background: var(--el-white);
    border-radius: 12px;
    padding: 1.5rem;
    border-top: 4px solid var(--el-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.el-award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.el-award-card h3 {
    font-size: 1.05rem;
    color: var(--el-navy);
    margin-bottom: 0.3rem;
}
.el-year {
    color: var(--el-accent);
    font-weight: 700;
    font-size: 0.9rem;
}
.el-award-card p {
    color: var(--el-dark-gray);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* --- STATS --- */
.el-stats-section {
    background: var(--el-navy);
    padding: 5rem 1.5rem;
}
.el-stats-section .el-section-header h2 {
    color: var(--el-white);
}
.el-stats-section .el-section-header p {
    color: var(--el-gray);
}
.el-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.el-stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}
.el-stat-card:hover {
    transform: scale(1.05);
}
.el-stat-num {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--el-accent);
    line-height: 1;
}
.el-stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.el-achievement-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
    border-left: 4px solid var(--el-accent);
}
.el-achievement-card h3 {
    color: var(--el-white);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}
.el-achievement-card p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}
.el-highlight {
    color: var(--el-accent);
    font-weight: 700;
}
.el-red {
    color: #E74C3C;
    font-weight: 700;
}

/* --- LEGISLATION --- */
.el-legislation-section {
    padding: 5rem 1.5rem;
    background: var(--el-off-white);
}
.el-legis-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.el-legis-card {
    background: var(--el-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.el-legis-card:hover {
    transform: translateY(-4px);
}
.el-legis-num {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--el-navy);
}
.el-legis-type {
    color: var(--el-accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0.3rem 0;
}
.el-legis-detail {
    color: var(--el-dark-gray);
    font-size: 0.85rem;
}
.el-topics-title {
    color: var(--el-navy);
    margin-bottom: 0.8rem;
}
.el-topics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
}
.el-topic-tag {
    background: var(--el-white);
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--el-text);
    border-top: 3px solid var(--el-light-blue);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.el-topic-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* --- SPEECH --- */
.el-speech-section {
    background: var(--el-white);
    padding: 5rem 1.5rem;
}
.el-speech-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
}
.el-speech-photo img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.el-speech-placeholder {
    width: 100%;
    height: 300px;
    background: var(--el-off-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--el-gray);
}
.el-caption {
    text-align: center;
    color: var(--el-gray);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.el-speech-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.el-speech-item {
    padding: 1rem 1.2rem;
    background: var(--el-off-white);
    border-radius: 10px;
    border-left: 4px solid var(--el-accent);
    transition: transform 0.3s, background 0.3s;
}
.el-speech-item:hover {
    transform: translateX(6px);
    background: var(--el-light-gray);
}
.el-speech-item h4 {
    color: var(--el-navy);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}
.el-speech-item p {
    color: var(--el-dark-gray);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
}

/* --- NEWS --- */
.el-news-section {
    padding: 5rem 1.5rem;
    background: var(--el-off-white);
}
.el-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.el-news-card {
    background: var(--el-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.el-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.el-news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.el-news-body {
    padding: 1.2rem;
}
.el-news-card h3 {
    font-size: 1rem;
    color: var(--el-navy);
    margin-bottom: 0.3rem;
}
.el-meta {
    font-size: 0.78rem;
    color: var(--el-gray);
    margin-bottom: 0.5rem;
}
.el-news-card p,
.el-news-card-sm p {
    font-size: 0.85rem;
    color: var(--el-dark-gray);
    line-height: 1.5;
    margin: 0;
}
.el-news-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}
.el-news-card-sm {
    background: var(--el-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.el-news-card-sm:hover {
    transform: translateY(-4px);
}
.el-news-card-sm img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.el-news-card-sm .el-news-body {
    padding: 1rem;
}
.el-news-card-sm h3 {
    font-size: 0.9rem;
    color: var(--el-navy);
    margin-bottom: 0.2rem;
}
.el-news-card-sm .el-meta {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

/* --- PROMISES --- */
.el-promises-section {
    background: var(--el-white);
    padding: 5rem 1.5rem;
}
.el-promises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.el-promise-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--el-off-white);
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.el-promise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.el-promise-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--el-white);
    margin: 0 auto 1.2rem;
}
.el-promise-card h3 {
    font-size: 1.2rem;
    color: var(--el-navy);
    margin-bottom: 0.5rem;
}
.el-bar {
    width: 40px;
    height: 3px;
    margin: 0.5rem auto;
}
.el-promise-card p {
    color: var(--el-dark-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.8rem;
}
.el-quote-banner {
    background: var(--el-navy);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2.5rem;
}
.el-quote-banner p {
    color: var(--el-white);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* --- Election Header Override --- */
body.el-page #sb-header {
    background: rgba(15,26,46,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    border-bottom: 3px solid var(--el-accent, #D4A843);
}
body.el-page #sb-header .sb-logo h1 {
    color: #fff;
}
body.el-page #sb-header .sb-logo img {
    filter: brightness(0) invert(1);
}
body.el-page .sb-mobile-toggle span {
    background: #fff;
}

/* --- Election Nav Menu --- */
.sb-menu-1depth.el-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.2rem;
}
.sb-menu-1depth.el-nav .sb-menu-item a {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    display: block;
}
.sb-menu-1depth.el-nav .sb-menu-item a:hover,
.sb-menu-1depth.el-nav .sb-menu-item a.el-active {
    color: var(--el-accent, #D4A843);
    background: rgba(212,168,67,0.1);
}

/* Election mobile menu background */
@media (max-width: 768px) {
    body.el-page .sb-gnb {
        background: rgba(15,26,46,0.98);
    }
    body.el-page .sb-gnb.sb-mobile-open {
        display: block;
    }
    .sb-menu-1depth.el-nav {
        flex-direction: column;
        padding: 0.5rem 0;
    }
    .sb-menu-1depth.el-nav .sb-menu-item a {
        padding: 0.8rem 1.2rem;
        border-radius: 0;
    }
}

/* --- ANIMATIONS --- */
@keyframes elFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes elBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}
.el-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.el-reveal.el-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .el-hero {
        min-height: auto;
        padding: 5rem 1rem 4rem;
    }
    .el-hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1.5rem;
    }
    .el-hero-photo { flex: none; }
    .el-hero-photo img { width: 220px; height: 280px; }
    .el-hero-name { font-size: 2.8rem; }
    .el-hero-catchphrase { font-size: 1.2rem; }
    .el-hero-divider { margin: 1rem auto; }
    .el-hero-info { justify-content: center; flex-wrap: wrap; gap: 0.8rem; }
    .el-hero-info-item { font-size: 0.78rem; }
    .el-scroll-indicator { position: relative; bottom: auto; left: auto; transform: none; margin-top: 2rem; }
    .el-profile-grid { grid-template-columns: 1fr; }
    .el-awards-grid { grid-template-columns: repeat(2, 1fr); }
    .el-stats-row { grid-template-columns: 1fr; }
    .el-legis-top { grid-template-columns: 1fr; }
    .el-topics-grid { grid-template-columns: repeat(3, 1fr); }
    .el-speech-grid { grid-template-columns: 1fr; }
    .el-news-grid { grid-template-columns: 1fr; }
    .el-news-row-3 { grid-template-columns: 1fr; }
    .el-promises-grid { grid-template-columns: 1fr; }
    .el-hero, .el-profile-section, .el-awards-section,
    .el-stats-section, .el-legislation-section,
    .el-speech-section, .el-news-section, .el-promises-section {
        padding: 3rem 1rem;
    }
}
@media (max-width: 500px) {
    .el-hero-name { font-size: 2.2rem; }
    .el-awards-grid { grid-template-columns: 1fr; }
    .el-topics-grid { grid-template-columns: repeat(2, 1fr); }
    .el-stat-num { font-size: 2.2rem; }
}
