/* Variables & Reset */
:root {
    --primary-color: #333333;
    /* Deep Blue */
    --secondary-color: #d69e2e;
    /* Gold */
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --header-height: 60px;
}

#jjes-layout * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

#jjes-layout {
    font-family: 'Noto Sans KR', 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: clip;  /* hidden → clip: sticky 헤더가 깨지지 않도록 */

    /* ── 전체 너비 고정 + 가운데 정렬 ── */
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    position: relative;   /* fixed 헤더의 기준점 */
}

#jjes-layout a {
    text-decoration: none;
    color: inherit;
}

#jjes-layout ul {
    list-style: none;
}

#jjes-layout .container {
    padding: 0 20px;
}

/* Hide mobile-only sections on desktop and show on mobile (<= 768px) */
#jjes-layout .mobile-only {
    display: none !important;
}
@media (max-width: 768px) {
    #jjes-layout .mobile-only {
        display: block !important;
    }
}

/* 로그인/사용자 메뉴 — 항상 우측 정렬 */
#jjes-layout .im_memberMenu {
    margin-left: auto;
}

/* Header */
#jjes-layout .header {
    position: sticky;     /* fixed → sticky: #jjes-layout 너비를 자동으로 상속 */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#jjes-layout .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 1279px) {
    #jjes-layout .pc-sidebar-logo {
        padding: 0;
        height: auto;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

#jjes-layout .logo img {
    height: 35px;
    object-fit: contain;
}

#jjes-layout .menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}


/* ============================================
   모바일 메뉴 - 로그인 사용자 정보 패널
   ============================================ */

/* 전체 패널 */
#jjes-layout .nav-user-panel {
    background: linear-gradient(135deg, #1a365d 0%, #2a5298 100%);
    padding: 0 0 4px;
    flex-shrink: 0;
}

/* 인사말 영역 */
#jjes-layout .nav-user-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 10px;
}

#jjes-layout .nav-user-icon {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
    flex-shrink: 0;
}

#jjes-layout .nav-user-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

#jjes-layout .nav-user-name strong {
    display: block;
    font-size: 15px;
    color: #ffffff;
    font-weight: 700;
}

/* 퀵버튼 그리드 */
#jjes-layout .nav-user-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

}

#jjes-layout .nav-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
    cursor: pointer;
}

#jjes-layout .nav-quick-btn:active {
    transform: scale(0.95);
}

/* 버튼 색상 */
#jjes-layout .btn-admin {
    background: #3b82f6;
    color: #fff;
}

#jjes-layout .btn-purple {
    background: #7e57c2;
    color: #fff;
}

#jjes-layout .btn-teal {
    background: #5f9ea0;
    color: #fff;
}

#jjes-layout .btn-dark {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#jjes-layout .btn-mypage {
    background: var(--secondary-color);
    color: #fff;
}

#jjes-layout .nav-quick-btn:hover {
    opacity: 0.85;
}

/* 하단 회원정보 / 로그아웃 */
#jjes-layout .nav-user-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.15);
    z-index: 10;
}

#jjes-layout .nav-user-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

#jjes-layout .nav-user-link:hover {
    color: #ffffff;
}

#jjes-layout .nav-logout {
    color: #fca5a5;
}

#jjes-layout .nav-logout:hover {
    color: #f87171;
}

/* ============================================
   Mobile Nav - 3depth 좌측 슬라이딩 아코디언
   ============================================ */
#jjes-layout .mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 1000;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

#jjes-layout .mobile-nav.active {
    left: 0;
}

/* Nav Header */
#jjes-layout .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--primary-color);
    flex-shrink: 0;
}

#jjes-layout .nav-header img {
    height: 28px;
    
}

#jjes-layout .close-menu {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#jjes-layout .close-menu:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ---- Depth 1 ---- */
#jjes-layout .nav-list.depth1 {
    padding: 4px 0;
    flex: 1;
}

#jjes-layout .d1-item {
    border-bottom: 1px solid #f0f4f8;
}

#jjes-layout .d1-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

#jjes-layout .d1-link:hover {
    background: #f7fafc;
    color: var(--primary-color);
}

#jjes-layout .nav-icon {
    width: 28px;
    height: 28px;
    background: rgba(26, 54, 93, 0.07);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

#jjes-layout .d1-item.active>.d1-link .nav-icon {
    background: var(--primary-color);
    color: #fff;
}

#jjes-layout .nav-label {
    flex: 1;
}

#jjes-layout .nav-arrow {
    font-size: 11px;
    color: #b0b8c8;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

#jjes-layout .d1-item.active>.d1-link .nav-arrow {
    transform: rotate(90deg);
    color: var(--primary-color);
}

/* ---- Depth 2 ---- */
#jjes-layout .sub-nav.depth2 {
    display: none;
    background: #f7fafc;
    border-top: 1px solid #e8edf5;
    padding: 2px 0;
}

#jjes-layout .d1-item.active>.sub-nav.depth2 {
    display: block;
}

#jjes-layout .d2-item {
    border-bottom: 1px solid #edf1f7;
}

#jjes-layout .d2-item:last-child {
    border-bottom: none;
}

#jjes-layout .d2-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px 7px 34px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#jjes-layout .d2-link:hover {
    background: #edf2f7;
    color: var(--primary-color);
}

#jjes-layout .d2-arrow {
    font-size: 10px;
    color: #b0b8c8;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

#jjes-layout .d2-item.active>.d2-link .d2-arrow {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

#jjes-layout .d2-item.active>.d2-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* ---- Depth 3 ---- */
#jjes-layout .depth3 {
    display: none;
    background: #fff;
    border-top: 1px solid #e8edf5;
    padding: 2px 0;
}

