/* ---------- 1. โครง banner ---------- */
.about-us-banner {
    position: relative;
    overflow: hidden;
    background: #000000;
    color: #fff;
    height: 520px;
    padding: 0;
}

.about-us-banner .container {
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.about-us-banner .banner-content {
    display: flex;
    justify-content: space-between;
}

/* ---------- 2. ของตกแต่งพื้นหลัง ---------- */
.about-us-banner::before,
.about-us-banner::after {
    content: "";
    position: absolute;
    z-index: 0;
}

/* แถบเหลืองขวาบน */
.about-us-banner::before {
    left: 50px;
    bottom: -24px;
    width: 204px;
    height: 155px;
    background: #e8c302;
    clip-path: polygon(12% 0, 100% 5%, 88% 88%, 0 100%);
    mask-image: linear-gradient(
        174deg,
        #000 0%,
        #000 45%,
        transparent 42%,
        transparent 51%,
        #000 51%,
        #000 100%
    );
}

/* วงกลมแดงซ้ายล่าง */
.about-us-banner::after {
    top: -120px;
    right: -20px;
    width: 387px;
    height: 387px;
    background: #db3403;
    border-radius: 50%;
}

/* จุดไข่ปลาตกแต่ง */
.about-us-banner .dash-dot {
    position: absolute;
    z-index: 0;
    left: -75px;
    top: -40px;
    color: #a08707;
    font-family: Inter;
    font-weight: 600;
    font-size: 96px;
    line-height: 137%;
    rotate: 21.99deg;
}

/* ---------- 3. หัวข้อ ---------- */
.about-us-banner .banner-small-title {
    width: 166px;
    height: 29px;
    opacity: 1;
    border-radius: 3px;
    background: #ff3a00;
    text-align: center;
}

.about-us-banner .banner-title {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 80px;
    line-height: 124%;
}

.about-us-banner .banner-title label:nth-child(even) {
    color: #ffd600;
}

/* ---------- 4. รูป banner ---------- */
.about-us-banner .banner-image {
    position: relative;
    width: 373px;
    height: 296px;
}

.about-us-banner .banner-image img {
    display: block;
    width: 373px;
    height: 296px;
    object-fit: cover;
}

.about-us-banner .banner-image::before,
.about-us-banner .banner-image::after {
    content: "";
    position: absolute;
    z-index: 0;
}

/* แถบเหลืองใต้รูป */
.about-us-banner .banner-image::before {
    bottom: -30px;
    left: 10px;
    width: 133px;
    height: 72px;
    background: #ffd600;
    transform: translateX(-70px);
    z-index: 1;
}

/* สามเหลี่ยมเขียวใต้รูป */
.about-us-banner .banner-image::after {
    right: -55px;
    bottom: -140px;
    width: 129px;
    height: 129px;
    background: #058e75;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.about-us-details {
    background: #f5f4ef;
}

.about-us-details .container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
}

.about-us-detail-img {
    position: relative;
    width: 350px;
    height: 350px;
}

.about-us-detail-img img {
    position: absolute;
    object-fit: cover;
}

.about-us-detail-img img:nth-child(1) {
    width: 235px;
    height: 235px;
    top: 0;
    left: 0;
}

.about-us-detail-img img:nth-child(2) {
    width: 200px;
    height: 200px;
    right: 0;
    bottom: 0;
}

.about-us-detail-text {
    max-width: 760px;
}

.about-us-detail-text h3 {
    font-weight: 500;
    font-size: 30px;
    margin: 10px 0;
}

.about-us-detail-text h3 strong {
    font-weight: 600;
}

.about-us-detail-text p {
    font-weight: 400;
    font-size: 18px;
    margin: 0;
}

.about-us-highlight {
    background: #000000;
    color: #ffffff;
}

.about-us-highlight .container {
    max-width: 1200px;
}

.highlight-title {
    display: flex;
    align-items: center;
    gap: 50px;
}

.highlight-title h1 {
    font-weight: 500;
    font-size: 60px;
}

.highlight-title span {
    max-width: 500px;
}

.highlight-cards {
    display: flex;
    justify-content: space-between;
}

.highlight-card {
    max-width: 336px;
    width: 100%;
    height: 366px;
    padding: 20px 40px;
    box-sizing: border-box;

    border-radius: 20px;
    background: #ba621f;
    box-shadow: 0px 0px 5px 0px #ffffff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.highlight-card h3 {
    align-self: flex-start;
    margin: 0;
    font-size: 30px;
    font-weight: 600;
}

.highlight-card img {
    width: 100px;
    height: 100px;
    margin: 25px 0;
    object-fit: contain;
}

.highlight-card p {
    width: 100%;
    margin: 0;

    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}

.highlight-card {
    position: relative;
    overflow: hidden;
}

.highlight-card:nth-child(1)::before {
    content: "";
    position: absolute;

    top: 0;
    bottom: 0;
    left: 10px;
    right: 10px;

    border-left: 0.5px solid #acacac;
    border-right: 0.5px solid #acacac;

    pointer-events: none;
}

