﻿/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2E7D32; /* Deep Corporate Green */
    --primary-green-dark: #1B5E20;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-grey: #f5f5f5;
    --footer-bg: #e0e0e0;
    --border-color: #dddddd;
}

body {
    font-family: 'Segoe UI', 'Microsoft JhengHei', 'Open Sans', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    padding-top: 80px; /* Space for fixed header */
}

/* Prevent flash of content when non-default language is selected */
html.lang-en-pending body,
html.lang-update-pending body {
    visibility: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px; /* Wider container for modern look */
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography Utility */
.section-title {
    color: var(--primary-green);
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.lang-switcher {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-light);
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap; /* Prevent wrapping */
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    color: var(--text-light);
    padding: 0;
}

.lang-btn.active {
    font-weight: bold;
    color: var(--primary-green);
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-green);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    flex-direction: column;
    padding: 20px;
}

.mobile-nav li {
    margin-bottom: 15px;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 80px); /* Fill screen minus header */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: White tint at top -> transparent -> White fade at bottom */
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.9) 0%, 
        rgba(255,255,255,0) 25%, 
        rgba(255,255,255,0) 75%, 
        rgba(255,255,255,1) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px; /* Consistent with .container */
    padding: 0 30px; /* Aligned with Header padding */
    /* Position the text specific for the design - left aligned and large */
    text-align: left;
    width: 100%;
    margin-top: -50px; /* Slight visual adjustment up */
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700; /* Bold weight */
    line-height: 1.3;
    /* White text with subtle shadow, or dark text depending on bg. 
       Design image shows white text with shadow. */
    color: #fff;
    text-shadow: 0 4px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7); /* Enhanced stronger shadow */
    letter-spacing: 2px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 80px;
    align-items: start;
}

.about-image {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-title {
    grid-column: 2;
    grid-row: 1;
    color: var(--primary-green);
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: left;
}

.about-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.8;
    text-align: justify;
}

.about-grid .btn-learn-more {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    background-color: var(--primary-green);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.about-grid .btn-learn-more:hover {
    background-color: var(--primary-green-dark);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: #fcfcfc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns */
    gap: 15px;
}

.project-item {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.project-img {
    height: 180px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-item:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 15px;
    text-align: left;
    border-top: 1px solid #eee;
}

.project-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 5px;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 15px;
    font-family: 'Arial', sans-serif; /* Clean number font */
}

.stat-label {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: var(--primary-green);
    text-align: center; /* Centered */
    color: var(--white);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-green);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-white:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background-color: #E6E6E6; /* Light grey matching image */
    padding: 60px 0 40px;
    color: var(--text-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.95rem;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.footer-logo {
    width: 180px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 250px;
}

.footer-contact-hq p, .footer-contact-factory p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-light);
}

