/* ═══════════════════════════════════════════════════
   DSC 데스코 스크린 클럽 - Modern Golf Club Design
   ═══════════════════════════════════════════════════ */

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

:root {
    --primary: #1a5e3a;
    --primary-light: #2d8a5e;
    --primary-dark: #0d3f26;
    --accent: #c9a84c;
    --accent-light: #e6cb7a;
    --bg: #fafaf7;
    --bg-card: #ffffff;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --text-muted: #9a9a9a;
    --border: #e8e8e4;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: color 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s, opacity 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
}

/* ── NAV ── */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.nav-logo .logo-icon {
    font-size: 1.6rem;
}

.nav-logo .logo-sub {
    font-size: 0.7rem;
    font-weight: 300;
    opacity: 0.8;
    display: block;
    margin-top: -4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 20px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-light);
    background: rgba(255,255,255,0.08);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* nav right area */
.nav-right-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* share button */
.nav-share-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 7px 14px;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-share-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
}
.nav-share-btn:active {
    transform: scale(0.95);
}
.nav-share-btn .share-icon {
    font-size: 1rem;
}

/* hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ── HERO ── */
.hero {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero .club-name-kr {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-badge .badge-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-light);
}

.hero-badge .badge-label {
    font-size: 0.75rem;
    opacity: 0.7;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-cta {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

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

.btn-green:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,94,58,0.3);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

/* ── CONTAINER ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ── SECTION ── */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.section-header .accent-line {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ── CARDS ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.card p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ── QUICK LINKS SECTION ── */
.quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 3rem 0;
}

.quick-link {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.quick-link:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.quick-link .ql-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.quick-link .ql-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.quick-link .ql-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── RECENT SECTION (home) ── */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.home-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.home-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-section h3 a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
}

.home-section h3 a:hover { color: var(--primary); }

.post-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.post-list-item:last-child { border-bottom: none; }
.post-list-item:hover { color: var(--primary); padding-left: 4px; }

.post-list-item .pli-title {
    font-size: 0.88rem;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 1rem;
}

.post-list-item .pli-badge {
    font-size: 0.65rem;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

.post-list-item .pli-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.news-card-mini {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.news-card-mini:last-child { border-bottom: none; }
.news-card-mini:hover { color: var(--primary); }

.news-card-mini .ncm-cat {
    font-size: 0.65rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-card-mini .ncm-title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════
   RULES PAGE
   ═══════════════════════════════════════════════════ */

.rules-hero {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 60%, #3a9d6e 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.rules-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.rules-hero p {
    opacity: 0.85;
    font-weight: 300;
    font-size: 0.95rem;
}

.rules-container {
    max-width: 900px;
    margin: -2rem auto 3rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.rules-toc {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.rules-toc h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.rules-toc ol {
    list-style: none;
    counter-reset: toc;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.rules-toc ol li {
    counter-increment: toc;
}

.rules-toc ol li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.88rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.rules-toc ol li a::before {
    content: counter(toc);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rules-toc ol li a:hover {
    background: rgba(26,94,58,0.05);
    color: var(--primary);
}

.rule-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.rule-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-section h2 .rule-num {
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.rule-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1.5rem 0 0.8rem;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
}

.rule-section p,
.rule-section li {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.8;
}

.rule-section ul,
.rule-section ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.rule-section li {
    margin-bottom: 0.4rem;
}

.rule-highlight {
    background: linear-gradient(135deg, rgba(26,94,58,0.05), rgba(201,168,76,0.08));
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    border-left: 3px solid var(--accent);
    font-size: 0.88rem;
}

.rule-highlight strong {
    color: var(--primary-dark);
}

.rule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.88rem;
}

.rule-table th {
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
}

.rule-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.rule-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.rule-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.rule-table tr:nth-child(even) { background: rgba(26,94,58,0.02); }
.rule-table tr:hover { background: rgba(26,94,58,0.05); }

.rules-footer {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--accent);
}

.rules-footer p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.rules-footer .stamp {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════
   BOARD PAGE
   ═══════════════════════════════════════════════════ */

.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.page-header p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* filter tabs */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.filter-tab {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* post table */
.post-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.post-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px 70px 80px;
    align-items: center;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.post-row:last-child { border-bottom: none; }
.post-row:hover { background: rgba(26,94,58,0.03); }

.post-row .pr-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.post-row .pr-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.post-row .pr-cat {
    font-size: 0.7rem;
    background: rgba(26,94,58,0.08);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-left: 6px;
    font-weight: 600;
}

.post-row .pr-author {
    font-size: 0.8rem;
    color: var(--text-light);
}

.post-row .pr-views {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

.post-row .pr-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* ── FORM ── */
.form-container {
    max-width: 700px;
    margin: 2rem auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--bg);
    writing-mode: horizontal-tb;
    direction: ltr;
    transform: none;
    text-orientation: mixed;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(26,94,58,0.1);
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
    writing-mode: horizontal-tb;
    transform: none;
}

input, textarea, select {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
    direction: ltr;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

/* ── POST DETAIL ── */
.post-detail {
    max-width: 800px;
    margin: 2rem auto;
}

.post-detail-header {
    background: var(--bg-card);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 2rem;
    border: 1px solid var(--border);
    border-bottom: none;
}

.post-detail-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-detail-body {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--border);
    border-top: 1px solid var(--border);
    min-height: 200px;
    white-space: pre-wrap;
    font-size: 0.92rem;
    line-height: 1.9;
}

.post-detail-actions {
    background: var(--bg-card);
    padding: 1rem 2rem;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex;
    justify-content: center;
}

.like-btn {
    background: none;
    border: 2px solid var(--border);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-light);
}

.like-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231,76,60,0.05);
}

/* ── COMMENTS ── */
.comments-section {
    max-width: 800px;
    margin: 1.5rem auto;
}

.comments-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comment {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.comment-header .comment-author { font-weight: 600; color: var(--text); }

.comment-body {
    font-size: 0.88rem;
    line-height: 1.7;
}

.comment-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.comment-form-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.comment-form-row input {
    flex: 0 0 150px;
}

/* ── NEWS ── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ── 6-2 게임비 차등 계산기 ── */
.fee-calc {
    border: 2px solid var(--primary, #0d3f26);
    border-radius: 14px;
    padding: 1.1rem 1.2rem 1.3rem;
    margin: 1.2rem 0;
    background: linear-gradient(180deg, rgba(13,63,38,0.04), rgba(13,63,38,0.01));
}
.fee-calc-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}
.fee-input-label {
    font-weight: 800;
    color: var(--primary-dark, #0d3f26);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.fee-input-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 2px solid var(--primary, #0d3f26);
    border-radius: 10px;
    padding: 4px 10px;
}
.fee-input-wrap input {
    width: 110px;
    border: 0;
    outline: 0;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: right;
    color: var(--primary-dark, #0d3f26);
    background: transparent;
    -moz-appearance: textfield;
}
.fee-input-wrap em { font-style: normal; font-weight: 700; color: var(--text-light, #555); }
.fee-people { display: flex; align-items: center; gap: 0.6rem; }
.fee-people-label { font-weight: 800; color: var(--primary-dark, #0d3f26); font-size: 0.95rem; }
.fee-people-btns { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.fee-people-btns button {
    width: 40px; height: 40px;
    border: 2px solid var(--border, #ddd);
    background: #fff;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text, #333);
    cursor: pointer;
    transition: all 0.15s;
}
.fee-people-btns button:hover { border-color: var(--primary, #0d3f26); }
.fee-people-btns button.active {
    background: var(--primary, #0d3f26);
    border-color: var(--primary, #0d3f26);
    color: #fff;
    box-shadow: 0 3px 10px rgba(13,63,38,0.3);
}
.fee-calc-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    padding: 0.7rem 0.9rem;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    color: var(--text-light, #555);
}
.fee-calc-summary b { color: var(--primary-dark, #0d3f26); font-size: 1.02rem; }
.fee-calc-table { margin: 0 !important; }
.fee-calc-table td, .fee-calc-table th { text-align: center; }
.fee-calc-table td:nth-child(2) { font-size: 1.05rem; }
.fee-calc-table tr.fee-win td { background: rgba(16,185,129,0.12); }
.fee-calc-table tr.fee-win td strong { color: #059669; }
.fee-calc-table tr.fee-lose td { background: rgba(239,68,68,0.10); }
.fee-calc-table tr.fee-lose td strong { color: #dc2626; }
.fee-calc-table tr.fee-total td,
.fee-ref-table tr.fee-total td {
    background: var(--primary-dark, #0d3f26) !important;
    color: #fff !important;
    font-weight: 800;
}
.fee-calc-table tr.fee-total td strong { color: #fff; }
.fee-calc-note { font-size: 0.78rem; color: var(--text-muted, #888); margin-top: 0.6rem; }
.fee-ref { margin: 0.8rem 0 0.4rem; }
.fee-ref summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary, #0d3f26);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.fee-ref-scroll { overflow-x: auto; }
.fee-ref-table { min-width: 560px; margin-top: 0.5rem; }
.fee-ref-table td, .fee-ref-table th { text-align: center; padding: 6px 8px; font-size: 0.85rem; }

.news-card-link {
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.yt-facade { cursor: pointer; }

/* ── 회원 이름 인증 ── */
.member-auth { max-width: 560px; margin: 0 auto; background: var(--bg-card,#fff); border: 1px solid var(--border,#eee); border-radius: 16px; padding: 1.5rem 1.6rem; box-shadow: var(--shadow); }
.member-auth-label { font-size: 0.85rem; font-weight: 700; color: var(--primary-dark,#0d3f26); margin-bottom: 0.7rem; }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 1.4rem; }
.member-pick { padding: 0.9rem 0.4rem; border: 2px solid var(--border,#ddd); background: #fff; border-radius: 12px; font-size: 1rem; font-weight: 800; color: var(--text,#333); cursor: pointer; transition: all 0.15s; }
.member-pick:hover { border-color: var(--primary,#1a5e3a); background: rgba(16,185,129,0.08); color: var(--primary-dark,#0d3f26); transform: translateY(-2px); }
.member-manual { border-top: 1px solid var(--border,#eee); padding-top: 1.1rem; }
.member-manual-row { display: flex; gap: 0.5rem; }
.member-manual-row input { flex: 1; }
.member-adminlink { text-align: center; margin-top: 1.4rem; display: flex; gap: 0.6rem; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--text-muted,#888); }
.comment-auth-notice { text-align: center; background: rgba(16,185,129,0.06); border: 1px dashed var(--primary,#1a5e3a); border-radius: 12px; padding: 1.3rem; }
.comment-auth-notice p { margin-bottom: 0.8rem; color: var(--text-light,#555); font-size: 0.9rem; }
@media (max-width: 560px){ .member-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── 가입·입장 카드 ── */
.join-card { max-width: 440px; margin: 0 auto; background: var(--bg-card,#fff); border: 1px solid var(--border,#eee); border-radius: 16px; padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--shadow); }
.join-fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 1rem; }
.join-fld label { font-size: 0.82rem; font-weight: 800; color: var(--primary-dark,#0d3f26); }
.join-fld input { padding: 11px 12px; border: 1.5px solid var(--border,#ddd); border-radius: 10px; font-size: 1rem; }
.join-fld input:focus { outline: none; border-color: var(--primary,#1a5e3a); }
.join-submit { width: 100%; margin-top: 0.3rem; padding: 12px; font-size: 1rem; font-weight: 800; }
.join-note { margin-top: 1rem; font-size: 0.76rem; color: var(--text-muted,#888); line-height: 1.7; }

/* 홈 첫화면 입장 배너 */
.home-join { background: linear-gradient(135deg, var(--primary-dark,#0d3f26), var(--primary,#1a5e3a)); color: #fff; border-radius: 16px; padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; box-shadow: 0 8px 26px rgba(13,63,38,0.25); }
.home-join-text { display: flex; flex-direction: column; gap: 3px; }
.home-join-text strong { font-size: 1.05rem; }
.home-join-text span { font-size: 0.82rem; opacity: 0.85; }
.home-join-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.home-join-form input { padding: 9px 11px; border: none; border-radius: 9px; font-size: 0.9rem; width: 130px; }
.home-join-form input[type=date] { width: 150px; }
.home-join-form .btn { white-space: nowrap; }
@media (max-width: 720px){ .home-join { flex-direction: column; align-items: stretch; } .home-join-form input { flex: 1; min-width: 120px; } }

/* ═══════════ 재정관리 대시보드 ═══════════ */
.fin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.fin-kpi { background: var(--bg-card,#fff); border: 1px solid var(--border,#eee); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.25rem; }
.fin-kpi-main { background: linear-gradient(135deg, var(--primary-dark,#0d3f26), var(--primary,#1a5e3a)); color: #fff; border: none; }
.fin-kpi-label { font-size: 0.72rem; color: var(--text-muted,#888); letter-spacing: 1px; }
.fin-kpi-main .fin-kpi-label { color: rgba(255,255,255,0.75); }
.fin-kpi-value { font-size: 1.5rem; font-weight: 900; color: var(--primary-dark,#0d3f26); line-height: 1.15; }
.fin-kpi-main .fin-kpi-value { color: #fff; }
.fin-kpi-value em { font-style: normal; font-size: 0.85rem; font-weight: 700; margin-left: 2px; }
.fin-kpi-sub { font-size: 0.72rem; color: var(--text-muted,#888); }
.fin-kpi-main .fin-kpi-sub { color: rgba(255,255,255,0.7); }
.fin-in { color: #059669 !important; }
.fin-out { color: #dc2626 !important; }

.fin-card { background: var(--bg-card,#fff); border: 1px solid var(--border,#eee); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.fin-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; flex-wrap: wrap; gap: 0.5rem; }
.fin-card-head h3 { font-size: 0.95rem; color: var(--primary-dark,#0d3f26); font-weight: 800; }
.fin-legend { font-size: 0.78rem; color: var(--text-light,#555); display: flex; align-items: center; gap: 6px; }
.fin-legend .lg { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.fin-legend .lg-in { background: #10b981; } .fin-legend .lg-out { background: #ef4444; }
.fin-chart { width: 100%; overflow-x: auto; }

.fin-actionbar { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.fin-login { font-size: 0.82rem; color: var(--primary,#1a5e3a); font-weight: 700; }
.fin-login-off { font-size: 0.82rem; color: var(--text-muted,#888); }
.fin-action-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.fin-filter { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.fin-filter select, .fin-search { padding: 7px 10px; border: 1px solid var(--border,#ddd); border-radius: 8px; font-size: 0.85rem; background: #fff; }
.fin-search { flex: 1; min-width: 140px; }
.fin-clear { font-size: 0.78rem; color: var(--text-muted,#888); text-decoration: underline; }
.fin-count { margin-left: auto; font-size: 0.8rem; color: var(--text-muted,#888); font-weight: 700; }

.fin-tablewrap { overflow-x: auto; border: 1px solid var(--border,#eee); border-radius: 12px; max-height: 70vh; overflow-y: auto; }
.fin-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 0.86rem; }
.fin-table thead th { position: sticky; top: 0; background: var(--primary-dark,#0d3f26); color: #fff; padding: 10px 12px; text-align: left; font-size: 0.78rem; font-weight: 700; z-index: 2; }
.fin-table td { padding: 9px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.fin-table tbody tr:hover { background: #f8faf9; }
.ta-r { text-align: right; } .ta-c { text-align: center; } .nowrap { white-space: nowrap; }
.fin-badge { font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
.fin-badge-in { background: rgba(16,185,129,0.14); color: #059669; }
.fin-badge-out { background: rgba(239,68,68,0.12); color: #dc2626; }
.fin-desc { max-width: 340px; }
.fin-bal { color: var(--primary-dark,#0d3f26); font-weight: 700; }
.fin-note { font-size: 0.78rem; color: var(--text-muted,#888); max-width: 200px; }
.fin-empty { text-align: center; color: var(--text-muted,#888); padding: 2rem !important; }
.fin-receipt-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-left: 6px; border: 1px solid var(--border,#ddd); }
.fin-receipt-link { display: inline-block; }
.fin-mini { border: 1px solid var(--border,#ddd); background: #fff; border-radius: 7px; width: 30px; height: 30px; cursor: pointer; font-size: 0.9rem; margin: 0 1px; }
.fin-mini:hover { border-color: var(--primary,#1a5e3a); }
.fin-mini-del:hover { border-color: #dc2626; }

/* 모달 */
.fin-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; padding: 1rem; }
.fin-modal.open { display: flex; }
.fin-modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.fin-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border,#eee); font-weight: 800; color: var(--primary-dark,#0d3f26); }
.fin-x { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text-muted,#888); }
.fin-modal form { padding: 1.1rem 1.2rem 1.3rem; }
.fin-fld { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; font-weight: 700; color: var(--text-light,#555); margin-bottom: 0.8rem; }
.fin-fld input { padding: 9px 11px; border: 1px solid var(--border,#ddd); border-radius: 9px; font-size: 0.95rem; font-weight: 400; }
.fin-type-toggle { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.fin-type-toggle label { flex: 1; }
.fin-type-toggle input { position: absolute; opacity: 0; }
.fin-type-toggle span { display: block; text-align: center; padding: 9px; border: 2px solid var(--border,#ddd); border-radius: 10px; font-weight: 800; font-size: 0.9rem; cursor: pointer; color: var(--text-light,#666); }
.fin-type-toggle input:checked + span { border-color: var(--primary,#1a5e3a); background: rgba(16,185,129,0.1); color: var(--primary-dark,#0d3f26); }
.fin-modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.4rem; }
.fin-drop { display: block; border: 2px dashed var(--primary,#1a5e3a); border-radius: 12px; padding: 1.2rem; text-align: center; cursor: pointer; margin-bottom: 1rem; background: rgba(16,185,129,0.04); position: relative; }
.fin-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fin-drop-ico { font-size: 1.8rem; display: block; margin-bottom: 0.3rem; }
#rDropInner { color: var(--text-light,#555); font-size: 0.85rem; display: flex; flex-direction: column; gap: 4px; }
.fin-preview { max-width: 100%; max-height: 220px; border-radius: 10px; }

@media (max-width: 640px){
    .fin-kpis { grid-template-columns: repeat(2,1fr); }
    .fin-kpi-value { font-size: 1.25rem; }
}

.news-card-header {
    padding: 1.5rem 1.5rem 0;
}

.news-card-cat {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.news-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.5;
}

.news-card-body {
    padding: 0.8rem 1.5rem 1.5rem;
    flex: 1;
}

.news-card-body p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    padding: 0.8rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* news detail */
.news-detail {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.news-detail .nd-cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

.news-detail h1 {
    font-size: 1.6rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.news-detail .nd-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.news-detail .nd-content {
    font-size: 0.92rem;
    line-height: 2;
    white-space: pre-wrap;
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.officer-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.officer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.officer-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.officer-card .officer-role {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

/* ── FLASH ── */
.flash-msg {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    background: rgba(26,94,58,0.08);
    border: 1px solid rgba(26,94,58,0.2);
    border-radius: var(--radius-sm);
    color: var(--primary-dark);
    font-size: 0.88rem;
    text-align: center;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 2rem;
    margin-top: 4rem;
    text-align: center;
    font-size: 0.8rem;
}

.site-footer .footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.site-footer .footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.78rem;
}

.site-footer .footer-links a:hover { color: var(--accent-light); }

/* ═══════════════════════════════════════════════════
   BIRTHDAY BANNER
   ═══════════════════════════════════════════════════ */

.birthday-banner {
    margin-bottom: 1.5rem;
}

.birthday-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #fff8e7, #fff3d0);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: 0 2px 15px rgba(201,168,76,0.15);
    margin-bottom: 0.8rem;
    animation: birthdayPulse 2s ease-in-out infinite;
}

@keyframes birthdayPulse {
    0%, 100% { box-shadow: 0 2px 15px rgba(201,168,76,0.15); }
    50% { box-shadow: 0 4px 25px rgba(201,168,76,0.35); }
}

.birthday-icon { font-size: 2.5rem; }

.birthday-card strong {
    font-size: 1rem;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.2rem;
}

.birthday-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   HERO SLIDER (FULLSCREEN)
   ═══════════════════════════════════════════════════ */

.hero-slider {
    position: relative;
    height: 80vh;
    max-height: 650px;
    min-height: 420px;
    overflow: hidden;
    background: #111;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    overflow: hidden;
}

.hero-slide.active { opacity: 1; }

/* 남는 여백을 같은 사진의 흐릿한 확대본으로 채워 빈 화면 제거 */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--slide-bg);
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.55);
    transform: scale(1.2);
    z-index: 0;
}

.hero-slide-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;      /* 사진 전체가 잘림 없이 보이도록 */
    object-position: center;
    z-index: 1;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-slide-content {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 600px;
}

.hero-slide-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 4px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.hero-slide-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    margin-bottom: 0.4rem;
}

.hero-slide-content p {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.hero-slider-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }

.hero-slider-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* Hero info bar */
.hero-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13,63,38,0.85);
    backdrop-filter: blur(12px);
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.hero-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.hero-logo-img {
    height: 36px;
    width: auto;
    border-radius: 4px;
}

.hero-logo-text {
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.hero-logo-sub {
    font-size: 0.6rem;
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 2px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.hero-stat {
    text-align: center;
    color: white;
}

.stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent-light);
}

.stat-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

.hero-actions {
    display: flex;
    gap: 0.5rem;
}

/* ── 규칙집 인라인 편집 (관리자) ── */
.rules-edit-toolbar {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    background: rgba(13,63,38,0.96);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.32);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 94vw;
}
.rules-edit-toolbar #editingTools {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.rules-edit-toolbar .btn {
    background: #fff;
    color: #0d3f26;
}
.rules-edit-toolbar .btn-primary { background: var(--accent, #F59E0B); color: #fff; }
.rules-edit-toolbar .btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.rules-edit-toolbar .btn-reset-rules { background: #fff; color: #b91c1c; }
.rules-edit-hint { color: #fff; font-size: 0.8rem; margin-left: 4px; }
#rulesEditable.rules-editing {
    outline: 2px dashed var(--accent, #F59E0B);
    outline-offset: 8px;
    background: rgba(255,251,235,0.5);
    border-radius: 10px;
}

/* ═══════════════════════════════════════════════════
   PHOTO MARQUEE (continuous scroll)
   ═══════════════════════════════════════════════════ */

.photo-marquee-section {
    padding: 3rem 0 2rem;
    overflow: hidden;
    background: var(--bg);
}

.marquee-wrapper {
    overflow: hidden;
    padding: 0 0;
    margin-top: 0.5rem;
}

.marquee-track {
    display: flex;
    gap: 12px;
    will-change: transform;
}

.marquee-card {
    flex: 0 0 220px;
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 15px rgba(0,0,0,0.12);
}

.marquee-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f0ec;
    transition: transform 0.4s;
}

.marquee-card:hover img {
    transform: scale(1.08);
}

.marquee-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.6rem 0.4rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   YOUTUBE / VIDEO STYLES
   ═══════════════════════════════════════════════════ */

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

.news-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-card-thumb img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,0,0,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    padding-left: 4px;
    transition: var(--transition);
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.news-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255,0,0,0.95);
}

/* ═══════════════════════════════════════════════════
   GALLERY SLIDER (HOME) - kept for gallery page
   ═══════════════════════════════════════════════════ */

.gallery-slider-section {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--bg) 100%);
    padding: 3rem 0 2rem;
}

.gallery-slider-section .section-header h2 { color: white; }
.gallery-slider-section .section-header p { color: rgba(255,255,255,0.7); }
.gallery-slider-section .accent-line { background: var(--accent); }

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 0 3rem;
}

.slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-card {
    flex: 0 0 calc(33.333% - 11px);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.slider-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.slider-card:hover img {
    transform: scale(1.05);
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 0.8rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--primary-dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* gallery empty state */
.gallery-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.7);
}

.gallery-empty-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gallery-placeholder {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    border: 2px dashed rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* ═══════════════════════════════════════════════════
   GALLERY PAGE
   ═══════════════════════════════════════════════════ */

.upload-section {
    margin-bottom: 2.5rem;
}

.upload-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-light);
    background: rgba(26,94,58,0.03);
}

.upload-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.upload-hint { font-size: 0.75rem; margin-top: 0.3rem; }

.preview-area {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary-light);
}

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

.photo-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-card:hover img {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1rem 0.8rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay { opacity: 1; }

.photo-caption {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

.photo-info {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-caption {
    color: rgba(255,255,255,0.8);
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* ═══════════════════════════════════════════════════
   POST IMAGE
   ═══════════════════════════════════════════════════ */

.post-image-wrap {
    background: #f0f0f0;
    border: 1px solid var(--border);
    border-top: none;
    text-align: center;
    padding: 1rem;
}

.post-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.3s;
}

.post-image:hover { transform: scale(1.02); }

/* Image upload box in write form */
.image-upload-box {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.image-upload-box:hover {
    border-color: var(--primary-light);
}

.img-upload-placeholder {
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    color: var(--text-muted);
}

.img-upload-placeholder p {
    margin-top: 0.3rem;
    font-size: 0.85rem;
}

.img-preview {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    cursor: pointer;
    display: block;
}

/* ═══════════════════════════════════════════════════
   RECRUIT PAGE
   ═══════════════════════════════════════════════════ */

.recruit-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #3a9d6e 100%);
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.recruit-hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.recruit-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.recruit-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 4px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 5px 20px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.recruit-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.recruit-subtitle {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.recruit-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem 0;
        z-index: 999;
    }
    .nav-links.show { display: flex; }
    .nav-links a { padding: 12px 24px; }
    .nav-share-btn .share-text { display: none; }
    .nav-share-btn { padding: 7px 10px; }

    .hero-slider { height: 55vh; min-height: 300px; }
    .hero-slide-content h2 { font-size: 1.4rem; }
    .hero-slide-content { bottom: 80px; }
    .hero-info-bar { flex-wrap: wrap; gap: 0.5rem; padding: 0.6rem 1rem; }
    .hero-stats { gap: 1rem; }
    .hero-actions { display: none; }
    .marquee-card { flex: 0 0 160px; height: 210px; }
    .hero h1 { font-size: 2rem; }
    .hero-badges { gap: 1.5rem; }
    .quick-links { grid-template-columns: 1fr 1fr; }
    .home-grid { grid-template-columns: 1fr; }
    .rules-toc ol { grid-template-columns: 1fr; }
    .rule-section { padding: 1.5rem; }
    .about-grid { grid-template-columns: 1fr; }

    .slider-card { flex: 0 0 calc(50% - 8px); }
    .slider-wrapper { padding: 0 2.5rem; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .gallery-placeholder { width: 80px; height: 60px; font-size: 1.5rem; }

    .post-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        padding: 1rem;
    }
    .post-row .pr-id { display: none; }
    .post-row .pr-date { text-align: left; }
}

@media (max-width: 480px) {
    .quick-links { grid-template-columns: 1fr 1fr; }
    .hero { padding: 3rem 1.5rem; }
    .slider-card { flex: 0 0 100%; }
    .container { padding: 1.5rem; }
    .form-container { padding: 1.5rem; }
    .comment-form-row { flex-direction: column; }
    .comment-form-row input { flex: 1; }
}
