/* Global Styles */
:root {
    --primary-color: #558b2f; /* Eco Green */
    --primary-dark: #33691e; /* Deep Eco Green */
    --primary-light: #85bb5c; /* Light Eco Green */
    --secondary-color: #2e7d32; /* Standard Dark Green */
    --text-color: #333333;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #777777;
    --border-color: #e9ecef;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Basic Layout Components --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 60px 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://placehold.co/1920x450/33691e/ffffff?text=Banner');
    background-size: cover;
    background-position: center;
    height: 450px;
    padding: 0;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Breadcrumb Section */
.breadcrumb-section {
    background-color: #f9f9f9;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.breadcrumb-section .container {
    display: flex;
    align-items: center;
}

.breadcrumb-section .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 14px;
    color: #666;
}

.breadcrumb-section .breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-section .breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-section .breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
    color: #ccc;
}

.breadcrumb-section .breadcrumb span {
    color: #999;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* --- Video Styles (Restored) --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.video-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-item:hover .video-thumb img {
    transform: scale(1.1);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.video-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-color);
    color: #fff;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.video-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-info h3 a:hover {
    color: var(--primary-color);
}

.video-info span {
    font-size: 13px;
    color: #999;
}


/* --- Optimized Navigation & Dropdown --- */
.nav-list {
    align-items: center;
}

.nav-list > li {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    padding: 0 15px !important;
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.nav-list > li > a:hover,
.nav-list > li > a.active,
.nav-list > li.has-dropdown:hover > a {
    color: var(--primary-color);
}

@media (min-width: 769px) {
    .nav-list,
    .nav-list > li,
    .nav-list > li > a {
        height: 100%;
    }

    /* Underline Effect */
    .nav-list > li > a::after {
        content: '';
        position: absolute;
        /* bottom: 30px; */
        left: 15px;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }

    .nav-list > li > a:hover::after,
    .nav-list > li > a.active::after {
        width: calc(100% - 30px);
    }
}

/* Dropdown Menu */
.dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-color);
    padding: 10px 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
}

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

.dropdown-menu li {
    display: block;
    width: 100%;
    position: relative; /* For sub-menu positioning */
}

.dropdown-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px !important;
    font-size: 14px !important;
    color: #555 !important;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.2s;
    text-transform: none !important;
    font-weight: 400 !important;
    height: auto !important;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color) !important;
    padding-left: 30px !important; /* Slide effect */
}

.dropdown-menu li a::after {
    display: none; /* No underline for dropdown items */
}

/* Submenu Arrow */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s;
}

.nav-list > li:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 3rd Level Menu (Sub-submenu) */
.sub-menu {
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
    visibility: hidden;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    border-left: 2px solid var(--primary-color);
    z-index: 1001;
}

.dropdown-menu li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}


/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 10px 0 0;
    justify-content: center;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb i {
    font-size: 12px;
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb span {
    color: var(--white);
    font-weight: 500;
}


/* --- New Product List Layout (Sowinpak Mimic) --- */

.layout-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    width: 25%;
    flex-shrink: 0;
}

.category-widget {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: #333;
}

.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.sidebar-cat-list a {
    display: block;
    padding: 10px 15px;
    color: #555;
    background-color: #f9f9f9;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.sidebar-cat-list a:hover,
.sidebar-cat-list a.active {
    background-color: #e8f5e9; /* Light green bg */
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
}

.product-list-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-list-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.product-list-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-color: #ddd;
}