.footer-contact-hq strong, .footer-contact-factory strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    border-top: 1px solid #ccc;
    padding-top: 30px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container, 
    .hero-content, 
    .sustainability-hero-content {
        padding: 0 20px !important; /* Force consistency on mobile */
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr); /* Drop to 3 on slightly smaller screens */
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
        gap: 30px;
    }
    .footer-contact-factory {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
        padding: 0 12px;
    }

    .logo {
        margin-right: 0;
    }

    .logo img {
        height: 38px;
    }

    .header-right {
        margin-right: 6px;
        margin-left: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .lang-switcher {
        margin-bottom: 0;
        font-size: 0.8rem;
    }

    .header-right .nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        margin-left: 0;
    }
    
    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .about-title { order: 1; margin-bottom: 20px; }
    .about-image { order: 2; margin-bottom: 30px; }
    .about-desc  { order: 3; margin-bottom: 20px; }
    .about-grid .btn-learn-more { order: 4; }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr; /* 1 column mobile */
    }
    
    .footer-contact-factory {
        grid-column: auto;
    }
    
    .hero-content {
        /* text-align: center; Removed to keep left alignment consistent */
        padding: 0 20px; /* Ensure padding on mobile */
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page Specific Styles */
.breadcrumb {
    padding: 15px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    background-color: var(--light-grey);
}
.breadcrumb a {
    color: var(--text-light);
}
.breadcrumb a:hover {
    color: var(--primary-green);
}
.breadcrumb span {
    margin: 0 5px;
}

/* About Intro */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}
.about-intro-img img {
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Core Values */
.core-values-section {
    background-color: var(--light-grey);
    padding: 60px 0;
}
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.value-card {
    background: var(--white);
    padding: 0; /* Clear padding for inner layout */
    text-align: center;
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* More depth */
    border: 3px solid var(--primary-green); /* Full border */
    border-top: 3px solid var(--primary-green); /* Ensure consistent override */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Contains the divider */
    height: 100%;
}

.value-card-top {
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    /* flex-grow removed */
}

.value-divider {
    height: 10px;
    background-color: var(--primary-green);
    width: 100%;
    flex-shrink: 0;
}

.value-card-bottom {
    padding: 30px;
    text-align: center;
    background: var(--white);
    flex-grow: 1;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-card h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.value-card p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
}

/* Milestone Timeline */
.milestone-section {
    padding: 80px 0;
}
.timeline-container {
    position: relative;
    margin-top: 50px;
}
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    transform: translateY(-50%);
    z-index: 0;
}
.timeline-items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.timeline-item {
    position: relative;
    width: 18%;
    text-align: center;
}
.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--primary-green);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.timeline-year {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-green);
    margin: 15px 0;
}
.timeline-content {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    position: absolute;
    width: 200px;
    left: 50%;
    transform: translateX(-50%);
}
/* Alternate top/bottom layout for desktop */
.timeline-item:nth-child(odd) .timeline-content {
    bottom: 50px;
}
.timeline-item:nth-child(even) .timeline-content {
    top: 50px;
}
.timeline-item:nth-child(odd) .timeline-year {
    margin-bottom: 5px; /* Adjust as needed */
}
.timeline-item:nth-child(even) .timeline-year {
    margin-top: 5px;
}

/* Awards */
.awards-section {
    background-color: var(--white);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center; /* Center vertically */
}

.award-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.award-item img {
    max-width: 100%;
    max-height: 400px; /* Restrict height so they don't dominate */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.award-item img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .about-intro-grid, .core-values-grid, .awards-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Timeline */
    .timeline-container {
        margin-top: 0;
    }
    .timeline-line {
        top: 0;
        left: 20px;
        width: 4px;
        height: 100%;
        transform: none;
    }
    .timeline-items {
        flex-direction: column;
        gap: 40px;
    }
    .timeline-item {
        width: 100%;
        text-align: left;
        padding-left: 50px;
        display: flex;
        flex-direction: column;
    }
    .timeline-dot {
        position: absolute;
        left: 12px;
        top: 0;
        margin: 0;
    }
    .timeline-content {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        margin-top: 10px;
        top: auto !important;
        bottom: auto !important;
    }
}


/* Business Page Styles */

/* Products Section */
.products-section .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
    gap: 30px;
    padding: 20px 0;
    width: 100%;
}

.products-section .product-grid::-webkit-scrollbar {
    display: none;
}

.product-card {
    width: 100%;
    min-width: 0;    /* Reset fixed width */
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
}

/* Adjust Carousel Container to better mask sides */
.carousel-container {
    position: relative;
    padding: 0 50px;
    max-width: 1400px; 
    margin: 0 auto;
    overflow: hidden; /* Mask anything protruding outside container */
}

.product-card:hover {
    transform: scale(1.05);
    z-index: 2;
}

.product-card .card-image {
    height: 250px;
    overflow: hidden;
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    border-top: 4px solid transparent;
}

