/* ===== BỬU YẾN HEADER STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

/* --- Top Bar --- */
.by-topbar {
    background-color: #214621;
    padding: 6px 0;
}

.by-topbar .by-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.by-topbar-text {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-align: right;
}

/* --- Main Nav (Menu Row with Logo) --- */
.by-main-nav {
    background-color: #112d1b;
    border: 1px solid #ffce80;
    position: sticky;
    top: -10px;
    z-index: 100;
}

.by-main-nav .by-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Left menu */
.by-nav-left,
.by-nav-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.by-nav-left {
    justify-content: flex-end;
    padding-right: 10px;
}

.by-nav-right {
    justify-content: flex-start;
    padding-left: 10px;
}

.by-nav-left ul,
.by-nav-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.by-nav-left ul li,
.by-nav-right ul li {
    position: relative;
}

.by-nav-left ul li>a,
.by-nav-right ul li>a {
    display: block;
    padding: 13px 18px;
    color: #feea9d;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
}

.by-nav-left ul li>a:hover,
.by-nav-right ul li>a:hover {
    color: #fff;
}

/* Dropdown arrow for items with children */
.by-nav-right ul li.has-children>a::after {
    content: ' ▾';
    font-size: 11px;
}

/* Dropdown submenu */
.by-nav-right ul li .by-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #eec380;
    z-index: 200;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.by-nav-right ul li:hover .by-dropdown {
    display: block;
}

.by-nav-right ul li .by-dropdown a {
    display: block;
    padding: 10px 18px;
    color: #112d1b;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.by-nav-right ul li .by-dropdown a:hover {
    background-color: #d4a96a;
}

/* Logo in center */
.by-logo-center {
    flex: 0 0 auto;
    z-index: 10;
    position: relative;
}

.by-logo-center a {
    display: block;
}

.by-logo-center img {
    width: 70px;
    height: auto;
    display: block;
    position: relative;
    top: 10px;
}

/* --- Sub Nav (Second Row) --- */
.by-sub-nav {
    background-color: #214621;
    padding: 0;
    position: sticky;
    top: 48px;
    z-index: 99;
}

.by-sub-nav .by-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sub nav links */
.by-sub-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.by-sub-links li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: color 0.3s;
}

.by-sub-links li a:hover {
    color: #ffc812;
}

/* Hotline */
.by-hotline {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 6px 15px;
    gap: 7px;
}

.by-hotline-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.by-hotline-icon svg {
    width: 100%;
    height: 100%;
}

.by-hotline-text {
    line-height: 1.2;
}

.by-hotline-text a {
    text-decoration: none;
    color: #ffeb7c;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
}

.by-hotline-text a:hover {
    color: #fff;
}

/* Search box */
.by-search-box {
    display: flex;
    align-items: center;
    margin-left: 12px;
}

.by-search-box form {
    display: flex;
    border-radius: 11px;
    overflow: hidden;
    height: 36px;
}

.by-search-box input[type="search"],
.by-search-box input[type="text"] {
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 13px;
    width: 130px;
    background: #f1f2f3;
    color: #112d1b;
    height: 100%;
}

.by-search-box input::placeholder {
    color: #112d1b;
    opacity: 0.6;
}

.by-search-box button {
    background-color: #112d1b;
    border: none;
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.by-search-box button:hover {
    background-color: #0a1c10;
}

.by-search-box button i {
    font-size: 14px;
}

/* Cart icon */
.by-cart {
    margin-left: 12px;
    position: relative;
}

.by-cart a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px;
    transition: color 0.3s;
}

.by-cart a:hover {
    color: #ffc812;
}

.by-cart i,
.by-cart svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.by-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #214621;
    color: #e0e264;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ===== PRODUCT IMAGE HOVER SWAP ===== */
.pic-product .scale-img {
    position: relative;
    display: block;
    overflow: hidden;
}

.pic-product .scale-img img:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pic-product .scale-img:hover img:nth-child(1) {
    opacity: 0;
}

.pic-product .scale-img:hover img:nth-child(2) {
    opacity: 1;
}

.pic-product .scale-img img:nth-child(1) {
    transition: opacity 0.5s ease;
}

