﻿:root {
    --primary-color: var(--button-color-two, #B0A096);
    --accent-color: var(--button-color, #F9794C);
    --text-dark: #160d0c;
    --text-light: #f8f8f8;
    --transition-speed: 0.3s;
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --overlay-light: rgba(255, 255, 255, 0.9);
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
}

.header-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-family: "Playfair Display", serif;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.header-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.5rem);
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.4;
}

.body-content-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.body-content-subtitle {
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.8rem);
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.body-content-text {
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.body-content-image {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.title-one {
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.sub-title-one {
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.8rem);
    font-weight: 500;
    color: var(--accent-color);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.content-one {
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 1rem;
}

.content-image-container {
    width: 100%;
    padding: clamp(1rem, 2vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.col-bg {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: transform var(--transition-speed) ease;
    padding: clamp(1.5rem, 2.5vw, 2rem);
}

    .col-bg:hover {
        transform: translateY(-5px);
    }

.mission-vision-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.mission-vision-text {
    max-width: 100%;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 500;
    line-height: 1.5;
    color: var(--primary-color);
    margin: 0 auto;
    text-align: center;
    padding: 0 0.5rem;
}

.bottom-image {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 500px;
    max-height: 900px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: clamp(1rem, 2vw, 2rem);
}

    .bottom-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, var(--overlay-light) 0%, rgba(255,255,255,0.7) 30%, rgba(255,255,255,0) 100%);
        z-index: 1;
    }

.bottom-content {
    position: relative;
    z-index: 2;
    color: var(--text-dark);
    padding: clamp(2rem, 5vw, 5rem);
    width: 100%;
    max-width: min(50%, 600px);
    margin-left: 5%;
}

.bottom-content-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
}

.bottom-content-subtitle {
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1rem;
    color: var(--accent-color);
}

.bottom-content-text {
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 400;
    line-height: 1.6;
    margin-top: 2rem;
}

/* ===== Logo 轮播 ===== */
.logo-carousel-section {
    padding: clamp(4rem, 6vw, 6rem) 0;
    background-color: #f5f5f5;
}

.logo-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 20px;
}

.logo-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-slide {
    flex: 0 0 20%;
    min-width: 20%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item {
    width: 100%;
    height: 120px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

    .logo-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        border-color: var(--accent-color);
    }

.logo-img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}

.logo-item:hover .logo-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.logo-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all var(--transition-speed) ease;
    font-size: 1.2rem;
    color: #333;
}

    .logo-carousel-nav:hover {
        background-color: var(--accent-color);
        color: white;
        transform: translateY(-50%) scale(1.1);
    }

    .logo-carousel-nav.prev {
        left: 0;
    }

    .logo-carousel-nav.next {
        right: 0;
    }

    .logo-carousel-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

        .logo-carousel-nav:disabled:hover {
            background-color: white;
            color: #333;
            transform: translateY(-50%);
        }

.logo-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    padding: 0;
}

    .logo-dot:hover {
        background-color: #bbb;
    }

    .logo-dot.active {
        background-color: var(--accent-color);
        transform: scale(1.2);
    }

.btn-primary {
    background-color: var(--button-color, #F9794C);
    border: none;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    display: inline-block;
    text-decoration: none;
}

    .btn-primary:hover {
        background-color: #F9794C;
    }

.scroll-animate {
    will-change: transform, opacity;
    opacity: 0;
    transition: all 0.6s ease-out;
}

    .scroll-animate.scroll-fade {
        opacity: 0;
    }

    .scroll-animate.scroll-up {
        transform: translateY(30px);
    }

    .scroll-animate.scroll-down {
        transform: translateY(-30px);
    }

    .scroll-animate.scroll-left {
        transform: translateX(-30px);
    }

    .scroll-animate.scroll-right {
        transform: translateX(30px);
    }

    .scroll-animate.visible {
        opacity: 1;
        transform: translate(0);
    }

@media (max-width: 1200px) {
    .logo-slide {
        flex: 0 0 25%;
        min-width: 25%;
    }
}

@media (max-width: 992px) {
    .body-content-image {
        min-height: auto;
    }

        .body-content-image .row {
            flex-direction: column;
        }

    .content-image-container {
        order: 2;
        margin-bottom: 2rem;
    }

    .col-md-7 {
        order: 1;
        margin-bottom: 1rem;
    }

    .col-bg {
        min-height: 200px;
        padding: 1.5rem;
    }

    .bottom-content {
        max-width: 80%;
        margin-left: 0;
        padding: 3rem;
    }

    .logo-slide {
        flex: 0 0 33.333%;
        min-width: 33.333%;
    }
}

@media (max-width: 768px) {
    .hero-banner,
    .bottom-image {
        height: 70vh;
        min-height: 400px;
    }

    .header-subtitle {
        letter-spacing: 1px;
    }

    .body-content-text {
        text-align: left;
    }

    .col-md-4 {
        margin-bottom: 1.5rem;
    }

    .col-bg {
        min-height: 180px;
    }

    .mission-vision-text {
        font-size: 0.9rem;
    }

    .bottom-content {
        max-width: 90%;
        padding: 2rem;
        text-align: center;
        margin: 0 auto;
    }

    .bottom-image::before {
        background: linear-gradient(rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    }

    .logo-slide {
        flex: 0 0 50%;
        min-width: 50%;
    }

    .logo-item {
        height: 100px;
        padding: 15px;
    }

    .logo-img {
        max-height: 50px;
    }

    .logo-carousel-nav {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .hero-banner,
    .bottom-image {
        height: 60vh;
        min-height: 300px;
    }

    .hero-content,
    .bottom-content {
        padding: 1.5rem;
    }

    .col-bg {
        min-height: 150px;
        padding: 1rem;
    }

    .mission-vision-title {
        letter-spacing: 1px;
        font-size: 13px;
    }

    .logo-slide {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 0 30px;
    }

    .logo-item {
        height: 90px;
        padding: 12px;
    }

    .logo-img {
        max-height: 45px;
    }

    .logo-carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .logo-carousel-container {
        padding: 0 10px;
    }
}

@media (max-width: 400px) {
    .hero-banner,
    .bottom-image {
        height: 50vh;
        min-height: 250px;
    }

    .header-title {
        font-size: 1.6rem;
    }

    .logo-item {
        height: 80px;
    }

    .logo-img {
        max-height: 40px;
    }
}

.text-center {
    text-align: center;
}

.text-start {
    text-align: left;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 3rem;
}

.my-5 {
    margin-top: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.g-4 {
    gap: clamp(1rem, 2vw, 1.5rem) !important;
}

.container-fluid.m-0.p-0 {
    margin: 0;
    padding: 0;
}
