body {
    background-color: #F4F5F0;
    font-family: 'Nanum Myeongjo', 'IBM Plex Sans Thai', sans-serif;
    color: #555555;
    /* max-width: 1560px; */
    margin: 0 auto;
}

/* ใช้ฟอนต์แยกอัตโนมัติตาม Unicode */
@font-face {
    font-family: "IBM Plex Sans Thai", sans-serif;
    font-style: normal;
    font-weight: 400;
    unicode-range: U+0E00-0E7F;
    /* ภาษาไทย */
}

@font-face {
    font-family: "Nanum Myeongjo", serif;
    font-style: normal;
    font-weight: 400;
    unicode-range: U+0000-007F;
    /* อังกฤษและตัวเลขพื้นฐาน */
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
}
p {
    font-size: 16px;
    line-height: 28px;
}
p strong {
    color: #000;
    font-weight: 700;
}
.fs-48 {
    font-size: 48px;
}
.text-grey {
    color: #555 !important;
}

.dropdown-toggle::after {
    font-family: "bootstrap-icons";
    content: "\F282";
    /* bi-chevron-down */
    font-size: 0.75em;
    margin-left: 5px;
    margin-top: 3px;
    vertical-align: top;
    border: none;
    transition: transform 1s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    content: "\F286";
    /* bi-chevron-up */
}


.top-menu .navbar-nav .nav-item {
    margin: auto 10px;
}

.top-menu.navbar .nav-link {
    color: #555;
    font-weight: bold;
    font-size: 15px;
    padding: 20px 10px;
}

.logo {
    height: 65px;
    width: auto;
}

.video-container {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
    display: block;
}

.video-farm {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: block;
    margin-top: 8rem;
}

video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* ทำให้ video ครอบเต็ม container โดยไม่เสียอัตราส่วน */
}

.icon-play, .icon-pause {
    color: white;
    font-size: 5rem;
}

/* ปุ่ม Play/Pause */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border: none;
  border-radius: 50%;
  border: 4px solid #fff;
  background: transparent ;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-btn .icon-pause {
  display: none;
}

.playing .icon-play {
  display: none;
}

.playing .icon-pause {
  display: block;
}

.controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 10px;
}

.controls button {
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.section-1 {
    margin: 8rem auto;
    width: 30%;
    display: flex;
    align-items: center;
}

.section-2 {
    margin: 8rem auto;
    width: 50%;
    display: flex;
    align-items: center;
}
.section-news {
    margin: 5rem auto 2rem auto;
    width: 50%;
    display: flex;
    align-items: center;
}
.section-60 {
    width: 60%;
}

.section-65 {
    width: 65%;
}

.section-70 {
    width: 70%;
}

.news-heading {
    margin: 5rem auto 4rem auto;
    text-align: center;
}
.news-content {
    margin-bottom: 8rem;
}
.news-btn-section {
    margin: 1.25rem auto 4rem auto;
    display: flex;
    justify-content: space-between;
    color: black
}
.news-btn-social {
    display: flex;
    align-items: center;
}
.heritage, .faq {
    margin: 7rem auto;
}

.h-100 {
    min-height: 100vh;
}

.h-130 {
    min-height: 130vh;
}

.my-6 {
    margin: 6rem auto;
}

.my-8 {
    margin: 8rem auto;
}

.img-cover-h-100 {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.img-cover-h-130 {
    width: 100%;
    height: 130vh;
    object-fit: cover;
}

.text-title {
    margin-bottom: 28px;
    color: #000;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 0 7rem;
}

.text-container-sm {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 0 4rem;
}
.text-container-leather {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: end;
}
.text-container-leather-center {
    background-color: #233657;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white !important;
}
.text-container-leather-center p {
    width: 60%;
    text-align: center;
}
.card {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.card-img {
    border-radius: 0px !important;
}

.card .stretched-link {
    text-decoration: none;
}

.card .stretched-link.title {
    color: #000;
}

.card a.stretched-link.title.h6 {
    line-height: 28px;
}

.card-faq {
    background-color: rgba(255, 255, 255, 0.6) !important;
    padding: 0.6rem 1.25rem;
}

.card-faq .card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.card-faq * {
    margin-bottom: 0;
}

.card-faq h6 {
    color: #000 !important;
}

.card-faq p {
    line-height: 110%;
}

.card-faq:hover {
    background-color: #fff !important;
}

#capabilities .card-img {
    height: 520px;
    width: 100%;
    object-fit: cover;
}

#capabilities {
    margin: 10rem auto 6rem auto;
}

#leather .card-img, #finished-products .card-img {
    border-radius: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-black {
    color: #000;
}

.g-35 {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.container-wide {
    width: 1440px;
    margin: auto;
}
.container-fluid {
    width: 100%;
}

#products {
    margin: 8rem auto;
    margin-top: 6rem;
}


#rochelle {
    margin-bottom: 10rem;
}

