@charset "utf-8";

/* =================================================================== */
/* 0. FONT IMPORTS */
/* =================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://cdn.jsdelivr.net/gh/webfontz/nanum-square-neo@latest/nanumsquareneo.css');

/* =================================================================== */
/* 1. ROOT VARIABLES & BASE RESET */
/* =================================================================== */
:root {
/* Colors - Primary Theme */
--primary-100: #eef2ff;
--primary-200: #e0e7ff;
--primary-300: #c7d2fe;
--primary-500: #818cf8;
--primary-600: #6366f1;
--primary-700: #4f46e5;
--primary-800: #4338ca;
--primary-900: #3730a3;
--primary-gradient: linear-gradient(to right, var(--primary-500), var(--primary-600));
--primary-gradient-hover: linear-gradient(to right, var(--primary-600), var(--primary-500));

/* Colors - Grays */
--gray-50: #f9fafb;
--gray-100: #f8f9fa;
--gray-200: #f5f5f5;
--gray-300: #f0f0f0;
--gray-400: #e5e7eb;
--gray-500: #ccc;
--gray-600: #9ca3af;
--gray-700: #888;
--gray-800: #6b7280;
img[src*="https://placehold.co"] {
background-color: var(--gray-200);
}
--gray-900: #555;
--gray-950: #4b5563;

/* Colors - Dark Theme (Footer / Mobile Nav) */
--dark-700: #374151;
--dark-800: #1f2937;
--dark-900: #111827;
--dark-mobile-nav: #161437; /* Legacy mobile nav color */
--dark-gradient: linear-gradient(to bottom, var(--dark-800), var(--dark-900));

/* Colors - Text */
--text-primary: #111827;
--text-secondary: #333;
--text-tertiary: #444;
--text-muted: #555;
--text-light: #9ca3af; /* For dark backgrounds */
--text-white: #ffffff;
--text-body: #333;

/* Colors - Status */
--status-active-bg: linear-gradient(to right, var(--primary-100), #f5f3ff);
--status-active-text: var(--primary-600);
--status-liquid-bg: #fff8e6;
--status-liquid-text: #d98200;
--status-term-bg: var(--gray-200);
--status-term-text: #777;

/* Colors - Section Backgrounds (NEW) */
--section-bg-light: linear-gradient(to bottom, #fdfdff, #f9faff);
--section-bg-lighter: linear-gradient(to bottom, #fefeff, #fafcff);

/* Fonts */
--font-sans: 'Pretendard', 'Nanum Square Neo', "NanumGothic", "나눔고딕", 'NanumBarunGothic', 'Apple SD Neo Gothic', 'Malgun Gothic', 'Gulim', sans-serif;

/* Borders & Radius */
--border-light: #eee;
--border-medium: #ddd;
--border-dark: #e5e7eb;
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-pill: 30px;

/* Shadows */
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.03);
--shadow-md: 0 4px 12px rgba(0,0,0,0.05);
--shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-nav: 0 1px 4px rgba(0, 0, 0, 0.06);
--shadow-primary-md: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -2px rgba(99, 102, 241, 0.08);
--shadow-top-btn: 0 4px 12px rgba(0, 0, 0, 0.4);
--shadow-top-btn-hover: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Base HTML/Body */
html {
overflow-x: hidden;
overflow-y: scroll;
scroll-behavior: smooth;
}
.body-layout {
background-color: var(--text-white);
color: var(--text-body);
font-family: var(--font-sans);
word-break: keep-all;
margin: 0;
padding: 0;
/* --- [REWRITE] START --- */
/* Push content down to clear fixed headers */
/* Desktop: 26px (lang) + 52px (nav) = 78px */
padding-top: 78px;
/* --- [REWRITE] END --- */
}

/* Lightweight Reset */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
margin: 0;
padding: 0;
}
ul, ol {
list-style: none;
}
input, textarea, button {
font-family: var(--font-sans);
}

/* General Focus/Accessibility styling */
a:focus, button:focus, input:focus, textarea:focus {
outline: 3px solid var(--primary-600);
outline-offset: 3px;
border-radius: var(--radius-sm);
}

.navbar .divider-vertical {
display: none;
}

.main-content {
display: none;
}

/* [REWRITE] Remove all base padding from sections */
.intro-html-layout section {
    padding: 0;
}
.intro-html-layout section[id^="contact"] {
    padding: 0 !important;
}

section h1 {
    margin: 0;
    text-align: center;
    /* [REWRITE] Reduce top/bottom padding for flex layout */
    padding-top: 40px;
    padding-bottom: 40px;
    font-size: 42px;
    font-weight: 700;
    color: #222;
    position: relative;
    letter-spacing: -0.02em;
    flex-shrink: 0; /* Prevent H1 from shrinking */
}
/* Decorative divider under section title */
section h1::after {
    content: '';
    position: absolute;
    /* [REWRITE] Adjust position to match new padding */
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-image: var(--primary-gradient);
    border-radius: 2px;
}

/* =================================================================== */
/* 2. FULL PAGE SECTION STYLING (USER REQ) */
/* =================================================================== */
.fullpage-section {
    /* [REWRITE] Make section full viewport height */
    width: 100%;
    box-sizing: border-box;
    
    /* Use Flexbox to center content */
    display: flex !important; 
    flex-direction: column;
    justify-content: center; /* Vertical center */
    align-items: center;     /* Horizontal center */
    
    /* [REWRITE] Account for fixed headers (26px lang + 52px nav = 78px) */
    /* We set min-height to 100vh and use padding */
    height: auto;
    min-height: 100vh;
    padding: 78px 0 0 0; /* 78px for headers, no bottom padding */
}

/* [REWRITE] Container overrides for specific sections */
[id^="portfolio-content-wrapper-kr"],
[id^="portfolio-content-wrapper-en"] {
    /* This wrapper for Portfolio will be full-width */
    width: 100% !important;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    margin: 0;
}

[id^="team"] > .container,
[id^="fund"] .con2 {
    /* Team & Fund containers will be wider (1400px) but not full-width */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

[id^="contact"] .container .row {
    /* Contact container will be wider (1400px) */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    box-shadow: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap; /* Stack on mobile */
}


/* =================================================================== */
/* 3. TOP LANGUAGE BAR (REWRITTEN) */
/* =================================================================== */
.lang-wrap {
    /* [REWRITE] Set background to white per user request */
    background: var(--text-white); 
    /* [REWRITE] Use a standard light border */
    border-bottom: 1px solid var(--border-light); 
    
    /* [REWRITE] Make bar fixed to top */
    position: fixed;
    top: 0;
    width: 100%;
    height: 26px;
    z-index: 1040;
}

.lang-wrap ul {
    margin-bottom: 0;
    padding: 0;
    float: right;
    display: flex; /* Prevent items from wrapping */
}

.lang-wrap ul li {
    /* float: left; */ /* Replaced by flex */
    border-right: 1px solid var(--border-light);
    flex-shrink: 0; /* Prevent items from squishing */
}

.lang-wrap ul li:first-child {
    border-left: 1px solid var(--border-light);
}

.lang-wrap ul li a {
    /* [REWRITE] Set text color to dark for white background */
    color: var(--text-primary); 
    padding: 0 15px;
    line-height: 25px; /* (height - border) to center text */
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.lang-wrap ul li a.active {
    background: var(--gray-200);
    color: var(--text-primary);
    font-weight: 600;
}
.lang-wrap ul li a:hover:not(.active) {
    background-color: var(--gray-200);
    color: var(--text-primary);
}

.lang-wrap ul li img {
    float: left;
    cursor: pointer;
    margin-left: 5px;
    display: none;
}

/* =================================================================== */
/* 4. MAIN NAVIGATION (HEADER) - REDESIGNED */
/* =================================================================== */
.navbar-inverse.navbar-fixed-top {
    margin: 0;
    
    background: var(--text-white);
    box-shadow: var(--shadow-nav);
    border-bottom: 1px solid var(--border-light);

    position: fixed;
    /* --- [REWRITE] START --- */
    /* Position below 26px language bar */
    top: 26px !important; 
    /* --- [REWRITE] END --- */
    z-index: 1030;
    width: 100%;
}

/* Slimmer Logo Padding & Aligned */
.navbar-inverse .navbar-brand {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Main Menu - Aligned and Slimmer */
.navbar-nav {
    margin-top: 0;
}
.navbar-inverse .navbar-nav > li > a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    text-transform: none;
    padding: 16px 15px;
    position: relative;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

/* New Hover/Focus Effect (Replaces Underline) */
.navbar-inverse .navbar-nav > li > a::after {
    display: none;
}
.navbar-inverse .navbar-nav > li > a:hover::after,
.navbar-inverse .navbar-nav > li > a:focus::after {
    width: 0;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: var(--primary-600);
    background-color: var(--gray-100);
}

/* ADMIN/LOGIN links - Inherit new hover */
.navbar-inverse .navbar-nav > li:nth-child(8) > a,
.navbar-inverse .navbar-nav > li:nth-child(9) > a {
    color: var(--gray-700);
    font-size: 14px;
}
.navbar-inverse .navbar-nav > li:nth-child(8) > a:hover,
.navbar-inverse .navbar-nav > li:nth-child(9) > a:hover {
    color: var(--primary-600);
    background-color: var(--gray-100);
}
.navbar-inverse .navbar-nav > li:nth-child(8) > a::after,
.navbar-inverse .navbar-nav > li:nth-child(9) > a::after {
    display: none;
}

/* =================================================================== */
/* 5. HOME BANNER (NEW) */
/* =================================================================== */
/* [REWRITE] This section is NOT a .fullpage-section, */
/* so it retains its original height/padding rules. */
.home-banner-wrapper {
    padding: 0 !important;
    height: 40vh;
    min-height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--dark-800);
    background-image: url('https://images.unsplash.com/photo-1487058792275-0d0b6b781c03?q=80&w=1920&auto-format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    
    /* [REWRITE] This padding is to clear the *body* padding-top */
    /* This is complex, but necessary if it's the first item */
    margin-top: -78px;
    padding-top: 78px !important;
}

.home-banner-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.home-banner-wrapper .container {
    position: relative;
    z-index: 2;
}

.home-banner-wrapper h1.home-slogan {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0;
    text-align: center;
}

.home-banner-wrapper h1.home-slogan::after {
    content: none;
}

/* =================================================================== */
/* 6. SECTION: PORTFOLIO */
/* =================================================================== */
[id^="portfolio"] {
    background: var(--section-bg-light);
}

.con1 {
    /* [REWRITE] margin-top: auto removed (flex handles it) */
    text-align: center;
}

.portfolio-slogan {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: -10px;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

/* Carousel Container */
[id^="portfolio"] .carousel {
    /* [REWRITE] Use 100% width of its new full-width wrapper */
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    
    /* [REWRITE] Help carousel fill vertical space */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
[id^="portfolio"] .carousel-inner > .item {
    padding: 0 0px;
}
[id^="portfolio"] .carousel-inner .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
[id^="portfolio"] .carousel-inner .col-md-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 30px;
    flex: 0 0 50%;
}

/* Carousel Controls (Arrows) */
[id^="portfolio"] .carousel-control {
    display: block;
    background-image: none !important;
    color: var(--primary-600);
    opacity: 0.7;
    width: 5%;
}
[id^="portfolio"] .carousel-control:hover {
    opacity: 1;
    color: var(--primary-500);
}
[id^="portfolio"] .carousel-control .glyphicon {
    text-shadow: none;
    display: block;
}

/* Carousel Indicators (Dots) */
[id^="portfolio"] .carousel-indicators {
    bottom: -10px;
    display: block;
}
[id^="portfolio"] .carousel-indicators li {
    background-color: var(--gray-500);
    border-color: var(--gray-500);
}
[id^="portfolio"] .carousel-indicators .active {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

/* Portfolio Logos */
[id^="portfolio"] img.img-responsive {
    background-color: var(--text-white);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: auto;
    height: auto;
}
[id^="portfolio"] img.img-responsive:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 10;
}

/* =================================================================== */
/* 7. SECTION: TEAM */
/* =================================================================== */
[id^="team"] {
    background: var(--section-bg-lighter);
}

/* Use Flexbox for equal height columns */
[id^="team"] .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

/* START: USER REQUEST CHANGES (Team Section) */
[id^="team"] .con {
    display: flex;
    flex-direction: column;
    margin-top: -1px;
}

[id^="team"] .info {
    padding: 30px 15px;
    height: auto;
    flex-grow: 1; 
    border: none;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--border-medium);
    border-bottom: 1px solid var(--border-medium);
    transition: all 0.3s ease;
    position: relative;
}
[id^="team"] .info:hover {
    box-shadow: none;
    transform: none;
    background-color: var(--gray-50);
    border-top-color: var(--primary-600);
    border-bottom-color: var(--primary-600);
    z-index: 2;
}
/* END: USER REQUEST CHANGES (Team Section) */


.profile h3 { /* Name */
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    word-break: break-word;
}
.profile h3 span.position {
    display: block;
    padding-top: 4px;
    background-image: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* === START: USER FIX (English Name Font Size) === */
.main-en [id^="team-en"] .profile h3 {
    font-size: 20px;
    word-break: normal;
}
.main-en [id^="team-en"] .profile h3 span.position {
    font-size: 14px;
}
/* === END: USER FIX === */

.profile p {
    margin: 0;
    color: #171248;
}
.profile i {
    color: #0B173B;
    font-size: 50px;
    display: none;
}

.work {
    text-align: left;
}
[id^="team"] h4 { /* "주요경력", "학력" */
    margin: 0 0 10px;
    padding: 0;
    color: var(--dark-700);
    border-bottom: none;
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
[id^="team"] h4:last-child {
    height: auto;
}

/* === START: USER FIX (Career List) === */
.work ul.career-list {
    list-style: none;
    padding-left: 17px;
    margin: 0;
    min-height: 80px;
}
.work ul.career-list li {
    position: relative;
    padding-bottom: 8px;
    color: var(--gray-950);
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}
.work ul.career-list li:last-child {
    padding-bottom: 0;
}
.work ul.career-list li::before {
    content: '-';
    position: absolute;
    left: -17px;
    color: var(--gray-950);
}

.work p {
    margin-bottom: 4px;
    width: auto;
    position: relative;
    padding-left: 0px;
    word-break: break-word;
    color: var(--gray-950);
    font-size: 15px;
    line-height: 1.6;
}
.work p:before {
    content: none;
}
/* === END: USER FIX === */

.univ {
    margin-top: 36px !important;
}

/* =================================================================== */
/* 8. SECTION: FUND */
/* =================================================================== */
[id^="fund"] {
    background: var(--section-bg-light);
}

[id^="fund"] .fund_wrap {
    margin: 0 auto; /* [REWRITE] Remove vertical margin */
    overflow-x: auto;
}
[id^="fund"] .fund_wrap table.fund {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table Header */
.fund thead th {
    padding: 10px 10px 12px;
    font-size: 18px;
    color: #222;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-600);
    background-image: none;
}
.fund thead th span {
    padding-bottom: 0;
    border-bottom: none;
    font-weight: 700;
}

/* Table Body */
.fund tbody th { /* Fund Name */
    padding: 13px 10px 10px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 17px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.fund td {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-align: center;
    padding: 10px 10px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

/* Column Widths */
.fund thead th:nth-child(2), .fund tbody td:nth-child(2) { width: 130px; } /* 규모(AUM) */
.fund thead th:nth-child(3), .fund tbody td:nth-child(3) { width: 140px; } /* 현황(Status) */
.fund thead th:nth-child(4), .fund tbody td:nth-child(4) { width: 180px; } /* 분야(Area) */

.year {
    color: var(--primary-600);
    display: block;
    padding-bottom: 7px;
    font-weight: 400;
    font-size: 14px;
}

/* Row Hover */
.fund tbody tr {
    transition: background-color 0.2s ease;
}
.fund tbody tr:hover {
    background-color: #f7f9ff;
}

/* Status Pills */
.status-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}
.status-pill.status-active {
    background-image: var(--status-active-bg);
    color: var(--status-active-text);
}
.status-pill.status-liquidating {
    background-color: var(--status-liquid-bg);
    color: var(--status-liquid-text);
}
.status-pill.status-terminated {
    background-color: var(--status-term-bg);
    color: var(--status-term-text);
}
.fund tbody td:nth-child(3) {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* =================================================================== */
/* 9. SECTION: CONTACT */
/* =================================================================== */
[id^="contact"] {
    background: var(--section-bg-lighter);
}

/* Map column */
[id^="contact"] .col-sm-7 {
    flex: 1 1 58%;
    padding: 0;
    min-width: 320px;
}
[id^="contact"] iframe {
    width: 100%;
    height: 100%;
    /* [REWRITE] Set a larger min-height for the flex layout */
    min-height: 500px; 
    border: 0;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* Info column */
[id^="contact"] .col-sm-5.table_wrap {
    flex: 1 1 42%;
    min-width: 320px;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.table_wrap {
    margin-top: 0;
}

/* START: USER REQUEST CHANGES (Contact Section) */
.table_wrap table {
    font-size: 16px;
    width: 100%;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 0;
}
.table_wrap tr {
    display: block;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 20px 0;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    border-bottom: 1px solid var(--border-dark);
    border-top: 1px solid var(--border-dark);
    margin-top: -1px;
    position: relative;
}
.table_wrap tr:first-child {
    margin-top: 0;
}
.table_wrap tr:hover {
    background-color: var(--gray-50);
    border-color: var(--primary-600);
    z-index: 2;
}
/* END: USER REQUEST CHANGES (Contact Section) */


/* Info th/td */
.table_wrap th, .table_wrap td {
    padding: 0 15px;
    border-bottom: none;
    text-align: left;
    line-height: 1.6;
    display: block;
    width: 100%;
}
.table_wrap th {
    font-weight: 600;
    color: var(--gray-800);
    background-color: transparent;
    width: 100%;
    min-width: 0;
    font-size: 14px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table_wrap td {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
    font-size: 16px;
}

/* Clickable link rows */
.table_wrap tr:nth-child(2) td,
.table_wrap tr:nth-child(4) td,
.table_wrap tr:nth-child(5) td {
    color: var(--primary-700);
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}
.table_wrap tr:nth-child(2):hover td,
.table_wrap tr:nth-child(4):hover td,
.table_wrap tr:nth-child(5):hover td {
    color: var(--primary-900);
    background-image: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* =================================================================== */
/* 10. FOOTER */
/* =================================================================== */
#footer {
    width: 100%;
    background-image: none;
    background-color: transparent;
    border-top: none;
    padding: 60px 0;
    color: var(--text-muted);
    margin-top: 0 !important;
}
#footer img {
    margin: 0 0 20px 0;
}
#footer ul {
    padding-left: 0;
    margin-bottom: 0;
}
#footer ul li {
    font-size: 13px;
    opacity: 1;
    transition: color 0.2s ease;
    line-height: 1.6;
    margin-bottom: 5px;
}
#footer ul li:hover {
    color: var(--text-primary);
}
.text-center {
    padding: 0;
}

/* =================================================================== */
/* 11. POPUP MODAL (MERGED) */
/* =================================================================== */
#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1040;
}
#popup-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    background-color: var(--text-white);
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    flex-direction: column;
}
#popup-modal .popup-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-dark);
}
#popup-modal .popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}
#popup-modal .popup-header h3 #popup-title-text {
    line-height: 1.2;
}
#popup-modal .popup-body {
    padding: 20px;
    overflow-y: auto;
}
#popup-modal .popup-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-900);
    word-break: keep-all;
}
#popup-modal .popup-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-dark);
    text-align: right;
}
#popup-close-btn {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
    color: var(--text-white);
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}
#popup-close-btn:hover {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
}

