/* ==========================================================================
   KIEN HUNG CONSTRUCTION - CUSTOM CSS CHO DỰ ÁN & TIN TỨC
   ========================================================================== */

/* 1. HERO BANNER CHUNG CHO ARCHIVE DỰ ÁN & TIN TỨC */
.kienhung-hero-banner {
    position: relative;
    background-color: #173354;
    background-image: 
        linear-gradient(rgba(23, 51, 84, 0.82), rgba(12, 28, 48, 0.9)),
        url('../images/bg-header.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 90px 15px;
    margin-bottom: 30px;
    text-align: center;
    overflow: hidden;
}

.kienhung-hero-banner .banner-title {
    color: #ffffff;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto;
    padding: 0;
    max-width: 1000px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* 2. GIAO DIỆN CPT DỰ ÁN (ARCHIVE & TAXONOMY) */
.du-an-archive-wrapper {
    margin-bottom: 50px;
}

.du-an-grid-row {
    margin-left: -10px;
    margin-right: -10px;
}

.du-an-grid-row .du-an-card-item {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 25px;
}

.du-an-card-inner {
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf0f2;
    transition: all 0.3s ease;
}

.du-an-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.du-an-thumb-box {
    position: relative;
    width: 100%;
    padding-top: 65%; /* Tỉ lệ ~ 16:10 */
    overflow: hidden;
    background: #f4f6f8;
}

.du-an-thumb-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.du-an-card-inner:hover .du-an-thumb-box img {
    transform: scale(1.05);
}

.du-an-content-box {
    padding: 16px 14px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.du-an-title {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    min-height: 40px;
}

.du-an-title a {
    color: #3b6b95;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.du-an-title a:hover {
    color: #e29124;
}

.du-an-info-list {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.du-an-info-row {
    display: flex;
    margin-bottom: 6px;
    align-items: baseline;
}

.du-an-info-row:last-child {
    margin-bottom: 0;
}

.du-an-info-row .info-label {
    font-weight: 700;
    color: #222222;
    width: 38%;
    flex-shrink: 0;
    padding-right: 5px;
}

.du-an-info-row .info-val {
    color: #444444;
    width: 62%;
    word-break: break-word;
}


/* 3. GIAO DIỆN TRANG CHI TIẾT DỰ ÁN (SINGLE-DU-AN) */
.single-du-an-page {
    padding-bottom: 60px;
}

.single-duan-breadcrumb {
    font-size: 13px;
    color: #888888;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.single-duan-main-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 40px;
}

.single-duan-left-col {
    flex: 0 0 54%;
    max-width: 54%;
    padding-left: 15px;
    padding-right: 15px;
}

.single-duan-right-col {
    flex: 0 0 46%;
    max-width: 46%;
    padding-left: 20px;
    padding-right: 15px;
}

@media (max-width: 849px) {
    .single-duan-left-col,
    .single-duan-right-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .single-duan-right-col {
        margin-top: 25px;
        padding-left: 15px;
    }
}

/* Slider Gallery */
.duan-slider-gallery-wrap {
    width: 100%;
}

.duan-main-image-box {
    position: relative;
    width: 100%;
    padding-top: 66%; /* Tỉ lệ ~ 3:2 cố định trong khung */
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #e8ebee;
    border-radius: 2px;
}

.duan-slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.duan-main-slide {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

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

/* Nút Next/Prev Slider */
.duan-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.duan-slider-nav:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.08);
}

.duan-slider-nav.prev-slide {
    left: 12px;
}

.duan-slider-nav.next-slide {
    right: 12px;
}

/* Thumbs row - ẨN HOÀN TOÀN THANH SCROLLBAR */
.duan-thumbs-wrapper {
    width: 100%;
    margin-top: 10px;
    position: relative;
}

.duan-thumbs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important;  /* IE/Edge */
    padding: 2px 0 6px;
}

.duan-thumbs-row::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.duan-thumb-item {
    width: 85px;
    height: 60px;
    flex: 0 0 85px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    opacity: 0.65;
    transition: all 0.25s ease;
    border-radius: 2px;
}

.duan-thumb-item.active,
.duan-thumb-item:hover {
    opacity: 1;
    border-color: #3b6b95;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.duan-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right Col: Thông số chi tiết */
.single-duan-project-title {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    color: #3b6b95;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

.duan-specs-divider {
    height: 1px;
    background-color: #eeeeee;
    margin: 15px 0;
}

.single-duan-specs-list {
    font-size: 14px;
    line-height: 1.6;
}

.duan-spec-row {
    display: flex;
    margin-bottom: 12px;
    align-items: baseline;
}

.duan-spec-row:last-child {
    margin-bottom: 0;
}

.duan-spec-row .spec-label {
    font-weight: 700;
    color: #222222;
    width: 32%;
    min-width: 120px;
    flex-shrink: 0;
}

.duan-spec-row .spec-value {
    color: #333333;
    width: 68%;
    word-break: break-word;
}

/* Nội dung chi tiết bài viết */
.single-duan-content-section {
    margin-top: 30px;
    margin-bottom: 50px;
    font-size: 15px;
    line-height: 1.7;
    color: #333333;
}

/* Dự án liên quan */
.du-an-related-section {
    margin-top: 45px;
    border-top: 1px solid #eeeeee;
    padding-top: 35px;
}

.related-title-box {
    text-align: center;
    margin-bottom: 30px;
}

.related-main-title {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: #3b6b95;
    margin: 0;
    display: inline-block;
}

.title-underline-orange {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 3px solid #df881d;
}


/* 4. GIAO DIỆN TIN TỨC & CHUYÊN MỤC TIN TỨC */
.kienhung-news-container {
    margin-bottom: 50px;
    padding-top: 0;
}

.kienhung-news-layout-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.kienhung-news-main-col {
    flex: 0 0 70%;
    max-width: 70%;
    padding-left: 15px;
    padding-right: 15px;
}

.kienhung-news-sidebar-col {
    flex: 0 0 30%;
    max-width: 30%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 849px) {
    .kienhung-news-main-col,
    .kienhung-news-sidebar-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .kienhung-news-sidebar-col {
        margin-top: 40px;
    }
}

/* Badge Chuyên mục (Màu Cam) */
.kienhung-news-badge {
    display: inline-block;
    background-color: #df881d;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 2px;
    text-transform: capitalize;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.news-badge-pos {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.news-meta-date {
    font-size: 13px;
    color: #888888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-meta-date .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    color: #999999;
}

/* 4.1. Bài viết Nổi bật Lớn (Featured Post - Bài số 1) */
.kienhung-featured-news-card {
    background: #ffffff;
    margin-bottom: 30px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 25px;
}

.featured-news-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 52%; /* Rộng và rõ */
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 15px;
}

.featured-news-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.kienhung-featured-news-card:hover .featured-news-thumb-wrap img {
    transform: scale(1.03);
}

.featured-news-title {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 8px 0;
}

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

.featured-news-title a:hover {
    color: #df881d;
}

.featured-news-excerpt {
    font-size: 14.5px;
    line-height: 1.6;
    color: #555555;
    margin-top: 8px;
}

/* 4.2. Grid 2 Cột Tin Tức (Bài 2 - 11) */
.kienhung-news-grid-row {
    margin-left: -12px;
    margin-right: -12px;
}

.kienhung-grid-news-item {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 30px;
}

.grid-news-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grid-news-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 12px;
}

.grid-news-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.grid-news-card-inner:hover .grid-news-thumb-wrap img {
    transform: scale(1.04);
}

.grid-news-title {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 6px 0;
    min-height: 42px;
}

.grid-news-title a {
    color: #111111;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.grid-news-title a:hover {
    color: #df881d;
}

.grid-news-excerpt {
    font-size: 13.5px;
    line-height: 1.5;
    color: #666666;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* 5. SIDEBAR WIDGET KHỐI TIN TỨC (DẠNG THẺ KHÔNG ẢNH) */
.kienhung-sidebar-widget-block {
    background: transparent;
    margin-bottom: 35px;
}

.sidebar-block-header {
    margin-bottom: 18px;
    position: relative;
}

.sidebar-block-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #754b27 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.25 !important;
}

.sidebar-title-line {
    width: 50px;
    height: 3px;
    background-color: #ffc100;
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-news-card {
    background-color: #ffffff;
    padding: 16px 20px;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f2f5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-card-title {
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
}

.sidebar-card-title a {
    color: #754b27 !important;
    text-decoration: none !important;
    display: block;
    font-weight: 700;
    transition: color 0.2s ease;
}

.sidebar-card-title a:hover {
    color: #df881d !important;
}

.sidebar-card-divider {
    width: 100%;
    height: 1px;
    background-color: #eef2f5;
    margin: 0 0 10px 0;
}

.sidebar-card-date {
    font-size: 12.5px;
    color: #7b8e9f;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.sidebar-card-date svg,
.sidebar-card-date i {
    width: 14px;
    height: 14px;
    color: #7b8e9f;
    flex-shrink: 0;
}


/* 6. PHÂN TRANG (PAGINATION) */
.kienhung-pagination-container {
    margin-top: 35px;
    margin-bottom: 20px;
    text-align: center;
}

.kienhung-pagination-container .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.kienhung-pagination-container .page-numbers li {
    margin: 0;
}

.kienhung-pagination-container .page-numbers li a,
.kienhung-pagination-container .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #444444;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kienhung-pagination-container .page-numbers li a:hover {
    background-color: #df881d;
    border-color: #df881d;
    color: #ffffff;
}

.kienhung-pagination-container .page-numbers li span.current {
    background-color: #173354;
    border-color: #173354;
    color: #ffffff;
}


/* 7. GIAO DIỆN TRANG CHI TIẾT BÀI VIẾT TIN TỨC (SINGLE POST) */
.kienhung-single-post-page {
    padding-bottom: 60px;
}

.single-post-card-container {
    background: #ffffff;
    padding-bottom: 20px;
}

.single-post-top-badge {
    margin-bottom: 12px;
}

.single-post-top-badge .kienhung-news-badge {
    font-size: 13px;
    padding: 5px 12px;
}

.single-post-title {
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: #111827;
    margin: 0 0 15px 0;
}

.single-post-meta-share-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.single-post-date {
    font-size: 13.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-post-social-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff !important;
    border-radius: 3px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    line-height: 1.2;
}

.social-share-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.social-share-btn.share-fb {
    background-color: #1877f2;
}

.social-share-btn.share-fb .share-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 11px;
}

.social-share-btn.share-linkedin {
    background-color: #0a66c2;
}

.social-share-btn.share-x {
    background-color: #000000;
}

.single-post-content {
    font-size: 15.5px;
    line-height: 1.8;
    color: #334155;
}

.single-post-content p {
    margin-bottom: 1.3em;
}

.single-post-content img,
.single-post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    margin: 15px 0;
}

/* Khối tin tức liên quan */
.news-related-section {
    margin-top: 50px;
    border-top: 1px solid #e2e8f0;
    padding-top: 35px;
}


/* ==========================================================================
   8. HOME PROJECT SLIDER (DỰ ÁN TRANG CHỦ)
   ========================================================================== */
.home-project-container {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    padding: 0 15px;
}

.home-project-header {
    text-align: center;
    margin-bottom: 30px;
}

.home-project-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

.home-project-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 3.5px;
    background-color: #d12e2e;
    border-radius: 1px;
}

.home-project-slider-wrapper {
    position: relative;
    padding: 0 40px;
}

.home-project-viewport {
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

.home-project-viewport.grabbing {
    cursor: grabbing;
    user-select: none;
}

.home-project-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.home-project-card {
    flex: 0 0 calc((100% - 60px) / 4);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.home-project-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.home-project-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #e5e9f0;
    position: relative;
    -webkit-user-drag: none;
    user-drag: none;
}

.home-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
    transition: transform 0.4s ease;
}

.home-project-card:hover .home-project-thumb img {
    transform: scale(1.05);
}

.home-project-content {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-project-card-title {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
    color: #55799c;
    text-transform: uppercase;
    min-height: 65px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.home-project-card:hover .home-project-card-title {
    color: #d98822;
}

.home-project-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin-bottom: 12px;
    border: none;
}

.home-project-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    line-height: 1.45;
}

.home-project-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.home-project-meta-label {
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
    min-width: 60px;
}

.home-project-meta-value {
    color: #333333;
    flex: 1;
}

.home-project-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a759c;
    z-index: 10;
    padding: 0;
    transition: opacity 0.3s ease, color 0.2s ease, transform 0.2s ease;
}

.home-project-nav-btn:hover:not(.disabled) {
    color: #d98822;
    transform: translateY(-50%) scale(1.15);
}

.home-project-nav-btn.prev {
    left: 0;
    color: #fff;
}

.home-project-nav-btn.next {
    right: -15px;
    color: #fff;
}

.home-project-nav-btn.disabled {
    opacity: 0.15;
    cursor: not-allowed;
    pointer-events: none;
}

.home-project-nav-btn svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 1100px) {
    .home-project-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .home-project-slider-wrapper {
        padding: 0 34px;
    }
}

@media (max-width: 600px) {
    .home-project-title {
        font-size: 22px;
    }

    .home-project-card {
        flex: 0 0 100%;
    }

    .home-project-slider-wrapper {
        padding: 0 30px;
    }

    .home-project-thumb {
        height: 190px;
    }

    .home-project-card-title {
        min-height: auto;
    }
}


/* ==========================================================================
   9. KHÁCH HÀNG & ĐỐI TÁC (PARTNERS / CLIENTS SLIDER)
   ========================================================================== */
.home-partners-wrapper {
    padding: 35px 0 45px;
    background-color: #ffffff;
    width: 100%;
}

.home-partners-container {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    padding: 0 15px;
}

.home-partners-header {
    text-align: center;
    margin-bottom: 35px;
}

.home-partners-title {
    font-size: 26px;
    font-weight: 800;
    color: #754b27;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
    margin: 0;
}

.home-partners-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 3.5px;
    background-color: #ffc100;
    border-radius: 1px;
}

