/* ============================================================
   OK장부닷 theme.css
   ✔ 기존 style.css 레이아웃·디자인 완전 유지
   ✔ 반응형 추가 (1200 / 992 / 768 / 480 / 360)
   ✔ 모바일 슬라이드 메뉴 스타일 추가
   PHP 5.6 + MySQL + 그누보드5 호환
   ============================================================ */

/* ─── 기본 폰트·리셋 ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'SCoreDream', 'Noto Sans KR', sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 화면에는 보이지 않지만 스크린 리더는 읽을 수 있음 */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 포커스 시에만 화면에 보임 (키보드 사용자용) */
.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    width: auto !important;
    height: auto !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    background: #2563eb !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    z-index: 10000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

.sr-only-focusable:focus:hover {
    background: #1d4ed8 !important;
}

/* ARIA 역할 지원 */
[role="status"] {
    /* 스크린 리더용 상태 알림 영역 */
}

/* ─── body: 모바일 메뉴 열림 시 스크롤 잠금 ─── */
body.mobile-nav-open { overflow: hidden; }

/* ─── 컨테이너 ─── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── #wrapper ─── */
#wrapper { display: flex; flex-direction: column; min-height: 100vh; }


/* ============================================================
   공지사항 바
   ============================================================ */
#notice-bar {
    background: #243853;
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1001;
}

#notice-bar.hidden { display: none; }

.notice-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 28px;
}

.notice-label {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.notice-label i { font-size: 11px; }

.notice-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.notice-track {
    position: absolute;
    width: 100%;
    transition: transform 0.5s ease;
}

/* notice-item: 기존 transform 방식 유지 + active 클래스 병행 */
.notice-item {
    height: 24px;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-link {
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    width: 100%;
}

.notice-link:hover { opacity: 0.8; text-decoration: underline; }

.notice-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.notice-prev, .notice-next {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.3s;
}

.notice-prev:hover, .notice-next:hover { background: rgba(255,255,255,0.35); }

.notice-close {
    background: rgba(255,255,255,0.1);
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    font-family: inherit;
}

.notice-close:hover { background: rgba(255,255,255,0.25); }
.notice-close i { font-size: 12px; }


/* ============================================================
   헤더
   ============================================================ */
#header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    /* top 값은 main.js 의 adjustHeaderTop() 이 동적 설정 */
    top: 48px;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 10px;
}

/* 로고 */
.logo { flex-shrink: 0; }
.logo img { height: 65px; width: auto; margin-right: 10px; }

/* 로그인 상태 표시 */
#hd_login_msg {
    position: fixed;
    top: 0; right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0 0 0 4px;
}

#hd_login_msg a { color: #93c5fd; text-decoration: underline; font-size: 12px; }

/* ─── 인증 버튼 ─── */
.auth-buttons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.auth-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.auth-buttons i { margin-right: 6px; font-size: 13px; }

.btn-logout, .btn-login {
    background: #2563eb;
    color: #fff !important;
    border: 1px solid #2563eb;
}

.btn-logout:hover, .btn-login:hover {
    background: #2059d4;
    border-color: #2059d4;
}

.btn-mypage, .btn-join {
    background: #f8f9fa;
    color: #333 !important;
    border: 1px solid #adb5bd;
}

.btn-mypage:hover, .btn-join:hover {
    background: #e9ecef;
    border-color: #6b7280;
}


/* ============================================================
   PC 메가메뉴 — 기존 style.css 구조 완전 유지
   ============================================================ */
.gnb_wrap {
    /* flex: 1; */
    margin: 0 auto;
    width:calc(100% - 300px);
    height: 50px;
    text-align: left;
    position: relative;
}

.gnb_nav .menu { margin: 0 auto; }
.gnb_nav .menu::after { display: block; content: ""; clear: both; }

.gnb_nav .menu > li {
    width: 25%;
    text-align: center;
    float: left;
    position: relative;
    box-sizing: border-box;
}

.gnb_nav .menu > li > a {
    width: 100%;
    padding: 10px 0 32px;
    font-size: 19px;
    color: #121212;
    font-weight: 600;
    overflow: hidden;
    clear: both;
    float: left;
    display: block;
    position: relative;
}

/* 핑크 삼각 화살표 */
.gnb_nav .menu > li > a::before {
    display: block;
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #ff24a0;
    transform: rotate(135deg);
    opacity: 0;
    transition: all 0.7s;
}

/* 핑크 언더라인 */
.gnb_nav .menu > li > a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ff24a0;
    transition: all 0.5s;
}

