/*
 * A.N.C. KOREA Co., Ltd - Main Stylesheet
 * Version: 1.0
 */

:root {
    --primary-color: #2D9D5A; /* Green from ANC Korea logo */
    --secondary-color: #085E31; /* Darker green */
    --accent-color: #F5F5F5; /* Light gray */
    --text-color: #333;
    --light-text: #777;
    --white: #fff;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header Styles */
header {
    background-color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.language-selector {
    display: flex;
    gap: 15px;
}

.language-selector a {
    font-size: 0.8rem;
    color: var(--light-text);
    transition: var(--transition);
}

.language-selector a:hover,
.language-selector a.active {
    color: var(--primary-color);
    font-weight: 500;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: var(--transition);
}

.nav-menu > li:hover > a {
    color: var(--primary-color);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
    z-index: 1;
}

.nav-menu > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    padding: 8px 20px;
    display: block;
    font-size: 0.9rem;
    transition: var(--transition);
}

.submenu li a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 600px;
    background-image: url('../images/visual1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 90px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 600px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--light-text);
}

/* Background Utilities */
.bg-light {
    background-color: var(--accent-color);
}

.bg-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 15px;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
}

.product-icon i {
    font-size: 3rem;
}

.product-title {
    padding: 20px;
    font-weight: 500;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.news-date {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--light-text);
    flex-grow: 1;
}

/* Footer */
footer {
    background-color: #333;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-company {
    flex: 2;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.company-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links {
    flex: 1;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Inner Pages Common Styles */
.page-header {
    background: linear-gradient(135deg, rgba(45, 157, 90, 0.15), rgba(8, 94, 49, 0.2));
    padding: 40px 15px;
    margin-top: 100px;
    margin-bottom: 50px;
    margin-left: 30px;
    margin-right: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%232D9D5A" fill-opacity="0.1"/></svg>');
    background-repeat: repeat;
    opacity: 0.2;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 700;
}

.breadcrumbs {
    font-size: 1rem;
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    color: var(--secondary-color);
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.breadcrumbs a {
    color: var(--primary-color);
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 5px;
    color: var(--text-color);
}

/* Content Layouts */
.content-layout {
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
}

.content-main {
    flex: 2;
}

.content-sidebar {
    flex: 1;
}

.content-full {
    width: 100%;
    margin-bottom: 80px;
}

/* Sidebar Styles */
.sidebar-widget {
    margin-bottom: 30px;
    background-color: var(--accent-color);
    padding: 20px;
    border-radius: 8px;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.data-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 157, 90, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content {
        flex-direction: column;
    }

    .content-layout {
        flex-direction: column;
    }

    .content-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        transition: var(--transition);
        overflow-y: auto;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        box-shadow: none;
        display: none;
        padding: 0;
    }

    .submenu li a {
        padding-left: 40px;
        border-bottom: 1px solid #eee;
    }

    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        padding: 80px 0 30px;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-5 {
    padding-left: 3rem;
    padding-right: 3rem;
}