/* ========================= */
/* GLOBAL */
/* ========================= */
body {
    margin: 0;
    font-family: "Hanken Grotesk", sans-serif;
    isolation: auto; /* ห้ามใส่ isolate */
    background-color: white;
}

.alway-on-Top-Text {
    position: fixed;
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 900;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 1401.75px;
    height: 145px;
    font-size: 230px;
    line-height: 145px;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

/* ========================= */
/* NAVBAR */
/* ========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1440px;
    height: 45px;
    box-sizing: border-box;
    background-color: white;
    padding: 15px 45px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* ซ้าย */
.nav-left {
    display: flex;
    align-items: center;
}

.dropdown {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
}

/* กลาง */
.nav-center {
    font-family: 'Inter', sans-serif;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-center a {
    text-decoration: none;
    color: black;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-center a:hover {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
}
/* ขวา */
.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 13px;
}

.nav-right a {
    text-decoration: none;
    color: black;
    font-size: 13px;
    transition: all 0.3s ease;
}

.nav-right a:hover {
    opacity: 0.5;
}

/* === EDITORIAL DROPDOWN === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1440px;
    height: 810px;
    background-color: black;
    z-index: 1001;
}

.nav-dropdown-content {
    position: absolute;
    top: 45px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: max-content;
}
.nav-dropdown-content h3 {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 900;
    font-size: 16px;
    color: white;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

.nav-dropdown-content a {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-dropdown-content a:hover {
    opacity: 1;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-trigger {
    text-decoration: none;
    color: black;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1002;
}

.nav-dropdown:hover .nav-dropdown-trigger {
    color: white;
}

/* ========================= */
/*  VIDEO1 */
/* ========================= */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 844px;
    overflow: hidden;
}

.bg-video {
    width: 1440px;
    height: 844px;
    object-fit: cover;
}

/* ========================= */
/* IMAGE SECTION */
/* ========================= */
.image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
}

/* === CROPPED IMAGE 566x572 === */
.image-wrapper {
    position: relative;
    width: 566px;
    height: 572px;
    overflow: hidden;
    margin: 20px auto 14px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === TEXT OVERLAY === */
.image-overlay-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 182px;
    height: 80px;
    color: white;
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 900;
    font-size: 80px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
}

/* ========================= */
/*  VIDEO2 */
/* ========================= */
.hero2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
}

.vdo2-wrapper {
    position: relative;
    width: 1200px;
    height: 759px;
    overflow: hidden;
    margin: 20px auto 14px;
}

.bg-video2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === TEXT OVERLAY VDO2 === */
.image-overlay-text-forVDO2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 458px;
    height: 80px;
    color: white;
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 900;
    font-size: 80px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
}

/* ========================= */
/* CAPTION */
/* ========================= */
.image-caption {
    width: 715px;
    margin: 14px auto 0;
    text-align: center;
}


/* ========================= */
/* GRID SECTION */
/* ========================= */
.grid-section {
    display: grid;
    grid-template-columns: 455px 455px;
    row-gap: 68px;
    column-gap: 68px;
    width: 978px;
    margin: 120px auto 0;
}

.grid-top {
    grid-column: 1 / 3;
    height: 475px;
    position: relative;
    overflow: hidden;
}

.grid-item {
    position: relative;
    height: 455px;
    overflow: hidden;
}

/* === HOVER IMAGE SWAP === */
.grid-top img,
.grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.6s ease;
}

.grid-top .img-hover,
.grid-item .img-hover {
    opacity: 0;
}

.grid-top:hover .img-default,
.grid-item:hover .img-default {
    opacity: 0;
}

.grid-top:hover .img-hover,
.grid-item:hover .img-hover {
    opacity: 1;
}

.grid-item .img-hover {
    object-position: center 20%; /* เลื่อนรูปลงมาให้เห็นเต็ม ปรับ % ได้ */
}

.grid-top video.img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.grid-top:hover video.img-hover {
    opacity: 1;
}

.grid-text-overlayed-top {
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 900;
    font-size: 60px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
}

.grid-text-overlayed-bottom-left {
    position: absolute;
    top: 202px;
    left: 78.94px;
    width: 298px;
    height: 40px;
    color: white;
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 900;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: left;
    z-index: 2;
}

.grid-text-overlayed-bottom-right {
    position: absolute;
    top: 202px;
    left: 78.94px;
    width: 298px;
    height: 40px;
    color: white;
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 900;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: left;
    z-index: 2;
}

/* ========================= */
/* BLACK BAR / MARQUEE */
/* ========================= */
.black-bar {
    width: 1440px;
    margin: 0 auto;
    background-color: black;
    height: 78px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 95px;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    animation: marquee 12s linear infinite;
}

.marquee-track span {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 900;
    font-size: 60px;
    line-height: 100%;
    text-transform: uppercase;
    color: white;
}

.marquee-track .arrow {
    display: flex;
    align-items: center;
    width: 57px;
    height: 50px;
    flex-shrink: 0;
    color: white;
}

.marquee-track .arrow svg {
    width: 57px;
    height: 50px;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================= */
/* TEXT SECTION */
/* ========================= */
.text-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 126px;
    padding: 60px 174px;
    max-width: 1440px;
    margin: 0 auto; /* แก้จาก margin: center */
}

