/* New 뱃지 — 세미나·알림마당 신규 게시글 표시 */
.nav-new-badge {
    display: inline-block !important;
    background: #e53935 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    line-height: 1.6 !important;
    letter-spacing: .5px !important;
    box-shadow: 0 2px 6px rgba(229,57,53,.6) !important;
    animation: badge-pulse 1.2s ease-in-out infinite !important;
    text-decoration: none !important;
}
@keyframes badge-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.2); opacity: .75; }
}

/* ===========================
   기본 초기화
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: '맑은 고딕', Malgun Gothic, sans-serif;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   헤더
=========================== */
.header-top-bar {
    background-color: var(--brand-light);
    width: 100%;
}

.header-top-bar-inner {
    max-width: 1430px;
    margin: 0 auto;
    padding: 5px 40px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.header-top-bar-inner a {
    color: rgba(255,255,255,0.85);
    font-size: 11px;
}

.header-top-bar-inner a:hover {
    text-decoration: underline;
}

.header-user-info {
    color: rgba(255,255,255,0.95);
    font-size: 11px;
    font-weight: 600;
}

.header-user-sub {
    color: rgba(255,255,255,0.75);
    font-weight: 400;
}

.header-main-wrap {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(var(--brand-shadow-rgb),0.08);
    width: 100%;
}

.header-main-inner {
    display: flex;
    align-items: center;
    max-width: 1430px;
    margin: 0 auto;
    padding: 12px 40px;
    gap: 60px;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.header-hamburger {
    font-size: 22px;
    color: #555;
    cursor: pointer;
    padding: 10px;
    white-space: nowrap;
}

/* ===========================
   네비게이션
=========================== */
.main-nav {
    flex: 1;
    background-color: transparent;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

.main-nav ul li a {
    display: block;
    padding: 28px 18px;
    color: #222;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.main-nav ul li a:hover {
    color: var(--brand-primary);
}

.nav-item {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: 2px solid var(--brand-primary);
    list-style: none;
    min-width: 180px;
    width: max-content;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    font-weight: normal;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    text-align: center;
}

.dropdown li a:hover {
    background-color: var(--brand-tint-2);
    color: var(--brand-primary);
}

.nav-item:hover .dropdown {
    display: block;
}

/* ===========================
   메인 슬라이더
=========================== */
.main-visual-section {
    position: relative;
    width: 100%;
}

/* 히어로 섹션 (슬라이드 제거, 단일 이미지) */
.hero-wrap {
    position: relative;
    width: 100%;
    height: 540px;
    background: linear-gradient(
        to right,
        rgba(0, 28, 80, 0.55) 0%,
        rgba(0, 28, 80, 0.20) 50%,
        rgba(0, 0, 0, 0.05) 100%
    ), url('../images/slides/Slides_3.jpg'); /* css/ 기준 상대경로 — 배포 베이스(/crf,/nlab)에 무관 */
    background-size: cover;
    background-position: center center;
}

.hero-fixed-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc((100% - 1430px) / 2);
    z-index: 10;
    color: #fff;
}

.hero-fixed-text h2 {
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: -1px;
    text-shadow: 1px 2px 10px rgba(0,0,0,0.4);
}

.hero-fixed-text p {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
}

/* ===========================
   로그인 오버레이
=========================== */
.main-login-overlay {
    position: absolute;
    top: 0;
    right: calc((100% - 1430px) / 2);
    width: 300px;
    height: 100%;
    background-color: rgba(var(--brand-primary-rgb),0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.main-login-overlay h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.login-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 2px;
    font-size: 14px;
    margin-bottom: 8px;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
}

.login-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.8);
}

.login-input::placeholder {
    color: #aac;
    font-size: 13px;
}

.login-find-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 11px;
}

.login-find-links a {
    color: var(--brand-border);
}

.login-find-links a:hover {
    color: #fff;
}

.login-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--brand-light);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    letter-spacing: 3px;
}

.login-submit:hover {
    background-color: var(--brand-accent-bright);
}

.login-welcome {
    text-align: center;
    width: 100%;
}

.login-welcome h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* 유저 카드 */
.login-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: left;
}

.login-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.login-user-info {
    flex: 1;
    min-width: 0;
}

.login-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    line-height: 1.3;
}

.login-nim {
    font-size: 13px;
    font-weight: 400;
    margin-left: 2px;
    opacity: 0.85;
}

.login-dept {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-advisor {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.login-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-btn-main {
    display: block;
    padding: 11px;
    background-color: #fff;
    color: var(--brand-primary);
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    transition: background .15s;
}

.login-btn-main:hover {
    background-color: var(--brand-tint);
}

.login-btn-sub {
    display: block;
    padding: 10px;
    background-color: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    transition: all .15s;
}

.login-btn-sub:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ===========================
   공지사항 + 퀵메뉴 섹션
=========================== */
.main-mid-section {
    display: flex;
    width: 100%;
    padding: 52px calc((100% - 1430px) / 2);
    gap: 24px;
    background-color: var(--brand-pale);
    align-items: stretch;
}

.main-notice-box {
    flex: 1;
    min-width: 0;
    border: 1px solid #c8dff4;
    border-top: 3px solid var(--brand-primary-dark);
    padding: 22px 24px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(var(--brand-shadow-rgb),0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 14px;
    margin-bottom: 8px;
}

.section-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-primary-deep);
    letter-spacing: -0.5px;
}

.more-btn {
    font-size: 13px;
    color: #666;
}

.more-btn:hover {
    color: var(--brand-primary);
}

.more-btn-circle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--brand-primary);
}

.more-btn-circle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.notice-list-main {
    list-style: none;
}