.rochelleSwiper {
    width: 400px;
}

.rochelle-prev,
.rochelle-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    z-index: 10;
    width: 45px;
    height: 45px;
}
.rochelle-next.swiper-button-next, .rochelle-prev.swiper-button-prev {
    color: #000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #F2F2F2;
}

.rochelle-next.swiper-button-next:after, .rochelle-prev.swiper-button-prev:after {
    font-size: 20px;
}

.rochelle-prev {
    left: -50px;
    /* ขยับให้ออกนอก Swiper ด้านซ้าย */
}

.rochelle-next {
    right: -50px;
    /* ขยับให้ออกนอก Swiper ด้านขวา */
}

/* เพิ่มเอฟเฟกต์ hover */
.rochelle-prev:hover,
.rochelle-next:hover {
    color: #000;
}

.btn {
    --bs-btn-border-radius: 3px;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #000;
    --bs-btn-border-color: #000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #000;
    --bs-btn-disabled-border-color: #000;
}

.btn-outline-primary {
    --bs-btn-color: #000;
    --bs-btn-border-color: #000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #233657;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #000;
    --bs-gradient: none;
    font-weight: 600;
    border-radius: 3px;
    padding: 8px 2rem;
}

.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* จำนวนบรรทัดที่ต้องการให้แสดง */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* จำนวนบรรทัดที่ต้องการให้แสดง */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newsSwiper .card-img {
    height: 275px;
    width: 100%;
    object-fit: cover;
}

.newsSwiper {
    margin: 2rem 0;
    position: relative;
}

.news-tab .card-img {
    height: 275px;
    width: 100%;
    object-fit: cover;
}

.news-tab .card {
    margin-bottom: 3.5rem;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
}

.swiper-pagination-bullet {
    background-color: #d9d9d9 !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background-color: #000 !important;
}

.bg-white {
    background: #fff !important;
}

