body {
    overflow-x: hidden;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
}

.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu li {
    display: inline;
    padding-inline-start: 30px;
    color: #614716;
    font-weight: 700;

}

.menu li a {
    text-decoration: none;
    color: inherit;
}

.menu {
    position: relative;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.boxtk {
    display: none;
    position: absolute;
    top: 58px;
    right: 0px;
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    z-index: 9999;
    max-width: fit-content;
    background-color: white;
}

.search-box {
    display: inline-block;
    background: white;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    overflow: hidden;

}

.search-box input[type="text"] {
    border: none;
    padding: 10px 12px;
    width: 180px;
    /* width: 252px; */
    font-size: 14px;
    outline: none;
    border-radius: 5px 0 0 5px;
}

.search-box button {
    background-color: #5c1a42;
    /* Màu tím trong ảnh */
    color: white;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.search-box button i {
    font-size: 14px;
}

.boxtk2 {
    /* padding: 20px; */
    /* box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; */
    z-index: 9999;
    max-width: fit-content;
    background-color: white;
}

.search-box2 {
    display: inline-block;
    background: white;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    overflow: hidden;

}

.search-box2 input[type="text"] {
    border: none;
    padding: 10px 12px;
    /* width: 180px;     */
    width: 252px;
    font-size: 14px;
    outline: none;
    border-radius: 5px 0 0 5px;
}

.search-box2 button {
    background-color: #5c1a42;
    /* Màu tím trong ảnh */
    color: white;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.search-box2 button i {
    font-size: 14px;
}

.gradient-text {
    background: linear-gradient(90deg, #6B1C4C, #F28F01 85%);
    background-image: linear-gradient(90deg, rgb(107, 28, 76), rgb(242, 143, 1) 85%);
    background-position-x: initial;
    background-position-y: initial;
    background-size: initial;
    background-repeat-x: initial;
    background-repeat-y: initial;
    background-attachment: initial;
    background-origin: initial;
    background-color: initial;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2em;
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Serif';
    font-weight: bold;
}

.anhnentongquanduan {
    height: 740px;
    width: 100%;
}

.tongquanduan {
    position: absolute;
    top: 0;
    left: 40%;
    background-color: rgba(107, 28, 76, 0.8);
    color: white;
    padding: 20px;
    width: 50%;
    height: 100%;
}

.tongquanduan ul li {
    padding-bottom: 15px;
}

.anhduan {
    position: relative;
    overflow: hidden;
    height: 208px;
}

.newsimg {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.anhnen,
.textduan {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    width: 100%;
    height: 100%;


}

.anhnen {
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.textduan {
    z-index: 2;
    color: white;
    text-align: center;
    /*  display: flex;
    align-items: center;
    justify-content: center; */
    font-size: 20px;
    transform: translateY(20px);
    top: 70px;
    left: 0;
}

.anhduan:hover .newsimg {
    transform: scale(1.05);
}

.anhduan:hover .anhnen,
.anhduan:hover .textduan {
    opacity: 1;
    transform: translateY(0);
}

.circle-image {
    width: 150px;
    /* hoặc kích thước bạn muốn */
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
}

.row.reverse {
    flex-direction: row-reverse;
    /* Ảnh bên trái - Text bên phải */
}

.row.normal {
    flex-direction: row;
    /* Text bên trái - Ảnh bên phải */
}

.texttrai {
    text-align: end;
    padding-right: 20px;

}

.textphai {
    padding-left: 20px;
}

.anhtrai {
    text-align: end;
    padding-right: 20px;
    /* border-right: 2px solid #ddd; */
}

.anhphai {
    padding-left: 20px;
    /* border-left: 2px solid #ddd; */
}

.boxrow {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.boxrow::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #ddd;
    transform: translateX(-50%);
}

.menumobile {
    display: none;
    position: relative;
}

.badge-big {
    font-size: 16px;
    padding: 0.75rem 1.25rem;
    margin-right: 8px;
    color: rgba(102, 102, 102, 0.85);
}

.badge-big:hover {
    background-color: #6b1c4c;
    color: white;
    cursor: pointer;
}

.active2 {
    background-color: #6b1c4c;
    color: white;
}

/* slider */
.swiper {
    width: 80%;
    height: 141px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.boxdt {
    border: 2px solid red;
    color: red;
    font-weight: bold;
    padding: 8px 25px;
    margin: 10px 40px 0 40px;
    font-size: 18px;
}

/* contact form */


.contact-form {
    max-width: 580px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: orange;
    box-shadow: 0 0 5px orange;
}

.contact-form button[type="submit"] {
    background-color: #6c1a4d;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    display: block;
    width: 100%;
    font-size: 16px;
}

.contact-form button:hover {
    background-color: #57153e;
}

#content-slider3 li {
    /* padding: 35px; */
    background-color: white;
    border: 1px solid #ddd;
    text-align: center;
}

.footer td {
    padding-bottom: 20px;
}

.footer h4 {
    margin-bottom: 20px;
    font-weight: 400;
}

/* *** */

.footer-wrapper {
    position: relative;
    background: url('../img/bgfooter.png') no-repeat center bottom;
    background-size: contain;
    color: white;
    overflow: hidden;
}


.footer-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    /* lớp phủ đậm hơn */
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    /* giúp chữ nổi bật hơn */
}

html {
    scroll-behavior: smooth;
}

#gioi-thieu,
#tong-quan,
#vi-tri,
#tien-ich,
#mat-bang,
#hinh-anh,
#tu-van,
#tin-tuc,
#lien-he {
    scroll-margin-top: 110px;
}

.motahinhanh {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.55);
    width: 100%;
    height: 79px;
    color: white;

}

.motahinhanh p {
    line-height: 0.5 !important;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(50%, 50%);
    width: 60px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side, #4caf50 90%, #0000);
    background:
        var(--_g) 0% 50%,
        var(--_g) 50% 50%,
        var(--_g) 100% 50%;
    background-size: calc(100%/3) 100%;
    animation: l7 1s infinite linear;
    z-index: 3;
}

@keyframes l7 {
    33% {
        background-size: calc(100%/3) 0%, calc(100%/3) 100%, calc(100%/3) 100%
    }

    50% {
        background-size: calc(100%/3) 100%, calc(100%/3) 0%, calc(100%/3) 100%
    }

    66% {
        background-size: calc(100%/3) 100%, calc(100%/3) 100%, calc(100%/3) 0%
    }
}

/* ------------ */
.cssbg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* tao duong gach ngang */
.underline-title {
    display: inline-block;
    position: relative;
    font-weight: bold;
}

.underline-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    /* khoảng cách với chữ */
    width: 40px;
    /* độ dài đường gạch */
    height: 2px;
    /* độ dày */
    background-color: #ccc;
    /* màu đường gạch */
}

/* *** */

.footer a {
    text-decoration: none;
    color: inherit;
}

.anhslide {
    height: 603px;
    position: relative;
}


.textslide {
    position: absolute;
    top: 50%;
    left: 32vh;
    transform: translateY(-50%) scale(1.2);
    /* bắt đầu phóng to */
    color: white;
    width: 615px;
    height: 220px;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: zoomOutText 5.5s ease-in-out infinite;
    /* Tăng thời gian để chậm hơn */

}

@keyframes zoomOutText {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(1.2);
    }

    20% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
        /* Zoom in chậm */
    }

    70% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
        /* Giữ trạng thái zoom nhỏ */
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) scale(1.2);
        /* Phóng to lại để chuẩn bị cho vòng lặp */
    }
}

