.hero-agency-section {
    position: relative;
    padding: 35px 0 40px;
    overflow: visible;
    isolation: isolate;
    z-index: 1;
}
.hero-agency-section--bivaco-bg {
    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #ffffff 37%,
            #f8fcff 60%,
            #eef8ff 100%
        );
}
/* ===== HEADER NAM TREN CUNG NEN HERO ===== */

/* Nền chung phía sau Header + Hero */
body.agency-theme {
    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #ffffff 37%,
            #f8fcff 60%,
            #eef8ff 100%
        ) top center / 100% 900px no-repeat !important;
}

/* Header trong suốt để vòng tròn Hero nhìn xuyên lên phía sau menu */
body.agency-theme .bvc-header-template {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* Không để wrapper trong header tạo lớp nền riêng */
body.agency-theme .bvc-header-template > .ctnr,
body.agency-theme .bvc-header-template .header-inner {
    background: transparent !important;
}

/* Nền tiếp tục xuống khối Giới thiệu */
.motto-agency-section.home-flow-bg {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #ffffff 37%,
            #f8fcff 60%,
            #eef8ff 100%
        ) !important;
}
/* Vòng tròn xanh lớn bên phải */
.hero-agency-section--bivaco-bg::before {
    display: none;
    content: none;
}
/* Các mảng xanh mềm giống mẫu */
.hero-agency-section--bivaco-bg::after {
    display: none;
    content: none;
}
.hero-agency-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Left Column Content */
.hero-agency-content {
    flex: 0 0 42%;
    max-width: 540px;
    z-index: 2;
}
.hero-agency-media {
    flex: 0 0 58%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
/* Shared Section Title Component */
.sec-brand-tag {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-3);
    margin-bottom: 6px;
    /* text-transform: uppercase; */
    line-height: 1.2;
}

.sec-title {
    font-size: 23px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.35;
}

.sec-title-line {
    width: 100px;
    height: 2px;
    background: var(--color-3);
    margin-bottom: 24px;
    border-radius: 2px;
}

.hero-agency-desc {
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 32px;
    text-align: justify;
}

.hero-agency-desc strong {
    font-weight: 700;
    color: #111111;
}

.hero-agency-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 0 28px;
    height: 47px;
    background: linear-gradient(135deg, #00a9ec, #44c3ec, #6ed5ec, #6ed5ec, #44c3ec, #00a9ec, #00a9ec, #44c3ec, #6ed5ec);
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 6px;
    text-decoration: none;
    /* box-shadow: 0 4px 14px rgba(0, 169, 236, 0.35); */
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
    overflow: hidden;
    position: relative;
}

.btn-hero-primary:hover {
    color: #ffffff;
    /* transform: translateY(-2px); */
    filter: brightness(1.05);
    /* box-shadow: 0 6px 20px rgba(0, 169, 236, 0.45); */
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 0 26px;
    height: 47px;
    background: linear-gradient(135deg, #dddddd, #f4f4f4, #fcfcfc, #f4f4f4, #dddddd, #dddddd, #dddddd, #f6f6f6);
    color: #222222;
    font-weight: 700;
    font-size: 18px;
    border-radius: 6px;
    text-decoration: none;
    /* border: 1px solid #d5d5d5; */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
    overflow: hidden;
    position: relative;
}

.btn-hero-secondary:hover {
    color: #000;
    /* transform: translateY(-2px); */
    filter: brightness(1.03);
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

/* Button Text Roll Animation Effect */
.btn-roll-text {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
}

.btn-text-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    flex-shrink: 0;
    white-space: nowrap;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.btn-hero-primary:hover .btn-text-item,
.btn-hero-secondary:hover .btn-text-item {
    transform: translateY(-100%);
}

/* Right Column Media */

.media-glow-bg {
    position: absolute;
    width: 540px;
    height: 540px;
    top: 41%;
    left: 56%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    opacity: .96;

    background:
        radial-gradient(
            circle at 50% 44%,
            rgba(255,255,255,.72) 0%,
            rgba(245,251,255,.66) 34%,
            rgba(221,241,252,.56) 50%,
            rgba(178,223,249,.34) 64%,
            rgba(102,191,243,.16) 76%,
            rgba(44,166,234,.06) 84%,
            transparent 90%
        );
}
.media-image-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    border-radius: 16px;
    overflow: visible;
    transition: transform 0.3s ease;
}

.media-image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ============================================================
   BRAND MARQUEE SECTION (RIGHT TO LEFT WITH FADE OVERLAYS)
============================================================ */
.brand-marquee-section {
    padding: 20px 0;
    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #ffffff 37%,
            #f8fcff 60%,
            #eef8ff 100%
        ) !important;
    overflow: hidden;
}

.brand-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Fade Overlay Masks (2 bên mờ dần) */
.brand-marquee-container .marquee-fade-left,
.brand-marquee-container .marquee-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 140px;
    z-index: 10;
    pointer-events: none;
  display: none;
}

.brand-marquee-container .marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.brand-marquee-container .marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

/* Marquee Track 1 (Right to Left) */
.brand-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

/* Marquee Track 2 (Left to Right) */
.brand-marquee-track.marquee-reverse {
    animation: marquee-scroll-reverse 25s linear infinite;
}

/* Pause animation when hovering over the marquee track or cards */
.brand-marquee-track:hover {
    animation-play-state: paused !important;
}

.brand-marquee-group {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
}

/* Individual Brand Cards matching user screenshot */
.brand-card {
    /* width: 170px; */
    height: 84px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 18px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); */
    flex-shrink: 0;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    filter: drop-shadow(rgba(0, 0, 0, 0.18) 0px 0px 1px);
}

.brand-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-3);
    box-shadow: 0 8px 10px rgba(0, 169, 236, 0.12);
}

.brand-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(10%);
    transition: filter 0.25s;
}

.brand-card:hover img {
    filter: grayscale(0%);
}

/* Marquee Animation 1 (Right to Left) */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Marquee Animation 2 (Left to Right) */
@keyframes marquee-scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ============================================================
   MOTTO / ABOUT SECTION (PHƯƠNG CHÂM)
============================================================ */
.motto-agency-section {
    position: relative;
    padding: 25px 0 60px;
    /* background: linear-gradient(135deg, #f4f8fe 0%, #ffffff 50%, #e8f3ff 100%); */
    overflow: hidden;
}

