@font-face {
    font-family: 'Pretendard';
    font-weight: 900;
    font-display: swap;
    src: url('fonts/Pretendard-Black.woff2') format('woff2');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 800;
    font-display: swap;
    src: url('fonts/Pretendard-ExtraBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Pretendard-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Pretendard-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 500;
    font-display: swap;
    src: url('fonts/Pretendard-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Pretendard-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 300;
    font-display: swap;
    src: url('fonts/Pretendard-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 200;
    font-display: swap;
    src: url('fonts/Pretendard-ExtraLight.woff2') format('woff2');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 100;
    font-display: swap;
    src: url('fonts/Pretendard-Thin.woff2') format('woff2');
}

@font-face {
    font-family: '남양주고딕';
    src: url('fonts/NamYangJuGothic-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #0b3d91;
    --primary-light: #185adb;
    --accent-color: #e63946;
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background-color 0.3s ease;
}

ul, ol {
    list-style: none;
}

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

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

.grid-2, .grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid-3, .grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Utility Classes */
.bg-light { background-color: var(--bg-light) !important; }
.bg-white { background-color: var(--bg-white) !important; }
.text-center { text-align: center !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.rounded { border-radius: 12px; }
.shadow { box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.page-section { padding: 40px 0; }


/* Header & Nav */
header {
    background-color: var(--bg-white);
    height: 70px; /* Reduced from 80px */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    height: 70px;
    text-decoration: none;
    gap: 8px; /* 아이콘과 텍스트 사이 간격 */
}

.logo-icon {
    height: 46px;
    object-fit: contain;
    animation: logo-pulse 2s infinite ease-in-out;
}

.logo-text {
    font-family: '남양주고딕', 'NanumGothic', sans-serif;
    font-weight: 800;
    font-size: 28px !important;
    color: var(--text-dark);
    letter-spacing: -1px;
    display: inline-block;
    line-height: 1.2;
    vertical-align: middle;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 5px rgba(11, 61, 145, 0.3)); }
}







nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu > li > a {
    font-weight: 600;
    font-size: 1rem;
    padding: 28px 0;
    display: block;
    color: var(--text-dark);
}

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    padding: 12px 25px;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 30px;
}

.dropdown-wiki {
    position: static !important;
}

/* Mega Menu for Wiki */
.dropdown-wiki .dropdown-content {
    min-width: 850px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.dropdown-wiki:hover .dropdown-content {
    display: grid;
    transform: translateX(-50%) translateY(0);
}



.wiki-group h5 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.wiki-group a {
    padding: 8px 0;
    font-size: 0.9rem;
}

.wiki-group a:hover {
    background: transparent;
    padding-left: 8px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    padding: 40px 0; /* Reduced from 80px */
    min-height: 400px; /* Reduced from calc(100vh - 80px) to prevent excessive empty space */
    display: flex;
    align-items: center;
}


.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 30px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero-content .highlight {
    color: var(--primary-color);
}

.slogan-box {
    background: var(--bg-white);
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    border-radius: 0 12px 12px 0;
}

.slogan-box p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-gray);
}

.slogan-box p:last-child {
    margin-bottom: 0;
}

.must-highlight {
    color: var(--accent-color);
    font-weight: 800;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(11, 61, 145, 0.4);
}

.primary-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 61, 145, 0.5);
    color: #fff;
}

/* Shared Page Content Styles */
.page-title {
    font-size: 2.5rem; /* Slightly reduced size */
    text-align: center;
    margin: 40px 0 30px; /* margin-top을 20px에서 40px로 늘려 겹침 방지 */
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
    font-weight: 800;
}


.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.content-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
    margin-bottom: 30px;
    border-left: 5px solid transparent;
}

.content-box:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
}


.content-box h2 {
    color: var(--primary-color);
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-box h2:first-child {
    margin-top: 0;
}

/* 텍스트 밀도 조절: 문단 간격 축소 */
.content-box p {
    margin-bottom: 1rem;
}

.check-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-gray);
}

.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 900;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-gray);
}

.step-list li::before {
    content: '➤';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 900;
}

/* Footer - COMPACT FIXED VERSION WITH STRATEGY BAR */
body {
    padding-bottom: 120px;
}

.footer-master {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap; /* 강제 한 줄 배치 */
    flex-direction: row !important; /* 브라우저 특성 무시하고 강제 유지 */
}

.footer-stamp {
    width: 110px;
    height: 110px;
    background-image: url('../img/stamps/master_stamp.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0; /* 도장 크기 찌그러짐 방지 */
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.5));
    animation: master-stamp-pulse 4s infinite ease-in-out;
}

@keyframes master-stamp-pulse {
    0%, 100% { transform: scale(1) rotate(-10deg); opacity: 0.9; }
    50% { transform: scale(1.1) rotate(-5deg); opacity: 1; filter: drop-shadow(4px 4px 12px rgba(220, 38, 38, 0.4)); }
}

.footer-content-wrapper {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    vertical-align: middle;
}


.footer-strategy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
}

.footer-strategy-item {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: default;
}

.footer-strategy-item:hover {
    transform: translateY(-2px);
}

