/* ===== Bá»¬U Yáº¾N HEADER STYLES ===== */
/* --- Top Bar --- */
.by-topbar {
    background-color: #165b2b;
    padding: 12px 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: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-align: right;
}

/* --- Main Nav (Menu Row with Logo) --- */
header {
    background-color: #fff;
    position: sticky;
    top: 0px;
    z-index: 100;
}

.by-main-nav {
    position: relative;
    z-index: 100;
}

.by-main-nav .by-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 90px;
}

/* 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: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    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: #1b4c28;
    font-family: 'Montserrat', 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;
    padding: 5px 0;
}

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

.by-logo-center img {
    height: auto;
    display: block;
    position: relative;
    /* top: 30px; */
    max-height: 80px;
}

.by-slogan {
    text-align: center;
    font: 12px var(--font);
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

/* --- Sub Nav (Second Row) --- */
.by-sub-nav {
    background-color: #fff;
    position: relative;
    z-index: 99;
}

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

/* Sub nav links */
.by-sub-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    justify-content: space-between;
    align-content: center;
    flex-wrap: wrap;
    position: relative;
}

.by-sub-links li a {
    display: block;
    padding: 10px 0px;
    color: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: bolder;
    text-decoration: none;
    text-align: center;
    transition: color 0.3s;
    text-transform: uppercase;
}

.by-sub-links li a:hover {
    color: var(--bgmainhv);
}

.by-sub-links>li>a>i {
    font-size: 12px;
    transition: 0.3s all;
}

.by-sub-links>li:hover>a>i {
    transform: rotate(90deg);
}

.by-sub-links>li {
    /* position:relative; */
}

.by-sub-links>li.menu-duan-item {
    position: relative;
}

.by-sub-links>li>ul {
    list-style: none;
    padding: 10px;
    text-align: left;
    position: absolute;
    background-color: #fff;
    border-radius: 0.25rem;
    -webkit-box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.15);
    box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.15);
    -webkit-transform: perspective(600px) rotateX(-90deg);
    transform: perspective(600px) rotateX(-90deg);
    -webkit-transform-origin: 0 0 0;
    transform-origin: 0 0 0;
    opacity: 0;
    visibility: hidden;
    min-width: 300px;
    -webkit-transition: 0.3s all;
    transition: 0.3s all;
    left: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 10px;
}

.by-sub-links>li.menu-duan-item>ul {
    display: block;
    width: auto;
    padding: 0;
}

.by-sub-links>li.menu-duan-item>ul>li {
    width: 100%;
}

.by-sub-links>li.menu-duan-item>ul>li>a {
    padding: 10px;
}

.by-sub-links>li.menu-duan-item>ul>li:last-child a {
    border: 0;
}

.by-sub-links>li>ul>li {
    width: calc(100% / 5 - 10px);
}

.by-sub-links>li>ul>li>a {
    padding: 10px 0;
}

.by-sub-links>li>ul>li>ul {
    list-style: none;
    padding: 8px 0 0;
}

.by-sub-links>li>ul>li>ul>li {}

.by-sub-links>li>ul>li>ul>li>a {
    padding: 3px 0px;
    border: 0;
    font-size: 14px;
}

.by-sub-links>li ul a {
    text-align: left;
    padding: 10px 10px;
    border-bottom: 1px solid #ababab;
    text-transform: capitalize;
    font-weight: 500;
}

.by-sub-links>li:hover>ul {
    -webkit-transform: perspective(600px) rotateX(0);
    transform: perspective(600px) rotateX(0);
    transform-origin: 0 0 0;
    -webkit-transform-origin: 0 0 0;
    opacity: 1;
    visibility: visible;
}

/* Hotline */
.by-hotline {
    display: flex;
    align-items: center;

    padding: 6px 5px;
    gap: 7px;
}

.by-hotline-2 {
    margin-left: auto;
}

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

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

.by-hotline-text {}

.by-hotline-text a {
    border: 2px solid var(--bgmain);
    color: var(--bgmain);
    display: block;
    padding: 5px 15px;
    border-radius: 5px;
    transition: 0.3s all;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-weight: bolder;
}

.by-hotline-text a:before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* border-radius: 5px; */
    transition: 0.3s all;
    background: var(--bgmain);
    transform: scale(1);
}

.by-hotline-text a:hover:before {
    transform: scale(0);
}

.by-hotline-text a span {
    position: relative;
    transition: 0.3s all;
    color: #fff;
}

.by-hotline-text a:hover span {
    position: relative;
    color: var(--bgmain);
}

.by-hotline-text a:hover {}

