:root {
    /* ==========================================
       Color Palette Tokens
       ========================================== */
    --normal: #262626;
    --light: #D4D4D4;
    --alternative: #737373;
    --strong: #171717;
    --primary: #0F6E56;
    --secondary: #66B7C7;
    --secondary2: #6D6E71;

    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #fcfdfe;

    --primary-gradient: linear-gradient(135deg, var(--primary) 0%, #f05a8f 100%);
    --accent-blue: var(--secondary);
    --accent-blue-gradient: linear-gradient(135deg, var(--secondary) 0%, #aae1ec 100%);
    
    --text-main: var(--normal);
    --text-muted: var(--alternative);
    --text-light: var(--light);
    --text-strong: var(--strong);

    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(218, 28, 92, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --header-height: 100px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================
   Reset
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 18px;
    letter-spacing: -0.02em
}

body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

main{
    flex:1;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 16px;
}

.blind {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

/* ==========================================
   Header States
   ========================================== */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
}

header.sticky {
    position: fixed;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    /* border-bottom: 1px solid var(--glass-border); */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    height: 100px;
}

header.hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    transition: var(--transition-smooth);
}

.logo img {
    height: 70px;
    width: auto;
    transition: var(--transition-smooth);
}

header.sticky .logo img {
    height: 62px;
}

/* ==========================================
   Navigation
   ========================================== */
nav ul {
    display: flex;
    list-style: none;
    gap: 75px;
}

nav ul li {
    position: relative;
}

nav ul li>a {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    padding: 10px 0;
    transition: var(--transition-smooth);
    display: block;
}

nav ul li:hover>a {
    color: var(--primary);
}
/* ==========================================
   Mega-Menu Background
   ========================================== */


nav::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    background: #Fff;
    transition: height 0.3s ease;
    z-index: 1005;
    pointer-events: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 13.5px 0 rgba(0, 0, 0, 0.05);
}

nav:hover::before {
    height: 250px;
    pointer-events: auto;
}

/* GNB Mega Menu Left Branding Card */
 nav::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(max(16px, calc(50% - 700px + 16px)) + 140px);
    height: 0;
    border-bottom-right-radius: 60px;
    background: 
        linear-gradient(rgba(248, 249, 250, 0.85), rgba(248, 249, 250, 0.85)), 
        url('/static/jointips/resources/images/layout/gnb_deco.png') no-repeat right -20px bottom -25px  / contain,
        #F8F9FA;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1006;
    pointer-events: none;
    overflow: hidden;
}

/* TIPS Branding Text */
 nav > ul::before {
    content: 'TIPS';
    position: absolute;
    top: calc(100% + 40px);
    left: max(16px, calc(50% - 700px - 96px));
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1007;
    pointer-events: none;
}

/* Global Tech Startup Subtitle*/
nav > ul::after {
    content: 'Global Tech Startup\a Incubator Program';
    white-space: pre-wrap;
    position: absolute;
    top: calc(100% + 95px);
    left: max(16px, calc(50% - 700px - 96px));
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1007;
    pointer-events: none;
} 

/* Show branding elements on hover */
nav:hover::after {
    height: 250px;
}
nav:hover::after,
nav:hover > ul::before,
nav:hover > ul::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Desktop Menu Gap Adjustment to prevent overlapping on narrower screens */
@media (max-width: 1440px) {
    nav ul {
        gap: 60px;
    }
    nav::after {
        border-bottom-right-radius: 60px;
        width: 200px;
    }
    nav > ul::before {
        left: max(16px, calc(50% - 700px - 96px));
        font-size: 26px;
    }
    nav > ul::after {
        left: max(16px, calc(50% - 700px - 96px));
        font-size: 12px;
    }
}

/* ==========================================
   Dropdown Depth2
   ========================================== */
.depth2 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    border-radius: 0;
    width: max-content;
    min-width: 140px;
    padding: 60px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    box-shadow: none;
    backdrop-filter: none;
    z-index: 1010;
}