.bg-grey-white {
    background: linear-gradient(180deg, #F5F5F5 0%, #FEFEFE 100%) !important;
}
.bg-wheat {
    background-color: #F4F5F0;
}

.h-110 {
    height: 110vh;
}

.footer p {
    font-size: 15px;
}
.footer .small {
    font-size: 15px;
}

.footer .logo {
    height: 65px;
    width: auto;
}

.footer-menu {
    list-style-type: none;
}

.footer-title {
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

.footer-subtitle {
    font-weight: 700;
    font-size: 16px;
    color: #000;
}

.footer-menu a, .footer a {
    text-decoration: none !important;
    color: #555;
    line-height: 30px;
    font-size: 15px;
}

.footer-menu a:hover, .footer a:hover {
    color: black;
    font-weight: 600;
}

hr {
    color: #888;
}

.dropdown.megamenu {
    position: static;
}

.dropdown-menu.megamenu {
    width: 100%;
    border: none;
    border-radius: 0px;
    background-color: #f4f5f0;
    display: none;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

.dropdown-menu a {
    text-decoration: none;
    color: #000000;
}

.dropdown-menu a .d-flex {
    transition: all 0.5s ease;
}

.dropdown-menu.megamenu.show {
    display: flex;
    border-top: 1px solid #e7e7e7;
    transition: max-height 0.4s ease;
      display: block;
    animation-name: fadeIn;
}

.megamenu .card-img {
    height: 250px;
    object-fit: cover;
}

.megamenu .card-img-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem;
    background-color: rgba(60, 60, 60, 20%);
    transition: all 0.5s ease;
}

.megamenu .card-img-overlay:hover {
    background-color: rgba(30, 30, 30, 60%);
    transition: all 0.5s ease;
}

.megamenu .container {
    padding: 2.5rem;
}

.nav-link.dropdown-toggle {
  position: relative;
  color: #000;
  transition: color 0.3s ease;
}

/* เส้นขีดล่าง */
.nav-link.dropdown-toggle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  margin-left: 0px;
  background-color: #000;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link.dropdown-toggle.show::after {
  width: 100%;
}

.nav-link.dropdown-toggle.show {
  color: #000;
}

.dropdown-menu.list {
    width: 100%;
    border: none;
    border-radius: 0px;
    background-color: #f4f5f0;
    display: none;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

.dropdown-menu.list.show {
    display: flex;
    border-top: 1px solid #e7e7e7;
    transition: max-height 0.4s ease;
      display: block;
    animation-name: fadeIn;
}

.list-group-item {
    background: transparent;
    padding: 0.75rem 0.75rem;
}
.text-dropdown:hover {
 color: #112a6a;
}

.dropdown-menu {
    background-color: #f4f5f0;
}

.dropdown.mega-dropdown {
    position: static;
}

.dropdown-menu-container {
    width: 100%;
    border-radius: 0px;
    min-height: 400px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.05);
}

.navbar-expand-xl .navbar-nav .dropdown-menu {
    top: 95.5%;
}

.dropdown-menu-container ul {
    max-width: 1320px;
}

.img-mega-menu {
    height: 350px;
    width: 100%;
    object-fit: cover;
}

.menu-list {
  list-style-type: none !important;
  padding-left: 0;
  margin-left: 0;
}

.menu-list li {
  color: #000;           /* สี bullet + ข้อความ */
  margin-bottom: 15px;   /* ระยะห่างระหว่างแต่ละรายการ */
}

.menu-list li a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

.menu-list li a:hover {
  color: #555;
}

/* Backdrop ดำโปร่ง */
.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 998; /* ใต้เมนู */
  display: none;
}

/* เวลาเมนูเปิดให้แสดง */
.mega-backdrop.active {
  display: block;
}

/* ล็อคไม่ให้ body scroll */
.body-no-scroll {
  overflow: hidden;
}