.motto-agency-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Left Column Media Box */
.motto-agency-media {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

.motto-image-box {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.motto-image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Phone Button Badge Overlay */
.motto-phone-btn {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 32px;
    background: linear-gradient(110deg, #51d6f7 0%, #03a9ec 35%, #0092e0 70%, #3bc6f0 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 169, 236, 0.35);
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
    z-index: 5;
}

.motto-phone-btn:hover {
    color: #ffffff;
    transform: translateX(-50%) translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(0, 169, 236, 0.45);
}

.motto-phone-btn svg {
    flex-shrink: 0;
}

/* Right Column Content */
.motto-agency-content {
    flex: 1;
    max-width: 650px;
}



.motto-agency-desc {
    font-size: 18px;
    color: #444444;
    line-height: 1.75;
    margin-bottom: 30px;
    text-align: justify;
}

.motto-agency-desc p {
    margin-bottom: 14px;
}

.motto-agency-desc p:last-child {
    margin-bottom: 0;
}

/* Stats Counter Card */
.motto-stats-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.motto-stats-card::before {
    content: '';
    position: absolute;
    bottom: 115px;
    right: 10px;
    width: 115px;
    height: 115px;
    background-image: radial-gradient(#00a9ec 2.5px, transparent 2.5px);
    background-size: 20px 20px;
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-3);
    margin-bottom: 4px;
    line-height: 1.1;
}

.stat-label {
    font-size: 16px;
    color: #555555;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 45px;
    background: #e8e8e8;
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .hero-agency-section {
        padding: 40px 0 60px 0;
    }

    .hero-agency-wrapper {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-agency-content {
        max-width: 100%;
    }

    .sec-title-line {
        margin: 0 auto 20px auto;
    }

    .hero-agency-btns {
        justify-content: center;
    }

    .sec-brand-tag {
        font-size: 28px;
    }

    .sec-title {
        font-size: 20px;
    }

    .hero-agency-desc {
        font-size: 15px;
    }

    .media-glow-bg {
        width: 320px;
        height: 320px;
    }

    .motto-agency-section {
        padding: 50px 0 60px 0;
    }

    .motto-agency-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .motto-agency-media,
    .motto-agency-content {
        max-width: 100%;
    }

    .motto-agency-content {
        text-align: center;
    }

    .motto-agency-desc {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .sec-brand-tag {
        font-size: 24px;
    }
  
    .sec-title {
        font-size: 19px;
    }

    .hero-agency-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
    }

    .motto-stats-card {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .motto-phone-btn {
        width: 90%;
        padding: 10px 20px;
        font-size: 16px;
    }

    .stat-number {
        font-size: 28px;
    }
}

/* ============================================================
   SHARED CENTERED TITLE BOX
============================================================ */
.sec-title-box.text-center {
    text-align: center;
}

.sec-title-box.text-center .sec-title-line {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   SERVICES AGENCY SECTION (DỊCH VỤ CUNG CẤP)
============================================================ */
.services-agency-section {
    position: relative;
    padding: 70px 0 80px 0;
    background:
        linear-gradient(
            110deg,
            #eef8ff 0%,
            #f8fcff 40%,
            #ffffff 63%,
            #ffffff 100%
        ) !important;
    overflow: hidden;
}
.services-dots-bg {
    position: absolute;
    top: 60px;
    left: -15px;
    width: 115px;
    height: 115px;
    background-image: radial-gradient(#00a9ec 2.5px, transparent 2.5px);
    background-size: 20px 20px;
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
}

.services-agency-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.services-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 410px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #eaf0f8;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 4px 18px rgba(0, 50, 120, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 169, 236, 0.35);
    box-shadow: 0 10px 28px rgba(0, 169, 236, 0.12);
}

/* Staggered offsets ("thò thụt") for desktop screens */
@media (min-width: 1200px) {

    .services-left .service-card:nth-child(1),
    .services-left .service-card:nth-child(3) {
        margin-left: 60px;
    }

    .services-left .service-card:nth-child(2) {
        margin-right: 60px;
    }

    .services-right .service-card:nth-child(1),
    .services-right .service-card:nth-child(3) {
        margin-right: 60px;
    }

    .services-right .service-card:nth-child(2) {
        margin-left: 60px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .services-left .service-card:nth-child(1),
    .services-left .service-card:nth-child(3) {
        margin-left: 35px;
    }

    .services-left .service-card:nth-child(2) {
        margin-right: 35px;
    }

    .services-right .service-card:nth-child(1),
    .services-right .service-card:nth-child(3) {
        margin-right: 35px;
    }

    .services-right .service-card:nth-child(2) {
        margin-left: 35px;
    }
}

.service-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 21px;
    font-weight: 700;
    color: var(--color-3);
    margin-bottom: 4px;
    line-height: 1.3;
}

.service-desc {
    font-size: 16px;
    color: #555555;
    line-height: 1.45;
    margin: 0;
}

.services-center-media {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 340px;
    padding: 10px;
}

.services-center-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 100, 200, 0.08));
    transition: transform 0.4s ease;
}

.services-center-media:hover img {
    transform: scale(1.03);
}

/* Responsive Media Queries for Services */
@media (max-width: 1199.98px) {
    .services-agency-wrapper {
        gap: 20px;
    }

    .service-card {
        padding: 16px 18px;
        gap: 14px;
    }

    .service-name {
        font-size: 18px;
    }

    .service-desc {
        font-size: 13px;
    }

    .service-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 991.98px) {
    .services-agency-section {
        padding: 50px 0 60px 0;
    }

    .services-agency-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .services-center-media {
        order: -1;
        max-width: 380px;
        width: 100%;
    }

    .services-column {
        max-width: 100%;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-left .service-card,
    .services-right .service-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .services-column {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 16px;
    }

    .services-center-media {
        max-width: 290px;
    }
}

/* ============================================================
   FEATURED PROJECT SECTION (DỰ ÁN TIÊU BIỂU)
============================================================ */
.featured-project-section {
    position: relative;
    padding: 90px 0 80px 0;
    background:
        linear-gradient(to left, transparent 0%, rgba(255, 255, 255, 0.75) 35%, #ffffff 45%, #ffffff 100%),
        linear-gradient(to bottom, #ffffff 0%, rgba(224, 242, 254, 0.65) 0%, #cedefd 100%);
    overflow: hidden;
}

.featured-project-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Left Column Media Box (50% Equal Width) */
.featured-project-media {
    flex: 0 0 calc(50% - 20px);
    width: calc(50% - 20px);
    max-width: calc(50% - 20px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-media-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 169, 236, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.featured-media-box {
    position: relative;
    z-index: 2;
    width: 100%;
}

.featured-media-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 80, 180, 0.12));
}

/* Right Column Content (50% Equal Width) */
.featured-project-content {
    flex: 0 0 calc(50% - 20px);
    width: calc(50% - 20px);
    max-width: calc(50% - 20px);
    position: relative;
}

.featured-project-content::before {
    content: '';
    position: absolute;
    top: -40px;
    right: 80px;
    width: 100px;
    height: 100px;
    background: radial-gradient(#00a9ec 2.5px, transparent 2.5px);
    background-size: 16px 16px;
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
}

.featured-badge-pill {
    display: inline-flex;
    align-items: center;
    background: #dbe5fc;
    border-radius: 30px;
    padding-right: 22px;
    margin-bottom: 30px;
}

.featured-badge-pill .badge-num {
    background: linear-gradient(110deg, #38c8f5 0%, #00a9ec 60%, #0091e0 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 30px;
    margin-right: 14px;
    box-shadow: 0 2px 8px rgba(0, 169, 236, 0.25);
}

.featured-badge-pill .badge-text {
    color: #111111;
    font-size: 17px;
    font-weight: 700;
}

.featured-project-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--color-3);
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.featured-project-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-project-desc {
    font-size: 16px;
    /* color: #555555; */
    line-height: 1.65;
    margin-bottom: 28px;
}

/* 2x2 Info Grid */
.featured-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-icon {
    width: 48px;
    height: 48px;
    /* background: #f0f7ff; */
    border: 1px solid #d8ebfb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon img {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

.info-label {
    font-size: 16px;
    margin-bottom: 2px;
}

.info-val {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
}

/* Action Buttons */
.featured-project-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-featured-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 26px;
    /* background: linear-gradient(110deg, #51d6f7 0%, #03a9ec 40%, #0092e0 100%); */
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 169, 236, 0.35);
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}

.btn-featured-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    filter: brightness(1.05);
    /* box-shadow: 0 8px 24px rgba(0, 169, 236, 0.45); */
}

.btn-featured-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 26px;
    background: #ffffff;
    color: #222222;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    border: 1px solid #d5e5f5;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.btn-featured-secondary:hover {
    color: #000000;
    transform: translateY(-2px);
    border-color: var(--color-3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   PROJECTS SLICK CAROUSEL SLIDER (BÊN DƯỚI)
============================================================ */
.projects-slider-container {
    margin-top: 50px;
    background: rgb(240 240 240);
    border: 1px solid #e1effa;
    border-radius: 16px;
    padding: 4px 10px;
    box-shadow: 0 8px 24px rgba(0, 80, 180, 0.05);
}

.projects-slider-track.projects-slider-static {
    display: grid;
    grid-template-columns: repeat(var(--project-columns, 6), minmax(0, 1fr));
    gap: 8px;
}

.projects-slider-track.projects-slider-carousel:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
}

.projects-slider-track.projects-slider-carousel:not(.slick-initialized) .project-slide-item {
    flex: 0 0 calc(100% / 6);
}

.project-slide-item {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #0ea5e9;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.projects-slider-track .slick-slide {
    margin: 4px;
}

.projects-slider-track .slick-list {
    margin: 0 -4px;
}

.project-slide-card {
    background: #ffffff;
    border: 1px solid #eaf2fa;
    border-radius: 10px;
    padding: 8px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    cursor: pointer;
}

.project-slide-card.active,
.project-slide-card:hover {
    border-color: var(--color-3);
    box-shadow: 0 6px 18px rgba(0, 169, 236, 0.15);
    transform: translateY(-2px);
}

.project-slide-card.active {
    border-color: #00a9ec;
    border-width: 1.5px;
}

.slide-img-box {
    width: 100%;
    height: 115px;
    border-radius: 8px;
    overflow: hidden;
}

.slide-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px 4px 4px;
}

.slide-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dbe5fc;
    color: #555555;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-slide-card.active .slide-num {
    background: #00a9ec;
    color: #ffffff;
}

.slide-title {
    font-size: 13px;
    font-weight: 800;
    color: #222222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Media Queries for Featured Project */
@media (max-width: 991.98px) {
    .projects-slider-track.projects-slider-static { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .featured-project-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .featured-project-media,
    .featured-project-content {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .featured-project-title {
        font-size: 28px;
    }

    .featured-media-glow {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .projects-slider-track.projects-slider-static { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-project-title {
        font-size: 24px;
    }

    .featured-project-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-featured-primary,
    .btn-featured-secondary {
        width: 100%;
    }
}

/* ============================================================
   TEAM / CORE PERSONNEL SECTION (NHÂN SỰ CỐT LÕI)
============================================================ */
.team-agency-section {
    position: relative;
    padding: 70px 0 80px 0;
    overflow: hidden;
    background: #ffffff;
}

.team-dots-bg {
    display: none;
    position: absolute;
    top: 80px;
    left: 20px;
    width: 140px;
    height: 140px;
    background-image: radial-gradient(#74d7ff 2.5px, transparent 2.5px);
    background-size: 22px 22px;
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
}

.team-dots-bg.bot {
    top: unset;
    bottom: 10px;
    left: 80px;
    background-image: radial-gradient(#00a9ec 2.5px, transparent 2.5px);
}

.team-agency-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 90px 24px;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.team-member-card {
    flex: 0 0 calc(25% - 18px);
    max-width: calc(25% - 18px);
    width: calc(25% - 18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
}

/* Avatar Wrapper with Ring BG and Member Photo */
.member-avatar-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-ring-bg {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 230px;
    height: 230px;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.team-member-card:hover .member-ring-bg {
    transform: translate(-50%, -50%) rotate(15deg);
}

.member-photo {
    position: relative;
    z-index: 2;
    max-height: 290px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 50, 100, 0.1));
}

/* Info Box (White Card overlapping member photo) */
.member-info-box {
    position: relative;
    z-index: 3;
    width: 85%;
    /* margin-top: -25px; */
    background: #ffffff;
    border: 1px solid #eaf0f8;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 50, 120, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-member-card:hover .member-info-box {
    border-color: rgba(0, 169, 236, 0.35);
    box-shadow: 0 8px 25px rgba(0, 169, 236, 0.12);
}

.member-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-3);
    margin-bottom: 2px;
    line-height: 1.3;
}

.member-role {
    font-size: 15px;
    color: #444444;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Social Circles Row */
.member-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.social-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-circle:hover {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.social-circle.font-icon {
    background: #0088cc;
}

.social-circle.insta {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-circle.web {
    background: #00a9ec;
}

.social-circle.tg {
    background: #2abee8;
}

.social-circle.msg {
    background: #0084ff;
}

.social-circle.mail {
    background: #111111;
}

/* Responsive Rules for Team Grid */
@media (max-width: 991.98px) {
    .team-agency-grid {
        gap: 35px 20px;
    }

    .team-member-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        width: calc(50% - 10px);
    }
}

@media (max-width: 575.98px) {
    .team-agency-grid {
        gap: 30px;
    }

    .team-member-card {
        flex: 0 0 100%;
        max-width: 290px;
        width: 100%;
    }
}

/* ============================================================
   NEWS & INSIGHTS SECTION (CẬP NHẬT MỚI TỪ BIVACO)
============================================================ */
.bivaco-news-section {
    position: relative;
    padding: 80px 0 60px 0;
    /* background: linear-gradient(135deg, #eef5ff 0%, #e6f0fa 50%, #dbe9f9 100%); */
    overflow: hidden;
    background: linear-gradient(to left, transparent 0%, rgba(255, 255, 255, 0.75) 35%, #ffffff 45%, #ffffff 100%), linear-gradient(to bottom, #ffffff 0%, rgba(224, 242, 254, 0.65) 0%, #cedefd 100%);
}

.news-dots-bg {
    position: absolute;
    top: -20px;
    right: 80px;
    width: 115px;
    height: 115px;
    background-image: radial-gradient(#00a9ec 2.5px, transparent 2.5px);
    background-size: 20px 20px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

/* Outer Main Card with border-radius & shadow */
.news-main-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    /* box-shadow: 0 12px 40px rgba(0, 50, 120, 0.07);
    border: 1px solid #e2ecf8; */
    padding: 24px 24px 70px 24px;
    margin-top: 45px;
}

/* Bottom Bar: Insight Mới Floating Card (Nằm 1 nửa ở khối trên) */
.news-bottom-bar {
    position: relative;
    z-index: 5;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 12px 35px rgba(0, 50, 120, 0.09);
    border: 1px solid #e2ecf8;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    align-items: center;
    transform: translateY(-50%);
    max-width: calc(100% - 20px);
    margin: 0 auto;

}

/* Top 2 Columns Grid */
.news-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* Left Featured Card */
.news-featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    background: #0d1b2a;
}

.news-featured-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.news-featured-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.news-featured-card:hover .news-featured-bg img {
    transform: scale(1.05);
}

.news-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.1) 0%, rgba(13, 27, 42, 0.85) 70%, rgba(13, 27, 42, 0.95) 100%);
    z-index: 2;
}

.news-featured-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
}

.news-badge-pill {
    display: inline-block;
    background: #00a9ec;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 0 20px 20px 0;
    margin-bottom: 14px;
}

.news-featured-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin-bottom: 10px;
}

.news-featured-excerpt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 20px;
}

.news-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.news-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-arrow-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.news-read-btn:hover .btn-arrow-circle {
    background: #00a9ec;
    transform: translateX(3px);
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

/* Right Column: 3 Items */
.news-list-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.news-item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 12px;
    border-bottom: 1px solid #f0f5fc;
    transition: background 0.3s ease, border-radius 0.3s ease;
}

.news-item-card:last-child {
    border-bottom: none;
}

.news-item-card:hover {
    background: #f8fbff;
    border-radius: 12px;
}

.news-item-num {
    font-size: 50px;
    font-weight: 600;
    color: #00a9ec;
    font-family: inherit;
    min-width: 38px;
    line-height: 1;
    letter-spacing: -2px;
}

.news-item-thumb {
    width: 150px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item-card:hover .news-item-thumb img {
    transform: scale(1.08);
}

.news-item-body {
    flex: 1;
}

.news-item-tag {
    display: inline-block;
    /* background: #eef6ff; */
    color: var(--color-3);
    border: 1px solid var(--color-3);
    font-size: 10px;
    font-weight: 700;
    /* letter-spacing: 0.5px; */
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.news-item-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}

.news-item-title a {
    color: #111111;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item-title a:hover {
    color: #00a9ec;
}

.news-item-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #888888;
}

.news-item-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dce8f8;
    color: #00a9ec;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.news-item-arrow svg {
    width: 20px;
    height: 20px;
}

.news-item-card:hover .news-item-arrow {
    background: #00a9ec;
    border-color: #00a9ec;
    color: #ffffff;
}

/* Bottom Bar: Insight Mới */
.insight-label-box {
    position: relative;
    padding-right: 15px;
    border-right: 1px solid #edf4fc;
}

.insight-title {
    font-size: 16px;
    font-weight: 800;
    color: #00a9ec;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.insight-desc {
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.insight-title-line {
    width: 35px;
    height: 2px;
    background: #00a9ec;
    border-radius: 2px;
}

.insight-cards-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.insight-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 20px;
    border-right: 1px solid #e2ecf8;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.insight-card:last-of-type {
    border-right: none;
    padding-right: 0;
}


.insight-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.insight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-info {
    flex: 1;
}

.insight-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-card-title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.insight-card-title a:hover {
    color: #00a9ec;
}

.insight-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888888;
}

.insight-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00a9ec;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 169, 236, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.insight-action-btn:hover {
    background: #0092cd;
    transform: scale(1.03);
}

/* Responsive Rules for News Section */
@media (max-width: 991.98px) {
    .news-top-grid {
        grid-template-columns: 1fr;
    }

    .news-bottom-bar {
        grid-template-columns: 1fr;
        margin-top: 25px;
    }

    .insight-cards-row {
        flex-wrap: wrap;
    }

    .insight-card {
        flex: 0 0 calc(50% - 10px);
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 575.98px) {
    .insight-card {
        flex: 0 0 100%;
    }

    .news-featured-title {
        font-size: 18px;
    }

    .news-item-card {
        flex-wrap: wrap;
    }
}

/* ============================================================
   TESTIMONIALS SECTION (CẢM NHẬN KHÁCH HÀNG)
============================================================ */
.testimonials-agency-section {
    position: relative;
    padding: 80px 0 90px 0;
    background: #f6f8fd;
    overflow: hidden;
}

.testimonials-slider-wrapper {
    margin-top: 50px;
}

.testimonial-slide-item {
    margin: 10px 20px;
}

.testimonials-slider-track .slick-list {
    margin: 0 -20px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 25px 30px 25px;
    /* box-shadow: 0 10px 30px rgba(0, 50, 120, 0.05); */
    border: 1px solid #eef5fc;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 14px 35px rgba(0, 169, 236, 0.1); */
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px auto;
    border: 3px solid #eef5ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-name {
    font-size: 20px;
    font-weight: 700;
    color: #00a9ec;
    margin-bottom: 3px;
}

.client-role {
    font-size: 16px;
    color: #666666;
    font-weight: 500;
    margin-bottom: 12px;
}

.quote-icon {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
}

.quote-icon img {
    width: 30px;
    height: auto;
    display: block;
    transform: rotate(180deg);
}

.testimonial-quote {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* Slick Dots Customization for Testimonials */
.testimonials-slider-track .slick-dots {
    position: relative;
    bottom: 0;
    margin-top: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.testimonials-slider-track .slick-dots li button:before {
    display: none;
}


.testimonials-slider-track .slick-dots li.slick-active {
    background-color: var(--color-3);
}

.testimonials-slider-track .slick-dots li,
.testimonials-slider-track .slick-dots li button {
    width: 15px;
    height: 15px;
    background-color: #dbe5fc;
}


/* ============================================================
   CONSULTATION & CONTACT SECTION (ĐĂNG KÝ TƯ VẤN)
============================================================ */
.consultation-section {
    position: relative;
    padding: 90px 0 90px 0;
    overflow: hidden;
    background: radial-gradient(circle at 85% 20%, rgba(27, 119, 255, .11), transparent 26%), radial-gradient(circle at 12% 88%, rgba(86, 165, 255, .10), transparent 25%);
}

.consultation-section::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -130px;
    top: 30px;
    border: 1px solid rgba(30, 111, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(30, 111, 255, .03), 0 0 0 90px rgba(30, 111, 255, .02);
}

.consult-bg-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 169, 236, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.consult-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Column Styling */
.consult-left-info {
    padding-right: 10px;
}

.sec-brand-tag-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00a9ec;
    font-size: 15px;
    font-weight: 800;
    /* letter-spacing: 1px; */
    margin-bottom: 12px;
}

.consult-main-title {
    font-size: 46px;
    font-weight: 800;
    color: #0d1b2a;
    line-height: 1.25;
    margin-bottom: 16px;
}

.consult-main-title .highlight-blue {
    color: #00a9ec;
}

.consult-main-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Feature List */
.consult-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.consult-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 169, 236, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e2ecf8;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 15px;
    color: #666666;
    line-height: 1.45;
    margin: 0;
}

/* Hotline & Working Hours Card */
.consult-contact-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 8px 25px rgba(0, 50, 120, 0.05);
    border: 1px solid #eaf2fc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-box-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #00a9ec;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 169, 236, 0.25);
}

/* 
.contact-icon-bg.clock-bg {
    background: #0077ff;
} */

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.contact-val {
    font-size: 16px;
    font-weight: 700;
    color: #0d1b2a;
}

.contact-val.phone-val {
    font-size: 18px;
    color: #00a9ec;
    text-decoration: none;
}

.contact-box-divider {
    width: 1px;
    height: 36px;
    background: #edf4fc;
}

/* Right Column Form Styling */
.consult-right-form {
    position: relative;
    z-index: 2;
}

.form-card-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 15px 45px rgba(0, 60, 150, 0.08);
    border: 1px solid #e4effc;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.form-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-title {
    font-size: 24px;
    font-weight: 800;
    color: #0d1b2a;
    margin-bottom: 2px;
}

.form-subtitle {
    font-size: 13px;
    color: #777777;
    margin: 0;
}

/* Form Inputs */
.consult-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.form-control-custom {
    width: 100%;
    height: 48px;
    padding: 10px 16px 10px 46px;
    background: #ffffff;
    border: 1px solid #e1ebf7;
    border-radius: 12px;
    font-size: 16px;
    color: #222222;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control-custom:focus {
    border-color: #00a9ec;
    box-shadow: 0 0 0 3px rgba(0, 169, 236, 0.12);
}

.form-select-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-input-group.textarea-group {
    align-items: flex-start;
}

.textarea-icon {
    top: 14px;
}

.form-textarea-custom {
    height: auto;
    min-height: 90px;
    padding-top: 14px;
    resize: vertical;
}

.form-privacy-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #777777;
    margin-top: 2px;
    margin-bottom: 6px;
}