/* Projects Section */
.projects-section .project-carousel {
    display: flex;
    gap: 20px;
    padding: 20px 5px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 30px;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

.projects-section .project-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* New Grid Layout for projects page */
.projects-section .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.project-card {
    flex: 0 0 auto;
    width: 19%; /* Try to fit 5 in a row on large screens */
    min-width: 240px; /* But don't get too small */
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
    border-radius: 4px;
    overflow: hidden;
}

/* When inside grid, reset width */
.project-grid .project-card {
    width: 100%;
    flex: none;
    min-width: 0;
}

.project-card:hover {
    transform: scale(1.05);
    z-index: 2;
}

.project-card .card-image {
    height: 300px; /* Adjusted height for better proportion */
    overflow: hidden;
}

.project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card .card-content {
    padding: 15px;
    border-left: 5px solid var(--primary-green);
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.project-card p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.project-card .project-year {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 600;
    background-color: rgba(0, 128, 0, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
}

/* Carousel Container & Buttons */
.carousel-container {
    position: relative;
    padding: 0 50px;
    max-width: 1400px; /* slightly wider to accommodate 5 items */
    margin: 0 auto;
    overflow: hidden; /* Mask protruding elements */
}

/* Carousel Buttons (Base) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    background: transparent;
    color: var(--primary-green);
    font-size: 3rem;
    font-weight: bold;
    border: none;
    padding: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.carousel-btn:hover {
    opacity: 1;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Responsive Projects */
@media (max-width: 1200px) {
    .project-card {
        width: 30%; /* Show approx 3 items */
    }
}

@media (max-width: 768px) {
    .project-card {
        width: 45%; /* Show approx 2 items */
        min-width: 220px;
    }
    
    .carousel-container {
        padding: 0 30px; /* Reduce padding */
    }
    
    .carousel-btn {
        font-size: 2rem;
        opacity: 0.6;
    }
}

@media (max-width: 600px) {
    .products-section .product-grid,
    .projects-section .project-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0;
        grid-template-columns: none;
        padding: 0;
        padding-bottom: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .products-section .product-grid::-webkit-scrollbar,
    .projects-section .project-grid::-webkit-scrollbar {
        display: none;
    }

    .products-section .product-card,
    .projects-section .project-grid .project-card {
        width: 100%;
        min-width: 100%;
        scroll-snap-align: center;
        border-radius: 0;
        box-shadow: none;
        flex-shrink: 0;
        margin-right: 0;
        flex: 0 0 100%;
    }

    
    .carousel-container {
        padding: 0; /* Remove padding for edge-to-edge look */
        margin-left: -20px; /* Counteract container padding */
        margin-right: -20px;
        width: calc(100% + 40px);
    }
    
    .carousel-btn {
        display: flex; /* Restore buttons */
        font-size: 1.5rem; 
        width: 40px;
        background: rgba(255,255,255,0.8); 
        height: 40px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        z-index: 10;
        left: 10px;
        transform: translateY(-50%);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
    }

    .products-section .carousel-btn {
        top: 125px; /* Center on 250px Image */
    }

    .projects-section .carousel-btn {
        top: 175px; /* Center on 350px Image */
    }

    .carousel-btn.next {
        left: auto;
        right: 10px;
    }
    
    .project-card {
        width: 100%;
        min-width: 100%;
        margin-right: 0;
        border-radius: 0;
        box-shadow: none;
        flex-shrink: 0;
    }
    
    .projects-section .project-carousel {
        padding-left: 0;
        padding-right: 0;
        gap: 0;
    }
}



/* Related Business */
.related-business-section {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.related-business-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}
/* Responsive */
@media (max-width: 900px) {
    .products-section .product-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 20px;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .products-section .product-grid::-webkit-scrollbar {
        display: none;
    }

    .products-section .product-card {
        min-width: 280px;
        flex: 0 0 auto;
    }
    
    .related-business-content {
        flex-direction: column;
    }
}

/* Sustainability Page */
.sustainability-hero-content {
    position: relative;
    color: white;
    text-align: left;
    max-width: 1280px;
    width: 100%;
    padding: 0 40px;
    margin: 0 auto;
}

.sustainability-hero-title {
    font-size: 3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: 2px;
}

.breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb-separator {
    color: var(--text-light);
    margin: 0 5px;
}

.breadcrumb-active {
    color: var(--text-dark);
    font-weight: 500;
}

.env-protection-section {
    padding: 80px 0;
    background-color: #fff;
}

.env-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.env-title {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.qm-title {
    color: #4CAF50;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.env-desc {
    line-height: 2;
    font-size: 1.1rem;
    color: #333;
}

.env-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
}

.qm-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.qm-text-container {
    max-width: 900px;
    margin: 0 auto 60px auto;
    text-align: left;
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

.certification-images {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.certification-item {
    flex: 1;
    max-width: 300px;
}

.cert-img-iso {
    width: 100%;
    border: 1px solid #ddd;
    padding: 5px;
}

.cert-img-ohs {
    width: 100%;
    border: 3px solid #ff5722;
    padding: 5px;
}

@media (max-width: 768px) {
    .env-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .certification-images {
        flex-direction: column;
        align-items: center;
    }
    
    .sustainability-hero-title {
        font-size: 1.8rem;
    }
}

/* Careers Page */
.careers-grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .careers-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Contact Page */
.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-card-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: left; /* Align text left inside card but center content if needed */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
}


/* About Hongfai Section */
.about-hongfai-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.75fr;
    gap: 40px 60px;
    align-items: center;
}

.about-hongfai-img {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
}

.about-hongfai-title {
    grid-column: 2;
    grid-row: 1;
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.about-hongfai-desc {
    grid-column: 2;
    grid-row: 2;
    line-height: 2;
    color: var(--text-dark);
    font-size: 1rem;
    text-align: justify;
}

@media (max-width: 900px) {
    .about-hongfai-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .about-hongfai-title { order: 1; margin-bottom: 0px; text-align: center; } /* Add center for mobile title? Original wasn't centered but typically yes. Let's keep existing style or default. Actually h2 had inline styles but no text-align. */
    .about-hongfai-img { order: 2; margin: 0 auto 30px auto; max-width: 250px; }
    .about-hongfai-desc { order: 3; }
    
    /* Removed redundant rules */
}

/* Certifications and Patents */
.cert-item img:hover, .patent-container img:hover {
    transform: scale(1.05);
    z-index: 2;
    position: relative;
}

/* Business page patent gallery */
.business-patent-gallery {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 30px;
    overflow: visible;
    padding: 8px 4px;
}

.business-patent-gallery .patent-image {
    width: 280px;
    height: 380px;
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    background-color: #fff;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: none;
    outline: none;
}

.business-patent-gallery .patent-image:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    z-index: 3;
}

@media (max-width: 768px) {
    .business-patent-gallery {
        overflow-x: auto;
        overflow-y: visible;
        justify-content: flex-start;
        padding: 8px 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .business-patent-gallery::-webkit-scrollbar {
        display: none;
    }

    .business-patent-gallery .patent-image {
        width: 220px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .lang-switcher {
        font-size: 0.75rem;
    }

    .business-patent-gallery .patent-image {
        width: 180px;
        height: 250px;
    }
}

/* Precast Quality Management Section */
.pqm-section {
    padding: 60px 0;
    background-color: var(--white);
}

.pqm-grid {
    display: flex;
    align-items: flex-start; /* Align top */
    gap: 60px; /* More space between images and text */
}

.pqm-images {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
}

.pqm-iso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 280px; /* Increased width to match reference */
}

.pqm-iso-item img {
    width: 100%;
    height: auto; /* Allow natural aspect ratio */
    max-height: 250px; /* reasonable max height */
    object-fit: contain;
    margin-bottom: 0;
}

.pqm-iso-item p {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}

.pqm-content {
    flex-grow: 1;
    padding-top: 10px; /* Align title with top of images visually */
}

.pqm-title {
    color: var(--primary-green);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}

.pqm-desc {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

@media (max-width: 900px) {
    .pqm-grid {
        flex-direction: column;
    }
    
    .pqm-images {
        justify-content: center;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .pqm-content {
        width: 100%;
    }
}


/* Hover Effects for Specific Images */
.about-image img,
.about-hongfai-img img,
.env-image img,
.pqm-iso-item img {
    transition: transform 0.3s ease;
}

.about-image img:hover,
.about-hongfai-img img:hover,
.env-image img:hover,
.pqm-iso-item img:hover {
    transform: scale(1.05);
}

/* 
   Mobile Carousel Logic for Business Page 
   Hide buttons on desktop (using .mobile-only-carousel class), show only on mobile.
   Remove generic carousel padding on desktop for these specific grids.
*/
@media (min-width: 601px) {
    .mobile-only-carousel .carousel-btn {
        display: none !important;
    }

    .mobile-only-carousel.carousel-container {
        padding: 0 !important;
        max-width: none !important;
        overflow: visible !important;
        margin: 0 !important;
    }
}



/* Milestone Interactive Section */
.milestone-section {
    position: relative;
    background-image: url('img/opl-website-img/%E9%87%8C%E7%A8%8B%E7%A2%91.jpg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    color: white;
    display: flex;
    align-items: center; /* Vertical center */
}

.milestone-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from dark (for text) to transparent/white (for brightness) */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(255, 255, 255, 0.4) 80%, rgba(255, 255, 255, 0.9) 100%);
    z-index: 1;
}

.milestone-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.milestone-wrapper {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-top: 40px;
}

.milestone-timeline {
    display: flex;
    flex-direction: column;
    border-left: 2px solid rgba(255,255,255,0.2);
    width: 220px; /* Fixed width to prevent vibration/jumping */
    flex-shrink: 0;
}

.milestone-year-item {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    padding: 15px 30px;
    cursor: pointer;
    position: relative;
    /* transition: all 0.3s ease; REMOVED VIBRATION */
    font-family: 'Segoe UI', sans-serif; /* Clean font for numbers */
}

.milestone-year-item::before {
    content: '';
    position: absolute;
    left: -2px; /* Overlap border */
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #4CAF50;
    opacity: 0;
    /* transition: opacity 0.3s ease; REMOVED VIBRATION */
}

.milestone-year-item:hover {
    color: rgba(255,255,255,0.8);
}

.milestone-year-item.active {
    color: #ffffff;
    font-size: 2.5rem; /* Larger active year */
    padding-left: 20px; 
    padding-right: 20px;
}

.milestone-year-item.active::before {
    opacity: 0; /* Remove the side line when box is active */
}

.milestone-content-area {
    flex: 1;
    padding-top: 10px;
    padding-left: 140px; /* Increased padding to move text right */
}

.milestone-display-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.milestone-green-square {
    width: 32px;
    height: 32px;
    background-color: var(--primary-green);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.milestone-display-year {
    font-size: 3.5rem;
    font-weight: 800;
    color: #4CAF50; /* Keep green or make white with shadow like reference? Ref allows white with heavy shadow */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Strong shadow */
    margin-bottom: 0; /* Updated to 0 to align with square */
    line-height: 1;
    display: none; /* Hide if duplicated in sidebar, but can be nice to show again */
}

/* We design it so year is highlighted on left, text on right. */
/* But users prompt image suggests a specific design involving text display. */
/* I will keep the big year in the content area as well for emphasis. */
.milestone-display-year {
    display: block; 
    color: #ffffff; /* Override to white based on the reference image 'bright' content */
}

.milestone-description {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #ffffff;
    max-width: 700px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    /* Align with the Year text (Square 32px + Gap 15px = 47px) */
    margin-left: 47px;
    list-style: disc;
    list-style-position: outside;
    padding-left: 1.2em;
}

.milestone-description li {
    margin-bottom: 10px;
}

.milestone-description li:last-child {
    margin-bottom: 0;
}


/* Aligned Heading Logic */
.milestone-heading {
    color: white; 
    font-size: 2.5rem; 
    margin-bottom: 40px; 
    font-weight: 700;
    /* 
       Calculation for alignment with content:
       Timeline Width (180px) + Wrapper Gap (80px) + Content Padding (180px) = 440px 
    */
    margin-left: 440px;
    text-align: left;
}

/* Unified Mobile Responsive Styles */
@media (max-width: 991px) { /* Tablet and smaller desktop */
    .milestone-heading {
        margin-left: 100px; /* Reduce margin on tablet */
    }
    .milestone-content-area {
        padding-left: 50px; /* Reduce padding on tablet */
    }
}

@media (max-width: 768px) {
    .milestone-section {
        min-height: auto;
        padding: 60px 0;
        align-items: flex-start;
    }

    .milestone-wrapper {
        flex-direction: column;
        gap: 30px;
        margin-top: 20px;
    }
    
    .milestone-heading {
        margin-left: 0;
        text-align: center;
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .milestone-timeline {
        flex-direction: row;
        border-left: none;
        border-bottom: 2px solid rgba(255,255,255,0.2);
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        white-space: nowrap;
        margin-bottom: 20px;
        /* Hide scrollbar */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    .milestone-timeline::-webkit-scrollbar {
        display: none;
    }

    .milestone-year-item {
        padding: 10px 20px;
        font-size: 1.2rem;
    }

    .milestone-year-item.active {
        font-size: 1.4rem;
        padding: 10px 20px; /* Constant padding to avoid jumpiness */
    }
    
    .milestone-year-item::before {
        width: 100%;
        height: 4px;
        left: 0;
        top: auto;
        bottom: -2px;
    }

    .milestone-content-area {
        padding-left: 20px; /* Small padding for mobile */
        padding-right: 20px;
    }

    .milestone-display-header {
        justify-content: flex-start; /* Keep left align or center? Left seems better for reading */
        margin-bottom: 20px;
    }

    .milestone-display-year {
        font-size: 2rem;
    }

    .milestone-green-square {
        width: 24px;
        height: 24px;
    }
    
    .milestone-description {
        font-size: 1.1rem;
        margin-left: 39px; /* 24px square + 15px gap */
    }
}

  /* Sister Company Section */
  .sister-company-grid {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 60px;
      align-items: center;
  }
  
  .sister-logo {
      text-align: center;
  }
  
  .sister-link:hover {
      color: var(--primary-green) !important;
      text-decoration: underline !important;
  }

  @media (max-width: 900px) {
      .sister-company-grid {
          display: flex;
          flex-direction: column;
          gap: 30px;
      }
      .sister-logo img {
            max-width: 300px !important;
      }
      .sister-title {
          text-align: center;
      }
  }

  /* Three-Inspection System */
.inspection-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.inspection-text-col {
    text-align: left;
}

.inspection-title {
    color: var(--primary-green);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.inspection-desc {
    color: var(--text-dark);
    line-height: 2;
    font-size: 1.1rem;
    text-align: justify;
}

.inspection-steps-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start; /* Align entire column to the left of its grid area if needed, or center */
    padding-left: 20px;
}

.inspection-step-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.inspection-icon {
    width: 60px; /* Adjust based on your icon size preference */
    height: 60px;
    flex-shrink: 0;
}

.inspection-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Drop shadow to match the 3D look */
    /* filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); */
}

.inspection-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

@media (max-width: 900px) {
    .inspection-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .inspection-desc {
        margin-bottom: 40px;
    }

    .inspection-steps-col {
        align-items: center; /* Center steps on mobile */
        padding-left: 0;
    }
    
    .inspection-step-item {
        width: 100%;
        justify-content: center;
    }
}

/* ===== RESPONSIVE DESIGN FOR RECENT PROJECTS SECTION ===== */

/* Tablet and below (900px) */
@media (max-width: 900px) {
    .recent-projects-container {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    .year-display {
        flex: 1 !important;
        width: 100% !important;
    }
    
    #current-year-display {
        font-size: 4rem !important;
    }
    
    .projects-list-container {
        flex: 1 !important;
        width: 100% !important;
        padding: 0 20px !important;
        min-height: auto !important;
    }
    
    .timeline {
        flex: 1 !important;
        width: 100% !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 20px 0 !important;
        gap: 15px !important;
    }
    
    .timeline::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 4px;
        background-color: #4CAF50;
        z-index: 0;
    }
    
    .year-btn {
        position: relative !important;
        z-index: 1 !important;
        margin-bottom: 0 !important;
        padding: 8px 12px !important;
        font-size: 1.2rem !important;
        width: auto !important;
    }
}

/* Mobile: Tablet landscape and medium phones (768px) */
@media (max-width: 768px) {
    .projects-list-container ul {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .projects-list-container li {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }
    
    .projects-list-container span:first-child {
        width: 12px !important;
        height: 12px !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
    }
    
    .year-display {
        padding-top: 0 !important;
    }
    
    #current-year-display {
        font-size: 3rem !important;
        margin-bottom: 10px !important;
    }
    
    .year-btn {
        padding: 6px 10px !important;
        font-size: 1rem !important;
    }
}

/* Small phones (600px and below) */
@media (max-width: 600px) {
    .recent-projects-section {
        padding: 40px 0 !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 40px !important;
    }
    
    #current-year-display {
        font-size: 2.5rem !important;
    }
    
    .projects-list-container li {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
        flex-wrap: wrap !important;
    }
    
    .projects-list-container span:first-child {
        width: 10px !important;
        height: 10px !important;
        margin-right: 10px !important;
        margin-bottom: 2px !important;
    }
    
    .container {
        padding: 0 20px !important;
    }
    
    .timeline {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline::after {
        content: '';
        width: 100%;
        height: 3px;
        background-color: #4CAF50;
        order: -1;
    }
    
    .year-btn {
        padding: 5px 8px !important;
        font-size: 0.95rem !important;
    }
    
    .year-display {
        margin-bottom: 20px !important;
    }
}

/* Extra small phones (420px and below) */
@media (max-width: 420px) {
    .recent-projects-section {
        padding: 30px 0 !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 30px !important;
    }
    
    #current-year-display {
        font-size: 2rem !important;
    }
    
    .projects-list-container li {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
        align-items: flex-start !important;
    }
    
    .projects-list-container span:first-child {
        width: 8px !important;
        height: 8px !important;
        margin-right: 8px !important;
        margin-top: 4px !important;
        flex-shrink: 0 !important;
    }
    
    .container {
        padding: 0 16px !important;
    }
    
    .year-btn {
        padding: 4px 6px !important;
        font-size: 0.9rem !important;
        width: 70px !important;
    }
    
    .projects-list-container {
        padding: 0 !important;
    }
}

/* ===== RESPONSIVE DESIGN FOR THREE INSPECTION SYSTEM (SUSTAINABILITY PAGE) ===== */

/* Tablet and below (900px) */
@media (max-width: 900px) {
    #three-inspection > .container > div {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    #three-inspection > .container > div > div:first-child {
        width: 100%;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #three-inspection > .container > div > div:last-child {
        flex: 1 1 auto !important;
        width: 100% !important;
        text-align: center;
    }
    
    #three-inspection h2 {
        text-align: center !important;
    }
    
    #three-inspection p {
        text-align: center !important;
    }
}

/* Tablet portrait (768px and below) */
@media (max-width: 768px) {
    #three-inspection {
        padding: 60px 0 !important;
    }
    
    #three-inspection > .container > div {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    /* Left inspection cards container */
    #three-inspection > .container > div > div:first-child {
        width: 100% !important;
        flex: 1 1 auto !important;
        gap: 20px !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Individual inspection cards */
    #three-inspection > .container > div > div:first-child > div {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100%;
        justify-content: flex-start;
        padding: 0 20px;
    }
    
    /* Inspection images container */
    #three-inspection > .container > div > div:first-child > div > div {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0;
    }
    
    #three-inspection > .container > div > div:first-child > div > div img {
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    /* Inspection labels */
    #three-inspection > .container > div > div:first-child > div > span {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        color: #006000;
    }
    
    /* Right text content */
    #three-inspection > .container > div > div:last-child {
        flex: 1 1 auto !important;
        width: 100% !important;
        padding: 0 20px;
    }
    
    #three-inspection h2 {
        text-align: center !important;
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
        color: #006000 !important;
    }
    
    #three-inspection p {
        font-size: 1rem !important;
        line-height: 1.6;
        text-align: center !important;
        color: #333;
    }
}

