/* Google Fonts - Noto Sans KR */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* Global Variables & Theme */
:root {
    /* Colors - Premium Blue & Gold Theme */
    --primary-color: #1e3a8a;
    /* Deep Royal Blue */
    --primary-light: #2563eb;
    /* Brighter Blue for hover/active */
    --primary-dark: #1e293b;
    /* Slate Dark for text */

    --accent-color: #f59e0b;
    /* Vibrant Gold */
    --accent-hover: #d97706;
    /* Darker Gold */

    --bg-color: #f8fafc;
    /* Light Gray Background */
    --surface-color: #ffffff;
    /* Pure White Surface */

    --text-main: #0f172a;
    /* Deep Navy/Black for text */
    --text-muted: #64748b;
    /* Muted Blue-Gray */
    --border-color: #e2e8f0;
    /* Light Border */

    --success-color: #10b981;
    --danger-color: #ef4444;

    /* Typography */
    --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Effects */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

main {
    flex: 1;
    margin-top: var(--header-height);
    /* For consistent spacing */
    padding-top: 40px;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-dark);
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.9);
    /* Glassmorphism start */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 5px;
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    min-width: 180px;
    z-index: 1000;
    padding: 8px 0;
    opacity: 0;
    transition: all 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    border: 2px solid var(--border-color);
    background-color: transparent;
    color: var(--text-main);
    padding: 8px 18px;
    /* Adjustment for border */
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #eff6ff;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 350px;
    line-height: 1.7;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 700;
}

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

.footer-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.85rem;
}

/* Board Styles (Moved from HTML) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 800;
}

.page-header p {
    color: #cbd5e1;
    font-size: 1.05rem;
}

.board-container {
    margin: 40px auto;
    min-height: 500px;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.board-table th {
    border-top: 2px solid var(--primary-color);
    background-color: #f8fafc;
    padding: 18px 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.board-table td {
    padding: 16px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-main);
}

.board-table td.title {
    text-align: left;
}

.board-table td.title a {
    font-weight: 500;
    transition: color 0.2s;
}

.board-table td.title a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.badge-notice {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-news {
    background-color: #e0f2fe;
    color: #0284c7;
}

.badge-statement {
    background-color: #f3e8ff;
    color: #7e22ce;
}

/* Detail View Styles (Moved from HTML) */
.view-container {
    margin: 60px auto;
    max-width: 800px;
}

.post-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
    margin-bottom: 35px;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--primary-dark);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    gap: 20px;
    align-items: center;
}

.post-content {
    min-height: 300px;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 60px;
    white-space: pre-line;
    color: var(--text-main);
}

.btn-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

/* Form & Auth Styles (Moved from HTML) */
.auth-container,
.login-container,
.write-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    margin: 60px auto;
}

.auth-container {
    max-width: 600px;
}

.login-container {
    max-width: 450px;
    text-align: center;
}

.write-container {
    max-width: 800px;
}

.auth-header,
.login-logo {
    margin-bottom: 30px;
    text-align: center;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: white;
    /* Ensure bg is white */
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Radio Group (Join Form) */
.radio-group {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    background-color: #f8fafc;
}

.radio-option:has(input:checked) {
    border-color: var(--accent-color);
    background-color: #fffbeb;
}

input[type="radio"]:checked+.radio-content,
input[type="radio"]:checked+.radio-info .radio-title {
    color: var(--primary-color);
}

.radio-info {
    margin-left: 10px;
}

.radio-title {
    font-weight: 600;
    display: block;
}

.radio-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Divider & Terms */
.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 30px 0;
    position: relative;
}

.divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.terms-box {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    height: 100px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    margin-top: 10px;
}

.login-footer,
.login-link {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.login-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.login-footer a:hover,
.login-link a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}


/* Home Page Specific Styles (Moved from HTML) */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: white;
    padding: 80px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero .btn {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Improved min-width */
    gap: 30px;
    margin-top: -60px;
    /* Overlap Hero */
}

.card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-box {
    width: 40px;
    height: 40px;
    background-color: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.news-preview {
    padding: 80px 0;
    background-color: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

/* Digital Join Landing Page Styles */
/* Digital Join Landing Page Styles (Revamped) */
.join-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    padding: 120px 20px 180px;
    /* Increased bottom padding for overlap */
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    /* Subtle Angle */
    position: relative;
    z-index: 1;
}

.join-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.join-hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    opacity: 0.9;
}

.join-wrapper {
    max-width: 800px;
    margin: -100px auto 60px;
    /* Negative margin for overlap */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.join-card {
    background: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    /* Premium Deep Shadow */
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Subtle border */
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grid System for Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .join-hero {
        padding: 80px 20px 120px;
        clip-path: none;
    }

    .join-wrapper {
        margin-top: -60px;
    }

    .join-card {
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 0;
    }
}

.consent-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
}

.consent-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 15px;
}