.gnb_nav .menu > li:hover > a::before { bottom: -4px; opacity: 1; }
.gnb_nav .menu > li:hover > a::after  { width: 100%; }

/* 서브메뉴 드롭다운 */
.gnb_nav .menu > li > .item {
    padding: 15px 12px 0;
    left: 0;
    top: 65px;
    width: 100%;
    height: 280px;
    background: rgba(0,0,0,.8);
    text-align: left;
    overflow: hidden;
    z-index: 999;
    position: absolute; /* JS slideDown 대상이므로 position 필요 */
}

.gnb_nav .menu > li > .item ul { overflow: hidden; }

.gnb_nav .menu > li > .item ul li {
    width: 100%;
    height: auto;
    overflow: hidden;
    text-align: center;
}

.gnb_nav .menu > li > .item ul li a {
    width: 100%;
    line-height: 28px;
    font-size: 14px;
    color: #fff;
    display: inline-block;
}

.gnb_nav .menu > li > .item ul li a[target="_blank"]::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: " \f35d";
}

.gnb_nav .menu > li > .item ul li a:hover {
    text-decoration: none !important;
    background-color: rgb(50, 152, 51);
    color: #fff;
}


/* ============================================================
   모바일 햄버거 버튼 (기본 숨김 — 768px 이하에서 표시)
   ============================================================ */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.mobile-menu-btn:hover { background: #f3f4f6; }

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X 모양 전환 */
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   모바일 딤 배경
   ============================================================ */
#mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1098;
}

#mobile-menu-overlay.open { display: block; }


/* ============================================================
   모바일 슬라이드 메뉴 패널
   ============================================================ */
#mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1099;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

#mobile-nav.open { right: 0; }

/* 패널 헤더 */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #243853;
    flex-shrink: 0;
}

.mobile-nav-header .mobile-logo img { height: 26px; width: auto; }

.mobile-nav-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    font-family: inherit;
}

.mobile-nav-close:hover { background: rgba(255,255,255,0.3); }

