@charset "utf-8";

/* ===== Campaign Global ===== */
:root {
    --primary: #1a3a6c;
    --primary-dark: #0f2748;
    --primary-light: #2a5298;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --gold: #f59e0b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    margin: 0; padding: 0;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Reset Gnuboard min-width */
#hd, #wrapper, #ft { min-width: 0 !important; }

a { text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; }

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-bar a {
    color: rgba(255,255,255,0.8);
    margin-left: 15px;
    transition: color 0.2s;
}
.top-bar a:hover { color: var(--white); }

/* ===== Navbar ===== */
.campaign-navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.campaign-navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    padding: 12px 0;
}
.campaign-navbar .navbar-brand span {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    line-height: 1;
    margin-top: -2px;
}
.campaign-navbar .nav-link {
    color: var(--gray-700);
    font-weight: 600;
    padding: 20px 16px !important;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}
.campaign-navbar .nav-link:hover,
.campaign-navbar .nav-link.active {
    color: var(--primary);
}
.campaign-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 16px; right: 16px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
    color: var(--white);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 70%; height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(15,39,72,0.3), transparent);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero-title-sub {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-slogan {
    font-size: 1.25rem;
    opacity: 0.85;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.8;
    max-width: 500px;
}

.hero-social {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}
.hero-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s;
}
.hero-social a:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-photo-wrap {
    text-align: center;
    position: relative;
    z-index: 2;
}
.hero-photo-wrap img {
    max-height: 520px;
    width: auto;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.3));
    border-radius: 20px;
}

.hero-cta {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-cta .btn {
    padding: 12px 28px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-hero-primary {
    background: var(--white);
    color: var(--primary);
    border: none;
}
.btn-hero-primary:hover {
    background: var(--accent-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}
.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

/* ===== Profile Section ===== */
.profile-section {
    padding: 80px 0;
    background: var(--white);
}
.profile-card {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--gray-200);
}
.profile-item {
    margin-bottom: 24px;
}
.profile-item:last-child { margin-bottom: 0; }
.profile-label {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.profile-value {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.8;
}

/* ===== Message Section ===== */
.message-section {
    padding: 80px 0;
    background: var(--gray-50);
}
.message-quote {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.4;
}
.message-sub-quote {
    font-size: 1.2rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 40px;
}
.message-content {
    max-width: 800px;
    margin: 0 auto;
}
.message-content h4 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 30px;
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 4px solid var(--accent);
}
.message-content p {
    color: var(--gray-700);
    line-height: 1.9;
    margin-bottom: 16px;
}

/* ===== Policy Section ===== */
.policy-section {
    padding: 80px 0;
    background: var(--white);
}
.policy-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.policy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: var(--accent-light);
}
.policy-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.policy-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.policy-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}
.policy-card .policy-subtitle {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 14px;
}
.policy-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}
.policy-card ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}
.policy-card ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--gray-700);
    font-size: 0.92rem;
}
.policy-card ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 14px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* ===== News Section ===== */
.news-section {
    padding: 80px 0;
    background: var(--gray-50);
}
.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}
.news-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.news-card .card-body {
    padding: 24px;
}
.news-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}
.news-card h5 {
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.5;
}
.news-card a { color: inherit; }
.news-card a:hover { color: var(--primary); }

/* ===== Video Section ===== */
.video-section {
    padding: 80px 0;
    background: var(--white);
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ===== Book Section ===== */
.book-section {
    padding: 80px 0;
    background: var(--gray-50);
}
.book-img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    max-width: 300px;
}
.book-info h3 {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}
.book-info p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===== Contact / Footer ===== */
.contact-section {
    padding: 60px 0;
    background: var(--primary);
    color: var(--white);
}
.contact-section h3 {
    font-weight: 800;
    margin-bottom: 24px;
}
.contact-info {
    font-size: 1rem;
    line-height: 2;
    opacity: 0.9;
}
.contact-info i {
    width: 24px;
    color: var(--accent-light);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: var(--white);
    color: var(--primary);
}

