/* ============================================================================
   TIẾNG VIỆT HAY - GLOBAL STYLES & DESIGN TOKENS
   ============================================================================ */

/* 1. Nhúng phông chữ bên ngoài & tự lưu trữ (External & Self-hosted Fonts) */

/* 1.1 Be Vietnam Pro - Google Font (Vietnamese Content) */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

/* 1.2 Hakgyo Ansim Dunggeun Miso (학교안심 둥근미소) - Logo */
@font-face {
    font-family: 'HakgyoansimDunggeunmiso';
    src: url('../fonts/HakgyoAnsim/HakgyoansimDunggeunmisoTTF-R.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HakgyoansimDunggeunmiso';
    src: url('../fonts/HakgyoAnsim/HakgyoansimDunggeunmisoTTF-B.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 1.3 Pretendard - Menu & Heading */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 1.4 SUIT - Korean Body Text */
@font-face {
    font-family: 'SUIT';
    src: url('../fonts/SUIT/SUIT-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SUIT';
    src: url('../fonts/SUIT/SUIT-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SUIT';
    src: url('../fonts/SUIT/SUIT-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SUIT';
    src: url('../fonts/SUIT/SUIT-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* 2. Khai báo mã màu nhận diện thương hiệu & Token thiết kế */
:root {
    /* Fonts Mappings */
    --font-logo: 'HakgyoansimDunggeunmiso', sans-serif;
    --font-heading: 'Pretendard', sans-serif;
    --font-body: 'SUIT', sans-serif;
    --font-vietnamese: 'Be Vietnam Pro', sans-serif;

    /* Theme Colors */
    --primary-color: #6a92cd;       /* Xanh dương chủ đạo */
    --primary-hover: #567cb5;
    --accent-color: #e55b88;        /* Hồng điểm nhấn / nút hành động */
    --accent-hover: #d1416e;
    --accent-light: #fad8f2;        /* Nền badge / khung nhấn mờ */
    
    /* Backgrounds */
    --bg-main: #f8f9fa;             /* Xám nhạt toàn màn hình */
    --bg-white: #ffffff;
    --bg-dark: #212529;

    /* Text Colors */
    --text-main: #333333;           /* Chữ chính */
    --text-muted: #6c757d;          /* Chữ phụ mờ */
    --text-white: #ffffff;

    /* States & Alerts */
    --color-success: #2ec4b6;
    --color-error: #e63946;
    --color-warning: #ffb703;

    /* Spacing & Borders */
    --border-color: #e2e8f0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Box Shadows */
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 3. Custom System Pink Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #ee5d9d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d63384;
}

/* 4. Base Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body), 'Noto Sans CJK KR', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Utilities */
.logo-korean-text {
    font-family: var(--font-logo);
}

.vietnamese-content {
    font-family: var(--font-vietnamese);
}

.text-center { text-align: center; }
.text-danger { color: var(--color-error); }
.text-success { color: var(--color-success); }
.text-muted { color: var(--text-muted); }

/* Custom Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* System Alert Banners */
.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-alert-danger {
    background-color: #ffeef0;
    color: var(--color-error);
    border: 1px solid #fecdd3;
}

.auth-alert-success {
    background-color: #ecfdf5;
    color: var(--color-success);
    border: 1px solid #a7f3d0;
}

.auth-alert-warning {
    background-color: #fffbeb;
    color: var(--color-warning, #ffb703);
    border: 1px solid #fef3c7;
}

.auth-alert-info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Global Breadcrumb Navigation Component */
.site-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-family: var(--font-heading), 'Pretendard', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 16px 0;
    padding: 0;
    word-break: keep-all;
}

.site-breadcrumb .breadcrumb-link {
    color: var(--primary-color, #6a92cd);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.site-breadcrumb .breadcrumb-link:hover {
    color: var(--primary-hover, #4f73ab);
    text-decoration: underline;
}

.site-breadcrumb .breadcrumb-separator {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-user-select: none;
    user-select: none;
}

.site-breadcrumb .breadcrumb-current {
    color: #334155;
    font-weight: 700;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .site-breadcrumb {
        font-size: 13px;
        gap: 4px 6px;
        margin-bottom: 12px;
    }
}


/* ============================================================================
   HEADER & FOOTER LAYOUT (RESPONSIVE)
   ============================================================================ */

/* 1. Global Header */
.main-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    align-items: center;
    height: 75px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.header-logo img {
    max-height: 27px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-logo);
    font-size: 22.5px;
    font-weight: 700;
    color: #ee5d9d;
    letter-spacing: 0.1px;
    white-space: nowrap;
    line-height: 1;
}

/* Mobile optimization for logo text */
@media (max-width: 480px) {
    .logo-text {
        font-size: 19px;
        letter-spacing: 0;
    }
    
    .header-logo img,
    .footer-logo img {
        max-height: 23px;
    }
    
    .header-logo,
    .footer-logo {
        gap: 7px;
        height: auto;
    }
}

/* 2. Main Navigation Menu */
.header-nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1;
    margin: 0 15px;
}

.header-nav-menu .nav-item {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: #334155;
    position: relative;
    padding: 8px 2px;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.header-nav-menu .nav-item:hover {
    color: var(--primary-color);
}

.header-nav-menu .nav-item.active {
    color: var(--primary-color);
}

/* Underline indicator for active menu items */
.header-nav-menu .nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.header-nav-menu .nav-item:hover::after,
.header-nav-menu .nav-item.active::after {
    width: 100%;
}

/* 3. Header Action Buttons & Profile */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-actions .btn-login {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    padding: 7px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.header-actions .btn-login:hover {
    background-color: rgba(106, 146, 205, 0.08);
}

.header-actions .btn-register {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-white) !important;
    background-color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(106, 146, 205, 0.15);
    transition: all 0.2s ease;
}

.header-actions .btn-register:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(106, 146, 205, 0.25);
}

/* Action Icons */
.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #4a5568;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.action-btn:hover {
    background-color: #f7fafc;
    color: var(--primary-color);
}

/* Notifications Bell Badge */
.notification-wrapper {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 1.5px solid #fff;
    display: block;
}

/* User Profile Dropdown Menu */
.user-profile-dropdown {
    position: relative;
}

.profile-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 30px;
    transition: background-color 0.2s ease;
}

.profile-trigger:hover {
    background-color: #f7fafc;
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--accent-hover);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    border: 1.5px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-display-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.profile-trigger .arrow-icon {
    font-size: 10px;
    color: #718096;
    transition: transform 0.2s ease;
}

/* When active/open */
.user-profile-dropdown.active .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    z-index: 1000;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.user-profile-dropdown.active .dropdown-menu-list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.dropdown-menu-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu-list a i {
    font-size: 14px;
    width: 16px;
    color: #718096;
}

.dropdown-menu-list a:hover {
    background-color: #f7fafc;
    color: var(--primary-color);
}

.dropdown-menu-list a:hover i {
    color: var(--primary-color);
}

.dropdown-menu-list .admin-link {
    color: var(--accent-color);
}

.dropdown-menu-list .admin-link i {
    color: var(--accent-color);
}

.dropdown-menu-list .admin-link:hover {
    color: var(--accent-hover);
    background-color: rgba(229, 91, 136, 0.05);
}

.dropdown-menu-list .dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 6px 0;
}

.dropdown-menu-list .logout-link {
    color: var(--color-error);
}

.dropdown-menu-list .logout-link i {
    color: var(--color-error);
}

.dropdown-menu-list .logout-link:hover {
    background-color: #ffeef0;
}

/* 4. Mobile Navigation Drawer Overlay */
.mobile-menu-toggle {
    display: none;
    font-size: 20px;
    color: #4a5568;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: #f7fafc;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.mobile-nav-drawer.open {
    pointer-events: auto;
    visibility: visible;
}

.drawer-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-drawer.open .drawer-backdrop {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: -320px;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background-color: var(--bg-white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open .drawer-content {
    transform: translateX(-320px);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-logo img {
    height: 35px;
    width: auto;
}

.drawer-logo .logo-korean-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #718096;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.drawer-close:hover {
    background-color: #f7fafc;
    color: var(--text-main);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-item {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: #4a5568;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-item i {
    width: 20px;
    font-size: 16px;
    color: #a0aec0;
    transition: color 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background-color: rgba(106, 146, 205, 0.08);
    color: var(--primary-color);
}

.mobile-nav-item:hover i,
.mobile-nav-item.active i {
    color: var(--primary-color);
}

.drawer-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-user-info {
    font-family: var(--font-heading);
    font-size: 14px;
    color: #4a5568;
    padding: 0 10px;
}

.drawer-user-info strong {
    color: var(--primary-color);
}

.drawer-action-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.drawer-actions .login-btn {
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.drawer-actions .login-btn:hover {
    background-color: rgba(106, 146, 205, 0.05);
}

.drawer-actions .register-btn {
    color: var(--text-white) !important;
    background-color: var(--primary-color);
}

.drawer-actions .register-btn:hover {
    background-color: var(--primary-hover);
}

.drawer-actions .drawer-action-btn:not(.login-btn):not(.register-btn) {
    color: #4a5568;
    background-color: #f7fafc;
    justify-content: flex-start;
    padding-left: 14px;
}

.drawer-actions .drawer-action-btn:not(.login-btn):not(.register-btn):hover {
    background-color: #edf2f7;
    color: var(--text-main);
}

.drawer-actions .admin-btn {
    color: var(--accent-color) !important;
    background-color: rgba(229, 91, 136, 0.05) !important;
}

.drawer-actions .admin-btn:hover {
    background-color: rgba(229, 91, 136, 0.1) !important;
}

.drawer-actions .logout-btn {
    color: var(--color-error) !important;
    background-color: #ffeef0 !important;
}

.drawer-actions .logout-btn:hover {
    background-color: #fecdd3 !important;
}

/* ============================================================================
   5. FOOTER LAYOUT (KHỚP 100% BẢN VẼ THIẾT KẾ MỚI)
   ============================================================================ */
.main-footer {
    background-color: #eef5ff;
    color: #334155;
    padding: 48px 0 28px;
    font-size: 14px;
    margin-top: 0 !important;
}

.footer-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    box-sizing: border-box;
}

.footer-main-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 36px;
    width: 100%;
}

/* Column 1: Brand & Slogan */
.footer-col-brand {
    flex: 0 0 280px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.footer-logo-img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-text {
    font-family: var(--font-logo);
    font-size: 25px;
    font-weight: 800;
    color: #ee5d9d;
    letter-spacing: 0.1px;
    white-space: nowrap;
    line-height: 1;
}

.footer-slogan-text {
    font-family: var(--font-heading), 'Pretendard', sans-serif;
    font-size: 18.5px;
    color: #334155;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.3px;
}





/* Middle Group (Desktop: contents, Mobile: 2 columns grid) */
.footer-middle-group {
    display: contents;
}

/* Column 2 & 3: Headings & Lists */
.footer-col-guide {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-sns {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-heading {
    font-family: var(--font-heading), 'Pretendard', sans-serif;
    font-size: 18.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.3px;
}

.footer-links-list,
.footer-sns-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: #2563eb;
}

.footer-sns-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-sns-item:hover {
    color: #2563eb;
    transform: translateX(2px);
}

.sns-brand-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

/* Vertical Divider Line */
.footer-v-divider {
    width: 1px;
    background-color: #dbeafe;
    align-self: stretch;
    min-height: 140px;
    margin: 0 10px;
    flex-shrink: 0;
}

/* Column 4: Contact & Business Information */
.footer-col-contact {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 14.5px;
    color: #334155;
    padding-left: 10px;
}

.footer-contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.65;
}

.contact-item {
    color: #334155;
    font-weight: 500;
    font-size: 14.5px;
    white-space: nowrap;
}

.contact-item strong {
    font-weight: 700;
    color: #1e293b;
}

.contact-sep {
    color: #94a3b8;
    font-size: 13px;
    margin: 0 4px;
}

/* Footer Bottom Copyright */
.footer-bottom-copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 8px;
}

.footer-bottom-copyright p {
    font-family: var(--font-body), 'SUIT', sans-serif;
    font-size: 14px;
    color: #475569;
    margin: 0;
    font-weight: 500;
}

/* Responsive on Mobile (< 860px) */
@media (max-width: 860px) {
    .main-footer {
        padding: 34px 0 24px;
    }

    .footer-container {
        gap: 20px;
        padding: 0 16px;
    }

    .footer-main-layout {
        flex-direction: column;
        gap: 18px;
    }

    .footer-col-brand {
        flex: 0 0 auto;
        max-width: 100%;
        gap: 8px;
    }

    .footer-middle-group {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        width: 100%;
    }

    .footer-col-guide,
    .footer-col-sns {
        flex: unset !important;
        width: 100% !important;
        gap: 10px;
    }

    .footer-col-heading {
        font-size: 16.5px;
    }

    .footer-links-list,
    .footer-sns-list {
        gap: 9px;
    }

    .footer-links-list a,
    .footer-sns-item {
        font-size: 13.5px;
    }

    .sns-brand-icon {
        width: 26px;
        height: 26px;
    }

    .footer-v-divider {
        display: none;
    }

    .footer-col-contact {
        padding-left: 0;
        border-top: 1px solid #dbeafe;
        padding-top: 16px;
        width: 100%;
        gap: 7px;
    }

    .footer-contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .contact-item {
        font-size: 13px;
        white-space: normal;
    }

    .contact-sep {
        display: none;
    }
}

/* ============================================================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   ============================================================================ */
@media (max-width: 1024px) {
    .header-nav-menu {
        gap: 14px;
    }
    
    .header-nav-menu .nav-item {
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .header-nav-menu {
        display: none; /* Hide primary desktop nav */
    }
    
    .mobile-menu-toggle {
        display: flex; /* Show hamburger toggle */
        align-items: center;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand-col {
        grid-column: span 2;
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .header-container {
        height: 60px;
        padding: 0 12px;
    }
    
    .header-logo {
        gap: 6px;
        transform: none;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .header-logo img {
        max-height: 28px;
        width: auto;
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 20px;
        letter-spacing: -0.2px;
        white-space: nowrap;
        line-height: 1;
    }
    
    .header-actions {
        gap: 4px;
        flex-shrink: 0;
    }
    
    .action-btn {
        font-size: 16px;
        padding: 5px;
    }
    
    .profile-trigger {
        padding: 2px 4px;
        gap: 4px;
    }
    
    .user-avatar-img {
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu-toggle {
        font-size: 18px;
        padding: 5px;
    }
    
    .header-actions .btn-login,
    .header-actions .btn-register {
        display: none; /* Hide action text buttons on tiny screens (handled by mobile drawer) */
    }
    
    .header-actions .user-display-name {
        display: none; /* Hide profile name, keep avatar */
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand-col {
        grid-column: span 2;
    }
    
    .footer-meta-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .footer-business-meta {
        text-align: left;
    }
}

/* ============================================================================
   GLOBAL COMPONENT: PUSHER (SCROLL TO TOP)
   ============================================================================ */
.scroll-pusher-btn {
    position: fixed;
    right: 28px;
    bottom: 30px;
    z-index: 990;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #ee5d9d;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 16px rgba(238, 93, 157, 0.38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-pusher-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-pusher-btn:hover {
    background-color: #d63384;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(238, 93, 157, 0.5);
}

.scroll-pusher-btn:active {
    transform: translateY(0) scale(0.95);
}

@media (max-width: 768px) {
    .scroll-pusher-btn {
        right: 18px;
        bottom: 22px;
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
}
