/* ===== 공통 세팅 ===== */
:root{
    /* 원하는 기본 폰트 스택을 여기에! */
    --font-ui: "Pretendard Variable","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    --text-1:#111827; --text-2:#4b5563; --bg-1:#ffffff;
}

html{
    font-size:15px !important;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    text-rendering:optimizeLegibility;
    text-rendering:optimizeLegibility;
}

body{
    font-size:15px !important;
    font-family:var(--font-ui) !important;
    color:var(--text-1) !important;
    background:var(--bg-1) !important;
    letter-spacing:.1px;
    line-height:1.8;
}

/* 폼/버튼/네비/테이블도 상속 */
.btn, input, textarea, select, table, nav, .navbar, .dropdown-menu{
    font-family:inherit !important;
}

/* 헤딩 가독성 & 대비 */
h1,h2,h3,h4,h5,h6{ font-family:inherit; font-weight:700; line-height:1.25; color:#0b0b0c; }
h1{ font-size:clamp(1.75rem, 1.1rem + 2vw, 2.25rem); }
h2{ font-size:clamp(1.5rem, 1.0rem + 1.5vw, 1.9rem); }
h3{ font-size:clamp(1.25rem, 0.9rem + 1vw, 1.6rem); }

/* 본문 */
p, li{ color:var(--text-1); }

/* 링크 대비 & 접근성 */
a{ color:#1f2937; text-decoration:none; }
a:hover{ color:#0f172a; text-decoration:underline; }

/* CKEditor 본문에도 동일 폰트 적용 */
.ck-content{
    font-family:inherit !important;
    color:var(--text-1) !important;
    line-height:1.7;
}

/* (소스 모드 전환 시) 소스 영역 폰트 */
.ck-editor__main .ck-source-editing-area textarea,
.ck-editor__main .ck-source-editing-area .ck-textarea{
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace !important;
    font-size:14px;
    line-height:1.6 !important;
}



/* 일반 기본 폰트 */
.f-de {
    font-size:15px !important;
}

/* 게시판 글제목 */
#bo_v_title {
    font-size: 26px !important;
}

/* 게시판 글내용 */
#bo_v_con {
    font-size:18px !important;
    line-height:1.7;
}

/* 주석 등 */
.f-xs {
    font-size:12px !important;
}

/* 정보(조회, 날짜) 등 */
.f-sm {
    font-size:14px !important;
}

/* 입력폼 */
.input-group-text {
    font-size:14px !important;
}

/* 주메뉴, 텍스트 로고 등 */
.f-md {
    font-size:18px !important;
    line-height:1.5 !important;
    font-family: 'NEXON Lv2 Gothic', sans-serif !important;
    font-weight: 400 !important;
    padding-top:0.75rem;
    padding-bottom:0.75rem;
}

/* 모바일 헤더(텍스트 로고) 등 */
.f-mo {
    font-size:18px !important;
    line-height:1.5 !important;
    font-family: 'NEXON Lv2 Gothic', sans-serif !important;
    font-weight: 400 !important;
    padding-top:0.75rem;
    padding-bottom:0.75rem;
}

/* 일반 위젯 타이틀 등 */
.f-lg {
    font-size:16px !important;
    line-height:1.7 !important;
    font-family: 'NEXON Lv2 Gothic', sans-serif !important;
    margin-bottom:0.25rem !important;
}

/* 특수 위젯 타이틀 등 */
.f-xl {
    font-size:20px !important;
    line-height:1.5 !important;
    font-family: 'NEXON Lv2 Gothic', sans-serif !important;
    margin-bottom:0.25rem !important;
}

/* 각종 타이틀 */
h1, h2, h3, h4, h5, h6, .en {
    font-family: 'NEXON Lv2 Gothic', sans-serif !important;
}

/* 분류탭 */
.sly-tab {
    font-size:14px !important;
}

/* 목록 헤드 */
.list-head,
.na-table-head > div {
    font-size:14px !important;
}

/* 위젯 목록 라인 */
.na-list li {
    line-height:1.9;
}

/* 위젯 목록 랭크 아이콘 */
.na-list li .rank-icon {
    position:relative;
    top:0;
}

.is-line .na-list li {
    line-height:1.9;
    padding-bottom:0.25rem;
    margin-bottom:0.25rem;
    border-bottom:1px solid #efefef;
}

/* 리스트형 스킨 목록 간격 */
.na-flex .py-2 {
    padding-top:0.60rem !important;
    padding-bottom:0.60rem !important;
}

@media all and (min-width:768px) {
    .na-table .py-md-2 {
        padding-top:0.60rem !important;
        padding-bottom:0.60rem !important;
    }
}

@media all and (max-width:767px) {
    .na-table .py-2 {
        padding-top:0.60rem !important;
        padding-bottom:0.60rem !important;
    }
}

/* 체크박스, 라디오버튼 재지정 */
.custom-checkbox .custom-control-label::before,
.custom-checkbox .custom-control-label::after,
.custom-radio .custom-control-label::before,
.custom-radio .custom-control-label::after {
    top:5px !important;
}

/* 스위치 버튼 재지정 */
.custom-switch .custom-control-label::before,
.custom-switch .custom-control-label::after {
    margin-top:2px !important;
}


/* 메뉴(검은 배경 + 가독성 높은 글씨) */
#nt_menu, #nt_menu .bg-primary{ background:#0b0b0c !important; }
#nt_menu a, #nt_menu .me-a a{ color:#f5f7fa !important; }
#nt_menu a:hover, #nt_menu .me-a a:hover{ color:#d4af37 !important; }

/* 모바일 메뉴도 동일 톤 */
.m-menu{ background:#0b0b0c !important; }
.m-menu a{ color:#f5f7fa !important; }
.m-menu a:hover{ color:#d4af37 !important; }


/* 그리드 간격 */
.na-row {
    margin-left:-13px !important;
    margin-right:-13px !important;
}

.na-col {
    padding-left:13px !important;
    padding-right:13px !important;
}

@media all and (min-width:768px) {
    #nt_body .nt-container.pt-sm-4,
    #nt_body .nt-container.py-sm-4 {
        padding-top:26px !important;
    }
}
#nt_menu .me-sw { width:150px; }
.lgbar {height:5px;}
:root{
    --nt-bg: #0b0b0c;        /* 메인 블랙 */
    --nt-bg-2: #101113;      /* 서브/드롭다운 */
    --nt-text: #f1f1f1;      /* 본문 텍스트 */
    --nt-muted: #b9b9b9;     /* 서브 텍스트 */
    --nt-accent: #d4af37;    /* 골드 포인트 */
    --nt-border: #1f2225;    /* 경계선 */
}
#nt_menu{
    background: var(--nt-bg) !important;
}
/* 1뎁스 링크(행/스팬/앵커 모두 잡기) */
#nt_menu .me-ul .me-li > a,
#nt_menu .me-a,
#nt_menu .me-a > a{
    color: var(--nt-text) !important;
    text-decoration: none !important;
}

/* 1뎁스 hover/active 포인트 컬러 */
#nt_menu .me-li:hover > .me-a,
#nt_menu .me-li:hover > .me-a > a{
    color: var(--nt-accent) !important;
}