.highlight-card:nth-child(1)::after {
    content: "";
    position: absolute;

    top: 10px;
    bottom: 10px;
    left: 0;
    right: 0;

    border-top: 0.5px solid #acacac;
    border-bottom: 0.5px solid #acacac;

    pointer-events: none;
}

.highlight-card:nth-child(3) {
    position: relative;
    overflow: hidden;
}

/* วงรีทั้งหมด */
.highlight-card:nth-child(3) .ellipse {
    position: absolute;
    border: 1px solid #acacac;
    border-radius: 50%;
    pointer-events: none;
}

/* ขวาบน */
.highlight-card:nth-child(3) .ellipse-1 {
    width: 133px;
    height: 59px;
    top: -20px;
    right: -20px;
}

.highlight-card:nth-child(3) .ellipse-2 {
    width: 177px;
    height: 79px;
    top: -20px;
    right: -40px;
}

.highlight-card:nth-child(3) .ellipse-3 {
    width: 228px;
    height: 102px;
    top: -20px;
    right: -60px;
}

.highlight-card:nth-child(3) .ellipse-4 {
    width: 264px;
    height: 118px;
    top: -20px;
    right: -80px;
}

.highlight-card:nth-child(3) .ellipse-bottom {
    top: auto;
    bottom: -63px;
    right: auto;
    left: -38px;
}

.about-us-steps .container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
}

.about-us-steps .step_title {
    max-width: 458px;
    position: sticky;
    top: var(--site-header-height, 170px);
    align-self: flex-start;
    z-index: 5;
}

.about-us-steps .step_title h1 {
    font-weight: 500;
    font-size: 96px;
    line-height: 110px;
    margin: 0;
}

.steps-detail {
    max-width: 610px;
}

.step-detail {
    position: relative;
    padding: 0 0 40px 40px;
}

.step-detail::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 15px;
    bottom: -15px;
    width: 2px;
    background: #ba621f;
}

.step-detail:last-child::before {
    display: none;
}

.step-detail .step-box {
    position: relative;
    max-width: 124px;
    height: 34px;
    line-height: 34px;
    padding-left: 20px;
    text-align: start;
    border-radius: 25px;
    background: #000000;
    color: #fff;
    margin-bottom: 40px;
}

.step-detail .step-box::before {
    content: "";
    position: absolute;

    left: -40px;
    bottom: 12px;

    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ba621f;
}

.step-detail .step-box::after {
    content: "";
    position: absolute;

    right: 10px;
    bottom: 12px;

    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ba621f;
}

.step-detail h3 {
    font-weight: 500;
    font-size: 30px;
    margin: 0 0;
}

.step-detail ul {
    padding-left: 30px;
    margin: 0;
}

.step-detail li {
    font-weight: 400;
    font-size: 17px;
    color: #0a0a0a99;
}

.about-us-our-website {
    background: #ffd600;
    padding: 60px 0;
    overflow: hidden;
}

.about-us-our-website .container {
    max-width: 1200px;
}

.about-us-our-website .container h1 {
    font-weight: 500;
    font-size: 60px;
}

/* รางเลื่อน: ขยับด้วย JS ผ่าน scrollLeft (JS โคลนรูปให้ครบ 3 ชุด + วนลูปเอง) */
.our-website-marquee {
    margin-top: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    overscroll-behavior-x: contain;
}

.our-website-marquee::-webkit-scrollbar {
    display: none;
}

.our-website-marquee.is-dragging {
    cursor: grabbing;
}

.our-website-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
}

.our-website-track img,
.our-website-track .our-website-frame {
    width: 340px;
    height: 233px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* กรอบ contain: รูปเต็มใบไม่โดนครอป พื้นหลังเติมสีเฉลี่ยของรูปเองผ่าน JS */
.our-website-track .our-website-frame {
    display: block;
    overflow: hidden;
    /* ค่าเริ่มต้นกันกระพริบก่อน JS คำนวณสีเสร็จ */
    background-color: #eceae4;
}

.our-website-track .our-website-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
    pointer-events: none;
}

/* ---------- 6. ที่ตั้งบริษัท ---------- */
.about-us-location {
    padding: 80px 0;
    background: #fff;
}

.about-us-location .container {
    max-width: 1200px;
}

.location-map-box {
    height: 497px;
}

.location-map-box iframe {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 497px;
    border: 0;
    border-radius: 22px;
}

.location-detail-box .box-text p {
    margin: 0 0 8px;
    font-weight: 400;
    font-size: 16px;
    color: #0a0a0ad4;
}

.location-detail-box .box-text p strong {
    font-weight: 500;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 24px;
}

.location-map-box,
.location-detail-box {
    max-width: 571px;
}

.location-detail-box {
    display: flex;
    gap: 15px;
    padding: 25px;
    border: 1px solid #ededed;
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
}

