/*
Theme Name:     Flatsome Child
Theme URI:      http://flatsome.uxthemes.com
Description:    This is a child theme for Flatsome Theme.
Author:         UX-Themes
Template:       flatsome
Version:        3.0.0
Text Domain:    flatsome-child
*/
.sec-ser .bt-ser {
    border-radius: 6px;
    /* Viền dày hơn một chút */
    transition: all 0.25s ease-in-out;

    /* Đổ bóng dạng mịn lan tỏa xung quanh */
    box-shadow: 0 0 0 0 rgba(84, 84, 228, 0);
}

/* Nút tĩnh */
.sec-ser .bt-ser {
    color: white;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);

    display: block;
    width: 100%;
    text-align: center;
}



/* TRẠNG THÁI HOVER */
.sec-ser .bt-ser:hover {
    background-color: #ef4937;
    color: white;

    /* Nhấc nhẹ nút lên 2px tạo độ nhún nhảy tự nhiên và cao cấp */
    transform: translateY(-2px);

    /* Thay vì tỏa đều neon (0 0 15px), ta đổ bóng xuôi xuống dưới (0 8px 16px) */
    /* Giảm độ đậm của bóng xuống 0.2 hoặc 0.25 để bóng trông mềm mại và thật hơn */
    box-shadow: 0 8px 16px rgba(239, 73, 55, 0.25);
}


.sec-ser .bt-ser:hover {
    background-color: #ef4937;

    /* Tạo hiệu ứng phát sáng viền mờ màu xanh xung quanh nút */
    box-shadow: 0 0 15px rgba(239, 73, 55, 0.4);
}

.sec-ser .bt-ser:hover {
    color: white;
}

/* ==========================================================
   1. TRẠNG THÁI TĨNH BAN ĐẦU (Đặt sẵn transition để chuyển động mượt)
   ========================================================== */

/* Ảnh tĩnh */
.sec-ser .img-ser {
    border-radius: 8px;
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Nút tĩnh */
.sec-ser .bt-ser {
    color: white;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}


/* ==========================================================
   2. HIỆU ỨNG ĐỒNG BỘ KHI HOVER VÀO KHUNG CHA .col-ser
   ========================================================== */

/* Khi rê chuột vào .col-ser: Ảnh tự nhấc lên và đổi bóng */
.sec-ser .col-ser:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Khi rê chuột vào .col-ser: Nút tự chuyển màu và đổ bóng cam */
.sec-ser .col-ser:hover .bt-ser {
    background-color: #ef4937;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 73, 55, 0.25);
}

/* 1. Thiết lập cho khung bọc ảnh (ví dụ class là .img-inner hoặc bất kỳ class cha trực tiếp của ảnh) */
.sec-ser .col-ser {
    overflow: hidden;
    /* Giúp ảnh khi zoom không bị tràn ra ngoài khung */
    border-radius: 8px;
}

/* 2. Hiệu ứng zoom ảnh khi hover vào cả cụm .col-ser */
.sec-ser .col-ser:hover .img-ser {
    transform: scale(1.08);
    /* Phóng to ảnh lên 8% bên trong khung */
}

/* Thiết lập ảnh tĩnh với khung cố định */
.sec-ser .col-ser .img-ser img {
    width: 100%;

    /* 1. THIẾT LẬP TỈ LỆ KHUNG HÌNH CỐ ĐỊNH */
    aspect-ratio: 4/3;
    /* Bạn có thể đổi thành 16/9 (ngang rộng) hoặc 1/1 (vuông) tùy nhu cầu */

    /* 2. CẮT CÚP ẢNH TỰ ĐỘNG (QUAN TRỌNG NHẤT) */
    object-fit: cover;
    /* Giúp ảnh lấp đầy khung tỉ lệ trên mà KHÔNG bị méo, kéo giãn hay bóp dẹt */
    object-position: center;
    /* Giữ tâm của bức ảnh luôn nằm chính giữa khung */

    /* Các css bo góc và mượt mà sẵn có của bạn */
    border-radius: 8px;
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}



/* TIÊU ĐỀ TRẠNG THÁI TĨNH */
.tt-ser h2 {
    font-weight: 700;
    color: rgb(255, 0, 0);
    margin: 15px 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
    /* Co khít các chữ lại một chút nhìn chuyên nghiệp hơn */

    transition: color 0.3s ease;
}

.sec-ser .section-title-container {
    margin-bottom: 0;
}

/* //////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////////////////// */
/* ==========================================================
   B2B WORKFLOW COMPONENT - PREMIUM UI DESIGN
   ========================================================== */

/* Workflow Section Container (Card) */
.b2b-workflow-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 0px 20px 20px 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06),
        0 4px 12px rgba(15, 23, 42, 0.02);
    transition: transform 0.3s ease;
    line-height: 1.6;
}

