@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --navy-dark: #07345f;
    --navy-mid: #054870;
    --green-dark: #0b4a34;
    --green-mid: #0e6340;
    --green-light: #2b8a58;
    --green-accent: #7ec8a8;
    --bg-warm: #f6f7f2;
    --text-dark: #1d2731;
    --text-body: #374151;
    --text-muted: #6b7280;
    --border-color: #e2e6ea;
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= TOP UTILITY BAR ================= */
.top-utility {
    background: #f4f6f8;
    border-bottom: 1px solid #e6eaee;
    font-size: 12.5px;
    color: #55606e;
}
.top-utility .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
    gap: 8px;
    flex-wrap: wrap;
}
.top-utility-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-utility-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.top-utility-right a {
    color: #44505e;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s;
}
.top-utility-right a:hover {
    color: var(--green-mid);
}
.util-admin-link {
    color: #0b4a34 !important;
    font-weight: 700 !important;
}
.badge-admin {
    background: var(--green-dark);
    color: #fff !important;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-member {
    background: #e0ece6;
    color: var(--green-dark);
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ================= MAIN HEADER ================= */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeef2;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.main-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand-logo img {
    height: 50px;
    width: auto;
    display: block;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--navy-dark);
    white-space: nowrap;
}
.brand-title span {
    color: #095b3c;
}
.brand-sub {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.35px;
    color: #214d72;
    margin-top: 2px;
    white-space: nowrap;
}

.gnb-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.gnb-nav a {
    font-size: 16.5px;
    font-weight: 700;
    color: #1f2937;
    padding: 8px 2px;
    position: relative;
    white-space: nowrap;
    transition: color 0.18s;
}
.gnb-nav a:hover,
.gnb-nav a.active {
    color: var(--green-mid);
}
.gnb-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    height: 3px;
    background: var(--green-mid);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.btn-search-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green-dark);
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}
.btn-search-circle:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
}
.btn-hamburger {
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.btn-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    border-radius: 2px;
}

/* Mobile Horizontal GNB Scroll Bar (Hidden on PC >= 1024px) */
.mobile-gnb-scroll {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #f8faf9;
    border-top: 1px solid #eef2f0;
    padding: 0 12px;
    white-space: nowrap;
    scrollbar-width: none;
}
.mobile-gnb-scroll::-webkit-scrollbar {
    display: none;
}
.mobile-gnb-scroll a {
    display: inline-block;
    padding: 10px 11px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    position: relative;
}
.mobile-gnb-scroll a.active {
    color: var(--green-mid);
}
.mobile-gnb-scroll a.active::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 2.5px;
    background: var(--green-mid);
}

/* ================= HERO SECTION ================= */
.hero-visual {
    width: 100%;
    background: linear-gradient(180deg, #bbe0fb 0%, #e7f3fc 52%, #74a928 85%, #659c1c 100%);
    overflow: hidden;
    position: relative;
}
.hero-banner-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}
.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================= 6-ICON QUICK BAR ================= */
.quick-bar-section {
    position: relative;
    z-index: 15;
    margin-top: -52px;
    margin-bottom: 24px;
}
.quick-bar-box {
    background: #f5f6f0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(11, 45, 32, 0.08);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 18px 0;
    border: 1px solid #e6e8df;
}
.quick-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-right: 1px solid #dcdfd6;
    transition: transform 0.18s, background-color 0.18s;
    text-align: center;
}
.quick-bar-item:last-child {
    border-right: none;
}
.quick-bar-item:hover {
    transform: translateY(-3px);
}
.quick-bar-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.quick-bar-title {
    font-size: 16px;
    font-weight: 800;
    color: #1c2833;
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.quick-bar-eng {
    font-size: 10.5px;
    font-weight: 600;
    color: #828a84;
    letter-spacing: 0.4px;
    margin-top: 2px;
    white-space: nowrap;
}

/* ================= MIDDLE 3-COLUMN SECTION ================= */
.mid-section {
    margin-bottom: 26px;
}
.mid-grid {
    display: grid;
    grid-template-columns: 0.98fr 1.38fr 0.80fr;
    gap: 18px;
    align-items: stretch;
}

/* Left Card: Notice */
.card-notice {
    background: linear-gradient(165deg, #0e523a 0%, #093b29 100%);
    border-radius: 10px;
    padding: 16px 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(9, 59, 41, 0.14);
    min-width: 0;
}
.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    margin-bottom: 9px;
}
.widget-header h3 {
    font-size: 18.5px;
    font-weight: 800;
    letter-spacing: -0.4px;
}
.widget-plus {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.2s;
}
.widget-plus:hover {
    transform: rotate(90deg);
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    justify-content: space-between;
    min-width: 0;
}
.notice-list li {
    min-width: 0;
}
.notice-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.95);
    padding: 1px 0;
    min-width: 0;
    transition: color 0.15s, transform 0.15s;
}
.notice-list li a:hover {
    color: #a7f3d0;
    transform: translateX(2px);
}
.notice-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    min-width: 0;
    flex: 1;
}
.notice-date {
    font-size: 12px;
    color: #7cc5a6;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Center Card: Tournament Banner (절대 좌우가 잘리지 않도록 반응형 비율 유지) */
.card-tournament {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #e7f5fb 0%, #f4faf6 60%, #6ba329 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.card-tournament-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}
.card-tournament-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    transition: transform 0.25s ease;
}
.card-tournament-link:hover .card-tournament-img {
    transform: scale(1.015);
}

/* Right Card: Course Guide */
.card-course {
    background: linear-gradient(165deg, #064c75 0%, #033655 100%);
    border-radius: 10px;
    padding: 16px 18px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(4, 58, 91, 0.15);
    min-width: 0;
}
.course-thumb-wrap {
    border-radius: 6px;
    overflow: hidden;
    margin: 2px 0 9px;
    aspect-ratio: 16 / 6.1;
    background: #042d47;
    display: block;
}
.course-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}
.card-course:hover .course-thumb-wrap img {
    transform: scale(1.04);
}
.course-desc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}
.course-desc-link .arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

