.modern-landing-hero {
    position: relative;
    overflow: hidden;
}

.modern-landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(0, 99, 134, 0.16), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(80, 101, 226, 0.14), transparent 40%);
    pointer-events: none;
}

.modern-landing-hero .hero-content {
    position: relative;
    z-index: 2;
}

.modern-landing-hero .hero-content-text {
    max-width: 980px;
    margin: 0 auto 12px;
}

.hero-headline-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

@media (min-width: 992px) {
    .hero-headline-block {
        align-items: flex-start;
    }
}

.hero-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #3d4ed4;
    background: rgba(80, 101, 226, 0.12);
    border: 1px solid rgba(80, 101, 226, 0.28);
}

.modern-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 99, 134, 0.1);
    color: #005271;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(0, 99, 134, 0.22);
}

.modern-landing-hero .hero-subtitle {
    font-size: clamp(24px, 4.6vw, 52px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.modern-landing-hero .hero-subtitle.hero-subtitle-flow {
    margin-bottom: 0;
}

/* Một khung tìm kiếm: bỏ “hộp trong hộp”, chỉ giữ shadow/viền trên thanh gộp */
.modern-landing-hero .search-area {
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    position: relative;
    z-index: 4;
}

.modern-landing-hero .search-area .top-search-form .row.input-box {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(80, 101, 226, 0.38);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-landing-hero .search-area .top-search-form .row.input-box:focus-within {
    border-color: rgba(80, 101, 226, 0.75);
    box-shadow: 0 14px 40px rgba(80, 101, 226, 0.18);
}

.modern-landing-hero .hero-form-select,
.modern-landing-hero .top-search-form .top-search-form-input.form-control {
    box-shadow: none !important;
    height: 58px;
}

.modern-landing-hero .hero-search-combined > .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.modern-landing-hero .hero-search-inner {
    width: 100%;
}

/* Trang trí Stars.svg không đè lên ô nhập (chấm tím) */
.modern-landing-hero .image-2 {
    z-index: 0;
    pointer-events: none;
    opacity: 0.12;
}

@media (min-width: 992px) {
    .modern-landing-hero .hero-search-select-wrap {
        flex: 0 0 clamp(200px, 28%, 280px) !important;
        max-width: 280px;
    }
}

.modern-landing-hero .hero-search-input-wrap {
    position: relative;
    min-height: 58px;
}

.modern-landing-hero .hero-form-select {
    border-radius: 0 !important;
    border: none !important;
    width: 100%;
    padding-block: 0;
    padding-inline: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    background-color: #f8fafc;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 12 12'%3E%3Cpath stroke='%235065E2' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
    appearance: none;
    -webkit-appearance: none;
    text-align: start;
}

/* LTR / RTL: viền giữa danh mục và ô nhập trùng với hướng đọc */
.modern-landing-hero .hero-search-inner[dir="ltr"] .hero-form-select {
    border-inline-end: 1px solid rgba(80, 101, 226, 0.22) !important;
}

.modern-landing-hero .hero-search-inner[dir="rtl"] .hero-form-select {
    border-inline-start: 1px solid rgba(80, 101, 226, 0.22) !important;
    padding-inline: 32px 12px;
    background-position: left 14px center;
}

.modern-landing-hero .hero-form-select:focus {
    outline: none;
    background-color: #f1f5f9;
}

.modern-landing-hero .top-search-form .form-control.top-search-form-input,
.modern-landing-hero .top-search-form .hero-search-field {
    border-radius: 0 !important;
    border: none !important;
    padding-block: 0;
    padding-inline: 14px 58px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
    color: #0f172a;
    background-color: #fafafa;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: start;
}

.modern-landing-hero .hero-search-inner[dir="rtl"] .hero-search-field {
    padding-inline: 58px 14px;
}

.modern-landing-hero .hero-search-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.modern-landing-hero .hero-search-field::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.modern-landing-hero .hero-search-field:focus {
    outline: none;
    background-color: #fff;
}

@media (max-width: 991px) {
    .modern-landing-hero .hero-search-inner[dir="ltr"] .hero-form-select {
        border-inline-end: none !important;
    }

    .modern-landing-hero .hero-search-inner[dir="rtl"] .hero-form-select {
        border-inline-start: none !important;
    }

    .modern-landing-hero .hero-form-select {
        border-block-end: 1px solid rgba(80, 101, 226, 0.22) !important;
    }
}

/* Nút tìm dính sát mép viền phải (LTR) / mép đầu dòng (RTL), cao full thanh */
.modern-landing-hero .top-search-form .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 58px;
    width: 54px;
    top: 0;
    bottom: 0;
    left: auto;
    right: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
    transform: none;
    border-radius: 0;
    border-start-end-radius: 13px;
    border-end-end-radius: 13px;
    cursor: pointer;
    z-index: 6;
    transition: background-color 0.2s ease, opacity 0.15s ease;
}

.modern-landing-hero .hero-search-inner[dir="rtl"] .top-search-form .search-icon {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    border-start-start-radius: 13px;
    border-end-start-radius: 13px;
}

.modern-landing-hero .top-search-form .search-icon:active {
    opacity: 0.92;
}

.modern-landing-hero .top-search-form .cross-icon {
    left: auto !important;
    right: auto !important;
    inset-inline-end: 0 !important;
    inset-inline-start: auto !important;
    width: 54px;
    height: 100% !important;
    min-height: 58px;
    top: 0 !important;
    transform: none !important;
    border-radius: 0;
    border-start-end-radius: 13px;
    border-end-end-radius: 13px;
    z-index: 7;
    transition: background-color 0.2s ease;
}

.modern-landing-hero .hero-search-inner[dir="rtl"] .top-search-form .cross-icon {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    border-start-start-radius: 13px;
    border-end-start-radius: 13px;
}

.modern-landing-hero .image-1 {
    opacity: 0.35;
}

.modern-landing-hero .popular-search-list li {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    padding: 7px 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modern-landing-hero .popular-search-list li:hover {
    border-color: rgba(0, 99, 134, 0.35);
    transform: translateY(-1px);
}

.modern-kpi-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.modern-kpi-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 16px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(12, 25, 38, 0.06);
}

.modern-kpi-card h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    color: #006386;
    font-weight: 700;
}

.modern-kpi-card p {
    margin: 8px 0 0;
    color: #5f6670;
    font-size: 14px;
    font-weight: 500;
}

.modern-hero-row {
    position: relative;
    z-index: 2;
}

.hero-preview-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
    padding: 22px;
}