#jjes-layout .d2-item.active>.depth3 {
    display: block;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#jjes-layout .depth3 li a {
    display: flex;
    align-items: center;
    padding: 6px 12px 6px 48px;
    font-size: 12px;
    color: #718096;
    transition: color 0.2s, padding-left 0.2s;
    position: relative;
}

#jjes-layout .depth3 li a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #b0b8c8;
    border-radius: 50%;
    position: absolute;
    left: 42px;
    transition: background 0.2s;
}

#jjes-layout .depth3 li a:hover {
    color: var(--secondary-color);
    padding-left: 56px;
}

#jjes-layout .depth3 li a:hover::before {
    background: var(--secondary-color);
}

/* Nav Overlay */
#jjes-layout .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#jjes-layout .nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Main Content Padding - removed because .page-wrapper already handles it on mobile and grid handles it on PC */
/* #jjes-layout main {
    padding-top: var(--header-height);
} */

/* Hero Slider Section */
#jjes-layout .hero-slider {
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
}

#jjes-layout #hero-youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}

#jjes-layout .hero {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    width: 100%;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    padding-top: 15px;
    box-sizing: border-box;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 767px) {
    #jjes-layout .hero-slider {
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        min-height: 320px !important;
    }
    #jjes-layout .hero {
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        min-height: 320px !important;
    }
    #jjes-layout #hero-youtube-video {
        top: 50% !important;
        left: 50% !important;
        width: 133.33vw !important; /* 75vw * 16/9 */
        height: 75vw !important;
        min-height: 320px !important;
        min-width: 568px !important; /* 320px * 16/9 */
        transform: translate(-50%, -50%) !important;
    }
}

#jjes-layout .swiper-pagination-bullet {
    background: var(--bg-white);
    opacity: 0.5;
}

#jjes-layout .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    opacity: 1;
}

#jjes-layout .hero-content {
    padding: 0 20px;
}

#jjes-layout .badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    backdrop-filter: blur(5px);
}

#jjes-layout .hero h1 {
    font-size: clamp(20px, 2.5vw, 32px);
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 700;
}

#jjes-layout .hero .highlight {
    color: var(--secondary-color);
}

#jjes-layout .hero p {
    font-size: clamp(12px, 1.2vw, 15px);
    margin-bottom: 0;
    opacity: 0.9;
}

#jjes-layout .hero-buttons {
    display: none; /* Hidden as requested */
}


#jjes-layout .btn {
    display: inline-block;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    text-align: center;
}

#jjes-layout .btn-primary {
    background: var(--secondary-color);
    color: var(--bg-white);
}

#jjes-layout .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

/* Quick Links */
#jjes-layout .quick-links {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

#jjes-layout .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#jjes-layout .quick-card {
    background: var(--bg-white);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

#jjes-layout .quick-card:active {
    transform: scale(0.95);
}

#jjes-layout .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(26, 54, 93, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--primary-color);
    font-size: 20px;
}

#jjes-layout .quick-card h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 5px;
}

#jjes-layout .quick-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Board Tabs Section */
#jjes-layout .board-tabs-section {
    padding: 0px 10px 10px;
    background: var(--bg-white);
    margin-top: 5px;
}

#jjes-layout .board-tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

#jjes-layout .tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 5px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

#jjes-layout .tab-btn.active {
    color: var(--primary-color);
}

#jjes-layout .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Section Title (for separate non-tab sections) */
#jjes-layout .section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 12px 5px;
    position: relative;
    display: inline-block;
    cursor: default;
}

#jjes-layout .section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

#jjes-layout .tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

#jjes-layout .tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── 갤러리 카드 그리드 ── */
#jjes-layout .gallery-card-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    gap: 8px;
    padding: 4px 10px 10px;
    width: 100%;
}
#jjes-layout .gallery-card-grid::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

/* 섹션 컨테이너 패딩 제거 → 그리드 기준을 섹션 전체 폭으로 */
#jjes-layout .board-tabs-section .container {
    padding-left: 0;
    padding-right: 0;
}

/* 갤러리 탭 헤더 + 더보기 링크 */
#jjes-layout .gallery-tabs-header {
    padding: 0 10px;
    margin-bottom: 8px;
    align-items: center;
}

#jjes-layout .gallery-more-link {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 0 8px 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
    font-weight: 500;
}

#jjes-layout .gallery-more-link:hover {
    color: var(--primary-color);
}

#jjes-layout .gallery-more-link i {
    font-size: 10px;
    margin-left: 2px;
}

/* 갤러리 카드 */
#jjes-layout .gallery-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(20% - 7px); /* 5 cards visible on desktop */
    min-width: 0;
    scroll-snap-align: start;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

#jjes-layout .gallery-card-skeleton {
    flex: 0 0 calc(20% - 7px);
    min-width: 0;
    aspect-ratio: 4 / 3;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

#jjes-layout .gallery-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* 이미지 영역 */
#jjes-layout .gallery-card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8ecf0;
    flex-shrink: 0;
}

#jjes-layout .gallery-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

#jjes-layout .gallery-card:hover .gallery-card-thumb img {
    transform: scale(1.06);
}

/* 제목 영역 (이미지 아래) */
#jjes-layout .gallery-card-title {
    padding: 5px 6px 6px;
    color: #334155;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    background: #fff;
    border-top: 1px solid #f0f4f8;
}

#jjes-layout .gallery-card-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 13px;
}