/* Main Header */
.workflow-header {
    margin-bottom: 50px;
    text-align: center;
}

.workflow-title-main {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.workflow-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline Navigation Wrapper */
.workflow-timeline-wrapper {
    position: relative;
    margin: 60px 0;
    padding: 10px 0;
}

/* Horizontal Timeline Progress Bar */
.workflow-progress-bg {
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    z-index: 1;
    overflow: hidden;
}

.workflow-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4f46e5 0%, #ef4444 100%);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Navigation Steps container */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* Individual navigation step card */
.workflow-step {
    text-align: center;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    outline: none;
}

/* Step Number circle */
.step-num {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 3px solid #e2e8f0;
    color: #64748b;
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Step Name text */
.step-name {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s ease;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Hover effects */
.workflow-step:hover .step-num {
    border-color: #4f46e5;
    color: #4f46e5;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.15);
}

.workflow-step:hover .step-name {
    color: #4f46e5;
}

/* Active State */
.workflow-step.active .step-num {
    border-color: #ef4444;
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 10px 20px -3px rgba(239, 68, 68, 0.35);
    transform: translateY(-4px) scale(1.1);
}

.workflow-step.active .step-name {
    color: #ef4444;
    font-weight: 800;
}

/* Details Panel container */
.workflow-details-panel {
    background: rgba(248, 250, 252, 0.6);
    border-left: 6px solid #4f46e5;
    border-radius: 16px;
    padding: 35px 40px;
    min-height: 250px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
    border-top: 1px solid rgba(226, 232, 240, 0.4);
    border-right: 1px solid rgba(226, 232, 240, 0.4);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

/* Detail Content cards */
.workflow-detail-content {
    display: none;
    flex-direction: column;
}

/* FadeIn & SlideUp animation on activation */
.workflow-detail-content.active {
    display: flex;
    animation: workflowFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes workflowFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge for current step index */
.detail-badge {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #4f46e5;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 9999px;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

/* Step Description title */
.detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

/* Step Main description */
.detail-desc {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* List details */
.detail-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.detail-list li {
    color: #334155;
    font-size: 0.975rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    font-weight: 550;
}

/* Custom premium checkmark/bullet style */
.detail-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .b2b-workflow-section {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .workflow-title-main {
        font-size: 1.75rem;
    }

    .workflow-timeline-wrapper {
        overflow-x: auto;
        padding-bottom: 25px;
        -webkit-overflow-scrolling: touch;
        /* Custom scrollbar for better look */
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    .workflow-timeline-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .workflow-timeline-wrapper::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 4px;
    }

    .workflow-steps {
        width: 650px;
        /* Constant width to trigger scrolling */
    }

    .workflow-progress-bg {
        width: 520px;
        left: 65px;
        top: 24px;
    }

    .step-num {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .workflow-details-panel {
        padding: 25px 20px;
        border-radius: 12px;
        border-left: 4px solid #4f46e5;
    }

    .detail-title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   CSS SLIDE ĐỐI TÁC CHẠY VÔ TẬN (NỀN TRẮNG - LIGHT THEME)
   Tối ưu hóa: Copy trực tiếp vào Custom CSS của WordPress/Flatsome
   ========================================================================== */

/* 1. Reset các khoảng cách của section (nếu cần thiết) */
.partner-marquee-section {
    width: 100%;
    background-color: #ffffff;
    /* Thiết lập nền full trắng cho toàn bộ section */
    padding: 0 0 40px 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

/* 2. Hiệu ứng mờ dần (Fade out) ở 2 bên mép màn hình */
.partner-marquee-section::before,
.partner-marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Hiệu ứng mờ dần màu trắng bên trái */
.partner-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

/* Hiệu ứng mờ dần màu trắng bên phải */
.partner-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

/* 3. Khung chứa đường ray trượt */
.partner-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Đường ray trượt chứa các logo */
.partner-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-light 25s linear infinite;
    /* Tốc độ chạy (25 giây) */
}

/* Tự động tạm dừng trượt khi rê chuột vào */
.partner-marquee-track:hover {
    animation-play-state: paused;
}

/* Nhóm logo đối tác */
.partner-marquee-group {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Khoảng cách giữa các logo */
    padding-right: 30px;
    padding-top: 10px;
    /* Khoảng cách đồng bộ với gap */
}

/* 4. Khung ô chứa của từng Logo đối tác */
.partner-logo-item {
    width: 180px;
    /* Chiều rộng của khung logo */
    height: 90px;
    /* Chiều cao của khung logo */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #ffffff;
    /* Nền trắng bên trong mỗi ô logo */
    border: 1px solid #e5e7eb;
    /* Đường viền xám nhạt tinh tế */
    border-radius: 8px;
    /* Bo tròn góc ô chứa logo */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

/* Hiệu ứng khi rê chuột vào từng logo */
.partner-logo-item:hover {
    border-color: #6366f1;
    /* Đổi màu viền sang tông Indigo hiện đại */
    transform: translateY(-3px);
    /* Nhấc nhẹ ô logo lên */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    /* Đổ bóng nhẹ sang trọng */
}

/* 5. Căn chỉnh ảnh logo bên trong */
.partner-img {
    max-width: 100%;
    /* Đảm bảo ảnh không vượt quá chiều rộng */
    max-height: 100%;
    /* Đảm bảo ảnh không vượt quá chiều cao */
    width: auto;
    height: auto;
    object-fit: contain;
    /* Giữ nguyên tỉ lệ hình dáng logo, không méo ảnh */
    transition: all 0.3s ease;
}

/* 6. Hiệu ứng chuyển động (Animation) */
@keyframes marquee-light {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Dịch chuyển mượt mà một nửa chiều dài track */
    }
}

/* 7. Tương thích thiết bị di động (Responsive) */
@media (max-width: 767px) {
    .partner-marquee-section {
        padding: 25px 0;
    }

    .partner-logo-item {
        width: 140px;
        /* Thu nhỏ khung logo trên mobile */
        height: 70px;
        padding: 8px 12px;
    }

    .partner-marquee-group {
        gap: 20px;
        padding-right: 20px;
    }

    .partner-marquee-section::before,
    .partner-marquee-section::after {
        width: 50px;
        /* Giảm độ rộng của vệt mờ 2 bên trên mobile */
    }
}

/* ==========================================================================
   CSS LỘT XÁC MENU DROPDOWN (KHÔNG GẠCH CHÂN - GIỮ NỀN MẶC ĐỊNH)
   ========================================================================== */

:root {
    --menu-accent: #0066cc;
    /* Màu sắc chính khi hover (bạn có thể thay đổi) */
}

/* 1. HIỆU ỨNG XOAY MŨI TÊN CHỈ XUỐNG CỦA MENU CHA */
.header-bottom-nav>li.has-dropdown>a .icon-angle-down {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-left: 5px;
    display: inline-block;
}

.header-bottom-nav>li.has-dropdown:hover>a .icon-angle-down {
    transform: rotate(180deg);
    color: var(--menu-accent) !important;
}

/* 2. ĐỊNH DẠNG DROPDOWN MENU CON (BO GÓC, ĐỔ BÓNG & TRƯỢT MƯỢT) */
.header-nav .nav-dropdown {
    display: block !important;
    /* Luôn bật block để CSS chạy hiệu ứng chuyển động mượt */
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px !important;
    /* Bo tròn góc hộp menu con */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    /* Đổ bóng mềm tạo chiều sâu */
    padding: 10px 8px !important;
    transform: translateY(10px);
    /* Vị trí bắt đầu hơi lệch xuống dưới */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.3s ease,
        visibility 0.3s ease !important;
}

/* Kích hoạt trượt/hiện khi hover menu cha */
.header-nav li.has-dropdown:hover>.nav-dropdown {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 3. PHONG CÁCH LIÊN KẾT TRONG MENU CON */
.header-nav .nav-dropdown li {
    margin-bottom: 2px;
}

.header-nav .nav-dropdown li a {
    padding: 8px 16px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    /* Màu chữ menu con mặc định */
    text-transform: none !important;
    /* Giữ chữ thường tự nhiên */
    border-radius: 5px;
    display: block;
    transition: all 0.25s ease !important;
}

/* Hover menu con: Dịch phải nhẹ + Đổi nền nhẹ + Đổi màu chữ */
.header-nav .nav-dropdown li a:hover {
    background-color: rgba(0, 102, 204, 0.04) !important;
    /* Nền xanh nhạt */
    color: var(--menu-accent) !important;
    padding-left: 22px !important;
    /* Hiệu ứng dịch sang phải 6px tương tác */
}

.home .page-wrapper {
    padding-top: 0;
}

.contact-section-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 15px auto;
    box-sizing: border-box;
}

.contact-btn-wrapper {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: contact-breath 3s infinite ease-in-out;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-zalo {
    background: #0068FF;
    border: 1px solid #005ce6;
}

.contact-messenger {
    background: #1877F2;
    border: 1px solid #1466d3;
    animation-delay: 1.5s;
}

.contact-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.04);
    filter: brightness(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
}

.contact-btn:hover::after {
    left: 150%;
    transition: all 0.8s ease-in-out;
}

.contact-btn:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
}

.contact-btn:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-call-consult {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

a.contact-call-link {
    color: #ef4444;
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
    transition: all 0.2s ease;
    border-bottom: 1px dashed transparent;
    font-size: 16px;
}

a.contact-call-link:hover {
    color: #dc2626;
    border-bottom-color: #dc2626;
}

@keyframes contact-breath {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 480px) {
    .contact-btn-wrapper {
        flex-direction: row;
        gap: 4px;
        width: 100%;
    }

    .contact-btn {
        height: 30px;
        padding: 0 6px;
        font-size: 0.7rem;
        gap: 3px;
        overflow: clip;
    }

    .contact-icon {
        width: 14px;
        height: 14px;
    }

    a.contact-call-link {
        font-size: 14px;
    }
}

/* 1. Thiết lập vị trí relative cho mục cha bậc 1 làm điểm tựa định vị */
.nav-dropdown .nav-dropdown-col {
    display: block !important;
    width: 100%;
    position: relative;
}

/* 2. Ẩn menu bậc 2 mặc định và định vị nó nhảy sang bên phải menu bậc 1 */
.nav-dropdown .nav-dropdown-col>ul.sub-menu {
    display: none !important;
    /* Khóa ẩn mặc định */
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 100%;
    /* Đẩy menu con bậc 2 sang bên phải */
    top: 0;
    width: 220px;
    /* Độ rộng của menu bậc 2 */
    background: #ffffff;
    border: 1px solid #ececec;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.12);
    z-index: 999;
    padding: 10px 0;
    margin: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(10px);
    /* Hiệu ứng dịch chuyển nhẹ từ phải qua khi hiện */
}

/* 3. Chỉ kích hoạt hiển thị menu bậc 2 khi hover đúng mục bậc 1 tương ứng */
.nav-dropdown .nav-dropdown-col:hover>ul.sub-menu {
    display: block !important;
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

/* 4. Định dạng các dòng chữ bên trong menu bậc 2 cho thẳng hàng và dễ nhìn */
.nav-dropdown .nav-dropdown-col>ul.sub-menu li {
    width: 100%;
    display: block;
}

.nav-dropdown .nav-dropdown-col>ul.sub-menu li a {
    padding: 8px 20px !important;
    display: block;
    width: 100%;
    font-size: 0.9rem;
    color: #333333;
}

.nav-dropdown .nav-dropdown-col>ul.sub-menu li a:hover {
    background-color: #f7f7f7;
    color: #0068FF;
    /* Đổi màu chữ khi hover vào mục bậc 2 */
}

.nav-dropdown .menu-item-has-children>a {
    position: relative;
    padding-right: 30px !important;
    /* Tạo khoảng trống bên phải để chứa mũi tên */
}

.nav-dropdown .menu-item-has-children>a::after {
    content: "\203A";
    /* Ký tự Unicode của mũi tên dạng góc '›' */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    font-weight: bold;
    color: #999999;
    transition: all 0.2s ease;
}

.nav-dropdown .menu-item-has-children:hover>a::after {
    color: #0068FF;
    /* Đổi màu mũi tên khi hover */
    transform: translateY(-50%) translateX(3px);
    /* Nhấp nháy dịch nhẹ sang phải */
}

.nav-dropdown>li.image-column,
.nav-dropdown>li.nav-dropdown-col {
    min-width: 100%;
}

/* ==========================================================================
   CSS Mô tả danh mục bài viết ở CUỐI TRANG (Xem thêm / Thu gọn)
   ========================================================================== */
.category-description-sec {
    padding-top: 30px;
    padding-bottom: 30px;
    border-top: 1px solid #ececec;
    position: relative;
}

.cat-desc-content {
    position: relative;
    max-height: 250px;
    /* Chiều cao xem trước trên PC */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

/* Lớp phủ mờ tạo hiệu ứng mờ chữ */
.cat-desc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Khi bấm Mở rộng hoặc bài viết ngắn */
.cat-desc-content.is-expanded,
.cat-desc-content.is-short {
    max-height: none !important;
    overflow: visible !important;
}

.cat-desc-content.is-expanded .cat-desc-overlay,
.cat-desc-content.is-short .cat-desc-overlay {
    opacity: 0 !important;
    display: none !important;
}

.cat-desc-btn-wrapper {
    margin-top: 15px;
}

#catDescBtn {
    margin: 0 auto;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive trên Điện thoại */
@media (max-width: 768px) {
    .cat-desc-content {
        max-height: 180px;
        /* Giới hạn nhỏ hơn trên mobile */
    }

    #catDescBtn {
        width: 100%;
        max-width: 220px;
        padding: 6px 16px;
        font-size: 14px;
    }
}

.category .page-title {
    color: #ef4937;
    position: relative;
    font-weight: bold;
    font-size: 1.5rem;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ef4937;
    margin: 15px auto 0 auto;
    /* Căn giữa */
    border-radius: 2px;
}

.icon-box-text p {
    margin-bottom: 0.2em;
}

.sec-about .col {
    padding-bottom: 0;
}

.sec-about .section-title-container {
    margin-bottom: 0;
}

/* ==========================================================================
   Premium CSS for Contact Form 7 (CF7)
   ========================================================================== */

/* Khung form tổng thể */
.wpcf7-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
}

/* Kiểu dáng nhãn Label (nếu có dùng) */
.wpcf7-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333333;
    margin-bottom: 6px;
}

/* Định dạng các ô Input, Select, Textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px !important;
    background-color: #f7f9fa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    color: #2d3748 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 12px !important;
    height: auto !important;
}

/* Ô Select (Dropdown) custom */
.wpcf7-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23718096'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 36px !important;
}

/* Hiệu ứng khi click vào ô nhập liệu (Focus State) */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    background-color: #ffffff !important;
    border-color: #ef4937 !important;
    box-shadow: 0 0 0 3px rgba(239, 73, 55, 0.15) !important;
    outline: none !important;
}

/* Định dạng nút Gửi (Submit) */
.wpcf7-form input[type="submit"].button {
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #ef4937 !important;
    border-color: #ef4937 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(239, 73, 55, 0.15) !important;
    margin-top: 5px;
}

.wpcf7-form input[type="submit"].button:hover {
    background-color: #1611de !important;
    border-color: #1611de !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(22, 17, 222, 0.25) !important;
}

/* Cảnh báo lỗi dưới từng ô nhập liệu (Validation Error) */
.wpcf7-not-valid-tip {
    color: #e53e3e !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    margin-top: -8px !important;
    margin-bottom: 12px !important;
    display: block !important;
    animation: fadeInUp 0.3s ease forwards;
}

/* Đổi viền ô nhập liệu khi có lỗi */
.wpcf7-not-valid {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
}

/* Khung thông báo kết quả chung ở cuối Form (Response Output) */
.wpcf7-response-output {
    margin: 15px 0 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-width: 1px !important;
    border-style: solid !important;
    text-align: center !important;
    animation: fadeInUp 0.4s ease forwards;
}

/* Khi gửi THÀNH CÔNG (Success Notification) */
.wpcf7-form.sent .wpcf7-response-output {
    background-color: #f0fff4 !important;
    border-color: #c6f6d5 !important;
    color: #22543d !important;
}

/* Khi có lỗi dữ liệu hoặc gửi THẤT BẠI (Error Notification) */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
    background-color: #fff5f5 !important;
    border-color: #fed7d7 !important;
    color: #742a2a !important;
}

/* Hiệu ứng hoạt họa nhẹ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Premium Contact Info Card (Giao diện Liên hệ Đinh Phan - 2 Cột Hiện đại)
   ========================================================================== */
.dp-contact-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none !important;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    font-family: inherit;
}

/* Khung giả lập nền ảnh có blur và làm tối */
.dp-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://ximadinhphan.com/wp-content/uploads/2026/07/641638440_1654470332663311_183543649852622558_n-e1784686683946.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(1px) brightness(35%);
    /* Giảm mờ xuống 1px để thấy chi tiết ảnh, vẫn làm tối để nổi bật chữ */
    z-index: -1;
    transform: scale(1.02);
    /* Giảm scale do độ mờ nhỏ hơn */
}

/* Header Card */
.dp-contact-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dp-contact-tag {
    display: inline-block;
    background-color: rgba(239, 73, 55, 0.2);
    color: #ff8275;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.dp-contact-company {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Grid Layout */
.dp-contact-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.dp-contact-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Info Row */
.dp-info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dp-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff8275;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.dp-info-row:hover .dp-info-icon {
    background-color: #ef4937;
    border-color: #ef4937;
    color: #ffffff;
    transform: translateY(-2px);
}

.dp-info-text {
    flex: 1;
}

.dp-info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #cbd5e0;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.dp-info-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hotlines List */
.dp-hotline-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.dp-hotline-list a {
    color: #ff8275;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dp-hotline-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.dp-divider {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* Email & Social Links */
.dp-email-link,
.dp-social-link {
    color: #ff8275;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dp-email-link:hover,
.dp-social-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
    .dp-contact-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 575px) {
    .dp-contact-card {
        padding: 20px;
    }
}

/* Triệt tiêu thẻ p trống và thẻ br do tính năng tự động (wpautop) của WordPress tự sinh ra */
.dp-contact-card p:empty,
.dp-contact-card br,
.dp-contact-body br,
.dp-contact-col br {
    display: none !important;
}

/* ==========================================================================
   CSS Tối ưu Giao diện Mục lục (Easy Table of Contents - TOC)
   ========================================================================== */
#ez-toc-container {
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 18px 22px !important;
    margin: 25px 0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03) !important;
}

#ez-toc-container .ez-toc-title-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 12px !important;
    border-bottom: 1px dashed #cbd5e1 !important;
    margin-bottom: 14px !important;
}

#ez-toc-container .ez-toc-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#ez-toc-container .ez-toc-title::before {
    content: "📋";
    font-size: 1rem;
}



#ez-toc-container .ez-toc-title-toggle a:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

#ez-toc-container ul.ez-toc-list {
    margin: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

#ez-toc-container ul.ez-toc-list li {
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
    position: relative !important;
}

