/* DAOUXUN High-End Asia Website - Main Stylesheet */

/* 1. Global Resets & Basic Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6; /* Slightly reduced for density */
    color: #343a40; /* Dark Gray */
    background-color: #FFFFFF; /* White */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Bolder headings */
    margin-bottom: 0.65em; /* Reduced bottom margin */
    line-height: 1.3;
}

a {
    color: #E60012; /* DAOUXUN Red for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c90010; /* Darker Red */
    text-decoration: none; /* Remove underline on hover */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding */
}

img, video {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent bottom space */
    border-radius: 6px; /* Consistent rounded corners */
}

/* 2. Header & Navigation */
header {
    background-color: #FFFFFF;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

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

.logo {
    display: block !important;
    height: 45px !important;
    max-height: 45px !important;
    width: auto !important;
    max-width: 100% !important;
    margin-right: 15px;
    border-radius: 0; /* Logo should not have rounded corners */
}

.logo-tagline {
    font-size: 0.85em;
    color: #6c757d;
}

nav ul {
    list-style: none;
    display: flex !important;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #343a40;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #E60012;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #E60012;
    text-decoration: none;
}

.lang-selector a {
    margin-left: 10px;
    font-weight: bold;
    color: #6c757d;
}

.lang-selector a:hover, .lang-selector strong {
    color: #E60012;
}

/* 3. Footer */
footer {
    background-color: #343a40; /* Dark Gray */
    color: #f8f9fa; /* Light Gray */
    padding: 50px 0 25px; /* Reduced padding */
    margin-top: 50px; /* Reduced margin */
    font-size: 0.9em;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px; /* Reduced gap */
    margin-bottom: 30px; /* Reduced margin */
}

.footer-columns > div {
    flex-basis: calc(33% - 17px);
    min-width: 200px;
}

footer h4 {
    font-size: 1.1em;
    margin-bottom: 12px; /* Reduced margin */
    color: #FFFFFF;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 6px; /* Reduced margin */
}

footer a {
    color: #adb5bd; /* Lighter Gray for links */
}

footer a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #495057;
    font-size: 0.85em;
    color: #6c757d;
}

.icp-number {
    display: inline-block;
    color: #adb5bd;
    font-size: 0.9em;
    margin-left: 10px;
    padding: 2px 8px;
    border: 1px solid #495057;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
}

.social-icons img {
    height: 26px; /* Slightly smaller */
    margin: 8px 6px 0 0; /* Reduced margin */
    vertical-align: middle;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    border-radius: 0; /* Icons should not have rounded corners */
}

.social-icons img:hover {
    opacity: 1;
}

/* 4. Buttons (CTAs) */
.cta-button {
    display: inline-block;
    padding: 10px 25px; /* Reduced padding */
    background-color: #E60012; /* DAOUXUN Red */
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-weight: 700; /* Bold */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: #c90010; /* Darker Red */
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 5. Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/hero_logistics_banner.jpeg'); /* Added overlay */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 80px 0; /* Reduced padding */
    text-align: center;
    position: relative;
    color: #FFFFFF;
}

.hero h1 {
    font-size: 2.8em; /* Slightly reduced */
    margin-bottom: 15px; /* Reduced margin */
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2em; /* Slightly reduced */
    margin-bottom: 30px; /* Reduced margin */
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section (Small) - For internal pages like News */
.hero-small {
    padding: 30px 0; /* Reduced padding */
    background-color: #f8f9fa; /* Light background */
    border-bottom: 1px solid #e9ecef;
}

.hero-small h1 {
    font-size: 2.2em; /* Reduced size */
    text-align: left;
    color: #343a40;
    text-shadow: none;
    margin-bottom: 0;
}

/* 6. Sections */
.section {
    padding: 50px 0; /* Reduced section padding */
}

.section:last-of-type {
    padding-bottom: 25px; /* Reduced padding */
}

.section-bg-light {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2em; /* Reduced size */
    margin-bottom: 40px; /* Reduced margin */
    position: relative;
    padding-bottom: 12px; /* Reduced padding */
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px; /* Reduced width */
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #E60012;
}

/* Service Blocks Specific Styling */
.services-overview .service-blocks-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px; /* Reduced gap */
    justify-content: center;
}