.card-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-info {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

.card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-desc {
    color: #666;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
}

/* Specs Grid */
.specs-grid {
    display: none;
}

/* Actions */
.card-actions {
    display: none;
}

.btn-inquire {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
    font-size: 14px;
}

.btn-inquire:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

.btn-detail {
    display: none; /* Hide Detail button for compact card */
}

/* Responsive */
@media (max-width: 1400px) {
    .product-list-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .layout-flex {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    .product-list-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-list-wrapper {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 250px;
    }
}

/* Product Detail Page Styles */
.product-detail-top {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.detail-image {
    width: 50%;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
}

.detail-info {
    width: 50%;
}

.detail-title {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.detail-desc {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.detail-specs-grid {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.detail-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

.detail-spec-item:last-child {
    border-bottom: none;
}

.detail-spec-label {
    font-weight: 500;
    color: #555;
}

.detail-spec-value {
    font-weight: 600;
    color: #333;
}

.btn-inquire-lg {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
}

.btn-inquire-lg:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(85, 139, 47, 0.3);
}

@media (max-width: 768px) {
    .product-detail-top {
        flex-direction: column;
    }
    .detail-image, .detail-info {
        width: 100%;
    }
}

/* --- Restored Header Styles --- */
.top-bar {
    background-color: #f5f5f5;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

.top-links a {
    margin-left: 20px;
    color: #666;
}

.top-links a:hover {
    color: var(--primary-color);
}

.lang-selector {
    margin-left: 20px;
    cursor: pointer;
}

/* Header Layout */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icons i {
    font-size: 18px;
    color: var(--text-color);
    cursor: pointer;
}

.header-icons i:hover {
    color: var(--primary-color);
}

/* --- Restored Footer Styles --- */
.main-footer {
    background-color: #1a1a1a;
    color: #aaa;
    font-size: 14px;
}

.footer-cta {
    background-color: var(--primary-color);
    padding: 40px 0;
    text-align: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-columns {
    display: flex;
    padding: 80px 0;
    gap: 60px;
    border-bottom: 1px solid #333;
}

.f-col {
    flex: 1;
}

.logo-col {
    flex: 1.5;
}

.footer-logo {
    margin-bottom: 25px;
    opacity: 0.9;
}

.f-col p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.f-col h4 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.f-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.f-col ul li {
    margin-bottom: 15px;
}

.f-col ul li a {
    font-size: 14px;
    color: #aaa;
}

.f-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom-bar {
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
    background-color: #111;
    color: #666;
}

.btn-white-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--white);
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
    margin-left: 20px;
    transition: var(--transition);
}

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

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Dark overlay */
}

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

.hero-text-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.company-name {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    font-size: 18px;
}

.prev-slide:hover, .next-slide:hover {
    background: var(--primary-color);
}

.prev-slide { left: 30px; }
.next-slide { right: 30px; }


/* --- Featured Categories --- */
.featured-categories {
    padding-top: 60px;
    padding-bottom: 60px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

.cat-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.cat-item:hover img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-overlay h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.cat-btn {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.3s;
}

.cat-item:hover .cat-btn {
    transform: translateX(5px);
}


/* --- Company Intro & Stats --- */
.company-intro-section {
    background-color: #fff;
    padding: 80px 0;
}

.intro-flex {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    align-items: center;
}

.intro-video, .intro-text {
    flex: 1;
}

.video-placeholder {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.video-overlay-text .small {
    font-size: 14px;
    font-weight: 400;
}

.intro-text h2 {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.intro-text p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.stat-item {
    flex: 1;
    border-right: 1px solid #eee;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}


/* --- Product Carousel Section --- */
.product-carousel-section {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.section-header.center {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #333;
}

.section-header p {
    color: #777;
    margin-top: 10px;
}

.carousel-container {
    position: relative;
    padding: 0 50px;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.product-carousel-section .product-card {
    min-width: calc(25% - 23px); /* 4 items per row */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-carousel-section .product-image {
    height: 250px;
    overflow: hidden;
}

.product-carousel-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-carousel-section .product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-carousel-section .product-info {
    padding: 20px;
    text-align: center;
}

.product-carousel-section .product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-link {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }


/* --- Advantages Section --- */
.advantages-section {
    padding: 80px 0;
}

.green-text { color: var(--primary-color); }

.divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px auto;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.adv-item {
    display: block;
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
}

.adv-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.adv-item:hover img {
    transform: scale(1.1);
}

.adv-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(255,255,255,0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding-bottom 0.3s;
}

.adv-item:hover .adv-label {
    padding-bottom: 30px;
}

.adv-label span {
    font-weight: 700;
    color: #333;
}

.adv-label i {
    color: var(--primary-color);
}


/* --- News Section --- */
.news-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

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

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

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

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

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a {
    color: #333;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* --- Certificates Section --- */
.certificates-section {
    padding: 60px 0;
    background: #fff;
}

.cert-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.cert-item {
    text-align: center;
    color: #ccc;
    transition: color 0.3s;
}

.cert-item:hover {
    color: var(--primary-color);
}

.cert-item i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.cert-item span {
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .cat-grid, .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-flex {
        flex-direction: column;
    }
    
    .stats-bar {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .advantage-grid {
        grid-template-columns: 1fr;
    }
}
    
    .stat-item {
        flex: 50%;
        border-right: none;
        margin-bottom: 20px;
    }
    
    .product-carousel-section .product-card {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .cat-grid, .advantage-grid, .news-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        flex: 100%;
    }
    
    .product-carousel-section .product-card {
        min-width: 100%;
    }
    
    .hero-title {
        font-size: 32px;
    }
}

/* --- Navigation Styles (PC & Mobile) --- */

/* Desktop Navigation (Default) */
.main-nav {
    flex: 1;
    margin-left: 40px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list > li {
    position: relative;
    padding: 30px 0;
}

.nav-list > li > a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none; /* Ensure no default underline */
    position: relative;
}

.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Move underline down */
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-list > li:hover > a::after,
.nav-list > li > a.active::after {
    width: 100%;
}

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

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-list > li:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 100;
}

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

.dropdown-menu li {
    border-bottom: 1px solid #f5f5f5;
}

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

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background: #f9f9f9;
    color: var(--primary-color);
    padding-left: 25px;
}

/* Mobile Toggle & Elements (Hidden on Desktop) */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-nav-header {
    display: none;
}

/* Mobile Navigation Media Query */
@media (max-width: 991px) {
    .header-inner {
        height: 70px;
    }

    .mobile-toggle {
        display: block;
        order: 3; /* Move to right */
    }

    .header-icons {
        margin-right: 20px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Slide out */
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s cubic-bezier(0.77, 0, 0.175, 1);
        margin-left: 0;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eee;
        background: #f9f9f9;
    }

    .mobile-nav-header img {
        height: 40px;
    }

    .close-menu {
        font-size: 24px;
        cursor: pointer;
        color: #666;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav-list > li {
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-list > li > a {
        padding: 15px 20px;
        width: 100%;
        justify-content: space-between;
    }

    /* Mobile Dropdown Arrow Enhancement */
    .nav-list > li > a .dropdown-arrow,
    .sub-menu > li > a .dropdown-arrow {
        padding: 10px 20px; /* Increase hit area for easier tapping */
        margin-right: -20px; /* Compensate for right padding */
        font-size: 14px;
        color: #999;
        display: flex;
        align-items: center;
        height: 100%;
    }

    /* Ensure sub-menu links are also flex for arrow positioning */
    .sub-menu > li > a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-right: 20px !important;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        background: #f9f9f9;
        display: none; /* Hidden by default */
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .has-dropdown.open > a {
        color: var(--primary-color);
        background: #f0f0f0;
    }

    .has-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Mobile Sub-submenu */
    .sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        background: #f0f0f0;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
    }

    .has-submenu.open > .sub-menu {
        display: block;
    }

    .has-submenu.open > a {
        color: var(--primary-color);
        background: #e9e9e9;
    }

    .has-submenu.open > a .dropdown-arrow {
        transform: rotate(90deg) !important;
    }

    /* Footer Responsive */
    .footer-columns {
        flex-direction: column;
        gap: 40px;
        padding: 40px 0;
    }

    .f-col {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* --- About Page Specific Styles --- */
.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

.about-image {
    flex: 0 0 450px;
    position: sticky;
    top: 100px; /* Sticky effect for the image */
}

.about-image .img-placeholder {
    width: 100%;
    height: 500px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #999;
}

.about-image .img-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
    color: #ccc;
}

.sub-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 70px; /* Below sticky header */
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sub-nav ul {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.sub-nav ul li a {
    display: block;
    padding: 20px 25px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.sub-nav ul li a:hover,
.sub-nav ul li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: #f9f9f9;
}

/* Responsive for About Page */
@media (max-width: 991px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
        flex: none;
        height: auto;
    }

    .about-image .img-placeholder {
        height: 300px;
    }

    .sub-nav {
        overflow-x: auto;
    }
}

    /* Contact Page Styles */
.contact-wrapper {
    display: flex;
    gap: 50px;
    padding: 50px 0;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.info-item p {
    margin-bottom: 0;
    font-size: 14px;
}

.contact-form {
    flex: 1.5;
    background: #fff;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.contact-form h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group label span {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.map-section {
    height: 400px;
    background: #f9f9f9;
    margin-bottom: -60px; /* Offset section padding */
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #999;
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

@media (max-width: 991px) {
    .contact-wrapper {
        flex-direction: column;
    }
}

/* Pagination Styles */
.pager {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.pager .pagination {
    display: inline-flex;
    border-radius: 0;
    gap: 8px;
    margin: 0;
}

.pager .pagination > li {
    display: inline-block;
}

.pager .pagination > li > a,
.pager .pagination > li > span {
    color: #666;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    float: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.pager .pagination > li > a:hover,
.pager .pagination > li > a:focus {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pager .pagination > .active > a,
.pager .pagination > .active > span,
.pager .pagination > .active > a:hover,
.pager .pagination > .active > span:hover,
.pager .pagination > .active > a:focus,
.pager .pagination > .active > span:focus {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(85, 139, 47, 0.2);
}

.pager .pagination > .disabled > span,
.pager .pagination > .disabled > span:hover,
.pager .pagination > .disabled > span:focus,
.pager .pagination > .disabled > a,
.pager .pagination > .disabled > a:hover,
.pager .pagination > .disabled > a:focus {
    color: #ccc;
    background-color: #f9f9f9;
    border-color: #eee;
    cursor: not-allowed;
}

/* Remove Bootstrap default border radius/margin issues */
.pager .pagination > li:first-child > a, 
.pager .pagination > li:first-child > span,
.pager .pagination > li:last-child > a, 
.pager .pagination > li:last-child > span {
    border-radius: 4px;
}

/* FAQ Styles */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    background: #fff;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    padding-right: 50px;
    transition: all 0.3s;
}

.faq-question::after {
    content: '\f078';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    transition: transform 0.3s;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
    background: #f9f9f9;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.8;
    display: none;
    background: #f9f9f9;
    border-top: 1px solid #f0f0f0;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
