body.home .dnf-home-hero.dnf-hero-slider,
.dnf-home-hero.dnf-hero-slider {
    position: relative !important;
    width: 100% !important;
    height: clamp(520px, 37.5vw, 680px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #111111 !important;
    color: #ffffff !important;
}

.dnf-hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.65s ease;
    will-change: transform;
}

.dnf-hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    color: #ffffff !important;
    text-decoration: none !important;
}

.dnf-hero-slide-picture,
.dnf-hero-slide-picture img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.dnf-hero-slide-picture img {
    object-fit: cover;
    object-position: center;
}

.dnf-hero-slide-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 22%, rgba(97,170,133,0.24), transparent 34%),
        linear-gradient(90deg, rgba(0,0,0,0.70), rgba(0,0,0,0.22) 50%, rgba(0,0,0,0.08));
}

.dnf-hero-slide-inner {
    position: absolute;
    left: 56px;
    bottom: 52px;
    z-index: 2;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
}

.dnf-hero-slide-title {
    max-width: 720px;
    color: #ffffff;
    font-size: clamp(42px, 4.1vw, 66px);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.dnf-hero-slider-dots {
    position: absolute;
    right: 28px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dnf-hero-slider-dots button {
    width: 22px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.34);
    cursor: pointer;
    transition: 0.2s ease;
}

.dnf-hero-slider-dots button.is-active {
    width: 38px;
    background: #61aa85;
}

@media (max-width: 768px) {
    body.home .dnf-home-hero.dnf-hero-slider,
    .dnf-home-hero.dnf-hero-slider {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
    }

    .dnf-hero-slide-shade {
        background:
            linear-gradient(90deg, rgba(0,0,0,0.50), rgba(0,0,0,0.14) 70%, rgba(0,0,0,0.05));
    }

    .dnf-hero-slide-inner {
        left: 18px;
        right: 18px;
        bottom: 18px;
        max-width: calc(100% - 36px);
    }

    .dnf-hero-badge {
        margin-bottom: 8px !important;
        padding: 6px 9px !important;
        font-size: 11px !important;
    }

    .dnf-hero-slide-title {
        max-width: 82%;
        font-size: clamp(20px, 6vw, 28px);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    .dnf-hero-slider-dots {
        right: 14px;
        bottom: 10px;
        gap: 6px;
    }

    .dnf-hero-slider-dots button {
        width: 16px;
        height: 3px;
    }

    .dnf-hero-slider-dots button.is-active {
        width: 28px;
    }
}

/* DNF_HOME_FIRST_VIEW_FIX_START */

/* Header trang chủ gọn hơn để hero hiện trọn trong màn hình đầu */
body.home .dnf-topbar,
body.home .dnf-topbar-inner {
    height: 28px !important;
    min-height: 28px !important;
    font-size: 13px !important;
}

body.home .dnf-header .dnf-header-inner {
    height: 88px !important;
    min-height: 88px !important;
}

body.home .dnf-header .dnf-main-menu > li > a {
    height: 88px !important;
}

body.home .dnf-header .dnf-logo-wrap {
    width: 112px !important;
    flex: 0 0 112px !important;
}

body.home .dnf-header a.dnf-logo {
    width: 112px !important;
    height: 88px !important;
}

body.home .dnf-header .dnf-logo img.dnf-logo-img,
body.home .dnf-header .dnf-logo img,
body.home .dnf-header img.dnf-logo-img {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}

/* Block cam kết: kéo sát lên trên và thu thấp chiều cao */
body.home .dnf-home-service-wrap {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #eeeeee !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

body.home .dnf-home-service-wrap .dnf-container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.home .dnf-service-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1px !important;
    background: #e5e5e5 !important;
    margin: 0 !important;
}

body.home .dnf-service-card {
    min-height: 56px !important;
    padding: 8px 22px !important;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 1px !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 0 !important;
}

body.home .dnf-service-icon {
    grid-row: 1 / 3 !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    color: #61aa85 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.home .dnf-service-icon svg {
    width: 22px !important;
    height: 22px !important;
}

body.home .dnf-service-card h3 {
    margin: 0 !important;
    color: #111111 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.16 !important;
    letter-spacing: -0.01em !important;
}

body.home .dnf-service-card p {
    margin: 2px 0 0 !important;
    color: #666666 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.28 !important;
}

/* Hero sát ngay dưới block cam kết */
body.home .dnf-home-hero-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .dnf-home-hero-grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .dnf-home-hero.dnf-hero-slider,
body.home .dnf-home-hero {
    margin-top: 0 !important;
}

/* Desktop: giữ đúng tỷ lệ ảnh hero PC 1920x720 = 8:3 */
@media (min-width: 769px) {
    body.home .dnf-home-hero.dnf-hero-slider {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 8 / 3 !important;
        max-height: calc(100vh - 180px) !important;
    }

    body.home .dnf-home-hero.dnf-hero-slider .dnf-hero-slider-track,
    body.home .dnf-home-hero.dnf-hero-slider .dnf-hero-slide {
        height: 100% !important;
    }
}

/* Mobile: bỏ block cam kết để ảnh hero 16:9 hiện gọn */
@media (max-width: 768px) {
    body.home .dnf-home-service-wrap {
        display: none !important;
    }

    body.home .dnf-home-hero.dnf-hero-slider {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
    }
}

/* DNF_HOME_FIRST_VIEW_FIX_END */

/* DNF_HOME_SERVICE_PHONE_V2_START */

/* Block cam kết: sát chân header hơn, cao hơn bản cũ một chút cho thoáng */
body.home .dnf-home-service-wrap {
    margin-top: -8px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 3 !important;
    background: #ffffff !important;
    border-top: 1px solid #eeeeee !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

body.home .dnf-home-service-wrap .dnf-container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.home .dnf-service-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1px !important;
    margin: 0 !important;
    background: #e5e5e5 !important;
}

/* Cao hơn bản cũ: không tù, nhưng vẫn đủ gọn để thấy hero */
body.home .dnf-service-card {
    min-height: 74px !important;
    padding: 12px 26px !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 14px !important;
    row-gap: 2px !important;
    align-items: center !important;
    align-content: center !important;
    background: #ffffff !important;
    border: 0 !important;
}

body.home .dnf-service-icon {
    grid-row: 1 / 3 !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    color: #61aa85 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.home .dnf-service-icon svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
}

body.home .dnf-service-card h3 {
    margin: 0 !important;
    color: #111111 !important;
    font-size: 15.5px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.012em !important;
}

body.home .dnf-service-card p {
    margin: 3px 0 0 !important;
    color: #666666 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.32 !important;
}

body.home .dnf-service-card.dnf-service-order-card p,
body.home .dnf-service-card .dnf-service-phone-text {
    color: #3f8f68 !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
}

/* Hero đi sát theo block cam kết */
body.home .dnf-home-hero-wrap,
body.home .dnf-home-hero-grid,
body.home .dnf-home-hero.dnf-hero-slider,
body.home .dnf-home-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Desktop: giữ tỷ lệ PC 1920x720 nhưng ưu tiên lọt màn hình đầu */
@media (min-width: 769px) {
    body.home .dnf-home-hero.dnf-hero-slider {
        height: min(37.5vw, calc(100vh - 192px)) !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
    }

    body.home .dnf-home-hero.dnf-hero-slider .dnf-hero-slider-track,
    body.home .dnf-home-hero.dnf-hero-slider .dnf-hero-slide {
        height: 100% !important;
    }
}

@media (max-width: 1200px) {
    body.home .dnf-service-card {
        padding: 12px 18px !important;
        grid-template-columns: 30px minmax(0, 1fr) !important;
        column-gap: 12px !important;
    }

    body.home .dnf-service-card h3 {
        font-size: 14.5px !important;
    }

    body.home .dnf-service-card p {
        font-size: 12.8px !important;
    }
}

/* Mobile: giữ hero 16:9; block cam kết đang ẩn theo quy chuẩn trước để ảnh hero gọn */
@media (max-width: 768px) {
    body.home .dnf-home-service-wrap {
        display: none !important;
    }

    body.home .dnf-home-hero.dnf-hero-slider {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
    }
}

/* DNF_HOME_SERVICE_PHONE_V2_END */
