/*
Theme Name: Foreign Trade Pro
Theme URI: https://example.com/foreign-trade-pro
Author: Your Company
Author URI: https://example.com
Description: A modern and professional WordPress theme designed for foreign trade and B2B businesses. Perfect for manufacturers, exporters, and international trading companies. Features include product showcase, multilingual support, inquiry forms, and SEO optimization.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foreign-trade-pro
Tags: business, e-commerce, portfolio, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, responsive-layout, wide-blocks

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

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

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6b35;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Remove any top spacing on homepage */
body.home {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Handle WordPress admin bar on homepage */
body.home.admin-bar .site-header {
    top: 32px;
}

body.home.admin-bar .hero-slider-section {
    margin-top: 0;
    padding-top: 32px;
}

@media screen and (max-width: 782px) {
    body.home.admin-bar .site-header {
        top: 46px;
    }
    
    body.home.admin-bar .hero-slider-section {
        padding-top: 46px;
    }
}

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

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

a:hover {
    color: var(--secondary-color);
}

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

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Hide top bar on homepage for clean look */
body.home .header-top {
    display: none;
}

.header-top {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    padding: 8px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

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

.header-contact span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.header-contact i {
    color: #0ea5e9;
    font-size: 13px;
}

.header-lang select {
    padding: 4px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.header-main {
    height: 80px;
    display: flex;
    align-items: center;
}

/* Homepage header text white on transparent background */
body.home .header-main {
    color: white;
}

body.home .header-main .menu-primary > li > a {
    color: white;
}

body.home .header-main .menu-primary > li > a:hover {
    color: #10b981;
}

body.home .site-header.scrolled .header-main .menu-primary > li > a {
    color: #1e293b;
}

/* Ensure dropdown menu text is always visible */
body.home .header-main .menu-primary .sub-menu a {
    color: #1e293b !important;
}

body.home .header-main .menu-primary .sub-menu a:hover {
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1);
}

body.home .site-logo a {
    color: white;
}

body.home .site-header.scrolled .site-logo a {
    color: #1e293b;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.desktop-lang {
    display: flex;
    align-items: center;
}

/* Language switcher in navigation bar */
.header-lang-nav {
    display: flex;
    align-items: center;
    margin-left: 5px;
    flex-shrink: 0;
}

/* Make language switcher more compact */
.header-lang-nav .ft-language-switcher .ft-lang-trigger {
    padding: 8px 12px;
    font-size: 14px;
    min-width: auto;
}

.header-lang-nav .ft-language-switcher .ft-lang-name {
    min-width: auto;
    font-size: 14px;
}

.header-lang-nav .ft-language-switcher .ft-lang-flag {
    font-size: 18px;
}

/* Homepage styles for language switcher in nav */
body.home .header-lang-nav .ft-language-switcher .ft-lang-trigger {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

body.home .header-lang-nav .ft-language-switcher .ft-lang-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

body.home .header-lang-nav .ft-language-switcher .ft-lang-trigger .ft-lang-name {
    color: white;
}

body.home .header-lang-nav .ft-language-switcher .ft-lang-trigger .ft-lang-arrow {
    color: rgba(255, 255, 255, 0.9);
}

/* When scrolled on homepage */
body.home .site-header.scrolled .header-lang-nav .ft-language-switcher .ft-lang-trigger {
    background: white;
    border: 2px solid #e2e8f0;
    color: #334155;
}

body.home .site-header.scrolled .header-lang-nav .ft-language-switcher .ft-lang-trigger .ft-lang-name {
    color: #334155;
}

body.home .site-header.scrolled .header-lang-nav .ft-language-switcher .ft-lang-trigger .ft-lang-arrow {
    color: #64748b;
}

.mobile-header-controls {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-lang {
    display: none;
}

.mobile-lang-left {
    display: none;
}

.site-logo a {
    font-size: 24px;
    font-weight: 800;
    color: #0ea5e9;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s;
    display: inline-block;
}

.site-logo a:hover {
    color: #1e40af;
}

.site-logo img {
    height: 48px;
    width: auto;
    max-width: 220px;
    transition: transform 0.3s;
}

.site-logo a:hover img {
    transform: scale(1.05);
}

/* Logo placeholder when no logo is uploaded */
.site-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.site-logo-placeholder .logo-text {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

body.home .site-logo-placeholder {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

body.home .site-header.scrolled .site-logo-placeholder {
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    flex-wrap: nowrap;
}

.menu-primary {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
}

.menu-primary li {
    position: relative;
}

.menu-primary a {
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 14px;
    display: inline-block;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.menu-primary a:hover {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.06);
}

.menu-primary .current-menu-item a {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.08);
}

/* Dropdown Menu */
.menu-primary .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    padding: 10px 0;
    border-radius: 4px;
}

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

.menu-primary .sub-menu li {
    width: 100%;
}

.menu-primary .sub-menu a {
    padding: 12px 20px;
    display: block;
}

.menu-primary .sub-menu a::after {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

.header-cta {
    margin-left: 5px;
    flex-shrink: 0;
}

.btn-inquiry {
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-inquiry:hover {
    background: linear-gradient(135deg, #0284c7 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
    color: white;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    margin-top: calc(var(--header-height) + 40px);
    min-height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-text .subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

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

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--bg-white);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 25px;
}

.product-category {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-link:hover {
    gap: 12px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 80px 0;
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 38px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 17px;
}

.about-features {
    list-style: none;
    margin: 30px 0;
}

.about-features li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: var(--text-light);
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

/* ==========================================================================
   Contact/Inquiry Section
   ========================================================================== */
.inquiry-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    color: var(--bg-white);
}

.inquiry-section .section-header h2,
.inquiry-section .section-header p {
    color: var(--bg-white);
}

.inquiry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.inquiry-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.inquiry-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-info-list {
    list-style: none;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-details p {
    opacity: 0.9;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #1a1a1a;
    color: #cccccc;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--bg-white);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-widget p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #cccccc;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

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

.footer-contact-content {
    color: #cccccc;
    line-height: 1.8;
}

.footer-contact-content p {
    margin-bottom: 12px;
}

.footer-contact-content a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-content a:hover {
    color: var(--primary-color);
}

.footer-contact-content ul {
    list-style: none;
    padding-left: 0;
}

.footer-contact-content ul li {
    margin-bottom: 12px;
}

.footer-contact-content i {
    margin-right: 8px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 42px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content,
    .inquiry-content {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .header-main {
        height: 60px;
    }

    .mobile-menu-toggle {
        display: flex;
        position: static;
        transform: none;
        z-index: 1002;
        order: 3;
        flex-shrink: 0;
        margin: 0;
        padding: 8px;
    }

    .header-top { display: none; }

    .desktop-lang { display: none; }
    
    .header-lang-nav { display: none; }

    .header-main .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .header-container {
        justify-content: space-between;
        position: relative;
        padding: 0 !important;
        align-items: center;
        width: 100vw !important;
        margin: 0 !important;
        gap: 0;
    }

    .mobile-lang-left {
        display: flex;
        align-items: center;
        order: 1;
        flex-shrink: 0;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute;
        left: 0;
        z-index: 10000;
    }
    
    .mobile-lang-left .ft-language-switcher {
        margin: 0;
    }

    .site-logo {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        order: 2;
        margin: 0 auto;
        padding: 0;
        width: 100%;
    }

    .site-logo a,
    .site-logo img { 
        margin: 0 auto; 
    }

    .site-logo img {
        max-height: 35px;
        max-width: 140px;
    }

    .mobile-menu-toggle {
        margin: 0 !important;
        padding: 10px !important;
        position: absolute;
        right: 0;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
    }

    .mobile-lang-left .ft-language-switcher .ft-lang-trigger {
        padding: 8px 12px;
        font-size: 12px;
        border: 1px solid #e2e8f0;
        min-width: auto;
        background: white;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin: 0;
    }

    .mobile-lang-left .ft-language-switcher .ft-lang-name {
        display: inline-block;
        font-size: 11px;
        min-width: auto;
    }

    .mobile-lang-left .ft-language-switcher .ft-lang-flag {
        font-size: 16px;
        line-height: 1;
    }

    .mobile-lang-left .ft-language-switcher .ft-lang-arrow {
        width: 12px;
        height: 12px;
    }

    .mobile-lang-left .ft-language-switcher .ft-lang-arrow svg {
        width: 10px;
        height: 10px;
    }

    /* Adjust dropdown position for mobile left placement */
    .mobile-lang-left .ft-language-switcher {
        position: relative;
        z-index: 10001;
    }
    
    .mobile-lang-left .ft-language-switcher .ft-lang-dropdown {
        left: 0 !important;
        right: auto !important;
        min-width: 200px !important;
        max-width: 280px !important;
        width: max-content !important;
        z-index: 10002 !important;
        transform: translateY(-10px) !important;
    }
    
    .mobile-lang-left .ft-language-switcher .ft-lang-dropdown.active {
        z-index: 10002 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    /* Hide old mobile controls */
    .mobile-header-controls {
        display: none !important;
    }

    /* Homepage mobile language switcher styling */
    body.home .mobile-lang-left .ft-language-switcher .ft-lang-trigger {
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(10px);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
    }
    
    body.home .mobile-lang-left .ft-language-switcher .ft-lang-trigger .ft-lang-arrow {
        color: rgba(255, 255, 255, 0.9);
    }

    body.home .site-header.scrolled .mobile-lang-left .ft-language-switcher .ft-lang-trigger {
        background: white;
        border-color: #e2e8f0;
        color: #334155;
    }
    
    body.home .site-header.scrolled .mobile-lang-left .ft-language-switcher .ft-lang-trigger .ft-lang-arrow {
        color: #64748b;
    }
    
    /* Ensure dropdown has white background on homepage too */
    body.home .mobile-lang-left .ft-language-switcher .ft-lang-dropdown {
        background: white;
    }

    /* Mobile menu toggle button styling for homepage */
    body.home .mobile-menu-toggle span {
        background: white;
    }

    body.home .site-header.scrolled .mobile-menu-toggle span {
        background: #334155;
    }

    /* Mobile Navigation - Slide down from top */
    .main-navigation {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        max-height: 0;
        background: var(--bg-white);
        transition: max-height 0.4s ease-in-out, box-shadow 0.3s ease;
        overflow: hidden;
        box-shadow: none;
        z-index: 999;
    }
    
    .main-navigation.active {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    /* Homepage transparent header adjustment */
    body.home .main-navigation {
        top: 60px;
    }
    
    body.home.admin-bar .main-navigation {
        top: calc(60px + 32px);
    }

    /* Mobile menu styles */
    .menu-primary { 
        display: flex !important;
        flex-direction: column; 
        gap: 0; 
        width: 100%; 
        padding: 0;
        margin: 0;
    }
    
    .menu-primary li { 
        width: 100%; 
        border-bottom: 1px solid var(--border-color);
        list-style: none;
    }
    
    .menu-primary a { 
        display: block; 
        padding: 15px 20px;
        color: #1e293b !important;
        font-size: 16px;
        text-decoration: none;
    }
    
    .menu-primary a:hover {
        background: rgba(16, 185, 129, 0.1);
        color: #10b981 !important;
    }
    
    /* Mobile submenu */
    .menu-primary .sub-menu { 
        position: static; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        box-shadow: none; 
        display: none; 
        background: var(--bg-light);
        padding-left: 0;
        margin: 0;
    }
    
    .menu-primary .sub-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .menu-primary .sub-menu a {
        padding-left: 35px;
        font-size: 14px;
    }
    
    .menu-primary li.active > .sub-menu { 
        display: block; 
    }

    /* Mobile CTA button */
    .header-cta { 
        display: block !important;
        margin-left: 0; 
        margin-top: 20px; 
        padding: 0 20px 20px 20px; 
    }
    
    .btn-inquiry { 
        display: flex; 
        width: 100%; 
        justify-content: center; 
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text .subtitle {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .product-card {
        border-radius: 8px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 15px;
    }

    .product-category {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .product-info h3 {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .product-info p {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .product-price {
        font-size: 16px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

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

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--bg-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Homepage Sections
   ========================================================================== */

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    margin-top: 0;
    padding-top: 0;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    width: 100%;
}

/* On homepage, make slider start from top of screen */
body.home .hero-slider-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

.slide-image,
.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.slide-image img,
.slide-image .wp-post-image,
.slide-image .slide-bg-image,
.slide-image img[class*="attachment-"],
.slide-image img[class*="wp-image-"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    transform: none !important;
    font-family: 'object-fit: cover;'; /* Polyfill fallback */
}

.slide-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.slide-content-inner {
    max-width: 900px;
}

.slide-title {
    font-size: 64px;
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.slide-button {
    display: flex;
    gap: 15px;
    align-items: center;
}

.slide-button .btn-lg {
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.slide-button .btn-primary {
    background: #10b981;
    border: 2px solid #10b981;
    color: white;
}

.slide-button .btn-primary:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.slide-button .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.slide-button .btn-secondary:hover {
    background: white;
    color: #1e293b;
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-pagination {
    position: absolute;
    bottom: 40px;
    right: 50px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-pagination span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-pagination span.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Stats Bar */
.stats-bar {
    background: white;
    padding: 60px 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

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

.stat-item {
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: all 0.3s;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #64748b;
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 30px 0 40px;
    background: transparent;
    margin-top: -20px;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-wrapper.has-image .about-image {
    order: -1;
}

.about-wrapper.no-image {
    grid-template-columns: 1fr;
    max-width: 1000px;
}

.about-wrapper.no-image .about-content {
    text-align: center;
}

.about-wrapper.no-image .section-header {
    text-align: center;
}

.about-wrapper.no-image .about-buttons {
    justify-content: center;
}

.about-content .section-header {
    margin-bottom: 10px;
}

.about-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
    align-items: center;
}

.btn-about-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 35px;
    min-width: 140px;
    background: white;
    color: #e91e63;
    border: 2px solid #e91e63;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-about-outline:hover {
    background: #e91e63;
    color: white;
}

.btn-about-outline i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-about-outline:hover i {
    transform: translateX(3px);
}

.btn-about-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    min-width: 140px;
    background: linear-gradient(135deg, #e91e63 0%, #d81b60 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.25);
    white-space: nowrap;
    line-height: 1.4;
}

.btn-about-solid:hover {
    background: linear-gradient(135deg, #d81b60 0%, #c2185b 100%);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
    color: white;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #e91e63;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
    margin-bottom: 20px;
}

.about-text {
    font-size: 14px;
    color: #718096;
    line-height: 1.8;
    margin-bottom: 0;
}

.about-text p {
    margin-bottom: 0;
}

.company-stats {
    display: none; /* Hide stats in about section - shown in stats bar instead */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item-about {
    text-align: center;
    padding: 25px 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.stat-item-about .stat-number {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-item-about .stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.about-image {
    position: relative;
    padding: 0;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    right: 25px;
    bottom: 25px;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    border-radius: 24px;
    z-index: 0;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

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

.image-decoration {
    display: none;
}

/* Section Header Modern */
.section-header-modern {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.section-header-modern h2 {
    font-size: 48px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 20px;
}

.section-header-modern p {
    font-size: 18px;
    color: #64748b;
    line-height: 1.8;
}

/* Advantages Section */
.advantages-section {
    padding: 50px 0;
    background: white;
}

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

.advantage-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.advantage-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #0ea5e9;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    color: white;
}

.advantage-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.advantage-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* Featured Products Section */
.featured-products-section {
    padding: 50px 0;
    background: #f8fafc;
}

.products-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.product-modern-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.product-modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
}

.product-modern-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8fafc;
}

.product-modern-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-modern-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-modern-info {
    padding: 25px;
}

.product-modern-category {
    font-size: 12px;
    color: #0ea5e9;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-modern-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-modern-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.product-modern-title a:hover {
    color: #0ea5e9;
}

.btn-view-modern {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    color: white;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.btn-view-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
    color: white;
}

.view-all-products {
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: white;
    color: #0ea5e9;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    color: white;
    border-color: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Latest News Section */
.news-section {
    padding: 50px 0;
    background: white;
}

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

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}

.news-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: #f8fafc;
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover .image-overlay {
    opacity: 1;
}

.news-content {
    padding: 30px;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #64748b;
}

.news-meta i {
    margin-right: 5px;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #0ea5e9;
}

.news-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0ea5e9;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more:hover {
    gap: 12px;
    color: #1e40af;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: transparent;
    color: #0ea5e9;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    color: white;
    border-color: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Message Board Section */
.message-board-section {
    padding: 50px 0;
    background: #f8fafc;
}

.message-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.message-board-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.message-board-form .form-group {
    display: flex;
    flex-direction: column;
}

.message-board-form label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 14px;
}

.message-board-form input,
.message-board-form textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.message-board-form input:focus,
.message-board-form textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-submit-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-submit-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.btn-submit-message:active {
    transform: translateY(0);
}

.btn-submit-message:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#message-form-response {
    margin-top: 20px;
}

.message-success {
    padding: 15px 20px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.message-error {
    padding: 15px 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

@media (max-width: 768px) {
    /* 移动端板块间距缩小 */
    .container {
        padding: 0 15px;
    }
    
    .about-section {
        padding: 5px 0 10px;
        margin-top: -10px;
    }
    
    .advantages-section {
        padding: 10px 0;
    }
    
    .featured-products-section {
        padding: 10px 0;
    }
    
    .news-section {
        padding: 10px 0;
    }
    
    .message-board-section {
        padding: 10px 0;
    }
    
    .cta-section {
        padding: 10px 0;
    }
    
    .section-header-modern {
        margin-bottom: 20px;
    }
    
    .section-header {
        margin-bottom: 15px;
    }
    
    .about-content .section-header {
        margin-bottom: 10px;
    }
    
    .message-form-wrapper {
        padding: 30px 20px;
    }
    
    .message-board-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .btn-submit-message {
        width: 100%;
        justify-content: center;
    }
}

/* CTA Section */
.cta-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 25px;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-modern-primary {
    padding: 18px 40px;
    background: white;
    color: #1e40af;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #1e40af;
}

.btn-modern-secondary {
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
}

/* Responsive Styles for Homepage */
@media (max-width: 1200px) {
    .advantages-grid,
    .products-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-slider-section {
        height: 50vh;
        min-height: 400px;
        max-height: 500px;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* 移动端图片优化 */
    .slide-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .slide-image img,
    .slide-image .wp-post-image,
    .slide-image .slide-bg-image,
    .slide-image img[class*="attachment-"],
    .slide-image img[class*="wp-image-"] {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        max-width: none !important;
        max-height: none !important;
        min-width: 100% !important;
        min-height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        transform: none !important;
    }
    
    /* 确保视频也能正确适配 */
    .slide-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .slide-video iframe {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 遮罩层调整 */
    .slide-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    }
    
    .slide-content-inner {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .slide-title {
        font-size: 32px;
        margin-bottom: 15px;
        line-height: 1.3;
        text-transform: uppercase;
    }
    
    .slide-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .slide-button {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .slide-button .btn-lg {
        padding: 14px 30px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .slider-nav {
        bottom: 20px;
        gap: 10px;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-pagination {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    
    .slider-pagination span {
        width: 10px;
        height: 10px;
    }
    
    .slider-pagination span.active {
        width: 24px;
        border-radius: 5px;
    }
    
    .about-wrapper,
    .about-wrapper.has-image {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-wrapper.has-image .about-image {
        order: 0;
    }
    
    .company-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .about-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 12px;
    }
    
    .btn-about-outline,
    .btn-about-solid {
        flex: 0 1 auto;
        min-width: 140px;
        max-width: 180px;
        justify-content: center;
        padding: 14px 25px;
        font-size: 14px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }

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

    .product-modern-card {
        border-radius: 12px;
    }

    .product-modern-info {
        padding: 15px;
    }

    .product-modern-category {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .product-modern-info h3 {
        font-size: 15px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .product-modern-info p {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .product-modern-price {
        font-size: 16px;
    }

    .product-modern-badge {
        font-size: 9px;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
    }

    .stats-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header-modern h2 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-modern-primary,
    .btn-modern-secondary,
    .btn-view-all,
    .btn-outline-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile optimization for smaller screens */
@media (max-width: 480px) {
    /* 超小屏幕板块间距进一步缩小 */
    .container {
        padding: 0 10px;
    }
    
    .about-section {
        padding: 0 0 5px;
        margin-top: -5px;
    }
    
    .advantages-section {
        padding: 5px 0;
    }
    
    .featured-products-section {
        padding: 5px 0;
    }
    
    .news-section {
        padding: 5px 0;
    }
    
    .message-board-section {
        padding: 5px 0;
    }
    
    .cta-section {
        padding: 5px 0;
    }
    
    .section-header-modern {
        margin-bottom: 15px;
    }
    
    .section-header {
        margin-bottom: 10px;
    }
    
    .about-content .section-header {
        margin-bottom: 5px;
    }
    
    .hero-slider-section {
        height: 45vh;
        min-height: 300px;
        max-height: 400px;
        margin-top: 0;
    }
    
    /* 超小屏幕图片优化 */
    .slide-image,
    .slide-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .slide-image img,
    .slide-image .wp-post-image,
    .slide-image .slide-bg-image,
    .slide-image img[class*="attachment-"],
    .slide-image img[class*="wp-image-"] {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        max-width: none !important;
        max-height: none !important;
        min-width: 100% !important;
        min-height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        transform: none !important;
    }
    
    .slide-content-inner {
        padding: 0 15px;
    }
    
    .slide-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .slide-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .slide-button .btn-lg {
        padding: 10px 24px;
        font-size: 13px;
    }
    
    .slider-nav {
        bottom: 15px;
        gap: 8px;
    }
    
    .slider-prev,
    .slider-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .slider-pagination {
        bottom: 15px;
        right: 15px;
        gap: 6px;
    }
    
    .slider-pagination span {
        width: 8px;
        height: 8px;
    }
    
    .slider-pagination span.active {
        width: 20px;
    }

    /* Products grid for small mobile */
    .products-grid,
    .products-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 150px;
    }

    .product-info,
    .product-modern-info {
        padding: 12px;
    }

    .product-category,
    .product-modern-category {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .product-info h3,
    .product-modern-info h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .product-info p,
    .product-modern-info p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .product-price,
    .product-modern-price {
        font-size: 14px;
    }

    .product-modern-badge {
        font-size: 8px;
        padding: 3px 8px;
        top: 8px;
        right: 8px;
    }
}