/* Search box */
.by-search-box {
    /* display: flex; */
    /* align-items: center; */
    width: 25%;
}

.by-search-box form {
    display: flex;
    overflow: hidden;
    height: 36px;
    background: rgba(0, 0, 0, .03);
    border: 1px solid #E1E1E1;
    border-radius: 25px;
}

.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: transparent;
    color: #1b4c28;
    height: 100%;
    flex-grow: 1;
}

.by-search-box input::placeholder {
    color: #1b4c28;
    opacity: 0.6;
}

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

.by-search-box button:hover {
    background-color: var(--bgmainhv);
    color: #fff;
}

.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: #165b2b;
    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 {
    margin-top: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: pulse-catalog-btn 2s 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(0.9);

    }

    50% {
        transform: scale(1);

    }

    100% {
        transform: scale(0.9);

    }
}

/* TiÃªu chÃ­ */
.wrap-tieuchi {
    background: #efe9da;
    /* MÃ u ná»n hÆ¡i vÃ ng nháº¡t nhÆ° thiáº¿t káº¿ */
    padding: 50px 0;
    padding-bottom: 0px;
}

.tieuchi-list {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.tieuchi-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tieuchi-icon img {
    width: auto;
    height: 55px;
    object-fit: contain;
}

.tieuchi-name {
    color: #c01423;
    /* MÃ u Ä‘á» Ä‘Ã´ */
    font-size: 19px;
    font-weight: bold;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .tieuchi-list {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }
}

/* Category Level 2 Buttons */
.wrap-cat-level2 {
    gap: 15px;
}

.btn-cat-level2 {
    display: inline-block;
    padding: 10px 25px;
    background-color: #fff;
    color: #1b4c28;
    font-weight: 700;
    border: 1px solid #1b4c28;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

.btn-cat-level2:hover,
.btn-cat-level2.active {
    background-color: #1b4c28;
    color: #fff;
    border-color: #ffce80;
    text-decoration: none;
}

/* ===== ABOUT SECTION ===== */
.wrap-about {
    padding: 50px 0;
}

.by-about-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    justify-content: space-between;
    align-content: center;
}

.by-about-left {
    width: 45%;
}

.by-about-right {
    width: 50%;
}

.by-about-title1 {
    color: #000;
    margin-bottom: 15px;
    font: 16px var(--font);
    letter-spacing: 1px;
    padding: 0 0 0 50px;
    position: relative;
    text-transform: uppercase;
}

.by-about-title1:before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 1px;
    width: 40px;
    background: var(--bgmainhv);
}

.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 {
    display: block;
    position: relative;
    background: var(--bgrg1);
    color: transparent;
    -webkit-background-clip: text;
    text-transform: uppercase;
    font: 55px var(--font1FTVAvilockBold);
    font-weight: 700;
    padding: 15px 0 0;
    margin: 0 0 20px;
}

.by-about-desc {
    color: #333;
    font-size: 15px;
    text-align: justify;
}

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

.name-video {
    margin: 10px 0;
    text-align: center;
    color: #000;
    font-size: 16px;
}

/* ===== 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;
}

@media (max-width: 768px) {
    .by-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: calc((100vw - 30px) / 2);
        gap: 0;
    }

    .by-gallery-item {
        border: 1px solid #fff;
        box-shadow: none;
        border-radius: 0;
    }

    .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: 2 / 3;
        grid-row: 2 / 3;
    }

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

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

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

.by-partner-icon {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 35px;
    color: var(--bgmain);
}

.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: flex;
    /* grid-template-columns: repeat(5, 1fr); */
    /* background-color: #e5e5e5; */
    /* gap: 1px; */
    /* border: 1px solid #e5e5e5; */
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.by-partner-item {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* width: calc(100% / 7 - 20px); */
    border: 1px solid #f1f1f1;
    border-radius: 5px;
}

.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;
    overflow: hidden;
}

.by-faq-accordion {

    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: var(--bgmain);
        /* Gold color to match logo */
        font-size: 20px;
        line-height: normal;
        width: auto;
        height: auto;
        margin: 0;
    }

    @media screen and (min-width: 1201px) {
        .hd-burger {
            display: none;
        }
    }

    #hamburger {
        /* margin: 0; */
        /* height: 0; */
        /* width: 70px; */
    }

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

@media (max-width: 768px) {


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

@media (max-width: 480px) {


    .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;
    }
}

.by-about-image img {
    max-height: 600px;
}