#ez-toc-container ul.ez-toc-list li:last-child {
    margin-bottom: 0 !important;
}

/* Căn lề cho các cấp mục lục con (H3, H4...) */
#ez-toc-container ul.ez-toc-list ul {
    margin-top: 6px !important;
    padding-left: 18px !important;
    list-style: none !important;
    border-left: 2px solid #e2e8f0 !important;
    margin-left: 6px !important;
}

#ez-toc-container a.ez-toc-link {
    color: #334155 !important;
    font-size: 0.93rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

#ez-toc-container a.ez-toc-link:hover {
    color: #ef4937 !important;
    transform: translateX(3px) !important;
}

/* ==========================================================================
   CSS Trang Giới Thiệu (About Us - Quảng Cáo & Xi Mạ Đinh Phan)
   ========================================================================== */
.dp-about-page {
    font-family: inherit;
    color: #2d3748;
    line-height: 1.7;
    margin-bottom: 40px;
}

.dp-about-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 36px 32px;
    margin-bottom: 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.dp-about-badge {
    display: inline-block;
    background-color: rgba(239, 73, 55, 0.2);
    color: #ff8275;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.dp-about-hero h2 {
    color: #ffffff !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    text-transform: uppercase;
}

.dp-about-hero p {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: 14px;
}

