/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

:root {
    --cw-primary: #ea4c46;
    --cw-primary-hover: #d13d38;
    --cw-secondary: #4285f4;
    --cw-text-main: #333333;
    --cw-text-dim: #666666;
    --cw-border-light: rgba(0, 0, 0, 0.08);
    --cw-glass-bg: rgba(255, 255, 255, 0.8);
    --cw-glass-border: rgba(255, 255, 255, 0.2);
    --cw-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --cw-shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --cw-shadow-lg: 0 15px 35px rgba(234, 76, 70, 0.15);
    --cw-radius-md: 12px;
    --cw-font-serif: "Roboto" !important;
    --cw-font-sans: "Roboto" !important;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto" !important;
}

body,
p,
a:not([class*="icon"]):not(.dashicons),
span:not([class*="icon"]):not(.dashicons),
li,
input:not([type="checkbox"]):not([type="radio"]),
textarea,
button,
select {
    font-family: "Roboto" !important;
}

/* --- BANNERS --- */
.banner-1 {
    background: radial-gradient(circle at 20% 50%, rgba(255, 192, 203, 0.4), transparent 50%), radial-gradient(circle at 100% 50%, rgba(135, 206, 250, 0.25), transparent 50%) !important;
}

.banner-2 {
    background: linear-gradient(0deg, #fff 0%, var(--cw-primary) 56%) !important;
}

.banner-3 {
    background-color: #fffffe !important;
    background-size: cover !important;
    background-image: linear-gradient(266deg, #2f2f2f 0%, var(--cw-primary) 100%) !important;
}

/* --- UTILITIES --- */
.img-border img {
    border-radius: var(--cw-radius-md);
    overflow: hidden;
}

.icon-check {
    display: inline-flex;
    width: 26px;
    height: 26px;
    background: var(--cw-primary);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(234, 76, 70, 0.3);
}

.icon-list-text {
    list-style: none !important;
    position: relative;
    padding-left: 40px !important;
    margin-bottom: 15px;
    display: block;
}

.icon-list-text::before {
    content: "\2714";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: var(--cw-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* --- CUSTOM REASON BOX --- */
.custom-reason-box {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 1.6px solid var(--border-color, #eee);
    border-radius: 10px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.custom-reason-box:hover {
    border-color: var(--cw-primary) !important;
    box-shadow: var(--cw-shadow-md);
    transform: translateY(-5px);
}

.reason-number {
    font-weight: 700;
    color: transparent;
    line-height: 1;
    margin-right: 20px;
    opacity: 0.8;
}

.reason-content {
    flex: 1;
}

.reason-title {
    margin: 0 0 10px 0;
    color: var(--cw-text-main);
}

.reason-desc {
    margin: 0;
}

/* --- CUSTOM BUTTONS --- */
.custom-btn-v1 {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #fff !important;
    font-weight: 700;
}

.custom-btn-v1::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hover-bg, #000);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-btn-v1:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.custom-btn-v1 .btn-icon {
    margin-left: 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.custom-btn-v1 .btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke: currentColor;
}

.custom-btn-v1 .icon-main,
.custom-btn-v1 .icon-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-btn-v1 .icon-hover {
    position: absolute;
    opacity: 0;
    transform: translate(-10px, 5px);
}

.custom-btn-v1:hover .icon-main {
    opacity: 0;
    transform: translate(10px, -5px);
}

.custom-btn-v1:hover .icon-hover {
    opacity: 1;
    transform: translate(0, 0);
}

.custom-btn-v2 {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.3s;
    color: #fff !important;
    font-weight: 700;
    gap: 10px;
}

.custom-btn-v2:hover {
    background-color: var(--hover-bg, #ea4c46) !important;
    transform: rotate(-3deg) scale(1.02);
}

/* --- SERVICE CARD --- */
.custom-service-card {
    border-radius: 10px;
    border: 1.6px solid var(--border-color, #eee);
    box-shadow: var(--cw-shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cw-shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    object-fit: contain;
}

.card-icon-placeholder {
    font-size: 24px;
    margin-right: 12px;
    font-weight: bold;
}

.card-title {
    margin: 0;
    font-weight: 700;
    color: var(--cw-text-main);
    line-height: 1.2;
}

.card-body {
    padding: 0 10px 10px 10px;
}

.card-desc {
    margin: 0;
    color: var(--cw-text-main);
    line-height: 1.6;
}

/* --- PRICING CARD --- */
/* Card mặc định */
.custom-pricing-card {
    background: #fff;
    border-radius: 15px;
    border: 1.2px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    margin: 20px auto;
    width: 95%;
}

/* Gỡ hiệu ứng nhếch lên cho các card thường */
.custom-pricing-card:hover {
    transform: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Gói Featured: Căn TOP bằng các gói khác, dài hơn ở BOTTOM */
.custom-pricing-card.featured {
    border: 2px solid #ea4c46 !important;
    z-index: 5;
    margin-top: 0 !important;
    /* Căn bằng TOP với gói thường */
    margin-bottom: -30px !important;
    /* Chiều cao dư ra dồn xuống BOTTOM */
    min-height: calc(100% + 30px);
}

/* CHỈ gói Featured mới nhếch lên khi hover */
.custom-pricing-card.featured:hover {
    transform: translateY(-15px) !important;
    border-color: #ea4c46 !important;
    box-shadow: 0 15px 30px rgba(234, 76, 70, 0.2) !important;
}

.pricing-header {
    padding: 20px 15px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.pricing-title {
    margin: 0;
    font-weight: 700;
    font-size: 22px;
    color: var(--cw-text-main);
}

.pricing-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--cw-text-dim);
}

.pricing-main-price {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    color: var(--cw-text-main);
}

.pricing-sub-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 5px 0 25px;
}

.pricing-price-sub {
    font-size: 14px;
    color: #777;
}

.kpi-tag {
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-button {
    display: block;
    background: var(--feat-color, var(--cw-primary));
    color: #fff !important;
    padding: 14px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    margin-bottom: 35px;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(234, 76, 70, 0.3);
}

.pricing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 76, 70, 0.4);
}

.pricing-features {
    text-align: left;
    padding: 0 5px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 14.5px;
    color: #444;
}

.feature-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: var(--feat-color, var(--cw-primary));
    flex-shrink: 0;
    margin-top: 3px;
}

.feature-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- STICKY PRICING TABLE --- */
.pt-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #eee;
    border-radius: 10px;
}

.pt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.pt-table th {
    background: var(--pt-accent, var(--cw-primary));
    color: #fff;
    padding: 15px;
    text-align: center;
}

.pt-table td {
    padding: 12px;
    border: 1px solid #eee;
    text-align: center;
}

.pt-sticky {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 3;
    text-align: left !important;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.05);
    /* Hiệu ứng đổ bóng ngăn cách */
}

/* Ẩn đổ bóng khi chưa cuộn (tùy chọn CSS nâng cao nếu cần) */
th.pt-sticky {
    background-color: var(--pt-accent, #ea4c46) !important;
    color: #fff !important;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.1);
}

/* Responsive cho Mobile */
@media screen and (max-width: 767px) {
    .pt-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pt-table th,
    .pt-table td {
        min-width: 140px;
        /* Đảm bảo ô không bị bóp quá nhỏ */
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .pt-sticky {
        min-width: 160px !important;
        /* Cột hạng mục rộng hơn một chút */
    }
}

.pt-section td,
tr.pt-section td.pt-sticky {
    background-color: #f1f1f1 !important;
    font-weight: 800 !important;
    text-align: left !important;
    color: #333 !important;
}

.pt-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
}

.pt-yes {
    background: #27ae60;
}

.pt-no {
    background: #e74c3c;
}

/* --- INFO BOX --- */
.info-box-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1.6px solid var(--cw-primary);
    border-radius: 8px;
    background: linear-gradient(97deg, #fff 32%, rgba(234, 76, 70, 0.1) 100%);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.info-box-wrap:hover {
    transform: translateY(-3px);
    box-shadow: var(--cw-shadow-md);
}

.info-box-img {
    flex: 0 0 120px;
}

.info-box-img img {
    border-radius: 5px;
    width: 100%;
}

.info-box-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--cw-text-main);
    margin-bottom: 5px;
}

/* --- PROFILE CARD --- */
.profile-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--cw-shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cw-shadow-md);
}