.service-block {
    flex-basis: calc(33.333% - 17px);
    background-color: #FFFFFF;
    padding: 25px; /* Reduced padding */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.07); /* Adjusted shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.service-block h3 {
    font-size: 1.3em; /* Reduced size */
    margin-top: 12px; /* Reduced margin */
    margin-bottom: 8px; /* Reduced margin */
}

.service-block p {
    font-size: 0.9em; /* Reduced size */
    color: #6c757d;
    margin-bottom: 12px; /* Reduced margin */
}

.service-block a {
    font-weight: bold;
}

.service-icon {
    height: 45px; /* Reduced icon size */
    margin-bottom: 12px; /* Reduced margin */
    border-radius: 0; /* Icons should not have rounded corners */
}

/* Credibility/Stats Section */
.credibility .key-stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.stat-item {
    font-size: 1em; /* Reduced size */
    color: #495057;
}

.stat-item strong {
    display: block;
    font-size: 1.8em; /* Reduced size */
    font-weight: 700;
    color: #E60012;
    margin-bottom: 4px; /* Reduced margin */
}

/* Partners Section */
.partners .logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px; /* Reduced gap */
}

.partners .logos-container img {
    height: 20px; /* Further reduced logo height */
    max-width: 70px; /* Further reduced max width */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
    border-radius: 0; /* Logos should not have rounded corners */
}

.partners .logos-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Secondary CTA Section */
.secondary-cta {
    background-color: #E60012; /* DAOUXUN Red */
    color: #FFFFFF;
    padding: 50px 0; /* Reduced padding */
}

.secondary-cta h2 {
    font-size: 1.8em; /* Reduced size */
    margin-bottom: 12px; /* Reduced margin */
}