.banner-text {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    padding-bottom: 3rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.banner-text h1 {
    font-weight: 500 !important;
}

.banner-text h5 {
    font-weight: 400 !important;
    line-height: 150%;
}

.fs-15 {
    font-size: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Safari บางเวอร์ชันจะยังมีปุ่ม fullscreen */
video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

/* ปิดปุ่ม PiP ด้วย */
video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
}

/* ปิด spinner/loading */
video::-webkit-media-controls-panel {
  background: transparent !important; /* ทำให้ overlay ไม่มีพื้นหลัง */
}

.g-4-5 {
    --bs-gutter-x: 2.1rem;
}
.gy-4-5 {
    --bs-gutter-y: 2rem;
}
.banner-img {
    height: 420px;
    width: 100%;
    object-fit: cover;
}
.banner-brand-img {
    height: 500px;
    width: 100%;
    object-fit: cover;
}
.bg-sub-banner-leather {
    width: 100%;
    min-height: 550px;
    height: 65vh;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 7rem auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.bg-sub-banner-leather * {
    color: white !important;
}
.bg-sub-banner-leather p {
    width: 35%;
    margin-top: 5px;
    margin-bottom: 0px;
}
.bg-sub-banner-leather.species {
    background-image: url('../images/photo_6.jpg');
}
.bg-sub-banner-leather.crust {
    background-image: url('../images/photo_6.jpg');
}
.bg-sub-banner-leather.finishing {
    background-image: url('../images/photo_6.jpg');
}
.bg-sub-banner {
    width: 100%;
    height: 100vh;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 7rem auto;
    display: flex;
    align-items: center;
}
.bg-sub-banner.river {
    background-image: url('../images/river/sub-banner.png');
    justify-content: flex-end;
    text-align: right;
}
.bg-sub-banner.rochelle {
    background-image: url('../images/rochelle/sub-banner.png');
    justify-content: flex-start;
}
.bg-sub-banner .text-title {
    color: white !important;
    font-weight: 600 !important;
    font-size: 48px;
}
.bg-sub-banner.river p {
    font-size: 24px;
    color: white !important;
}
.bg-sub-banner.rochelle p {
    width: 35%;
    color: white !important;
}
.banner-about-section {
    position: relative;
    min-height: 78vh;
    margin: 7rem auto 5rem auto;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ทำให้พื้นหลังค้าง */
    display: flex;
    align-items: center;
    color: #000 !important;
    text-align: center;
}
.banner-about-section.river {
    background-image: url("../images/river/bg-about.png");
}
.banner-about-section.rochelle {
    background-image: url("../images/rochelle/bg-about.png");
}
.blur-text-box {
    padding: 4rem;
    margin: auto;
    backdrop-filter: blur(10px);
    background: rgba(244, 245, 240, 0.3);
}
.blur-text-box p {
    margin-bottom: 2rem; /* ปรับระยะได้ เช่น 1rem, 2rem */
}
.blur-text-box p:last-child {
    margin-bottom: 0.5rem; /* ตัดช่องว่างของบรรทัดสุดท้าย */
}


.banner-news-img {
    height: 580px;
    width: 100%;
    object-fit: cover;
}

.banner-fp-section {
    position: relative;
    height: 75vh;
    background-image: url("../images/banner-bag.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ทำให้พื้นหลังค้าง */
    display: flex;
    align-items: center;
}

.blur-text-box-fp {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                linear-gradient(89.68deg, rgba(224, 219, 215, 0.5) 13.16%, rgba(101, 74, 69, 0.5) 93.82%);
    backdrop-filter: blur(15px);
    color: white !important;
}

#pills-tab .nav-item .nav-link {
    color: #A6A6A6;
    border-radius: 0;
    padding: 12px 0px;
    background: transparent;
}

#pills-tab .nav-item .nav-link:hover {
    font-weight: 600;
    color: #000;
}

#pills-tab .nav-item .nav-link.active {
    font-weight: 600;
    color: #000;
    border-bottom: 2px solid #000000;
}

.nav-link.dropdown-toggle {
    padding: 0.75rem 0.5rem;
}

.content-container {
    border-style: solid;
    border-color: #DBDBDB;
    position: relative;
}

.start-right .row .col-lg-6 {
    padding: 3rem 0;
}

.timeline-icon {
    color: black;
    position: absolute;
    top: 6rem;
}

.pagination .page-link {
    margin-bottom: 0;
    border-radius: 50px;
    font-size: 16px;
    color: #000;
    border: none;
    background-color: transparent;
}

.pagination .page-link:hover, .pagination .page-item.active .page-link {
    color: white;
    background: black;
}

.page-link.btn-prev, .page-link.btn-next {
    border-radius: 0;
}

.page-link.btn-prev:hover, .page-link.btn-next:hover {
    background-color: transparent;
    color: black;
}

.iti__selected-flag {
    top: 6px;
    height: 33px !important;
    border-radius: 4px;
    transition: .3s;
}
input#phone {
    padding-left: 47px !important;
  	top: 6px;
}
.intl-tel-input .flag-dropdown .selected-flag {
  padding: 11px 16px 11px 6px;
}
.intl-tel-input {
  z-index: 99;
  width: 100%;
}
.iti-flag {
  box-shadow: none;
}
.intl-tel-input .selected-flag:focus {
  outline: none;
}
.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
    background-color: rgba(0, 0, 0, 0.05);
}
.iti--allow-dropdown input{
    padding-right: 6px;
    padding-left: 52px;
    margin-left: 0;
}
.iti__country-list {
    border-radius: 4px !important;
    z-index: 999 !important;
    box-shadow: 0 0 16px 0 rgb(0 0 0 / 8%) !important;
    border: 1px solid #ececec !important;
}
.iti.iti--allow-dropdown {
    margin-bottom: .5rem;
    width: 100% !important;
    margin-top: -5px;
}

.contact-map {
    width: 100%;
    height: 500px;
}