/* =================================================================== */
/* 12. MOBILE STYLES (@media max-width: 1199px) - UPDATED BREAKPOINT */
/* =================================================================== */
@media (max-width: 1199px) {

    /* --- [REWRITE] REVERT FULLPAGE STYLING ON MOBILE --- */
    .fullpage-section {
        height: auto !important;
        min-height: 0 !important;
        display: block !important; /* Revert flex */
        padding: 0 !important; /* Revert padding */
    }
    .intro-html-layout section {
        padding: 0 0px !important;
        padding-bottom: 20px !important; /* Restore mobile spacing */
    }
    .intro-html-layout section[id^="contact"] {
        padding-bottom: 0px !important;
    }
    section h1 {
        padding-top: 50px !important; /* Restore mobile h1 padding */
        padding-bottom: 20px !important;
    }
    
    [id^="portfolio-content-wrapper-kr"],
    [id^="portfolio-content-wrapper-en"] {
        width: 100% !important;
        padding-left: 0; /* Revert desktop padding */
        padding-right: 0;
        flex-grow: 0;
    }
    /* --- END [REWRITE] REVERT --- */


    /* --- [REWRITE] START --- */
    .body-layout {
        /* Adjust padding for mobile fixed headers */
        /* 26px (lang) + 52px (brand bar) + 52px (links bar) = 130px */
        padding-top: 130px;
    }
    /* --- [REWRITE] END --- */
    
    /* [REWRITE] Home banner margin fix for mobile */
    .home-banner-wrapper {
        margin-top: -130px;
        padding-top: 130px !important;
    }


/* --- START: MOBILE NAVBAR REDESIGN (Horizontal Scroll Menu) --- */
.navbar-inverse .navbar-toggle {
    display: none;
}
.navbar-collapse {
    display: block !important;
    height: auto !important;
    padding-bottom: 0;
    overflow: visible !important;
}
.navbar-fixed-top .navbar-collapse {
    max-height: none;
    overflow-y: visible;
    background-color: var(--text-white);
    border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-nav);
    padding: 0;
    margin: 0;
}
.navbar-inverse .navbar-nav {
    margin: 0;
    padding: 0;
    float: none;
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.navbar-inverse .navbar-nav::-webkit-scrollbar {
    display: none;
}
.navbar-inverse .navbar-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.navbar-inverse .navbar-nav > li {
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
    border-left: none;
    float: none;
    white-space: nowrap;
}
.navbar-inverse .navbar-nav > li:first-child {
    border-left: none;
}

.navbar-inverse .navbar-nav > li > a {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-bottom: none;
    padding: 16px 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    text-shadow: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: var(--radius-md);
}
.navbar-inverse .navbar-nav > li:last-child > a {
    border-bottom: none;
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:focus,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-nav > li > a:hover {
    color: var(--primary-600) !important;
    background-color: var(--gray-100) !important;
    border-bottom: none;
}
.navbar-inverse .navbar-nav > li:last-child > a:hover,
.navbar-inverse .navbar-nav > li:last-child > a:focus {
    border-bottom: none;
}

.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
    display: none;
}

[id^="team"], [id^="portfolio"],
[id^="fund"], [id^="contact"] {
    height: auto;
    /* [USER REQ] On mobile, revert to simpler backgrounds */
    background: var(--text-white) !important;
}
.main-content section h1 {
    padding-top: 50px;
    padding-bottom: 20px;
    font-size: 30px;
}
.main-content section h1::after {
    content: none;
}

/* Mobile Home Banner */
.home-banner-wrapper {
    height: auto;
    min-height: 200px;
}
.home-banner-wrapper h1.home-slogan {
    font-size: 28px;
}

/* Mobile Team Section (Revert to Card Style) */
[id^="team"] .row {
    display: block;
    width: 100%;
}
[id^="team"] .con {
    padding: 0;
    margin-top: 0;
}
[id^="team"] .info {
    padding: 24px;
    height: auto;
    margin-left: 0;
    margin-right: 0;
    box-shadow: none;
    transform: none;
    background-color: var(--gray-50);
    display: block;
    border: none;
    border-radius: var(--radius-lg);
}
[id^="team"] .info:hover {
    background-color: var(--gray-50);
    border-color: transparent;
    z-index: 1;
}
[id^="team"] .info .profile, [id^="team"] .info .work {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
[id^="team"] .info .profile {
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-right: none;
}
[id^="team"] .info .work {
    margin-top: 0;
}
[id^="team"] .info .work h4 {
    width: auto;
    font-size: 13px;
}
.work ul.career-list {
    min-height: 0;
}


/* Mobile Portfolio Section */
.portfolio-slogan {
    font-size: 16px;
    margin-top: -10px;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
}
[id^="portfolio"] .con1 {
    padding: 20px 0;
}
[id^="portfolio"] .carousel {
    padding: 10px 0 30px;
    background: transparent;
    border: none;
    box-shadow: none;
}
[id^="portfolio"] .carousel-inner > .item {
    padding: 0;
}
[id^="portfolio"] .carousel-control {
    display: none;
}
[id^="portfolio"] .carousel-indicators {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    display: block;
    margin-left: 0;
    margin-top: 10px;
}
[id^="portfolio"] .carousel-inner .col-md-3 {
    min-height: auto;
    padding-top: 15px;
    padding-bottom: 15px;
    flex: 0 0 45%;
}
[id^="portfolio"] img.img-responsive:hover {
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Mobile Fund Section */
[id^="fund"] .con2 {
    height: auto;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 10px 0;
    max-width: 100% !important; /* Mobile override */
}
[id^="fund"] .fund_wrap {
    width: 100%;
    margin: 40px 0;
    padding-bottom: 18px;
    border: 0 none;
}
[id^="fund"] .fund_wrap table.fund {
    min-width: 0;
}

/* Mobile Fund Table (Card Carousel) */
[id^="fund"] .fund_wrap table, [id^="fund"] .fund_wrap th, [id^="fund"] .fund_wrap td, [id^="fund"] .fund_wrap tr {
    display: block;
}
[id^="fund"] .fund_wrap thead {
    display: none;
}
[id^="fund"] .fund_wrap tbody {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
[id^="fund"] .fund_wrap tbody::-webkit-scrollbar {
    display: none;
}
[id^="fund"] .fund_wrap tr {
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--text-white);
    flex: 0 0 85%;
    scroll-snap-align: start;
    margin-bottom: 0;
    margin-right: 15px;
    margin-top: 0;
}
[id^="fund"] .fund_wrap tr:last-child {
    margin-right: 0;
}
[id^s="fund"] .fund_wrap tbody th {
    width: 100%;
    padding: 15px 15px 10px;
    border-bottom: 1px solid var(--border-light);
    font-size: 17px;
}
[id^="fund"] .fund_wrap td {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    font-size: 16px;
    text-align: right;
    border-bottom: none;
}
[id^="fund"] .fund_wrap td:last-child {
    border-bottom: none;
}
[id^="fund"] .fund_wrap td::before {
    content: attr(data-label);
    font-weight: 600;
    text-align: left;
    color: var(--gray-900);
    padding-right: 15px;
}

/* Mobile Scrollbar (General) */
::-webkit-scrollbar { -webkit-appearance: none; }
::-webkit-scrollbar:vertical { width: 12px; }
::-webkit-scrollbar:horizontal { height: 12px; }
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .4);
    border-radius: 10px;
    border: 2px solid var(--border-light);
}
::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Contact Section (Revert to Card Style) */
[id^="contact"] .container .row {
    margin-top: 20px;
    max-width: 100% !important; /* Mobile override */
}
[id^="contact"] iframe {
    width: 100%;
    height: 250px;
    min-height: 250px;
}
[id^="contact"] .col-sm-5.table_wrap {
    padding: 30px 0px;
}
[id^="contact"] .table_wrap table {
    background-color: var(--gray-50);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    border-collapse: separate;
}
[id^="contact"] .table_wrap tr {
    padding: 20px 24px;
    border: none;
    border-bottom: 1px solid var(--border-dark);
    margin-top: 0;
}
[id^="contact"] .table_wrap tr:last-child {
    border-bottom: none;
}
[id^="contact"] .table_wrap tr:hover {
    background-color: var(--text-white);
    border-color: transparent;
    z-index: 1;
}
[id^="contact"] .table_wrap th, [id^="contact"] .table_wrap td {
    padding-left: 0;
    padding-right: 0;
}


.main-en .carousel-caption p span {
    line-height: 1.4;
}
} /* End @media (max-width: 1199px) */

@media (max-width: 1198px) { /* Updated from 767px */
    .dh-popup img.police-light-icon {
        width: 31px;
    }
}