/* 로딩 스켈레톤 */
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 모바일: 가로 스크롤 슬라이더 */
@media (max-width: 767px) {
    #jjes-layout .gallery-card-grid {
        padding: 4px 12px 10px;
    }
    #jjes-layout .gallery-card {
        flex: 0 0 45%;
        border-radius: 10px;
    }
    #jjes-layout .gallery-card-skeleton {
        flex: 0 0 45%;
    }
    #jjes-layout .gallery-card-title {
        font-size: 11px;
        padding: 5px 8px 6px;
    }
        gap: 0;
        box-sizing: border-box;
    }

    .academy-sub-card:not(:last-child) {
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    }

    .academy-feat-thumb, .academy-sub-thumb {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        flex-shrink: 0;
        border-radius: 0;
    }
    
    .academy-feat-thumb img, .academy-sub-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .academy-feat-content, .academy-sub-content {
        padding: 8px 10px 10px !important;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .academy-feat-content h4, .academy-sub-content h4 {
        font-size: 12px !important;
        font-weight: 700;
        color: #334155;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
    }

    .academy-feat-content p, .academy-sub-content p {
        font-size: 11px !important;
        color: #64748b;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    }
}

#jjes-layout .more-btn {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: var(--bg-light);
    color: var(--text-main);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

#jjes-layout .more-btn:hover {
    background: #e2e8f0;
}

#jjes-layout .more-btn i {
    margin-left: 5px;
    font-size: 12px;
}

#jjes-layout .notice-list li {
    border-bottom: 1px solid var(--border-color);
}

#jjes-layout .notice-list li:last-child {
    border-bottom: none;
}

#jjes-layout .notice-list a {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

#jjes-layout .tag {
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

#jjes-layout .title {
    font-size: 14px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    margin-right: 10px;
}

#jjes-layout .date {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* CTA Section */
#jjes-layout .cta-section {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px 30px 10px;
    text-align: center;
}

#jjes-layout .cta-section h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

#jjes-layout .cta-section p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 25px;
}

#jjes-layout .contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#jjes-layout .contact-info a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
}

/* Footer */
#jjes-layout .footer {
    background: #111827;
    color: #9ca3af;
    padding: 50px 0 30px;
    font-size: 13.5px;
    border-top: 1px solid #1f2937;
}

#jjes-layout .footer-logo img {
    height: 36px;
    filter: grayscale(1) brightness(2.5);
    margin-bottom: 25px;
}

#jjes-layout .footer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#jjes-layout .footer-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

#jjes-layout .footer-info-row .info-icon {
    color: #d69e2e;
    font-size: 14px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

#jjes-layout .footer-info-row .info-text {
    flex: 1;
}

#jjes-layout .footer-info-row strong {
    color: #f3f4f6;
    font-weight: 500;
}

#jjes-layout .footer-info-row .divider {
    color: #4b5563;
    margin: 0 6px;
}

#jjes-layout .copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1f2937;
    font-size: 12px;
    text-align: center;
    color: #6b7280;
}

/* Partner & Certification Banners */
#jjes-layout .partner-banners {
    padding: 20px 0 40px;
    background: var(--bg-white);
}

#jjes-layout .partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on all devices */
    gap: 8px;
    /* Tighter gap for mobile */
}

#jjes-layout .partner-card {
    display: flex;
    flex-direction: column;
    /* Vertical stack for mobile */
    align-items: center;
    text-align: center;
    padding: 12px 5px;
    /* Smaller padding */
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

#jjes-layout .partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

#jjes-layout .partner-icon {
    width: 38px;
    /* Smaller icon for mobile */
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 0;
    margin-bottom: 8px;
    flex-shrink: 0;
}

#jjes-layout .partner-text {
    flex-grow: 1;
}

#jjes-layout .partner-text h4 {
    font-size: 11px;
    /* Smaller text for mobile */
    color: var(--text-main);
    margin-bottom: 2px;
    font-weight: 700;
    line-height: 1.2;
    word-break: keep-all;
}

#jjes-layout .partner-text p {
    font-size: 9px;
    /* Smaller text for mobile */
    font-weight: 600;
    line-height: 1.2;
    word-break: keep-all;
}

/* Specific colors */
#jjes-layout .pt-tesda .partner-icon {
    background: rgba(26, 54, 93, 0.1);
    color: #1a365d;
}

#jjes-layout .pt-tesda p {
    color: #dd6b20;
}

#jjes-layout .pt-ielts .partner-icon {
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
}

#jjes-layout .pt-ielts p {
    color: #e53e3e;
}

#jjes-layout .pt-ssp .partner-icon {
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
}

#jjes-layout .pt-ssp p {
    color: #dd6b20;
}

#jjes-layout .pt-faq .partner-icon {
    background: rgba(221, 107, 32, 0.1);
    color: #dd6b20;
}

#jjes-layout .pt-faq p {
    color: #dd6b20;
}

#jjes-layout .pt-permit .partner-icon {
    background: rgba(214, 158, 46, 0.1);
    color: #d69e2e;
}

#jjes-layout .pt-permit p {
    color: #dd6b20;
}

#jjes-layout .pt-online .partner-icon {
    background: rgba(213, 63, 140, 0.1);
    color: #d53f8c;
}

#jjes-layout .pt-online p {
    color: #dd6b20;
}

@media (min-width: 768px) {
    #jjes-layout .partner-grid {
        gap: 20px;
    }

    #jjes-layout .partner-card {
        flex-direction: row;
        text-align: left;
        padding: 20px;
    }

    #jjes-layout .partner-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        font-size: 28px;
        margin-right: 18px;
        margin-bottom: 0;
    }

    #jjes-layout .partner-text h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    #jjes-layout .partner-text p {
        font-size: 13px;
    }
}


/* ================================================================
   반응형 레이아웃 — 다모앙 스타일 단계별 사이드바
   모바일(~1023px)  : 1단 (헤더 + 콘텐츠)
   태블릿(1024px~)  : 2단 (헤더 + 콘텐츠 + 우측사이드)
   PC(1280px~)      : 3단 (좌측사이드 + 헤더 + 콘텐츠 + 우측사이드)
   ================================================================ */

/* ── 모바일 기본값 ── */
#jjes-layout .page-wrapper {
    display: block;
}

#jjes-layout .pc-sidebar {
    display: none;
}

#jjes-layout .main-content {
    min-width: 0;
}

