/********** Template CSS **********/

:root {

    --primary: #88B44E;

    --secondary: #FB9F38;

    --light: #F5F8F2;

    --dark: #252C30;

}



body {

    font-family: Phetsarath OT, sans-serif;

    
   
}



.back-to-top {

    position: fixed;

    display: none;

    right: 30px;

    bottom: 30px;

    z-index: 99;

}





.fw-medium {

    font-weight: 600;

}



.fw-bold {

    font-weight: 700;

}



.fw-black {

    font-weight: 900;

}





/*** 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 {

    transition: .5s;

    font-weight: 500;

}



.btn-primary,

.btn-outline-primary:hover {

    color: var(--light);

}



.btn-secondary,

.btn-outline-secondary:hover {

    color: var(--dark);

}



.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 ***/

.sticky-top {

    top: -150px;

    transition: .5s;

}



.navbar .navbar-brand {

    position: absolute;

    padding: 0;

    width: 170px;

    height: 135px;

    top: 0;

    left: 0;

}


.navbar .navbar-nav .nav-link {

    margin-right: 30px;

    padding: 25px 0;

    color: #575757;

    font-weight: 600;

    text-transform: uppercase;

    outline: none;
    /* font-size: 16px; */

}

.navbar-brand {
  margin-top: 10px; /* ລອງເລີ່ມທີ່ 10px ແລ້ວປັບເພີ່ມ/ຫຼຸດໄດ້ */
  margin-left: -100px;
}




.navbar .navbar-nav .nav-link:hover,

.navbar .navbar-nav .nav-link.active {

    color: var(--primary);

}



.navbar .dropdown-toggle::after {

    border: none;

    content: "\f107";

    font-family: "Font Awesome 5 Free";

    font-weight: 900;

    vertical-align: middle;

    margin-left: 8px;

}



@media (max-width: 991.98px) {
    .navbar .navbar-brand {
        position: relative; /* ให้ขยับตามตำแหน่งปกติ */
        width: 120px; /* ปรับขนาดโลโก้ */
        height: auto;
        margin: 5px 0 5px 10px; /* เว้นด้านซ้ายเล็กน้อย */
        display: inline-block;
        left: 0;
    }

    .navbar-toggler {
        position: absolute;
        right: 10px; /* ดันปุ่มเมนูไปขวาสุด */
        top: 15px;
    }

    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 60px; /* เผื่อพื้นที่ให้โลโก้ด้านบน */
        border-top: 1px solid #EEEEEE;
    }
}





@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;

    }

}



/* search-container */

.search-container {

    display: flex;

    border: 1px solid #ccc;

    padding: 3px;

    border-radius: 50px;

}



input[type="text"] {

    flex: 1;

    padding: 10px;

    border: none;

    border-radius: 50px;

}



button {

    padding: 10px 20px;

    background-color: #4CAF50;

    color: white;

    border: none;

    cursor: pointer;

    border-radius: 50px;

}



.translate {

    display: flex;

    justify-content: center; /* ຈັດໃຫ້ກາງໜ້າ */

    gap: 15px; /* ຊ່ອງວ່າງລະຫວ່າງປຸ່ມ */

}



.nav-link {

    text-decoration: none;

    color: black;

    padding: 5px 10px;

    border-radius: 5px;

    transition: background-color 0.2s;

    

}



.nav-link:hover {

    color: var(--primary); /* ສີພື້ນຫຼັງເວລາເອົາເມົາສຊີ້ */

}





/* ຈັດໃຫ້ Responsive ເວລາຈໍນ້ອຍ */

@media (max-width: 600px) {

    .nav-link {

        flex: 1 1 100%; /* ທຳໃຫ້ປຸ່ມໃຫຍ່ເຕັມຫນ້າຈໍ */

        text-align: left;

    } 



}



/*** Header ***/

.carousel-caption {

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    display: flex;

    align-items: center;

    /* background: rgba(236, 237, 234, 0.7); */

    z-index: 1;

}



.carousel-control-prev,

.carousel-control-next {

    width: 15%;

}



.carousel-control-prev-icon,

.carousel-control-next-icon {

    width: 3.5rem;

    height: 3.5rem;

    border-radius: 3.5rem;

    background-color: var(--dark);

    border: 15px solid var(--dark);

}



@media (max-width: 768px) {

    #header-carousel .carousel-item {

        position: relative;

        min-height: 450px;

    }

    

    #header-carousel .carousel-item img {

        position: absolute;

        width: 100%;

        height: 100%;

        object-fit: cover;

    }

}



