/* Reset */
:root,
[data-bs-theme="light"] {
    --color-white: #fff;
    --color-black: #000;

    --color-primary: #ff8f20;
    --color-secondary: #222222;
    --color-accent: #E67A00;
    --color-accent-secondary: #ff6a00;

    --color-background: #ffffff;
    --color-background-secondary: #f8f9fa;
    --color-background-tertiary: #FDF7EC;
    --color-gradient-primary: linear-gradient(to bottom, var(--color-background-tertiary) 0%, #fff 100%);
    --color-background-footer: #222222;

    --color-text: #222222;
    --color-text-primary: #ffffff;
    --color-text-secondary: #5e5e5e;
    --color-text-muted: #888888;
    --color-text-disabled: #cccccc;
    --color-text-dark: #444444;
    --color-text-light: #666666;
    --color-text-lighter: #999999;

    --color-gray-light: #E8E8E8;
    --color-gray-medium: #D9D9D9;
    --color-gray-dark: #F8F8F8;

    --color-link: #222222;
    --color-link-hover: #E67A00;
    --color-border: #e0e0e0;
    --color-separator: #cccccc;
    --color-footer: #222222;
    --color-footer-text: #ffffff;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-primary-shadow: rgba(255, 143, 32, 0.4);
    --color-disabled: #c0c0c0;

    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;

    --font-family: 'Geist', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --container-width: 1440px;
    /* --font-family: 'Pretendard'; */
    /* --font-family: cursive; */
}

[data-bs-theme="dark"] {}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    line-height: 1.0;
    color: var(--color-link);
}

ul,
li {
    list-style: none;
}

/* Style */
.btn {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 15px var(--color-primary-shadow); */
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn i {
    font-size: 18px;
}

.btn-primary {
    color: var(--color-text-primary);
    background: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-accent);
    box-shadow: 0 6px 20px var(--color-primary-shadow);
}

.btn-secondary {
    color: var(--color-text-primary);
    background: var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-text-secondary);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 10px;
}


@media (max-width: 768px) {
    .btn-primary {
        padding: 10px 15px;
        font-size: 14px;
    }
    .btn-secondary {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 11;
    background: var(--color-background);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s cubic-bezier(0.4,0,0.2,1),
        position 0.3s cubic-bezier(0.4,0,0.2,1),
        left 0.3s cubic-bezier(0.4,0,0.2,1),
        right 0.3s cubic-bezier(0.4,0,0.2,1),
        width 0.3s cubic-bezier(0.4,0,0.2,1),
        background 0.25s,
        transform 0.25s cubic-bezier(0.4,0,0.2,1);
    /* 자연스러운 부드러운 이동을 위해 transform도 포함 */
}
.header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1111;
    box-shadow: 0 8px 24px 0 rgba(0,0,0,0.10);
    /* 최소한의 부드러운 트랜지션을 위해 transform 사용 */
    background: var(--color-background); /* 스크롤 시 깜빡임 방지 */
    will-change: transform, box-shadow;
    transform: translateY(0);
    /* 트랜지션은 이미 .header에 선언됐으므로 중복 X */
}
/* 숨김 효과: 향후 확장용 (예: 스크롤 방향별 등장/숨김 등 구현시) */
.header.header-fixed.header-hide {
    transform: translateY(-100%);
    box-shadow: none;
    pointer-events: none;
}

.header:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 70px;
    box-sizing: border-box;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.2s ease;
}


.logo img {
    height: 38px;
}

.user-links {
    display: flex;
    gap: 16px;
}

.user-links a {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
}

/* PC에서 아이콘 숨기기 */
.user-links a i {
    display: none;
}

.user-links a:hover {
    color: var(--color-accent);
    background: #fef3e7;
    transform: translateY(-1px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Profile dropdown styles */
.header-profile-wrapper {
    display: flex;
    align-items: center;
}

.header-profile {
    position: relative;
}

.header-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-profile-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #fb923c 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.header-profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-profile-arrow {
    color: #9ca3af;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.header-profile-btn.active .header-profile-arrow {
    transform: rotate(180deg);
}

.header-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

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

.header-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.header-dropdown-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.header-dropdown-email {
    font-size: 13px;
    color: #6b7280;
}

.header-dropdown-menu {
    padding: 8px;
}

.header-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #374151;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.header-dropdown-item:hover {
    background: #f3f4f6;
    color: #0ea5e9;
}

