@import url('https://fonts.googleapis.com/css2?family=Moul&display=swap');

/* ========================================================
   SCROLL ANIMATION CLASSES
   ======================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px); /* Starts slightly lower */
    transition: all 0.8s ease-out;
}
.reveal.show-reveal {
    opacity: 1;
    transform: translateY(0); /* Glides into place */
}

/* ========================================================
   ABOUT US PAGE BASE
   ======================================================== */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: 'Noto Sans Khmer', sans-serif;
}
.split-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* ========= 1. HERO SECTION ========= */
.about-hero-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.about-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(2, 56, 27, 0.85) 0%, rgba(15, 161, 83, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start !important; 
}
.about-hero-overlay .about-container {
    width: 100% !important; 
    max-width: 1200px;
    margin: 0 auto;
}
.about-page-title {
    color: #ffffff;
    font-size: 48px !important;
    font-family: 'Khmer OS Moul', 'Moul', cursive !important;
    font-weight: normal; 
    line-height: 1.6;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    margin: 0;
    text-align: left !important; 
    display: block !important;
    width: 100% !important;
}

/* ========= 2. INFO SECTION ========= */
.about-info-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.info-text-center {
    max-width: 1000px; /* Prevents the text from stretching too wide */
    margin: 0 auto; /* Pushes the entire text block to the absolute center */
}

.info-text-center h1 {
    color: #3b3b3b;
    font-size: 36px;
    font-weight: 700;
    text-align: center; /* This centers your large black title! */
    margin-bottom: 30px;
}

.info-text-center h4 {
    color: #444444;
    font-size: 16px;
    line-height: 2.2;
    text-align: justify; /* Keeps the paragraph edges clean and straight */
    margin-bottom: 20px;
    font-weight: normal;
}

/* ========= 3. VISION & GOALS SECTION =========*/
.custom-about-tabs {
    max-width: 1000px;
    margin: 60px auto;
    font-family: 'Noto Sans Khmer', sans-serif;
}
.tab-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0 0 60px 0;
}
.tab-link {
    background: none;
    border: none;
    color: #999999;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Noto Sans Khmer', sans-serif;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: color 0.3s ease;
}
.tab-link:hover {
    color: #333333;
}
.tab-divider {
    color: #cccccc;
    font-size: 28px;
    font-weight: 300;
}
.tab-link.active {
    color: #1e7b46; 
}
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -25px; 
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-bottom: 1.5px solid #999; 
    border-right: 1.5px solid #999;
}

.about-tab-panel {
    display: none; 
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    align-items: center;
}
.about-tab-panel.active-panel {
    display: flex;
    opacity: 1;
    transform: translateY(0); 
}

.tab-img-holder {
    flex: 1.5;
    position: relative;
}
.tab-img-holder img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(27, 26, 26, 0.1);
}
.tab-text-holder {
    flex: 1;
    background-color: #ffffff;
    padding: 50px 40px;
    margin-left: -80px; 
    position: relative; 
    z-index: 2; 
    box-shadow: 0 10px 40px rgba(27, 26, 26, 0.08);
}
.tab-text-holder h3 {
    color: #444;
    font-size: 16px;
    line-height: 2.2; 
    font-weight: 600;
    margin: 0 0 20px 0;
}

/* ========= 4. MARKETING ACTIVITIES GALLERY ========= */
.about-marketing-section {
    background-color: #e8f2ec;
    padding: 80px 0;
}

/* 1. Stack the Title and Text and Center them */
.marketing-header-row {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column; /* Stacks the text on top of each other */
    align-items: center; /* Centers everything horizontally */
    text-align: center; /* Centers the actual text inside the containers */
    max-width: 1000px; /* Prevents the text from getting too wide */
    margin-left: auto;
    margin-right: auto;
}

/* 2. Remove the forced width on the title so it flows naturally */
.marketing-title {
    width: 100%;
    margin-bottom: 2px; /* Adds space between the title and the paragraphs */
}
.marketing-title h2 {
    color: #111111;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
}

/* 3. Style the intro text */
.marketing-intro {
    width: 100%;
}
.marketing-intro p {
    color: #444444;
    font-size: 16px;
    line-height: 2.2; /* Better line spacing for Khmer text */
    margin: 0 0 15px 0;
    text-align: justify; /* Keeps paragraph edges looking clean */
    
}