.btn-submit-consult {
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, #00a9ec 0%, #0084ff 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 84, 255, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-submit-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 84, 255, 0.38);
    background: linear-gradient(90deg, #0045e0 0%, #0073e6 100%);
}

/* Bottom Trust Badges Bar */
.consult-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 28px;
    box-shadow: 0 10px 30px rgba(0, 50, 120, 0.05);
    border: 1px solid #eef5fc;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.trust-badge-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-right: 15px;
    border-right: 1px solid #edf4fc;
}

.trust-badge-item:last-child {
    border-right: none;
    padding-right: 0;
}

.trust-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-info {
    flex: 1;
}

.trust-title {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 3px;
}

.trust-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Rules for Consultation Section */
@media (max-width: 991.98px) {
    .consult-top-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .consult-trust-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .trust-badge-item {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 575.98px) {
    .consult-main-title {
        font-size: 28px;
    }

    .consult-contact-card {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .contact-box-divider {
        width: 100%;
        height: 1px;
    }

    .consult-trust-bar {
        grid-template-columns: 1fr;
    }
}

/* V35 - TEAM: remove decorative circular background, keep only clean inner outline */
.team-agency-section{background:#fff!important;}
.team-agency-section .team-dots-bg{display:none!important;}
.team-agency-section .member-ring-bg{display:none!important;}
.team-agency-section .member-avatar-wrapper{background:transparent!important;}
.team-agency-section .member-avatar-wrapper::before{background:none!important;background-image:none!important;box-shadow:none!important;}
.team-agency-section .member-avatar-wrapper::before{display:none!important;content:none!important;background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;}
.team-agency-section .member-avatar-wrapper::after{display:none!important;content:none!important;background:none!important;}

/* ============================================================
   BIVACO MOBILE HOMEPAGE V40 — matched to approved mobile mockup
   Desktop/tablet are intentionally untouched.
============================================================ */
@media (max-width: 767.98px) {
    .agency-home .ctnr {
        width: 100% !important;
        max-width: none !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* HERO */
    .agency-home .hero-agency-section {
        padding: 28px 0 18px !important;
        min-height: 0 !important;
        background-position: center top !important;
    }
    .agency-home .hero-agency-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
        text-align: center !important;
    }
    .agency-home .hero-agency-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .agency-home .hero-agency-content .sec-brand-tag {
        font-size: 12px !important;
        letter-spacing: .04em !important;
        margin-bottom: 8px !important;
    }
    .agency-home .hero-agency-content .sec-title {
        max-width: 330px !important;
        margin: 0 auto !important;
        font-size: 25px !important;
        line-height: 1.16 !important;
        font-weight: 700 !important;
        letter-spacing: -.025em !important;
    }
    .agency-home .hero-agency-content .sec-title-line { margin: 10px auto 12px !important; }
    .agency-home .hero-agency-subtitle {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin: 0 auto 8px !important;
        max-width: 340px !important;
    }
    .agency-home .hero-agency-desc {
        max-width: 350px !important;
        margin: 0 auto !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .agency-home .hero-agency-btns {
        width: auto !important;
        margin: 16px auto 0 !important;
        display: flex !important;
        justify-content: center !important;
    }
    .agency-home .btn-hero-primary,
    .agency-home .btn-hero-secondary {
        width: auto !important;
        min-width: 138px !important;
        min-height: 40px !important;
        padding: 0 18px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
    }
    .agency-home .hero-agency-media {
        width: 100% !important;
        max-width: 390px !important;
        margin: 0 auto !important;
        min-height: 0 !important;
    }
    .agency-home .hero-agency-media .media-image-box {
        max-width: 390px !important;
        margin: 0 auto !important;
    }
    .agency-home .hero-agency-media img {
        width: 100% !important;
        max-height: 330px !important;
        object-fit: contain !important;
        object-position: center bottom !important;
    }
    .agency-home .media-glow-bg { display: none !important; }

    /* HERO PARTNERS */
    .agency-home .hero-partners-section { padding: 8px 0 16px !important; }
    .agency-home .hero-partners-viewport {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .agency-home .hero-partners-viewport::-webkit-scrollbar { display: none; }
    .agency-home .hero-partners-track,
    .agency-home .hero-partners-track.is-static,
    .agency-home .hero-partners-track.is-marquee {
        display: flex !important;
        width: max-content !important;
        gap: 8px !important;
        animation: none !important;
        transform: none !important;
    }
    .agency-home .hero-partner-card {
        flex: 0 0 122px !important;
        width: 122px !important;
        height: 64px !important;
        min-height: 64px !important;
        padding: 8px 10px !important;
        border-radius: 9px !important;
        scroll-snap-align: start;
    }
    .agency-home .hero-partner-card img { max-height: 44px !important; }

    /* MOTTO / PHƯƠNG CHÂM — compact like mockup */
    .agency-home .motto-agency-section { padding: 30px 0 36px !important; }
    .agency-home .motto-agency-wrapper { display: block !important; }
    .agency-home .motto-agency-media { display: none !important; }
    .agency-home .motto-agency-content {
        width: 100% !important;
        max-width: none !important;
        text-align: center !important;
    }
    .agency-home .motto-agency-desc {
        max-width: 360px !important;
        margin: 10px auto 18px !important;
        text-align: center !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .agency-home .motto-stats-card {
        display: grid !important;
        grid-template-columns: repeat(3,minmax(0,1fr)) !important;
        gap: 8px !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }
    .agency-home .motto-stats-card .stat-divider { display: none !important; }
    .agency-home .motto-stats-card .stat-item {
        min-width: 0 !important;
        padding: 18px 8px !important;
        border: 1px solid #e8eef6 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(15,23,42,.045) !important;
    }
    .agency-home .stat-number { font-size: 23px !important; line-height: 1.1 !important; }
    .agency-home .stat-label { font-size: 10px !important; line-height: 1.35 !important; margin-top: 7px !important; }

    /* SERVICES — 2 compact columns */
    .agency-home .services-agency-section { padding: 38px 0 42px !important; }
    .agency-home .services-center-media { display: none !important; }
    .agency-home .services-agency-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    .agency-home .services-column {
        display: contents !important;
    }
    .agency-home .service-card,
    .agency-home .services-left .service-card,
    .agency-home .services-right .service-card {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 104px !important;
        margin: 0 !important;
        padding: 13px 11px !important;
        gap: 9px !important;
        align-items: flex-start !important;
        border-radius: 11px !important;
        box-shadow: 0 6px 20px rgba(15,23,42,.045) !important;
    }
    .agency-home .service-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 8px !important;
    }
    .agency-home .service-icon .material-icons-outlined { font-size: 20px !important; }
    .agency-home .service-name { font-size: 12px !important; line-height: 1.35 !important; margin-bottom: 4px !important; }
    .agency-home .service-desc {
        font-size: 9.5px !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* FEATURED PROJECT — one compact active card + horizontal selector */
    .agency-home .featured-project-section { padding: 40px 0 42px !important; }
    .agency-home .featured-project-stage { margin-top: 22px !important; }
    .agency-home .featured-project-wrapper {
        display: none !important;
        flex-direction: column !important;
        gap: 0 !important;
        overflow: hidden !important;
        border: 1px solid #e7edf5 !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 12px 32px rgba(15,23,42,.06) !important;
    }
    .agency-home .featured-project-wrapper.is-active { display: flex !important; }
    .agency-home .featured-project-media,
    .agency-home .featured-project-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    .agency-home .featured-project-media { padding: 0 !important; }
    .agency-home .featured-media-box {
        width: 100% !important;
        height: 205px !important;
        min-height: 205px !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }
    .agency-home .featured-media-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .agency-home .featured-media-glow { display: none !important; }
    .agency-home .featured-project-content { padding: 17px 16px 16px !important; }
    .agency-home .featured-badge-pill { font-size: 9px !important; margin-bottom: 10px !important; }
    .agency-home .featured-project-title { font-size: 17px !important; line-height: 1.3 !important; margin-bottom: 7px !important; }
    .agency-home .featured-project-subtitle { font-size: 11px !important; line-height: 1.45 !important; }
    .agency-home .featured-project-desc {
        font-size: 10px !important;
        line-height: 1.5 !important;
        margin-top: 8px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .agency-home .featured-info-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-top: 12px !important;
    }
    .agency-home .featured-info-grid .info-item {
        width: auto !important;
        min-height: 0 !important;
        padding: 5px 8px !important;
        border-radius: 999px !important;
        gap: 5px !important;
    }
    .agency-home .featured-info-grid .info-icon { width: 18px !important; height: 18px !important; }
    .agency-home .featured-info-grid .info-label { display: none !important; }
    .agency-home .featured-info-grid .info-val { font-size: 9px !important; white-space: nowrap !important; }
    .agency-home .featured-project-btns {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 14px !important;
    }
    .agency-home .btn-featured-primary,
    .agency-home .btn-featured-secondary {
        width: 100% !important;
        min-height: 38px !important;
        padding: 0 8px !important;
        font-size: 10px !important;
        border-radius: 8px !important;
    }
    .agency-home .projects-slider-container { margin-top: 12px !important; overflow: hidden !important; }
    .agency-home .projects-slider-track,
    .agency-home .projects-slider-track.projects-slider-static {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        padding: 2px 1px 8px !important;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .agency-home .projects-slider-track::-webkit-scrollbar { display: none; }
    .agency-home .project-slide-item {
        flex: 0 0 46% !important;
        width: 46% !important;
        min-width: 140px !important;
        scroll-snap-align: start;
    }
    .agency-home .project-slide-card { padding: 5px !important; border-radius: 10px !important; }
    .agency-home .slide-img-box { height: 78px !important; }
    .agency-home .slide-card-label { padding: 6px 2px 2px !important; gap: 5px !important; }
    .agency-home .slide-num { width: 19px !important; height: 19px !important; font-size: 9px !important; }
    .agency-home .slide-title { font-size: 9px !important; }

    /* TEAM — horizontal carousel, compact cards */
    .agency-home .team-agency-section { padding: 40px 0 44px !important; }
    .agency-home .team-agency-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        padding: 4px 2px 12px !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .agency-home .team-agency-grid::-webkit-scrollbar { display: none; }
    .agency-home .team-member-card {
        flex: 0 0 42% !important;
        width: 42% !important;
        max-width: 160px !important;
        min-width: 146px !important;
        scroll-snap-align: start;
    }
    .agency-home .team-agency-section .member-avatar-wrapper {
        min-height: 145px !important;
        height: 145px !important;
    }
    .agency-home .team-agency-section .member-photo {
        height: 145px !important;
        max-width: 100% !important;
    }
    .agency-home .member-info-box {
        min-height: 88px !important;
        padding: 10px 7px 8px !important;
        border-radius: 10px !important;
    }
    .agency-home .member-name { font-size: 11px !important; line-height: 1.3 !important; }
    .agency-home .member-role { font-size: 8.5px !important; line-height: 1.35 !important; margin-bottom: 5px !important; }
    .agency-home .team-member-socials { gap: 4px !important; margin-top: 5px !important; }
    .agency-home .team-member-socials a { width: 22px !important; height: 22px !important; }
    .agency-home .team-member-socials svg { width: 12px !important; height: 12px !important; }

    /* NEWS — 1 feature + 3 compact rows; insight is horizontal */
    .agency-home .bivaco-news-section { padding: 40px 0 44px !important; }
    .agency-home .news-main-card { margin-top: 22px !important; padding: 0 !important; background: transparent !important; }
    .agency-home .news-top-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
    .agency-home .news-featured-card { min-height: 240px !important; border-radius: 13px !important; overflow: hidden !important; }
    .agency-home .news-featured-content { padding: 15px !important; }
    .agency-home .news-badge-pill { font-size: 9px !important; padding: 5px 8px !important; }
    .agency-home .news-featured-excerpt {
        font-size: 10px !important;
        line-height: 1.45 !important;
        -webkit-line-clamp: 2 !important;
    }
    .agency-home .news-list-column { gap: 6px !important; }
    .agency-home .news-item-card {
        display: grid !important;
        grid-template-columns: 34px 68px minmax(0,1fr) 22px !important;
        gap: 7px !important;
        align-items: center !important;
        min-height: 72px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }
    .agency-home .news-item-num { font-size: 22px !important; }
    .agency-home .news-item-thumb { width: 68px !important; height: 50px !important; border-radius: 7px !important; }
    .agency-home .news-item-title { font-size: 10px !important; line-height: 1.35 !important; -webkit-line-clamp: 2 !important; }
    .agency-home .news-item-tag, .agency-home .news-item-date { font-size: 8px !important; }
    .agency-home .news-item-arrow { width: 22px !important; height: 22px !important; }
    .agency-home .news-bottom-bar {
        display: block !important;
        margin-top: 14px !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }
    .agency-home .insight-cards-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 5px !important;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }
    .agency-home .insight-cards-row::-webkit-scrollbar { display:none; }
    .agency-home .insight-card {
        flex: 0 0 78% !important;
        min-width: 250px !important;
        padding: 8px !important;
        border: 1px solid #edf2f7 !important;
        border-radius: 10px !important;
        scroll-snap-align: start;
    }
    .agency-home .insight-thumb { width: 56px !important; height: 56px !important; }
    .agency-home .insight-card-title { font-size: 10px !important; }
    .agency-home .insight-card-date { font-size: 8px !important; }

    /* TESTIMONIALS — one card per swipe */
    .agency-home .testimonials-agency-section { padding: 40px 0 44px !important; }
    .agency-home .bivaco-testimonial-viewport { margin-top: 22px !important; overflow: hidden !important; }
    .agency-home .bivaco-testimonial-track,
    .agency-home .bivaco-testimonial-track.is-static {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 10px !important;
        overflow-x: auto !important;
        transform: none !important;
        transition: none !important;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }
    .agency-home .bivaco-testimonial-track::-webkit-scrollbar { display:none; }
    .agency-home .bivaco-testimonial-item {
        flex: 0 0 88% !important;
        min-width: 88% !important;
        scroll-snap-align: center;
    }
    .agency-home .testimonial-card { min-height: 0 !important; padding: 22px 18px !important; border-radius: 12px !important; }
    .agency-home .testimonial-avatar { width: 58px !important; height: 58px !important; margin-bottom: 9px !important; }
    .agency-home .client-name { font-size: 12px !important; }
    .agency-home .client-role { font-size: 9px !important; }
    .agency-home .testimonial-quote { font-size: 10px !important; line-height: 1.55 !important; }
    .agency-home .bivaco-testimonial-dots { margin-top: 12px !important; }

    /* CONSULTATION — compact, mockup-like */
    .agency-home .consultation-section { padding: 40px 0 36px !important; }
    .agency-home .consult-top-grid { display: block !important; }
    .agency-home .consult-left-info { margin-bottom: 14px !important; }
    .agency-home .consult-main-title { font-size: 20px !important; line-height: 1.25 !important; margin-bottom: 8px !important; }
    .agency-home .consult-main-desc { font-size: 10px !important; line-height: 1.5 !important; }
    .agency-home .consult-feature-list { display: none !important; }
    .agency-home .consult-contact-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 10px !important;
        border-radius: 11px !important;
        align-items: stretch !important;
    }
    .agency-home .contact-box-divider { display: none !important; }
    .agency-home .contact-box-item { min-width: 0 !important; padding: 8px !important; }
    .agency-home .contact-icon-bg { width: 30px !important; height: 30px !important; }
    .agency-home .contact-label { font-size: 8px !important; }
    .agency-home .contact-value { font-size: 10px !important; line-height: 1.35 !important; }
    .agency-home .consult-form-card { padding: 16px !important; border-radius: 13px !important; }
    .agency-home .consult-form-title { font-size: 15px !important; }
    .agency-home .consult-form-subtitle { font-size: 9px !important; }
    .agency-home .consult-form-card input,
    .agency-home .consult-form-card select,
    .agency-home .consult-form-card textarea { font-size: 11px !important; min-height: 42px !important; }
    .agency-home .consult-form-card textarea { min-height: 82px !important; }
    .agency-home .btn-submit-consult { min-height: 42px !important; font-size: 11px !important; border-radius: 8px !important; }
    .agency-home .consult-trust-bar {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 8px !important;
        padding: 12px !important;
        margin-top: 14px !important;
        border-radius: 12px !important;
    }
    .agency-home .trust-badge-item { gap: 7px !important; align-items: center !important; }
    .agency-home .trust-icon-circle { width: 28px !important; height: 28px !important; }
    .agency-home .trust-title { font-size: 10px !important; line-height: 1.35 !important; }
    .agency-home .trust-desc { font-size: 8px !important; line-height: 1.35 !important; }
}


/* ============================================================
   BIVACO MOBILE HOMEPAGE V59 — approved mockup alignment
   This block intentionally overrides the older V40 mobile patch only.
============================================================ */
@media (max-width: 767.98px) {
    /* Section rhythm / typography */
    .agency-home [data-home-section] {
        scroll-margin-top: 64px;
    }
    /* Hero: compact first screen like approved mockup */
    .agency-home .hero-agency-section {
        padding: 22px 0 10px !important;
    }
    .agency-home .hero-agency-wrapper {
        gap: 12px !important;
    }
    .agency-home .hero-agency-content .sec-brand-tag {
        font-size: 11px !important;
        margin-bottom: 7px !important;
    }
    .agency-home .hero-agency-content .sec-title {
        font-size: 22px !important;
        line-height: 1.18 !important;
        font-weight: 700 !important;
        max-width: 320px !important;
    }
    .agency-home .hero-agency-subtitle {
        font-size: 12px !important;
        line-height: 1.45 !important;
        margin-bottom: 6px !important;
    }
    .agency-home .hero-agency-desc {
        font-size: 10.5px !important;
        line-height: 1.5 !important;
        max-width: 340px !important;
        -webkit-line-clamp: 3 !important;
    }
    .agency-home .hero-agency-btns {
        margin-top: 12px !important;
    }
    .agency-home .btn-hero-primary,
    .agency-home .btn-hero-secondary {
        min-height: 38px !important;
        min-width: 132px !important;
        font-size: 10px !important;
    }
    .agency-home .hero-agency-media {
        max-width: 360px !important;
    }
    .agency-home .hero-agency-media img {
        max-height: 285px !important;
    }

    /* Partners: 3-ish logos visible */
    .agency-home .hero-partners-section {
        padding: 5px 0 16px !important;
    }
    .agency-home .hero-partner-card {
        flex-basis: 112px !important;
        width: 112px !important;
        height: 58px !important;
        min-height: 58px !important;
        padding: 7px 9px !important;
    }
    .agency-home .hero-partner-card img {
        max-height: 40px !important;
    }

    /* Motto */
    .agency-home .motto-agency-section {
        padding: 28px 0 32px !important;
    }
    .agency-home .motto-agency-desc {
        font-size: 10.5px !important;
        line-height: 1.5 !important;
        margin: 8px auto 14px !important;
    }
    .agency-home .motto-stats-card .stat-item {
        min-height: 112px !important;
        padding: 16px 6px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .agency-home .stat-number {
        font-size: 21px !important;
    }
    .agency-home .stat-label {
        font-size: 9px !important;
    }

    /* Services */
    .agency-home .services-agency-section {
        padding: 34px 0 38px !important;
    }
    .agency-home .service-card,
    .agency-home .services-left .service-card,
    .agency-home .services-right .service-card {
        min-height: 94px !important;
        padding: 11px 10px !important;
    }
    .agency-home .service-name {
        font-size: 10.5px !important;
        font-weight: 650 !important;
    }
    .agency-home .service-desc {
        font-size: 8.5px !important;
        line-height: 1.35 !important;
        -webkit-line-clamp: 2 !important;
    }

    /* Featured project: horizontal compact card + dot selector */
    .agency-home .featured-project-section {
        padding: 36px 0 38px !important;
    }
    .agency-home .featured-project-wrapper.is-active {
        display: grid !important;
        grid-template-columns: 44% 56% !important;
        align-items: stretch !important;
    }
    .agency-home .featured-project-media {
        min-width: 0 !important;
        height: 100% !important;
    }
    .agency-home .featured-media-box {
        height: 100% !important;
        min-height: 245px !important;
        border-radius: 0 !important;
    }
    .agency-home .featured-media-box img {
        object-fit: cover !important;
    }
    .agency-home .featured-project-content {
        min-width: 0 !important;
        padding: 14px 12px 12px !important;
    }
    .agency-home .featured-badge-pill {
        font-size: 8px !important;
        margin-bottom: 7px !important;
    }
    .agency-home .featured-project-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }
    .agency-home .featured-project-subtitle {
        font-size: 9px !important;
        line-height: 1.35 !important;
    }
    .agency-home .featured-project-desc {
        font-size: 8.5px !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 2 !important;
        margin-top: 6px !important;
    }
    .agency-home .featured-info-grid {
        margin-top: 9px !important;
        gap: 4px !important;
    }
    .agency-home .featured-info-grid .info-item {
        padding: 4px 6px !important;
    }
    .agency-home .featured-info-grid .info-val {
        font-size: 7.5px !important;
    }
    .agency-home .featured-project-btns {
        gap: 5px !important;
        margin-top: 10px !important;
    }
    .agency-home .btn-featured-primary,
    .agency-home .btn-featured-secondary {
        min-height: 31px !important;
        padding: 0 5px !important;
        font-size: 7.5px !important;
    }
    .agency-home .projects-slider-container {
        margin-top: 11px !important;
        overflow: visible !important;
    }
    .agency-home .projects-slider-track,
    .agency-home .projects-slider-track.projects-slider-static {
        justify-content: center !important;
        align-items: center !important;
        overflow: visible !important;
        gap: 6px !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .agency-home .project-slide-item {
        flex: 0 0 7px !important;
        width: 7px !important;
        min-width: 7px !important;
        height: 7px !important;
    }
    .agency-home .project-slide-card {
        width: 7px !important;
        height: 7px !important;
        min-height: 7px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: #d9e1ec !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }
    .agency-home .project-slide-card > * {
        display: none !important;
    }
    .agency-home .project-slide-card.active {
        background: var(--color-3, #1677ff) !important;
        transform: scale(1.25) !important;
    }

    /* Team: ~3 cards visible, matching approved mockup */
    .agency-home .team-agency-section {
        padding: 36px 0 38px !important;
    }
    .agency-home .team-agency-grid {
        gap: 8px !important;
        padding-bottom: 10px !important;
    }
    .agency-home .team-member-card {
        flex: 0 0 31% !important;
        width: 31% !important;
        min-width: 108px !important;
        max-width: 124px !important;
    }
 .agency-home .team-agency-section .member-avatar-wrapper {
    min-height: 220px !important;
    height: 220px !important;
}

.agency-home .team-agency-section .member-photo {
    height: 205px !important;
    max-height: 205px !important;
    width: auto !important;
    transform: scale(1.08) !important;
    transform-origin: center bottom !important;
}
    .agency-home .member-info-box {
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 8px 9px !important;
}
    .agency-home .member-name {
        font-size: 9px !important;
        line-height: 1.3 !important;
    }
    .agency-home .member-role {
        font-size: 7.5px !important;
        line-height: 1.3 !important;
        margin-bottom: 3px !important;
    }
    .agency-home .team-member-socials a {
        width: 19px !important;
        height: 19px !important;
    }
    .agency-home .team-member-socials svg {
        width: 10px !important;
        height: 10px !important;
    }

    /* News: compact horizontal featured story, then 3 rows */
    .agency-home .bivaco-news-section {
        padding: 36px 0 38px !important;
    }
    .agency-home .news-main-card {
        margin-top: 18px !important;
    }
    .agency-home .news-featured-card {
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 44% 56% !important;
        padding: 0 !important;
        background: #fff !important;
        border: 1px solid #e5ecf4 !important;
        box-shadow: 0 8px 22px rgba(15,23,42,.05) !important;
    }
    .agency-home .news-featured-bg {
        position: relative !important;
        width: 100% !important;
        height: 142px !important;
        z-index: 1 !important;
    }
    .agency-home .news-featured-overlay {
        display: none !important;
    }
    .agency-home .news-featured-content {
        padding: 11px 10px !important;
        color: #0f172a !important;
        align-self: center !important;
    }
    .agency-home .news-badge-pill {
        font-size: 7px !important;
        padding: 4px 6px !important;
        margin-bottom: 6px !important;
        border-radius: 999px !important;
    }
    .agency-home .news-featured-title {
        font-size: 10.5px !important;
        line-height: 1.35 !important;
        font-weight: 650 !important;
        margin: 0 0 5px !important;
        color: #0f172a !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
        overflow: hidden !important;
    }
    .agency-home .news-featured-title a {
        color: inherit !important;
        text-decoration: none !important;
    }
    .agency-home .news-featured-excerpt {
        font-size: 8px !important;
        line-height: 1.4 !important;
        color: #64748b !important;
        margin-bottom: 6px !important;
        -webkit-line-clamp: 2 !important;
    }
    .agency-home .news-featured-footer {
        gap: 5px !important;
    }
    .agency-home .news-read-btn,
    .agency-home .news-date {
        font-size: 7px !important;
    }
    .agency-home .news-item-card {
        grid-template-columns: 28px 58px minmax(0,1fr) 20px !important;
        min-height: 64px !important;
        padding: 7px 6px !important;
    }
    .agency-home .news-item-num {
        font-size: 18px !important;
    }
    .agency-home .news-item-thumb {
        width: 58px !important;
        height: 44px !important;
    }
    .agency-home .news-item-title {
        font-size: 9px !important;
    }
    .agency-home .news-item-tag,
    .agency-home .news-item-date {
        font-size: 7px !important;
    }
    .agency-home .news-bottom-bar {
        margin-top: 10px !important;
        padding: 10px !important;
    }
    .agency-home .insight-card {
        flex-basis: 72% !important;
        min-width: 220px !important;
    }

    /* Testimonials: 2 compact cards visible as in the mockup */
    .agency-home .testimonials-agency-section {
        padding: 36px 0 38px !important;
    }
    .agency-home .bivaco-testimonial-item {
        flex: 0 0 calc(50% - 5px) !important;
        min-width: calc(50% - 5px) !important;
    }
    .agency-home .testimonial-card {
        padding: 15px 9px !important;
        min-height: 190px !important;
    }
    .agency-home .testimonial-avatar {
        width: 46px !important;
        height: 46px !important;
    }
    .agency-home .client-name {
        font-size: 9px !important;
    }
    .agency-home .client-role {
        font-size: 7px !important;
    }
    .agency-home .testimonial-quote {
        font-size: 13px !important;
        line-height: 1.55 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 6 !important;
        overflow: hidden !important;
    }

    /* Consultation: only the compact fields shown in approved mobile mockup */
    .agency-home .consultation-section {
        padding: 34px 0 24px !important;
    }
    .agency-home .consult-left-info {
        margin-bottom: 10px !important;
    }
    .agency-home .consult-main-title {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }
    .agency-home .consult-main-desc {
        font-size: 8.5px !important;
        line-height: 1.45 !important;
    }
    .agency-home .form-card-container {
        padding: 12px !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 24px rgba(15,23,42,.06) !important;
    }
    .agency-home .form-header {
        margin-bottom: 8px !important;
    }
    .agency-home .form-title {
        font-size: 11px !important;
    }
    .agency-home .form-subtitle {
        font-size: 7.5px !important;
        line-height: 1.35 !important;
    }
    .agency-home .consult-form {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 7px !important;
    }
    .agency-home .consult-form > .form-input-group {
        margin: 0 !important;
    }
    .agency-home .consult-form > .form-input-group:nth-of-type(n+3),
    .agency-home .consult-form > .form-privacy-note {
        display: none !important;
    }
    .agency-home .consult-form .form-control-custom {
        min-height: 36px !important;
        height: 36px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        font-size: 8px !important;
    }
    .agency-home .consult-form .input-icon {
        transform: scale(.72) !important;
        transform-origin: center !important;
    }
    .agency-home .btn-submit-consult {
        grid-column: 1 / -1 !important;
        min-height: 36px !important;
        font-size: 8.5px !important;
        margin: 0 !important;
    }
    .agency-home .consult-trust-bar {
        display: none !important;
    }
}

/* ============================================================
   BIVACO MOBILE SECTION TITLE MASTER — FINAL
   Chuẩn thống nhất theo khối "Nhân sự cốt lõi":
   - Tiêu đề xanh: 23px / 700
   - Gạch xanh: 46 x 2px
   - Dòng phụ đen: 13px / 400
   - Thứ tự: XANH -> GẠCH -> ĐEN
   Hero giữ nguyên thiết kế riêng.
============================================================ */
@media (max-width: 767.98px) {

    /* --------------------------------------------------------
       TITLE BOX CHUNG
    -------------------------------------------------------- */
    .agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 22px !important;
        padding: 0 !important;
        text-align: center !important;
    }

    /* Tiêu đề chính màu xanh */
    .agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-brand-tag,
    .agency-home .team-agency-section .team-section-brand {
        order: 1 !important;
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        color: var(--color-3, #08a9e8) !important;
        font-family: "Nunito", Arial, sans-serif !important;
        font-size: 23px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
        font-style: normal !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        text-align: center !important;
    }

    /* Gạch xanh nằm NGAY dưới tiêu đề xanh */
    .agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-title-line,
    .agency-home .team-agency-section .sec-title-line {
        order: 2 !important;
        display: block !important;
        width: 46px !important;
        min-width: 46px !important;
        height: 2px !important;
        min-height: 2px !important;
        margin: 10px auto 10px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 2px !important;
        background: var(--color-3, #08a9e8) !important;
    }

    /* Dòng phụ màu đen */
    .agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-title,
    .agency-home .team-agency-section .team-intro-text {
        order: 3 !important;
        display: block !important;
        width: auto !important;
        max-width: 360px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        color: #13243a !important;
        font-family: "Nunito", Arial, sans-serif !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        font-weight: 400 !important;
        font-style: normal !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        text-align: center !important;
    }

    /* Nếu section có thêm description bên dưới */
    .agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > p:not(.team-intro-text) {
        order: 4 !important;
        max-width: 360px !important;
        margin: 6px auto 0 !important;
        padding: 0 !important;
        color: #536174 !important;
        font-family: "Nunito", Arial, sans-serif !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
        font-weight: 400 !important;
        text-align: center !important;
    }

    /* --------------------------------------------------------
       PHƯƠNG CHÂM:
       markup hiện tại không dùng sec-title-box nên sắp lại riêng
       thành XANH -> GẠCH -> ĐEN -> MÔ TẢ -> THỐNG KÊ
    -------------------------------------------------------- */
    .agency-home [data-home-section="about"] .motto-agency-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .agency-home [data-home-section="about"] .motto-agency-content > .sec-brand-tag {
        order: 1 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        color: var(--color-3, #08a9e8) !important;
        font-family: "Nunito", Arial, sans-serif !important;
        font-size: 23px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
    }

    .agency-home [data-home-section="about"] .motto-agency-content > .sec-title-line {
        order: 2 !important;
        width: 46px !important;
        min-width: 46px !important;
        height: 2px !important;
        min-height: 2px !important;
        margin: 10px auto 10px !important;
        padding: 0 !important;
        background: var(--color-3, #08a9e8) !important;
        border-radius: 2px !important;
    }

    .agency-home [data-home-section="about"] .motto-agency-content > .sec-title {
        order: 3 !important;
        max-width: 360px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        color: #13243a !important;
        font-family: "Nunito", Arial, sans-serif !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
    }

    .agency-home [data-home-section="about"] .motto-agency-desc {
        order: 4 !important;
        width: 100% !important;
        max-width: 360px !important;
        margin: 16px auto 18px !important;
    }

    .agency-home [data-home-section="about"] .motto-stats-card {
        order: 5 !important;
        width: 100% !important;
    }

    /* --------------------------------------------------------
       CÁC FILE BLADE CŨ ĐANG INLINE !important
       services / news / testimonials.
       CSS không thể thắng inline !important bằng font-size,
       nên dùng zoom chính xác để đưa visual về cùng chuẩn.
    -------------------------------------------------------- */

    /* Services + Testimonials: inline 18px -> visual ~13px */
    .agency-home [data-home-section="services"] .sec-title-box > .sec-title,
    .agency-home [data-home-section="testimonials"] .sec-title-box > .sec-title {
        zoom: .722222 !important;
    }

    /* News: inline 26px -> visual ~23px */
    .agency-home [data-home-section="news"] .sec-title-box > .sec-brand-tag {
        zoom: .884615 !important;
    }

    /* News: inline 18px -> visual ~13px */
    .agency-home [data-home-section="news"] .sec-title-box > .sec-title {
        zoom: .722222 !important;
    }

    /* Sau khi zoom vẫn căn giữa đúng */
    .agency-home [data-home-section="services"] .sec-title-box > .sec-title,
    .agency-home [data-home-section="news"] .sec-title-box > .sec-title,
    .agency-home [data-home-section="testimonials"] .sec-title-box > .sec-title,
    .agency-home [data-home-section="news"] .sec-title-box > .sec-brand-tag {
        transform-origin: center center !important;
        text-align: center !important;
    }

    /* --------------------------------------------------------
       Các section kiểu .section-title (nếu Home Builder dùng)
    -------------------------------------------------------- */
    .agency-home [data-home-section]:not([data-home-section="hero"]) .section-title {
        text-align: center !important;
    }

    .agency-home [data-home-section]:not([data-home-section="hero"]) .section-title > h2 {
        margin: 0 !important;
        color: var(--color-3, #08a9e8) !important;
        font-family: "Nunito", Arial, sans-serif !important;
        font-size: 23px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
    }

    .agency-home [data-home-section]:not([data-home-section="hero"]) .section-title > p {
        max-width: 360px !important;
        margin: 10px auto 0 !important;
        color: #13243a !important;
        font-family: "Nunito", Arial, sans-serif !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        font-weight: 400 !important;
        text-align: center !important;
    }
}


/* ============================================================
   BIVACO V24 — MOBILE DETAIL TEXT 13PX
   Chốt theo yêu cầu: nội dung chi tiết trên điện thoại = 13px.
   Chỉ áp dụng cho các dòng mô tả trong khối Tư vấn / Trust.
============================================================ */
@media (max-width: 575.98px) {
    body.agency-theme.agency-home .consult-main-desc,
    body.agency-theme.agency-home .form-subtitle,
    body.agency-theme.agency-home .consult-form-subtitle,
    body.agency-theme.agency-home .trust-desc {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}


/* ============================================================
   V25 — PROJECT MOBILE SMOOTH FINAL
   - Ẩn toàn bộ dot/nút điều hướng dự án trên mobile
   - Không để thanh thumbnail dự án biến thành các chấm tròn
   - Slide chính đổi thủ công bằng vuốt, không hiệu ứng gây giật
============================================================ */
@media (max-width: 767.98px) {
    [data-home-section="products"] .projects-slider-container,
    [data-home-section="products"] .projects-slider-track,
    [data-home-section="products"] .project-slider-dots,
    [data-home-section="products"] .featured-project-dots,
    [data-home-section="products"] .slick-dots,
    [data-home-section="products"] .slick-arrow,
    [data-home-section="products"] .slick-prev,
    [data-home-section="products"] .slick-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    [data-home-section="products"] .featured-project-slide,
    [data-home-section="products"] .featured-project-slide.is-active {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* ============================================================
   V26 — HOMEPAGE TITLE ORDER MASTER — FINAL
   Thứ tự DUY NHẤT trên desktop/tablet/mobile:
   1) Tiêu đề chính
   2) Tiêu đề phụ
   3) Đường kẻ
   4) Nội dung chi tiết
   Ghi đè block mobile cũ XANH -> GẠCH -> ĐEN của V25.
============================================================ */
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box {
    display: flex !important;
    flex-direction: column !important;
}

body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-brand-tag {
    order: 1 !important;
}

body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-title {
    order: 2 !important;
}

body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-title-line {
    order: 3 !important;
}

body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > p {
    order: 4 !important;
}

/* Nhân sự hiện có markup: tiêu đề -> line -> dòng phụ. Ép lại đúng thứ tự. */
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box {
    display: flex !important;
    flex-direction: column !important;
}
body.agency-theme.agency-home [data-home-section="team"] .team-section-brand,
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-brand-tag {
    order: 1 !important;
}
body.agency-theme.agency-home [data-home-section="team"] .team-intro-text,
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-title {
    order: 2 !important;
}
body.agency-theme.agency-home [data-home-section="team"] .sec-title-line {
    order: 3 !important;
}
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > p:not(.team-intro-text) {
    order: 4 !important;
}

/* Phương châm dùng wrapper riêng, không dùng sec-title-box. */
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content {
    display: flex !important;
    flex-direction: column !important;
}
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-brand-tag {
    order: 1 !important;
}
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title {
    order: 2 !important;
}
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title-line {
    order: 3 !important;
}
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-desc {
    order: 4 !important;
}
body.agency-theme.agency-home [data-home-section="about"] .motto-stats-card {
    order: 5 !important;
}

/* Khoảng cách line sau tiêu đề phụ: không kéo line chen giữa 2 tiêu đề. */
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-title-line,
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title-line {
    margin-top: 9px !important;
}

/* ============================================================
   V27 — MOTTO STATS MOBILE NO BORDER — FINAL
   Phương châm mobile: giữ 3 thống kê cùng hàng nhưng bỏ toàn bộ
   border / radius / background / shadow để đồng bộ giao diện sạch.
============================================================ */
@media (max-width: 767.98px) {
    body.agency-theme.agency-home [data-home-section="about"] .motto-stats-card {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    body.agency-theme.agency-home [data-home-section="about"] .motto-stats-card::before,
    body.agency-theme.agency-home [data-home-section="about"] .motto-stats-card::after {
        display: none !important;
        content: none !important;
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.agency-theme.agency-home [data-home-section="about"] .motto-stats-card .stat-item {
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 10px 5px !important;
        margin: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.agency-theme.agency-home [data-home-section="about"] .motto-stats-card .stat-divider {
        display: none !important;
        border: 0 !important;
        background: transparent !important;
    }
}

/* ============================================================
   BIVACO V28 — FONT FINAL: TEAM + TESTIMONIALS
   Fix regression V27: mobile master block forced Nunito while
   frontend typography standard is Bai Jamjuree.
   Only typography is corrected; layout/slider/card logic untouched.
============================================================ */
body.agency-theme.agency-home [data-home-section="team"] .team-section-brand,
body.agency-theme.agency-home [data-home-section="team"] .team-intro-text,
body.agency-theme.agency-home [data-home-section="testimonials"] .sec-brand-tag,
body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title,
body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > p {
    font-family: "Bai Jamjuree", sans-serif !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
}

/* Remove the old visual scaling workaround from testimonials. */
body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > .sec-title {
    zoom: 1 !important;
    transform: none !important;
}

/* Mobile: preserve the currently approved sizes, only correct font. */
@media (max-width: 767.98px) {
    body.agency-theme.agency-home [data-home-section="team"] .team-section-brand,
    body.agency-theme.agency-home [data-home-section="testimonials"] .sec-brand-tag {
        font-family: "Bai Jamjuree", sans-serif !important;
        font-size: 23px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
    }

    body.agency-theme.agency-home [data-home-section="team"] .team-intro-text,
    body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title,
    body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > p {
        font-family: "Bai Jamjuree", sans-serif !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        font-weight: 400 !important;
    }
}

/* ============================================================
   BIVACO V29 — HOMEPAGE TYPOGRAPHY MASTER FINAL — 2026-09-17
   CHỐT DUY NHẤT:
   DESKTOP/TABLET >= 768px: 30 / 20 / 16
   MOBILE < 768px:          20 / 16 / 14
   Thứ tự heading: CHÍNH (xanh) -> PHỤ -> KẺ -> NỘI DUNG.
   Font: Bai Jamjuree.
   Hero giữ typography riêng.
============================================================ */

/* 1) ORDER MASTER — mọi heading section thông dụng */
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-brand-tag { order: 1 !important; }
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-title { order: 2 !important; }
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-title-line { order: 3 !important; }
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > p:not(.team-intro-text) { order: 4 !important; }

/* Team: markup riêng — MAIN -> SUBTITLE -> LINE */
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
body.agency-theme.agency-home [data-home-section="team"] .team-section-brand,
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-brand-tag { order: 1 !important; }
body.agency-theme.agency-home [data-home-section="team"] .team-intro-text,
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-title { order: 2 !important; }
body.agency-theme.agency-home [data-home-section="team"] .sec-title-line { order: 3 !important; }
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > p:not(.team-intro-text) { order: 4 !important; }

/* About / Phương châm: wrapper riêng */
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content {
    display: flex !important;
    flex-direction: column !important;
}
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-brand-tag { order: 1 !important; }
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title { order: 2 !important; }
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title-line { order: 3 !important; }
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-desc { order: 4 !important; }
body.agency-theme.agency-home [data-home-section="about"] .motto-stats-card { order: 5 !important; }

/* Services V2: MAIN -> SUBTITLE -> LINE -> DESCRIPTION */
body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}
body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__eyebrow { order: 1 !important; }
body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__title { order: 2 !important; }
body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__line { order: 3 !important; }
body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__description { order: 4 !important; }

/* Home Builder alternate title */
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .section-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .section-title > h2 { order: 1 !important; }
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .section-title > p { order: 2 !important; }
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .section-title::after { order: 3 !important; }

/* 2) KẺ: luôn sau tiêu đề phụ, trước nội dung */
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-line,
body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__line {
    display: block !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 2px !important;
    min-height: 2px !important;
    margin: 10px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--color-3, #08a9e8) !important;
}

/* Xóa toàn bộ workaround zoom/scale cũ ở heading */
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-brand-tag,
body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title,
body.agency-theme.agency-home [data-home-section="team"] .team-section-brand,
body.agency-theme.agency-home [data-home-section="team"] .team-intro-text,
body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__eyebrow,
body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__title {
    zoom: 1 !important;
    transform: none !important;
    transform-origin: center center !important;
}

/* 3) DESKTOP + TABLET */
@media (min-width: 768px) {
    /* Tiêu đề chính — 30px, xanh */
    body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-brand-tag,
    body.agency-theme.agency-home [data-home-section="team"] .team-section-brand,
    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-brand-tag,
    body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__eyebrow,
    body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .section-title > h2 {
        color: var(--color-3, #08a9e8) !important;
        font-family: "Bai Jamjuree", sans-serif !important;
        font-size: 30px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
        font-style: normal !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        text-align: center !important;
    }

    /* Tiêu đề phụ — 20px */
    body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-title,
    body.agency-theme.agency-home [data-home-section="team"] .team-intro-text,
    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title,
    body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__title,
    body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .section-title > p {
        color: #111827 !important;
        font-family: "Bai Jamjuree", sans-serif !important;
        font-size: 20px !important;
        line-height: 1.45 !important;
        font-weight: 500 !important;
        font-style: normal !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        text-align: center !important;
        margin-top: 8px !important;
    }

    /* Nội dung — 16px */
    body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > p:not(.team-intro-text),
    body.agency-theme.agency-home .motto-agency-desc,
    body.agency-theme.agency-home .motto-agency-desc p,
    body.agency-theme.agency-home [data-home-section="services"] .service-desc,
    body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__description,
    body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__card-description,
    body.agency-theme.agency-home .featured-project-desc,
    body.agency-theme.agency-home .featured-project-subtitle,
    body.agency-theme.agency-home .featured-info-grid .info-val,
    body.agency-theme.agency-home .news-featured-excerpt,
    body.agency-theme.agency-home .insight-desc,
    body.agency-theme.agency-home [data-home-section="testimonials"] .testimonial-quote,
    body.agency-theme.agency-home [data-home-section="testimonials"] .client-role,
    body.agency-theme.agency-home .member-role,
    body.agency-theme.agency-home .consult-main-desc,
    body.agency-theme.agency-home .form-subtitle,
    body.agency-theme.agency-home .consult-form-subtitle,
    body.agency-theme.agency-home .feature-desc,
    body.agency-theme.agency-home .trust-desc,
    body.agency-theme.agency-home [data-home-section="about"] .stat-label {
        font-family: "Bai Jamjuree", sans-serif !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        letter-spacing: 0 !important;
    }
}

/* 4) MOBILE */
@media (max-width: 767.98px) {
    /* Tiêu đề chính — 20px, xanh */
    body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-brand-tag,
    body.agency-theme.agency-home [data-home-section="team"] .team-section-brand,
    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-brand-tag,
    body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__eyebrow,
    body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .section-title > h2 {
        color: var(--color-3, #08a9e8) !important;
        font-family: "Bai Jamjuree", sans-serif !important;
        font-size: 20px !important;
        line-height: 1.28 !important;
        font-weight: 700 !important;
        font-style: normal !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        text-align: center !important;
    }

    /* Tiêu đề phụ — 16px */
    body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > .sec-title,
    body.agency-theme.agency-home [data-home-section="team"] .team-intro-text,
    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title,
    body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__title,
    body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .section-title > p {
        color: #111827 !important;
        font-family: "Bai Jamjuree", sans-serif !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
        font-weight: 500 !important;
        font-style: normal !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        text-align: center !important;
        margin-top: 7px !important;
    }

    /* Nội dung — 14px */
    body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-box > p:not(.team-intro-text),
    body.agency-theme.agency-home .motto-agency-desc,
    body.agency-theme.agency-home .motto-agency-desc p,
    body.agency-theme.agency-home [data-home-section="services"] .service-desc,
    body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__description,
    body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__card-description,
    body.agency-theme.agency-home .featured-project-desc,
    body.agency-theme.agency-home .featured-project-subtitle,
    body.agency-theme.agency-home .featured-info-grid .info-val,
    body.agency-theme.agency-home .news-featured-excerpt,
    body.agency-theme.agency-home .insight-desc,
    body.agency-theme.agency-home [data-home-section="testimonials"] .testimonial-quote,
    body.agency-theme.agency-home [data-home-section="testimonials"] .client-role,
    body.agency-theme.agency-home .member-role,
    body.agency-theme.agency-home .consult-main-desc,
    body.agency-theme.agency-home .form-subtitle,
    body.agency-theme.agency-home .consult-form-subtitle,
    body.agency-theme.agency-home .feature-desc,
    body.agency-theme.agency-home .trust-desc,
    body.agency-theme.agency-home [data-home-section="about"] .stat-label {
        font-family: "Bai Jamjuree", sans-serif !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        letter-spacing: 0 !important;
    }

    body.agency-theme.agency-home [data-home-section]:not([data-home-section="hero"]) .sec-title-line,
    body.agency-theme.agency-home [data-home-section="services"] .bvc-services-v2__line {
        width: 46px !important;
        min-width: 46px !important;
        margin-top: 9px !important;
    }
}

/* ============================================================
   BIVACO V30 — TITLE ORDER FIX + MOTTO LEFT ALIGN — 2026-09-17
   Chốt:
   - Desktop/Tablet: 30 / 20 / 16
   - Mobile: 20 / 16 / 14
   - Header: chính -> phụ -> đường kẻ
   - Team + Testimonials: sửa dứt điểm line đang chen giữa 2 tiêu đề
   - Phương châm: căn trái, rút ngắn khoảng cách giữa chính/phụ/kẻ
============================================================ */

/* ---------- TEAM + TESTIMONIALS: ORDER HARD LOCK ---------- */
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box,
body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
}

/* Main title */
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .team-section-brand,
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-brand-tag,
body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > .sec-brand-tag {
    order: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Subtitle — support every current/legacy markup variant */
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .team-intro-text,
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-title,
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > p,
body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > .sec-title,
body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > p {
    order: 2 !important;
    margin: 5px auto 0 !important;
    padding: 0 !important;
    color: #111827 !important;
    font-family: "Bai Jamjuree", sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: center !important;
    zoom: 1 !important;
    transform: none !important;
}

/* Divider MUST be after subtitle */
body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-title-line,
body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > .sec-title-line {
    order: 3 !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 2px !important;
    min-height: 2px !important;
    margin: 8px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--color-3, #08a9e8) !important;
}

@media (min-width: 768px) {
    body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .team-section-brand,
    body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-brand-tag,
    body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > .sec-brand-tag {
        color: var(--color-3, #08a9e8) !important;
        font-family: "Bai Jamjuree", sans-serif !important;
        font-size: 30px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        zoom: 1 !important;
        transform: none !important;
    }

    body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .team-intro-text,
    body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-title,
    body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > p,
    body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > .sec-title,
    body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > p {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 767.98px) {
    body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .team-section-brand,
    body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-brand-tag,
    body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > .sec-brand-tag {
        color: var(--color-3, #08a9e8) !important;
        font-family: "Bai Jamjuree", sans-serif !important;
        font-size: 20px !important;
        line-height: 1.22 !important;
        font-weight: 700 !important;
        zoom: 1 !important;
        transform: none !important;
    }

    body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .team-intro-text,
    body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-title,
    body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > p,
    body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > .sec-title,
    body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > p {
        margin-top: 4px !important;
        font-size: 16px !important;
        line-height: 1.38 !important;
    }

    body.agency-theme.agency-home [data-home-section="team"] .sec-title-box > .sec-title-line,
    body.agency-theme.agency-home [data-home-section="testimonials"] .sec-title-box > .sec-title-line {
        margin-top: 7px !important;
    }
}

/* ---------- PHƯƠNG CHÂM: LEFT + COMPACT HEADER ---------- */
body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-brand-tag {
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title {
    order: 2 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title-line {
    order: 3 !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 2px !important;
    margin: 7px 0 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
    background: var(--color-3, #08a9e8) !important;
}

body.agency-theme.agency-home [data-home-section="about"] .motto-agency-desc {
    order: 4 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 10px 0 0 !important;
    text-align: left !important;
}

body.agency-theme.agency-home [data-home-section="about"] .motto-stats-card {
    order: 5 !important;
}

@media (min-width: 768px) {
    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-brand-tag {
        font-size: 30px !important;
        line-height: 1.2 !important;
    }

    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }

    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-desc,
    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-desc p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }
}

@media (max-width: 767.98px) {
    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content {
        align-items: flex-start !important;
        text-align: left !important;
    }

    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-brand-tag {
        font-size: 20px !important;
        line-height: 1.22 !important;
        text-align: left !important;
    }

    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title {
        margin-top: 3px !important;
        font-size: 16px !important;
        line-height: 1.38 !important;
        text-align: left !important;
    }

    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-content > .sec-title-line {
        margin-top: 7px !important;
    }

    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-desc,
    body.agency-theme.agency-home [data-home-section="about"] .motto-agency-desc p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }
}

/* ============================================================
   BIVACO V31 — TEAM/TESTIMONIAL HEADER SOURCE-SAFE + MOTTO STATS SPACING
   2026-09-17
   - Team + Testimonials: CHÍNH -> PHỤ -> KẺ, khóa không phụ thuộc body selector.
   - Desktop/Tablet: 30 / 20 / 16.
   - Mobile: 20 / 16 / 14.
   - Motto stats: tăng khoảng thở giữa khối và giữa 3 cột; mobile vẫn 3 cột sạch.
============================================================ */

/* ---------- TEAM + TESTIMONIALS: HARD LOCK WITHOUT BODY DEPENDENCY ---------- */
section[data-home-section="team"] .sec-title-box,
section[data-home-section="testimonials"] .sec-title-box,
.team-agency-section[data-home-section="team"] .sec-title-box,
.testimonials-agency-section[data-home-section="testimonials"] .sec-title-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
}

section[data-home-section="team"] .sec-title-box > .team-section-brand,
section[data-home-section="team"] .sec-title-box > .sec-brand-tag,
section[data-home-section="testimonials"] .sec-title-box > .sec-brand-tag,
.team-agency-section[data-home-section="team"] .sec-title-box > .team-section-brand,
.testimonials-agency-section[data-home-section="testimonials"] .sec-title-box > .sec-brand-tag {
    order: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--color-3, #08a9e8) !important;
    font-family: "Bai Jamjuree", sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    zoom: 1 !important;
    transform: none !important;
}

section[data-home-section="team"] .sec-title-box > .team-intro-text,
section[data-home-section="team"] .sec-title-box > .sec-title,
section[data-home-section="testimonials"] .sec-title-box > .sec-title,
section[data-home-section="testimonials"] .sec-title-box > p:not(.sec-brand-tag):not(.sec-title-line),
.team-agency-section[data-home-section="team"] .sec-title-box > .team-intro-text,
.testimonials-agency-section[data-home-section="testimonials"] .sec-title-box > .sec-title {
    order: 2 !important;
    margin: 5px auto 0 !important;
    padding: 0 !important;
    color: #111827 !important;
    font-family: "Bai Jamjuree", sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: center !important;
    zoom: 1 !important;
    transform: none !important;
}

section[data-home-section="team"] .sec-title-box > .sec-title-line,
section[data-home-section="testimonials"] .sec-title-box > .sec-title-line,
.team-agency-section[data-home-section="team"] .sec-title-box > .sec-title-line,
.testimonials-agency-section[data-home-section="testimonials"] .sec-title-box > .sec-title-line {
    order: 30 !important;
    display: block !important;
    flex: 0 0 2px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 2px !important;
    min-height: 2px !important;
    margin: 8px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--color-3, #08a9e8) !important;
}

@media (min-width: 768px) {
    section[data-home-section="team"] .sec-title-box > .team-section-brand,
    section[data-home-section="team"] .sec-title-box > .sec-brand-tag,
    section[data-home-section="testimonials"] .sec-title-box > .sec-brand-tag {
        font-size: 30px !important;
        line-height: 1.2 !important;
    }

    section[data-home-section="team"] .sec-title-box > .team-intro-text,
    section[data-home-section="team"] .sec-title-box > .sec-title,
    section[data-home-section="testimonials"] .sec-title-box > .sec-title,
    section[data-home-section="testimonials"] .sec-title-box > p:not(.sec-brand-tag):not(.sec-title-line) {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 767.98px) {
    section[data-home-section="team"] .sec-title-box > .team-section-brand,
    section[data-home-section="team"] .sec-title-box > .sec-brand-tag,
    section[data-home-section="testimonials"] .sec-title-box > .sec-brand-tag {
        font-size: 20px !important;
        line-height: 1.22 !important;
    }

    section[data-home-section="team"] .sec-title-box > .team-intro-text,
    section[data-home-section="team"] .sec-title-box > .sec-title,
    section[data-home-section="testimonials"] .sec-title-box > .sec-title,
    section[data-home-section="testimonials"] .sec-title-box > p:not(.sec-brand-tag):not(.sec-title-line) {
        margin-top: 4px !important;
        font-size: 16px !important;
        line-height: 1.38 !important;
    }

    section[data-home-section="team"] .sec-title-box > .sec-title-line,
    section[data-home-section="testimonials"] .sec-title-box > .sec-title-line {
        margin-top: 7px !important;
    }
}

/* ---------- PHƯƠNG CHÂM: STATS SPACING DESKTOP ---------- */
section[data-home-section="about"] .motto-stats-card {
    margin-top: 28px !important;
    padding: 26px 30px !important;
    gap: 18px !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

section[data-home-section="about"] .motto-stats-card .stat-item {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    box-sizing: border-box !important;
}

section[data-home-section="about"] .motto-stats-card .stat-number {
    margin: 0 0 8px !important;
    line-height: 1.08 !important;
}

section[data-home-section="about"] .motto-stats-card .stat-label {
    margin: 0 !important;
    line-height: 1.38 !important;
}

section[data-home-section="about"] .motto-stats-card .stat-divider {
    flex: 0 0 1px !important;
    width: 1px !important;
    height: 58px !important;
    margin: 0 4px !important;
}

/* Tablet + mobile: vẫn giữ 3 số cùng hàng nhưng có khoảng thở rõ ràng. */
@media (max-width: 991.98px) {
    section[data-home-section="about"] .motto-stats-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 26px 0 0 !important;
        padding: 0 !important;
        gap: 10px !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    section[data-home-section="about"] .motto-stats-card .stat-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 12px 8px !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-align: center !important;
    }

    section[data-home-section="about"] .motto-stats-card .stat-divider {
        display: none !important;
    }

    section[data-home-section="about"] .motto-stats-card .stat-number {
        margin-bottom: 7px !important;
    }

    section[data-home-section="about"] .motto-stats-card .stat-label {
        font-size: 14px !important;
        line-height: 1.35 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}

@media (max-width: 575.98px) {
    section[data-home-section="about"] .motto-stats-card {
        margin-top: 24px !important;
        gap: 8px !important;
    }

    section[data-home-section="about"] .motto-stats-card .stat-item {
        padding: 10px 5px !important;
    }

    section[data-home-section="about"] .motto-stats-card .stat-number {
        font-size: 26px !important;
        line-height: 1.08 !important;
        margin-bottom: 7px !important;
    }

    section[data-home-section="about"] .motto-stats-card .stat-label {
        font-size: 14px !important;
        line-height: 1.32 !important;
    }
}

/* ============================================================
   BIVACO V51 — TABLET CONTENT GUTTER 48PX
   Thu toàn bộ nội dung trang chủ vào nhẹ trên tablet.
   Không tác động header/menu đã chốt ở V49.
============================================================ */
@media (min-width: 768px) and (max-width: 1199.98px) {
    body.agency-theme .agency-home .ctnr {
        width: calc(100% - 96px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ============================================================
   BIVACO V54 — UNIFIED HOMEPAGE SECTION SPACING
   Chuẩn khoảng cách lấy theo khối PHƯƠNG CHÂM + DỊCH VỤ.
   - Không đụng Hero / Logo đối tác.
   - Đồng bộ các khối nội dung chính.
============================================================ */

/* DESKTOP / LAPTOP */
@media (min-width: 1200px) {
    body.agency-theme .agency-home [data-home-section="about"],
    body.agency-theme .agency-home [data-home-section="services"],
    body.agency-theme .agency-home [data-home-section="products"],
    body.agency-theme .agency-home [data-home-section="team"],
    body.agency-theme .agency-home [data-home-section="news"],
    body.agency-theme .agency-home [data-home-section="testimonials"],
    body.agency-theme .agency-home [data-home-section="contact"],
    body.agency-theme .agency-home [data-home-section="why_choose"],
    body.agency-theme .agency-home [data-home-section="counter"] {
        padding-top: 70px !important;
        padding-bottom: 80px !important;
        box-sizing: border-box !important;
    }
}

/* TABLET / IPAD — cùng nhịp với bản responsive của Phương châm + Dịch vụ */
@media (min-width: 768px) and (max-width: 1199.98px) {
    body.agency-theme .agency-home [data-home-section="about"],
    body.agency-theme .agency-home [data-home-section="services"],
    body.agency-theme .agency-home [data-home-section="products"],
    body.agency-theme .agency-home [data-home-section="team"],
    body.agency-theme .agency-home [data-home-section="news"],
    body.agency-theme .agency-home [data-home-section="testimonials"],
    body.agency-theme .agency-home [data-home-section="contact"],
    body.agency-theme .agency-home [data-home-section="why_choose"],
    body.agency-theme .agency-home [data-home-section="counter"] {
        padding-top: 50px !important;
        padding-bottom: 60px !important;
        box-sizing: border-box !important;
    }
}

/* MOBILE — giữ gọn nhưng đồng đều tất cả khối */
@media (max-width: 767.98px) {
    body.agency-theme .agency-home [data-home-section="about"],
    body.agency-theme .agency-home [data-home-section="services"],
    body.agency-theme .agency-home [data-home-section="products"],
    body.agency-theme .agency-home [data-home-section="team"],
    body.agency-theme .agency-home [data-home-section="news"],
    body.agency-theme .agency-home [data-home-section="testimonials"],
    body.agency-theme .agency-home [data-home-section="contact"],
    body.agency-theme .agency-home [data-home-section="why_choose"],
    body.agency-theme .agency-home [data-home-section="counter"] {
        padding-top: 34px !important;
        padding-bottom: 38px !important;
        box-sizing: border-box !important;
    }
}

/* ============================================================
   BIVACO V55 — NEWS -> TESTIMONIALS VISUAL GAP FIX
   Nền của khối Tin tức chỉ làm khoảng trống nhìn rõ hơn; nguyên nhân thật
   là padding-bottom của Tin tức cộng padding-top của Cảm nhận.
   Thu riêng giao điểm này, không đổi nhịp các section còn lại.
============================================================ */
@media (min-width: 1200px) {
    body.agency-theme .agency-home [data-home-section="news"] {
        padding-bottom: 40px !important;
    }
    body.agency-theme .agency-home [data-home-section="testimonials"] {
        padding-top: 42px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    body.agency-theme .agency-home [data-home-section="news"] {
        padding-bottom: 32px !important;
    }
    body.agency-theme .agency-home [data-home-section="testimonials"] {
        padding-top: 36px !important;
    }
}

@media (max-width: 767.98px) {
    body.agency-theme .agency-home [data-home-section="news"] {
        padding-bottom: 26px !important;
    }
    body.agency-theme .agency-home [data-home-section="testimonials"] {
        padding-top: 30px !important;
    }
}