/* ================= BOTTOM 2-COLUMN SECTION ================= */
.bottom-section {
    margin-bottom: 48px;
}
.bottom-grid {
    display: grid;
    grid-template-columns: 2.18fr 1.02fr;
    gap: 22px;
    align-items: start;
}
.bottom-grid > div {
    min-width: 0;
}

.section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.section-title-bar .left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title-bar h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0d2e4c;
    letter-spacing: -0.4px;
}
.section-plus {
    font-size: 20px;
    color: #64748b;
    font-weight: 400;
    line-height: 1;
    transition: color 0.15s;
}
.section-plus:hover {
    color: var(--green-mid);
}

/* Photo Gallery 5 items */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.gallery-strip-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.gallery-strip-thumb {
    border-radius: 7px;
    overflow: hidden;
    aspect-ratio: 16 / 9.2;
    background: #eef2f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.gallery-strip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}
.gallery-strip-item:hover .gallery-strip-thumb img {
    transform: scale(1.06);
}
.gallery-strip-caption {
    font-size: 13px;
    font-weight: 600;
    color: #263238;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Shortcuts 2x2 Grid */
.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.shortcut-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    min-width: 0;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.shortcut-card:hover {
    border-color: var(--green-mid);
    box-shadow: 0 4px 12px rgba(14, 99, 64, 0.1);
    transform: translateY(-2px);
}
.shortcut-card-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.shortcut-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.shortcut-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shortcut-arrow {
    font-size: 13px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-left: 4px;
}

/* ================= SUB-PAGE / BOARD LAYOUT ================= */
.sub-hero {
    background: linear-gradient(90deg, rgba(7, 52, 95, 0.84) 0%, rgba(11, 74, 52, 0.78) 100%), url('/assets/images/sub_banner.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 40px 0;
}
.sub-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sub-breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.sub-hero h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.25;
}
.sub-hero p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.9);
}

/* Sub-page Tabs for all 12 boards */
.board-tabs-bar {
    background: #f8fafb;
    border-bottom: 1px solid #e2e8f0;
}
.board-tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 0;
}
.board-tabs-list a {
    padding: 8px 13px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.15s;
}
.board-tabs-list a:hover {
    background: #e2ece7;
    color: var(--green-dark);
}
.board-tabs-list a.active {
    background: var(--green-dark);
    color: #ffffff;
}

.board-layout {
    display: grid;
    grid-template-columns: 235px 1fr;
    gap: 30px;
    padding: 36px 20px 64px;
}

/* Left Sidebar Menu */
.side-nav-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    align-self: start;
}
.side-nav-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--green-dark));
    color: #fff;
    padding: 20px 18px;
}
.side-nav-header h3 {
    font-size: 18px;
    font-weight: 800;
}
.side-nav-header span {
    font-size: 11px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}
.side-nav-list li {
    border-bottom: 1px solid #f1f5f9;
}
.side-nav-list li:last-child {
    border-bottom: none;
}
.side-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    transition: all 0.15s;
}
.side-nav-list a:hover {
    background: #f4f9f6;
    color: var(--green-mid);
}
.side-nav-list a.active {
    background: #eef7f2;
    color: var(--green-dark);
    font-weight: 800;
    border-left: 4px solid var(--green-mid);
}