.home-partners-slider-wrapper {
    position: relative;
    padding: 0 45px;
}

.home-partners-viewport {
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

.home-partners-viewport.grabbing {
    cursor: grabbing;
    user-select: none;
}

.home-partners-track {
    display: flex;
    align-items: center;
    gap: 30px;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.home-partner-item {
    flex: 0 0 calc((100% - 150px) / 6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    height: 90px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
    text-decoration: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.home-partner-item:hover {
    transform: scale(1.06);
}

.home-partner-item img {
    max-width: 100%;
    max-height: 75px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.home-partners-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a759c;
    z-index: 10;
    padding: 0;
    transition: opacity 0.3s ease, color 0.2s ease, transform 0.2s ease;
}

.home-partners-nav-btn:hover:not(.disabled) {
    color: #d12e2e;
    transform: translateY(-50%) scale(1.15);
}

.home-partners-nav-btn.prev {
    left: 0;
}

.home-partners-nav-btn.next {
    right: 0;
}

.home-partners-nav-btn.disabled {
    opacity: 0.15;
    cursor: not-allowed;
    pointer-events: none;
}

.home-partners-nav-btn svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 1100px) {
    .home-partner-item {
        flex: 0 0 calc((100% - 90px) / 4);
    }
    .home-partners-slider-wrapper {
        padding: 0 35px;
    }
}

@media (max-width: 768px) {
    .home-partner-item {
        flex: 0 0 calc((100% - 60px) / 3);
        height: 75px;
    }
    .home-partners-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .home-partner-item {
        flex: 0 0 calc((100% - 20px) / 2);
        height: 65px;
    }
    .home-partners-slider-wrapper {
        padding: 0 25px;
    }
}

/* ==========================================================================
   KIEN HUNG - PDF VIEWER & DOWNLOAD BUTTON
   ========================================================================== */
.kienhung-pdf-viewer-wrap {
    margin: 30px 0;
    width: 100%;
    clear: both;
}

.kienhung-pdf-iframe-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    background: #525659;
}

.kienhung-pdf-iframe {
    width: 100%;
    border: none;
    display: block;
}

.kienhung-pdf-download-action {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kienhung-pdf-btn-download {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 26px;
    background-color: #2b2d42 !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(43, 45, 66, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.kienhung-pdf-btn-download:hover {
    background-color: #181924 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(24, 25, 36, 0.3);
}

.kienhung-pdf-btn-download .kienhung-pdf-btn-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.kienhung-pdf-btn-download:hover .kienhung-pdf-btn-icon {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .kienhung-pdf-iframe {
        height: 500px !important;
    }
    .kienhung-pdf-btn-download {
        padding: 9px 22px;
        font-size: 14px;
    }
}

/* ==========================================================================
   KIEN HUNG - CONTACT FORM 7 STYLES
   ========================================================================== */
.kienhung-contact-section {
    background-color: #dce0e4;
    padding: 50px 20px 60px;
    width: 100%;
}

.kienhung-contact-container {
    max-width: 980px;
    margin: 0 auto;
}

.kienhung-contact-header {
    text-align: center;
    margin-bottom: 28px;
}

.kienhung-contact-title {
    font-size: 26px;
    font-weight: 700;
    color: #5b84a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.kienhung-contact-divider {
    width: 50px;
    height: 3px;
    background-color: #f39c12;
    margin: 0 auto;
    border-radius: 2px;
}

/* Hàng 3 cột thông tin Họ tên, Email, Số điện thoại */
.kienhung-contact-form .form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.kienhung-contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.kienhung-contact-form .form-input,
.kienhung-contact-form input[type="text"],
.kienhung-contact-form input[type="email"],
.kienhung-contact-form input[type="tel"] {
    width: 100% !important;
    height: 42px !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 2px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    color: #333333 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

.kienhung-contact-form .form-input::placeholder,
.kienhung-contact-form textarea::placeholder {
    color: #888888;
    opacity: 1;
}

/* Khung Thông điệp */
.kienhung-contact-form .form-row-full {
    margin-bottom: 16px;
}

.kienhung-contact-form .form-textarea,
.kienhung-contact-form textarea {
    width: 100% !important;
    min-height: 170px !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 2px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    color: #333333 !important;
    box-shadow: none !important;
    resize: vertical !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Quiz câu hỏi tính toán */
.kienhung-contact-form .form-row-quiz {
    margin-bottom: 24px;
}

.kienhung-contact-form .form-quiz-wrap {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #222222;
    font-weight: 500;
}

.kienhung-contact-form .form-quiz-wrap label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 14px;
    color: #222;
}

.kienhung-contact-form .wpcf7-quiz-label {
    margin-right: 10px;
}

.kienhung-contact-form .wpcf7-quiz-input,
.kienhung-contact-form .form-quiz-wrap input[type="text"] {
    width: 90px !important;
    height: 34px !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 2px !important;
    padding: 4px 10px !important;
    margin-bottom: 0 !important;
    display: inline-block !important;
    text-align: center;
}

/* Nút Submit Gửi đi */
.kienhung-contact-form .form-row-submit {
    text-align: center;
}

.kienhung-contact-form .kienhung-contact-submit-btn,
.kienhung-contact-form input[type="submit"] {
    background-color: #638ba8 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 42px !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    min-width: 140px;
    display: inline-block;
}

.kienhung-contact-form .kienhung-contact-submit-btn:hover,
.kienhung-contact-form input[type="submit"]:hover {
    background-color: #4b7391 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(75, 115, 145, 0.35) !important;
    transform: translateY(-2px);
}

.kienhung-contact-form .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #dc3232;
    margin-top: 4px;
}

.kienhung-contact-form .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px 15px !important;
    border-radius: 3px !important;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    .kienhung-contact-section {
        padding: 35px 15px 45px;
    }
    .kienhung-contact-form .form-row-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .kienhung-contact-form .form-quiz-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }
    .kienhung-contact-form .kienhung-contact-submit-btn,
    .kienhung-contact-form input[type="submit"] {
        width: 100%;
    }
}

/* ==========================================================================
   KIEN HUNG - FLOATING CONTACT BUTTONS (CALL & ZALO)
   ========================================================================== */
.kienhung-floating-contact {
    position: fixed;
    right: 20px;
    top: 35%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    justify-content: center;
}

.kienhung-contact-btn {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Vòng tròn sóng lan tỏa mặc định */
.kienhung-pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1.5px solid #e53935;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: kienhung-pulse-wave 2.2s infinite ease-out;
}

.kienhung-pulse-ring-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1.5px solid #e53935;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: kienhung-pulse-wave 2.2s infinite ease-out 0.8s;
}

