/* ============================================
   About Us Page Styles
   ============================================ */

/* Main container */
.about-main {
    width: 100%;
    min-height: 100vh;
}

/* Container with responsive padding */
.container {
    /* Fluid padding: 20px (mobile) → 160px (desktop) */
    padding: 0 clamp(20px, 8vw, 160px);
}


/* ============================================
   Banner Section
   ============================================ */
.about-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    /* background-image removed to support inline styles */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay for better text readability */
.about-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.banner-title {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(40px, 5vw + 30px, 100px);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.1em;
    margin: 0;
    /* text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); */
    z-index: 2;
    position: relative;
}


/* Mobile and Tablet adjustments */
@media (max-width: 1024px) {
    .about-banner {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .banner-title {
        letter-spacing: 0.05em;
        font-size: clamp(24px, 6vw, 40px);
    }

    .about-banner {
        aspect-ratio: 16 / 9;
        height: auto !important;
        min-height: unset !important;
    }
}


/* ============================================
   Our Team Section
   ============================================ */
.our-team {
    background-color: var(--primary-orange);
    /* Fluid padding: 60px → 120px */
    padding: clamp(60px, 10vh, 120px) 0;
}

.our-team h2 {
    font-family: 'Alibaba PuHuiTi Bold', 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: white;
    font-size: clamp(18px, 2vw + 1.5rem, 65px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    /* Fluid margin: 8px → 20px */
    margin: 0 0 clamp(8px, 1.25vw, 20px) 0;
    letter-spacing: 0.3px;
}

.our-team p {
    font-family: 'Alibaba PuHuiTi Regular', 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: white;
    font-size: clamp(16px, 1.5vw + 1rem, 40px);
    font-weight: 400;
    /* Fluid line-height for better readability */
    line-height: clamp(1.3, 1.3 + 0.3vw, 1.5);
    text-align: left;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ============================================
   Project & Honor Section
   ============================================ */
.project-honor {
    background-color: black;
    padding: clamp(60px, 10vh, 120px) 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: white;
    font-size: clamp(30px, 3vw + 2rem, 100px);
    text-align: center;
    margin: 0 0 clamp(40px, 6vh, 80px) 0;
    letter-spacing: 1px;
}

/* Map Container */
.map-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto clamp(40px, 6vh, 60px);
    position: relative;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
}

/* Bottom Container: Stats + Honors */
.stats-honors-container {
    width: 100%;
    padding: 0 clamp(20px, 3vw, 50px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 50px);
    padding-bottom: clamp(50px, 10vw, 200px);
    border-bottom: 2px solid white;
}

/* Statistics Section */
.stats-section {
    padding-right: clamp(40px, 4vw, 70px);
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(2, auto);
    gap: clamp(20px, 3vw, 30px) clamp(40px, 6vw, 150px);
    align-items: start;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(2px, 1vw, 6px);
}

.stat-number {
    color: white;
    font-size: clamp(20px, 5vw, 90px);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0;
}

.stat-label {
    color: white;
    font-size: clamp(6px, 1.5vw, 32px);
    font-weight: 200;
    line-height: 1;
    white-space: nowrap;
}

/* Honors Section */
.honors-section {
    display: flex;
    gap: clamp(15px, 2vw, 30px);
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
}

.honor-item {
    display: flex;
    align-items: flex-end;
    gap: clamp(2px, 1vw, 10px);
}

.honor-image-wrapper {
    width: clamp(60px, 8vw, 200px);
    height: clamp(60px, 8vw, 200px);
    border-radius: 8px;
    padding: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.honor-image-wrapper img {
    display: block;
    object-fit: contain;
}

.honor-image1 {
    width: 100%;
    height: 100%;
}

.honor-image2 {
    width: auto;
    height: 100%;
}

.honor-image3 {
    width: 100%;
    height: auto;
}

.honor-count {
    color: white;
    font-size: clamp(12px, 2.5vw, 56px);
    font-weight: 700;
    padding: 0;
    padding-bottom: 2px;
    letter-spacing: 0.1px;
    line-height: 1;
    flex-shrink: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1500px) {
    .project-honor {
        padding: clamp(30px, 10vh, 60px) 0;
    }

    /* Project & Honor - medium screen adjustments */
    .stats-honors-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        overflow: visible;
        gap: clamp(30px, 5vw, 60px);
    }

    .stats-section {
        float: none;
        width: 100%;
        justify-content: center;
        gap: clamp(15px, 4vw, 40px);
        margin-bottom: 25px;
        border-right: none;
        padding-right: 0;
    }

    .honors-section {
        float: none;
        width: 100%;
        justify-content: center;
        gap: clamp(15px, 2vw, 30px);
    }

    .stat-item {
        align-items: center;
        text-align: center;
    }

    .honor-item {
        flex-shrink: 0;
    }
}


/* ============================================
   Full Width Image Section
   ============================================ */
.full-width-image {
    display: none;
    width: 100%;
    height: 120px;
    line-height: 120px;
    text-align: center;
    color: white;
    margin: 0;
    background-color: #FF6B35;
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: white;
    font-size: clamp(30px, 3vw + 2rem, 40px);
}

/* Mobile adjustments for full-width-image */
@media (max-width: 768px) {
    .full-width-image {
        height: 80px;
        line-height: 80px;
        font-size: clamp(16px, 2vw + 2rem, 30px);
    }

    .project-honor {
        padding-bottom: 0;
    }

    .stats-honors-container {
        padding-bottom: clamp(60px, 20vw, 100px);
    }
}


/* ============================================
   Awards Section
   ============================================ */
.awards {
    background-color: #000000;
    /* Fluid padding: 60px → 120px */
    padding: clamp(60px, 10vh, 120px) 0;
}

.awards h2 {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: white;
    font-size: clamp(30px, 3vw + 2rem, 100px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    /* Fluid margin: 40px → 80px */
    margin: 0 0 clamp(40px, 6vh, 80px) 0;
    letter-spacing: 1px;
}

.awards-list {
    margin-top: clamp(30px, 4vh, 60px);
}

.awards-list p {
    font-family: 'Alibaba PuHuiTi Regular', 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: white;
    font-size: clamp(16px, 1.5vw + 1rem, 40px);
    font-weight: 400;
    /* Fluid line-height for better readability */
    line-height: clamp(1.3, 1.3 + 0.3vw, 1.5);
    text-align: left;
    margin: 0 0 clamp(10px, 1.5vh, 20px) 0;
    letter-spacing: 0.3px;
}

.awards-list p:last-child {
    margin-bottom: 0;
}


/* ============================================
   Our Values Section
   ============================================ */
.our-values {
    background-color: var(--primary-orange);
    /* Fluid padding: 60px → 120px */
    padding: clamp(60px, 10vh, 120px) 0;
}

.our-values h2 {
    font-family: 'Alibaba PuHuiTi Bold', 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: white;
    font-size: clamp(18px, 2vw + 1.5rem, 65px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    /* Fluid margin: 8px → 20px */
    margin: 0 0 clamp(8px, 1.25vw, 20px) 0;
    letter-spacing: 0.3px;
}

.our-values p {
    font-family: 'Alibaba PuHuiTi Regular', 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: white;
    font-size: clamp(16px, 1.5vw + 1rem, 40px);
    font-weight: 400;
    /* Fluid line-height for better readability */
    line-height: clamp(1.3, 1.3 + 0.3vw, 1.5);
    text-align: left;
    margin: 0;
    letter-spacing: 0.3px;
}


/* ============================================
   Background Image with Text Section
   ============================================ */
.bg-image-text {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bg-image-text .bg-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Dark overlay for better text readability */
.bg-image-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.bg-image-text .text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* transform: translateY(-50%); Removed for top alignment */
    z-index: 2;
}

.bg-image-text p {
    font-family: 'Alibaba PuHuiTi Regular3', 'Alibaba PuHuiTi Regular';
    color: white;
    font-size: clamp(16px, 1.4vw + 1rem, 40px);
    line-height: clamp(1.3, 1.3 + 0.3vw, 1.5);
    text-align: left;
    margin: 0;
    margin-top: clamp(20px, 12vw, 240px);
    letter-spacing: 2.6px;
}

/* Mobile adjustments for bg-image-text */
@media (max-width: 1200px) {
    .bg-image-text p {
        margin-top: clamp(20px, 6vw, 80px);
        font-size: clamp(16px, 1.4vw + 0.8rem, 35px);
    }
}

@media (max-width: 1008px) {
    .bg-image-text p {
        margin-top: clamp(10px, 6vw, 80px);
        font-size: clamp(16px, 1.4vw + 0.7rem, 30px);
    }
}

@media (max-width: 768px) {
    .bg-image-text p {
        margin-top: clamp(10px, 2vw, 30px);
        font-size: clamp(16px, 1.4vw + 0.8rem, 35px);
    }

    .bg-image-text {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .bg-image-text .text-overlay {
        position: relative;
        /* On mobile, let it flow naturally if needed, or keep absolute but center */
        /* For the specific design requested, we might want to keep it absolute but change alignment */
    }

    .bg-image-text .bg-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .bg-image-text .text-overlay {
        position: relative;
        transform: none;
        top: auto;
        padding: clamp(60px, 10vh, 120px) clamp(20px, 8vw, 160px);
        z-index: 2;
    }
}

/* ============================================
   Latest News Section
   ============================================ */
.latest-news {
    background-color: black;
    color: white;
    padding: clamp(60px, 10vh, 120px) 0;
    text-align: center;
    overflow: hidden;
}

.news-title {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: white;
    font-size: clamp(30px, 3vw + 2rem, 100px);
    text-align: center;
    margin: 0 0 clamp(40px, 6vh, 80px) 0;
    letter-spacing: 1px;
}

.news-main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 3-Column Layout: Left Arrow | Carousel | Right Arrow */
.news-layout {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    gap: 20px;
}

/* Arrow Containers */
.news-control-left,
.news-control-right {
    flex: 0 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

/* Carousel Wrapper (Middle) */
.news-carousel-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.news-carousel {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.news-slide {
    flex: 0 0 calc(50% - 20px);
    margin: 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.news-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin-bottom: 20px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-slide:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    color: white;
}

.news-date {
    display: block;
    font-family: "Alibaba PuHuiTi Regular", sans-serif;
    font-size: clamp(14px, 1.25vw + 0.25rem, 20px);
    color: #fff;
    margin-bottom: 10px;
    font-weight: normal;
}

.news-headline {
    font-family: 'Alibaba PuHuiTi', sans-serif;
    font-size: clamp(20px, 2vw + 1rem, 30px);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.news-headline a {
    color: white;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.news-headline a:hover {
    color: var(--primary-orange);
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 2px;
}

/* Controls - Static Buttons */
.carousel-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: static;
    transform: none;
    border-radius: 50%;
}

.carousel-btn:hover {
    background-color: var(--primary-orange);
}

/* View More Link */
.news-view-more {
    color: white;
    text-decoration: none;
    font-family: 'Alibaba PuHuiTi Light', 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(15px, 1vw + 0.8rem, 30px);
    font-weight: 300;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.news-view-more span {
    transition: text-decoration 0.3s ease;
}

.news-view-more:hover span {
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 2px;
}

.news-view-more:hover {
    color: #FF6B35 !important;
}

.news-view-more i {
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-slide {
        flex: 0 0 100%;
        margin: 0;
        padding: 0;
    }

    .news-image {
        margin-bottom: 20px;
    }

    .news-content {
        padding: 0 15px;
        /* Add padding to text content so it doesn't touch screen edges */
    }

    .news-layout {
        /* Mobile: Relative for floating buttons */
        position: relative;
        display: block;
        padding: 0;
        gap: 0;
    }

    .news-carousel-wrapper {
        width: 100%;
        /* Ensure full width */
    }

    .news-control-left,
    .news-control-right {
        /* Floating Arrows on Mobile */
        position: absolute;
        /* Image is 3:2 Aspect Ratio. Width = 100vw (if no padding). Center = 100vw * 0.333 */
        top: calc(100vw * 0.333);
        transform: translateY(-50%);
        z-index: 10;
        width: auto;
        height: auto;
        display: block;
    }

    .news-control-left {
        left: 10px;
    }

    .news-control-right {
        right: 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        background-color: rgba(0, 0, 0, 0.5);
        /* Semi-transparent for floating */
    }
}


/* ============================================
   Map Lightbox Modal
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10001;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000000;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #FF6B35;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 10005;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-orange);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-rotate {
    position: absolute;
    top: 70px;
    right: 35px;
    color: #FF6B35;
    font-size: 26px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 10005;
    cursor: pointer;
    display: none;
}

.lightbox-rotate:hover {
    color: var(--primary-orange);
}

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        width: 100%;
        height: auto;
        object-fit: contain;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: auto;
        max-width: 100%;
    }

    /* Rotated State */
    .lightbox-content.rotated {
        width: 100vh;
        height: 100vw;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
        max-width: none;
    }

    .lightbox {
        display: none;
        padding-top: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    /* When active, use flex to center */
    .lightbox.active {
        display: flex;
    }

    .lightbox-rotate {
        display: block;
    }
}

/* Placeholder for additional content sections */
/* Styles will be added as modules are developed */