.header-dropdown-item i {
    width: 20px;
    font-size: 16px;
    color: #9ca3af;
}

.header-dropdown-item:hover i {
    color: #0ea5e9;
}

.header-dropdown-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 8px 0;
}

.header-dropdown-logout {
    color: #dc2626;
}

.header-dropdown-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.header-dropdown-logout i {
    color: #dc2626;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 70px;
    box-sizing: border-box;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-search-cert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-search-cert:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 143, 32, 0.3);
}

.btn-search-cert i {
    font-size: 14px;
}

.btn-search-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #3378B5;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-search-dashboard.mobile-only {
    display: none;
}

.btn-search-dashboard:hover {
    background-color: #73A3CC;
    transform: translateY(-2px);
}

.btn-search-dashboard i {
    font-size: 14px;
}

.nav-menu-container {
    display: flex;
    justify-content: space-between;
}

.nav-menu {
    position: relative;
    width: 100%;
}

.nav-menu-list {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu-list>li {
    width: auto;
    position: relative;
}

.nav-menu-list>li>a {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: all 0.2s ease;
    display: block;
    padding: 10px 0;
    position: relative;
}

.nav-menu-list>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-menu-list>li>a:hover {
    color: var(--color-accent);
}

.nav-menu-list>li>a:hover::after {
    width: 100%;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.sub-menu li {
    width: 100%;
    padding: 0;
}

.sub-menu li a {
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    color: #6b7280;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sub-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--color-accent);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.sub-menu li a:hover {
    background: #fef3e7;
    color: var(--color-accent);
    padding-left: 20px;
}

.sub-menu li a:hover::before {
    transform: scaleY(1);
}

/* 개별 메뉴 아이템 hover 시 해당 sub-menu만 표시 */
.nav-menu-list>li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ALL CLASS 메가 메뉴 (M-029): 화면 폭 전체 패널, 메뉴 글자 바로 아래에 붙는다 */
.nav-menu-list>li.nav-all-class {
    position: static;
}

.nav-all-class>a i {
    font-size: 13px;
    margin-left: 4px;
}

.all-class-panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--color-gray-light);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.nav-all-class:hover .all-class-panel,
.nav-all-class:focus-within .all-class-panel {
    opacity: 1;
    visibility: visible;
}

/* 간격은 참조(M-029 벤치마킹) 기준: 열 폭 약 220px·열 간격 40px, 강좌 한 줄 약 22px,
   열 제목 → 소제목 약 40px, 소제목 → 첫 강좌 약 27px, 그룹 사이 약 43px.
   전역 a { line-height: 1 } 때문에 줄 높이를 직접 정한다 */
/* 좌우 여백은 .header-bottom과 같게 해 메뉴 글자와 같은 세로선에서 시작한다 */
.all-class-panel-inner {
    padding: 48px 70px 44px;
}

.all-class-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, 220px);
    justify-content: start;
    gap: 48px 40px;
}

.all-class-col-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.all-class-col-title a {
    line-height: inherit;
}

.all-class-col-title a:hover {
    color: var(--color-accent);
}

.all-class-group {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-accent);
    margin: 0 0 10px;
}

.all-class-list + .all-class-group {
    margin-top: 26px;
}

.all-class-group.level-3 {
    padding-left: 8px;
}

.all-class-list li a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 1px 0;
    font-size: 13px;
    line-height: 22px;
    color: var(--color-text-dark);
}

.all-class-list li a:hover .all-class-course {
    color: var(--color-accent);
}

.all-class-course {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.all-class-instructor {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--color-text-lighter);
}

.all-class-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text-secondary);
}

.all-class-view-all:hover {
    color: var(--color-accent);
}

.btn-group .btn-group-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.btn-group .btn-group-item i {
    font-size: 16px;
}

.btn-group .btn-group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* 햄버거 메뉴 버튼 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: #555;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu-close{
    display: none;
}

