/*
Theme Name: Mechanical Theme
Theme URI: http://example.com/mechanical-theme
Author: AI Assistant
Author URI: http://example.com
Description: A high-fidelity mechanical industry theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: industrial, mechanical, yellow, dark
Text Domain: mechanical-theme
*/

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Colors */
:root {
    --primary-color: #F2B41B; /* Yellow */
    --secondary-color: #1A1A1A; /* Dark */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --border-color: #eee;
}

/* Header Styles */
.site-header {
    width: 100%;
    position: relative; /* Add this for absolute mobile nav */
    z-index: 1001;
}

.top-bar {
    background-color: #333;
    color: #ccc;
    font-size: 12px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact span {
    margin-left: 20px;
}

.main-header {
    height: 90px;
    background: #343a40; /* Dark grey background as per image */
}

.main-header .container {
    height: 100%;
}

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

.logo img {
    height: 65px; /* Adjusted logo height */
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-actions .social-icons {
    margin-top: 0;
}

.action-item {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
}

.main-navigation {
    background: #f8f9fa; /* Light grey background */
    border-bottom: none;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: flex-start; /* Align menu to the left */
    align-items: center;
    position: relative;
}

.nav-menu-container {
    flex-grow: 1; /* Allow menu to take available space */
}

.nav-menu {
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 25px;
    font-weight: bold;
    color: #333;
    font-size: 15px;
    transition: all 0.3s;
}

/* Active and Hover State for Menu Items */
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a,
.nav-menu li a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Downward triangle for active/hover item */
.nav-menu li.current-menu-item::after,
.nav-menu li.current_page_item::after,
.nav-menu li:hover::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-color);
    z-index: 10;
}

.main-navigation.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-search {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    border: 1px solid var(--primary-color);
    background: #fff;
}

.search-field {
    padding: 8px 15px;
    border: none;
    outline: none;
    width: 200px;
    color: var(--primary-color);
}

.search-field::placeholder {
    color: var(--primary-color);
    opacity: 0.7;
}

.search-submit {
    padding: 8px 20px;
    background: var(--primary-color);
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image-only {
    width: 100%;
    line-height: 0;
}

.hero-image-only img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Swiper Pagination Style */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #fff;
}

/* Section Titles */
.section-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    gap: 40px;
}

.title-line {
    height: 1px;
    background: #e0e0e0;
    flex-grow: 1;
    max-width: 300px;
}

.title-text {
    text-align: center;
}

.title-text h2 {
    font-size: 36px;
    color: #000;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 2px;
}

.title-text .subtitle {
    font-size: 16px;
    color: #666;
    margin: 10px 0 0;
    letter-spacing: 3px;
    font-weight: 500;
}

/* White Title Variant for About Section */
.white-title .title-line {
    background: rgba(255, 255, 255, 0.5);
}

.white-title .title-text h2 {
    color: #fff;
}

.white-title .title-text .subtitle {
    color: rgba(255, 255, 255, 0.8);
}

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

.service-item {
    text-align: center;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Scroll Animation Initial States */
.reveal-item {
    opacity: 0;
}

.reveal-left {
    transform: translateX(-100px);
}

.reveal-right {
    transform: translateX(100px);
}

/* Active State when in view */
.reveal-item.active {
    opacity: 1;
    transform: translateX(0);
}

.service-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    perspective: 1000px; /* For 3D flip */
}

.service-icon img,
.service-icon i {
    max-width: 80px;
    max-height: 80px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon i {
    font-size: 60px;
    color: var(--primary-color);
}

/* Icon Flip Animation on Hover */
.service-item:hover .service-icon img,
.service-item:hover .service-icon i {
    transform: rotateY(360deg);
}

.service-item h3 {
    font-size: 20px;
    color: #000;
    margin-bottom: 15px;
    font-weight: bold;
}

.service-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
    padding: 0 10px;
}

/* Product Detail Page */
.product-detail {
    padding: 40px 0;
}

.product-breadcrumb {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

.product-breadcrumb a {
    color: #666;
    text-decoration: none;
}

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

.product-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    border: 1px solid #eee;
    background: #fff;
    padding: 10px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    padding: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--primary-color);
}