/* 모바일: 우측 사이드바 숨김 (파트너 배너만 노출) */
#jjes-layout .right-sidebar {
    display: block;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

#jjes-layout .right-sidebar > .rs-widget {
    display: none;
}

#jjes-layout .right-sidebar > .partner-banners {
    display: block;
}


/* ================================================================
   태블릿 1024px+ — 우측 사이드바 등장, 2단 레이아웃
   좌측 사이드바는 아직 없음
   ================================================================ */
@media (min-width: 1024px) {

    /* grid: [헤더 전체] / [콘텐츠 | 우측사이드] */
    #jjes-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "topbar   topbar"
            "content  rightbar"
            "footer   footer";
        height: 100vh;        /* 스크롤 컨테이너로 만들어 sticky 작동 */
        overflow-y: auto;
    }

    #jjes-layout .page-wrapper {
        display: contents;
    }

    /* 헤더: 상단 전체 폭, 스크롤 시 고정 */
    #jjes-layout .header {
        grid-area: topbar;
        position: sticky;
        top: 0;
        width: auto;
        z-index: 100;
        box-shadow: 0 1px 0 #e2e8f0;
        border-bottom: none;
        background: #fff;
        align-self: start;  /* grid 안에서 sticky 정상 작동 */
    }

    /* 중앙 콘텐츠 */
    #jjes-layout .main-content {
        grid-area: content;
        background: #f7fafc;
        min-width: 0;
    }

    /* 우측 사이드바 등장 */
    #jjes-layout .right-sidebar {
        grid-area: rightbar;
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: #f0f4f8;
        border-left: 1px solid #e2e8f0;
        padding: 14px 10px;
        
        /* Sticky Right Sidebar for PC/Tablet (>= 1024px) */
        position: sticky !important;
        top: var(--header-height) !important;
        align-self: start !important;
    }

    /* 우측 사이드바 위젯 표시 */
    #jjes-layout .right-sidebar > .rs-widget {
        display: block;
    }

    #jjes-layout .right-sidebar .partner-banners {
        padding: 12px 0;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
        margin-bottom: 5px;
    }

    #jjes-layout .right-sidebar .partner-banners .container {
        padding: 0 8px;
        width: 100%;
    }

    #jjes-layout .right-sidebar .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #jjes-layout .right-sidebar .partner-card {
        padding: 10px 4px;
        flex-direction: column;
        text-align: center;
        border-radius: 8px;
    }

    #jjes-layout .right-sidebar .partner-icon {
        width: 36px;
        height: 36px;
        margin-right: 0;
        margin-bottom: 6px;
        font-size: 18px;
    }

    #jjes-layout .right-sidebar .partner-text h4 { font-size: 10px; margin-bottom: 2px; }
    #jjes-layout .right-sidebar .partner-text p  { font-size: 8px; }

    /* 푸터 */
    #jjes-layout .footer {
        grid-area: footer;
    }
}


/* ================================================================
   PC 1280px+ — 좌측 사이드바 등장, 완전한 3단 레이아웃
   헤더와 좌측 사이드바가 흰색으로 연결되어 다모앙 스타일의 L자형 느낌
   ================================================================ */
@media (min-width: 1280px) {

    /* 모바일 메뉴 숨기기 */
    #jjes-layout .menu-toggle,
    #jjes-layout .mobile-nav,
    #jjes-layout .nav-overlay {
        display: none !important;
    }

    /* grid: [헤더 전체 3열] / [좌측사이드 | 콘텐츠 | 우측사이드] */
    #jjes-layout {
        grid-template-columns: 220px 1fr 320px;
        grid-template-areas:
            "topbar   topbar   topbar"
            "sidebar  content  rightbar"
            "sidebar   footer   rightbar";
    }

    /* 헤더: topbar 영역 (우측 2열) — 좌측 사이드바와 흰색으로 연결 */
    #jjes-layout .header {
        grid-area: topbar;
        box-shadow: none;
        border-bottom: 1px solid #e2e8f0;
        background: #fff;
    }

    /* 좌측 사이드바에 로고가 있으므로 헤더 센터 로고 숨김 */
    #jjes-layout .header .logo {
        display: none;
    }

    /* 좌측 사이드바 등장 — 헤더 아래부터 시작, 헤더와 흰색 연결 */
    #jjes-layout .pc-sidebar {
        grid-area: sidebar;
        display: flex;
        flex-direction: column;
        position: sticky;
        top: var(--header-height);           /* 헤더(60px) 바로 아래 고정 */
        height: calc(100vh - var(--header-height));
        overflow-y: auto;
        background: #fff;              /* 헤더와 동일한 흰색 */
        border-right: 1px solid #e2e8f0;
        scrollbar-width: thin;
        z-index: 90;                   /* 헤더(z:100)보다 낮게 */
    }

    #jjes-layout .pc-sidebar::-webkit-scrollbar { width: 3px; }
    #jjes-layout .pc-sidebar::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 2px;
    }
}

/* 1440px+: 사이드바 폭 확장 */
@media (min-width: 1440px) {
    #jjes-layout {
        grid-template-columns: 240px 1fr 320px;
    }
}

/* PC 사용자 패널 */
#jjes-layout .pc-user-panel {
    background: linear-gradient(160deg, #5C5B5B 0%, #3A3939 100%);
    padding: 10px;
    flex-shrink: 0;
}

#jjes-layout .pc-user-greeting {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}

#jjes-layout .pc-user-avatar {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.85);
}

#jjes-layout .pc-user-greeting small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

#jjes-layout .pc-user-greeting strong {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

#jjes-layout .pc-user-actions {
    display: flex;
    gap: 5px;
}

#jjes-layout .pc-user-btn {
    flex: 1;
    text-align: center;
    padding: 5px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.2s;
}

#jjes-layout .pc-user-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

