/* Header Styles */
#header {
    background-color: #fff;
    height: 110px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 4px 1px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sticky header scrolled state */
#header.scrolled {
    height: 70px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px 0px;
}

/* Body padding to prevent content jump */
body {
    padding-top: 110px;
}

body.header-scrolled {
    padding-top: 70px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

/* Top Bar */
.top-bar {
    height: 40px;
    padding-top: 10px;
    text-align: right;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

#header.scrolled .top-bar {
    height: 0;
    padding-top: 0;
    opacity: 0;
}

.quick-menu {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.quick-menu li a {
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.quick-menu li a:hover {
    color: #2c5f2d;
}

.quick-menu li a i {
    font-size: 10px;
}

/* Main Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled .main-header {
    height: 70px;
    padding-top: 0;
}

/* Logo */
.logo {
    flex-shrink: 0;
    margin-bottom: 20px;
}

#header.scrolled .logo {
    margin-bottom: 0;
}


.logo a {
    display: block;
}

.logo img {
    height: 60px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled .logo img {
    height: 45px;
}

/* Navigation */
.gnb {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.depth1 {
    display: flex;
    gap: 60px;
    align-items: center;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: block;
    padding: 15px 0;
    position: relative;
}

.menu-link p {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    transition: all 0.3s ease;
}

#header.scrolled .menu-link p {
    font-size: 16px;
}

.menu-item:hover .menu-link p {
    color: #2c5f2d;
}

/* Dropdown Menu */
.depth2 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #2c5f2d;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.menu-item:hover .depth2 {
    opacity: 1;
    visibility: visible;
}

.depth2 li {
    border-bottom: 1px solid #f0f0f0;
}

.depth2 li:last-child {
    border-bottom: none;
}

.depth2 li a {
    display: block;
    padding: 10px 30px 10px 15px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}

.depth2 li a::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('../images/arr.png') no-repeat center;
    background-size: 100% 100%;
    top: 50%;
    transform: translateY(-50%);
    right: 100px;
    opacity: 0;
    transition: all 0.3s ease;
}

.depth2 li a:hover {
    background-color: #48683f;
    color: #fff;
}

.depth2 li a:hover::after {
    right: 1px;
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #header {
        height: auto;
        min-height: 80px;
    }
    
    .header-inner {
        padding: 0 15px;
    }
    
    .top-bar {
        height: 30px;
        padding-top: 5px;
    }
    
    .quick-menu {
        gap: 15px;
    }
    
    .main-header {
        height: 50px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .depth1 {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .menu-link p {
        font-size: 16px;
    }
    
    .depth2 {
        position: static;
        transform: none;
        box-shadow: none;
        border: 1px solid #eee;
        margin-top: 5px;
    }
    
    .menu-item:hover .depth2 {
        opacity: 1;
        visibility: visible;
    }
}