/* Board Content Area */
.board-main {
    min-width: 0;
}
.board-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #1e293b;
}
.board-count {
    font-size: 14px;
    color: #475569;
}
.board-count strong {
    color: var(--green-mid);
    font-weight: 800;
}

.board-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
}
.board-search-form input {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13.5px;
    width: 220px;
}
.board-search-form button {
    height: 38px;
    padding: 0 16px;
    background: var(--navy-dark);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Standard Board Table */
.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.board-table th {
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
    padding: 13px 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    white-space: nowrap;
}
.board-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #334155;
    text-align: center;
}
.board-table tr:hover td {
    background: #f9fbfa;
}
.board-table td.td-title {
    text-align: left;
}
.board-table td.td-title a {
    font-weight: 600;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.4;
}
.board-table td.td-title a:hover {
    color: var(--green-mid);
    text-decoration: underline;
}
.mobile-row-meta {
    display: none;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}
.badge-pin {
    background: var(--green-dark);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
}
.badge-file {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Gallery / Card Board Grid */
.board-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.board-photo-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.board-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}
.board-photo-thumb {
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}
.board-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.board-photo-card:hover .board-photo-thumb img {
    transform: scale(1.05);
}
.board-photo-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.board-photo-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
}
.board-photo-summary {
    font-size: 13px;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.board-photo-meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

/* Post View Detail */
.post-view-card {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 24px;
}
.post-view-header {
    background: #f8fafc;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}
.post-view-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.35;
}
.post-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
    color: #64748b;
}
.post-extra-box {
    margin: 18px 24px 0;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.post-extra-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.post-extra-badge {
    background: var(--green-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    flex-shrink: 0;
}
.post-view-content {
    padding: 28px 24px;
    font-size: 15.5px;
    line-height: 1.8;
    color: #1e293b;
    min-height: 220px;
    white-space: pre-line;
}
.post-view-image {
    margin-bottom: 20px;
    text-align: center;
}
.post-view-image img {
    max-width: 100%;
    max-height: 520px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.post-attachment-bar {
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13.5px;
}

/* Buttons & Admin Actions */
.board-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.15s;
}
.btn-primary {
    background: var(--green-dark);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--green-mid);
}
.btn-navy {
    background: var(--navy-dark);
    color: #ffffff;
}
.btn-navy:hover {
    background: var(--navy-mid);
}
.btn-outline {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}
.btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}
.btn-danger {
    background: #dc2626;
    color: #ffffff;
}
.btn-danger:hover {
    background: #b91c1c;
}

.admin-perm-notice {
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Write / Edit Form */
.write-form-card {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 28px;
    background: #fff;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14.5px;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(14, 99, 64, 0.12);
}
textarea.form-control {
    min-height: 260px;
    resize: vertical;
    line-height: 1.65;
}
.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Auth Card */
.auth-wrap {
    max-width: 500px;
    margin: 48px auto 72px;
    padding: 32px;
    border: 1px solid #dce3ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.auth-wrap h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 6px;
    text-align: center;
}
.auth-wrap .auth-sub {
    font-size: 13.5px;
    color: #64748b;
    text-align: center;
    margin-bottom: 24px;
}
.demo-account-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    color: #14532d;
    margin-bottom: 20px;
}
.demo-account-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13.5px;
}