#jjes-layout .pc-btn-logout {
    background: rgba(220, 38, 38, 0.3);
    border-color: rgba(220, 38, 38, 0.4);
}

#jjes-layout .pc-btn-logout:hover {
    background: rgba(220, 38, 38, 0.5);
}

/* PC 3depth 네비게이션 */
#jjes-layout .pc-nav {
    flex: 1;
}

#jjes-layout .pc-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#jjes-layout .pc-d1-item {
    border-bottom: 1px solid #f1f5f9;
}

#jjes-layout .pc-d1-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1a365d;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

#jjes-layout .pc-d1-link i:first-child {
    width: 16px;
    text-align: center;
    color: #d69e2e;
    font-size: 12px;
}

#jjes-layout .pc-d1-link span {
    flex: 1;
}

#jjes-layout .pc-arrow {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.2s;
}

#jjes-layout .pc-d1-item.active>.pc-d1-link {
    background: #eef2ff;
}

#jjes-layout .pc-d1-item.active>.pc-d1-link .pc-arrow {
    transform: rotate(180deg);
}

#jjes-layout .pc-d1-link:hover {
    background: #f8fafc;
}

#jjes-layout .pc-depth2 {
    display: none;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    background: #f8fafc;
    border-top: 1px solid #e8edf5;
}

#jjes-layout .container{
    max-width: 863px;
}

#jjes-layout .pc-d1-item.active>.pc-depth2 {
    display: block;
}

#jjes-layout .pc-d2-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px 7px 28px;
    font-size: 12px;
    color: #4a5568;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

#jjes-layout .pc-d2-link:hover {
    color: #1a365d;
    background: #eef2ff;
}

#jjes-layout .pc-d2-item.active>.pc-d2-link {
    color: #1a365d;
    font-weight: 600;
}

#jjes-layout .pc-d2-arrow {
    font-size: 9px;
    color: #94a3b8;
    transition: transform 0.2s;
}

#jjes-layout .pc-d2-item.active>.pc-d2-link .pc-d2-arrow {
    transform: rotate(90deg);
}

#jjes-layout .pc-depth3 {
    display: none;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    background: #fff;
    border-top: 1px solid #e8edf5;
}

#jjes-layout .pc-d2-item.active>.pc-depth3 {
    display: block;
}

#jjes-layout .pc-depth3 li a {
    display: block;
    padding: 5px 12px 5px 40px;
    font-size: 11px;
    color: #718096;
    text-decoration: none;
    transition: color 0.15s;
    position: relative;
}

#jjes-layout .pc-depth3 li a::before {
   
    position: absolute;
    left: 28px;
    color: #cbd5e0;
}

#jjes-layout .pc-depth3 li a:hover {
    color: #1a365d;
}

/* 우측 사이드바 */
#jjes-layout .rs-cta {
    background: linear-gradient(135deg, #1a365d, #2a5298);
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

#jjes-layout .rs-cta h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
}

#jjes-layout .rs-cta p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 10px;
}

#jjes-layout .rs-cta-btn {
    display: inline-block;
    padding: 7px 18px;
    background: #d69e2e;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

#jjes-layout .rs-cta-btn:hover {
    opacity: 0.85;
}

#jjes-layout .rs-widget {
    border-bottom: 1px solid #e2e8f0;
}

#jjes-layout .rs-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: #fff;
    border-bottom: 1px solid #e8edf5;
}
#jjes-layout .rs-gallery-header  {
    font-size: 18px;

    font-weight: 700;
    padding:15px;
}

#jjes-layout .rs-widget-header span {
    font-size: 12px;
    font-weight: 700;
    color: #1a365d;
}

#jjes-layout .rs-more {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: none;
}

#jjes-layout .rs-more:hover {
    color: #1a365d;
}

#jjes-layout .rs-widget-body {
    padding: 0;
    font-size: 11px;
}

#jjes-layout .rs-widget-body .title {
    font-size: 12px;
}

#jjes-layout .rs-widget-body a {
    padding: 0;
    font-size: 10px;
    margin: 5px;
}


#jjes-layout .rs-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
    background: transparent;
    border: none;
    padding: 15px 10px;
}

#jjes-layout .rs-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    text-decoration: none;
    transition: transform 0.2s ease;
}

#jjes-layout .rs-quick-item:hover {
    transform: translateY(-2px);
}

#jjes-layout .rs-quick-item i {
    font-size: 18px;
    color: #d69e2e;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

#jjes-layout .rs-quick-item:hover i {
    border-color: #1a365d;
    color: #1a365d;
    background: #f8fafc;
}

#jjes-layout .rs-quick-item span {
    font-size: 11px;
    color: #475569;
    font-weight: 500;
    text-align: center;
    word-break: keep-all;
    line-height: 1.3;
}

#jjes-layout .rs-sns-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 12px 12px;
}

#jjes-layout .rs-sns-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}

#jjes-layout .rs-sns-btn:hover {
    opacity: 0.85;
}

#jjes-layout .rs-youtube {
    background: #ff0000;
}

#jjes-layout .rs-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

#jjes-layout .rs-facebook {
    background: #1877f2;
}

/* ================================================================
   PC 사이드바 - 로고 영역 & 퀵 메뉴 버튼
   ================================================================ */

/* 사이드바 로고 */
#jjes-layout .pc-sidebar-logo {
    display: flex;
    align-items: center;
    padding: 14px 16px 12px;
    /* border-bottom: 1px solid #e8edf5;
    background: #fff; */
    filter: drop-shadow(-0.1px -0.1px 0px rgb(253, 253, 253,0.7));
    flex-shrink: 0;
    height: var(--header-height);
}

#jjes-layout .pc-sidebar-logo img {
    height: 32px;
    object-fit: contain;
}

/* 퀵 메뉴 탭 버튼 */
#jjes-layout .pc-quick-nav {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    flex-shrink: 0;
    background: #fff;
}