.form-control, .form-select {
    border-radius: 0;
    background-color: transparent;
    border: 1px solid #CBCEBE;
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    padding: 0.65rem 0.75rem;
    font-size: 16px;
}
.form-control:focus, .form-select:focus {
    color: #212529;
    background-color: transparent;
    border-color: rgb(148, 153, 125);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(148, 153, 125, .25);
}
.form-floating label {
    font-size: 15px;
    padding: 1.5rem 0.75rem;
}
.form-floating>.form-control:not(:placeholder-shown)~label, .form-floating>.form-control:focus~label {
    transform: scale(.65) translateY(-.5rem) translateX(.15rem);
}
.form-control.file-upload-input {
    border-color: transparent;
    margin: 1.5rem auto;
}

input[type="file"] {
  display: none; /* ซ่อน input จริง */
}

.custom-file-upload {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000; /* พื้นหลังดำ */
  color: #fff;            /* ตัวอักษรขาว */
  border-radius: 0px;
  cursor: pointer;
  font-size: 14px;
  border: none;
  transition: background-color 0.3s;
}

.custom-file-upload:hover {
  background-color: #333; /* สีตอน hover */
}

.menu.d-xl-none * {
    font-size: 18px;
    padding: 10px;
    color: #000;
    text-decoration: none;
}
.menu{
    list-style: none;
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 100vh;
}
.btn-back {
    padding: 0px !important;
}

.submenu{
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #f4f5f0;
    width: 100%;
    transition: .5s all ease;
    transform: translate(-100%,0);
}
.submenu.show{
    transform: translate(0,0);
    height: 100vh;
}
.submenu li:not(:has(.btn-back)) {
    padding: 15px 10px !important;
}

/* Mobile submenu */
.menu { list-style: none; padding: 0; margin: 0; }
.menu > li > a { display: block; padding: 0.5rem 1rem; }

.submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  list-style: none;
  padding-left: 0;
}

.submenu.show {
  opacity: 1;
  max-height: 500px; /* ปรับให้พอเหมาะกับ submenu ของคุณ */
}