.notice-list-main li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e4eef8;
}

.notice-list-main li:last-child {
    border-bottom: none;
}

.notice-date-box {
    display: flex;
    flex-direction: column;
    min-width: 52px;
    padding: 0 4px;
    text-align: center;
}

.notice-day {
    font-size: 34px;
    font-weight: 900;
    color: var(--brand-primary-dark);
    line-height: 1;
    display: block;
}

.notice-month {
    font-size: 10px;
    color: #7799bb;
    display: block;
    margin-top: 4px;
    text-align: center;
}

.notice-text {
    flex: 1;
}

.notice-title-main {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
    line-height: 1.5;
}

.notice-title-main:hover {
    color: var(--brand-primary);
}

.notice-preview {
    font-size: 12px;
    color: #9aabcc;
    line-height: 1.6;
}

/* ===========================
   퀵메뉴
=========================== */
.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 460px;
    min-width: 460px;
}

.quick-item-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 22px 20px 18px;
    background-color: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    transition: all 0.22s;
    min-height: 130px;
    position: relative;
    overflow: hidden;
}

.quick-item-grid::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--brand-primary);
    border-radius: 12px 0 0 12px;
}

.quick-item-grid:hover {
    background-color: #f0f7ff;
    box-shadow: 0 6px 22px rgba(var(--brand-primary-rgb),0.13);
    transform: translateY(-3px);
    border-color: #a0c4e8;
}

.quick-text {
    font-size: 12px;
    color: #7799bb;
    line-height: 1.5;
    text-align: left;
    align-self: flex-start;
}

.quick-text strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-primary-deep);
    margin-top: 5px;
    letter-spacing: -0.4px;
    white-space: normal;
    word-break: keep-all;
}

.quick-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--brand-pale);
    align-self: flex-end;
    flex-shrink: 0;
}

.quick-icon-wrap svg {
    width: 28px;
    height: 28px;
}

.quick-icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    opacity: 0.7;
    align-self: flex-end;
    flex-shrink: 0;
}

/* ===========================
   연구장비 슬라이더
=========================== */
.section-wrap {
    width: 100%;
    background: #fff;
    padding: 60px 0 70px;
}

.machine-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1430px;
    margin: 0 auto;
}

.machine-slider-viewport {
    flex: 1;
    overflow: hidden;
}

.machine-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.machine-slide-card {
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
}

.machine-slide-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(var(--brand-primary-rgb),0.15);
}

.machine-slide-img {
    width: 100%;
    height: 180px;
    background-color: var(--brand-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.machine-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.machine-slide-icon {
    font-size: 70px;
}

.machine-slide-info {
    padding: 20px 18px;
    text-align: center;
}

.machine-slide-name {
    font-size: 16px;
    font-weight: 900;
    color: var(--brand-primary-deep);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.machine-slide-fullname {
    font-size: 11px;
    color: #9ab;
    line-height: 1.5;
}

.machine-prev,
.machine-next {
    flex-shrink: 0;
    background-color: var(--brand-primary);
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

.machine-prev:hover,
.machine-next:hover {
    background-color: var(--brand-primary-darker);
}

/* ===========================
   서브페이지 공통
=========================== */
.page-wrap {
    max-width: 1430px;
    margin: 0 auto;
    padding: 48px 56px 80px;
}

.page-title {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-primary-darker) 0%, var(--brand-accent-bright) 100%);
    padding: 32px calc((100% - 1430px) / 2 + 56px);
    margin-bottom: 0;
}

.page-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.page-title h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.page-title p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
}

.page-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

.sub-menu {
    min-width: 180px;
}

.sub-menu {
    min-width: 200px;
}

.sub-menu h3 {
    background-color: var(--brand-primary-darker);
    color: #fff;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sub-menu ul {
    list-style: none;
    border: 1px solid #dde6f0;
    border-top: none;
}

.sub-menu ul li a {
    display: block;
    padding: 13px 20px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #eef3f8;
    transition: all 0.15s;
}

.sub-menu ul li a:hover {
    background-color: var(--brand-tint);
    color: var(--brand-primary);
    padding-left: 24px;
}

.sub-menu ul li.active a {
    color: var(--brand-primary);
    font-weight: 700;
    background-color: var(--brand-pale);
    border-left: 3px solid var(--brand-primary);
    padding-left: 17px;
}

.content-body {
    flex: 1;
    min-width: 0;
}

.content-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-primary-deep);
    padding-bottom: 14px;
    border-bottom: 2px solid var(--brand-primary);
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

/* ===========================
   인사말
=========================== */
.greeting-text {
    line-height: 1.8;
}

.greeting-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

.greeting-sign {
    margin-top: 40px;
    font-size: 15px;
    color: #333;
    text-align: right;
}

/* ===========================
   연혁
=========================== */
.history-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}

.history-decade {
    width: 48.5%;
    box-sizing: border-box;
    border: 1px solid #ebebeb;
    border-bottom: 3px solid var(--brand-primary);
    padding: 24px 24px 0 24px;
    margin-bottom: 28px;
    vertical-align: top;
}

.history-decade-title {
    display: block;
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    color: var(--brand-primary);
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 16px;
    margin-bottom: 0;
}

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.history-list > li {
    overflow: hidden;
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.history-year {
    float: left;
    margin: 8px 20px 0 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    min-width: 44px;
}

.history-events {
    float: left;
    width: calc(100% - 64px);
    list-style: none;
    margin: 8px 0;
    padding: 0;
}

.history-events li {
    overflow: hidden;
    line-height: 1.6;
    font-size: 14px;
    color: #555;
    margin-bottom: 2px;
}

.history-month {
    float: left;
    width: 28px;
    font-weight: 500;
    color: #333;
}

.history-events li p {
    float: left;
    width: calc(100% - 28px);
}

/* ===========================
   운영규정
=========================== */
.rule-intro {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 36px;
}

.rule-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rule-item {
    margin-bottom: 24px;
}

.rule-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    position: relative;
    padding-left: 14px;
}