.text-block h2 {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.text-block p {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.dark-section {
    width: 1440px;
    height: auto;          /* แก้จาก 645px */
    min-height: 645px;     /* เพิ่มอันนี้ */
    background-color: black;
    margin: 20px auto;
}

.dark-section-title {
    width: 612px;
    height: 40px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 900;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    color: white;
    margin: 0 auto;
    padding-top: 100px;
}

.dark-section-subtitle {
    width: 605px;
    height: 16px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: white;
    margin: 16px auto 0;
}

.faq-tabs {
    width: 1092px;
    height: 33px;
    display: flex;
    gap: 16px;
    margin: 16px auto 0;
    align-items: center;
    justify-content: center; /* เพิ่มตรงนี้ */
}

.faq-tabs button {
    background: transparent;
    border: 1px solid white;
    color: white;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    padding: 6px 16px;
    height: 33px;
    cursor: pointer;
    border-radius: 999px; /* เพิ่มตรงนี้ */
    transition: all 0.3s ease;
}

.faq-tabs button:hover {
    background: white;
    color: black;
}

.faq-tabs button.active {
    background: white;
    color: black;
}

.faq-list {
    width: 1092px;
    margin: 40px auto 0;
}

.faq-item {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 16px 0;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
}

.faq-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    width: 804px;
    color: rgba(255,255,255,0.6);
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    margin-top: 12px;
}

.faq-item.open .faq-answer {
    display: block;
}

.inquiry-section {
    width: 1092px;
    min-height: 294px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: 375px 644px;
    gap: 74px;
    align-items: start;
}

.inquiry-left {
    width: 375px;
    height: 144px;
}

.inquiry-right {
    width: 644px;
    min-height: 294px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.inquiry-left h2 {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 900;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0 0 16px 0;
}

.inquiry-left p {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    color: #555;
}

.inquiry-radio {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.inquiry-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.inquiry-row input,
.inquiry-row select {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    outline: none;
    background: transparent;
    width: 100%;
}

.inquiry-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.inquiry-send {
    width: 140px;
    height: 52px;
    padding: 10px 30px;
    background: black;
    color: white;
    border: none;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.inquiry-send:hover {
    opacity: 0.7;
}

.homepage-btn-wrapper {
    width: 1440px;
    margin: 0 auto;
}

.homepage-btn {
    width: 89px;
    height: 36px;
    padding: 10px;
    background: transparent;
    border: none;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
    display: block;
    margin-left: 10px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.homepage-btn:hover {
    background: black;
    color: white;
}



.footer {
    width: 1440px;
    min-height: 309px;
    background-color: #F8F9F8;
    margin: 0 auto;
    padding: 40px 174px;
    box-sizing: border-box;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    /* border-bottom: 1px solid #ddd; */
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0 0 24px 0;
}

.footer-col a {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    gap: 20px;
}

.footer-col a:hover {
    opacity: 0.5;
    color: #555;
}

.footer-email {
    width: 393px;
    height: 37px;
    border: none;
    border-bottom: 0.5px solid #aaa;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 13px;
    padding: 10px 10px;
    outline: none;
    box-sizing: border-box;
    gap: 10px;
}

.footer-subscribe {
    width: 393px;
    height: 34px;
    padding: 10px;
    background: #ddd;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.footer-subscribe:hover {
    background: #bbb;
}

.footer-subscribe:hover {
    background: #bbb;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: black;
    margin-top: 40px;
}       

/* ซ่อน hamburger บน desktop */
.nav-hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ซ่อน mobile-only บน desktop */
.mobile-only {
  display: none;
}
.nav-mobile-logo {
    display: none;
}
/* ========================= */
/* MOBILE */
/* ========================= */
@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
        width: 390px;
        height: 45px;
        top: 52px;
        left: 0;
        transform: none;
        padding: 0 16px;
    }

  .nav-center {
    display: none;
    text-align: center;
  }

  .nav-hamburger {
    display: block;
  }

  .nav-center.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: fixed;
    top: 45px;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    background: white;
    padding-top: 40px;
    z-index: 999;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .nav-center.open > a {
    text-align: center;
    width: 100%;
  }

  /* EDITORIAL DROPDOWN */
  .nav-dropdown {
    width: 100%;
    text-align: center;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown:hover .nav-dropdown-trigger {
    color: black !important;
  }

    .nav-dropdown-menu {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        display: none;
        transform: none !important;    /* เพิ่มตรงนี้ */
        left: unset !important;        /* เพิ่มตรงนี้ */
        padding-top: 16px;    /* เพิ่มตรงนี้ */
        top: unset !important;         /* เพิ่มตรงนี้ */
    }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    width: 100% !important;
  }

  .nav-dropdown-content {
    position: static !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100% !important;
    gap: 30px;
    padding: 0;
    left: unset !important;
  }

  .nav-dropdown-content a {
    position: static !important;
    left: unset !important;
    color: black !important;
    font-size: 13px;
    font-weight: 400 !important;
    opacity: 0.5;
    text-align: center !important;
    display: block;
    width: fit-content;
    margin: 0 auto;
  }

  .mobile-only {
    display: block !important;
  }
  .nav-mobile-logo {
    margin-top: 10%;
    margin-left: auto;
    margin-right: auto;
    width: 378px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: block;
    }

    .hero {
        width: 390px;
        height: 713px;
        margin-top: 97px;
    }

    .bg-video {
        width: 100%;
        height: 713px;
    }

    .image-wrapper {
        position: relative; /* ต้องมีอันนี้ */
        width: 282px;
        height: 286px;
        margin-top: calc(910px - 713px - 97px); /* top: 910px ลบ hero และ navbar */
        margin-left: 54px;
        margin-right: auto;
    }

    .image-caption {
        width: 342px;
        height: 78px;
        margin-top: calc(1216px - 910px - 286px);
        margin-left: 26px;
        gap: 14px;
    }

    .image-wrapper {
        position: relative;
        overflow: hidden;
    }

    .image-overlay-text {
        position: absolute;
        width: 91px;
        height: 52px;
        font-size: 40px;
    }
   
}