#jjes-layout .pc-qnav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 4px;
    font-size: 10px;
    color: #718096;
    text-decoration: none;
    border-right: 1px solid #f1f5f9;
    transition: background 0.15s, color 0.15s;
    font-weight: 600;
}

#jjes-layout .pc-qnav-btn:last-child {
    border-right: none;
}

#jjes-layout .pc-qnav-btn i {
    font-size: 15px;
}

#jjes-layout .pc-qnav-btn:hover {
    background: #f0f4f8;
    color: #1a365d;
}

#jjes-layout .pc-qnav-btn.pc-qnav-highlight {
    color: #d69e2e;
}

#jjes-layout .pc-qnav-btn.pc-qnav-highlight:hover {
    background: #fffbeb;
}

/* 비로그인 로그인 버튼 */
#jjes-layout .pc-login-prompt {
    padding: 10px 12px;
    border-bottom: 1px solid #e8edf5;
    flex-shrink: 0;
}

#jjes-layout .pc-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    background: #4F4E4E;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

#jjes-layout .pc-login-btn:hover {
    background: #3A3939;
}

/* ================================================================
   우측 사이드바 — 카드 박스 스타일 (재정의)
   ================================================================ */
#jjes-layout .right-sidebar .rs-cta,
#jjes-layout .right-sidebar .rs-widget {
    border: none;
    border-bottom: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    background: #fff;
    flex-shrink: 0;
}

#jjes-layout .right-sidebar .rs-cta {
    background: linear-gradient(135deg, #1a365d, #2a5298);
}

/* 우측 사이드바 탭 전용 스타일 */
#jjes-layout .rs-tabs-header {
    display: flex;
    /* background: #f8fafc; */
    border-bottom: 1px solid #e8edf5;
}

#jjes-layout .rs-tabs-header .tab-btn {
    flex: 1;
    padding: 10px 5px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

#jjes-layout .rs-tabs-header .tab-btn {
    flex: 1;
    padding: 10px 5px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}


#jjes-layout .rs-tabs-header .tab-btn.active {
    color: #1a365d;
    border-bottom-color: #1a365d;
    background: #fff;
}

#jjes-layout .rs-more-link {
    display: block;
    text-align: right;
    padding: 8px 12px;
    font-size: 10px;
    color: #94a3b8;
    text-decoration: none;
    border-top: 1px dashed #e8edf5;
}

#jjes-layout .rs-more-link:hover {
    color: #1a365d;
}

/* Custom Image Modal */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.custom-modal.active {
    display: flex;
}

.custom-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.custom-modal .modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: calc(100vh - 100px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.custom-modal .modal-header {
    background: var(--primary-color);
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.custom-modal .modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.custom-modal .modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.custom-modal .modal-content img {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.custom-modal .modal-desc-box {
    background: #f8fafc;
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    flex-shrink: 0;
}

.custom-modal .modal-desc-box i {
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 2px;
}

.custom-modal .modal-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.custom-modal .modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.custom-modal .modal-close-btn:hover {
    color: #fff;
}

/* ==========================================================================
   Grade Banner Section (3-Line Achievement Rolling Banner)
   ========================================================================== */
#jjes-layout .grade-banner-section {
    margin: 0px auto 15px !important;
    padding: 0 !important;
    width: 100% !important;
    
}

#jjes-layout .grade-banner-section .container {
    padding: 0 !important;
    max-width: 100% !important;
}

#jjes-layout .grade-banner-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: relative;
    overflow: hidden;
}

#jjes-layout .grade-banner-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(26, 54, 93, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#jjes-layout .grade-banner-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}

#jjes-layout .grade-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: #1a365d;
    color: #ffd700;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(26, 54, 93, 0.1);
}

#jjes-layout .grade-banner-left h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

#jjes-layout .grade-banner-left p {
    font-size: 14px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

#jjes-layout .grade-banner-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1a365d;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 8px;
    transition: all 0.2s ease;
    border-bottom: 1px dashed #1a365d;
    padding-bottom: 2px;
}

#jjes-layout .grade-banner-more:hover {
    color: #2563eb;
    border-color: #2563eb;
    gap: 10px;
}

#jjes-layout .grade-banner-right {
    position: relative;
    width: 100%;
    z-index: 2;
    overflow: hidden;
}

#jjes-layout .grade-banner-swiper {
    width: 100%;
    height: 120px !important;
    overflow: hidden;
}

#jjes-layout .grade-banner-slide-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    height: 100%;
}

#jjes-layout .grade-banner-item {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important; */
    border-radius: 0;
    padding: 8px 10px !important;
    text-decoration: none;
    color: #717171 !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
    box-shadow: none;
    height: 38px;
    box-sizing: border-box;
}

#jjes-layout .grade-banner-item:last-child {
    border-bottom: none !important;
}

#jjes-layout .grade-banner-item:hover {
    color: #1a365d !important;
    padding-left: 4px !important;
}

#jjes-layout .gb-badge {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: 1px solid var(--secondary-color);
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 10px;
    font-weight: 700;
    margin-right: 12px;
    white-space: nowrap;
    line-height: 1.2;

}

#jjes-layout .grade-banner-item .gb-title {
    flex: 1;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #717171;
}

#jjes-layout .grade-banner-item .gb-arrow {
    font-size: 12px;
    color: #b0afaf !important;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

#jjes-layout .grade-banner-item:hover .gb-arrow {
    transform: translateX(3px);
    color: #1a365d !important;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    #jjes-layout .grade-banner-container {
        padding: 0 !important;
    }
    
    #jjes-layout .grade-banner-swiper {
        height: 120px !important;
    }
}

/* Swiper Pagination styling for Grade Banner */
#jjes-layout .grade-banner-pagination {
    position: static !important;
    margin-top: 10px !important;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