.rule-item h4::before {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    border: 2px solid var(--brand-primary);
}

.rule-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    padding-left: 14px;
}

.rule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 14px;
}

.rule-list li {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

/* ===========================
   구성원소개
=========================== */
.member-intro {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 32px;
}

.member-grid {
    display: flex;
    flex-wrap: wrap;
}

.member-card {
    box-sizing: border-box;
    width: 31.33%;
    margin: 1%;
    border: 1px solid #ddd;
    border-radius: 2em;
    padding: 2em;
    display: inline-block;
    transition: box-shadow .15s;
}

.member-card:hover {
    box-shadow: 0 4px 16px rgba(var(--brand-primary-rgb),.12);
}

.member-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-primary);
    text-align: center;
    padding-bottom: 0.8em;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 0;
}

.member-phone {
    font-size: 14px;
    color: #555;
    text-align: center;
    padding: 0.8em 0;
    font-weight: 500;
}

.member-phone a {
    color: #555;
    text-decoration: none;
}

.member-phone a:hover { color: var(--brand-primary); }

.member-duties {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-duties li {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin-top: 4px;
}

/* ===========================
   찾아오시는 길
=========================== */
.location-info {
    border-top: 1px solid #c6cbd6;
    border-bottom: 1px solid #c6cbd6;
    padding: 16px 0;
    margin: 20px 0 24px;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-item {
    display: flex;
    gap: 0;
    font-size: 14px;
    align-items: baseline;
}

.location-label {
    font-weight: 700;
    color: #262728;
    margin-right: 10px;
    flex-shrink: 0;
}

.location-desc {
    color: #444;
    line-height: 1.8;
}

.map-btns {
    display: flex;
    overflow: hidden;
    margin-top: 16px;
    margin-bottom: 40px;
}

.btn-kakao {
    display: block;
    width: 50%;
    background: #f9e000;
    color: #3C1E1E;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
}

.btn-kakao:hover { opacity: .85; }

.btn-naver {
    display: block;
    width: 50%;
    background: var(--brand-accent);
    color: #fff;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
}

.btn-naver:hover { opacity: .85; }

/* ===========================
   이용안내 단계별
=========================== */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: var(--brand-tint-2);
}

.step-num {
    font-size: 28px;
    font-weight: bold;
    color: var(--brand-primary);
    min-width: 50px;
    text-align: center;
}

.step-info h4 {
    font-size: 16px;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

.step-info p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.step-arrow {
    text-align: center;
    font-size: 20px;
    color: var(--brand-primary);
    padding: 4px 0;
}

/* ===========================
   장비 목록
=========================== */
.machine-search {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.machine-search input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.machine-search button {
    padding: 10px 24px;
    background-color: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.machine-search button:hover {
    background-color: var(--brand-primary-darker);
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.machine-card-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.machine-card-list:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 6px 20px rgba(var(--brand-primary-rgb),0.12);
    transform: translateY(-2px);
}

.machine-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f4f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.machine-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.machine-card-list:hover .machine-card-photo img {
    transform: scale(1.05);
}

.machine-card-photo-fallback {
    font-size: 48px;
    color: #a0b4cc;
}

.machine-card-info {
    flex: 1;
    padding: 14px 16px 16px;
    text-align: center;
}

.machine-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.machine-card-fullname {
    font-size: 12px;
    color: #555;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.machine-card-model {
    font-size: 11px;
    color: #aaa;
}

.machine-card-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 40, 100, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s ease;
    letter-spacing: 0.04em;
}

.machine-card-list:hover .machine-card-btn {
    opacity: 1;
}

/* ===========================
   장비 상세
=========================== */
.machine-view-top {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background-color: var(--brand-tint-2);
    border-radius: 10px;
    margin-bottom: 30px;
}

.machine-view-icon {
    font-size: 60px;
}

.machine-view-title h3 {
    font-size: 22px;
    font-weight: bold;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

.machine-view-title p {
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
}

.machine-view-model {
    font-size: 13px;
    color: #999;
}

.machine-view-section {
    margin-bottom: 30px;
}

.machine-view-section h4 {
    font-size: 16px;
    font-weight: bold;
    color: var(--brand-primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-primary);
    margin-bottom: 16px;
}

.machine-view-section p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th {
    background-color: var(--brand-tint-2);
    color: var(--brand-primary);
    font-size: 14px;
    padding: 12px 16px;
    text-align: left;
    width: 150px;
    border: 1px solid #ddd;
}

.spec-table td {
    font-size: 14px;
    color: #444;
    padding: 12px 16px;
    border: 1px solid #ddd;
}

.machine-view-btns {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-primary {
    padding: 12px 30px;
    background-color: var(--brand-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--brand-primary-darker);
    color: #fff;
}

.btn-secondary {
    padding: 12px 30px;
    background-color: #fff;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--brand-tint-2);
}

/* ===========================
   예약 폼
=========================== */
.reserve-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.reserve-btns {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* ===========================
   게시판
=========================== */
.board-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.board-table thead th {
    background-color: #f8f8f8;
    color: #222;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: 600;
}

.board-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #ebebeb;
    color: #444;
}

.board-table tbody tr:hover {
    background-color: var(--brand-tint-2);
}

.board-table tbody td a {
    color: #333;
}

.board-table tbody td a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.open {
    background-color: #e8f4e8;
    color: #2d8a2d;
}

.status-badge.closed {
    background-color: #f0f0f0;
    color: #999;
}

/* ===========================
   게시글 상세
=========================== */
.view-title {
    padding-bottom: 16px;
    border-bottom: 2px solid var(--brand-primary);
    margin-bottom: 24px;
}

.view-title h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 10px;
}

.view-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.view-content {
    min-height: 200px;
    padding: 24px 0;
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.view-nav-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    margin-bottom: 20px;
}

.view-nav-table th {
    background-color: var(--brand-tint-2);
    color: var(--brand-primary);
    font-size: 14px;
    padding: 12px 16px;
    text-align: center;
    width: 80px;
    border: 1px solid #ddd;
    font-weight: bold;
}

.view-nav-table td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #333;
}

.view-nav-table td a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.view-nav-empty {
    color: #999;
}

.view-btns {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* ===========================
   FAQ
=========================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: var(--brand-tint-2);
    cursor: pointer;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.faq-question:hover {
    background-color: #eef2f8;
}

.faq-q {
    font-size: 16px;
    font-weight: bold;
    color: var(--brand-primary);
    min-width: 24px;
}

.faq-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
}

.faq-answer {
    display: none;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background-color: #fff;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.faq-a {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
    min-width: 24px;
}

/* ===========================
   로그인/회원가입
=========================== */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    width: 100%;
    max-width: 460px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 40px;
    background-color: #fff;
}

.auth-box h3 {
    font-size: 22px;
    color: var(--brand-primary);
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--brand-primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.auth-btn:hover {
    background-color: var(--brand-primary-darker);
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: #999;
}

.auth-links a {
    color: #666;
}

.auth-links a:hover {
    color: var(--brand-primary);
}

.required {
    color: #e74c3c;
}

.form-notice {
    background-color: var(--brand-tint-2);
    border-left: 3px solid var(--brand-primary);
    padding: 12px 16px;
    border-radius: 4px;
}

.form-notice p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* ===========================
   메시지
=========================== */
.error-msg {
    background-color: #fff0f0;
    border: 1px solid #ffcccc;
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.success-msg {
    background-color: #f0fff0;
    border: 1px solid #ccffcc;
    border-left: 4px solid #2d8a2d;
    color: #2d8a2d;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ===========================
   마이페이지
=========================== */
.filter-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-wrap select {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.grade-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.grade-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.grade-label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.grade-desc {
    font-size: 12px;
    line-height: 1.6;
}

.grade-a { background-color: #e8f4e8; color: #2d8a2d; }
.grade-b { background-color: var(--brand-pale); color: var(--brand-primary); }
.grade-c { background-color: #fff8e1; color: #f57c00; }
.grade-d { background-color: #f0f0f0; color: #888; }

.grade-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.grade-a-badge { background-color: #2d8a2d; color: #fff; }
.grade-b-badge { background-color: var(--brand-primary); color: #fff; }
.grade-c-badge { background-color: #f57c00; color: #fff; }
.grade-d-badge { background-color: #888; color: #fff; }

.btn-small {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--brand-primary);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.btn-small:hover {
    background-color: var(--brand-primary-darker);
    color: #fff;
}

.fee-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 10px;
}

.fee-summary-item {
    padding: 24px;
    border-radius: 10px;
    text-align: center;
    background-color: var(--brand-tint-2);
    border: 1px solid #ddd;
}

.fee-summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.fee-summary-amount {
    font-size: 24px;
    font-weight: bold;
}

.fee-summary-amount.unpaid { color: #e74c3c; }
.fee-summary-amount.paid { color: #2d8a2d; }
.fee-summary-amount.total { color: var(--brand-primary); }

/* ===========================
   푸터
=========================== */
footer {
    color: #fff;
    margin-top: 0;
}

/* ── 상단: 운영시간 + 지도 ── */
.footer-upper {
    background: #1a2a45;
    padding: 36px 0;
}
.footer-upper-inner {
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 56px;
    display: flex;
    gap: 40px;
    align-items: stretch;
}
.footer-upper-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}
.footer-info-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-block-title {
    font-size: 15px;
    font-weight: 800;
    color: #a8ccf0;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.footer-info-block p {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    line-height: 1.9;
    margin: 0;
}
.footer-upper-right {
    flex: 0 0 360px;
    display: flex;
    align-items: stretch;
}
.footer-map-wrap {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1c33;
}
.footer-map-wrap .root_daum_roughmap {
    width: 100%;
    height: 100%;
}
.footer-map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #0d1c33;
}
.footer-map-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,15,40,0.85) 0%, transparent 100%);
    padding: 20px 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-map-overlay > span {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.footer-map-btn {
    font-size: 12px;
    color: #fff;
    background: rgba(var(--brand-primary-rgb),0.85);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 4px;
    padding: 5px 12px;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
}
.footer-map-btn:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* ── 하단: 로고 + 링크 ── */
.footer-lower {
    background: #0f1c30;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.07);
}
.footer-lower-inner {
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 56px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.footer-logo-link {
    flex-shrink: 0;
}
.footer-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    display: block;
}
.footer-lower-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 0;
}
.footer-links a {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .15s;
    padding: 0 8px;
}
.footer-links a:first-child {
    padding-left: 0;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-divider {
    color: rgba(255,255,255,.2);
    font-size: 11px;
    line-height: 1;
}
.footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    line-height: 1.4;
}

/* ===========================
   반응형
=========================== */
@media (max-width: 768px) {
    .header-main-inner {
        padding: 0 16px;
        gap: 16px;
    }

    .main-nav > ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li a {
        font-size: 12px;
        padding: 12px 0;
    }

    .hero-wrap {
        height: 300px;
    }

    .hero-fixed-text {
        left: 16px;
    }

    .slide-fixed-text h2 {
        font-size: 22px;
    }

    .slide-fixed-text p {
        font-size: 14px;
    }

    .main-login-overlay {
        width: 200px;
        padding: 20px 16px;
    }

    .main-mid-section {
        flex-direction: column;
        padding: 20px 16px;
    }

    .quick-menu-grid {
        width: 100%;
        min-width: unset;
    }

    .page-wrap {
        padding: 0 16px;
        margin: 20px auto;
    }

    .page-content {
        flex-direction: column;
        gap: 20px;
    }

    .sub-menu {
        min-width: unset;
        width: 100%;
    }

    .grade-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .fee-summary {
        grid-template-columns: 1fr;
    }

    .machine-view-top {
        flex-direction: column;
        text-align: center;
    }

    .machine-view-btns,
    .reserve-btns,
    .view-btns {
        flex-direction: column;
    }

    .footer-upper-inner {
        flex-direction: column;
        padding: 0 16px;
    }
    .footer-upper-right {
        flex: none;
        width: 100%;
    }
    .footer-lower-inner {
        padding: 0 16px;
    }

    .board-table {
        font-size: 12px;
    }

    .board-table thead th,
    .board-table tbody td {
        padding: 8px 6px;
    }

    /* 너비는 JS로 제어 */
}
/* ===========================
   서브페이지 레이아웃 개선
=========================== */

/* 페이지 타이틀 아래 콘텐츠 */
.page-wrap {
    padding-top: 0;
}

.page-content {
    gap: 30px;
}

/* 서브페이지 본문 카드 스타일 */
.content-body {
    background-color: #fff;
    border-radius: 10px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(var(--brand-shadow-rgb),0.06);
    border: 1px solid var(--brand-tint);
}

/* 게시판 페이지 여백 */
.board-table-wrap {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 16px rgba(var(--brand-shadow-rgb),0.06);
    border: 1px solid var(--brand-tint);
}

/* 페이지 타이틀 breadcrumb */
.page-breadcrumb {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.page-breadcrumb a:hover {
    color: #fff;
}

.page-breadcrumb span {
    margin: 0 6px;
}
/* 헤더와 페이지 배너 사이 여백 제거 */
header + main > .page-title {
    margin-top: 0;
}

/* 서브페이지 배경색 */
main {
    background-color: #fff;
    min-height: calc(100vh - 200px);
}

/* 페이지 콘텐츠 영역 배경 */
.page-wrap {
    background-color: transparent;
}

/* 서브메뉴 너비 고정 */
.sub-menu {
    min-width: 200px;
    width: 200px;
}

/* 공지사항 게시판 스타일 개선 */
.board-wrap {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 16px rgba(var(--brand-shadow-rgb),0.06);
    border: 1px solid var(--brand-tint);
}

/* 게시판 검색/버튼 영역 */
.board-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.board-write-btn {
    padding: 10px 24px;
    background-color: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.board-write-btn:hover {
    background-color: var(--brand-primary-darker);
    color: #fff;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.pagination .active {
    background-color: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    font-weight: 700;
}
/* ===========================
   서브페이지 최종 조정
=========================== */

/* 헤더와 타이틀 배너 사이 여백 완전 제거 */
.page-title {
    margin-top: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 32px calc((100vw - 1430px) / 2 + 56px);
    background: linear-gradient(135deg, var(--brand-primary-darker) 0%, var(--brand-accent-bright) 100%);
    margin-bottom: 0;
}

/* 페이지 전체 배경 */
body {
    background-color: #fff;
}

/* 콘텐츠 영역 흰 배경 카드 */
.content-body {
    background-color: #fff;
    border-radius: 10px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(var(--brand-shadow-rgb),0.06);
    border: 1px solid var(--brand-tint);
    flex: 1;
}

/* 게시판 콘텐츠 흰 배경 카드 */
.board-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px 36px;
    box-shadow: 0 2px 16px rgba(var(--brand-shadow-rgb),0.06);
    border: 1px solid var(--brand-tint);
    flex: 1;
}

/* page-wrap 배경 투명 */
.page-wrap {
    background-color: transparent;
}

/* 서브메뉴 상단 여백 */
.page-content {
    padding-top: 36px;
    align-items: flex-start;
}
/* ===========================
   서브페이지 최종 조정
=========================== */

/* body 배경색 */
body {
    background-color: #fff;
}

/* 헤더와 타이틀 배너 사이 여백 제거 */
.page-title {
    width: 100%;
    padding: 30px 0;
    background: linear-gradient(135deg, var(--brand-primary-darker) 0%, var(--brand-accent-bright) 100%);
    margin-bottom: 0;
    margin-top: 0;
}

.page-title-inner {
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 56px;
}

.page-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

/* 콘텐츠 영역 흰 배경 카드 */
.content-body {
    background-color: #fff;
    border-radius: 10px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(var(--brand-shadow-rgb),0.06);
    border: 1px solid var(--brand-tint);
    flex: 1;
    min-width: 0;
}

/* 페이지 콘텐츠 상단 여백 */
.page-content {
    padding-top: 32px;
    padding-bottom: 60px;
    align-items: flex-start;
}

/* page-wrap 배경 투명 */
.page-wrap {
    background-color: transparent;
}
/* =============================================================
   style_improvements.css
   기존 style.css 하단에 붙여넣기 하세요
   - 푸터 개선
   - 모바일 반응형 강화
   - 전반적 UI 다듬기
   ============================================================= */

/* ── 모바일 네비게이션 개선 ─────────────────── */
/* 햄버거 메뉴 동작 */
.mobile-nav-open .main-nav > ul {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,.2);
    padding: 20px 0;
    animation: slideInRight .25s ease;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
.mobile-nav-open .main-nav > ul > li > a {
    padding: 14px 24px;
    border-bottom: 1px solid #eef;
    font-size: 15px;
}
.mobile-nav-open .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    background: var(--brand-tint-2);
    display: block !important;
}
.mobile-nav-open .dropdown li a {
    padding: 10px 36px;
    font-size: 13px;
}
/* 모바일 오버레이 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 9998;
}
.mobile-nav-open .mobile-nav-overlay { display: block; }
/* 닫기 버튼 */
.mobile-nav-close {
    display: none;
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    font-size: 24px; cursor: pointer; color: #555;
}
.mobile-nav-open .mobile-nav-close { display: block; }

/* ── 반응형 개선 (768px 이하) ─────────────────── */
@media (max-width: 768px) {

    /* 헤더 */
    .header-main-inner { padding: 10px 16px; gap: 12px; }
    .logo-img { height: 40px; }

    /* 네비 숨기기 (모바일 햄버거로 대체) */
    .main-nav > ul { display: none; }
    .header-hamburger { display: block; }

    /* 히어로 */
    .hero-wrap { height: 240px; }
    .hero-fixed-text { left: 16px; }
    .hero-fixed-text h2 { font-size: 22px; }
    .hero-fixed-text p  { font-size: 13px; }

    /* 메인 로그인 오버레이 */
    .main-login-overlay {
        position: static;
        width: 100%;
        height: auto;
        padding: 24px 20px;
        backdrop-filter: none;
    }
    .main-visual-section { flex-direction: column; }

    /* 메인 중단 */
    .main-mid-section {
        flex-direction: column;
        padding: 24px 16px;
        gap: 16px;
    }
    .quick-menu-grid { width: 100%; min-width: unset; }

    /* 장비 슬라이더 */
    /* 너비는 JS로 제어 */

    /* 장비 목록 그리드 */
    .machine-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    /* 서브페이지 */
    .page-wrap { padding: 0 0 40px; }
    .page-title { padding: 24px 20px; }
    .page-content {
        flex-direction: column;
        gap: 0;
        padding-top: 0;
    }
    .sub-menu {
        width: 100%;
        min-width: unset;
        border-radius: 0;
    }
    .sub-menu h3 { border-radius: 0; }
    .content-body {
        border-radius: 0;
        padding: 24px 16px;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    /* 게시판 테이블 */
    .board-table { font-size: 12px; }
    .board-table th,
    .board-table td { padding: 8px 6px; }

    /* 예약 폼 */
    .reserve-btns { flex-direction: column; }
    .reserve-btns a,
    .reserve-btns button { width: 100%; text-align: center; }

    /* 장비 상세 */
    .machine-view-top { flex-direction: column; text-align: center; gap: 12px; }
    .machine-view-btns { flex-direction: column; }
    .machine-view-btns a { width: 100%; text-align: center; }

    /* 마이페이지 */
    .fee-summary { grid-template-columns: 1fr 1fr; }
    .grade-info  { grid-template-columns: 1fr 1fr; }

    /* 관리자 */
    .admin-stats { grid-template-columns: 1fr 1fr; }

    /* 푸터 */
    .footer-upper-inner { flex-direction: column; padding: 0 16px; gap: 20px; }
    .footer-upper-right { flex: none; width: 100%; }
    .footer-map-wrap { min-height: 160px; }
    .footer-lower-inner { padding: 0 16px; flex-wrap: wrap; gap: 14px; }
}

/* ── 반응형 개선 (480px 이하) ─────────────────── */
@media (max-width: 480px) {
    .hero-wrap { height: 200px; }
    .hero-fixed-text h2 { font-size: 18px; }

    .main-login-overlay h3 { font-size: 18px; }
    .login-submit { font-size: 14px; }

    .machine-grid { grid-template-columns: 1fr; gap: 12px; }

    /* 너비는 JS로 제어 */

    .fee-summary    { grid-template-columns: 1fr; }
    .grade-info     { grid-template-columns: 1fr; }
    .admin-stats    { grid-template-columns: 1fr 1fr; }

    .page-title h2  { font-size: 18px; }

    .board-table .hide-mobile { display: none; }

    /* 인증 박스 */
    .auth-box { padding: 24px 16px; }
    .auth-box h3 { font-size: 18px; }
}

/* ── 공통 UI 다듬기 ────────────────────────── */

/* 스크롤바 */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--brand-tint-2); }
::-webkit-scrollbar-thumb { background: var(--brand-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

/* 포커스 outline 개선 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* 버튼 전환 효과 */
.btn-primary,
.btn-secondary,
.login-submit,
.auth-btn,
.machine-search button {
    transition: background-color .2s, transform .1s, box-shadow .2s;
}
.btn-primary:hover,
.auth-btn:hover,
.machine-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb),.2);
}
.btn-primary:active,
.auth-btn:active { transform: translateY(0); }

/* 카드 hover 효과 통일 */
.machine-card-list,
.quick-item-grid,
.faq-item {
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

/* 이미지 로딩 전 placeholder */
img { max-width: 100%; height: auto; }
img:not([src]),
img[src=""] {
    visibility: hidden;
}

/* 프린트 스타일 */
@media print {
    header, footer, .sub-menu, .reserve-btns, .machine-view-btns { display: none !important; }
    .content-body { box-shadow: none; border: none; padding: 0; }
    body { background: #fff; }
}

/* =============================================================
   style_improvements.css
   ============================================================= */

/* ── 모바일 네비게이션 ─────────────────────── */
.mobile-nav-open .main-nav > ul {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,.2);
    padding: 20px 0;
    animation: slideInRight .25s ease;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
.mobile-nav-open .main-nav > ul > li > a {
    padding: 14px 24px;
    border-bottom: 1px solid #eef;
    font-size: 15px;
}
.mobile-nav-open .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    background: var(--brand-tint-2);
    display: block !important;
}
.mobile-nav-open .dropdown li a {
    padding: 10px 36px;
    font-size: 13px;
}
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 9998;
}
.mobile-nav-open .mobile-nav-overlay { display: block; }
.mobile-nav-close {
    display: none;
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    font-size: 24px; cursor: pointer; color: #555;
}
.mobile-nav-open .mobile-nav-close { display: block; }

/* ── 반응형 (768px 이하) ───────────────────── */
@media (max-width: 768px) {
    .header-main-inner { padding: 10px 16px; gap: 12px; }
    .logo-img { height: 40px; }
    .main-nav > ul { display: none; }
    .header-hamburger { display: block; }
    .hero-wrap { height: 240px; }
    .hero-fixed-text { left: 16px; }
    .hero-fixed-text h2 { font-size: 22px; }
    .hero-fixed-text p  { font-size: 13px; }
    .main-login-overlay {
        position: static;
        width: 100%;
        height: auto;
        padding: 24px 20px;
        backdrop-filter: none;
    }
    .main-visual-section { flex-direction: column; }
    .main-mid-section {
        flex-direction: column;
        padding: 24px 16px;
        gap: 16px;
    }
    .quick-menu-grid { width: 100%; min-width: unset; }
    .page-wrap { padding: 0 0 40px; }
    .page-title { padding: 24px 20px; }
    .page-content {
        flex-direction: column;
        gap: 0;
        padding-top: 0;
    }
    .sub-menu {
        width: 100%;
        min-width: unset;
        border-radius: 0;
    }
    .sub-menu h3 { border-radius: 0; }
    .content-body {
        border-radius: 0;
        padding: 24px 16px;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }
    .board-table { font-size: 12px; }
    .board-table th,
    .board-table td { padding: 8px 6px; }
    .reserve-btns { flex-direction: column; }
    .reserve-btns a,
    .reserve-btns button { width: 100%; text-align: center; }
    .machine-view-top { flex-direction: column; text-align: center; gap: 12px; }
    .machine-view-btns { flex-direction: column; }
    .machine-view-btns a { width: 100%; text-align: center; }
    .fee-summary { grid-template-columns: 1fr 1fr; }
    .grade-info  { grid-template-columns: 1fr 1fr; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    /* 푸터 */
    .footer-upper-inner { flex-direction: column; padding: 0 16px; gap: 20px; }
    .footer-upper-right { flex: none; width: 100%; }
    .footer-map-wrap { min-height: 160px; }
    .footer-lower-inner { padding: 0 16px; flex-wrap: wrap; gap: 14px; }
}

/* ── 반응형 (480px 이하) ───────────────────── */
@media (max-width: 480px) {
    .hero-wrap { height: 200px; }
    .hero-fixed-text h2 { font-size: 18px; }
    .main-login-overlay h3 { font-size: 18px; }
    /* 너비는 JS로 제어 */
    .fee-summary    { grid-template-columns: 1fr; }
    .grade-info     { grid-template-columns: 1fr; }
    .page-title h2  { font-size: 18px; }
    .auth-box { padding: 24px 16px; }
    .auth-box h3 { font-size: 18px; }
}

/* ── 공통 UI 개선 ──────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--brand-tint-2); }
::-webkit-scrollbar-thumb { background: var(--brand-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.btn-primary,
.btn-secondary,
.login-submit,
.auth-btn,
.machine-search button {
    transition: background-color .2s, transform .1s, box-shadow .2s;
}
.btn-primary:hover,
.auth-btn:hover,
.machine-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb),.2);
}
.btn-primary:active,
.auth-btn:active { transform: translateY(0); }

img { max-width: 100%; height: auto; }

@media print {
    header, footer, .sub-menu, .reserve-btns, .machine-view-btns { display: none !important; }
    .content-body { box-shadow: none; border: none; padding: 0; }
    body { background: #fff; }
}

/* ===========================
   내부 페이지 배너 레이아웃
=========================== */
/* page-banner CSS는 includes/page_banner.php에 내장됨 */

/* 내부 페이지 본문 영역 */
.inner-page-wrap {
    max-width: 1430px;
    margin: 0 auto;
    padding: 56px 56px 100px;
}
/* subcontent(.wd) 안에 있을 때는 좌우 패딩 제거 (wd가 이미 1300px 제한) */
.subcontent .inner-page-wrap {
    max-width: 100%;
    padding-top: 12px;
    padding-left: 0;
    padding-right: 0;
}
.subcontent .titbox { margin-bottom: 1.5rem; }
.inner-content-title {
    display: none;
}

@media (max-width: 768px) {
    .inner-page-wrap { padding: 36px 24px 72px; }
}

/* =============================================================
   전체 사이트 밝은 테마 오버라이드
   ============================================================= */

/* ── 페이지 배경 ─────────────────────────────────── */
body {
    background-color: #fff;
}
main {
    background-color: transparent;
}

/* ── 서브페이지 배경 카드 ────────────────────────── */
.content-body,
.board-content,
.board-table-wrap,
.board-wrap {
    background: #fff;
    border: 1px solid #dce8f8;
    box-shadow: 0 2px 18px rgba(var(--brand-shadow-rgb),.07);
    border-radius: 12px;
}

/* ── 서브메뉴 ────────────────────────────────────── */
.sub-menu h3 {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent-bright) 100%);
    border-radius: 10px 10px 0 0;
}
.sub-menu ul {
    border: 1px solid #dce8f8;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}
.sub-menu ul li a {
    border-bottom-color: #eef4fd;
    color: #3a5a8a;
}
.sub-menu ul li a:hover {
    background-color: var(--brand-tint);
    color: var(--brand-accent-bright);
}
.sub-menu ul li.active a {
    background-color: var(--brand-tint);
    color: var(--brand-accent-bright);
    border-left-color: var(--brand-accent-bright);
    font-weight: 700;
}

/* ── 콘텐츠 제목 ─────────────────────────────────── */
.content-title {
    color: var(--brand-primary-deep);
    border-bottom-color: var(--brand-accent-bright);
}

/* ── 섹션 헤더 ───────────────────────────────────── */
.section-header {
    border-bottom-color: var(--brand-accent-bright);
}
.section-header h3 {
    color: var(--brand-primary-deep);
}

/* ── 게시판 테이블 ───────────────────────────────── */

/* ── 버튼 ────────────────────────────────────────── */
.btn-primary,
.login-submit,
.machine-search button,
.auth-btn {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent-bright) 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(var(--brand-primary-rgb),.2);
}
.btn-primary:hover,
.login-submit:hover,
.machine-search button:hover,
.auth-btn:hover {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent-bright) 100%);
    box-shadow: 0 5px 18px rgba(var(--brand-primary-rgb),.28);
    transform: translateY(-1px);
}

.btn-secondary {
    border-color: #aac8f0;
    color: var(--brand-accent-bright);
    border-radius: 8px;
}
.btn-secondary:hover {
    background-color: var(--brand-tint);
    border-color: var(--brand-accent-bright);
}

/* ── 폼 인풋 ─────────────────────────────────────── */
.form-group input,
.form-group select,
.form-group textarea {
    border-color: var(--brand-border);
    border-radius: 8px;
    background: #fafdff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-accent-bright);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb),.1);
}
.form-notice {
    background-color: var(--brand-tint);
    border-left-color: var(--brand-accent-bright);
}

/* ── 공지사항 섹션 (메인) ────────────────────────── */
.main-notice-box {
    border-top-color: var(--brand-accent-bright);
    border-color: var(--brand-border);
    box-shadow: 0 4px 20px rgba(var(--brand-shadow-rgb),.07);
}
.main-mid-section {
    background-color: var(--brand-pale);
}

/* ── 퀵메뉴 ─────────────────────────────────────── */
.quick-item-grid {
    border-color: var(--brand-border);
    box-shadow: 0 2px 10px rgba(var(--brand-shadow-rgb),.06);
}
.quick-item-grid::before {
    background: linear-gradient(180deg, var(--brand-accent-bright) 0%, var(--brand-accent-bright) 100%);
}
.quick-item-grid:hover {
    background-color: var(--brand-tint);
    box-shadow: 0 8px 26px rgba(var(--brand-primary-rgb),.15);
    border-color: #90bce8;
}
.quick-text strong {
    color: var(--brand-primary-deep);
}
.quick-icon-wrap {
    background: #deeeff;
}

/* ── 장비 슬라이더 섹션 ──────────────────────────── */
.section-wrap {
    background: #fff;
}

/* ── 머신 카드 (목록) ────────────────────────────── */
.machine-card-list {
    border-color: #d8e8f8;
    box-shadow: 0 2px 10px rgba(var(--brand-shadow-rgb),.06);
}
.machine-card-list:hover {
    border-color: var(--brand-accent-bright);
    box-shadow: 0 6px 22px rgba(var(--brand-primary-rgb),.14);
}
.machine-card-name {
    color: var(--brand-accent-bright);
}

/* ── 검색창 ─────────────────────────────────────── */
.machine-search input {
    border-color: var(--brand-border);
    border-radius: 8px 0 0 8px;
    background: #fafdff;
}
.machine-search input:focus {
    border-color: var(--brand-accent-bright);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb),.1);
}

/* ── 페이지네이션 ────────────────────────────────── */
.pagination a,
.pagination span {
    border-color: var(--brand-border);
    color: var(--brand-link);
}
.pagination a:hover {
    background: var(--brand-tint);
    border-color: var(--brand-accent-bright);
    color: var(--brand-accent-bright);
}
.pagination .current,
.pagination .active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent-bright) 100%);
    border-color: var(--brand-accent-bright);
    color: #fff;
}

/* ── FAQ ─────────────────────────────────────────── */
.faq-item {
    border-color: #dce8f8;
}
.faq-question {
    background: var(--brand-tint-2);
    color: var(--brand-primary-deep);
}
.faq-question:hover {
    background: var(--brand-tint);
}

/* ── 로그인 박스 ─────────────────────────────────── */
.login-input {
    border-color: var(--brand-border);
    border-radius: 8px;
    background: #fafdff;
}
.login-input:focus {
    border-color: var(--brand-accent-bright);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb),.1);
    outline: none;
}

/* ── 접근성 focus ring ───────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-color: var(--brand-accent-bright);
}

/* ── 기타 ────────────────────────────────────────── */
.more-btn-circle {
    color: var(--brand-accent-bright);
}
.more-btn-circle span {
    background-color: var(--brand-accent-bright);
}
.notice-day { color: var(--brand-accent-bright); }
.notice-month { color: var(--brand-link); }