.rounded-img {
    border-radius: 50%;
    object-fit: cover;
}

.chitiettintuc td {
    padding-bottom: 20px;    
}

a {
    text-decoration: none;
    color: inherit;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    /* Viền đen mỏng */
    border-radius: 50%;
    background-color: transparent;
    color: #333;
    /* Mũi tên đen */
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 9999;
}

.scroll-to-top:hover {
    background-color: #880066;
    color: white;
}

/* menu mobile */
/* Nút mở menu */
.menu-toggle {
    font-size: 28px;
    padding: 12px;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  /* Overlay nền */
  .overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    display: none;
  }
  
  /* Menu mobile */
  .mobile-menu {
    position: fixed;
    top: 0; left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    z-index: 100;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
  }
  
  .mobile-menu.active {
    left: 0;
  }
  .overlay.active {
    display: block;
  }
  
  /* Header + tìm kiếm */
  .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .search-box {
    display: flex;
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
  }
  
  .search-box input {
    border: none;
    padding: 8px;
    flex: 1;
  }
  
  .search-box button {
    background: #650050;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
  }
  
  .close-btn {
    font-size: 24px;
    cursor: pointer;
  }
  
  /* Danh sách menu */
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
  }
  
  .mobile-menu ul li a {
    display: block;
    padding: 14px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    transition: all 0.2s;
  }
  
  .mobile-menu ul li a:hover {
    color: #650050;
  }
  
 .customrow {
    display: flex;    
 } 
 .cot1 {
    width: max-content;    
 }

 .breadcrumb {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #000;
  }
  
  .breadcrumb a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
  }
  
  .breadcrumb a.muted {
    color: rgba(102,102,102,0.7);
    font-weight: normal;
  }
  
  .breadcrumb .separator {
    margin: 0 6px;
    color: #999;
  }
  
  .breadcrumb .active {
    font-weight: 700;
    color: #000;
  }
/* *** */

@media screen and (max-width: 768px) {

    .anhtrai,
    .anhphai,
    .texttrai,
    .textphai {
        border: none;
        text-align: center;
    }

    .gradient-text {
        font-size: 28px;
    }

    .boxrow::before {
        display: none;
    }

    .anhnentongquanduan {
        height: 800px;
    }

    .tongquanduan {
        left: 0;
        width: 100%;
        font-size: 14px;
    }

    .anhslide {
        height: 304px;
    }



    .menumobile {
        display: block;
    }

    .boxdt {
        margin: 10px 20px 0 20px;
    }

    .footer-wrapper {
        background: url('../img/bgfooter.png') no-repeat center bottom;
        background-size: cover;
    }

    .footer-content {
        padding: 20px 10px;
    }

    .textslide {
        top: 50%;
        left: 0;
        width: 100%;
        /* Hoặc giá trị cụ thể nếu cần */
        max-width: 100%;
        /* Giới hạn chiều rộng */
        word-wrap: break-word;
        /* Tự động xuống dòng nếu quá dài */
        white-space: normal;
        /* Cho phép xuống dòng (mặc định là nowrap nếu bị lỗi) */
        overflow-wrap: break-word;
    }
    .search-box2 input[type="text"] {
        width: 325px;
    }

}