/* Sitemap Drawer / Modal & Search Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-backdrop.open {
    display: flex;
}
.modal-card {
    background: #fff;
    border-radius: 12px;
    max-width: 820px;
    width: 100%;
    padding: 26px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--navy-dark);
    margin-bottom: 20px;
}
.modal-header h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy-dark);
}
.modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #64748b;
}
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.sitemap-item {
    padding: 13px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.15s;
}
.sitemap-item:hover {
    border-color: var(--green-mid);
    background: #f4fbf7;
}
.sitemap-item strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 4px;
}
.sitemap-item span {
    font-size: 12px;
    color: #64748b;
}

/* Footer */
.main-footer {
    background: #1a242f;
    color: #94a3b8;
    padding: 36px 0;
    font-size: 13.5px;
    border-top: 1px solid #2d3b4a;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}
.footer-links a {
    color: #e2e8f0;
    font-weight: 600;
}
.footer-links a:hover {
    color: #a7f3d0;
}

/* ==========================================================================
   PC 4종 해상도 대응 (2560px QHD / 1920px FHD / 1440px·1366px 노트북 / 1024px·1280px 소형PC)
   ========================================================================== */

/* [PC-1] 2560x1440 QHD 와이드 모니터 (min-width: 1921px) */
@media (min-width: 1921px) {
    .container {
        max-width: 1260px;
    }
    .hero-banner-wrap {
        max-width: 100%;
    }
    .quick-bar-section {
        margin-top: -60px;
    }
}

/* [PC-2] 1920x1080 FHD 데스크톱 (1441px ~ 1920px) : 기본 스타일 최적화 유지 */

/* [PC-3] 1440x900 / 1366x768 표준 노트북 (1200px ~ 1440px) */
@media (min-width: 1200px) and (max-width: 1440px) {
    .container {
        max-width: 1160px;
    }
    .gnb-nav {
        gap: 24px;
    }
    .quick-bar-section {
        margin-top: -46px;
    }
}

/* [PC-4] 1024x768 / 1280x800 소형 노트북·가로 태블릿PC (1024px ~ 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        max-width: 100%;
        padding: 0 18px;
    }
    .brand-logo img {
        height: 42px;
    }
    .brand-title {
        font-size: 20px;
    }
    .brand-sub {
        font-size: 8.5px;
    }
    .gnb-nav {
        gap: 16px;
    }
    .gnb-nav a {
        font-size: 14.5px;
    }
    .quick-bar-section {
        margin-top: -38px;
    }
    .quick-bar-box {
        padding: 14px 0;
    }
    .quick-bar-title {
        font-size: 14.5px;
    }
    .mid-grid {
        grid-template-columns: 1fr 1.26fr 0.84fr;
        gap: 14px;
    }
    .card-notice, .card-course {
        padding: 16px 16px;
    }
    .widget-header h3 {
        font-size: 18px;
    }
    .notice-list li a {
        font-size: 13px;
    }
    .course-desc-link {
        font-size: 12.5px;
    }
    .bottom-grid {
        grid-template-columns: 2.15fr 1fr;
        gap: 16px;
    }
    .gallery-strip {
        gap: 9px;
    }
    .gallery-strip-caption {
        font-size: 12px;
    }
    .shortcut-card {
        padding: 12px 9px;
    }
    .shortcut-icon {
        width: 22px;
        height: 22px;
    }
    .shortcut-label {
        font-size: 12px;
    }
    .board-layout {
        grid-template-columns: 200px 1fr;
        gap: 22px;
    }
}

/* ==========================================================================
   모바일·태블릿 4종 해상도 대응 (768px / 414px·430px / 375px·390px / 360px·320px)
   ========================================================================== */

/* [공통 태블릿·모바일 전환] 1023px 이하 */
@media (max-width: 1023px) {
    .gnb-nav {
        display: none;
    }
    .mobile-gnb-scroll {
        display: block;
    }
    .util-board-link {
        display: none;
    }
    .card-tournament-img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .board-layout {
        grid-template-columns: 1fr;
        padding: 24px 16px 48px;
    }
    .side-nav-card {
        display: none;
    }
    .board-tabs-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 0;
    }
    .board-tabs-list::-webkit-scrollbar {
        display: none;
    }
}