.location-detail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-title {
    font-weight: 500;
    font-size: 60px;
    margin: 0;
}

.location-title.mobile {
    display: none;
}

.location-country > i {
    color: #ba621f;
    font-size: 30px;
}

.location-country-icon {
    width: 72px;
    height: 46px;
    object-fit: contain;
    border: 1px solid #ebebeb;
}

.location-detail-box .box-text span {
    font-weight: 500;
    font-size: 24px;
}

.location-map-btn {
    display: inline-block;
    width: 242px;
    height: 37px;
    border-radius: 28px;
    border-width: 1px;

    background: #ba621f;
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    line-height: 37px;
    text-decoration: none;
    text-align: center;

    margin-top: 20px;
}

.location-map-btn:hover {
    background: #a3551a;
    color: #fff;
}

.location-detail-box h3 {
    margin: 0 0 10px;
    font-weight: 500;
    font-size: 24px;
}

.fade-animation {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.fade-animation.show {
    opacity: 1;
    transform: translateY(0);
}

.upsize-animation {
    opacity: 0;
    transform: scale(0);
    transform-origin: top left;
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.upsize-animation.show {
    opacity: 1;
    transform: scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .about-us-banner {
        height: 723px;
    }

    .about-us-banner .container {
        padding: 0 20px 100px;
    }

    .about-us-banner .banner-content {
        margin-top: 50px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* ของตกแต่งพื้นหลัง */
    .about-us-banner::before {
        width: 116px;
        height: 89px;
    }

    .about-us-banner::after {
        top: -150px;
        right: -120px;
        width: 330px;
        height: 330px;
    }

    .about-us-banner .dash-dot {
        left: -43px;
        top: 54px;
        font-size: 64px;
    }

    /* หัวข้อ */
    .about-us-banner .banner-small-title {
        width: 156px;
        height: 27px;
        line-height: 27px;
    }

    .about-us-banner .banner-title {
        font-size: 48px;
        line-height: 1.15;
        margin-top: 34px;
    }

    /* รูป banner */
    .about-us-banner .banner-image {
        width: 247px;
        height: 216px;
        margin-top: 50px;
    }

    .about-us-banner .banner-image img {
        width: 100%;
        height: auto;
    }

    .about-us-banner .banner-image::before {
        bottom: 5px;
        left: 45px;
        width: 89px;
        height: 49px;
    }

    .about-us-banner .banner-image::after {
        right: 0;
        bottom: -40px;
        width: 73px;
        height: 73px;
    }

    .about-us-details .container {
        flex-direction: column;
        align-items: center;
    }

    .about-us-detail-img {
        width: 224px;
        height: 219px;
    }

    .about-us-detail-img img:nth-child(1) {
        width: 165px;
        height: 165px;
    }

    .about-us-detail-img img:nth-child(2) {
        width: 141px;
        height: 141px;
    }

    .about-us-detail-text h3 {
        font-size: 22px;
    }

    .about-us-detail-text h3 strong {
        font-weight: 700;
    }

    .about-us-detail-text p {
        font-size: 16px;
    }

    .highlight-title {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }

    .highlight-title h1 {
        margin: 0;
        font-size: 40px;
    }

    .highlight-cards {
        margin-top: 40px;
        flex-direction: column;
        gap: 40px;
    }

    .about-us-steps .container {
        flex-direction: column;
        gap: 30px;
    }

    .about-us-steps .step_title {
        position: static;
        max-width: 100%;
    }

    .about-us-steps .step_title h1 {
        margin-bottom: 20px;
        font-weight: 600;
        font-size: 48px;
        line-height: 110%;
    }

    .step-detail h3 {
        margin-bottom: 10px;
    }

    .step-detail li {
        font-size: 16px;
    }

    .about-us-our-website .container h1 {
        font-size: 40px;
    }

    .about-us-location .container {
        padding: 0px 20px 0px;
    }

    .location-title {
        font-size: 40px;
        text-align: center;
    }

    .location-title.mobile {
        display: inline;
    }

    .location-title.desktop {
        display: none;
    }

    .location-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .location-map-box {
        height: 274px;
    }

    .location-map-box iframe {
        max-height: 274px;
    }

    /* มือถือ: ให้ไอคอนอยู่บรรทัดเดียวกับหัวข้อ (h3/span) แล้ว <p> ยังชิดขอบซ้ายเต็มความกว้าง */
    .location-detail-box {
        flex-wrap: wrap;
        row-gap: 0;
    }

    /* ให้ลูกของ .box-text (h3/span/p) เป็น flex item ของกล่องเอง จะได้ขึ้นบรรทัดใหม่ได้อิสระ */
    .location-detail-box .box-text {
        display: contents;
    }

    .location-detail-box .box-text h3,
    .location-detail-box .box-text span {
        flex: 1 1 0;
    }

    .location-detail-box .box-text p {
        flex: 0 0 100%;
    }

    .location-country-icon {
        width: 59px;
    }
}