/* 드롭다운 래퍼 & 아이템 */
#nt_menu .sub-1div{
    background: var(--nt-bg-2) !important;
    border: 1px solid var(--nt-border) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
#nt_menu .sub-1da{
    color: var(--nt-muted) !important;
}
#nt_menu .sub-1da:hover{
    color: var(--nt-accent) !important;
}

/* 상단 얇은 바(선택) - 블랙 그라디언트 */
.lgbar{
    background: linear-gradient(90deg, #000, #171717, #000) !important;
}

/* 아이콘/버튼 영역 대비 확보(필요 시) */
#nt_menu .me-icon .me-a,
#nt_menu .me-icon .me-a i{
    color: var(--nt-text) !important;
}
#nt_menu .me-icon .me-a:hover i{
    color: var(--nt-accent) !important;
}

/* 활성/현재 메뉴 표시(테마 포인트) */
#nt_menu .me-ul .me-li.active > .me-a,
#nt_menu .me-ul .me-li.active > .me-a > a{
    color: var(--nt-accent) !important;
}

/* 드롭다운 경계/구분선(테마 톤) */
#nt_menu .sub-1dul li + li{
    border-top: 1px dashed rgba(255,255,255,0.05);
}

/* 모바일 메뉴 배경도 통일하고 싶다면(선택) */
.m-menu{
    background: var(--nt-bg) !important;
    border-color: var(--nt-border) !important;
}
.m-menu .m-list a,
.m-menu .m-nav a{
    color: var(--nt-text) !important;
}
.m-menu .m-nav ul li.active a,
.m-menu .m-nav a:hover{
    color: var(--nt-accent) !important;
}