.page-header {

    background: url(../img/bg_snk2.png ) center center no-repeat;

    background-size: cover;

}



.page-header .breadcrumb-item+.breadcrumb-item::before {

    color: var(--light);

}



.page-header .breadcrumb-item,

.page-header .breadcrumb-item a {

    font-size: 18px;

    color: var(--light);

}



/*** Section Title ***/

.section-title {

    position: relative;

    margin-bottom: 3rem;

    padding-bottom: 2rem;

}



.section-title::before {

    position: absolute;

    content: "";

    width: 50%;

    height: 2px;

    bottom: 0;

    left: 0;

    background: var(--primary);

}



.section-title::after {

    position: absolute;

    content: "";

    width: 28px;

    height: 28px;

    bottom: -13px;

    left: calc(25% - 13px);

    background: var(--dark);

    border: 10px solid #FFFFFF;

    border-radius: 28px;

}



.section-title.text-center::before {

    left: 25%;

}



.section-title.text-center::after {

    left: calc(50% - 13px);

}





/*** Products ***/

.product {

    background: linear-gradient(rgba(136, 180, 78, .1), rgba(136, 180, 78, .1)), url(../img/bg_snk2.png) left bottom no-repeat;

    background-size: auto;

}

.products {
    background: none !important;
    background-color: #f8f9fa !important; /* ສີພື້ນຫຼັງອ່ອນໆ */
}


.product-carousel .owl-nav {

    display: flex;

    justify-content: center;

    margin-top: 30px;

}



.product-carousel .owl-nav .owl-prev,

.product-carousel .owl-nav .owl-next {

    margin: 0 10px;

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #FFFFFF;

    background: var(--primary);

    border-radius: 55px;

    box-shadow: 0 0 45px rgba(0, 0, 0, .15);

    font-size: 25px;

    transition: .5s;

}



.product-carousel .owl-nav .owl-prev:hover,

.product-carousel .owl-nav .owl-next:hover {

    background: #FFFFFF;

    color: var(--primary);

}





/*** About ***/

.video {

    background: linear-gradient(rgba(136, 180, 78, .85), rgba(136, 180, 78, .85)), url(../img/Bbakg.jpg) center center no-repeat;

    background-size: cover;

}



.btn-play {

    position: relative;

    display: block;

    box-sizing: content-box;

    width: 65px;

    height: 75px;

    border-radius: 100%;

    border: none;

    outline: none !important;

    padding: 28px 30px 30px 38px;

    background: #FFFFFF;

}



.btn-play:before {

    content: "";

    position: absolute;

    z-index: 0;

    left: 50%;

    top: 50%;

    transform: translateX(-50%) translateY(-50%);

    display: block;

    width: 120px;

    height: 120px;

    background: #FFFFFF;

    border-radius: 100%;

    animation: pulse-border 1500ms ease-out infinite;

}



.btn-play:after {

    content: "";

    position: absolute;

    z-index: 1;

    left: 50%;

    top: 50%;

    transform: translateX(-50%) translateY(-50%);

    display: block;

    width: 120px;

    height: 120px;

    background: #FFFFFF;

    border-radius: 100%;

    transition: all 200ms;

}



.btn-play span {

    display: block;

    position: relative;

    z-index: 3;

    width: 0;

    height: 0;

    left: 13px;

    border-left: 40px solid var(--primary);

    border-top: 28px solid transparent;

    border-bottom: 28px solid transparent;

}


@keyframes pulse-border {

    0% {

        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);

        opacity: 1;

    }



    100% {

        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);

        opacity: 0;

    }

}



.modal-video .modal-dialog {

    position: relative;

    max-width: 800px;

    margin: 60px auto 0 auto;

}



.modal-video .modal-body {

    position: relative;

    padding: 0px;

}



.modal-video .close {

    position: absolute;

    width: 30px;

    height: 30px;

    right: 0px;

    top: -30px;

    z-index: 999;

    font-size: 30px;

    font-weight: normal;

    color: #FFFFFF;

    background: #000000;

    opacity: 1;

}



.image-link img {

    width: 100%;

    height: auto;

    transition: transform 0.3s ease; /* Smooth zoom effect */

    border-radius: 8px; /* Optional: round the corners */

}



/* Zoom effect on hover */

.image-link img:hover {

    transform: scale(1.1); /* Scale image to 110% */

}



/* Set a max-width for responsive design */

.image-link {

    max-width: 300px; /* You can adjust the max width as needed */

    display: block;

    margin: auto; /* Center the image */

}