/* ===== CATALOG BANNER ===== */
.by-catalog-banner {
    margin-top: 30px;
    padding: 10px;
    background: linear-gradient(90deg, #cf9e50, #f8df8b, #cf9e50, #f8df8b, #cf9e50);
    background-size: 200% 100%;
    border-radius: 70px;
    position: relative;
    animation: move-border-gradient 3s linear infinite;
}

@keyframes move-border-gradient {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.by-catalog-link {
    display: block;
    text-decoration: none;
    background-color: #174225;
    padding: 15px 20px;
    border: 1px solid #ffce80;
    text-align: center;
    position: relative;
    border-radius: 70px;
    transition: all 0.3s ease;
}

.by-catalog-link:hover {
    background-color: #0f3019;
}

.by-catalog-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.by-catalog-click {
    background: linear-gradient(to bottom, #fceb9a, #e2ae57);
    color: #174225;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: pulse-catalog-btn 1.5s infinite;
}

.by-catalog-sub {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.by-catalog-main {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    width: 100%;
    margin-top: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes pulse-catalog-btn {
    0% {
        transform: scale(1);
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(252, 235, 154, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }
}

/* ===== ABOUT SECTION ===== */
.wrap-about {
    background-color: #174225;
    padding: 30px 15px;
    margin-top: 40px;
}

.by-about-box {
    border: 2px solid #d3a85b;
    padding: 40px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    box-shadow: 0 0 0 5px #174225, 0 0 0 7px #d3a85b;
    border-radius: 2px;
}

.by-about-left {
    width: 40%;
    padding-right: 30px;
    text-align: center;
}

.by-about-right {
    width: 60%;
    padding-left: 30px;
}

.by-about-title1 {
    color: #d3a85b;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.by-about-title1 span {
    font-size: 45px;
    font-weight: 700;
    display: block;
    margin-top: 5px;
    font-family: 'Times New Roman', Times, serif;
    /* Or any serif available */
}

.by-about-video {
    position: relative;
    border: 2px solid #d3a85b;
    padding: 4px;
    display: inline-block;
    max-width: 100%;
}

.by-about-video img {
    max-width: 100%;
    height: auto;
    display: block;
}

.by-about-video .video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 40px;
    background: #ff0000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

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

.by-about-video .video-play::after {
    content: '';
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px;
}

.by-about-title2 {
    color: #d3a85b;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 3px;
}

.by-about-desc {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
}

.by-about-desc p {
    margin-bottom: 15px;
}

/* ===== GALLERY SECTION ===== */
.by-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, 300px);
    gap: 15px;
}

.by-gallery-item {
    display: block;
    overflow: hidden;
    position: relative;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.by-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.by-gallery-item:hover img {
    transform: scale(1.08);
}

.by-gallery-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.by-gallery-item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.by-gallery-item-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.by-gallery-item-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.by-gallery-item-5 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* ===== PARTNER SECTION ===== */
.wrap-partner {
    padding: 50px 0;
}

.by-partner-icon {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 35px;
    color: #174225;
}

.by-partner-icon img {
    height: 40px;
    width: auto;
}

.by-partner-title {
    color: #174225;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.by-partner-sub {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
}

.by-partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background-color: #e5e5e5;
    gap: 1px;
    border: 1px solid #e5e5e5;
}

.by-partner-item {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 120px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.by-partner-item:hover {
    background-color: #fcfcfc;
}

.by-partner-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.by-partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ===== FAQ SECTION ===== */
.wrap-faq {
    background-color: transparent;
}

.by-faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 0;
}

.by-faq-item {
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    margin-bottom: 0;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.by-faq-item:last-child {
    border-bottom: none !important;
}

.by-faq-button {
    background-color: transparent !important;
    color: #174225 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 15px 20px 15px 40px !important;
    box-shadow: none !important;
    position: relative;
}

.by-faq-button::after {
    display: none !important;
}

.by-faq-button::before {
    content: '+';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 700;
    color: #174225;
}

.by-faq-button:not(.collapsed) {
    background-color: transparent !important;
    color: #174225 !important;
}

.by-faq-button:not(.collapsed)::before {
    content: '–';
}

.by-faq-body {
    padding: 0 20px 20px 40px !important;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    border-top: none !important;
    background-color: transparent;
}

/* ===== TESTIMONIALS SECTION ===== */
.wrap-khachhang {
    background-color: transparent;
}

.by-testi-icon {
    font-size: 40px;
    color: #174225;
}

.by-testi-title {
    color: #174225;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.by-testi-stars {
    color: #f7b24e;
    font-size: 22px;
    margin-bottom: 40px;
}

.by-testi-stars i {
    margin: 0 2px;
}

.by-testi-name {
    color: #174225;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.by-testi-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
}

.by-testi-desc {
    color: #666;
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
}

.by-testi-carousel .owl-dots {
    margin-top: 30px !important;
}

.by-testi-carousel .owl-dots .owl-dot span {
    width: 8px !important;
    height: 8px !important;
    background-color: #ccc !important;
    margin: 5px 4px !important;
    transition: all 0.3s ease;
}

.by-testi-carousel .owl-dots .owl-dot.active span {
    background-color: #174225 !important;
    transform: scale(1.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .by-gallery-grid {
        grid-auto-rows: 250px;
    }

    .by-partner-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Mobile Header Fix */
    .by-main-nav .by-container {
        position: relative;
    }
    .right-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: absolute;
        width: 100%;
        left: 0;
        top: 0;
        height: 100%;
        padding: 0 15px;
        background-color: transparent;
        box-shadow: none;
        pointer-events: none;
    }
    .right-head > * {
        pointer-events: auto;
    }
    .right-head .search-res {
        margin: 0;
    }
    .right-head .icon-search {
        color: #ffce80; /* Gold color to match logo */
        font-size: 20px;
        line-height: normal;
        width: auto;
        height: auto;
        margin: 0;
    }
    #hamburger {
        margin: 0;
        width: 25px;
        height: 18px;
    }
    #hamburger span, #hamburger:before, #hamburger:after {
        background-color: #ffce80;
        height: 2px;
        border-radius: 2px;
    }
    .by-nav-left, .by-nav-right, .by-sub-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .by-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .by-gallery-item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .by-gallery-item-2,
    .by-gallery-item-3,
    .by-gallery-item-4,
    .by-gallery-item-5 {
        grid-column: auto;
        grid-row: auto;
    }

    .by-partner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .by-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .by-gallery-item-1 {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .by-partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .by-partner-item {
        height: 90px;
        padding: 10px;
    }

    .by-partner-title {
        font-size: 20px;
    }

    .by-topbar {
        display: none;
    }

    .by-main-nav .by-container {
        flex-wrap: wrap;
        padding: 8px 15px;
    }

    .by-nav-left,
    .by-nav-right {
        display: none;
    }

    .by-logo-center img {
        width: 50px;
        top: 0;
    }

    .by-sub-nav {
        display: none;
    }
}