.profile-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: var(--cw-shadow-sm);
}

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

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--cw-text-main);
}

.profile-job {
    color: var(--cw-primary);
    font-style: italic;
    margin-bottom: 15px;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.profile-social a {
    color: var(--cw-text-main);
    font-size: 20px;
    transition: color 0.3s;
}

.profile-social a:hover {
    color: var(--cw-primary);
}

/* --- LOGO MARQUEE --- */
.logo-marquee-container {
    overflow: hidden;
    padding: 30px 0;
    background: #fff;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.logo-marquee-container::before,
.logo-marquee-container::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    top: 0;
}

.logo-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.logo-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.marquee-content {
    display: inline-flex;
    animation: marquee-scroll var(--speed, 30s) linear infinite;
    gap: var(--gap, 50px);
    align-items: center;
}

.marquee-item img {
    height: var(--height, 80px);
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marquee-item img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

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

/* --- COUNTER BOX --- */
.counter-box-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fdfdfd;
    border: 1.6px solid #eeeeee;
    border-radius: 10px;
    padding: 15px 25px;
    transition: all 0.3s ease;
}

.counter-box-wrap:hover {
    border-color: var(--cw-primary);
    background-color: #fffafa;
    transform: translateY(-5px);
    box-shadow: var(--cw-shadow-sm);
}

.counter-icon {
    width: var(--icon-size, 60px);
    height: var(--icon-size, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex: 0 0 var(--icon-size, 60px);
}

.counter-icon.has-bg {
    background: var(--cw-primary);
    color: #fff;
}

.counter-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.counter-number {
    font-size: var(--num-size, 38px);
    font-weight: 700;
    color: var(--cw-text-main);
    margin: 0;
}

.counter-label {
    font-size: var(--label-size, 18px);
    font-weight: 700;
    color: var(--cw-text-main);
    margin: 0;
}

@media screen and (max-width: 767px) {
    .counter-icon {
        width: var(--icon-size-mobile) !important;
        height: var(--icon-size-mobile) !important;
        flex: 0 0 var(--icon-size-mobile) !important;
    }

    .counter-number {
        font-size: var(--num-size-mobile) !important;
    }

    .counter-label {
        font-size: var(--label-size-mobile) !important;
    }
}

/* --- TESTIMONIAL CARD --- */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--cw-shadow-sm);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--cw-shadow-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-header::after {
    content: "\201C";
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 80px;
    color: rgba(234, 76, 70, 0.1);
    font-family: serif;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--cw-primary), var(--cw-secondary));
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 24px;
    margin: 0;
}