/* Nút Call: Vòng sóng màu đỏ */
.kienhung-call-btn .kienhung-pulse-ring,
.kienhung-call-btn .kienhung-pulse-ring-2 {
    border-color: #e53935;
}

/* Nút Zalo: Vòng sóng màu xanh Zalo */
.kienhung-zalo-btn .kienhung-pulse-ring,
.kienhung-zalo-btn .kienhung-pulse-ring-2 {
    border-color: #0088ff;
}

/* Hộp icon xoay rung */
.kienhung-icon-box {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: kienhung-shake-rotate 1.8s infinite ease-in-out;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kienhung-contact-btn:hover .kienhung-icon-box {
    transform: scale(1.15);
    animation-play-state: paused;
}

.kienhung-contact-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    background-color: #ff0000;
}

/* Keyframes: Xoay rung (Shake Rotate) */
@keyframes kienhung-shake-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    10% {
        transform: rotate(-25deg) scale(1.06);
    }
    20% {
        transform: rotate(22deg) scale(1.06);
    }
    30% {
        transform: rotate(-20deg) scale(1.06);
    }
    40% {
        transform: rotate(18deg) scale(1.06);
    }
    50% {
        transform: rotate(-10deg) scale(1);
    }
    60% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

/* Keyframes: Vòng sóng lan tỏa (Pulse Wave) */
@keyframes kienhung-pulse-wave {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.45;
    }
    100% {
        transform: scale(1.85);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .kienhung-floating-contact {
        top: auto;
        bottom: 80px;
        transform: none;
        right: 14px;
        gap: 16px;
    }
    .kienhung-contact-btn {
        width: 42px;
        height: 42px;
    }
    .kienhung-icon-box {
        width: 26px;
        height: 26px;
    }
}