.dp-about-hero p:last-child {
    margin-bottom: 0;
}

/* Section Title */
.dp-about-sec-title {
    color: #ef4937 !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    margin-top: 35px !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #ef4937;
    padding-bottom: 8px;
    display: inline-block;
}

/* Quote Box */
.dp-about-quote {
    background-color: rgba(239, 73, 55, 0.05);
    border-left: 4px solid #ef4937;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0 25px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.6;
}

/* Investment Cards Grid */
.dp-invest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0 25px 0;
}

.dp-invest-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dp-invest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    border-color: #ef4937;
}

.dp-invest-icon {
    width: 36px;
    height: 36px;
    background: rgba(239, 73, 55, 0.1);
    color: #ef4937;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.dp-invest-card p {
    font-size: 0.92rem;
    color: #2d3748;
    margin: 0;
    font-weight: 600;
}

/* Fields Grid (Lĩnh vực hoạt động) */
.dp-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0 30px 0;
}

.dp-field-item {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-left: 3px solid #ef4937;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.dp-field-item:hover {
    border-color: #ef4937;
    transform: translateY(-2px);
}

.dp-field-text {
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.5;
}

.dp-field-text strong {
    color: #1a202c;
}

/* Cleanup for WordPress wpautop */
.dp-about-page p:empty,
.dp-about-page br {
    display: none !important;
}

@media (max-width: 991px) {
    .dp-invest-grid {
        grid-template-columns: 1fr;
    }

    .dp-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CSS Khối Giới Thiệu Đầu Trang (Top Intro Block Trên Banner)
   ========================================================================== */
.dp-top-intro-block {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 25px;
    font-family: inherit;
}

.dp-top-intro-badge {
    display: inline-block;
    background-color: rgba(239, 73, 55, 0.08);
    color: #ef4937;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.dp-top-intro-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2d3748;
    margin: 0;
}

.dp-top-intro-text strong {
    color: #1a202c;
    font-weight: 700;
}

.dp-top-intro-block p:empty,
.dp-top-intro-block br {
    display: none !important;
}