.testimonial-info p {
    color: var(--cw-text-dim);
    font-size: 16px;
    margin: 5px 0;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-top: 5px;
}

.testimonial-stars span {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/wp-content/uploads/2026/04/svgexport-14.svg');
    background-size: contain;
    background-repeat: no-repeat;
    font-size: 0;
    /* Ẩn ký tự ★ gốc */
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-proof {
    display: flex;
    align-items: center;
    background: #f4f8ff;
    border: 1px solid #e1ebff;
    border-radius: 12px;
    padding: 10px;
    gap: 15px;
}

.testimonial-proof-img {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.testimonial-proof-content span {
    font-size: 14px;
    color: #777;
    display: block;
}

.testimonial-proof-content h5 {
    margin: 0;
    color: #1a4a8d;
    font-size: 16px;
    font-weight: 700;
}

/* --- PILL TEXT BOX --- */
.text-box {
    display: inline-block !important;
    padding: 2px 20px !important;
    background-color: #fff !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 100px !important;
    margin: 0 !important;
}

.text-box p,
.text-box span {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    color: var(--cw-text-main) !important;
    font-size: 15px !important;
}

.star-rating::before,
.star-rating span::before {
    content: "" !important;
    background-image: url('/wp-content/uploads/2026/04/svgexport-14.svg') !important;
    background-repeat: repeat-x !important;
    background-size: 16px 16px !important;
    height: 16px !important;
    width: 100% !important;
    /* Quan trọng: Phải có độ rộng để hiện background */
    display: inline-block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.star-rating {
    width: 80px !important;
    height: 16px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    position: relative !important;
    display: inline-block !important;
}

.star-rating span {
    height: 16px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    overflow: hidden !important;
}

.testimonial-stars span {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url('/wp-content/uploads/2026/04/svgexport-14.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    margin-right: 2px !important;
    font-size: 0 !important;
}

/* --- PROFILE CARD SOCIAL ICONS --- */
.profile-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    align-items: center;
}

.profile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.profile-social a:hover {
    color: #ea4c46;
    transform: translateY(-2px);
}

.profile-social svg,
.profile-social img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.profile-social span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- PRICING TABLE SECTION --- */
.pt-section {
    background-color: #f7f7f7 !important;
}

.pt-section td {
    font-weight: 800;
    text-transform: uppercase;
    color: #333;
    padding: 12px 15px !important;
    letter-spacing: 0.5px;
}

/* --- CONTACT LIST PRO --- */
.custom-contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing, 12px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size, 15px);
    transition: transform 0.3s ease;
    cursor: default;
    text-decoration: none !important;
}

a.contact-item {
    cursor: pointer;
}

.contact-item:hover {
    transform: translateX(var(--shift, 8px));
}

.contact-item i {
    color: var(--icon-color, #ea4c46);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.contact-icon-wrap {
    width: var(--icon-w, 24px);
    height: var(--icon-w, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-img-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.contact-label {
    font-weight: 600;
}

.contact-value {
    font-weight: 700;
}