#jjes-layout .grade-banner-pagination .swiper-pagination-bullet {
    background: #cbd5e1 !important;
    opacity: 1 !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
}

#jjes-layout .grade-banner-pagination .swiper-pagination-bullet-active {
    background: var(--bullet-bg, #1a365d) !important;
    width: 18px !important;
    border-radius: 4px !important;
}

/* Skeleton Loading Keyframes */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Gallery Scroll Wrapper & Navigation Buttons */
.gallery-scroll-wrapper {
    position: relative;
    width: 100%;
}

.gallery-scroll-btn {
    position: absolute;
    top: calc(50% - 10px); /* 화살표가 위아래로 치우치지 않게 보정 */
    transform: translateY(-50%);
    width: 30px; /* 크기 축소 */
    height: 30px; /* 크기 축소 */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 13px; /* 아이콘 크기 살짝 축소 */
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    opacity: 0.9; /* PC와 모바일 모두 기본 노출 */
    pointer-events: auto;
}

.gallery-scroll-btn.inactive {
    opacity: 0 !important;
    pointer-events: none !important;
}

.gallery-scroll-btn:hover {
    background: #ffffff;
    color: #1a365d;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16);
    opacity: 1;
}

.gallery-scroll-btn.prev-btn {
    left: 2px; /* 가장자리에 최대한 가깝게 이동 */
}

.gallery-scroll-btn.next-btn {
    right: 2px; /* 가장자리에 최대한 가깝게 이동 */
}

/* 페이지네이션 점 표시기 */
.gallery-scroll-dots {
    display: flex; /* PC와 모바일 모두 항시 flex로 표시 */
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    width: 100%;
}

.gallery-scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-scroll-dot.active {
    background: var(--primary-color);
    width: 16px; /* 활성화된 점은 타원형태(pill-shape)로 표현 */
    border-radius: 3px;
}

/* Hide original quick-links */
.quick-links {
    /* display: none !important; */
}

/* ==========================================================================
   Main Quick Menu Section (LGE Circle Grid Style)
   ========================================================================== */
.main-quick-menu-section {
    background: #ffffff;
    padding: 35px 0 25px;
    width: 100%;
}

.main-quick-menu-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.quick-menu-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.quick-menu-item {
    text-align: center;
}

.quick-menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #334155;
    transition: transform 0.2s ease;
}

.quick-menu-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}

.quick-menu-icon-wrapper i {
    font-size: 22px;
    color: #334155;
    transition: color 0.3s ease;
}

.quick-menu-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #475569;
    transition: color 0.2s ease;
    white-space: nowrap;
}

/* Hover effects */
.quick-menu-item:hover .quick-menu-icon-wrapper {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(26, 54, 93, 0.1);
    border-color: #1a365d;
    background: #f8fafc;
}

.quick-menu-item:hover .quick-menu-icon-wrapper i {
    color: #1a365d;
}

.quick-menu-item:hover .quick-menu-label {
    color: #1a365d;
    font-weight: 600;
}

/* Rounded overlays (badges) resembling ThinQ events */
.quick-menu-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444; /* ThinQ Red */
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
}

.quick-menu-badge.badge-blue {
    background: #2563eb;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .quick-menu-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px 10px;
    }
}

@media (max-width: 480px) {
    .main-quick-menu-section {
        padding: 20px 0 15px;
    }
    
    .quick-menu-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 6px;
    }
    
    .quick-menu-icon-wrapper i {
        font-size: 17px;
    }
    
    .quick-menu-label {
        font-size: 11px;
    }
    
    .quick-menu-badge {
        font-size: 7.5px;
        padding: 1.5px 5px;
        bottom: -4px;
    }
}

/* ==========================================================================
   Facility Gallery Section & Lightbox Styles
   ========================================================================== */

/* Tabs styling */
.facility-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 10px;
}

#jjes-layout .facility-tab-btn {
    padding: 6px 16px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

#jjes-layout .facility-tab-btn:hover {
    background: #f8fafc;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

#jjes-layout .facility-tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(26, 54, 93, 0.15);
}

/* Gallery Grid - overridden to horizontal scroll flex container */
#jjes-layout .facility-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 15px !important;
    padding: 4px 10px 12px !important;
    width: 100% !important;
}

#jjes-layout .facility-grid::-webkit-scrollbar {
    display: none !important;
}

#jjes-layout .facility-card-item {
    flex: 0 0 calc(25% - 11.25px) !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    margin-bottom: 0 !important;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#jjes-layout .facility-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#jjes-layout .facility-card-item a {
    text-decoration: none;
    display: block;
}

#jjes-layout .facility-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

#jjes-layout .facility-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#jjes-layout .facility-card-item:hover .facility-card-thumb img {
    transform: scale(1.08);
}

#jjes-layout .facility-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#jjes-layout .facility-card-item:hover .facility-card-overlay {
    opacity: 1;
}

#jjes-layout .facility-card-overlay i {
    color: #ffffff;
    font-size: 24px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#jjes-layout .facility-card-item:hover .facility-card-overlay i {
    transform: scale(1);
}

#jjes-layout .facility-card-info {
    padding: 12px 16px !important;
}

#jjes-layout .facility-card-info h4 {
    margin: 0 0 4px !important;
    font-size: 14px !important;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#jjes-layout .facility-card-info p {
    margin: 0;
    font-size: 11px !important;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lightbox Modal (Immersive Fullscreen Gallery) */
.facility-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(11, 15, 25, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px;
    box-sizing: border-box;
}

.facility-lightbox.open {
    display: flex;
    animation: facilityFadeIn 0.25s ease-out;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 34px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    z-index: 10010;
}
.lightbox-close:hover {
    color: #ef4444;
    transform: scale(1.1);
}

/* Top Category Tabs */
.lightbox-category-nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 10px;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    box-sizing: border-box;
}
.lightbox-category-nav::-webkit-scrollbar {
    display: none;
}