/* --- SWIPER GALLERY STYLES --- */
.marketing-swiper {
    width: 100%;
    padding: 10px 10px 40px 10px !important; /* Leaves room for hover zoom & arrows */
}

/* The Photo Cards */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #fff;
    height: 100%;
}
.gallery-item img {
    width: 100%;
    height: 220px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.4s ease;
    -webkit-user-drag: none; 
    user-select: none;
}
.gallery-item:hover img {
    transform: scale(1.08); 
}

/* Custom Swiper Arrows */
.marketing-swiper .swiper-button-next,
.marketing-swiper .swiper-button-prev {
    color: #0fa153 !important; /* Your brand green */
    background: #ffffff;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.marketing-swiper .swiper-button-next:hover,
.marketing-swiper .swiper-button-prev:hover {
    background: #0fa153;
    color: #ffffff !important;
}
/* Shrinks the default arrow icon slightly to fit the circle perfectly */
.marketing-swiper .swiper-button-next::after,
.marketing-swiper .swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

/* THIS IS THE FIX FOR THE SQUISHED IMAGES */
.gallery-item {
    flex: 0 0 280px; /* Locks the width so they slide instead of crush! */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #fff;
}
.gallery-item img {
    width: 100%;
    height: 220px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.4s ease;
    -webkit-user-drag: none; 
    user-select: none;
}
/* HOVER ANIMATION: Zooms the image gracefully */
.gallery-item:hover img {
    transform: scale(1.08); 
}
/* ========================================================
   partner section CSS
   ======================================================== */

.home-partners {
    background-color: var(--white);
    padding: 60px 20px 80px 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* .partners-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
} */
 .partners-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Centers the logos horizontally */
    align-items: center;
    gap: 50px;               /* Adjust spacing between logos */
    flex-wrap: wrap;
}

.home-partners .section-title {
    font-family: var(--font-khmer);
    font-size: 38px;
    font-weight: 700;
    color: #243d25;
    margin-bottom: 40px;
}

.partnerSwiper {
    width: 100%;
    padding: 20px 50px;
    box-sizing: border-box;
}

.partnerSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.partnerSwiper .swiper-slide img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partnerSwiper .swiper-slide img:hover {
    transform: scale(1.1);
}

.partner-next,
.partner-prev {
    color: #e0e0e0 !important;
    background: transparent;
    transition: color 0.3s ease;
}

.partner-next:after,
.partner-prev:after {
    font-size: 24px !important;
    font-weight: bold;
}

.partner-next:hover,
.partner-prev:hover {
    color: var(--brand-green) !important;
}

@media (max-width: 768px) {
    .home-partners {
        padding: 40px 10px;
    }
    .home-partners .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .partnerSwiper {
        padding: 10px 30px;
    }
}

/* ========================================================
   MOBILE RESPONSIVE FIXES
   ======================================================== */
@media (max-width: 900px) {
    /* Hero fixes */
    .about-hero-section {
        height: 320px !important; 
        margin-top: 0px !important; 
    }
    .about-hero-bg {
        object-position: 80% center !important; 
    }
    .about-page-title {
        font-size: 26px !important; 
        line-height: 1.5 !important;
    }
    
    /* Layout fixes */
    .split-layout {
        flex-direction: column;
    }
    
    /* Tabs fixes */
    .about-tab-panel.active-panel {
        flex-direction: column; 
    }
    .tab-text-holder {
        margin: -40px auto 0; 
        width: 90%;
    }
    .tab-navigation {
        gap: 15px;
    }
    .tab-link, .tab-divider {
        font-size: 20px; 
    }

    /* Marketing fixes */
    .marketing-header-row {
        gap: 20px !important;
    }
    .marketing-title {
        flex: none !important;
        width: 100% !important;
    }
    .gallery-item {
        flex: 0 0 220px; 
    }
}

@media (max-width: 600px) {
    .marketing-gallery-grid {
        gap: 10px;
    }
    .gallery-item {
        flex: 0 0 160px;
    }
    .gallery-item img {
        height: 150px; 
    }
}