/* [모바일-1] 768x1024 태블릿 세로 / 폴더블 펼침 (600px ~ 1023px) */
@media (min-width: 600px) and (max-width: 1023px) {
    .container {
        padding: 0 16px;
    }
    .main-header .header-inner {
        height: 66px;
    }
    .brand-logo img {
        height: 42px;
    }
    .brand-title {
        font-size: 21px;
    }
    .quick-bar-section {
        margin-top: -22px;
        margin-bottom: 20px;
    }
    .quick-bar-box {
        grid-template-columns: repeat(3, 1fr);
        padding: 8px 0;
    }
    .quick-bar-item {
        padding: 12px 8px;
        border-bottom: 1px solid #dcdfd6;
    }
    .quick-bar-item:nth-child(3n) {
        border-right: none;
    }
    .quick-bar-item:nth-child(n+4) {
        border-bottom: none;
    }
    .mid-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .card-tournament {
        grid-column: 1 / -1;
        order: -1;
    }
    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .gallery-strip {
        grid-template-columns: repeat(3, 1fr);
    }
    .shortcut-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .board-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* [모바일-2, 3, 4 공통 스마트폰 베이스] 599px 이하 (414px / 375px / 360px) */
@media (max-width: 599px) {
    .container {
        padding: 0 14px;
    }
    .top-utility {
        font-size: 11.5px;
    }
    .top-utility-left span {
        display: none;
    }
    .top-utility .container {
        justify-content: flex-end;
        min-height: 30px;
    }
    .user-id-sub {
        display: none;
    }
    .main-header .header-inner {
        height: 60px;
    }
    .brand-logo {
        gap: 8px;
    }
    .brand-logo img {
        height: 36px;
    }
    .brand-title {
        font-size: 18.5px;
    }
    .brand-sub {
        font-size: 8px;
        letter-spacing: 0.1px;
    }
    .btn-search-circle,
    .btn-hamburger {
        width: 34px;
        height: 34px;
    }

    /* 히어로 배너: 모바일에서 텍스트가 절대 잘리지 않도록 원본 비율 전체 표시 */
    .quick-bar-section {
        margin-top: 10px;
        margin-bottom: 18px;
    }
    .quick-bar-box {
        grid-template-columns: repeat(3, 1fr);
        padding: 4px 0;
        border-radius: 10px;
    }
    .quick-bar-item {
        padding: 12px 4px;
        border-bottom: 1px solid #dcdfd6;
    }
    .quick-bar-item:nth-child(3n) {
        border-right: none;
    }
    .quick-bar-item:nth-child(n+4) {
        border-bottom: none;
    }
    .quick-bar-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 4px;
    }
    .quick-bar-icon svg {
        width: 32px;
        height: 32px;
    }
    .quick-bar-title {
        font-size: 13.5px;
    }
    .quick-bar-eng {
        font-size: 9px;
    }

    /* 중단 3열 -> 1열 스택 */
    .mid-section {
        margin-bottom: 22px;
    }
    .mid-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .card-notice,
    .card-course {
        padding: 16px 16px;
    }
    .widget-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .widget-header h3 {
        font-size: 17.5px;
    }
    .notice-list {
        gap: 8px;
    }
    .notice-list li a {
        font-size: 13.5px;
    }

    /* 하단 갤러리 & 바로가기 */
    .bottom-section {
        margin-bottom: 36px;
    }
    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .section-title-bar h3 {
        font-size: 17.5px;
    }
    .gallery-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-strip-item:nth-child(5) {
        grid-column: 1 / -1;
    }
    .gallery-strip-item:nth-child(5) .gallery-strip-thumb {
        aspect-ratio: 16 / 8;
    }
    .shortcut-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .shortcut-card {
        padding: 12px 10px;
    }
    .shortcut-icon {
        width: 22px;
        height: 22px;
    }
    .shortcut-label {
        font-size: 12.5px;
    }

    /* 서브페이지 / 게시판 모바일 최적화 */
    .sub-hero {
        padding: 26px 0;
    }
    .sub-hero h1 {
        font-size: 21px;
    }
    .sub-hero p {
        font-size: 13px;
    }
    .board-top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .board-search-form {
        width: 100%;
    }
    .board-search-form input {
        flex: 1;
        width: auto;
        min-width: 0;
    }
    .board-photo-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* 모바일 게시판 테이블: 번호/작성자/등록일/조회 열 숨기고 제목 하단 메타로 깔끔히 표시 */
    .board-table th.col-num,
    .board-table td.col-num,
    .board-table th.col-author,
    .board-table td.col-author,
    .board-table th.col-date,
    .board-table td.col-date,
    .board-table th.col-views,
    .board-table td.col-views {
        display: none;
    }
    .mobile-row-meta {
        display: block;
    }

    .post-view-header {
        padding: 16px;
    }
    .post-view-title {
        font-size: 18px;
    }
    .post-extra-box {
        margin: 14px 16px 0;
        padding: 12px 14px;
        grid-template-columns: 1fr;
    }
    .post-view-content {
        padding: 20px 16px;
        font-size: 14.5px;
    }
    .write-form-card {
        padding: 16px;
    }
    .form-row-3 {
        grid-template-columns: 1fr !important;
    }
    .auth-wrap {
        margin: 24px auto 48px;
        padding: 20px 16px;
    }
    .demo-account-box button {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 2px;
    }
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .modal-card {
        padding: 18px;
    }
}

/* [모바일-3] 375x812 표준 스마트폰 (361px ~ 411px) 미세 조정 */
@media (min-width: 361px) and (max-width: 411px) {
    .brand-title {
        font-size: 17.5px;
    }
    .shortcut-label {
        font-size: 12px;
    }
}

/* [모바일-4] 360x740 및 320px 소형 스마트폰 (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    .brand-logo img {
        height: 32px;
    }
    .brand-title {
        font-size: 16.5px;
    }
    .brand-sub {
        display: none;
    }
    .quick-bar-title {
        font-size: 12.5px;
    }
    .quick-bar-eng {
        font-size: 8.5px;
    }
    .shortcut-card {
        padding: 10px 8px;
    }
    .shortcut-icon {
        width: 20px;
        height: 20px;
    }
    .shortcut-label {
        font-size: 11.5px;
    }
}