.secondary-cta p {
    font-size: 1em; /* Reduced size */
    margin-bottom: 25px; /* Reduced margin */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.secondary-cta .cta-button {
    background-color: #FFFFFF;
    color: #E60012;
}

.secondary-cta .cta-button:hover {
    background-color: #f0f0f0;
    color: #c90010;
}

/* Contact Form Styling */
.contact-form label {
    display: block;
    margin-bottom: 6px; /* Reduced margin */
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px; /* Reduced padding */
    margin-bottom: 12px; /* Reduced margin */
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95em;
}

.contact-form textarea {
    min-height: 120px; /* Reduced height */
    resize: vertical;
}

.contact-form button {
    width: auto;
}

/* 7. News Page Specific Styles (Refined & Balanced Whitespace) */

/* Featured News */
.featured-news .featured-article {
    /* No changes needed here */
}

.featured-news .featured-image {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 20px auto; /* Reduced bottom margin */
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px; /* Consistent with card design */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-news .featured-image:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.featured-news .featured-content {
    max-width: 800px;
    margin: 0 auto;
}

.featured-news .article-date {
    display: inline-block;
    font-size: 0.85em; /* Slightly smaller */
    color: #6c757d;
    margin-bottom: 8px; /* Reduced margin */
}

.featured-news h3 {
    font-size: 1.6em; /* Reduced size */
    margin-bottom: 12px; /* Reduced margin */
    transition: color 0.3s ease;
}

.featured-news h3 a {
    color: #343a40;
}

.featured-news h3 a:hover {
    color: #E60012;
    text-decoration: none;
}

.featured-news p {
    margin-bottom: 15px; /* Reduced margin */
    line-height: 1.7; /* Keep readability */
}

.featured-news .video-gallery {
    margin: 25px 0; /* Slightly increased margin */
    padding: 20px; /* Increased padding */
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    /* Flexbox properties moved to .video-gallery-items */
}

.featured-news .video-gallery-items { /* Apply flexbox here */
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-around;
}

.featured-news .video-poster-item {
    flex-basis: calc(33.333% - 10px); /* Adjust basis for 3 items with gap */
    min-width: 200px; /* Minimum width before wrapping */
    text-align: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-news .video-poster-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.featured-news .video-poster-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.featured-news .video-poster-item .download-link {
    display: block;
    font-size: 0.85em;
    font-weight: bold;
    margin-top: 5px;
}

.featured-news .video-gallery h4 {
    font-size: 1.1em; /* Reduced size */
    margin-bottom: 15px; /* Increased margin */
    color: #343a40;
    position: relative;
    padding-bottom: 8px;
}

.featured-news .video-gallery h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #E60012;
}

.featured-news .video-gallery video {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 400px;
    display: block;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #e9ecef;
}

.featured-news .video-gallery video:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.featured-news .video-gallery video:last-child {
    margin-bottom: 0;
}

.featured-news .read-more {
    font-weight: bold;
    display: inline-block;
    margin-top: 10px; /* Increased margin */
    font-size: 0.95em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.featured-news .read-more:hover {
    color: #c90010;
    transform: translateX(3px);
}

/* Latest Updates (News List) */
.news-list .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly larger min width */
    gap: 25px; /* Increased gap */
}

.news-list .news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Enhanced shadow */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.news-list .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.news-list .article-thumbnail-wrapper {
    width: 100%;
    /* padding-top: 56.25%; /* 16:9 Aspect Ratio - Removed to control height */
    height: 200px; /* Fixed height for consistency */
    position: relative;
    background-color: #e9ecef;
    overflow: hidden;
}

.news-list .article-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Use flexbox for centering alt text */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd; /* Lighter grey for alt text */
    font-size: 0.8rem; /* Smaller font size */
    text-align: center;
    line-height: 1.3; /* Adjust line height for potential wrapping */
    padding: 10px; /* Add some padding */
    border-radius: 0;
    transition: transform 0.5s ease;
}

.news-list .news-item:hover .article-thumbnail {
    transform: scale(1.05);
}

.news-list .article-content {
    padding: 22px; /* Increased padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-list .article-date {
    display: inline-block;
    font-size: 0.8em; /* Reduced size */
    color: #6c757d;
    margin-bottom: 6px; /* Reduced margin */
}

/* Press Badge Styling */
.press-badge {
    display: inline-block;
    background-color: #E60012;
    color: white;
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
    vertical-align: middle;
}

.news-list .article-content h4 {
    font-size: 1.15em; /* Slightly increased size */
    margin-bottom: 10px; /* Increased margin */
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-list .article-content h4 a {
    color: #343a40;
}

.news-list .article-content h4 a:hover {
    color: #E60012;
    text-decoration: none;
}

.news-list .article-content p {
    font-size: 0.9em; /* Reduced size */
    color: #6c757d;
    margin-bottom: 15px; /* Reduced margin */
    flex-grow: 1;
    line-height: 1.6;
}

.news-list .read-more {
    font-weight: bold;
    align-self: flex-start;
    margin-top: auto;
    font-size: 0.9em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.news-list .read-more:hover {
    color: #c90010;
    transform: translateX(3px);
}

/* 8. Responsive */
@media (max-width: 992px) {
    .footer-columns > div {
        flex-basis: calc(50% - 13px);
    }
    .service-block {
        flex-basis: calc(50% - 13px);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        margin-top: 15px;
    }

    nav ul {
        justify-content: space-around;
        padding-left: 0;
    }

    nav ul li {
        margin: 0 5px;
    }

    .lang-selector {
        position: absolute;
        top: 25px;
        right: 15px;
    }

    .hero h1 {
        font-size: 2em; /* Reduced */
    }

    .hero p {
        font-size: 1em; /* Reduced */
    }

    .hero-small h1 {
        font-size: 1.8em; /* Reduced */
    }

    .footer-columns > div {
        flex-basis: 100%;
    }

    .service-block {
        flex-basis: 100%;
    }

    .stat-item {
        flex-basis: calc(50% - 10px);
    }

    .section-title {
        font-size: 1.8em; /* Reduced */
        margin-bottom: 30px; /* Reduced */
    }

    .featured-news .featured-image {
        max-width: 100%;
        margin-bottom: 15px; /* Reduced */
    }
    .featured-news .featured-content {
        max-width: 100%;
    }
    .featured-news h3 {
        font-size: 1.4em; /* Reduced */
    }

    .news-list .articles-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 15px; /* Reduced gap */
    }
    .news-list .article-content {
        padding: 15px; /* Reduced padding */
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px; /* Slightly smaller base font */
    }
    nav ul li a {
        font-size: 0.85em;
    }
    .cta-button {
        padding: 8px 18px;
        font-size: 0.85em;
    }
    .section-title {
        font-size: 1.6em;
    }
    .hero-small h1 {
        font-size: 1.6em;
    }
    .featured-news h3 {
        font-size: 1.3em;
    }
    .news-list .article-content h4 {
        font-size: 1em;
    }
    .news-list .article-content p {
        font-size: 0.85em;
    }
    .news-list .read-more {
        font-size: 0.85em;
    }
}


/* WeChat QR Code Section Styles (Keep if used elsewhere) */
.wechat-qr-section {
    background-color: #f8f9fa; /* Light background to stand out */
    padding: 15px; /* Reduced padding */
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    margin-top: 20px; /* Reduced margin */
}

.wechat-qr-section h3 {
    margin-bottom: 10px; /* Reduced margin */
    font-size: 1em;
    color: #333;
}

.wechat-qr-image {
    max-width: 150px; /* Reduced size */
    height: auto;
    border: 1px solid #ccc;
    padding: 4px;
    background-color: #fff;
    margin-bottom: 8px;
    border-radius: 0; /* QR code should not have rounded corners */
}

.wechat-qr-section p small {
    color: #6c757d;
    font-size: 0.8em;
}

/* Footer Social Icons (Keep) */
footer .social-icons {
    margin-top: 8px; /* Reduced margin */
}

footer .social-icons a {
    display: inline-block;
    margin-right: 8px; /* Reduced margin */
}

footer .social-icons img {
    height: 26px;
    width: auto;
    vertical-align: middle;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    border-radius: 0; /* Icons should not have rounded corners */
}

footer .social-icons img:hover {
    opacity: 1;
}




/* About Us Page Specific Styles */
.about-content .key-stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
    margin-top: 20px;
    padding: 20px 0;
    background-color: #f8f9fa; /* Match section-bg-light */
    border-radius: 8px;
}

.about-content .stat-icon {
    height: 30px; /* Slightly smaller icon */
    margin-bottom: 8px;
    opacity: 0.8;
}

.about-content .logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px; /* Consistent gap */
    margin-top: 20px;
    padding: 20px 0;
}

