/* ============================================
   e-trees Korea Homepage - Rebuilt CSS
   - 한글 폰트 적용 (Noto Sans KR)
   - 반응형 지원
   - Flash/Swiffy 제거 → CSS 슬라이더
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont,
                 '맑은 고딕', 'Malgun Gothic', '돋움', Dotum,
                 Helvetica, Arial, sans-serif;
    background-color: #f7f4f1;
    color: #555;
    line-height: 1.6;
    padding: 20px 0;
    text-align: center;
}

a {
    color: #627601;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #cc0000;
}

img {
    border: none;
    vertical-align: top;
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* Layout */
#wrap {
    margin: 0 auto;
    max-width: 900px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    overflow: hidden;
}

/* Header */
#header {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo {
    flex-shrink: 0;
}

#comname {
    text-align: right;
}

.company-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
}

.company-eng {
    display: block;
    font-size: 11px;
    color: #999;
    letter-spacing: 2px;
    font-family: 'Georgia', serif;
}

/* Main Navigation */
#main-nav {
    background: #627601;
    padding: 0;
}

#main-nav ul {
    display: flex;
    justify-content: center;
}

#main-nav li {
    flex: 1;
}

#main-nav a {
    display: block;
    padding: 12px 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    transition: background 0.2s;
    border-right: 1px solid rgba(255,255,255,0.15);
}

#main-nav li:last-child a {
    border-right: none;
}

#main-nav a:hover {
    background: #4e5f01;
    color: #fff;
}

/* Main Banner / Slider */
#main-banner {
    position: relative;
    overflow: hidden;
    background: #1a2a3c;
}

.slide-container {
    position: relative;
    width: 100%;
    aspect-ratio: 900 / 280;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Slide navigation arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    width: 40px;
    height: 60px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-arrow:hover {
    background: rgba(0,0,0,0.6);
}

.slide-prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.slide-next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.indicator:hover {
    background: rgba(255,255,255,0.5);
}

.indicator.active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* Products Section */
#products {
    padding: 30px 25px;
}

.product-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.product-card {
    flex: 1;
    max-width: 360px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.product-card .proxy {
    color: #e67e22;
}

.product-card p {
    font-size: 13px;
    color: #bbb;
    line-height: 1.5;
}

/* Quick Links */
#quick-links {
    padding: 0 25px 30px;
}

#quick-links ul {
    display: flex;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

#quick-links li {
    flex: 1;
}

#quick-links a {
    display: block;
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    border-right: 1px solid #ddd;
    transition: background 0.2s;
}

#quick-links li:last-child a {
    border-right: none;
}

#quick-links a:hover {
    background: #f5f5f0;
    color: #627601;
}

.link-arrow {
    color: #627601;
    font-size: 10px;
    margin-right: 4px;
}

/* Footer */
#footer {
    background: #f5f5f0;
    padding: 20px 25px;
    border-top: 1px solid #ddd;
}

.footer-nav {
    margin-bottom: 12px;
}

.footer-nav a {
    font-size: 12px;
    color: #777;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-nav a:hover {
    color: #333;
}

.footer-nav .sep {
    margin: 0 12px;
    color: #ccc;
}

.copyright {
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.5px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    #wrap {
        border: none;
        border-radius: 0;
    }

    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    #comname {
        text-align: center;
    }

    #main-nav ul {
        flex-wrap: wrap;
    }

    #main-nav li {
        flex: 0 0 50%;
    }

    #main-nav a {
        border-bottom: 1px solid rgba(255,255,255,0.15);
        font-size: 13px;
    }

    .slide-arrow {
        width: 32px;
        height: 48px;
        font-size: 16px;
    }

    .product-grid {
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        max-width: 100%;
    }

    #quick-links ul {
        flex-direction: column;
    }

    #quick-links a {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    #quick-links li:last-child a {
        border-bottom: none;
    }

    .footer-nav .sep {
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    #main-nav li {
        flex: 0 0 100%;
    }

    .slide-arrow {
        width: 28px;
        height: 40px;
        font-size: 14px;
    }
}