@media (max-width: 1400px) {
    .header-top,
    .header-bottom {
        padding: 10px 40px;
    }

    .all-class-panel-inner {
        padding: 40px 40px 36px;
    }

    .nav-menu-list {
        gap: 20px;
    }
}



@media (max-width: 1155px) {
    .nav-menu-list>li>a {
        font-size: 16px;
    }

    .sub-menu li a {
        font-size: 14px;
    }

    .btn-search-cert {
        padding: 8px 16px;
        font-size: 13px;
    }
}



/* 모바일 반응형 */
@media (max-width: 1140px) {
    .header-top {
        padding: 10px 20px;
    }

    .all-class-panel-inner {
        padding: 40px 20px 36px;
    }

    .logo img {
        height: 30px;
    }

    .user-links {
        gap: 10px;
    }

    .user-links a {
        font-size: 14px;
    }

    .header-bottom {
        padding: 10px 20px;
    }
}


@media (max-width: 968px) {
    .header-top {
        padding: 12px 20px;
    }

    .logo img {
        height: 24px;
    }

    .header-bottom {
        position: relative;
        padding: 8px 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu-container {
        display: block;
    }

    .btn-search-dashboard.mobile-only {
        display: inline-flex;
    }

    .btn-search-dashboard.pc-only {
        display: none;
    }

    .btn-search-cert {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .btn-search-cert span {
        display: none;
    }

    .btn-search-cert i {
        font-size: 16px;
    }

    .user-links {
        gap: 10px;
    }

    .user-links a {
        position: relative;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f5f5f5;
        transition: all 0.3s ease;
        padding: 0;
    }

    .user-links a span {
        display: none;
    }

    .user-links a i {
        display: block;
        font-size: 16px;
        color: var(--color-text-secondary);
        transition: color 0.3s ease;
    }

    .user-links a:hover {
        background: var(--color-primary);
        transform: none;
    }

    .user-links a:hover i {
        color: #fff;
    }

    /* Profile dropdown mobile */
    .header-profile-btn {
        padding: 4px;
        border: none;
        background: #f5f5f5;
    }

    .header-profile-btn:hover {
        background: var(--color-primary);
    }

    .header-profile-btn:hover .header-avatar {
        background: #fff;
        color: var(--color-primary);
    }

    .header-profile-name,
    .header-profile-arrow {
        display: none;
    }

    .header-dropdown {
        right: -20px;
        width: calc(100vw - 40px);
        max-width: 280px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        z-index: 1002;
        padding: 70px 20px 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: #f5f5f5;
        border: none;
        border-radius: 50%;
        color: #333;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1003;
        transition: all 0.3s ease;
    }

    .nav-menu-close:hover {
        background: var(--color-primary);
        color: #fff;
        transform: rotate(90deg);
    }

    .nav-menu-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: 0;
    }

    .nav-menu-list > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu-list > li > a {
        padding: 15px 0;
        font-size: 16px;
        display: block;
    }

    /* 모바일 ALL CLASS는 패널 없이 전체 클래스 페이지로 이동 (M-029) */
    .all-class-panel {
        display: none;
    }

    .sub-menu {
        position: static;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        height: 0;
        transform: none;
        padding: 0 !important;
        background: #f8f8f8;
        margin-top: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu-list > li.active .sub-menu {
        opacity: 1;
        visibility: visible;
        height: auto;
        margin-top: 8px;
        position: relative;
        border-radius: 8px;
    }
/*
    .nav-menu-list > li.active .sub-menu::before {
        content: '\f053';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 8px;
        left: 0;
        right: 0;
        font-size: 16px;
        color: var(--color-text);
        cursor: pointer;
        z-index: 1;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: 8px;
        transition: all 0.3s ease;
        pointer-events: auto;
        margin: 0 auto;
        border: 1px solid #e5e7eb;
    }

    .nav-menu-list > li.active .sub-menu::before:hover {
        background: var(--color-primary);
        color: #fff;
        border-color: var(--color-primary);
    } */

    .sub-menu li a {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 8px;
    }

    .sub-menu li a:hover {
        padding-left: 20px;
    }

    .btn-group {
        display: none;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 10; /* 헤더(z-index: 11)보다 낮게 설정하여 헤더 요소들이 위에 오도록 */
        pointer-events: none; /* 비활성화 상태에서는 클릭 이벤트 차단 */
    }

    .mobile-menu-overlay.active {
        display: block;
        pointer-events: auto; /* 활성화 상태에서만 클릭 가능 */
        z-index: 1001; /* 활성화 시에는 메뉴 위에 표시 */
    }

}

@media (max-width: 480px) {
    .header-top {
        padding: 8px 15px;
    }

    .mobile-menu-toggle {
        width: 25px;
        height: 25px;
    }


    .user-links {
        gap: 10px;
    }

    .user-links a {
        width: 32px;
        height: 32px;
    }

    .user-links a i {
        font-size: 14px;
    }

    .header-bottom {
        padding: 8px 15px;
    }

    .nav-menu {
        width: 85%;
    }
}

/* Footer */
.footer {
    width: 100%;
    z-index: 11;
    transition: all 0.8s ease-out;
    background: #FDF7EC;
    overflow: hidden;
}

.footer-container {
    width: 100%;
    margin: 0 auto;
    padding: 80px 80px 120px;
    border-radius: 40px 40px 0 0;
    color: var(--color-footer-text);
    background-color: var(--color-footer);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 120px;
}

.footer.visible {
    bottom: 0;
}

.footer-left {
    /* width: 30%; */
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-logo{
    width: 100%;
    margin-bottom: 30px;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 60px;
    object-fit: cover;
    filter: brightness(0) invert(1);
}

.footer-copyright {
    width: 100%;
}

.footer-company {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    opacity: 0.9;
}

.footer-copyright-text {
    font-size: 12px;
    margin-top: 12px;
    opacity: 0.7;
}

.footer-right-group {
    width: 60%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.footer-center {
    flex: 1;
    min-width: 0;
}

.footer-right {
    width: 200px;
    flex-shrink: 0;
}

.footer-tag {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.footer-tag:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-entity {
    margin-bottom: 8px;
}

.entity-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.entity-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.entity-detail {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.entity-address {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px 0;
}

.footer-contact-direct {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-footer-text);
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.contact-link i {
    font-size: 18px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.contact-link:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.contact-link:hover i {
    transform: scale(1.1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--color-footer-text);
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
    transform: translateX(4px);
}

.social-link:hover i {
    transform: scale(1.15);
}



.top-button {
    position: fixed;
    bottom: 22px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: var(--color-primary, #ff8f20);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    pointer-events: none;
}

.top-button.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.top-button:hover {
    background-color: var(--color-accent, #E67A00);
    transform: translateY(-3px) scale(1.05);
}

.top-button:active {
    transform: translateY(-1px) scale(1.02);
}




@media (max-width: 1280px) {
    .footer-container {
        padding: 70px 60px 120px;
        gap: 80px;
    }

    .footer-left {
        /* width: 32%; */
    }

    .footer-right-group {
        width: 58%;
        gap: 50px;
    }

    .footer-logo img {
        height: 55px;
    }
}

@media (max-width: 1024px) {
    .footer-container {
        padding: 60px 40px 120px;
        gap: 50px;
        flex-direction: column;
    }

    .footer-left {
        width: 100%;
        min-height: auto;
        margin-bottom: 0;
    }

    .footer-logo {
        margin-bottom: 20px;
    }

    .footer-logo img {
        height: 50px;
    }

    .footer-right-group {
        width: 100%;
        gap: 50px;
    }

    .footer-center {
        flex: 1;
    }

    .footer-right {
        width: 200px;
    }

    .footer-company {
        font-size: 12px;
    }

    .footer-copyright-text {
        font-size: 11px;
    }

    .entity-name,
    .entity-address,
    .contact-link,
    .social-link {
        font-size: 13px;
    }

    .footer-tag {
        font-size: 10px;
        padding: 5px 14px;
        margin-bottom: 20px;
    }
}

@media (max-width: 960px) {
    .top-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 15px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 50px 24px 60px;
        gap: 40px;
    }

    .footer-left,
    .footer-right-group {
        width: 100%;
    }

    .footer-right-group {
        flex-direction: column;
        gap: 36px;
    }

    .footer-center,
    .footer-right {
        width: 100%;
    }

    .footer-logo {
        margin-bottom: 16px;
    }

    .footer-logo img {
        height: 50px;
    }

    .footer-copyright {
        margin-top: 16px;
    }

    .footer-company {
        font-size: 12px;
    }

    .footer-copyright-text {
        font-size: 11px;
        margin-top: 8px;
    }

    .entity-name {
        font-size: 13px;
    }

    .entity-address,
    .contact-link,
    .social-link {
        font-size: 12px;
    }

    .footer-tag {
        font-size: 10px;
        padding: 5px 12px;
        margin-bottom: 18px;
    }

    .contact-link,
    .social-link {
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 40px 20px 60px;
        gap: 32px;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-company {
        font-size: 11px;
    }

    .footer-copyright-text {
        font-size: 10px;
    }

    .entity-title {
        font-size: 10px;
    }

    .entity-name {
        font-size: 12px;
    }

    .entity-detail,
    .entity-address {
        font-size: 11px;
    }

    .contact-link,
    .social-link {
        font-size: 12px;
    }

    .contact-link i {
        font-size: 16px;
    }

    .social-link i {
        font-size: 18px;
    }

    .footer-tag {
        font-size: 9px;
        padding: 4px 12px;
        margin-bottom: 16px;
    }

    .footer-divider {
        margin: 12px 0;
    }
}

@media (max-width: 390px) {
    .footer-logo img {
        width: 100%;
        height: auto;
    }
}

/* Sub */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 0 100px;
    background: var(--color-background);
}

.community-container {
    max-width: 100% !important;
    margin: 0 auto;
    background: var(--color-background-tertiary);
}

.mypage-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

/* @media screen and (max-width: 768px) {
    .community-container {
        padding: 0 20px;
    }
} */

.sub {
    /* padding-top: 130px; */
    padding-bottom: 50px;
    min-height: calc(100vh - 150px);
    background: var(--color-background);
}

.sub.mypage {
    padding-top: 70px;
    min-height: calc(100vh - 200px);
}

.sub-banner {
    width: 100%;
    height: 350px;
    /* aspect-ratio: 1920 / 350; */
    position: relative;
    overflow: hidden;
    background-color: #ccc;
}


@media (max-width: 768px) {
    .sub-banner {
        aspect-ratio: 1000 / 700;
    }
}

.sub-banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    line-height: 1.2;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.sub-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.sub-banner-title {
    font-size: 72px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px var(--color-shadow);
}

.sub-banner-subtitle {
    font-size: 24px;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px var(--color-shadow);
}

@media (max-width: 768px) {
    .sub-banner-title {
        font-size: 48px;
    }

    .sub-banner-subtitle {
        font-size: 18px;
    }
}

/* Common */
/* 공통 섹션 스타일 */
.section {
    width: 100%;
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* 공통 섹션 패딩 */
.section-padding {
    padding: 60px 100px;
}

.section-padding-lg {
    padding: 80px 100px;
}

.section-padding-sm {
    padding: 40px 100px;
}

/* 공통 그리드 레이아웃 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 공통 카드 스타일 */
.card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* 공통 이미지 플레이스홀더 */
.image-placeholder {
    background: var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-lighter);
}

/* 공통 반응형 여백 */
@media (max-width: 1400px) {
    .section-padding,
    .section-padding-lg,
    .section-padding-sm {
        padding: 60px 80px;
    }
}

@media (max-width: 1280px) {
    .section-padding,
    .section-padding-lg,
    .section-padding-sm {
        padding: 60px 60px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .section-padding,
    .section-padding-lg {
        padding: 50px 40px;
    }

    .section-padding-sm {
        padding: 40px 40px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-padding,
    .section-padding-lg {
        padding: 40px 20px;
    }

    .section-padding-sm {
        padding: 30px 20px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .section-padding,
    .section-padding-lg {
        padding: 30px 15px;
    }

    .section-padding-sm {
        padding: 25px 15px;
    }
}