@media (min-width: 992px) {
  /* แถวที่เป็นคู่: สลับตำแหน่งซ้ายขวา */
  .switch-section-even:nth-child(even) .row {
    flex-direction: row-reverse;
  }

  .switch-section-odd:nth-child(odd):not(.start-right) .row, .start-right.switch-section-odd .row:nth-child(odd) {
    flex-direction: row-reverse;
  }

  .start-right.switch-section-odd .row:nth-child(odd) .content-container {
    border-width: 0px 1px 0px 0px;
    padding: 5rem 5.5rem 3rem 4rem;
    text-align: end;
  }

  .start-right.switch-section-odd .row:nth-child(even) .content-container {
    border-width: 0px 0px 0px 1px;
    padding: 5rem 4rem 3rem 5.5rem;
  }

 .switch-section-even .row:nth-child(even) .content-container .timeline-icon, .start-right.switch-section-odd .row:nth-child(odd) .content-container .timeline-icon {
    right: -8px;
  }

  .switch-section-even .row:nth-child(odd) .content-container .timeline-icon, .start-right.switch-section-odd .row:nth-child(even) .content-container .timeline-icon {
    left: -8px;
  }

  .start-right.switch-section-odd .row:nth-child(odd) .img-container {
    padding-left: 5.5rem;
  }

  .start-right.switch-section-odd .row:nth-child(even) .img-container {
    padding-right: 5.5rem;
  }

  .switch-section-odd:nth-child(even) .text-container-leather {
    padding-left: 4rem;
    padding-right: 0;
  }
  .switch-section-odd:nth-child(odd) .text-container-leather {
    padding-right: 4rem;
    padding-left: 0;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    .switch-section-odd.start-right.timeline .content-container {
        order: 2 !important;
    }
    .switch-section-odd.start-right.timeline .img-container {
        order: 1 !important;
    }
    .start-right.switch-section-odd .row:nth-child(odd) .content-container {
        border-width: 0px 1px 0px 0px !important;
        padding: 3rem 4rem 3rem 0rem !important;
        text-align: end;
    }

    .start-right.switch-section-odd .row:nth-child(even) .content-container {
        border-width: 0px 0px 0px 1px !important;
        padding: 3rem 0rem 3rem 4rem !important;
    }

    .start-right.switch-section-odd .row:nth-child(odd) .content-container .timeline-icon {
        right: -8px;
    }

    .start-right.switch-section-odd .row:nth-child(even) .content-container .timeline-icon {
        left: -8px;
    }

    .start-right.switch-section-odd .row:nth-child(odd) .img-container {
        padding: 0rem 0rem 0rem 4rem !important;
        border: none !important;
    }

    .start-right.switch-section-odd .row:nth-child(even) .img-container {
        padding: 0rem 4rem 0rem 0rem !important;
        border: none !important;
    }
    .start-right.switch-section-odd .row:first-of-type .content-container {
        margin-top: 0rem;
        padding: 3rem 4rem 3rem 0rem !important;
    }
    .start-right.switch-section-odd .row:first-of-type .content-container .timeline-icon {
        top: 5rem !important;
    }
    .start-right.switch-section-odd .row:first-of-type {
        margin-top: 4rem;
    }
}

/* iPad Pro แนวนอน (992px–1199.98px) */
@media (min-width: 1024px) and (max-width: 1440px) {
  .video-container {
    height: calc(100vh - 170px) !important;
  }
  .container.video-container {
    max-width: calc(100% - 65px) !important;
  }
  .container-wide {
    width: calc(100% - 100px) !important;
  }
  .section-1, .section-2 {
    width: 40% !important;
  }
  .img-cover-h-100, .container-fluid.h-100 {
    height: 95vh !important;
  }
  .container-fluid.h-100 {
    min-height: 95vh !important;
  }
  .text-container {
    padding: 0 6.5rem !important;
  }
  #capabilities .card-img {
    height: 460px !important;
  }
  .newsSwiper .card-img {
    height: 240px !important;
    }
    .banner-brand-img {
        height: 430px !important;
    }
    .img-container {
        padding: 0rem 0rem 0rem 4rem !important;
        border-width: 0px 0px 0px 2px !important;
        border-style: solid;
        border-color: #DBDBDB;
    }
    .content-container {
        padding: 6rem 0rem 1rem 4rem !important;
        border-width: 0px 0px 0px 2px !important;
    }
    .timeline-icon {
        top: 7rem !important;
        left: -0.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* CSS สำหรับ tablet */
    .footer-title {
        font-size: 16px !important;
    }
    .footer-subtitle {
        font-size: 15px !important;
    }
    .footer-menu a, .footer a, .footer p {
        font-size: 14px !important;
    }
    .container-wide {
        width: calc(100% - 30px) !important;
    }
    .video-container {
        height: calc(100vh - 150px) !important;
    }
    .container.video-container {
        max-width: calc(100% - 45px) !important;
    }
    .section-1, .section-2 {
        width: 60% !important;
    }
    .section-2 {
        margin: 6rem auto !important;
    }
    #capabilities .card-img {
        height: 360px !important;
    }
    .img-cover-h-100, .container-fluid.h-100 {
        height: auto !important;
    }
    .img-cover-h-100, .container-fluid.h-100 {
        min-height: 55vh !important;
    }
    .text-container {
        padding: 6rem 7rem !important;
    }
    .newsSwiper .card-img {
        height: 225px !important;
    }
    .contact-map {
        height: 400px !important;
    }
    .my-6 {
        margin: 5rem auto !important;
    }
    .my-8 {
        margin: 6rem auto !important;
    }
    .text-title {
        margin-bottom: 20px !important;
    }
    .banner-img {
        height: 350px !important;
    }
    .news-tab .card-img {
        height: 170px !important;
    }
    .news-tab .card {
        margin-bottom: 1.5rem !important;
    }
    .banner-news-img {
        height: 420px !important;
    }
    .section-70 {
        width: 85% !important;
    }
    .banner-brand-img {
        height: 30vh !important;
    }
    .banner-about-section {
        min-height: 65vh !important;
    }
    .bg-sub-banner {
        height: 65vh !important;
    }
    .bg-sub-banner .text-title {
        margin-bottom: 15px !important;
        font-size: 40px !important;
    }
    .g-35 {
    --bs-gutter-x: 0.75rem !important;
    --bs-gutter-y: 0.75rem !important;
    }
    .banner-text h1 {
        font-size: calc(1rem + 1.5vw) !important;
    }
    .bg-sub-banner-leather {
        height: 40vh !important;
        min-height: 350px !important;
    }
    .bg-sub-banner-leather p {
        width: 90% !important;
    }
    .text-container-leather {
        margin: 2rem auto 0.5rem auto !important;
    }

    .img-container {
        padding: 0rem 0rem 0rem 4rem !important;
        border-width: 0px 0px 0px 2px !important;
        border-style: solid;
        border-color: #DBDBDB;
    }
    .content-container {
        padding: 6rem 0rem 1rem 4rem !important;
        border-width: 0px 0px 0px 2px !important;
    }
    .timeline-icon {
        top: 6rem !important;
        left: -0.5rem !important;
    }
    .text-container-sm {
        padding: 0rem 2rem;
    }
    .container-md-100 {
        max-width: 100%;
    }
    .container-md-100.switch-section-odd:nth-child(odd) .row, .container-md-100.switch-section-even:nth-child(even) .row{
        flex-direction: row-reverse;
    }
    .section-65 {
        width: 75%;
    }
    .section-60 {
        width: 70%;
    }
    .video-farm {
        height: 500px;
    }
    .switch-section-odd.start-right.timeline .content-container {
        order: 1;
    }
    .switch-section-odd.start-right.timeline .img-container {
        order: 2;
    }
    .timeline .row:first-of-type .content-container {
        margin-top: 2rem;
        padding: 3rem 0rem 1rem 3rem !important;
        border-width: 0px 0px 0px 2px !important;
    }
    .timeline .row:first-of-type .content-container .timeline-icon {
        top: 3rem !important;
        left: -0.5rem !important;
    }
    .navbar-collapse {
        position: fixed; /* ทำให้กางเต็มจอ */
        top: 73px;
        left: 0;
        width: 100%;
        height: 100vh;
        padding-top: 5px;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
        background-color: #f4f5f0;
        z-index: 99;
    }

    .navbar-collapse.show {
        transform: scaleY(1);
        overflow: hidden;
    }

    body.navbar-open {
        overflow: hidden;
    }
    .navbar-nav {
        padding: 5px 40px !important;
    }

    .top-menu.navbar .nav-link {
        font-size: 18px;
    }
    .nav-link.dropdown-toggle {
        display: flex;
        justify-content: space-between;
    }
    .nav-link.dropdown-toggle::after {
        content: "\F285";
        display: inline-block;
        position: static;
        width: 0;
        height: 0;
        margin-left: auto;
        padding-right: 10px;
        border: 0px;
    }
}

