/* Global Reset & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0056b3;
    /* Deep Blue - Corporate */
    --secondary-color: #f7941d;
    /* Orange - Accent from Sunggok */
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e1e1e1;
    --header-height: 80px;
    --container-width: 1200px;
}

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Adjust based on logo file */
}

/* Navigation */
nav .gnb {
    display: flex;
    gap: 40px;
}

nav .gnb>li>a {
    font-size: 18px;
    font-weight: 600;
    padding: 10px 0;
    display: block;
    position: relative;
}

nav .gnb>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav .gnb>li>a:hover::after {
    width: 100%;
}

/* Footer */
footer {
    background: #2d2d2d;
    color: #999;
    padding: 50px 0;
    font-size: 14px;
}

footer .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

footer .company-info p {
    margin-bottom: 10px;
}

footer .copyright {
    margin-top: 20px;
    color: #666;
}

/* Hero Section with Video */
.hero {
    height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: var(--header-height);
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.relative-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 18px;
    font-weight: 300;
    margin: 0 auto 40px;
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Sub-Hero Section */
.sub-hero {
    min-height: 300px;
    height: auto;
    padding: 60px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), #2c3e50;
    /* Dark fallback */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: var(--header-height);
}

/* Specific hero styles removed to match Products page default style */

.sub-hero h2 {
    font-size: 42px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sub-page-content {
    padding: 80px 0;
    min-height: 500px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    white-space: nowrap;
    display: none;
    z-index: 1000;
    border-radius: 4px;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-color);
    text-align: center;
}

.dropdown-menu li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}



/* Rich Dropdown Items */
.d-block {
    display: block;
}

.font-bold {
    font-weight: 700;
}

.text-desc {
    font-size: 12px;
    color: #999;
    font-weight: 300;
    margin-top: 2px;
}

.rich-dropdown-item {
    text-align: left !important;
    /* Override center alignment */
    padding: 12px 20px !important;
}

.dropdown-menu.facilities-menu {
    min-width: 260px;
    /* Slightly wider for descriptions */
}

.rich-dropdown-item:hover .text-desc {
    color: rgba(0, 86, 179, 0.7);
    /* Light primary color on hover */
}

/* Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(-50%, -10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(-50%, 0, 0);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 0.3s ease-out forwards;
}