/* Mobile phones (600px and below) */
@media (max-width: 600px) {
    #three-inspection {
        padding: 40px 0 !important;
    }
    
    #three-inspection > .container > div {
        gap: 25px !important;
    }
    
    #three-inspection > .container > div > div:first-child > div {
        gap: 12px !important;
        padding: 0 15px !important;
    }
    
    /* Inspection images - reduce to 50px on mobile */
    #three-inspection > .container > div > div:first-child > div > div {
        width: 50px !important;
        height: 50px !important;
    }
    
    #three-inspection > .container > div > div:first-child > div > div img {
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    /* Inspection labels - reduce font on mobile */
    #three-inspection > .container > div > div:first-child > div > span {
        font-size: 1.05rem !important;
    }
    
    #three-inspection > .container > div > div:last-child {
        padding: 0 15px !important;
    }
    
    #three-inspection h2 {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }
    
    #three-inspection p {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }
}

/* Extra small phones (420px and below) */
@media (max-width: 420px) {
    #three-inspection {
        padding: 30px 0 !important;
    }
    
    #three-inspection > .container {
        padding: 0 16px !important;
    }
    
    #three-inspection > .container > div {
        gap: 20px !important;
    }
    
    #three-inspection > .container > div > div:first-child > div {
        gap: 10px !important;
        padding: 0 12px !important;
    }
    
    /* Inspection images - further reduce on extra small screens */
    #three-inspection > .container > div > div:first-child > div > div {
        width: 45px !important;
        height: 45px !important;
    }
    
    #three-inspection > .container > div > div:first-child > div > div img {
        max-width: 45px !important;
        max-height: 45px !important;
    }
    
    /* Inspection labels - further reduce font on extra small screens */
    #three-inspection > .container > div > div:first-child > div > span {
        font-size: 0.95rem !important;
        white-space: normal;
    }
    
    #three-inspection > .container > div > div:last-child {
        padding: 0 12px !important;
    }
    
    #three-inspection h2 {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }
    
    #three-inspection p {
        font-size: 0.9rem !important;
        line-height: 1.4;
    }
}