/* 본문 공통 */
.post-body{
    overflow-wrap: break-word;       /* 긴 단어/URL 줄바꿈 */
    word-break: break-word;
}

/* 이미지: 컨테이너 너비를 넘지 않게 */
.post-body img{
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;          /* 인라인 width 강제 무시 */
    display: block;                  /* 중앙정렬/줄바꿈 깔끔 */
    margin: 0 auto;                  /* 기본은 중앙 정렬 */
}

/* figure 안 이미지도 동일 처리 */
.post-body figure img{
    max-width: 100% !important;
    height: auto !important;
}

/* 에디터가 aspect-ratio를 준 경우도 왜곡 없이 */
.post-body img[style*="aspect-ratio"]{
    height: auto !important;
}

/* 동영상/임베드도 깨지지 않게 */
.post-body video,
.post-body iframe,
.post-body embed {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;                    /* 비율 자동 */
}

/* 테이블이 넓을 때 가로 스크롤 */
.post-body table{
    width: 100% !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}
.post-body table td, .post-body table th{
    word-break: break-word;
}

/* 코드/프리 태그 넘침 방지 */
.post-body pre{
    white-space: pre-wrap;
    overflow-x: auto;
}

/* 이미지가 좌우로 붙어야 할 케이스 대비(선택)
   .align-left / .align-right 클래스를 에디터에서 쓰면 정렬됩니다 */
.post-body img.align-left{ margin-left: 0; margin-right: auto; }
.post-body img.align-right{ margin-left: auto; margin-right: 0; }

/* custom-override.css 맨 아래에 추가 */
.m-menu .m-nav {
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
}
.m-menu .m-nav ul {
    display:flex !important;
    gap:10px;
}
.m-menu .m-nav ul li {
    flex:0 0 auto;
    white-space:nowrap;
}