.lightbox-category-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 6px 14px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}
.lightbox-category-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}
.lightbox-category-tab.active {
    background: #d69e2e;
    border-color: #d69e2e;
    color: #0b0f19;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(214, 158, 46, 0.3);
}

/* Main Image Viewer Container */
.lightbox-main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    gap: 20px;
    margin: 15px 0;
}

.lightbox-content-wrapper {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: facilityScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.lightbox-image-box {
    width: 100%;
    height: 52vh;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.lightbox-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Captions & Counter */
.lightbox-caption-wrapper {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}
.lightbox-caption {
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.lightbox-caption-text {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}
.lightbox-caption h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}
.lightbox-caption p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lightbox-counter {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
}

/* Bottom Thumbnail Strip */
.lightbox-thumbnail-strip-wrap {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0 10px 0;
    display: flex;
    justify-content: center;
}
.lightbox-thumbnail-strip-wrap::-webkit-scrollbar {
    display: none;
}
.lightbox-thumbnail-strip {
    display: flex;
    gap: 8px;
    margin: 0 auto;
    padding: 0 20px;
}

.lightbox-thumb-item {
    width: 72px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    background: #090d16;
}
.lightbox-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lightbox-thumb-item:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}
.lightbox-thumb-item.active {
    opacity: 1;
    border-color: #d69e2e;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(214, 158, 46, 0.35);
}

/* Navigation Buttons override */
.lightbox-nav-btn {
    position: static !important;
    transform: none !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.25s ease !important;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    outline: none;
}
.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.1);
}
.lightbox-nav-btn:active {
    transform: scale(0.95) !important;
}

@keyframes facilityFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes facilityScaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .lightbox-content-wrapper {
        max-width: 700px;
    }
    .lightbox-image-box {
        height: 44vh;
    }
}
@media (max-width: 768px) {
    .facility-lightbox {
        padding: 12px 10px;
    }
    .lightbox-close {
        top: 10px;
        right: 12px;
        font-size: 28px;
    }
    .lightbox-category-nav {
        border-radius: 20px;
        padding: 6px 8px;
        max-width: calc(100% - 40px);
        margin-right: auto;
        margin-left: 0;
    }
    .lightbox-category-tab {
        font-size: 12px;
        padding: 4px 10px;
    }
    .lightbox-main-container {
        gap: 10px;
        margin: 10px 0;
    }
    .lightbox-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .lightbox-image-box {
        height: 36vh;
    }
    .lightbox-caption {
        padding: 10px 14px;
    }
    .lightbox-caption h3 {
        font-size: 14px;
    }
    .lightbox-caption p {
        font-size: 12px;
    }
    .lightbox-thumb-item {
        width: 56px;
        height: 42px;
    }
}
@media (max-width: 480px) {
    .lightbox-image-box {
        height: 28vh;
    }
}

/* Grid responsive */
@media (max-width: 1024px) {
    #jjes-layout .facility-card-item {
        flex: 0 0 calc(33.333% - 10px) !important;
    }
}

@media (max-width: 768px) {
    #jjes-layout .facility-grid {
        gap: 12px !important;
    }
    #jjes-layout .facility-card-item {
        flex: 0 0 46% !important;
    }
    .facility-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    .facility-tabs::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    #jjes-layout .facility-grid {
        gap: 10px !important;
    }
    #jjes-layout .facility-card-item {
        flex: 0 0 46% !important;
    }
    #jjes-layout .facility-card-info {
        padding: 8px 12px !important;
    }
    #jjes-layout .facility-card-info h4 {
        font-size: 12px !important;
        margin-bottom: 3px !important;
    }
    #jjes-layout .facility-card-info p {
        font-size: 10px !important;
    }
}

/* ================================================================
   유학원 롤링 배너 스타일
   ================================================================ */
.scroll-container {
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    cursor: pointer;
    background: #fff;
    border-radius: 12px;
    padding: 12px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.scroll-content {
    display: flex;
    transition: transform 0.5s ease;
    gap: 10px;
}

.scroll-item {
    flex: 0 0 auto;
    width: 150px;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    transition: transform 0.2s, border-color 0.2s;
}

.scroll-item:hover {
    transform: translateY(-2px);
    border-color: #1a365d;
}

.scroll-item h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    line-height: 1.3;
    word-break: keep-all;
}

/* ================================================================
   Custom Translate Dropdown (Glassmorphism design matching image)
   ================================================================ */
#jjes-layout .custom-translate-dropdown {
    position: relative;
    display: inline-block;
    z-index: 999;
}

#jjes-layout .translate-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s ease;
}

#jjes-layout .translate-trigger:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

#jjes-layout .translate-trigger .fi {
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    width: 18px;
    height: 13.5px;
}

#jjes-layout .translate-trigger i {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

#jjes-layout .custom-translate-dropdown.active .translate-trigger i {
    transform: rotate(180deg);
}

#jjes-layout .translate-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
     width: 100px;
    max-height: 350px;
    overflow-y: auto;
    background: rgba(187, 187, 187, 0.65); /* Semi-transparent dark slate grey */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 0;
    z-index: 1000;
}

/* Scrollbar styling for translate-menu */
#jjes-layout .translate-menu::-webkit-scrollbar {
    width: 6px;
}
#jjes-layout .translate-menu::-webkit-scrollbar-track {
    background: transparent;
}
#jjes-layout .translate-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
#jjes-layout .translate-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

#jjes-layout .custom-translate-dropdown.active .translate-menu {
    display: block;
}

#jjes-layout .translate-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

#jjes-layout .translate-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

#jjes-layout .translate-item .fi {
    border-radius: 1px;
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
    width: 18px;
    height: 13.5px;
}

/* Hide original Google Translate toolbar & widgets */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
