/* Modern Variables */
:root {
    --primary-color: #0061f2;
    --secondary-color: #6900f2;
    --dark-color: #1a1f2c;
    --light-color: #f8f9fa;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --border-color: #e9ecef;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1500px;
    --radius: 8px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fcfcfc;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: #f8faff;
}

.text-center {
    text-align: center;
}

.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 97, 242, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 97, 242, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.7);
    padding: 12px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info a {
    margin-right: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-info a:hover {
    color: var(--white);
}

/* Top Bar Social with QR */
.top-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-social-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-social-item a {
    margin: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    font-size: 0.9rem;
    background: transparent;
}

/* Consistent Colors - Removed specific backgrounds for simpler look */
.top-social-item.whatsapp a,
.top-social-item.wechat a,
.top-social-item.linkedin a { 
    background: transparent; 
}

.top-social-item:hover a {
    background: var(--white);
    color: var(--dark-color);
    transform: translateY(-2px);
    border-color: var(--white);
}

/* QR Popup for Top Bar */
.top-qr-popup {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 120px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1002;
}

.top-qr-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}

.top-social-item:hover .top-qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-qr-popup img {
    width: 100%;
    height: auto;
    margin-bottom: 5px;
}

.top-qr-popup span {
    font-size: 0.75rem;
    color: #666;
    display: block;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
}

.language-switcher:hover {
    color: var(--white);
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 100px;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    padding: 5px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s;
    margin: 0;
}

.lang-dropdown a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* Quote Badge */
.quote-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    border: 2px solid #fff;
}

/* Allow badge to overflow button */
.btn {
    overflow: visible !important;
}

/* High-end Solutions Section */
.solutions-section {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.solutions-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-card-new {
    display: block;
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.solution-card-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.solution-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: background 0.3s;
}

.solution-content-new {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s;
}

.solution-content-new h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.solution-content-new h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.solution-content-new p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s 0.1s;
}

.solution-card-new:hover img {
    transform: scale(1.1);
}

.solution-card-new:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
}

.solution-card-new:hover .solution-content-new {
    transform: translateY(0);
}

.solution-card-new:hover .solution-content-new h3::after {
    width: 100%;
}