.cms-btn {
    width: 100%;
    padding: 22px;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cms-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* Cleanup old classes if not needed, but keeping for safety */
.join-section {
    /* Deprecated but keeping minimal style to avoid breaking if used elsewhere */
    margin-bottom: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.news-item:hover {
    background-color: #f8fafc;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-weight: 500;
    color: var(--text-main);
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* Responsive Breakpoints & Styles */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Layout */
    .container {
        padding: 0 16px;
    }

    main {
        padding-top: 10px;
    }

    .page-header {
        padding: 40px 0;
    }

    /* Navigation */
    .mobile-menu-btn {
        display: block;
        /* Show hamburger */
    }

    .nav-menu {
        display: none;
        /* Hide default menu */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border-color);
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
        /* Show when toggled */
    }

    .nav-item-dropdown:hover .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: #f8fafc;
        display: block;
        /* Always expand on mobile if parent clicked, but hover works for now */
    }

    .auth-buttons {
        display: none;
        /* Move to inside mobile menu via JS or CSS ordering if needed */
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-desc {
        margin: 0 auto;
    }

    /* Home Page Mobile */
    .hero {
        padding: 50px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .features-grid {
        margin-top: -40px;
        gap: 20px;
    }

    .news-preview {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 20px;
    }

    /* Detail View Mobile */
    .view-container {
        margin: 20px auto;
        padding: 20px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* Admin Page Styles (Moved from HTML) */
.admin-container {
    margin: 40px auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.admin-table th {
    background-color: #f1f5f9;
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-approved {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-rejected {
    background-color: #fee2e2;
    color: #dc2626;
}

.action-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-right: 5px;
    font-weight: 600;
}

.btn-approve {
    background-color: var(--success-color);
    color: white;
    border: none;
}

.btn-reject {
    background-color: white;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* responsive admin table */
@media (max-width: 768px) {

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table th,
    .admin-table td,
    .admin-table tr {
        display: block;
    }

    .admin-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .admin-table tr {
        border: 1px solid var(--border-color);
        margin-bottom: 15px;
        border-radius: var(--radius-md);
        background: white;
        box-shadow: var(--shadow-sm);
        padding: 10px;
    }

    .admin-table td {
        border: none;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
        padding: 10px 0 10px 35%;
        /* Space for label */
        white-space: normal;
        text-align: right;
        min-height: 40px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .admin-table td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        gap: 5px;
    }

    .admin-table td:before {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        width: 30%;
        font-weight: 700;
        text-align: left;
        color: var(--text-muted);
        font-size: 0.85rem;
    }

    /* Labels */
    .admin-table td:nth-of-type(1):before {
        content: "No";
    }

    .admin-table td:nth-of-type(2):before {
        content: "이름/ID";
    }

    .admin-table td:nth-of-type(3):before {
        content: "사번/부서";
    }

    .admin-table td:nth-of-type(4):before {
        content: "가입유형";
    }

    .admin-table td:nth-of-type(5):before {
        content: "신청일";
    }

    .admin-table td:nth-of-type(6):before {
        content: "상태";
    }

    .admin-table td:nth-of-type(7):before {
        content: "관리";
    }
}

/* About Page Styles (Moved from HTML) */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.vision-box {
    background-color: #f8fafc;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

.vision-box h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Policy Pages (Terms & Privacy) Styles */
.policy-container {
    max-width: 800px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    line-height: 1.8;
}

.policy-container h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.policy-container h2 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
}

/* Privacy specific h2 override if needed, but generic matches well */
.policy-container h2 {
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

/* Reset h2 for Terms if it didn't use border-left? 
   Terms H2 was simple. Privacy H2 had border-left. 
   Let's keep the Privacy style as the default for consistency, it looks better. */

.policy-container h3 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.policy-container p,
.policy-container li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.policy-container ol,
.policy-container ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.policy-table th,
.policy-table td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

.policy-table th {
    background-color: #f8fafc;
    font-weight: 600;
}


/* Responsive Mobile Card View */
@media (max-width: 768px) {

    /* Force tables to not be like tables anymore */
    table.board-table,
    .board-table thead,
    .board-table tbody,
    .board-table th,
    .board-table td,
    .board-table tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    .board-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .board-table tr {
        border: 1px solid #ccc;
        margin-bottom: 15px;
        border-radius: 8px;
        background: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .board-table td {
        /* Behave like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 35%;
        white-space: normal;
        text-align: right;
    }

    .board-table td:last-child {
        border-bottom: none;
    }

    .board-table td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 50%;
        transform: translateY(-50%);
        left: 15px;
        width: 30%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 700;
        color: var(--text-muted);
        font-size: 0.85rem;
    }

    /* Label the data via CSS for key columns (assumes standard structure) */
    .board-table td:nth-of-type(1):before {
        content: "번호";
    }

    .board-table td:nth-of-type(2):before {
        content: "구분/상태";
    }

    /* Title Row needs special handling */
    .board-table td.title {
        text-align: left;
        padding-left: 15px;
        font-weight: 600;
        font-size: 1.05rem;
    }

    .board-table td.title:before {
        display: none;
    }

    /* No label for title */

    .board-table td:nth-of-type(4):before {
        content: "작성일";
    }

    .board-table td:nth-of-type(5):before {
        content: "조회수";
    }
}