.product-brief {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.product-meta-info {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-meta-info p {
    margin: 5px 0;
}

.btn-contact {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-contact:hover {
    background: #d99f18;
}

.product-description-section {
    margin-top: 40px;
}

.detail-tabs {
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.tab-item {
    display: inline-block;
    padding: 10px 30px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
}

.detail-content {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .product-main-content {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 300px;
    }
}
.about-section {
    background-color: #F2B41B;
    background-image: url('assets/images/map-bg.png'); /* Assuming you have or will add this */
    background-size: cover;
    background-position: center;
    padding: 60px 0; /* Reduced vertical padding */
    height: 580px; /* Fixed height as requested */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center; /* Center content vertically */
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
    color: #fff;
    line-height: 1.8;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.about-section.animate .about-text {
    opacity: 1;
    transform: translateX(0);
}

.about-text .description p {
    margin-bottom: 20px;
    font-size: 15px;
    text-align: justify;
}

.about-image {
    flex: 1;
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.about-section.animate .about-image {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    height: 320px; /* Fixed height for image to fit within 580px section */
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.plus-icon {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #000;
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.plus-icon:hover {
    background: #333;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

/* Products Grid & Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    text-align: center;
    border: 1px solid #eee;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.product-card .product-img {
    height: 200px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

/* Cases Grid & Cards */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.case-card {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.case-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.case-img {
    height: 220px;
    overflow: hidden;
}

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

.case-card:hover .case-img img {
    transform: scale(1.1);
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    height: 4.8em;
    overflow: hidden;
    margin-bottom: 15px;
}

.btn-case-more {
    display: inline-block;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

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

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

.product-item {
    text-align: center;
    border: 1px solid #eee;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.product-img {
    overflow: hidden;
    margin-bottom: 15px;
    height: 200px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-item h3 {
    font-size: 16px;
    color: #666;
    margin: 0;
    padding: 10px 0 5px;
    transition: color 0.3s ease;
    font-weight: normal;
}

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

.view-more {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    display: inline-block;
    padding: 10px 40px;
    background: var(--primary-color);
    color: #fff;
    font-weight: bold;
}

.btn-about-more {
    background: #000;
    color: #fff;
    border: none;
    font-size: 13px;
    padding: 6px 20px;
    font-weight: normal;
    transition: all 0.3s ease;
}

.btn-about-more:hover {
    background: #333;
    color: #fff;
}

.about-text .view-more {
    margin-top: 20px;
    text-align: left;
}

@media screen and (max-width: 768px) {
    .about-text .view-more {
        text-align: center;
        margin-bottom: 30px;
    }

    .view-more {
        margin-bottom: 20px;
    }
}

/* Cases Section */
.cases-section {
    padding: 80px 0;
    background: #f4f4f4;
}

.cases-slider {
    padding: 20px 0 40px;
    width: 100%;
    margin: 0 auto;
}

.case-item {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.case-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.case-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.case-item h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
    padding: 15px;
    text-align: center;
    font-weight: 500;
}

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

.news-list {
    max-width: 1000px;
    margin: 0 auto;
}

.news-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

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

.news-link {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.news-link:hover .news-info h3 {
    color: var(--primary-color);
}

.news-date {
    background: var(--primary-color);
    color: #fff;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.news-date .day {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.news-info {
    flex-grow: 1;
}

.news-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.news-info .excerpt {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-news-more {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 60px;
    font-size: 16px;
    text-transform: lowercase;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-news-more:hover {
    background: #d99f18;
}

.mobile-footer-phone {
    display: none;
}

/* Footer Styles */
.site-footer {
    background: #333;
    color: #ccc;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color, #F2B41B);
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
}

/* Responsive Styles */
/* Hide mobile elements on desktop by default */
.mobile-menu-footer,
.mobile-bottom-nav,
.mobile-footer-visible {
    display: none !important;
}

@media screen and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .nav-menu li a {
        padding: 15px 15px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-bottom: 0 !important;
    }
    
    /* Header & Nav */
    .top-bar {
        display: none; /* Hide top bar on mobile */
    }
    
    .main-header {
        height: 70px; /* Reduced header height for mobile */
    }

    .main-header .container {
        padding: 0 10px;
    }

    .logo img {
        height: 45px; /* Smaller logo for mobile */
    }

    .mobile-menu-toggle {
        display: flex;
        background: var(--primary-color) !important;
        width: 45px;
        height: 45px;
        border-radius: 4px;
        color: #fff !important;
        font-size: 24px;
    }
    
    .header-actions .social-icons {
        display: none !important; /* Hide header social icons on mobile */
    }

    .header-actions .action-item:not(.mobile-menu-toggle) {
        display: none; /* Hide other actions on small screens */
    }
    
    .main-navigation {
        display: none; /* Hidden by default on mobile, toggled by JS */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #343a40;
        box-shadow: none;
        padding-top: 60px; /* Reduced padding-top */
        z-index: 9998;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        display: block !important;
    }

    .nav-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li a {
        padding: 15px 20px;
        color: #fff;
        display: block;
    }
    
    .site-header {
        position: relative;
        z-index: 10001;
    }

    .nav-menu li.current-menu-item a::after {
        display: none;
    }
    
    .nav-menu li.current-menu-item a {
        background: var(--primary-color);
        color: #fff;
    }
    
    .header-search {
        display: none !important; /* Hide search in mobile menu as per user request */
    }
    
    .mobile-menu-footer {
        display: flex !important;
        justify-content: center;
        padding: 40px 20px; /* More compact padding */
        margin-top: 10px;
    }

    .mobile-menu-close {
        width: 50px;
        height: 50px;
        background: var(--primary-color);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        position: relative;
        z-index: 10002;
    }
    
    /* Hero Section */
    .hero-image-only img {
        height: 200px; /* Adjusted banner height for mobile as per UI */
        object-fit: cover;
    }

    .swiper-pagination {
        bottom: 10px !important;
    }

    /* Section Title for Mobile */
    .section-title-container {
        margin-bottom: 40px;
        gap: 20px;
    }

    .title-text h2 {
        font-size: 28px;
    }

    .title-text .subtitle {
        font-size: 14px;
        letter-spacing: 1px;
    }

    /* Services Section Mobile */
    .services-section {
        padding: 40px 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-icon {
        height: 70px;
        margin-bottom: 15px;
    }

    .service-icon img, .service-icon i {
        max-width: 60px;
        max-height: 60px;
    }

    .service-item h3 {
        font-size: 18px;
    }

    .service-item p {
        font-size: 13px;
        padding: 0 5px;
    }

    /* About Section Mobile */
    .about-section {
        height: auto;
        padding: 50px 20px;
        background-color: var(--primary-color);
        background-image: none;
    }

    .white-title .title-line {
        display: none;
    }

    .about-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .about-image {
        display: none;
    }

    .about-text {
        text-align: center;
    }

    .about-text .description p {
        font-size: 15px;
        margin-bottom: 15px;
        color: #fff;
        text-align: left;
    }

    .about-text .view-more {
        text-align: center;
        margin-top: 30px;
    }

    .btn-about-more {
        background: transparent !important;
        border: 1.5px solid #000 !important;
        color: #000 !important;
        padding: 10px 60px !important;
        font-size: 18px;
        font-weight: bold;
        display: inline-block;
        border-radius: 5px;
        text-transform: lowercase;
    }

    .about-section, 
    .products-section, 
    .cases-section, 
    .news-section,
    .services-section {
        padding: 40px 0 !important;
        margin-bottom: 0 !important;
    }

    /* Remove the rule that strips bottom margin from last children */
    /* It was causing "more" buttons to stick to the next section */

    /* Products Section Mobile */
    .products-section {
        padding: 40px 0 !important;
    }

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

    .product-item {
        padding: 10px;
    }

    .product-img {
        height: 120px;
    }

    .product-item h3 {
        font-size: 14px;
    }

    /* Cases Section Mobile */
    .cases-section {
        padding: 40px 0 !important;
    }

    .cases-slider {
        padding: 0;
    }

    .case-item img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    .case-item h3 {
        padding: 10px;
        font-size: 14px;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 10px !important;
    }

    .case-img {
        height: 140px;
    }

    /* News Section Mobile */
    .news-section {
        padding: 40px 0 !important;
    }

    .news-item {
        margin-bottom: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    .news-link {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .news-date {
        display: none; /* Hide the big date box */
    }

    .news-info h3 {
        font-size: 15px;
        margin-bottom: 0;
        font-weight: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-grow: 1;
    }

    .news-info .excerpt {
        display: none; /* Hide excerpt in mobile list view as per UI */
    }

    /* Add a small date on the right */
    .news-info::after {
        content: attr(data-date);
        font-size: 12px;
        color: #999;
        flex-shrink: 0;
    }

    /* Footer Mobile */
    .site-footer {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
    }

    .footer-grid {
        display: none !important;
    }

    .site-main > *:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .mobile-footer-visible {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background: #333 !important;
        padding: 50px 20px !important; /* Equal top and bottom padding */
        width: 100% !important;
        min-height: 180px !important;
        margin-bottom: 40px !important; /* Account for fixed nav height here instead of padding */
    }

    .mobile-footer-visible .container {
        text-align: center !important;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-footer-info-new {
        display: inline-block !important;
        text-align: left !important;
        width: auto !important;
        margin: 0 auto !important;
    }

    .mobile-footer-info-new p {
        display: block !important;
        color: #ffffff !important;
        font-size: 15px !important;
        margin-bottom: 5px !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }

    .mobile-footer-info-new p:last-child {
        margin-bottom: 0 !important;
    }

    .copyright {
        display: none !important;
    }

    .btn-more, .btn-news-more {
        padding: 8px 50px;
        font-size: 14px;
        border-radius: 4px;
        display: inline-block;
    }

    .view-more {
        margin-top: 20px;
    }

    .news-more-container {
        margin-top: 20px;
        margin-bottom: 40px !important;
        text-align: center;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 45px; /* Further reduced from 50px */
        background: #333;
        z-index: 10000;
        border-top: 1px solid #444;
    }

    .mobile-bottom-nav .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-decoration: none;
        transition: background 0.3s;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 16px; /* Further reduced */
        margin-bottom: 1px;
    }

    .mobile-bottom-nav .nav-item span {
        font-size: 10px; /* Further reduced */
    }

    .mobile-bottom-nav .nav-item:hover,
    .mobile-bottom-nav .nav-item.active {
        background: var(--primary-color);
    }
}


@media screen and (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .service-item h3 {
        font-size: 16px;
    }

    .service-item p {
        font-size: 12px;
        line-height: 1.4;
    }

    .service-icon {
        height: 60px;
        margin-bottom: 10px;
    }

    .service-icon img, .service-icon i {
        max-width: 50px;
        max-height: 50px;
    }
    
    .plus-icon {
        width: 60px;
        height: 40px;
        font-size: 20px;
    }
}

/* Footer Social Media QR Popup */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

.social-item {
    position: relative;
}

.social-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 20px;
}

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

.qr-popup {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    width: 120px;
}

.qr-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.qr-popup img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 5px;
}

.qr-popup span {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
}

.social-item:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.footer-col.links li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.qr-img img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #fff;
    padding: 5px;
}

.footer-col.qr-code {
    text-align: left;
}

.footer-col.qr-code h3 {
    margin-bottom: 20px;
}

.footer-bottom {
    background: #222;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
}

/* News List Page Styles */
.news-list-section {
    padding: 60px 0;
    background: #fff;
}

.news-item-row {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
    transition: all 0.3s ease;
}

.news-item-row:first-child {
    padding-top: 0;
}

.news-item-row a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 30px;
}

.news-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.news-date .day {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.news-text {
    flex-grow: 1;
}

.news-text h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
    transition: color 0.3s ease;
}

.news-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-arrow {
    color: #ccc;
    font-size: 18px;
    transition: all 0.3s ease;
}

.news-item-row:hover .news-date {
    background: var(--primary-color);
}

.news-item-row:hover .news-date .day,
.news-item-row:hover .news-date .month {
    color: #fff;
}

.news-item-row:hover .news-text h3 {
    color: var(--primary-color);
}

.news-item-row:hover .news-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

@media screen and (max-width: 768px) {
    .news-item-row a {
        gap: 15px;
    }
    
    .news-date {
        width: 60px;
        height: 60px;
    }
    
    .news-date .day {
        font-size: 18px;
    }
    
    .news-text h3 {
        font-size: 16px;
    }
    
    .news-arrow {
        display: none;
    }
}
.products-list-section {
    padding: 40px 0 80px;
    background: #f9f9f9;
}

.product-categories-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.product-categories-nav a {
    padding: 12px 30px;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    border-radius: 2px;
}

.product-categories-nav a:hover,
.product-categories-nav a.active {
    background: var(--primary-color, #fdb927);
    color: #fff;
}

.category-info-bar {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #999;
    font-size: 13px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card .product-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    padding: 10px;
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-info {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #f5f5f5;
}

.product-card .product-info h3 {
    font-size: 16px;
    margin: 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Detail Page */
.product-detail-page {
    padding-top: 20px;
    padding-bottom: 60px;
}

.product-detail-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 500;
}

.product-breadcrumb {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

.product-breadcrumb a {
    color: #999;
    text-decoration: none;
}

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

.product-gallery-wrapper {
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.product-gallery-main {
    text-align: center;
}

.main-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 800px;
    background: #f9f9f9;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.main-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #eee;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}

.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }

.gallery-prev:hover, .gallery-next:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.thumbnail-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.thumb-item {
    width: 120px;
    height: 90px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 2px;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover, .thumb-item.active {
    border-color: var(--primary-color);
}

.product-description-container {
    max-width: 1000px;
    margin: 50px auto;
}

.product-description-container .section-title {
    font-size: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    position: relative;
}

.product-description-container .section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--primary-color);
}

.detail-content {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.detail-content p {
    margin-bottom: 15px;
}

.post-navigation {
    max-width: 1000px;
    margin: 60px auto 0;
    padding-top: 30px;
}

.post-navigation .nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.post-navigation .nav-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-navigation .nav-links a:hover {
    text-decoration: underline;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    color: #999;
}

@media screen and (max-width: 768px) {
    .product-detail-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .product-breadcrumb {
        margin-bottom: 20px;
    }

    .product-gallery-wrapper {
        margin-bottom: 30px;
    }

    .product-description-container {
        margin: 30px auto;
    }
    
    .thumb-item {
        width: 80px;
        height: 60px;
    }
    
    .gallery-prev, .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}
@media screen and (max-width: 768px) {
    .post-navigation {
        margin-top: 20px !important;
        padding-top: 15px !important;
    }

    .pagination {
        margin-top: 20px !important;
    }

    .no-products {
        padding: 30px 0 !important;
    }
}

.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination ul li a,
.pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #eee;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination ul li span.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination ul li a:hover {
    background: #f5f5f5;
}

.page-total {
    font-size: 13px;
    color: #999;
}

.no-products {
    text-align: center;
    padding: 50px 0;
    color: #999;
}

@media screen and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .product-detail-page {
        padding-bottom: 10px;
    }

    .site-main {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .page-content {
        padding: 20px 0 !important;
    }

    .products-list-section {
        padding: 20px 0 10px !important;
    }

    .cases-list-section {
        padding: 20px 0 10px !important;
    }

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

    .product-categories-nav {
        margin-bottom: 20px;
        gap: 5px;
    }
    
    .product-categories-nav a {
        padding: 6px 15px;
        font-size: 13px;
    }
}
.page-header {
    background: var(--primary-color);
    color: #fff;
    padding: 30px 0;
    margin-bottom: 0;
}

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

.page-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title-group h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
}

.page-title-group .en-title {
    font-size: 16px;
    opacity: 0.9;
    text-transform: uppercase;
    border-left: 2px solid rgba(255, 255, 255, 0.5);
    padding-left: 15px;
    margin-top: 4px;
}

.breadcrumbs {
    font-size: 14px;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 5px;
}

.page-content {
    padding: 60px 0;
    line-height: 1.8;
    color: #333;
}

.page-content p {
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .page-header {
        padding: 20px 0;
    }
    
    .page-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .page-title-group h1 {
        font-size: 24px;
    }
    
    .breadcrumbs {
        font-size: 12px;
    }
}