/* ── GNB 드롭다운: 구글 번역(영문) 시 겹침 방지 ─────────────────────────
   .depth2 는 부모 li 중앙에 절대배치 + width:max-content 라 라벨이 길어지는
   만큼 좌우로 커진다. 한글은 짧아 괜찮지만 번역된 영문은 2~3배라 옆 드롭다운을
   침범한다(메가메뉴라 전 컬럼이 동시에 열림).
   → 번역 상태에서만 폭 상한을 두고 줄바꿈을 허용. 한글 레이아웃은 건드리지 않는다. */
html.translated-ltr .depth2 {
    max-width: 140px;
}
html.translated-ltr .depth2 ul li a {
    white-space: normal;
    word-break: keep-all;      /* 한글 복귀 시 단어 중간 끊김 방지 */
    overflow-wrap: break-word; /* 초장문 단일 단어 안전장치 */
    font-size: 15px;
    line-height: 1.35;
}

nav:hover .depth2 {
    opacity: 1;
    visibility: visible;
}

.depth2 ul {
    flex-direction: column;
    gap: 0;
}

.depth2 ul li a {
    padding: 8px 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-main);
    display: block;
    transition: var(--transition-smooth);
    text-align: center;
}

.depth2 ul li a:hover {
    color: var(--primary);
    background: transparent;
    font-weight: 600;
}

/* ==========================================
   Header Utilities
   ========================================== */
.header-utils {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-utils .search-btn,
.header-utils .user-btn,
.header-utils .logout-btn,
.header-utils .lang-btn {
    width: 43px;
    height: 43px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.header-utils .lang-btn {
    border-right: none;
}

.header-utils img {
    width: 24px;
    height: auto;
}

.header-utils span {
    font-size: 13px;
    color: #4b5563;
    letter-spacing: 0.05em;
}
/* ==========================================
   Search Panel
   ========================================== */
.search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #eaeaea;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 990;
}

.search-panel.active {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-panel-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px;
    box-sizing: border-box;
}

.search-box{
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.search-title span {
    color: var(--text-main)
}

.search-input-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 6px;
    width: 500px;
    height: 48px;
    padding: 0 16px;
}

.search-input-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    outline: none;
}