.hero-preview-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #14b86f;
    box-shadow: 0 0 0 6px rgba(20, 184, 111, 0.18);
}

.hero-preview-image {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 99, 134, 0.08), rgba(80, 101, 226, 0.1));
    margin-bottom: 18px;
    padding: 20px;
}

.hero-preview-image img {
    max-width: 210px;
    width: 100%;
    object-fit: contain;
}

.hero-preview-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-preview-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 14px;
    color: #374151;
}

.hero-preview-list i {
    color: #006386;
    margin-top: 2px;
}

.hero-preview-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-link-inline {
    color: #006386;
    font-weight: 600;
    text-decoration: none;
}

.hero-link-inline:hover {
    text-decoration: underline;
}

.feature-section-main,
.knowledge-article,
.video-wrapper,
.faq-wrapper,
.blog-wrapper,
.cta-area {
    position: relative;
}

.feature-card,
.knowledge-wrapper,
.blog-card,
.accordion-item,
.cta-wrap.style1 {
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.section-title {
    letter-spacing: -0.02em;
}

.cta-wrap.style1 {
    border: 1px solid rgba(0, 99, 134, 0.16);
}

@media (max-width: 991px) {
    .modern-kpi-grid {
        grid-template-columns: 1fr;
    }

    .modern-kpi-card {
        text-align: center;
    }

    .hero-preview-card {
        margin-top: 8px;
    }

    .hero-preview-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}