/* 패널 내 인증 버튼 */
.mobile-auth {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.mobile-auth a {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-auth .btn-login,
.mobile-auth .btn-logout {
    background: #2563eb;
    color: #fff !important;
    border: none;
}

.mobile-auth .btn-login:hover,
.mobile-auth .btn-logout:hover { background: #1d4ed8; }

.mobile-auth .btn-join,
.mobile-auth .btn-mypage {
    background: #fff;
    color: #333 !important;
    border: 1px solid #d1d5db;
}

.mobile-auth .btn-join:hover,
.mobile-auth .btn-mypage:hover { background: #f3f4f6; }

/* 아이콘 여백 재설정 (패널 내부) */
.mobile-auth a i { margin-right: 4px; }

/* 1단 메뉴 목록 */
.mobile-gnb { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.mobile-gnb > ul > li { border-bottom: 1px solid #f0f2f5; }

.mobile-gnb > ul > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #121212;
    background: #fff;
    transition: background 0.2s, color 0.2s;
}

.mobile-gnb > ul > li > a:hover,
.mobile-gnb > ul > li.sub-open > a {
    color: #2563eb;
    background: #f0f7ff;
}

/* 서브 화살표 아이콘 */
.mobile-gnb > ul > li > a .sub-arrow {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: 6px;
    transition: transform 0.3s;
}

.mobile-gnb > ul > li.sub-open > a .sub-arrow {
    transform: rotate(180deg);
    color: #2563eb;
}

/* 2단 서브메뉴 */
.mobile-gnb .mobile-submenu {
    display: none;
    background: #f8faff;
    border-top: 1px solid #e8f0ff;
}

.mobile-gnb .mobile-submenu li { border-bottom: 1px solid #eef2f9; }
.mobile-gnb .mobile-submenu li:last-child { border-bottom: none; }

.mobile-gnb .mobile-submenu li a {
    display: block;
    padding: 11px 18px 11px 32px;
    font-size: 14px;
    color: #4b5563;
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.mobile-gnb .mobile-submenu li a::before {
    content: '›';
    position: absolute;
    left: 20px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.mobile-gnb .mobile-submenu li a:hover {
    color: #2563eb;
    background: #e8f0ff;
}


/* ============================================================
   히어로 배너
   ============================================================ */
.hero-banner {
    background-image: linear-gradient(180deg, #007dbc 0, #33528c);
    background-repeat: repeat-y;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-banner h1 { font-size: 36px; margin-bottom: 20px; line-height: 1.4; }
.hero-banner .subtitle { font-size: 18px; opacity: 0.9; }


/* ============================================================
   서비스 카드
   ============================================================ */
.section-title {
    text-align: center;
    font-size: 28px;
    color: #222;
}

.services-section { }

/* ============================================================
   내부 페이지 컨테이너
   ============================================================ */
.mart30 { margin-top: 30px; }
.marb30 { margin-bottom: 30px; }

#container_title {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}


/* ============================================================
   푸터
   ============================================================ */
.footer-links {
    margin-top: 30px;
    background: #f1f5f9;
    padding: 20px 0;
}

.footer-links ul { display: flex; flex-wrap: wrap; gap: 0; align-items: center; }

.footer-links li { position: relative; }

.footer-links li + li::before {
    content: '|';
    color: #cbd5e1;
    margin: 0 12px;
}

.footer-links a { color: #666; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: #2563eb; }
.footer-links strong { font-weight: 700; }

.footer-info {
    position: relative;
    background: #1e293b;
    color: #cbd5e1;
    padding: 40px 0 80px;
}

.footer-info .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info .top {
    position: absolute;
    top: 10px; right: 10px;
    width: 52px; height: 49px;
    background: rgba(0,0,0,.5);
    border-radius: 5px;
    z-index: 10;
}

.footer-info .top a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    color: #c3c3c3;
    font-size: 11px;
    gap: 2px;
    transition: color 0.2s;
}

.footer-info .top a:hover { color: #fff; }
.footer-info .top a i { font-size: 16px; display: block; margin: 0 auto; }

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-logo img { height: 65px; margin-right: 10px; }
.footer-text p { margin-bottom: 10px; }

.footer-text span {
    position: relative;
    padding: 0 12px;
    color: #94a3b8;
    font-size: 13px;
}

.footer-text span:first-child { padding-left: 0; }

.footer-text span:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #94a3b8;
}

.copyright { font-size: 14px; color: #94a3b8; margin-top: 6px; }

.footer-social { display: flex; gap: 15px; }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: #334155;
    border-radius: 50%;
    color: white;
    font-size: 15px;
    transition: background 0.3s;
}

.footer-social a:hover { background: #2563eb; }


/* ============================================================
   ★ 반응형 미디어 쿼리
   ============================================================ */

/* ─── 1200px 이하: 메뉴 폰트·여백 축소 ─── */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-info .container { gap: 20px; }

}

/* ─── 1024px 이하 ─── */
@media (max-width: 1024px) {

}

/* ─── 992px 이하 ─── */
@media (max-width: 992px) {

}

/* ─── 768px 이하: 모바일 전환 ─── */
@media (max-width: 992px) {

    /* 공지바 */
    .notice-label span { display: none; }
    .notice-label { padding: 4px 8px; }
    .notice-close span { display: none; }
    .notice-close { padding: 6px 8px; }

    /* 헤더 */
    .header-top { padding: 10px 0; gap: 8px; }
    .logo img { height: 34px; }

    /* PC GNB + 인증버튼 숨기고 햄버거 표시 */
    .gnb_wrap { display: none; }
    .auth-buttons { display: none; }
    .mobile-menu-btn { display: flex; }

    /* 히어로 */
    .hero-banner { padding: 50px 0; }
    .hero-banner h1 { font-size: 26px; }
    .hero-banner h1 br { display: none; }
    .hero-banner .subtitle { font-size: 15px; }

    /* 서비스 */
        .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .section-title { font-size: 22px; margin: 40px 0 24px; }

    /* 푸터 */
    .footer-info .container { flex-direction: column; gap: 20px; }
    .footer-links ul { gap: 0; }
    .footer-links li + li::before { margin: 0 8px; }
    .footer-text span { padding: 0 8px; }
}

/* ─── 480px 이하: 스마트폰 ─── */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .logo img { height: 34px; }

    /* 히어로 */
    .hero-banner { padding: 36px 0; }
    .hero-banner h1 { font-size: 20px; }
    .hero-banner .subtitle { font-size: 14px; }

    /* 서비스 1열 */
    .services-grid { grid-template-columns: 1fr; gap: 14px; }
    .service-card { padding: 18px; }
    .service-header h3 { font-size: 16px; }

    /* 섹션 타이틀 */
    .section-title { font-size: 18px; margin: 30px 0 18px; }

    /* 푸터 */
    .footer-links a { font-size: 12px; }
    .footer-links li + li::before { margin: 0 6px; }
    .footer-info { padding: 28px 0 55px; }
    .footer-text span { display: block; padding: 0; }
    .footer-text span::after { display: none !important; }
    .footer-logo img { height: 30px; }
}

/* ─── 360px 이하: 초소형 ─── */
@media (max-width: 360px) {
    .hero-banner h1 { font-size: 18px; }
    .services-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   접근성 / 스크롤바 / 유틸리티
   ============================================================ */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

::selection { background: #2563eb; color: #fff; }

/* ==================== 그누보드 기본 레이아웃 오버라이드 ==================== */

/* 태블릿 (992px 이하) */
@media (max-width: 1200px) {
    /* 컨테이너 width 강제 해제 */
    #container {
        width: 100% !important;
        float: none !important;
        margin: 20px 0 !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
       
    /* 전체 래퍼 width 해제 */
    #container_wr {
        width: 100% !important;
        min-width: auto !important;
        padding: 0 !important;
    }
    
    /* 헤더와 푸터 width 해제 */
    #hd, #wrapper, #ft {
        min-width: auto !important;
    }
    
    #hd_wrapper,
    #tnb ul,
    #gnb .gnb_wrap,
    #ft_wr {
        width: 100% !important;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* tnb 메뉴 모바일 조정 */
    #tnb ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    #tnb li {
        float: none;
    }
    
    #tnb .tnb_left {
        margin-right: auto;
    }
}

/* ============================================================
   빠른 메뉴  
   ============================================================ */
.quick-menu-section {
    width: 100%;
    max-width: 1200px;       /* 컨테이너와 동일하게 */
    margin: 40px auto;       /* ← 가운데 정렬 핵심 */
    padding: 0 20px;
}

.quick-menu-section .section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 18px;
    letter-spacing: -0.3px;

    /* 파란줄 제거 후 가로선 스타일 */
    display: flex;
    align-items: center;
    gap: 24px;
}

.quick-menu-section .section-title::before,
.quick-menu-section .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1d5db;  /* 선 색상 */
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 8px 18px;
    background: #ffffff;
    border-radius: 16px;
    text-decoration: none;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.quick-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-light), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.quick-item:hover::before  { opacity: 1; }
.quick-item:hover          { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.12); color: var(--accent); }
.quick-item:active         { transform: translateY(-1px); }

.quick-item .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    transition: background 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.quick-item:hover .icon-wrap          { background: var(--accent); transform: scale(1.08); }
.quick-item:hover .icon-wrap i        { color: #fff; }

.quick-item .icon-wrap i {
    font-size: 1.2rem;
    color: var(--accent);
    transition: color 0.2s ease;
}

.quick-item span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    text-align: center;
    line-height: 1.3;
    color: #4b5563;
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}

.quick-item:hover span { color: var(--accent); }

/* 개별 색상 */
.quick-item:nth-child(1) { --accent:#3b82f6; --accent-bg:#eff6ff; --accent-light:#dbeafe88; }
.quick-item:nth-child(2) { --accent:#8b5cf6; --accent-bg:#f5f3ff; --accent-light:#ede9fe88; }
.quick-item:nth-child(3) { --accent:#10b981; --accent-bg:#ecfdf5; --accent-light:#d1fae588; }
.quick-item:nth-child(4) { --accent:#f59e0b; --accent-bg:#fffbeb; --accent-light:#fde68a88; }
.quick-item:nth-child(5) { --accent:#ef4444; --accent-bg:#fef2f2; --accent-light:#fecaca88; }
.quick-item:nth-child(6) { --accent:#06b6d4; --accent-bg:#ecfeff; --accent-light:#cffafe88; }

/* 등장 애니메이션 */
@keyframes quickSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.quick-item { opacity: 0; animation: quickSlideUp 0.4s ease forwards; }
.quick-item:nth-child(1) { animation-delay: 0.05s; }
.quick-item:nth-child(2) { animation-delay: 0.10s; }
.quick-item:nth-child(3) { animation-delay: 0.15s; }
.quick-item:nth-child(4) { animation-delay: 0.20s; }
.quick-item:nth-child(5) { animation-delay: 0.25s; }
.quick-item:nth-child(6) { animation-delay: 0.30s; }

/* 반응형 */
@media (max-width: 1200px) { .quick-menu-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 600px)  { .quick-menu-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 360px)  { .quick-menu-grid { grid-template-columns: repeat(2, 1fr); } }