.solution-card-new:hover .solution-content-new p {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .solutions-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .solutions-grid-new {
        grid-template-columns: 1fr;
    }
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

.logo h1 {
    font-size: 2rem;
    margin: 0;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
}

.logo span {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    background: #f1f3f5;
    border-radius: 50px;
    padding: 5px 15px;
    transition: var(--transition);
}

.search-box:focus-within {
    background: var(--white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-box input {
    border: none;
    background: transparent;
    padding: 8px;
    outline: none;
    width: 200px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 85vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

.hero-slider, .slide {
    height: 100%;
    width: 100%;
}

.slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.3s;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.5s;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.7s;
    display: flex;
    gap: 20px;
    justify-content: center;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Bar */
.features-bar {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}

.features-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(0, 97, 242, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* About Preview */
.about-preview .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--gradient);
    z-index: -1;
    border-radius: var(--radius);
}

.about-text h2 {
    font-size: 2.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Home Product Grid (4 per row) */
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* Product List Grid (3 per row) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 300px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f5f5f5;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info .brand {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.1em; /* Fixed height for 2 lines */
}

.product-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.product-actions .btn-link {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.product-actions .btn-link:hover {
    color: var(--primary-color);
}

.product-actions .btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Solutions Carousel */
.solutions-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.solutions-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.solution-item {
    background: var(--white);
    /* No border radius as requested */
    border-radius: 0; 
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Carousel specific item styles */
.solutions-track .solution-item {
    /* 4 items visible: (100% - (3 * 20px gap)) / 4 */
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: calc((100% - 60px) / 4);
}

/* Solutions Grid (for solutions.html) */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-item:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.solution-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.solution-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-item:hover .solution-img img {
    transform: scale(1.1);
}

.solution-content {
    padding: 15px; /* Simplified padding */
    flex-grow: 1;
}

.solution-item h3 {
    font-size: 1.2rem; /* Smaller font */
    margin-bottom: 5px;
}

.solution-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* News List Layout (for news.html) */
.news-list-layout .news-card {
    display: flex;
    flex-direction: row;
    height: 220px;
}

.news-list-layout .news-img {
    width: 300px;
    height: 100%;
    flex-shrink: 0;
}

.news-list-layout .news-content {
    padding: 25px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .news-list-layout .news-card {
        flex-direction: column;
        height: auto;
    }
    .news-list-layout .news-img {
        width: 100%;
        height: 200px;
    }
}

/* Brands Carousel */
.brands-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.brands-track {
    display: flex;
    width: calc(200px * 16); /* 200px width * 16 slides */
    animation: scroll 30s linear infinite;
}

.brand-slide {
    width: 200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-slide img {
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.brand-slide:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 8)); } /* Scroll half the width */
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.read-more:hover {
    gap: 10px;
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: #a0a0a0;
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col 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);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

/* Footer Social Icons with QR Popup */
.footer-social-icons {
    display: flex;
    gap: 20px;
}

.footer-social-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
}

.footer-social-item:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-qr-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    width: 120px;
    z-index: 100;
    margin-bottom: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.footer-qr-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
}

.footer-social-item:hover .footer-qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Back to Top Button */
.back-to-top {
    width: 45px;
    height: 45px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    margin-top: 15px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Sidebar Brand Items */
.brand-logo-item {
    border: 1px solid #eee;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-align: center;
    gap: 5px;
}

.brand-logo-item img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-logo-item span {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.brand-logo-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.brand-logo-item.active {
    border-color: var(--primary-color);
    background: rgba(0, 97, 242, 0.05);
    box-shadow: none;
}

.brand-logo-item.active span {
    color: var(--primary-color);
    font-weight: 700;
}

/* Removed the ugly checkmark */
.brand-logo-item.active::after,
.brand-logo-item.active::before {
    display: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Page Header (Subpages) */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 10px;
}

.breadcrumb li:last-child::after {
    display: none;
}

/* Sidebar & Layouts */
.page-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

.category-list li {
    border-bottom: 1px solid #f1f1f1;
}

.category-list li a {
    display: block;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
}

.category-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Forms */
.contact-form-wrapper, .quote-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 97, 242, 0.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a, .pagination span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.pagination a:hover, .pagination .current {
    background: var(--primary-color);
    color: var(--white);
}

/* Responsive */
@media (max-width: 1200px) {
    .features-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .features-bar .container {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Brands A-Z Nav */
.brands-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 50px;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    z-index: 900;
}

.brands-az-nav a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.brands-az-nav a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.brand-group {
    margin-bottom: 50px;
}

.brand-group h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-color);
}

.brand-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.brand-list a {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-list a:hover {
    transform: translateX(5px);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* New Product Gallery */
.product-gallery-new {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-main {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumb-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1/1;
    padding: 5px;
    background: #fff;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-item:hover, .thumb-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 97, 242, 0.1);
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* News Pagination */
.news-pagination {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.news-nav-link {
    display: flex;
    flex-direction: column;
    max-width: 45%;
    text-decoration: none;
}

.news-nav-link span {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-nav-link h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--dark-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-nav-link:hover h4 {
    color: var(--primary-color);
}

.news-nav-link.prev {
    text-align: left;
}

.news-nav-link.next {
    text-align: right;
    align-items: flex-end;
}

.news-nav-link.next h4 {
    flex-direction: row-reverse;
}
.brands-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 50px;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    z-index: 900;
}

.brands-az-nav a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.brands-az-nav a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.brand-group {
    margin-bottom: 50px;
}

.brand-group h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-color);
}

.brand-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.brand-list a {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-list a:hover {
    transform: translateX(5px);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.brand-list a i {
    opacity: 0;
    transition: var(--transition);
}

.brand-list a:hover i {
    opacity: 1;
}

/* Features Grid (for about.html) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}


/* Floating Contact Bar */
.floating-contact-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between items */
}

.contact-item {
    width: 50px;
    height: 50px;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border-radius: 50%; /* Circular */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
}

.contact-item:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Item Colors */
.contact-item.email { background: #D44638; }
.contact-item.whatsapp { background: #25D366; }
.contact-item.phone { background: #007bff; }
.contact-item.wechat { background: #07C160; }

/* Content Box (Tooltip/QR) */
.contact-content {
    position: absolute;
    right: 70px; /* Position to the left of the icon */
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 10000;
}

/* Arrow for the box */
.contact-content::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.contact-item:hover .contact-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

/* Text Content Style */
.contact-content.text-content {
    white-space: nowrap;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 20px;
}

/* QR Content Style */
.contact-content.qr-content {
    text-align: center;
    width: 140px;
    padding: 15px;
}

.contact-content.qr-content img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
    border-radius: 4px;
}

.contact-content.qr-content span {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}


/* Product Detail Gallery */
.product-gallery-new .gallery-main {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-gallery-new .gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail-list img:hover,
.thumbnail-list img.active {
    border-color: var(--primary-color);
}

/* Exclusive Contact Module */
.exclusive-contact-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.exclusive-contact-box h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
}

.exclusive-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exclusive-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    color: #555;
    text-decoration: none;
    transition: transform 0.2s;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.exclusive-item:hover {
    transform: translateX(5px);
    background: #f0f2f5;
    color: #333;
}

.exclusive-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.exclusive-item.whatsapp i { color: #25D366; }
.exclusive-item.email i { color: #D44638; }
.exclusive-item.phone i { color: #007bff; }
.exclusive-item.skype i { color: #00aff0; }


/* Brands Nav Active State */
.brands-az-nav a.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* General Layout */
    .section-padding {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }

    /* Header */
    .header-actions {
        gap: 10px;
    }
    
    .search-box input {
        width: 120px;
    }

    /* Hero */
    .hero {
        min-height: 400px;
        height: 50vh;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }

    /* Grids - Compact Product View (2 columns) */
    .home-product-grid, 
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .product-image {
        height: 140px;
        padding: 5px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 0.85rem;
        margin-bottom: 5px;
        height: 2.4em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .brand {
        font-size: 0.75rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
    }
    
    .btn-link {
        font-size: 0.75rem;
    }

    /* Solutions Grid */
    .solutions-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .solution-card-new {
        height: 180px;
    }
    
    .solution-content-new {
        padding: 15px;
    }
    
    .solution-content-new h3 {
        font-size: 1.1rem;
    }

    /* Product Detail Page */
    .product-detail-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 30px !important;
    }

    .product-gallery-new .gallery-main {
        height: 300px;
    }

    .product-info-detail h1 {
        font-size: 1.5rem !important;
    }

    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Floating Bar - Adjust for mobile */
    .floating-contact-bar {
        right: 10px;
        gap: 10px;
    }
    
    .contact-item {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .contact-content {
        display: none !important;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }
    
    .main-footer {
        padding-top: 40px;
    }
    
    /* News */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Page Layout (Sidebar) */
    .page-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Brands Nav */
    .brands-az-nav {
        top: 60px;
        padding: 10px;
        gap: 5px;
    }
    
    .brands-az-nav a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .solutions-grid-new {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 120px;
    }
}

/* Floating Quote Button (Desktop Hidden) */
.floating-quote-btn {
    display: none !important;
}

@media (max-width: 768px) {
    /* Global Container Fix */
    .container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Show Floating Quote on Mobile */
    .floating-quote-btn {
        display: flex !important;
        background: var(--primary-color) !important;
        color: #fff !important;
    }
    
    .floating-quote-btn .quote-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff4757;
        color: white;
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Header Compact */
    .header-actions .btn-primary {
        display: none !important;
    }
    
    .logo img {
        max-height: 30px; /* Smaller logo */
    }
    
    /* About Page Fixes */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Quote Page & General Layout Fixes */
    .page-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 20px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Ensure children take full width */
    .page-layout > * {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Remove grid gap from inline styles effectively */
    .page-layout[style] {
        gap: 20px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* General Compactness */
    .section-padding {
        padding: 30px 0;
    }
}

/* Further Mobile Compactness */
@media (max-width: 768px) {
    /* Features Bar - Compact 2x2 */
    .features-bar .container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .features-bar {
        margin-top: -30px !important;
        padding-bottom: 20px !important;
    }

    .feature-item {
        padding: 10px !important;
        text-align: center;
    }

    .feature-item i {
        font-size: 1.6rem !important;
        margin-bottom: 5px !important;
        display: flex;
    }

    .feature-item h3 {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
    }
    
    .feature-item p {
        font-size: 0.7rem !important;
        line-height: 1.2;
    }

    /* Compact Sections Padding */
    #about.section-padding,
    #solutions.section-padding,
    #news.section-padding {
        padding: 20px 0 !important;
    }

    /* About Section Compact */
    #about .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    #about .col-image {
        margin-top: 15px !important;
    }

    /* Solutions Compact */
    .solutions-grid-new {
        gap: 8px !important;
    }
    
    .solution-card-new {
        height: 120px !important;
    }
    
    .solution-content-new {
        padding: 10px !important;
    }
    
    .solution-content-new h3 {
        font-size: 0.85rem !important;
    }
    
    .solution-content-new p {
        display: none !important; /* Hide description */
    }

    /* News Section Compact List View */
    .news-grid {
        gap: 10px !important;
        grid-template-columns: 1fr !important;
    }

    .news-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        height: auto !important;
        min-height: 80px;
    }
    
    .news-img {
        width: 100px !important;
        height: 100% !important;
        min-height: 80px;
        flex-shrink: 0;
    }
    
    .news-img img {
        height: 100% !important;
        object-fit: cover;
    }
    
    .news-content {
        padding: 8px 12px !important;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .news-content h3 {
        font-size: 0.85rem !important;
        margin-bottom: 3px !important;
        line-height: 1.3;
    }
    
    .news-date {
        font-size: 0.65rem !important;
        margin-bottom: 3px !important;
    }
    
    .news-content p {
        display: none !important; /* Hide summary */
    }
    
    .read-more {
        font-size: 0.7rem !important;
        margin-top: 0 !important;
    }
}

/* Mobile Layout Fixes - Round 3 */
@media (max-width: 768px) {
    /* 1. Features Bar Fix */
    .feature-item {
        flex-direction: column !important;
        justify-content: center !important;
        gap: 5px !important;
    }
    
    /* 2. About Section Vertical Layout */
    #about .row {
        flex-direction: column !important;
        display: flex !important;
    }
    
    #about .col-text, #about .col-image {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* 3. Header & Search Optimization - Single Line */
    .main-header .container {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 10px 10px !important;
        align-items: center !important;
    }
    
    .logo {
        flex-shrink: 0;
        margin-right: 0 !important;
        width: auto !important;
    }
    
    .logo img {
        height: 24px !important; /* Small Logo */
        max-height: 24px !important;
        width: auto !important;
    }
    
    .header-actions {
        width: auto !important;
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        margin-top: 0 !important;
        order: unset !important;
    }
    
    .search-box {
        width: auto !important;
        flex: 1 !important;
        margin-right: 0 !important;
    }
    
    .search-box form {
        width: 100% !important;
        display: flex;
        margin: 0 !important;
    }
    
    .search-box input {
        width: 100% !important;
        flex: 1;
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
        height: 32px !important; /* Compact height */
    }
    
    .search-box button {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        margin-left: 8px !important;
        flex-shrink: 0;
        font-size: 1.2rem !important;
        width: 32px !important;
        height: 32px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        order: unset !important;
    }

    /* 4. Sidebar Collapse Styles */
    .sidebar-widget {
        margin-bottom: 10px !important;
    }
    
    .sidebar-widget .widget-title {
        cursor: pointer;
        background: #f1f3f5;
        padding: 10px 15px;
        margin: 0;
        border-radius: 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1rem !important;
    }
    
    .sidebar-widget .widget-title::after {
        content: '\f078'; /* FontAwesome Chevron Down */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 0.8rem;
        transition: transform 0.3s;
    }
    
    .sidebar-widget.active .widget-title::after {
        transform: rotate(180deg);
    }
    
    /* Hide widget content by default on mobile */
    .sidebar-widget > *:not(.widget-title) {
        display: none;
    }
    
    /* Show when active */
    .sidebar-widget.active > *:not(.widget-title) {
        display: block;
        padding: 15px;
        border: 1px solid #f1f3f5;
        border-top: none;
    }
    
    /* 5. Solutions Grid Fix */
    .solutions-grid-new {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* 6. Logo Text Fix */
    .logo h1 {
        font-size: 1.3rem !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    /* 7. Global Button Compactness */
    .btn {
        padding: 6px 16px !important;
        font-size: 0.8rem !important;
        height: auto !important;
        min-height: 32px !important;
        line-height: 1.2 !important;
    }
    
    /* Ensure specific buttons are also caught */
    .btn-primary, .btn-outline {
        padding: 6px 16px !important;
    }

    /* 8. Quote Form Wrapper Fix */
    .quote-form-wrapper {
        width: 100% !important;
        padding: 12 !important;
        overflow-x: hidden !important;
    }
    
    .contact-form {
        width: 100% !important;
    }
    
    .contact-form input, 
    .contact-form select, 
    .contact-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important; /* Critical for padding */
    }
    
    /* Override inline grid styles */
    .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    /* Fix table overflow if quote list exists */
    #quote-list-container table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    /* 9. Section Title Compactness */
    .section-title {
        font-size: 2rem !important; /* Reduced from 3rem */
        margin-bottom: 1rem !important;
    }

    /* 10. Page Header Compactness */
    .page-header {
        padding: 40px 0 30px !important; /* Significantly reduced */
    }
    
    .page-header h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* 11. Restore Language Switcher & Email (Top Bar) */
    .top-bar {
        display: block !important;
        padding: 5px 0 !important;
        height: auto !important;
        min-height: 35px;
    }
    
    .top-bar .container {
        display: flex !important;
        justify-content: space-between !important; /* Spread items */
        align-items: center !important;
        height: 100% !important;
    }
    
    .top-info {
        display: flex !important;
        align-items: center !important;
    }
    
    /* Show only email */
    .top-info a {
        display: none !important;
    }
    
    .top-info a[href^="mailto"] {
        display: flex !important;
        font-size: 0.8rem !important;
        gap: 5px;
    }
    
    .top-info .separator {
        display: none !important;
    }
    
    .top-social {
        display: none !important;
    }
    
    .language-switcher {
        margin-left: 0 !important;
    }
    
    .current-lang {
        font-size: 0.8rem !important;
        padding: 2px 10px !important;
    }
}

/* Mobile Floating Contact Bar Toggle */
@media (max-width: 768px) {
    .floating-contact-bar {
        top: auto !important;
        bottom: 30px !important;
        transform: none !important;
        flex-direction: column-reverse !important;
        align-items: flex-end !important;
        right: 15px !important;
    }

    /* Hide contact items by default */
    .contact-item {
        display: none !important;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    /* Show items when active */
    .floating-contact-bar.active .contact-item {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Toggle Button */
    .contact-toggle-btn {
        display: flex !important;
        width: 50px;
        height: 50px;
        background: var(--primary-color);
        color: #fff;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        cursor: pointer;
        z-index: 10001;
        transition: all 0.3s;
    }
    
    .floating-contact-bar.active .contact-toggle-btn {
        background: #333;
        transform: rotate(90deg);
    }
    
    /* Adjust Back to Top position */
    .back-to-top {
        margin-bottom: 0 !important;
        order: 10; /* Ensure it stays near toggle if visible */
    }
}