#header_mo img {max-width:100%;}
/********************************************************
■ Mobile Menu : 모바일 메뉴
********************************************************/
.m-menu { display:none; overflow:visible; background:#fff; position:relative; z-index:20; border-top:1px solid #eee; margin-bottom:30px; box-shadow: 0px 5px 5px -2px rgba(25, 25, 25, 0.15); -webkit-box-shadow: 0px 5px 5px -2px rgba(25, 25, 25, 0.15); -moz-box-shadow: 0px 5px 5px -2px rgba(25, 25, 25, 0.15); }


.m-menu .m-wrap { }
.m-menu .m-table { display:table; width:100%; table-layout:fixed; width:100%; margin:0px; min-width:300px; border-collapse: collapse; }
.m-menu .m-icon,
.m-menu .m-list { display:table-cell; vertical-align:middle; font-size:15px; height:44px; line-height:44px; border:1px solid #eee; border-top:0px; border-bottom:0px; }
.m-menu .m-icon { width:44px; text-align:center; font-size:18px; }
.m-menu .m-icon a { display:block; position:relative; }
.m-menu .m-icon .label { position: absolute; top: 15%; right: 5px; text-align: center; font-size: 9px; font-weight:300; padding: 2px 3px; line-height: 0.9; border-radius: .25em !important;  }
.m-menu .m-nav { overflow: hidden; margin:0px 10px; }
.m-menu .m-nav ul { list-style: none; margin:0px; padding:0px; }
.m-menu .m-nav ul li { display:table-cell; padding: 0px 10px; white-space:nowrap; }
.m-menu .m-nav ul li.active a { color: orangered; font-weight:bold; }

.m-menu .m-sub { background:#fafafa; border-top:1px solid #ddd; font-size:15px; height:44px; line-height:44px; padding:0px 10px; }
.m-menu .m-nav-sub { width:100%; overflow: hidden; margin:0px; }
.m-menu .m-nav-sub ul { list-style: none; margin:0px; padding:0px; }
.m-menu .m-nav-sub ul li { display:table-cell; padding: 0px 10px; white-space:nowrap; }
.m-menu .m-nav-sub ul li.active a { color: orangered; font-weight:bold; }
/* 부트스트랩 md 경계에 딱 맞추기 */
@media (max-width: 767.98px){
    .m-menu { display:block !important; }
}

/* 사이드바 헤더 색상: 메뉴와 동일하게 */
#nt_sidebar_header {
    background-color: #0b0b0c !important;   /* 메뉴 배경색과 동일한 블랙 */
    color: #f5f7fa !important;              /* 기본 글자색 흰색 */
    border-bottom: 1px solid #1f2225;       /* 아래 경계선 살짝 */
}

/* 닫기 버튼 (글자 가독성 개선) */
#nt_sidebar_header .sidebar-close {
    color: #f5f7fa !important;              /* 흰색 글자 */
    background-color: transparent;          /* 배경 투명 */
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

/* hover 시 살짝 반전 */
#nt_sidebar_header .sidebar-close:hover {
    background-color: rgba(255,255,255,0.1);
    color: #d4af37 !important;              /* 골드 포인트 */
}

/* h3 내부 가로 정렬 유지 */
#nt_sidebar_header h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

/* ===== 로그인 / 회원가입 ===== */
.auth-page {
    min-height: calc(100vh - 180px);
    padding: 48px 16px 64px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.auth-container {
    max-width: 960px;
    margin: 0 auto;
}

.auth-container--narrow {
    max-width: 440px;
}

.auth-container--wide {
    max-width: 760px;
}

.auth-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    padding: 36px 32px 28px;
}

.auth-card__header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card__title {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: #0b0b0c;
}

.auth-card__subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 0.95rem;
}

.auth-section {
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.auth-section:last-of-type {
    border-bottom: none;
}

.auth-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid #0b0b0c;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 6px;
}

.auth-required {
    color: #dc2626;
}

.auth-input {
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color .2s, box-shadow .2s;
}

.auth-input:focus {
    border-color: #0b0b0c;
    box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.08);
}

.auth-input--readonly {
    background: #f9fafb;
    color: #6b7280;
}

.auth-input--error {
    border-color: #dc2626 !important;
}

.auth-hint {
    display: block;
    margin-top: 6px;
    color: #9ca3af;
    font-size: 0.82rem;
}

.auth-error {
    color: #dc2626;
    font-size: 0.84rem;
    margin-top: 6px;
}

.auth-alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-btn {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    margin-top: 8px;
}

.auth-btn--primary {
    background: #0b0b0c;
    color: #fff;
}

.auth-btn--primary:hover,
.auth-btn--primary:focus {
    background: #1f2937;
    color: #fff;
}

.auth-card__footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    color: #6b7280;
    font-size: 0.92rem;
}

.auth-card__footer a {
    margin-left: 6px;
    font-weight: 700;
    color: #0b0b0c;
    text-decoration: underline;
}

.auth-terms {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-size: 0.92rem;
    color: #374151;
}

.auth-checkbox input {
    margin-top: 4px;
}

@media (max-width: 767.98px) {
    .auth-card {
        padding: 28px 20px 22px;
    }

    .auth-page {
        padding-top: 28px;
    }
}

/* ===== 마이페이지 ===== */
.mypage-page {
    min-height: calc(100vh - 180px);
    padding: 40px 16px 64px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.mypage-container {
    max-width: 1080px;
    margin: 0 auto;
}

.mypage-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    padding: 28px 28px 24px;
    margin-bottom: 20px;
}

