/* Base Variables & Reset */
:root {
    /* Colors - Blue and White Theme */
    --primary-color: #0056b3;
    /* Deep Blue */
    --primary-light: #3378c2;
    --primary-dark: #003d80;
    --accent-color: #00c4cc;
    /* Cyan/Teal accent */
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --text-light: #f8f9fa;
    --background-light: #ffffff;
    --background-off-white: #f8fbfd;
    --border-color: #e5e5e5;

    /* Typography */
    --font-heading: 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', sans-serif;
    --font-body: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
    /* For sticky header + tabs */
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling on orientation change */
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1280px;
    /* Slightly wider for catalog view */
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    /* More corporate, less pill-shaped */
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--primary-dark);
    /* Changed to Dark Blue */
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-symbol {
    width: 32px;
    height: 28px;
    background-image: url('logo_ts.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
    font-size: 0;
    /* remove padding/bg color if needed, or keep for fallback? User wants replacement. */
    background-color: transparent;
    padding: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    /* White on blue bg */
}

.logo-accent {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    /* White text */
    font-size: 1.05rem;
}


/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f5f9ff;
    color: var(--primary-color);
}

.nav-link:hover {
    color: var(--accent-color);
    /* Cyan hover */
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 10px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    height: 32px;
}

.globe-icon {
    margin-right: 8px;
    opacity: 1;
    /* Increased opacity */
    color: #ffffff;
    /* Explicit white */
    stroke: #ffffff;
    /* Explicit stroke */
    display: block;
    /* Ensure it's not hidden */
}

.lang-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    line-height: 1;
    text-decoration: none;
}

.lang-link:hover {
    color: #ffffff;
}

.lang-link.active {
    color: #ffffff;
    font-weight: 700;
}

.lang-sep {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
    font-size: 0.8rem;
}


/* Main Layout Structure */
.main-layout {
    display: flex;
    margin-top: 100px;
    /* Navbar height + spacing */
    gap: 40px;
    padding-bottom: 80px;
    align-items: flex-start;
    /* Prevent stickiness issues if heights differ */
}

/* Sidebar (Catalog Style) */
.catalog-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.catalog-list {
    font-size: 0.95rem;
}

.catalog-list>li {
    margin-bottom: 15px;
}

.catalog-list a {
    color: var(--text-muted);
    display: block;
    padding: 4px 0;
}

.catalog-list a:hover,
.catalog-list a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.category-header {
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 8px;
}

.catalog-list ul {
    padding-left: 15px;
    border-left: 2px solid #f0f0f0;
}

/* Main Content Area */
.content-area {
    flex: 1;
    min-width: 0;
    /* Prevents overflow in flex items */
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumbs .current {
    font-weight: 600;
    color: var(--text-main);
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.header-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Secondary Navigation (Sticky Tabs) */
.secondary-nav-bar {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    position: sticky;
    top: 80px;
    /* Below navbar */
    background: white;
    z-index: 90;
    padding-top: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.secondary-nav-bar::-webkit-scrollbar {
    display: none;
}

.tab-link {
    padding: 15px 25px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
}

.tab-link:hover {
    color: var(--primary-color);
    background-color: #f8fbff;
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Product Hero (Split) */
.product-hero-split {
    display: flex;
    background-color: #f0f7ff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.hero-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-benefits li {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.hero-image-wrapper {
    flex: 1;
    min-height: 300px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    background-color: #ffffff;
}

/* Feature Grid */
.features-section-alt {
    margin-bottom: 60px;
    scroll-margin-top: 160px;
    /* Offset for stuck headers */
}

.section-title-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.section-title-bar h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-item {
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feat-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #f0f0f0;
}

.feat-thumb-svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: block;
    background: #f8fafc;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    padding: 10px;
}

.feature-item h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* Product Table */
.application-section {
    margin-bottom: 60px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.product-table th,
.product-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.product-table th {
    background-color: #f7f7f7;
    font-weight: 600;
    color: var(--primary-dark);
}

.product-table tr:hover {
    background-color: #fafafa;
}

.product-table a {
    color: var(--primary-color);
    font-weight: 600;
}

.product-table a:hover {
    text-decoration: underline;
}

/* Resources Banner */
.resources-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.resources-banner h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 20px;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-white:hover {
    transform: scale(1.05);
}

/* Footer Corporate */
/* Footer Corporate - Dark Theme */
.footer-corporate {
    background-color: #0b1f3a;
    /* Deep distinct blue-black, similar tone to navbar */
    padding: 60px 0 30px;
    color: #cbd5e1;
    /* Light gray text */
    border-top: 1px solid #1e3a5f;
    margin-top: auto;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-row h5 {
    color: #ffffff;
    /* White headings */
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-row ul li {
    margin-bottom: 8px;
}

.footer-row a {
    color: #94a3b8;
    /* Muted blue-gray links */
}

.footer-row a:hover {
    color: var(--accent-color);
    /* Cyan hover */
}

.footer-legal {
    text-align: center;
    border-top: 1px solid #1e3a5f;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

/* Landing Hero styles */
.landing-hero {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('landing_bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    margin-top: 70px;
    /* Default margin for fixed header */
}

@media (max-width: 900px) {
    .navbar {
        height: 70px;
        background-color: var(--primary-dark);
        position: fixed;
        top: 0;
        z-index: 1000;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 40px;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 1050;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-container {
        padding: 0 15px;
        height: 100%;
    }

    .container {
        padding: 0 15px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        background-color: rgba(255, 255, 255, 0.05);
        display: none;
        width: 100%;
        margin-top: 10px;
        padding-left: 15px;
        box-shadow: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        padding: 12px 15px;
    }

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
    }

    .btn-primary.nav-link {
        margin-top: 15px;
        text-align: center;
        padding: 15px;
    }

    .language-selector {
        margin: 20px 0 0 0;
        padding: 15px 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        height: auto;
    }

    .landing-hero {
        height: auto;
        min-height: 80vh;
        padding: 120px 0 80px;
        margin-top: 0;
    }

    .landing-hero h1 {
        font-size: 2.2rem;
        word-break: keep-all;
    }

    .landing-hero p {
        font-size: 1.1rem;
    }

    .landing-actions {
        flex-direction: column;
        gap: 15px;
    }

    .landing-actions .btn {
        width: 100%;
    }

    .main-layout {
        margin-top: 90px;
        flex-direction: column;
        gap: 30px;
    }

    .catalog-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 15px;
        overflow-x: auto;
    }

    .sidebar-title {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
    }

    .catalog-list {
        display: none;
        margin-top: 15px;
    }

    .catalog-sidebar.expanded .catalog-list {
        display: block;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .product-hero-split {
        flex-direction: column-reverse;
    }

    .hero-text {
        padding: 30px 20px;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .footer-row {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-row h5::after {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: var(--accent-color);
        margin: 10px auto 0;
    }

    .secondary-nav-bar {
        top: 70px;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0;
        margin: 0 -20px 30px;
    }

    .tab-link {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .product-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Dropdown Extras */
.dropdown-header {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.dropdown-item.sub-item {
    padding-left: 35px;
    font-size: 0.9rem;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

/* Sidebar Sub-lists */
.catalog-list ul {
    margin-left: 0;
    padding-left: 0;
}

.subcategory-header {
    display: block;
    padding: 8px 0;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-top: 5px;
}

.subcategory-list {
    padding-left: 15px !important;
    margin-top: 0 !important;
}