@media (max-width: 767.98px) {
    /* CSS สำหรับ mobile */
    p {
        font-size: 15px !important;
        line-height: 26px !important;
    }
    .fs-48 {
        font-size: 36px !important;
    }
    .bg-sub-banner .text-title {
        font-size: 25px !important;
    }
    .pagination .page-link {
        font-size: 15px !important;
    }
    .form-control, .form-select, .form-floating label {
        font-size: 15px !important;
    }
    .megamenu .container {
        padding: 0.5rem !important;
    }
    .container-wide {
        width: calc(100% - 30px) !important;
    }
    .top-menu.navbar {
        --bs-navbar-padding-x: 15px !important;
    }
    .container.video-container {
        max-width: calc(100% - 30px) !important;
    }
    .video-container {
        /* height: calc(100vh - 90px) !important; */
        height: 200px !important;
    }
    .section-1, .section-2 {
        width: 80% !important;
    }
    .img-cover-h-100 {
        height: 60vh !important;
    }
    .text-container {
        padding: 6rem 1.5rem !important;
    }
    #capabilities .card-img {
        height: 480px !important;
    }
    .newsSwiper .card-img {
        height: 225px !important;
    }
    .g-35 {
    --bs-gutter-x: 0.75rem !important;
    --bs-gutter-y: 0.75rem !important;
    }
   .g-4-5 {
    --bs-gutter-x: 0rem !important;
    --bs-gutter-y: 1rem;
    }
    .contact-map {
        height: 370px !important;
    }
    .my-6 {
        margin: 4rem auto !important;
    }
    .my-8 {
        margin: 5rem auto !important;
    }
    .banner-img {
        height: 70vh !important;
    }
    .news-tab .card-img {
        height: 140px !important;
    }
    .news-tab .card {
        margin-bottom: 1rem !important;
    }
    .banner-news-img {
        height: 250px !important;
    }
    .footer .small {
        font-size: 13px !important;
    }
    .section-70 {
        width: 100% !important;
    }
    .news-heading {
        margin: 3rem auto 3rem auto;
    }
    .text-title {
        margin-bottom: 5px !important;
    }
    .section-2 {
        margin: 7rem auto !important;
    }
    .banner-brand-img {
        height: 25vh !important;
    }
    .bg-sub-banner {
        height: 60vh !important;
    }
    .blur-text-box {
        padding: 1.5rem !important;
    }
    .bg-sub-banner.rochelle p {
        width: 85% !important;
    }
    .banner-text * {
        text-align: center !important;
    }
    .banner-text h5 {
        line-height: 120%;
        font-size: 16px !important;
    }
    .bg-sub-banner-leather {
        height: 50vh !important;
        min-height: 300px !important;
    }
    .bg-sub-banner-leather p {
        width: 100% !important;
    }
    .text-container-leather {
        margin: 2rem auto 0.5rem auto !important;
    }
    .text-container-leather-center {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
    .img-container {
        padding: 0rem 0rem 0rem 3rem !important;
        border-width: 0px 0px 0px 2px !important;
        border-style: solid;
        border-color: #DBDBDB;
    }
    .content-container {
        padding: 4rem 0rem 1rem 3rem !important;
        border-width: 0px 0px 0px 2px !important;
    }
    .timeline-icon {
        top: 4.25rem !important;
        left: -0.5rem !important;
    }
    .text-container-sm {
        padding: 4rem 1.5rem 0rem 1.5rem;
    }
    .section-65 {
        width: 100%;
    }
    .card-faq {
        padding: 0.6rem 0.5rem;
    }
    .card-faq * {
        text-align: start !important;
    }
    .section-60 {
        width: 90%;
    }
    .video-farm {
        height: 240px;
    }
    .play-btn {
        width: 80px;
        height: 80px;
        border: none;
        border: 3px solid #fff;
    }
    .rochelleSwiper {
        width: 340px;
    }
    #capabilities {
        margin: 0rem auto;
    }
    #rochelle {
        margin-bottom: 3rem;
    }
    #products {
        margin: 4rem auto !important;
    }
    .switch-section-odd.start-right.timeline .content-container {
        order: 1;
    }
    .switch-section-odd.start-right.timeline .img-container {
        order: 2;
    }
    .switch-section-odd.start-right.timeline .row {
        width: 95%;
        margin: auto;
    }
    .timeline .row:first-of-type .content-container {
        margin-top: 2rem;
        padding: 2rem 0rem 1rem 3rem !important;
        border-width: 0px 0px 0px 2px !important;
    }
    .timeline .row:first-of-type .content-container .timeline-icon {
        top: 2rem !important;
        left: -0.5rem !important;
    }
    .navbar-collapse {
        position: fixed; /* ทำให้กางเต็มจอ */
        top: 73px;
        left: 0;
        width: 100%;
        height: 100vh;
        padding-top: 5px;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
        background-color: #f4f5f0;
        z-index: 99;
    }

    .navbar-collapse.show {
        transform: scaleY(1);
        overflow: hidden;
    }

    body.navbar-open {
        overflow: hidden;
    }

    .top-menu.navbar .nav-link {
        font-size: 18px;
    }
    .nav-link.dropdown-toggle {
        display: flex;
        justify-content: space-between;
    }
    .nav-link.dropdown-toggle::after {
        content: "\F285";
        display: inline-block;
        position: static;
        width: 0;
        height: 0;
        margin-left: auto;
        padding-right: 10px;
        border: 0px;
    }
    .dropdown-menu.list{
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        background-color: #F00;
        width: 100%;
        transition: .5s all ease;
        transform: translate(-100%,0);
    }
    .dropdown-menu.list.show{
        transform: translate(0,0);
    }
}