.mypage-card--profile {
    padding: 24px 28px;
}

.mypage-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mypage-profile__main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 240px;
}

.mypage-profile__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b0b0c 0%, #374151 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mypage-profile__name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111827;
}

.mypage-profile__meta {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mypage-profile__id {
    color: #6b7280;
    font-size: 0.92rem;
}

.mypage-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 700;
}

.mypage-profile__stats {
    display: flex;
    gap: 28px;
}

.mypage-stat {
    text-align: center;
}

.mypage-stat strong {
    display: block;
    font-size: 1.4rem;
    color: #0b0b0c;
    line-height: 1.2;
}

.mypage-stat span {
    color: #6b7280;
    font-size: 0.82rem;
}

.mypage-profile__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mypage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

.mypage-btn--outline {
    border: 1px solid #d1d5db;
    color: #111827;
    background: #fff;
}

.mypage-btn--outline:hover {
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
}

.mypage-btn--danger {
    border: 1px solid #fecaca;
    color: #b91c1c;
    background: #fef2f2;
}

.mypage-btn--danger:hover {
    background: #fee2e2;
    color: #991b1b;
    text-decoration: none;
}

.mypage-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.mypage-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111827;
}

.mypage-card__subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.mypage-card__subtitle strong {
    color: #0b0b0c;
}

.mypage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mypage-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.mypage-tab:hover {
    border-color: #d1d5db;
    color: #111827;
    text-decoration: none;
}

.mypage-tab.is-active {
    background: #0b0b0c;
    border-color: #0b0b0c;
    color: #fff;
}

.mypage-table-wrap {
    overflow-x: auto;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.mypage-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.mypage-table thead th {
    background: #f8fafc;
    color: #374151;
    font-weight: 700;
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    text-align: center;
}

.mypage-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
    color: #374151;
}

.mypage-table tbody tr {
    cursor: pointer;
    transition: background .15s;
}

.mypage-table tbody tr:hover {
    background: #f9fafb;
}

.mypage-table tbody tr:last-child td {
    border-bottom: none;
}

.mypage-col-title {
    text-align: left !important;
    min-width: 220px;
}

.mypage-post-title {
    display: block;
    color: #111827;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 360px;
}

.mypage-board-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.mypage-date {
    color: #6b7280;
    font-size: 0.84rem;
    white-space: nowrap;
}

.mypage-empty {
    text-align: center;
    padding: 56px 20px;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
}

.mypage-empty__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #374151;
}

.mypage-empty__text {
    margin: 0;
    color: #9ca3af;
    font-size: 0.92rem;
}

@media (max-width: 767.98px) {
    .mypage-page {
        padding-top: 24px;
    }

    .mypage-card {
        padding: 20px 16px;
    }

    .mypage-profile {
        flex-direction: column;
        align-items: stretch;
    }

    .mypage-profile__stats {
        justify-content: center;
        width: 100%;
    }

    .mypage-profile__actions {
        width: 100%;
    }

    .mypage-btn {
        flex: 1;
    }

    .mypage-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .mypage-tabs {
        width: 100%;
    }

    .mypage-tab {
        flex: 1;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .mypage-post-title {
        max-width: 180px;
    }
}

.mypage-card__page-info {
    color: #9ca3af;
    font-weight: 400;
}

.mypage-pagination {
    margin-top: 24px;
    padding-top: 8px;
}

.mypage-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mypage-pagination .page-item {
    display: inline-flex;
}

.mypage-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    margin: 0;
    color: #374151;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.mypage-pagination .page-item.active .page-link {
    background: #0b0b0c;
    border-color: #0b0b0c;
    color: #fff;
}

.mypage-pagination .page-item.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
}

.mypage-pagination .page-link:hover {
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
}

/* ===== 관리자 페이지 ===== */
body.admin-modern-body,
.admin-modern #wrapper {
    background: #f3f4f6;
}

.admin-modern-hd #hd_top {
    background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.15);
}

.admin-modern-hd #logo {
    background: transparent;
}

.admin-modern #container {
    background: transparent;
    padding-left: 280px;
    padding-right: 24px;
    padding-top: 24px;
}

