/********** Template CSS **********/
:root {
    --primary: #552f20;
    --light: #F5F5F5;
    --dark: #353535;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: 'K2D','Roboto', sans-serif;
}
.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

html {
  scroll-behavior: smooth;
}
#aboutus, #service,#product {
  scroll-margin-top: 50px;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-light .navbar-nav .nav-link a:hover,
.navbar-light .navbar-nav .nav-link a.active {
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item img.logo-header {
        position: relative;
        max-width: 500px;
        width: auto;
        object-fit: contain;
        margin: 0 auto;
    }
@media (max-width: 1024px) {
    /* .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    } */

    .header-carousel .owl-carousel-item img.logo-header {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    /* .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    } */

    .header-carousel .owl-carousel-item img.logo-header {
        max-width: 320px;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

@media (max-width: 420px) {
    .header-carousel .owl-carousel-item img.logo-header {
        max-width: 180px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    /* border: 1px solid #FFFFFF; */
    font-size: 12px;
    transition: .5s;
}

/* .header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
} */

/* .header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* .header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
} */

/* .header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
} */

/* จัดการคอนเทนเนอร์ของจุดให้อยู่กึ่งกลาง */
.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ปรับแต่งลักษณะของจุด (Dot) */
.header-carousel.owl-carousel .owl-dot {
  display: inline-block;
  zoom: 1;
  outline: none; /* ลบเส้นขอบเวลาคลิก */
}

.header-carousel.owl-carousel .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px 7px;
  background: #552f20; /* สีจุดปกติ */
  display: block;
  -webkit-backface-visibility: visible;
  transition: opacity 200ms ease;
  border-radius: 50%; /* ทำให้เป็นวงกลม */
}

/* เปลี่ยนสีเมื่อจุดนั้นถูกเลือก (Active) หรือโดน Hover */
.header-carousel.owl-carousel .owl-dot.active span, 
.header-carousel.owl-carousel .owl-dot:hover span {
  background: #fff; /* สีจุดตอนทำงาน */
}

.page-header {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title h1 {
    position: relative;
    display: inline-block;
    padding: 0 60px;
}

.section-title.text-start h1 {
    padding-left: 0;
}

/* .section-title h1::before,
.section-title h1::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 5px;
    bottom: 0;
    background: var(--dark);
} */

.section-title h1::before {
    left: 0;
}

.section-title h1::after {
    right: 0;
}

.section-title.text-start h1::before {
    display: none;
}

@media (max-width: 768px) {
    .section-title h1 {
        padding: 0 50px;
    }
}
@media (max-width: 425px)  {
    .section-title h1 {
        padding: 0 20px;
    }   
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 1060px) / 2) + .35rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item img {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.1);
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    background: rgba(53, 53, 53, .7);
    transition: .5s;
}

.portfolio-item:hover .portfolio-overlay {
    width: 100%;
    height: 100%;
    left: 0;
}

.portfolio-item .portfolio-overlay .btn {
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay .btn {
    opacity: 1;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 38px;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover .team-social {
    left: 0;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    border: 5px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

.hidden-buttons{
    transition: opacity 1s ease-out;
    opacity: 0;
    height: 0;
    overflow: hidden;
    display: none;
}
.show-bottom-fixed-buttons{
    opacity: 1;
    height: auto;
}
.btn-primary.back-to-top:hover{
    color: var(--light);
    background-color: var(--dark);
    border-color: var(--dark);
}
.top-title {
    line-height: 1.4;
}

.tooltip-main-text{
    position: fixed;
    bottom: 50px;
    right: 95px;
    z-index: 9999;
    background: var(--light);
    width: 170px;
    height: 50px;
    color: #ae4f2a;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    align-content: center;
    text-align: center;
    justify-content: center;
    /* box-shadow: var(--secondary) 2px 3px 3px 0px; */
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transform: translateY(20px);
}
.tooltip-main-text.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tooltip-triangle:after, .tooltip-triangle:before {
    content: "";
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    position: absolute;
}
.tooltip-triangle-right:after, .tooltip-triangle-right:before {
    right: -15px;
}
.tooltip-triangle:before {
    bottom: 15px;
}
.tooltip-triangle:before {
    border-left: 21px solid var(--light) !important;
}
.bottom-buttons{
    position: fixed;
    bottom: 50px;
    right: 25px;
    z-index: 9999;
    background: #ae4f2a;
    height: 50px;
    width: 50px;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    align-content: center;
    text-align: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transform: translateY(20px);
}
.bottom-buttons.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.bottom-button .tooltip{
    font-size: 1rem;
    position: absolute !important;
    top: -20px !important;
    right: 75px;
    z-index: 3 !important;
    background: var(--light);
    width: 170px;
    height: 50px;
    color: #552f20;
    border-radius: 25px;
    opacity: 0 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    transition: 0s !important;
    align-items: center;
    align-content: center;
    text-align: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.bottom-button:hover .tooltip{
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: all 0.4s ease !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}
.bottom-buttons i{
    font-size: 26px;
}
.call {
    bottom: 110px;
    background: #ffaf00;
}
/* .line {
    bottom: 170px;
    background: #06C755;
} */
.messenger{
    bottom: 170px;
    background: #1877F2;
}
.tiktok{
    bottom: 230px;
    background: #010101;
}
.instagram{
    bottom: 290px;
    background: #E1306C;
}
.maps{
    bottom: 350px;
    background: #de4228;
}

.photo-badge {
    position: absolute;
    bottom: 15px;  
    right: 15px;    /* ระยะห่างจากด้านขวา */
    background-color: rgba(0, 0, 0, 0.6); /* สีดำโปร่งแสง */
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;    /* ให้อยู่เหนือรูปภาพ */
    pointer-events: none; /* เพื่อให้เวลากดที่ Badge แล้วยังติด Link ของรูปอยู่ */
    display: flex;
    align-items: center;
    gap: 5px;       /* ระยะห่างระหว่างไอคอนกับตัวเลข */
}
.fake-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  color: #333;
  font-weight: bold;
}
.product-slider-container {
    position: relative; /* เพื่อให้ลูกศรและตัวเลขเทียบตำแหน่งกับกรอบนี้ */
}

/* ปิด transition ของรูปภาพทั้งหมดในสไลด์ */
.product-slider-container .owl-carousel .owl-item img {
    transition: none !important;
    transform: none !important; /* ป้องกันการซูม */
}

/* ปิดเอฟเฟกต์เฉพาะตอน Hover */
.product-slider-container .owl-carousel .owl-item img:hover {
    transform: none !important;
    opacity: 1 !important;
}

/* ปรับตำแหน่งตัวเลขขวาล่าง */
.product-slider-container .slider-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    z-index: 10;
}

/* ปรับแต่งปุ่มลูกศร (Next/Prev) */
.product-slider-container .owl-nav .owl-prev,
.product-slider-container .owl-nav .owl-next {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #333;
    font-weight: bold;
}
.product-slider-container .owl-nav .owl-prev.disabled,
.product-slider-container .owl-nav .owl-next.disabled {
    display: none !important;
}

.product-slider-container.owl-nav .owl-next {
    right: 10px;
}

.product-slider-container .owl-nav .owl-prev {
    left: 10px;
}


/* ===== WOOD SELECTION ===== */
.wood-header-desc { color: var(--text-mid); font-size: 15px; line-height: 1.8; font-weight: 300; }

.wood-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: 300px 260px;
    gap: 16px;
} 
.wood-right-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    grid-template-rows: 300px 260px;
    gap: 16px;
}
@media (max-width: 991.98px) {
    .wood-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 220px;
    }
}
@media (max-width: 767.98px) {
    .wood-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 260px;
    }
}
@media (max-width: 420px) {
    .wood-grid {
        grid-template-rows: 260px 220px;
    }
}
.wood-card, .wood-right-card {
  position: relative;
  /* border-radius: 12px; */
  overflow: hidden;
}
.wood-card .card-img-custom, .wood-right-card .card-img-custom {
  width:100%; height:100%;
  /* background-size: cover; background-position: center; */
}
.wood-card:nth-child(1) { grid-row: 1 / 3; }
.wood-card:nth-child(1) .card-img-custom { background: linear-gradient(160deg,#8b6914 0%,#5a3e10 40%,#3d2a0c 100%); }
.wood-card:nth-child(2) .card-img-custom { background: linear-gradient(160deg,#a0785a 0%,#7a5235 100%); }
.wood-card:nth-child(3) .card-img-custom { background: linear-gradient(160deg,#c4a882 0%,#9a7850 100%); }
.wood-card:nth-child(4) .card-img-custom { background: linear-gradient(160deg,#6b4226 0%,#4a2d18 100%); }
.wood-card:nth-child(5) .card-img-custom { background: linear-gradient(160deg,#b89878 0%,#8a6a48 100%); }


.wood-right-card:nth-child(1) .card-img-custom { background: linear-gradient(160deg,#8b6914 0%,#5a3e10 40%,#3d2a0c 100%); }
.wood-right-card:nth-child(2) .card-img-custom { background: linear-gradient(160deg,#a0785a 0%,#7a5235 100%); }
.wood-right-card:nth-child(3) .card-img-custom { background: linear-gradient(160deg,#c4a882 0%,#9a7850 100%); }
.wood-right-card:nth-child(4) .card-img-custom { background: linear-gradient(160deg,#6b4226 0%,#4a2d18 100%); }
.wood-right-card:nth-child(5) { grid-row: 1 / 3; }
.wood-right-card:nth-child(5) .card-img-custom { background: linear-gradient(160deg,#b89878 0%,#8a6a48 100%); }


.card-img-custom video {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* สำคัญมาก: ทำให้วิดีโอเต็มกรอบโดยไม่เบี้ยว */
    display: block;
}

.card-img-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* ทำให้ภาพเต็มกรอบโดยไม่เบี้ยว */
    display: block;
}

/* คอนเทนเนอร์หลัก */
.card-img-custom {
    position: relative;
    cursor: pointer;
}

/* ชั้น Overlay ที่คลุมวิดีโอ */
.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;     /* จัดปุ่มไว้กลางแนวตั้ง */
    justify-content: center;  /* จัดปุ่มไว้กลางแนวนอน */
    background: rgba(0, 0, 0, 0.2); /* ใส่พื้นหลังจางๆ ให้วิดีโอเด่นขึ้น */
    transition: all 0.3s;
}

/* ตัววงกลมปุ่ม Play */
.play-circle {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* วาดรูปสามเหลี่ยม Play ด้วย CSS */
.play-circle::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px; /* ขนาดสามเหลี่ยม */
    border-color: transparent transparent transparent #333; /* สีของลูกศร */
    margin-left: 5px; /* ชดเชยระยะให้ดูอยู่กลางวงกลมจริงๆ */
}

/* เอฟเฟกต์ตอนเอาเมาส์วาง */
.card-img-custom:hover .play-circle {
    transform: scale(1.1);
    background-color: #fff;
}

.card-overlay {
  position: absolute; inset: 0;
  /* background: linear-gradient(to top, rgba(30,20,16,0.78) 0%, transparent 50%); */
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}
.card-tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-gold); margin-bottom: 5px;
}
.card-title-custom {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700; color: #fff;
}

.video-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(30,20,16,0.72);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: 20px;
  display: flex; align-items: center; gap: 6px;
}
.video-badge .play-icon {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
}
.video-badge .play-icon::after {
  content: '';
  border-left: 5px solid #fff;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  margin-left: 2px;
}


/* กำหนดระยะห่างซ้าย-ขวา */
.slick-item {
    padding: 0 10px; /* จะได้ช่องว่างระหว่างรูปทั้งหมด 20px (ซ้าย 10 + ขวา 10) */
    outline: none;   /* ลบเส้นขอบสีฟ้าเวลาคลิกรูป */
}

/* ปรับแต่งรูปภาพข้างใน */
.item-inner img {
    width: 100%;
    display: block;
}
/* เปลี่ยนสีลูกศร ซ้าย-ขวา */
.slick-prev:before, .slick-next:before {
    color: #555 !important; /* เปลี่ยนเป็นสีเทาเข้มหรือสีที่คุณชอบ */
    font-size: 40px;        /* ปรับขนาดให้ใหญ่ขึ้น */
}

/* ปรับตำแหน่งลูกศรซ้าย */
.slick-prev {
    left: -35px;
    z-index: 1;
}

/* ปรับตำแหน่งลูกศรขวา */
.slick-next {
    right: -35px;
    z-index: 1;
}

/* กำหนดความสูงให้พอดีกับหน้าจอแต่ละขนาด */
.header-carousel .owl-carousel-item {
    height: 50vh; /* มือถือ: ให้สูงแค่ครึ่งจอพอ */
    min-height: 300px; /* กันไม่ให้เตี้ยจนเกินไปจนข้อความล้น */
}

/* หน้าจอขนาดใหญ่ (Tablet/Laptop ขึ้นไป) */
@media (min-width: 992px) {
    .header-carousel .owl-carousel-item {
        height: 70vh; 
    }
}

/* บังคับให้รูปภาพคลุมพื้นที่ทั้งหมดโดยไม่เสียสัดส่วน */
.header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* รูปจะถูกตัดส่วนที่เกินออก แทนการบีบภาพ */
}
@media (max-width:425px) {
    /* .header-carousel .owl-carousel-item img {
        object-fit: contain;
    } */
    .header-carousel .owl-carousel-item {
        height: auto;
        min-height: 32vh; 
    }
    .header-carousel .owl-nav {
        bottom: 0px;
    }
    .header-carousel .owl-dots {
        height: 25px;
        bottom: 10px;
    }
    .header-carousel.owl-carousel .owl-dot span {
        width: 8px;
        height: 8px;
    }
    nav.navbar h2 {
        font-size: 1.4rem;
    }
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
}