.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.5);
    padding: 24px 0;
    font-size: 0.85rem;
    text-align: center;
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-section { padding: 40px 0 0; min-height: auto; }
    .hero-title { font-size: 3rem; }
    .hero-photo-wrap img { max-height: 380px; }
    .hero-slogan { max-width: 100%; }
    .campaign-navbar .nav-link { padding: 10px 16px !important; }
    .campaign-navbar .nav-link.active::after { display: none; }
    .policy-card { margin-bottom: 20px; }
}

@media (max-width: 767.98px) {
    .hero-section { text-align: center; }
    .hero-title { font-size: 2.4rem; }
    .hero-title-sub { font-size: 1.1rem; }
    .hero-social { justify-content: center; }
    .hero-cta { justify-content: center; }
    .hero-slogan { margin: 0 auto 30px; }
    .hero-photo-wrap img { max-height: 300px; }
    .section-title { font-size: 1.6rem; }
    .message-quote { font-size: 1.6rem; }
    .profile-card { padding: 24px; }
    .book-img { margin-bottom: 30px; }
    .footer-social { justify-content: center; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 2rem; }
    .hero-photo-wrap img { max-height: 250px; }
    .top-bar .d-flex { flex-direction: column; text-align: center; gap: 4px; }
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 80px 0;
    background: var(--white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26,58,108,0);
    transition: background 0.3s;
    pointer-events: none;
}
.gallery-item:hover::after {
    background: rgba(26,58,108,0.2);
}
.gallery-item .gallery-zoom {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--white);
    font-size: 1.8rem;
    z-index: 2;
    transition: transform 0.3s;
    pointer-events: none;
}
.gallery-item:hover .gallery-zoom {
    transform: translate(-50%, -50%) scale(1);
}
.gallery-more-btn {
    text-align: center;
    margin-top: 30px;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gallery-lightbox.active {
    display: flex;
}
.gallery-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}
.gallery-lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.gallery-lightbox-close:hover { opacity: 1; }
.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 1.5rem;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
}
.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }
.gallery-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* ===== Login Page ===== */
.login-page-bg {
    min-height: 100vh;
    background: url('https://cdn.litt.ly/images/fm7eXdgVfwrCEspUJzGOxiBwzDU4Jsns?s=1280x2400&m=outside&f=webp') center center / cover no-repeat fixed;
    position: relative;
}
.login-page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 72, 0.65);
    z-index: 0;
}
.login-page-bg #wrapper,
.login-page-bg #container {
    position: relative;
    z-index: 1;
}
.login-page-bg .mbskin {
    margin: 60px auto;
    width: 420px;
    max-width: 95%;
}
.login-page-bg .mbskin .mbskin_box {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.login-page-bg .mbskin h1 {
    position: relative !important;
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    overflow: visible !important;
    margin: 40px 0 10px !important;
    color: var(--primary);
    font-weight: 800;
}
.login-page-bg .mb_log_cate {
    border-bottom: 1px solid var(--gray-200);
}
.login-page-bg .mb_log_cate h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    padding: 16px 0;
    border-bottom: 3px solid var(--primary);
}
.login-page-bg .mb_log_cate .join {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-500);
    padding: 16px 0;
    transition: color 0.2s;
}
.login-page-bg .mb_log_cate .join:hover {
    color: var(--primary);
}
.login-page-bg #login_fs {
    padding: 30px 35px 35px;
}
.login-page-bg #login_fs .frm_input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 12px !important;
    transition: border-color 0.2s;
    background: var(--gray-50);
}
.login-page-bg #login_fs .frm_input:focus {
    border-color: var(--accent) !important;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15) !important;
}
.login-page-bg #login_fs .btn_submit {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin: 8px 0 16px !important;
    transition: opacity 0.2s, transform 0.2s;
}
.login-page-bg #login_fs .btn_submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.login-page-bg #login_info {
    font-size: 0.9rem;
}
.login-page-bg #login_info a {
    color: var(--accent);
}
.login-page-bg #login_info a:hover {
    text-decoration: underline;
}

/* Sub-page overrides for Gnuboard compatibility */
#wrapper #container .container {
    min-width: 0;
}

/* ===== Animation ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