.about-content .logos-container img {
    height: 30px; /* Consistent logo height - Further Reduced */
    max-width: 100px; /* Further Reduced max width */
    /* Keep grayscale effect from general partners section if desired, or remove for About page */
    /* filter: grayscale(100%); */
    /* opacity: 0.7; */
    transition: transform 0.3s ease;
    border-radius: 0;
}

.about-content .logos-container img:hover {
    /* filter: grayscale(0%); */
    /* opacity: 1; */
    transform: scale(1.05);
}

.office-locations {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px; /* Consistent gap */
    margin-top: 20px;
}

.office-locations > div {
    flex-basis: calc(50% - 15px); /* Two columns on larger screens */
    min-width: 280px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.office-locations h4 {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #E60012;
}

.map-placeholder {
    width: 100%; /* Make responsive */
    height: 200px;
    background-color: #e9ecef; /* Lighter placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
    border-radius: 4px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .office-locations > div {
        flex-basis: 100%; /* Single column on smaller screens */
    }
}



/* Responsive styles for Office Locations on About Page */
.about-content .office-locations {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px; /* Add gap between office blocks */
    margin-top: 20px;
}

.about-content .office-locations > div {
    flex-basis: calc(50% - 15px); /* Two columns on wider screens, adjusted for gap */
    min-width: 280px; /* Minimum width before wrapping */
}

.about-content .office-locations .map-placeholder {
    width: 100%; /* Make map placeholder responsive */
    max-width: 350px; /* Limit max width on large screens */
    height: 200px;
    background: #eee;
    text-align: center;
    line-height: 200px;
    margin-top: 10px;
    color: #6c757d;
    border-radius: 6px; /* Consistent rounded corners */
}

/* Add specific mobile styles for office locations */
@media (max-width: 768px) {
    .about-content .office-locations {
        flex-direction: column; /* Stack offices vertically */
        align-items: center; /* Center items when stacked */
        gap: 25px; /* Adjust gap for stacked view */
    }
    .about-content .office-locations > div {
        flex-basis: 100%; /* Full width on mobile */
        max-width: 400px; /* Limit width on mobile */
        text-align: center; /* Center text on mobile */
    }
    .about-content .office-locations .map-placeholder {
        max-width: 100%; /* Ensure map placeholder fits */
    }
}

/* Refactored Styles for Stat Icons (Inline SVG) on About Page */
.about-content .key-stats-container .stat-item .stat-icon-wrapper {
    width: 35px; /* Define wrapper width */
    height: 35px; /* Define wrapper height */
    margin: 0 auto 8px auto; /* Center wrapper and add bottom margin */
    display: block; /* Ensure it takes up space */
}
.about-content .key-stats-container .stat-item .stat-icon-wrapper svg {
    width: 100%; /* SVG fills the wrapper */
    height: 100%; /* SVG fills the wrapper */
    display: block; /* Ensure proper rendering */
}
.about-content .key-stats-container .stat-item .stat-icon-wrapper svg path {
    fill: #E60012; /* Set fill color to DAOUXUN Red for all paths */
}
/* Specific styles for partner logos on About page */
.about-content .logos-container img {
    height: 25px; /* Further Reduced logo height */
    max-width: 80px; /* Further Reduced max width */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
    border-radius: 0;
    margin: 5px 15px; /* Add some margin for spacing */
    display: inline-block; /* Allow logos to sit side-by-side */
    vertical-align: middle; /* Align logos vertically */
}

.about-content .logos-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Also ensure the container allows wrapping and centering */
.about-content .logos-container {
    text-align: center; /* Center logos within the container */
    margin-top: 20px;
}



/* Limit map image size on About page */
.about-content .office-locations img {
    max-width: 450px; /* Limit map image width */
    width: 100%; /* Ensure it scales down if container is smaller */
    height: auto;
    border: 1px solid #eee;
    margin: 15px auto 0 auto; /* Center map image and add top margin */
    display: block;
}


/* Specific rule for About page stat icons size */
.about-content .key-stats-container .stat-item .stat-icon-wrapper svg {
    max-width: 45px !important; /* Adjust size as needed, force with !important */
    max-height: 45px !important; /* Adjust size as needed, force with !important */
    width: 100% !important; /* Allow shrinking, force with !important */
    height: auto !important;
    margin: 0 auto 10px auto !important; /* Center and add bottom margin, force with !important */
    display: block !important;
}

/* Ensure map image is constrained */
.office-locations img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    margin-top: 10px;
    display: block;
}



/* Style for Video Posters in News Gallery */
.featured-news .video-gallery .video-poster-item {
    margin-bottom: 20px; /* Add space between items */
    text-align: center; /* Center the image and link */
}

.featured-news .video-gallery .video-poster-item img {
    max-width: 100%; /* Ensure image is responsive */
    width: 100%; /* Try to fill container width */
    max-height: 400px; /* Limit maximum height */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the area, might crop */
    display: block; /* Remove extra space below image */
    margin: 0 auto 10px auto; /* Center image and add space below */
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #e9ecef; /* Background for loading */
}

.featured-news .video-gallery .video-poster-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.featured-news .video-gallery .download-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
    color: #E60012;
    padding: 5px 10px;
    border: 1px solid #E60012;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.featured-news .video-gallery .download-link:hover {
    background-color: #E60012;
    color: #FFFFFF;
    text-decoration: none;
}

/* Adjust gallery layout for multiple posters */
.featured-news .video-gallery {
    margin: 25px 0; /* Slightly increased margin */
    padding: 20px; /* Increased padding */
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    /* Removed conflicting display: grid */
}

.featured-news .video-gallery-items { /* Apply flexbox here */
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-around;
}