.admin-modern #container_title {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    line-height: 1.25;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    padding: 0;
    border: none;
    background: transparent;
}

.admin-page-head {
    margin-bottom: 20px;
}

.admin-page-desc {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.admin-panel,
.admin-modern .admin-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    padding: 24px;
    margin-bottom: 20px;
}

.admin-form-section {
    margin-bottom: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-form-section:last-of-type {
    border-bottom: none;
}

.admin-form-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    padding-left: 10px;
    border-left: 3px solid #111827;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.admin-field--full {
    grid-column: 1 / -1;
}

.admin-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 6px;
}

.admin-input,
.admin-select,
.admin-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.admin-textarea {
    min-height: 160px;
    resize: vertical;
}

.admin-hint {
    display: block;
    margin-top: 6px;
    color: #9ca3af;
    font-size: 0.82rem;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}

.admin-btn--primary {
    background: #111827;
    color: #fff;
}

.admin-btn--primary:hover {
    background: #1f2937;
    color: #fff;
}

.admin-btn--inline {
    min-height: 42px;
}

.admin-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.admin-select {
    width: auto;
    min-width: 160px;
    color: #111827;
    background-color: #fff;
}

.admin-board-options-table .admin-select {
    display: block;
    min-width: 5.5rem;
    width: 100%;
    max-width: 7.5rem;
    height: auto;
    min-height: 34px;
    line-height: 1.3;
    padding: 6px 28px 6px 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827 !important;
    background-color: #fff !important;
    -webkit-appearance: menulist;
    appearance: menulist;
}

.admin-board-options-table td:nth-child(3) {
    min-width: 90px;
}

.admin-select--sm {
    min-width: 110px;
}

.admin-input--search {
    flex: 1;
    min-width: 220px;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table thead th {
    background: #f8fafc;
    color: #374151;
    font-weight: 700;
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

.admin-table__title {
    text-align: left !important;
    cursor: pointer;
    font-weight: 600;
    color: #111827;
}

.admin-table__actions span {
    display: inline-block;
    margin: 0 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.84rem;
    cursor: pointer;
}

.admin-table__actions span:first-child {
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-table__actions span:last-child {
    background: #fef2f2;
    color: #b91c1c;
}

.admin-pagination-wrap {
    margin-top: 20px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    justify-content: center;
}

.admin-pagination li {
    display: inline-flex;
}

.admin-pagination a,
.admin-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    color: #374151;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    box-sizing: border-box;
}

.admin-pagination li.is-active span {
    background: #0b0b0c;
    border-color: #0b0b0c;
    color: #fff;
}

.admin-pagination a:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.admin-pagination-info {
    margin: 0;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

.admin-modern #gnb {
    z-index: 1001;
}

.admin-modern #gnb .gnb_oparea {
    width: 220px;
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.08);
    padding: 20px 18px;
}

.admin-modern #gnb .gnb_oparea h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.admin-modern #gnb .gnb_2da.on,
.admin-modern #gnb .gnb_2da:hover {
    color: #111827;
    font-weight: 700;
}

.admin-modern #gnb .gnb_oparea li {
    line-height: 1.45;
    margin-bottom: 0.35rem;
}

.admin-modern #gnb .gnb_2da {
    display: block;
    padding: 0.25rem 0;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.admin-modern #container.container-small {
    padding-left: 74px;
}

/* 접힌 사이드바(gnb_small)에서 활성 메뉴 플라이아웃이 상시 열려 페이지 좌측을 덮어
   클릭을 막던 문제 수정. 접힌 상태에선 hover할 때만 서브패널을 연다. */
.admin-modern #gnb.gnb_small .gnb_li.on .gnb_oparea {
    display: none;
}
.admin-modern #gnb.gnb_small .gnb_li:hover .gnb_oparea {
    display: block;
}