/* body {

    font-family: Arial, sans-serif;

    margin: 0;

    padding: 0;

    display: flex;

    justify-content: center;

    background-color: #f8f8f8;

} */

.container-text {

    max-width: 1200px;

    width: 100%;

    padding: 20px;

}

.main-content {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: space-between;

}

.image-section {

    flex: 1;

    padding: 10px;

}

.image-section img {

    width: 100%;

    height: auto;

    border-radius: 8px;

}

.text-section {

    flex: 1;

    padding: 10px;

}

.text-section h2 {

    font-size: 2em;

    margin-bottom: 20px;

    color: var(--primary);

}

.text-section p {

    line-height: 1.6;

    color: #555;

}

.features {

    display: flex;

    flex-wrap: wrap;

    justify-content: space-around;

    margin-top: 20px;

}



.feature-item:hover {

    transform: translateY(-10px) ;

    box-shadow: 0 8px 16px rgba(0, 128, 0, 0.2);

}



.feature-item {

    flex: 1 1 200px;

    max-width: 220px;

    text-align: center;

    padding: 20px;

    background-color: #fff;

    margin: 10px;

    border-radius: 8px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

.feature-item img {

    width: 50px;

    height: 50px;

    margin-bottom: 10px;

}

.feature-item h4 {

    font-size: 1.2em;

    color: #333;

    margin-bottom: 10px;

}

.feature-item p {

    color: #666;

    font-size: 0.9em;

}



/* Responsive Design */

@media (max-width: 768px) {

    .main-content {

        flex-direction: column;

    }

    .features {

        flex-direction: column;

        align-items: center;

    }

}



/*** Factory ***/

.store-item .store-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: rgba(138, 180, 78, .3);

    opacity: 0;

    transition: .5s;

}



.store-item:hover .store-overlay {

    opacity: 1;

}



/* Container for the entire section */

.section-container {

    text-align: center;

    padding: 20px;

}



/* ຂະໜາດຂອງໂຮງງານ */

.section-container h1 {

    font-family: 'Phetsarath OT', sans-serif;

    color: #8AA042; /* Primary color */

    font-size: 1.5em;

    margin-bottom: 5px;

}



.section-container h2 {

    font-family: 'Phetsarath OT', sans-serif;

    font-weight: bold;

    font-size: 2em;

    color: #555; /* Darker text color for contrast */

    margin-bottom: 20px;

}



/* Horizontal line styling */

.section-container .divider {

    width: 50px;

    height: 2px;

    background-color: #8AA042;

    margin: 10px auto;

}



/* Image container styling */

.image-container {

    display: flex;

    justify-content: center;

    gap: 30px; /* Space between images */

    flex-wrap: wrap;

}



/* Box for each image and text */

.image-box {

    text-align: center;

    width: 500px; /* Default width */

    max-width: 100%;

}



.image-box img {
    width: 100%;
    height: 300px; /* ກຳນົດຄວາມສູງຄົງທີ່ */
    object-fit: cover; /* ຮັກສາອັດຕາສ່ວນຮູບ ແລະ ຕັດສ່ວນເກີນ */
    border-radius: 15px;

}



/* Title and description */

.image-box h3 {

    font-family: 'Phetsarath OT', sans-serif;

    color: #8AA042; /* Primary color */

    font-size: 1.1em;

    margin-top: 10px;

}



.image-box p {

    font-family: 'Phetsarath OT', sans-serif;

    font-size: 0.9em;

    color: #666; /* Grey text color */

    line-height: 1.5;

}



/* Button styling */

.button-container {

    margin-top: 30px;

}



.button-container a {

    background-color: var(--primary);

    color: white;

    padding: 10px 20px;

    font-size: 1em;

    border: none;

    border-radius: 50px;

    cursor: pointer;

}



.button-container a:hover {

  color: #0e0e0e;

}



/* Responsive Design */

@media (max-width: 768px) {

    .image-container {

        flex-direction: column; /* Stack images on smaller screens */

        align-items: center;

    }



    .image-box {

        width: 90%; /* Full width on mobile */

    }

}







/* factory */

.text-h {

    text-align: center;

}



.container-box {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

}



.card {

    width: 300px;

    margin: 20px;

    border: 1px solid #ccc;

    padding: 20px;

    box-sizing: border-box;

}



.card img {

    max-width: 100%;

}



/* Responsive Design */

@media (max-width: 768px) {

    .card {

        width: 100%;

    }

}





/*** Contact ***/