.by-about-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-width: 170px;
    height: 50px;
    padding: 0 16px 0 25px;
    border-radius: 50px;
    background: var(--bgmain);
    color: #fff;
    font: 19px var(--fontM);
    text-decoration: none;
    transition: background 0.3s ease;
}

.by-about-button a:hover {
    background: #c4261b;
    color: #fff;
}

.by-about-button a i {
    font-size: 16px;
}

/* ===== FEATURED PROJECTS ===== */
.wrap-duan {
    padding: 70px 0 55px;
    /* background: #0d0e0e; */
    color: #f6f2e9;
}

.duan-home {
    max-width: 1200px;
    margin: 0 auto;
}

.duan-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 34px;
}

.duan-heading-left {
    flex: 0 0 52%;
}

.duan-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 7px 14px;
    border: 1px solid rgba(198, 154, 91, 0.45);
    border-radius: 30px;
    color: #c99b5c;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.duan-eyebrow i {
    font-size: 10px;
}

.duan-heading h2 {
    margin: 0;
    color: var(--bgmain);
    font-family: var(--font1FTVAvilockBold), Georgia, serif;
    font-size: clamp(42px, 5vw, 58px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -1.5px;
}

.duan-heading h2 em {
    /* display: block; */
    /* color: var(--bgmainhv); */
    /* font-weight: 400; */
    font-style: normal;
}

.duan-heading-right {
    flex: 0 1 360px;
    text-align: right;
}

.duan-heading-right p {
    margin: 0 0 10px auto;
    color: #4f4f4f;
    font-size: 13px;
    line-height: 1.7;
}

.duan-heading-right a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    border: 1px solid #fc8b00;
    border-radius: 30px;
    color: #fc8b00;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: 0.3s ease;
}

.duan-heading-right a:hover {
    background: #fc8b00;
    color: #fff;
}

.duan-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: repeat(2, 230px);
    gap: 12px;
}

.duan-card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #191919;
    color: #fff;
    text-decoration: none;
}

.duan-card-1 {
    grid-row: 1 / 3;
}

.duan-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    width: -webkit-fill-available;
}

.duan-card::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 35%, rgba(0, 0, 0, 0.82) 100%);
    pointer-events: none;
}

.duan-card:hover img {
    transform: scale(1.06);
}

.duan-number {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bgmainhv);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 10px;
    display: none;
}

.duan-card-info {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 18px;
    left: 16px;
    display: block;
}

.duan-card-info small {
    display: block;
    overflow: hidden;
    margin-bottom: 7px;
    color: #d0a468;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.duan-card-info strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-family: var(--font1FTVAvilockBold), Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.duan-card-1 .duan-card-info {
    right: 22px;
    bottom: 28px;
    left: 22px;
}

.duan-card-1 .duan-card-info strong {
    font-size: 24px;
}

.duan-explore {
    display: flex;
    height: 68px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 18px 0 24px;
    /* border: 1px solid #353535; */
    border-radius: 14px;
    background: var(--bgmainhv);
    color: #f4efe5;
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.duan-explore:hover {
    border-color: #9d7646;
    color: #f4efe5;
}

.duan-explore strong {
    font-family: var(--font1FTVAvilockBold), Georgia, serif;
    font-size: 25px;
    font-weight: 400;
}

.duan-explore span {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #ffffff;
    font-size: 12px;
}

.duan-explore i {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    /* color: #c99b5c; */
    transition: 0.3s ease;
}

.duan-explore:hover i {
    background: #c99b5c;
    color: #111;
}

@media (max-width: 991px) {
    .wrap-duan {
        padding: 55px 0 45px;
    }

    .duan-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 230px);
    }

    .duan-card-1 {
        grid-row: 1 / 3;
    }
}