.footer-strategy-item p {
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
    color: #f8fafc;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 15px;
    text-shadow: none;
}

.footer-strategy-item p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 900;
}

.footer-contact {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.contact-link {
    color: #e9ecef;
    font-size: 0.85rem; /* 버튼 크기 살짝 조정 */
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0; /* 버튼이 찌그러지지 않게 방지 */
}

.footer-address {
    flex-basis: auto;
    text-align: right;
    margin-left: auto;
    color: #e9ecef !important;
    margin-top: 0 !important;
    font-size: 0.85rem !important; /* 주소 크기를 버튼과 맞춤 */
    line-height: 1.4;
    font-weight: 400 !important;
    text-shadow: none;
    display: block;
    letter-spacing: 0.01em;
    white-space: nowrap; /* 주소 줄바꿈 방지 */
}


footer {
    background-color: rgba(15, 15, 15, 0.98) !important;
    backdrop-filter: blur(15px);
    color: #ffffff;
    margin-top: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.6);
    border-top: 1px solid #333;
}





.contact-link strong {
    color: #f59e0b;
    font-weight: 700;
    margin-right: 6px;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: #fff;
}

.contact-link:active {
    transform: translateY(0);
}

/* Tooltip for copy confirmation */
.copy-tooltip {
    position: relative;
}

.copy-tooltip::after {
    content: "복사 완료!";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.copy-tooltip.copied::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}


.copyright {
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-master {
        gap: 20px;
        padding: 15px;
    }
    .footer-stamp {
        width: 90px;
        height: 90px;
    }
    .footer-strategy {
        gap: 15px;
    }
    .footer-strategy-item p {
        font-size: 0.95rem;
    }
    .contact-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .footer-address {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 220px;
    }

    .footer-master {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .footer-content-wrapper {
        align-items: center;
        width: 100%;
        flex-grow: 1;
    }

    .footer-strategy {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        padding-bottom: 10px;
    }

    .footer-stamp {
        width: 80px;
        height: 80px;
        margin-right: 0;
    }

    .footer-strategy {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        padding-bottom: 10px;
    }

    .footer-strategy-item p {
        font-size: 0.85rem;
        padding-left: 0;
    }
    
    .footer-strategy-item p::before {
        display: none; /* Hide bullets when centered */
    }

    .footer-contact {
        justify-content: center;
        gap: 10px;
        width: 100%;
        flex-wrap: wrap; /* Allow wrapping on small mobile */
    }
    
    .footer-address {
        text-align: center;
        margin-left: 0;
        white-space: normal; /* Allow address to wrap if needed */
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: var(--shadow-md);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--bg-light);
        display: none;
        padding: 0;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 12px 30px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-wiki .dropdown-content {
        display: none;
        grid-template-columns: 1fr;
        padding: 0;
    }

    .dropdown.active .dropdown-wiki .dropdown-content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .wiki-group {
        padding: 15px 30px;
        border-bottom: 1px solid var(--border-color);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 40px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .slogan-box {
        border-left: none;
        border-top: 5px solid var(--primary-color);
        border-radius: 0 0 12px 12px;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    body {
        padding-bottom: 60px; /* Adjust for single-line footer */
    }
    
    .footer-container {
        flex-direction: row; /* Keep elements side-by-side */
        justify-content: flex-start;
        gap: 15px;
        padding: 10px 15px;
    }

    .footer-logo {
        height: 18px;
    }

    .footer-contact {
        justify-content: flex-start;
        gap: 15px;
        padding-bottom: 0;
        /* Scrollable horizontally */
    }

    .footer-contact p {
        font-size: 0.8rem;
    }

}

/* Career Timeline Styles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: #e2e8f0;
    top: 0;
    bottom: 0;
    left: 40px;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 31.5px;
    background-color: var(--primary-color);
    border: 4px solid #fff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.timeline-date {
    display: block;
    margin-left: 20px;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.timeline-content {
    padding: 25px;
    background-color: #fff;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    margin-left: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
}

.timeline-content h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #475569;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-dot {
        left: 22.5px;
    }
    .timeline-content {
        margin-left: 10px;
        padding: 20px;
    }
}

/* Global Unified UI (Timeline Aesthetic) */
.service-item, .card, .process-card, .dev-card, .product-item, .case-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    border-left: 5px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
    margin-bottom: 30px;
}

.service-item:hover, .card:hover, .process-card:hover, .dev-card:hover, .product-item:hover, .case-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
}

.service-item h4 {
    color: #1e293b;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Wiki Rich Tooltip Styles */
.wiki-term {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid rgba(11, 61, 145, 0.3);
    cursor: help;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.wiki-term:hover {
    background-color: rgba(11, 61, 145, 0.1);
    border-bottom-color: var(--primary-color);
}

#rich-tooltip {
    position: fixed;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 340px;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
    pointer-events: auto; /* allow clicking link */
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--primary-color);
}

#rich-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#rich-tooltip h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#rich-tooltip p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-break: keep-all;
}

#rich-tooltip a.wiki-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #fff;
    background: var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(11, 61, 145, 0.3);
    transition: all 0.2s ease;
}

#rich-tooltip a.wiki-link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 61, 145, 0.4);
}



/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
