:root {
    --primary-color: #002B5B;
    --secondary-color: #E60012;
    --text-color: #333333;
    --bg-color: #FFFFFF;
    --light-gray: #F4F4F4;
    --border-color: #DDDDDD;
    --header-height: 80px;
    --font-primary: 'Inter', sans-serif;
    --site-width: 1200px;
}

.container {
    width: var(--site-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Specific Highlight for Roadmap, KLM730, Features */
.product-highlight-text {
    font-size: 1.4rem !important;
    /* Increased font size */
    text-decoration: underline;
    text-underline-offset: 5px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Remove default card border/padding since image has its own border now */
.product-card {
    border: none;
    padding: 0;
    margin-bottom: 20px;
    background: transparent;
    width: 100%;
    /* Ensure container is full width */
}

.sub-item-bar {
    display: none;
}

/* Define Grid Layout if not present */
.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Default to single full-width column */
    gap: 20px;
    width: 100%;
}

/* Tight Grid specific override */
.roadmap-grid.tight-grid {
    gap: 10px;
    /* Reduced gap */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    /* padding-top removed for sticky header */
    min-width: var(--site-width);
    /* Enforce minimum width */
    overflow-x: auto;
    /* Allow scrolling if window is smaller */
}

/* Sticky Header */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(rgba(0, 43, 91, 0.3), rgba(0, 43, 91, 0.3)), url('../assets/main_hero.png') no-repeat center center;
    background-size: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    min-width: var(--site-width);
    /* Ensure header stretches to full content width */
}

nav {
    display: flex;
    align-items: center;
    width: var(--site-width);
    /* Fixed width */
    margin: 0 auto;
    padding: 0 20px;
}

/* Resetting Nav Background for the image to show */
header nav {
    background: transparent;
    /* Remove background */
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0px 2px 4px rgba(0, 43, 91, 0.3);
}

.nav-links {
    display: flex;
    gap: 25px; /* Reduced gap slightly */
    align-items: center;
    list-style: none; /* Remove bullet points */
    padding: 0; /* Remove default ul padding */
    margin: 0 auto;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem; /* Reduced font size to fit width */
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #001a38;
}

/* Main Banners (Hero) */
.hero-slider {
    position: relative;
    height: 500px;
    background: linear-gradient(rgba(0, 43, 91, 0.3), rgba(0, 43, 91, 0.3)), url('../assets/main_hero.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    width: 80%;
    /* Limit width */
    height: auto;
    /* Allow height to fit content */
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    background: transparent;
    /* Remove individual slide backgrounds */
}

.product-card .info {
    padding: 15px;
    /* Reduced from 20px (25% reduction) */
}

/* Product Images - Dark Border, No Gray Box */
.sub-item-box img,
.product-card img,
.product-card img.lightbox-trigger {
    border: 5px solid #333 !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Application Page Specific: Uniform Width & Left Alignment */
.application-page .product-card img {
    width: 946px !important;
    max-width: 100% !important;
    margin: 0;
    /* Left align to match text */
}

/* Remove default card border/padding since image has its own border now */
.product-card {
    border: none;
    padding: 0;
    margin-bottom: 20px;
    background: transparent;
}

.sub-item-bar {
    display: none;
}

/* Define Grid Layout if not present */
.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Default to single full-width column */
    gap: 20px;
    width: 100%;
}

/* Tight Grid specific override */
.roadmap-grid.tight-grid {
    gap: 10px;
    /* Reduced gap */
}

.roadmap-grid.tight-grid .product-card {
    margin-bottom: 0;
}

.slide.active {
    opacity: 1;
}

.slide h2 {
    font-size: 2rem;
    /* Scaled down from 2.5rem */
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Page Content Layout */
.page-layout {
    display: flex;
    gap: 40px;
    padding: 40px 0;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 40px);
    height: fit-content;
    border-right: 1px solid #eee;
    padding-right: 20px;
    display: none;
    /* Hidden by default, shown on pages that need it */
}

@media (min-width: 768px) {
    .sidebar {
        display: block;
    }
}

.sidebar ul li {
    margin-bottom: 0;
    border-bottom: 1px solid #ccc;
    /* Horizontal separator */
}

.sidebar a {
    display: block;
    padding: 15px 10px;
    /* Increased padding */
    border-radius: 4px;
    color: #666;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: var(--light-gray);
    color: var(--primary-color);
    font-weight: 600;
}

.main-content {
    flex-grow: 1;
}

/* Product Page Specifics */
.product-description {
    font-weight: bold;
    color: #007bff;
    /* Light Blue */
    font-size: 0.9rem;
    /* Scaled down from 1.1rem */
    margin-bottom: 0.5rem;
}

.application-page .product-description {
    font-size: 1.2rem;
    /* Scaled down from 1.5rem */
    color: #0047AB;
    /* Cobalt/Deep Blue */
}

/* Boxed Section Titles */
.main-content h1.section-title {
    border: none;
    /* Remove border */
    /* Remove border */
    padding: 7px 20px;
    /* Reduced padding (30% less height) */
    border-radius: 8px;
    background-color: #e0e0e0;
    /* Gray fill */
    font-size: 1.8rem;
    display: inline-block;
    /* Box wraps text */
    width: auto;
    /* Fit to text content */
    box-sizing: border-box;
    color: var(--primary-color);
    /* Keep primary color for text */
}

/* Reduced Line spacing */
.main-content p,
.main-content li {
    line-height: 1.4;
    /* Reduced from 1.6 */
}

/* Footer */
footer {
    background-color: #f0f2f5;
    /* Light Gray Background */
    color: #333;
    /* Dark Text */
    padding: 60px 0 20px;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 100px;
    /* Increased gap for visual balance */
    padding: 0 20px;
}

.footer-col {
    text-align: left;
}

.footer-col h3 {
    color: var(--primary-color);
    /* Dark Navy for headers */
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul {
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #555;
    /* Dark Gray for links */
}

.footer-col a:hover {
    color: var(--secondary-color);
    /* Accent color on hover */
    text-decoration: none;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.6rem;
    /* Scaled down from 2rem */
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: none;
}

/* Partner Section Home Page */
.partner-section {
    padding: 30px 0;
    text-align: center;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.partner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 15px;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.partner-item img {
    height: 1.8rem;
    /* Scaled to font size */
    width: auto;
    border: none !important;
}

.partner-item span {
    font-size: 1.8rem;
    /* Large font */
    font-weight: 800;
    /* Bold */
    color: var(--primary-color);
}

.official-distributor {
    font-size: 1.25rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Partner Box Styling */
.partner-box {
    background-color: #fff;
    border: 3px solid #ddd;
    /* Lighter Gray Border */
    border-radius: 20px;
    padding: 40px 60px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Softer shadow for lighter border */
    margin: 20px 0;
}

.partner-box .partner-item span {
    color: var(--primary-color);
}

.partner-box .official-distributor {
    color: #666;
    margin-top: 10px;
}

/* Welcome Message Styling */
.welcome-msg {
    font-size: 2rem;
    /* Scaled down from 2.5rem */
    font-weight: 700;
    color: #003399;
    /* Ultramarine / 군청색 */
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5), 0px 0px 10px rgba(0, 43, 91, 0.3);
    /* Distinct shadow for visibility on varying backgrounds */
    margin-top: 100px;
    /* Lowered by "one line" (increased from 20px/60px to 100px) */
}
