/*
Theme Name: MJSL - Major Solution
Theme URI: https://mjsl.com/
Description: A professional WordPress theme for MJSL - Major Solution, a B2B trading platform connecting Chinese enterprises with international buyers.
Author: Wyatt
Author URI: https://mjsl.com/
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mjsl
Tags: business, corporate, trading, b2b, responsive, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #1a73e8;
    --secondary-color: #0d47a1;
    --accent-color: #ff6f00;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --footer-bg: #1a237e;
    --footer-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.lang-switcher {
    margin-left: 20px;
}

.lang-switcher button {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-switcher button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Banner Styles */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.banner-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.banner-dot.active {
    background-color: white;
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-item p {
    color: var(--text-light);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-features {
    list-style: none;
    margin-top: 20px;
}

.about-features li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.about-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Clients Section */
.clients-section {
    background-color: var(--bg-light);
}

.clients-carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.clients-track {
    display: flex;
    gap: 30px;
    animation: scroll 20s linear infinite;
}

.client-logo {
    flex: 0 0 calc(16.666% - 25px);
    min-width: 150px;
    background-color: var(--bg-white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.client-name {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.clients-carousel:hover .clients-track {
    animation-play-state: paused;
}

/* Cases Section */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
}

.case-overlay h4 {
    font-size: 18px;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer Styles */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-form input,
.footer-form textarea {
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-form textarea {
    resize: vertical;
    height: 100px;
}

.footer-form button {
    background-color: var(--accent-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-form button:hover {
    background-color: #e65100;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Product Page Styles */
.products-header {
    background-color: var(--bg-light);
    padding: 40px 0;
    margin-bottom: 40px;
}

.products-header h1 {
    font-size: 32px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 20px;
}

.product-category {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-main-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.product-info .product-category {
    margin-bottom: 15px;
}

.product-info .product-price {
    margin-bottom: 20px;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.product-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.enquire-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.enquire-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* News List Page */
.news-header {
    background-color: var(--bg-light);
    padding: 40px 0;
    margin-bottom: 40px;
}

.news-header h1 {
    font-size: 32px;
    text-align: center;
}

/* News Detail Page */
.news-detail {
    max-width: 800px;
    margin: 0 auto 40px;
}

.news-detail .news-image {
    height: 400px;
    margin-bottom: 30px;
}

.news-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.news-detail .news-date {
    margin-bottom: 20px;
}

.news-detail-content {
    color: var(--text-light);
    line-height: 1.8;
}

.news-detail-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.news-detail-content h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: var(--text-color);
}

.news-detail-content p {
    margin-bottom: 15px;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Contact Page */
.contact-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.contact-info-section .contact-info {
    margin-bottom: 30px;
}

.contact-info-section .contact-info li {
    font-size: 16px;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.contact-form textarea {
    resize: vertical;
    height: 150px;
}

.contact-form button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--secondary-color);
}

.contact-address {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.contact-address h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.address-info p {
    margin-bottom: 15px;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.address-info i {
    color: var(--primary-color);
    margin-top: 3px;
}

/* Success Message */
.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        gap: 15px;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .about-content,
    .product-detail,
    .contact-page {
        grid-template-columns: 1fr;
    }

    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .clients-track {
        gap: 15px;
    }

    .client-logo {
        flex: 0 0 calc(33.333% - 10px);
        min-width: 100px;
        padding: 20px 15px;
    }

    .client-logo img {
        height: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 15px 0;
    background-color: var(--bg-light);
    margin-bottom: 20px;
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumb li a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.breadcrumb li a:hover {
    color: var(--secondary-color);
}

.breadcrumb li.active {
    color: var(--text-light);
}

/* Modal/Popup Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.modal-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.modal-form input,
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.modal-form textarea {
    resize: vertical;
    height: 100px;
}

.modal-form button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-form button:hover {
    background-color: var(--secondary-color);
}

.modal-success {
    text-align: center;
    padding: 40px 20px;
}

.modal-success i {
    font-size: 60px;
    color: #4caf50;
    margin-bottom: 20px;
}

.modal-success h3 {
    font-size: 24px;
    color: #2e7d32;
    margin-bottom: 15px;
}

.modal-success p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* News Detail Page Improvements */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.news-meta-item i {
    color: var(--primary-color);
}

.news-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.news-category-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 30px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.author-info h4 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* Inquiry Button */
.inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.inquiry-btn:hover {
    background-color: var(--secondary-color);
    color: white !important;
}

/* Page Header Styles */
.page-header {
    background-color: var(--bg-light);
    padding: 40px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    text-align: center;
    color: var(--text-color);
    margin: 0;
}

.page-header p {
    text-align: center;
    color: var(--text-light);
    margin-top: 10px;
    margin-bottom: 0;
}

/* Product Detail Improvements */
.product-inquiry-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.product-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.product-tag {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

/* Print Styles for SEO */
@media print {
    .site-header,
    .site-footer,
    .breadcrumb-nav,
    .product-inquiry-section,
    .related-products {
        display: none;
    }
    
    .news-detail-content {
        color: black;
    }
}