.contact .btn-square {

    width: 100px;

    height: 100px;

    border: 20px solid var(--light);

    background: var(--primary);

    border-radius: 50px;

}





/*** Testimonial ***/

.testimonial {

    background: linear-gradient(rgba(136, 180, 78, .85), rgba(136, 180, 78, .85)), url(../img/Bbakg.jpg) center center no-repeat;

    background-size: cover;

}



.testimonial-item {

    margin: 0 auto;

    max-width: 500px;

    text-align: center;

    background: #FFFFFF;

    border: 20px solid var(--primary);

}



.testimonial-item img {

    width: 200px !important;

    height: 130px !important;

    border-radius: none;

}



.testimonial-carousel .owl-dots {

    margin-top: 35px;

    display: flex;

    align-items: flex-end;

    justify-content: center;

}



.testimonial-carousel .owl-dot {

    position: relative;

    display: inline-block;

    margin: 0 5px;

    width: 15px;

    height: 15px;

    background: var(--primary);

    border-radius: 15px;

    transition: .5s;

}



.testimonial-carousel .owl-dot.active {

    width: 30px;

    background: var(--dark);

}



.modal-body {

    display: flex;

    justify-content: center;

    align-items: center;

}



.video-container {

    position: relative;

    width: 100%;

    padding-bottom: 56.25%; /* 16:9 aspect ratio */

    height: 0;

}



.video-container video {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

}



/* ການພັດທະນາ */

.box-container {

    max-width: 1200px;

    width: 100%;

}

.header {

    text-align: center;

    margin-bottom: 20px;

}

.header h2 {

    font-size: 2em;

    color: #2d2d2d;

}

.main-content {

    display: flex;

    flex-wrap: wrap;

}

.image-section {

    flex: 1;

    padding: 10px;

}

.image-section img {

    width: 100%;

    height: auto;

    border-radius: 8px;

}

.timeline-section {

    flex: 1;

    padding: 10px;

}

.timeline-item {

    position: relative;

    margin-bottom: 20px;

    padding-left: 30px;

}

.timeline-item::before {

    content: "";

    position: absolute;

    top: 10px;

    left: 0;

    width: 10px;

    height: 10px;

    background-color: #4CAF50;

    border-radius: 50%;

}

.timeline-item h4 {

    margin: 0;

    color: #333;

    font-size: 1.1em;

}

.timeline-item p {

    color: #666;

    font-size: 0.9em;

    margin-top: 5px;

    line-height: 1.6;

}

.timeline-item img {

    width: 100%;

    margin-top: 10px;

    border-radius: 8px;

}



/* Responsive Design */

@media (max-width: 768px) {

    .main-content {

        flex-direction: column;

    }

}



.text-add {

    text-align: center;

}



.text-head {

    /* margin-left: 20%; 

    background-color: #f1f1f1;

    margin: 5px;

    padding: 20px;

    font-size: 20px;

    position: relative; */

    padding: 10px 20px;

    background-color: #fff;

    border-bottom: 1px solid #ddd;

    font-size: 14px;
    text-decoration: none;

}


/* popup */

/* ສຳລັບ popup background ປິດຫຼັງ */

.modal-background {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.5);

    z-index: 1;

}



/* popup box */

.modal-content {

    background-color: #fefefe;

    margin: 15% auto;

    padding: 20px;

    border: 1px solid #888;

    width: 80%;

    max-width: 600px;

    border-radius: 8px;

    position: relative;

}



/* close button ໃນ modal */

.close-button {

    color: #aaa;

    float: right;

    font-size: 24px;

    font-weight: bold;

    cursor: pointer;

}



.close-button:hover,

.close-button:focus {

    color: #000;

    text-decoration: none;

    cursor: pointer;

}



/* ເຮັດໃຫ້ຮູບພາບເປັນ responsive */

.image-contenter {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    justify-content: center;

}



.image-contenter img {

    width: 100%;

    max-width: 180px;

    height: auto;

    border-radius: 8px;

}







/*** Footer ***/

.footer {

    color: #B0B9AE;

}



.footer .btn.btn-link {

    display: block;

    margin-bottom: 5px;

    padding: 0;

    text-align: left;

    color: #B0B9AE;

    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;

    color: var(--primary);

    margin-right: 10px;

}



.footer .btn.btn-link:hover {

    color: var(--light);

    letter-spacing: 1px;

    box-shadow: none;

}



.copyright {

    color: #B0B9AE;

}



.copyright {

    background: #252525;

}



.copyright a:hover {

    color: #FFFFFF !important;

}