@media (max-width: 767px) {
    .duan-heading {
        display: block;
        margin-bottom: 25px;
    }

    .duan-heading-left {
        margin-bottom: 24px;
    }

    .duan-heading h2 {
        font-size: 44px;
    }

    .duan-heading-right {
        text-align: left;
    }

    .duan-heading-right p {
        margin-left: 0;
    }

    .duan-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 340px repeat(2, 190px);
    }

    .duan-card-1 {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .duan-card-info strong,
    .duan-card-1 .duan-card-info strong {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wrap-duan {
        padding: 45px 0 35px;
    }

    .duan-heading h2 {
        font-size: 38px;
    }

    .duan-grid {
        display: block;
    }

    .duan-card {
        /* height: 260px; */
        /* margin-bottom: 12px; */
    }

    .duan-card-1 {
        /* height: 360px; */
    }

    .duan-explore {
        height: auto;
        min-height: 68px;
        padding: 15px 14px 15px 18px;
    }

    .duan-explore span {
        font-size: 0;
    }
}

/* ===== NEWSLETTER ===== */
.wrap-newsletter {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        radial-gradient(circle at 12% 25%, rgba(12, 119, 177, 0.2), transparent 28%),
        radial-gradient(circle at 88% 70%, rgba(245, 130, 37, 0.14), transparent 30%),
        #0b0b0b;
    color: #f5f1ea;
}

.wrap-newsletter::before,
.wrap-newsletter::after {
    position: absolute;
    border: 1px solid rgba(12, 119, 177, 0.22);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.wrap-newsletter::before {
    top: -180px;
    left: -120px;
    width: 520px;
    height: 520px;
    box-shadow: 0 0 80px rgba(12, 119, 177, 0.12);
}

.wrap-newsletter::after {
    right: -160px;
    bottom: -220px;
    width: 620px;
    height: 620px;
    border-color: rgba(245, 130, 37, 0.18);
}

.newsletter-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.newsletter-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 14px;
    border: 1px solid rgba(12, 119, 177, 0.55);
    border-radius: 30px;
    color: var(--bgmain);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.newsletter-eyebrow i {
    font-size: 11px;
    color: var(--bgmainhv);
}

.newsletter-title {
    margin: 0 0 18px;
    color: #fff;
    font-family: var(--font1FTVAvilockBold), Georgia, serif;
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 400;
    line-height: 1.05;
}

.newsletter-title em {
    display: block;
    margin-top: 4px;
    color: var(--bgmainhv);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
}

.newsletter-desc {
    max-width: 460px;
    margin: 0 0 26px;
    color: #b7b3ab;
    font-size: 14px;
    line-height: 1.75;
}

.newsletter-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.newsletter-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #ece7de;
    font-size: 14px;
}

.newsletter-checklist i {
    display: flex;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bgmain), var(--bgmainhv));
    color: #fff;
    font-size: 10px;
}

.newsletter-card {
    position: relative;
    padding: 34px 32px 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    background: linear-gradient(180deg, #171717 0%, #121212 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(12, 119, 177, 0.12);
}

.newsletter-card-decor {
    position: absolute;
    top: 18px;
    left: 32px;
    width: 42px;
    height: 2px;
    background: linear-gradient(90deg, var(--bgmainhv), transparent);
}

.newsletter-card-decor::after {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bgmainhv);
    content: "";
}

.newsletter-card-note {
    margin: 10px 0 24px;
    color: #d8d2c7;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.newsletter-field {
    margin-bottom: 16px;
}

.newsletter-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--bgmain);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.newsletter-input {
    position: relative;
}

.newsletter-input i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #8a847a;
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.newsletter-input input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 44px;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    background: #0f0f0f;
    color: #f2ece3;
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.newsletter-input input::placeholder {
    color: #6f6a62;
}

.newsletter-input input:focus {
    border-color: rgba(12, 119, 177, 0.75);
    box-shadow: 0 0 0 3px rgba(12, 119, 177, 0.16);
}

.newsletter-form .invalid-feedback {
    display: none;
    margin-top: 6px;
    color: #ff8d8d;
    font-size: 12px;
}

.newsletter-form.was-validated .newsletter-input input:invalid {
    border-color: #c45b5b;
}

.newsletter-form.was-validated .newsletter-field:has(input:invalid) .invalid-feedback {
    display: block;
}

.newsletter-submit {
    display: inline-flex;
    width: 100%;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--bgmain), var(--bgmainhv));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.newsletter-submit:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.newsletter-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: #7d776e;
    font-size: 12px;
    text-align: center;
}

.newsletter-privacy i {
    font-size: 11px;
    color: var(--bgmain);
}

.newsletter-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

.newsletter-stat {
    text-align: center;
}

.newsletter-stat+.newsletter-stat {
    border-left: 1px solid #2a2a2a;
}

.newsletter-stat strong {
    display: block;
    margin-bottom: 4px;
    color: var(--bgmainhv);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.newsletter-stat strong.is-script {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    color: var(--bgmain);
}

.newsletter-stat span {
    color: #8a847a;
    font-size: 12px;
}

@media (max-width: 991px) {
    .wrap-newsletter {
        padding: 70px 0;
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 575px) {
    .wrap-newsletter {
        padding: 55px 0;
    }

    .newsletter-card {
        padding: 28px 18px 22px;
    }

    .newsletter-stat strong {
        font-size: 18px;
    }

    .newsletter-stat span {
        font-size: 11px;
    }
}

.right-head-mb {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}