.search-input-box input::placeholder {
    color: #9ca3af;
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close {
    width: 40px;
    height: 40px;
    background: transparent;
    color: #64748b;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.search-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}
/* ==========================================
   Mobile Header elements (Hidden on Desktop)
   ========================================== */
.hamburger-btn {
    display: none;
}

.mobile-menu {
    display: none;
}

/*==========================================
   Footer styles (White Banner Layout)
   ========================================== */
.footer-new {
    background: #ffffff;
    padding: 40px 0;
    font-size: 14px;
    color: #222222;
    border-top: 1px solid #e5e7eb;
}

.footer-new .container {
    max-width: 1500px;
    width: 92%;
    margin: 0 auto;
}

.footer-new-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0;
    gap: 40px;
}

/* ==========================================
   Left Col & CI Logo List
   ========================================== */
.footer-left-col {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-logo-col {
    flex-shrink: 0;
}

.footer-logo-col img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-ci-list {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-ci-list img {
    width: 100px;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background-color: #d9d9d9;
    flex-shrink: 0;
}


/* ==========================================
   Right Side Column & Policy Links
   ========================================== */
.footer-right-col {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.f-policy-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.f-policy-links a {
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.f-policy-links a:hover {
    color: #000000;
    text-decoration: underline;
}

/* ==========================================
   Footer Policy Modals (Exact Screenshot Design with TIPS Accent)
   ========================================== */
.footer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.footer-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.footer-modal-card {
    background-color: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 780px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(15px);
    transition: transform 0.25s ease;
    border: 1px solid #e2e8f0;
}

.footer-modal-overlay.open .footer-modal-card {
    transform: translateY(0);
}

.footer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px 16px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    flex-shrink: 0;
}

.footer-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.4px;
}

.footer-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    padding: 6px;
    border-radius: 4px;
}

.footer-modal-body {
    padding: 28px 32px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(85vh - 65px);
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

.footer-modal-body::-webkit-scrollbar {
    width: 6px;
}

.footer-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.footer-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.footer-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.footer-modal-notice {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary, #da1c5c);
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 14px;
    color: #334155;
    margin-bottom: 22px;
    line-height: 1.7;
}

.footer-modal-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 24px 0 12px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-modal-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ==========================================
   Modal Table Style (#222222 Accent)
   ========================================== */
.footer-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 22px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.footer-modal-table th,
.footer-modal-table td {
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    line-height: 1.65;
    color: #334155;
}

.footer-modal-table th {
    background-color: #f8fafc;
    font-weight: 700;
    text-align: center;
    color: #222222;
    border-bottom: 2px solid #222222;
}

.footer-modal-table td:first-child {
    text-align: center;
    font-weight: 600;
    background-color: #f8fafc;
    color: #222222;
}

.footer-modal-table td {
    text-align: left;
}

.footer-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    background: #ffffff;
    flex-shrink: 0;
}

.footer-modal-btn {
    padding: 10px 44px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-modal-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* ==========================================
   Bottom Copy
   ========================================== */
.footer-bottom-copy {
    text-align: center;
    font-size: 15px;
    color: #BEBEBE;
    padding-top: 8px;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1200px) {
    .footer-new-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 34px;
    }

    .footer-left-col {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-right-col {
        width: 100%;
    }

    .f-policy-links {
        width: 100%;
        gap: 16px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
    }

    .f-policy-links a {
        font-size: 15px;
        white-space: nowrap;
        letter-spacing: -0.6px;
        flex-shrink: 0;
    }
}


@media (max-width: 1060px) {
    :root {
        --header-height: 70px;
    }
    .lnb{
        display: none;
    }
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px !important;
        background: #ffffff;
        z-index: 900;
    }
    .logo img {
        height: 54px;
    }

    .header-inner{
        align-items: center;
        padding: 0 12px;
    }

    nav {
        display: none;
    }

    nav > ul::after, nav::before, nav::after, nav > ul::before{
        display: none;
    }

    nav:hover::after{
        opacity: 0;
    }

    .header-right {
        gap: 10px !important;
    }

    .header-utils {
        gap: 4px;
        padding:0;
    }

    .header-utils.mobile-hidden {
        display: none !important;
    }

    .header-utils span {
        font-size: 10px;
    }

    .header-utils .search-btn,
    .header-utils .user-btn,
    .header-utils .logout-btn,
    .header-utils .lang-btn {
        width: 38px;
        height: 38px;
        gap: 4px;
    }

    .hamburger-btn {
        position: relative;
        display: block;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-btn span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #111;
        transition: all 0.3s ease;
    }

    .hamburger-btn span:nth-child(1) { top: 0; }
    .hamburger-btn span:nth-child(2) { top: 11px; }
    .hamburger-btn span:nth-child(3) { top: 22px; }

    .hamburger-btn.open span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .hamburger-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.open span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .mobile-menu-backdrop {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .mobile-menu-backdrop.active {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 70px;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        z-index: 999;
        transition: right 0.3s ease;
        padding: 0;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-utils-top {
        display: flex;
        background: var(--accent-blue);
        height: 70px;
    }

    .mobile-utils-top a {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #ffffff;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-nav {
        margin-top: 0;
        list-style: none;
        display: block;
    }

    .mobile-nav-list {
        list-style: none;
        flex-direction: column;
        gap: 0;
    }

    .mobile-nav-item {
        border-bottom: 1px solid #f2f2f2;
    }

    .mobile-depth1 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        font-size: 17px;
        font-weight: 600;
        color: var(--text-main);
        text-decoration: none;
        transition: background-color 0.2s ease;
    }

    .mobile-depth1::after {
        content: '+';
        font-size: 20px;
        color: #888;
        font-weight: 400;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .mobile-nav-item.active > .mobile-depth1,
    .mobile-depth1.active {
        color: var(--text-main);
        font-weight: 600;
        background-color: #edf5f3;
    }

    .mobile-nav-item.active > .mobile-depth1::after {
        content: '-';
        color: #555;
        font-weight: 700;
    }

    .mobile-depth2 {
        display: none;
        padding: 8px 20px 20px 20px;
        list-style: none;
        background-color: #ffffff;
    }

    .mobile-nav-item.active .mobile-depth2 {
        display: block;
    }

    .mobile-depth2 > li > a,
    .mobile-depth2 > li > .mobile-depth2-title {
        display: block;
        padding: 10px;
        font-size: 16px;
        color: #555;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .mobile-depth2 > li.active > a,
    .mobile-depth2 > li > a.active,
    .mobile-depth2 > li.active > .mobile-depth2-title,
    .mobile-depth2-title.active,
    .mobile-depth2 > li.has-mobile-depth3.open > .mobile-depth2-title {
        color: var(--primary);
        font-weight: 500;
    }

    .mobile-depth2-title {
        display: flex !important;
        align-items: center;
        cursor: pointer;
    }

    /* ==========================================
       Chevron arrow on the left of expandable items
       ========================================== */
    .mobile-depth2 > li.has-mobile-depth3 > .mobile-depth2-title::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-top: 2px solid #555;
        border-right: 2px solid #555;
        transform: rotate(45deg);
        transition: transform 0.3s ease, border-color 0.2s ease;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .mobile-depth2 > li.has-mobile-depth3.open > .mobile-depth2-title::before,
    .mobile-depth2 > li.has-mobile-depth3.active > .mobile-depth2-title::before,
    .mobile-depth2-title.active::before {
        transform: rotate(135deg);
        border-color: var(--primary);
    }

    /* ==========================================
       Mobile 3depth - Indented clean list without borders or background
       ========================================== */
    .mobile-depth3 {
        display: none;
        list-style: none;
        padding: 4px 0 4px 14px;
        margin: 0;
    }

    .mobile-depth2 > li.has-mobile-depth3.open .mobile-depth3 {
        display: block;
        animation: slideDownMobileMenu 0.25s ease-out forwards;
    }

    @keyframes slideDownMobileMenu {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-depth3 li a {
        display: block;
        padding: 8px 16px;
        font-size: 15px;
        color: #777;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s;
    }

    .mobile-depth3 li a:hover,
    .mobile-depth3 li.active a,
    .mobile-depth3 li a.active {
        color: var(--primary);
        font-weight: 500;
    }

    .search-title{
        font-size: 18px;
        text-align: left;
    }

    .search-panel-inner{
        gap:14px;
        display: flex;
        flex-direction: column;
    }

    .search-input-box{
        width: 100%;
    }

    .search-close{
        width: 20px;
        height: 20px;
    }

    .footer-contact-col {
        flex-direction: column;
        gap: 30px;
    }

    .f-policy-links {
        flex-wrap: wrap;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-logo-col img{
        height: 70px;
    }

    .footer-new{
        padding: 40px 0 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* ==========================================
   Subpage Pagination Styling
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #666;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
    padding: 0;
}

.pagination-btn:hover {
    background-color: #edf5f3;
    color: var(--primary);
    border-color: var(--primary);
}

.pagination-btn.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

.pagination-btn.prev,
.pagination-btn.next {
    border: none;
    background: transparent;
}

.pagination-btn.prev:hover,
.pagination-btn.next:hover {
    background: transparent;
}

.pagination-btn.prev::after,
.pagination-btn.next::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #999;
    border-right: 2px solid #999;
    transition: all 0.3s;
}

.pagination-btn.prev::after {
    transform: rotate(-135deg);
    margin-left: 3px; /* 시각적 중앙 맞춤 */
}

.pagination-btn.next::after {
    transform: rotate(45deg);
    margin-right: 3px; /* 시각적 중앙 맞춤 */
}

.pagination-btn.prev:hover::after,
.pagination-btn.next:hover::after {
    border-color: var(--primary);
}

/* ==========================================
   Subpage Board List & Table Styling
   ========================================== */
.board-top-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 30px;
}

.board-top-panel .page-info {
    font-size: 14px;
    color: var(--text-muted);
}

.board-top-panel .page-info span {
    color: var(--primary);
    font-weight: 600;
}

.board-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-search-box .search-select {
    height: 40px;
    padding: 0 30px 0 16px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('/static/jointips/resources/images/layout/down_ico.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.board-search-box .search-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.board-search-box .search-input-wrap input {
    height: 45px;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    width: 240px;
}

.board-search-box .btn-search-submit {
    height: 45px;
    padding: 0 20px;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    word-break: keep-all;
}

.board-search-box .btn-search-submit > img{
    width: 22px;
}

.board-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--text-main);
    border-bottom: 1px solid #d4d4d4;
    margin-bottom: 40px;
    white-space: nowrap;
    table-layout: fixed;
}

.board-table th {
    height: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid #eaeaea;
    text-align: center;
    background-color: #f8f9fa;
    padding: 0 20px;
}

.board-table td {
    height: 54px;
    font-size: 16px;
    color: var(--text-main);
    border-bottom: 1px solid #eee;
    padding: 12px 20px;
    text-align: center;
}

.board-table td.title-cell {
    padding-left: 20px;
    padding-right: 20px;
    word-break: break-all;
    white-space: normal;
}

.board-table th.align-left,
.board-table td.align-left {
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    white-space: normal;
    word-break: break-all;
}

.board-table td.title-cell a {
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
}


.board-table tbody tr:hover {
    background-color: #fcfdfe;
}

/* ==========================================
   Subpage Board Responsive Mobile Styles
   ========================================== */
@media (max-width: 768px) {
    /* ==========================================
       Board Top Panel Mobile Style
       ========================================== */
    .board-top-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
    }
    .board-top-panel .page-info {
        text-align: left;
    }
    .board-search-box {
        width: 100%;
        justify-content: space-between;
    }
    .board-search-box .search-input-wrap {
        flex: 1;
    }
    .board-search-box .search-input-wrap input {
        width: 100%;
    }
    .board-search-box .btn-search-submit > img{
        width: 24px;
    }
    /* ==========================================
       Table Responsive Wrap
       ========================================== */
    .board-table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 30px;
    }
    .board-table-responsive .board-table {
        margin-bottom: 0;
        min-width: 900px;
        white-space: nowrap;
    }
    .board-table-responsive .board-table th:first-child,
    .board-table-responsive .board-table td:first-child {
        width: 44px;
        padding: 0 8px;
    }
    .board-table-responsive .board-table th.align-left,
    .board-table-responsive .board-table td.align-left {
        width: 120px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .board-table-responsive .board-table td.title-cell {
        overflow: visible;
        text-overflow: clip;
    }
}

/* ===== 구글 번역 위젯: 기본 UI 숨김 (기존 lang-btn 디자인 유지) ===== */
#google_translate_element { display: none !important; }
.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate { display: none !important; }
.skiptranslate { display: none !important; }
body { top: 0 !important; } /* 구글이 강제로 주는 상단 여백 제거 */
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: none !important; box-shadow: none !important; }
#langBtn { cursor: pointer; }


/* === DcDialog 1.0 BEGIN (auto-managed, 수정금지) === */
/* =========================================================================
   DcDialog 1.0 — 사이트 공통 alert/confirm 런타임 스타일 (TIPS 테마)
   - JoinTips CSS(commonCss) "맨 아래"에 append 하는 블록.
   - 모든 셀렉터 .dcdlg- 네임스페이스 → 기존 CSS 와 충돌 0.
   - 색은 사이트 :root 토큰(--primary 등)을 재사용하고, 없을 때 폴백.
   ========================================================================= */

/* 다이얼로그 자체 토큰 (사이트 토큰 재사용 + 폴백) */
.dcdlg-overlay,
.dcdlg-toasts {
  --dcdlg-primary: var(--primary, #DA1C5C);
  --dcdlg-danger:  #e24b4a;
  --dcdlg-success: #1d9e75;
  --dcdlg-warning: #f59e0b;
  --dcdlg-title:   var(--text-strong, #171717);
  --dcdlg-bg:      var(--bg-card, #ffffff);
  --dcdlg-font: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── 오버레이 ── */
.dcdlg-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
  background: rgba(15, 23, 42, .5);
  opacity: 0; transition: opacity .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.dcdlg-overlay.is-open { opacity: 1; }
.dcdlg-overlay.is-closing { opacity: 0; }

/* ── 모달 ── */
.dcdlg {
  width: 100%; max-width: 380px; box-sizing: border-box;
  background: var(--dcdlg-bg); border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .3);
  padding: 28px 24px 20px; text-align: center;
  font-family: var(--dcdlg-font);
  transform: translateY(12px) scale(.96); opacity: 0;
  transition: transform .28s cubic-bezier(.25, .8, .25, 1), opacity .28s ease;
}
.dcdlg-overlay.is-open .dcdlg { transform: none; opacity: 1; }

/* ── 아이콘 ── */
.dcdlg-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.dcdlg-icon svg { width: 32px; height: 32px; }
.dcdlg-icon--success  { background: rgba(29, 158, 117, .12); color: var(--dcdlg-success); }
.dcdlg-icon--error    { background: rgba(226, 75, 74, .12);  color: var(--dcdlg-danger); }
.dcdlg-icon--warning  { background: rgba(245, 158, 11, .14); color: var(--dcdlg-warning); }
.dcdlg-icon--info     { background: #edf5f3; color: var(--dcdlg-primary); }
.dcdlg-icon--question { background: #edf5f3;  color: var(--dcdlg-primary); }

/* ── 텍스트 ── */
.dcdlg-title   { font-size: 18px; font-weight: 700; color: var(--dcdlg-title); margin: 0 0 8px; }
.dcdlg-message { font-size: 16px; line-height: 1.6; color: #475569;
                 white-space: pre-line; word-break: break-word; margin: 0 0 22px; }

/* ── 버튼 ── */
.dcdlg-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.dcdlg-btn {
  flex: 1 1 0; min-width: 88px; min-height: 44px; padding: 0 18px;
  font-size: 14.5px; font-weight: 600; font-family: inherit; cursor: pointer;
  border-radius: 4px; border: 1px solid transparent; transition: all .18s ease;
}
.dcdlg-btn:focus-visible { outline: 2px solid var(--dcdlg-primary); outline-offset: 2px; }
.dcdlg-btn--primary { background: var(--dcdlg-primary); color: #fff; }
.dcdlg-btn--primary:hover { filter: brightness(.94); }
.dcdlg-btn--default { background: #fff; color: #475569; border-color: #e2e8f0; }
.dcdlg-btn--default:hover { background: #e9eef4; }
.dcdlg-btn--danger  { background: var(--dcdlg-danger); color: #fff; }
.dcdlg-btn--danger:hover { filter: brightness(.94); }
.dcdlg-btn--text    { background: #fff; color: #475569; border-color: #cbd5e1; }
.dcdlg-btn--text:hover { background: #f1f5f9; color: #1e293b; border-color: #94a3b8; }

/* 단일 버튼(=alert 류) 일 때 가운데 정렬·폭 제한 (미지원 브라우저는 fl:1 유지 — 무해) */
.dcdlg-actions:has(.dcdlg-btn:only-child) .dcdlg-btn { flex: 0 1 auto; min-width: 120px; margin: 0 auto; }

/* ── 토스트(비모달) ── */
.dcdlg-toasts {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 100000;
  display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none;
}
.dcdlg-toast {
  display: flex; align-items: center; gap: 8px; max-width: 90vw;
  padding: 12px 18px; border-radius: 12px; background: #1e293b; color: #fff;
  font-family: var(--dcdlg-font); font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  opacity: 0; transform: translateY(12px); transition: all .3s cubic-bezier(.25, .8, .25, 1);
}
.dcdlg-toast.is-open { opacity: 1; transform: none; }
.dcdlg-toast.is-closing { opacity: 0; transform: translateY(12px); }
.dcdlg-toast-icon svg { width: 18px; height: 18px; vertical-align: middle; }
.dcdlg-toast--success { background: #1d9e75; }
.dcdlg-toast--error   { background: #e24b4a; }
.dcdlg-toast--warning { background: #d97706; }

/* ── 모바일 ── */
@media (max-width: 480px) {
  .dcdlg { max-width: none; }
  .dcdlg-actions { flex-direction: column-reverse; }
  .dcdlg-btn { width: 100%; flex: 1 1 auto; }
}

/* === DcDialog 1.0 END === */


/* =========================================================================
서브 타이틀 공통
==========================================================================*/
.sub-title {
    position: relative;
    padding-left: 38px;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    min-height: 24px;
}

.sub-title::before,
.sub-title::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
}

.sub-title::before {
    left: 0;
    top: calc(50% - 12px);
    background-color: #609d8e;
    z-index: 1;
}

.sub-title::after {
    left: 12px;
    top: 50%;
    background-color: #DEEFEB;
    z-index: 2;
}

/* ==========================================
   Scroll To Top Button
   ========================================== */
.scroll-to-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 56px;
    height: 56px;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #262626;
    cursor: pointer;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-2px) scale(1.05);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        right: 20px;
        bottom: 20px;
        width: 48px;
        height: 48px;
    }
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}


/* === CapsLock 1.0 BEGIN (auto-managed) === */
/* 전역 Caps Lock 경고 배지 — commonJs 가 포커스된 비번칸 위에 fixed 로 띄운다.
   모달(z-index 9999) 위에도 보이도록 z-index 를 매우 높게, 레이아웃 영향 없음(fixed + pointer-events:none). */
.dc-caps-badge {
    position: fixed;
    z-index: 100000;
    display: none;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 5px;
    background: #e6a23c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    transform: translate(-100%, -50%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
/* === CapsLock 1.0 END === */


/* === DcLoading 1.0 BEGIN === */
.dc-loading {
  position: fixed;
  inset: 0;
  z-index: var(--dc-loading-z-index, 9998);

  display: grid;
  place-items: center;

  background: rgb(255 255 255 / 55%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  overscroll-behavior: contain;

  transition:
    opacity 150ms ease,
    visibility 150ms ease;
}

.dc-loading.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.dc-loading__spinner {
  box-sizing: border-box;
  display: block;

  width: 48px;
  height: 48px;

  border: 5px solid rgb(218 28 92 / 20%);
  border-top-color: var(--primary, #da1c5c);
  border-right-color: var(--primary, #da1c5c);
  border-radius: 50%;

  filter: drop-shadow(0 2px 5px rgb(218 28 92 / 20%));

  animation: dc-loading-spin 700ms linear infinite;
}

@keyframes dc-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-loading {
    transition: none;
  }

  .dc-loading__spinner {
    animation-duration: 1.4s;
  }
}
/* ==========================================
   모바일 햄버거 메뉴 높이 보정
   top:70px 인데 height:100vh 라 하단 70px 이 화면 밖으로 나가고,
   그만큼 마지막 메뉴가 가려진 채 내부 스크롤도 안 잡혀 페이지가 튕겼다.
   → 헤더를 뺀 '보이는 영역'만큼만 높이를 주어 메뉴 자체가 스크롤되게 한다.
   ========================================== */
@media (max-width: 768px) {
    .mobile-menu {
        height: calc(100vh - var(--header-height));
        -webkit-overflow-scrolling: touch;   /* iOS 관성 스크롤 */
        overscroll-behavior: contain;        /* 끝에서 페이지로 전파 차단 */
    }
    /* iOS 주소창 때문에 100vh 가 실제 화면보다 큰 문제까지 해결 */
    @supports (height: 100dvh) {
        .mobile-menu { height: calc(100dvh - var(--header-height)); }
    }
    /* 백드롭도 같은 이유로 아래가 넘친다 */
    .mobile-menu-backdrop {
        height: calc(100vh - var(--header-height));
    }
    @supports (height: 100dvh) {
        .mobile-menu-backdrop { height: calc(100dvh - var(--header-height)); }
    }
/* === DcLoading 1.0 END === */