@media (max-width: 991.98px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-select,
    .admin-input--search {
        width: 100%;
        min-width: 0;
    }

    .analytics-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .analytics-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* 트래픽 통계 대시보드 */
.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.analytics-kpi-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.analytics-kpi-card__label {
    font-size: 0.85rem;
    color: #6b7280;
}

.analytics-kpi-card__value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.analytics-kpi-card__delta {
    font-size: 0.8rem;
    color: #2563eb;
}

.analytics-chart-panel {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
}

.analytics-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.analytics-utm-panel .admin-hint {
    margin-bottom: 1rem;
}

.analytics-utm-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analytics-utm-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.analytics-utm-result {
    display: flex;
    gap: 0.5rem;
}

.analytics-utm-result .admin-input {
    flex: 1;
}

.admin-label--checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.admin-btn--ghost {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.admin-btn--ghost:hover {
    background: #f3f4f6;
}

.admin-btn--sm {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.85rem;
}

.admin-flash {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.admin-flash--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.admin-flash--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.admin-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-tag--on {
    background: #ecfdf5;
    color: #047857;
}

.admin-tag--off {
    background: #f3f4f6;
    color: #6b7280;
}

.admin-thumb {
    max-width: 100px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.admin-edit-panel {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.admin-required {
    color: #dc2626;
}

.analytics-gsc-panel {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
}

.analytics-kpi-grid--gsc {
    margin-top: 1rem;
}

.analytics-period-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* 게시글 동영상 썸네일 + 재생 버튼 */
.board-video-block {
    margin-bottom: 1rem;
}

.video-wrap {
    position: relative;
    display: block;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    min-height: 200px;
}

/* 세로(쇼츠) 썸네일이면 전체 폭으로 커지지 않게 폭 제한 + 가운데 (쇼츠 카드처럼) */
.video-wrap.is-portrait {
    max-width: 420px;
}

.video-wrap__thumb {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.video-wrap__link {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease;
}

.video-wrap__link:hover {
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    text-decoration: none;
}

.video-wrap__play-btn {
    width: 72px;
    height: 72px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-wrap__label {
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.admin-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
}

.admin-checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    cursor: pointer;
}

.admin-member-search-field {
    flex: 1;
    min-width: 260px;
}

.admin-autocomplete {
    position: relative;
}

.admin-autocomplete__list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1200;
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.admin-autocomplete__item {
    padding: 8px 14px;
    font-size: 0.92rem;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-autocomplete__item:hover,
.admin-autocomplete__item:focus {
    background: #f3f4f6;
}

.admin-autocomplete__item strong {
    color: #111827;
    font-weight: 700;
}

.admin-board-options-table-wrap {
    overflow-x: auto;
}

.admin-board-options-table th.text-center,
.admin-board-options-table td.text-center {
    text-align: center;
    white-space: nowrap;
}

.admin-input--xs {
    width: 4.5rem;
    min-width: 4.5rem;
    padding: 0.35rem 0.5rem;
    text-align: center;
}

.board-share-panel {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
}

.board-share-panel__title,
.board-related-panel__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.board-share-panel__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.board-share-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    color: #111827;
}

.board-share-sns-copy {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.board-related-panel {
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.board-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.board-related-list li {
    padding: 0.35rem 0;
}

.board-related-list a {
    color: #2563eb;
    text-decoration: none;
}

.board-related-list a:hover {
    text-decoration: underline;
}

.admin-board-skin-panel {
    margin-bottom: 1.25rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 0 0.75rem 1rem;
}

.gallery-notice-list {
    padding: 0 0.75rem;
}

.gallery-notice-item {
    display: block;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.35rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.attendance-page .attendance-page__head .location {
    display: none;
}

.attendance-list__item:hover {
    background: #f8f9fa;
}

.attendance-page .calendar .day.disabled,
.attendance-page .calendar i.day {
    opacity: 0.35;
    cursor: not-allowed;
}

.gallery-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.gallery-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.gallery-card__thumb {
    position: relative;
    padding-bottom: 66%;
    background: #f3f4f6;
}

.gallery-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

.gallery-card__body {
    padding: 0.75rem;
}

.gallery-card__title {
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    color: #111827;
}

.gallery-card__meta {
    font-size: 0.75rem;
    color: #6b7280;
}
