/*
Theme Name: TaproVN
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Design & Build: Lâm Phúc Freelancer - lamphuc.com
Version: 3.0
*/

/* ==========================================================================
   1. BIẾN MÀU SẮC CHUNG (GLOBAL VARIABLES)
   ========================================================================== */
:root {
    --primary-blue: #3375ef;
    --dark-blue: #255bc7;
    --light-blue: #eaf1ff;
    --red-cta: #ce000c;
}

/* ==========================================================================
   2. CÁC THÀNH PHẦN DÙNG CHUNG (HEADINGS, BUTTONS)
   ========================================================================== */

/* --- Tiêu đề chung toàn trang --- */
.tapro-heading, .tapro-heading-blue {
    text-align: center !important; 
    font-size: 30px !important;    
    font-weight: 800 !important;
    color: var(--primary-blue) !important;
    margin-top: 40px !important; 
    margin-bottom: 40px !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
    clear: both !important; /* Chống trôi layout */
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.tapro-heading::after, .tapro-heading-blue::after {
    content: '';
    display: block !important;
    width: 60px !important;
    height: 3px !important;
    background-color: var(--primary-blue) !important;
    margin: 15px auto 0 auto !important; 
    border-radius: 2px !important;
}

@media (max-width: 768px) {
    .tapro-heading, .tapro-heading-blue {
        font-size: 24px !important;
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }
}

/* --- Nút bấm chung (Buttons) --- */
.btn, .btn-red, .btn-blue-solid {
    display: inline-block !important;
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
    padding: 14px 40px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 50px !important; /* Bo góc viên thuốc */
    border: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: 0 6px 20px rgba(51, 117, 239, 0.15) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.btn:hover, .btn-red:hover, .btn-blue-solid:hover {
    background-color: var(--dark-blue) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(51, 117, 239, 0.3) !important;
    color: #ffffff !important;
}


/* ==========================================================================
   3. TOP BAR & HEADER
   ========================================================================== */
.header-top { padding-top: 10px; }

.tb-left-content, .tb-right-content {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 500;
    color: black;
}

.tb-item { display: flex; align-items: center; }

.tb-item svg {
    margin-right: 8px;
    opacity: 0.9;
    position: relative;
    top: -1px;
}

.lang-switch { display: flex; align-items: center; gap: 12px; }

.flag-icon {
    width: 28px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 0.5;
    transition: 0.3s ease;
    display: block;
}

.flag-icon.active, .flag-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}


/* ==========================================================================
   4. THANH TÌM KIẾM AJAX (AJAX SEARCH)
   ========================================================================== */
.custom-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
}

.custom-search-form {
    display: flex;
    align-items: center;
    background: #f5f7f9;
    border: 1.5px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    width: 100%; /* Cập nhật để full 100% của wrapper */
}

.custom-search-form:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(51, 117, 239, 0.1);
    background: #ffffff;
}

.custom-search-wrapper input[type="text"].custom-search-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    margin-bottom: 0 !important;
    padding: 10px 20px !important;
    height: auto !important;
    border-radius: 0 !important;
    color: #333333 !important;
    flex-grow: 1;
}

.custom-search-wrapper button.custom-search-btn {
    margin-bottom: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.custom-search-input::placeholder { color: #999999; }

.custom-search-btn {
    background: transparent;
    border: none;
    padding: 10px 18px;
    color: #666666;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-search-btn:hover { color: var(--primary-blue); }

.search-spinner {
    display: none;
    position: absolute;
    right: 50px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(51, 117, 239, 0.2);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: searchSpin 0.8s linear infinite;
}

@keyframes searchSpin { 100% { transform: rotate(360deg); } }

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eeeeee;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-dropdown.show {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    display: flex; align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333333; font-size: 14px;
    transition: background 0.2s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #fcfcfc; color: var(--primary-blue); }

@media (max-width: 768px) {
    .custom-search-wrapper { max-width: 100%; }
    .custom-search-input { padding: 10px 15px; font-size: 13px; }
}


/* ==========================================================================
   5. KHỐI TRANG CHỦ (HERO, ABOUT, SOLUTIONS, PARTNERS, NEWS)
   ========================================================================== */

/* --- Hero Video --- */
.custom-video-hero {
    position: relative;
    height: 650px;
    width: 100%;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background-color: #000;
}

.video-foreground {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; height: 56.25vw;
    min-height: 100%; min-width: 177.77vh;
    z-index: 0; pointer-events: none;
}

.video-foreground iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; transform: scale(1.2);
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.custom-video-hero .hero-content {
    position: relative; z-index: 2;
    color: #ffffff; padding: 0 15px;
    animation: fadeInDown 1s ease-out;
}

.custom-video-hero h1 {
    font-size: 42px; font-weight: 700; margin-bottom: 25px;
    letter-spacing: 1px; color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

#about-section { scroll-margin-top: 80px; }

@media (max-width: 768px) {
    .custom-video-hero { height: 450px; }
    .custom-video-hero h1 { font-size: 28px; }
}

/* --- Khối Về Chúng Tôi (Trang chủ) --- */
.custom-about-section { padding: 60px 0; background-color: #ffffff; }
.about-container {
    max-width: 1280px; margin: 0 auto; padding: 0 15px;
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center;
}
.about-content p { color: #555555; line-height: 1.7; margin-bottom: 20px; font-size: 15px; }
.about-title { font-size: 32px; font-weight: 700; color: var(--primary-blue); margin-bottom: 25px; line-height: 1.3; }
.about-slogan {
    font-weight: 700; font-style: italic; color: var(--primary-blue) !important;
    font-size: 16px !important; margin-top: 10px; margin-bottom: 30px !important;
    padding-left: 15px; border-left: 3px solid var(--primary-blue);
}
.about-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-card { position: relative; height: 380px; overflow: hidden; border-radius: 4px; }
.stat-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.stat-card:hover .stat-bg { transform: scale(1.08); }
.stat-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%); z-index: 1; }
.stat-info { position: absolute; bottom: 25px; left: 20px; right: 15px; color: #ffffff; z-index: 2; }
.stat-num { display: block; font-size: 38px; font-weight: 700; line-height: 1.1; margin-bottom: 5px; font-family: 'Roboto', sans-serif; }
.stat-desc { font-size: 14px; line-height: 1.4; opacity: 0.9; display: block; }

@media (max-width: 992px) {
    .about-container { grid-template-columns: 1fr; gap: 40px; }
    .about-stats-grid { gap: 15px; }
}
@media (max-width: 768px) {
    .about-title { font-size: 26px; }
    .about-stats-grid { grid-template-columns: 1fr; }
    .stat-card { height: 250px; }
}

/* --- Khối Giải Pháp & Tải Tài Liệu --- */
.tapro-solutions-section { padding: 60px 0; font-family: 'Roboto', sans-serif; background-color: #fcfcfc; }
.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 50px; }
.solution-card { background: #ffffff; border: 1px solid #e0e6ed; border-radius: 12px; padding: 40px 35px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: all 0.3s ease; }
.solution-card:hover { border-color: var(--primary-blue); box-shadow: 0 10px 30px rgba(51, 117, 239, 0.08); transform: translateY(-3px); }
.card-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; border-bottom: 2px solid #f0f0f0; padding-bottom: 20px; }
.header-icon { width: 45px; height: 45px; background: var(--light-blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.solution-card h3 { margin: 0; font-size: 20px; color: #333333; font-weight: 800; }
.solution-list { list-style: none; padding: 0; margin: 0; }
.solution-list li { display: flex; align-items: center; font-size: 16px; color: #444444; padding: 14px 0; border-bottom: 1px dashed #e5e5e5; transition: color 0.2s ease; }
.solution-list li:last-child { border-bottom: none; padding-bottom: 0; }
.solution-list li:hover { color: var(--primary-blue); }
.solution-list .arrow { color: var(--primary-blue); font-weight: bold; margin-right: 12px; font-size: 18px; line-height: 1; }

.corp-docs-section { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }
.doc-intro { padding-right: 15px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: 10px; }
.doc-intro h3 { color: var(--primary-blue); font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 20px; }
.doc-card { background-color: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 25px 20px; transition: all 0.3s ease; display: flex; flex-direction: column; }
.doc-card:hover { border-color: var(--primary-blue); box-shadow: 0 10px 25px rgba(0,0,0,0.06); transform: translateY(-3px); }
.doc-icon { margin-bottom: 15px; }
.doc-title { font-size: 15px; color: #333333; font-weight: 700; line-height: 1.4; margin-bottom: 15px; flex-grow: 1; }

.doc-card .doc-download {
    color: var(--primary-blue) !important; font-size: 14px !important; font-weight: 600 !important;
    text-decoration: none !important; display: inline-flex !important; align-items: center !important;  
    justify-content: flex-start !important; gap: 6px !important; line-height: 1 !important;       
    transition: color 0.3s ease !important; margin-bottom: 0 !important;
}
.doc-card .doc-download svg { margin: 0 !important; padding: 0 !important; display: block !important; position: static !important; top: auto !important; transform: none !important; vertical-align: middle !important; width: 16px !important; height: 16px !important; }
.doc-card .doc-download:hover { color: var(--dark-blue) !important; }
.doc-card .doc-download br { display: none !important; }

@media (max-width: 992px) {
    .corp-docs-section { grid-template-columns: 1fr 1fr; }
    .doc-intro { padding-bottom: 20px; }
}
@media (max-width: 768px) {
    .solutions-grid { grid-template-columns: 1fr; gap: 20px; }
    .solution-card { padding: 30px 25px; }
    .corp-docs-section { grid-template-columns: 1fr; gap: 15px; }
}

/* --- Băng chuyền Đối tác --- */
.tapro-partner-fullwidth {
    width: 100vw; position: relative; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw; background-color: #f9f9f9; 
    padding: 30px 0; border-top: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee; overflow: hidden;
}
.marquee-track { display: flex; width: max-content; }
.marquee-content { display: flex; flex-shrink: 0; gap: 30px; padding-right: 30px; animation: scroll-left 25s linear infinite; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee-track:hover .marquee-content { animation-play-state: paused; }
.partner-logo-inner { width: 180px; height: 80px; display: flex; align-items: center; justify-content: center; filter: grayscale(100%); opacity: 0.5; transition: all 0.4s ease; }
.partner-logo-inner:hover { filter: grayscale(0%); opacity: 1; }
.partner-logo-inner img { max-height: 100%; max-width: 100%; object-fit: contain; }
@media (max-width: 768px) {
    .partner-logo-inner { width: 130px; height: 60px; }
    .marquee-content { gap: 20px; padding-right: 20px; animation: scroll-left 15s linear infinite; }
}
.title-doi-tac { margin-top: -50px; margin-bottom: -50px; }

/* --- Mạng lưới & Form liên hệ --- */
.tapro-contact-network { padding: 0; background-color: #ffffff; font-family: 'Roboto', sans-serif; }
.network-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.network-title { font-size: 32px; font-weight: 700; color: #333333; line-height: 1.3; margin-bottom: 30px; }
.network-title .text-red { color: var(--primary-blue); }
.network-map img { width: 100%; height: auto; object-fit: contain; }

.network-right { background-color: #f7f9fa; border: 1px solid #eaeaec; border-radius: 12px; padding: 40px 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); }
.form-heading { text-align: center; color: var(--primary-blue); font-size: 24px; font-weight: 700; margin-bottom: 30px; margin-top: 0; }
.tapro-form .form-group { margin-bottom: 20px; }

@media (max-width: 992px) {
    .network-grid { grid-template-columns: 1fr; gap: 40px; }
    .network-title { text-align: center; font-size: 28px; }
    .network-right { max-width: 500px; margin: 0 auto; width: 100%; }
}

/* --- Khối Tin tức --- */
.tapro-news-section { padding: 60px 0; background-color: #fcfcfc; font-family: 'Roboto', sans-serif; }
.tapro-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tapro-news-card { background: #ffffff; border-radius: 8px; border: 1px solid #eeeeee; overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; }
.tapro-news-card:hover { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); transform: translateY(-5px); border-color: #e0e0e0; }
.news-thumb { display: block; height: 220px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tapro-news-card:hover .news-thumb img { transform: scale(1.05); }
.news-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.news-title { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; margin-top: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.news-title a { color: #333333; text-decoration: none; transition: color 0.3s ease; }
.news-title a:hover { color: var(--primary-blue); }
.news-excerpt { font-size: 14px; color: #666666; line-height: 1.5; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.news-meta { margin-top: auto; padding-top: 15px; border-top: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #888888; }
.meta-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background-color: #f9f9f9; padding: 2px; }
.author-name-wrap { display: flex; align-items: center; gap: 4px; }
.author-name { font-weight: 600; color: #333333; line-height: 1; }
.verified-badge { display: block; }
.meta-date { line-height: 1; }
.news-meta p { margin: 0 !important; padding: 0 !important; display: inline-flex !important; align-items: center !important; line-height: 1 !important; }
.news-meta p:empty { display: none !important; }

@media (max-width: 992px) { .tapro-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .tapro-news-grid { grid-template-columns: 1fr; } .news-thumb { height: 200px; } }


/* ==========================================================================
   6. TRANG GIỚI THIỆU (ABOUT PAGE)
   ========================================================================== */
.tapro-about-page { font-family: 'Roboto', sans-serif; color: #333333; line-height: 1.6; }

.about-hero-section { position: relative; padding: 120px 0 !important; color: #ffffff; text-align: center; overflow: hidden; z-index: 1; background-color: #255bc7; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(37, 91, 199, 0.93) 0%, rgba(0, 0, 0, 0.8) 100%); z-index: 2; }
.hero-content { max-width: 950px; margin: 0 auto; position: relative; z-index: 3; }
.page-title { font-size: 46px !important; font-weight: 900 !important; margin-bottom: 12px !important; color: #ffffff !important; line-height: 1.2 !important; }
.page-subtitle { font-size: 19px; font-weight: 600; letter-spacing: 1.5px; color: var(--light-blue); margin-bottom: 45px; text-transform: uppercase; }

.overview-box { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 35px 45px; border-radius: 12px; font-size: 16px; text-align: justify; }
.overview-box p { margin-bottom: 15px; color: #f8f9fa; line-height: 1.7; }
.overview-box p:last-child { margin-bottom: 0; }
.overview-box strong { color: #ffffff; font-weight: 700; }
.overview-box em { color: #ffd700; font-style: normal; font-weight: bold; }

.vission-mission-section { padding: 60px 0; background: #f4f7fb; position: relative; z-index: 2; margin-top: -30px; }
.vission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.vm-card { background: #ffffff; padding: 40px 30px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-top: 5px solid var(--primary-blue); transition: transform 0.3s; }
.vm-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.vm-icon { width: 65px; height: 65px; background: var(--light-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; }
.vm-icon svg { width: 30px; height: 30px; }
.vm-card h3 { font-size: 21px; color: var(--primary-blue); margin-bottom: 18px; font-weight: 800; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 22px; margin-bottom: 12px; color: #555; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-blue); font-weight: bold; }

.services-section { padding: 85px 0; background: #ffffff; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-box { border: 1px solid #e2e8f0; padding: 40px; border-radius: 12px; position: relative; transition: all 0.3s ease; }
.service-box:hover { border-color: var(--primary-blue); box-shadow: 0 15px 40px rgba(51, 117, 239, 0.1); }
.srv-number { position: absolute; top: 25px; right: 25px; font-size: 45px; font-weight: 900 !important; color: var(--light-blue) !important; line-height: 1; opacity: 0.8; font-family: Arial, sans-serif; }
.srv-title { font-size: 21px; color: #333333; margin-bottom: 18px; font-weight: 700; position: relative; z-index: 1; }
.service-box ul { padding-left: 20px; margin-bottom: 22px; color: #555; font-size: 15px; }
.service-box ul li { margin-bottom: 9px; }
.srv-highlight { background: var(--light-blue); color: var(--dark-blue); padding: 12px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; }

.benefits-section { padding: 85px 0; background: #f9fbfc; }
.benefits-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.benefits-image img { border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.benefit-item { display: flex; gap: 18px; margin-bottom: 28px; }
.b-icon { flex-shrink: 0; width: 42px; height: 42px; background: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(51, 117, 239, 0.15); }
.b-icon svg { width: 22px; height: 22px; }
.benefit-item h4 { margin: 0 0 6px 0; font-size: 18px; color: #333; font-weight: 700; }
.benefit-item p { margin: 0; color: #666; font-size: 14px; }

.conclusion-cta { padding: 85px 0; background: #ffffff; }
.cta-box { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%); border-radius: 16px; padding: 60px 45px; text-align: center; color: #ffffff; box-shadow: 0 20px 40px rgba(51, 117, 239, 0.2); }
.cta-box h2 { color: #ffffff !important; font-size: 34px !important; margin-bottom: 25px !important; font-weight: 900 !important; }
.cta-box p { font-size: 17px; max-width: 850px; margin: 0 auto 20px auto; opacity: 0.9; line-height: 1.7; }
.cta-box strong { color: #ffd700; font-weight: bold; }


/* ==========================================================================
   7. MODAL POP-UP LIÊN HỆ CTA
   ========================================================================== */
.tapro-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tapro-modal.show { opacity: 1; visibility: visible; }
.tapro-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); }
.tapro-modal-content {
    background: #ffffff; width: 100%; max-width: 550px; border-radius: 12px;
    padding: 50px 40px; position: relative; z-index: 1;
    transform: scale(0.9) translateY(20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
.tapro-modal.show .tapro-modal-content { transform: scale(1) translateY(0); }
.tapro-modal-close {
    position: absolute; top: 15px; right: 15px; background: transparent; border: none;
    font-size: 30px; line-height: 1; color: #888; cursor: pointer; padding: 5px; transition: color 0.3s ease;
}
.tapro-modal-close:hover { color: var(--primary-blue); }
.popup-heading { text-align: center; color: var(--primary-blue); font-size: 26px; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; }
.popup-subheading { text-align: center; color: #666; font-size: 15px; margin-bottom: 35px; max-width: 350px; margin-left: auto; margin-right: auto; }

.tapro-form input[type="text"], .tapro-form input[type="tel"], .tapro-form input[type="email"] {
    width: 100% !important; padding: 14px 25px !important; font-size: 15px !important;
    border: 1px solid #d1d9e2 !important; border-radius: 50px !important; background-color: #ffffff !important;
    color: #333333 !important; box-shadow: none !important; outline: none !important; transition: all 0.3s ease !important; font-weight: 500 !important;
}
.tapro-form input:focus { border-color: var(--primary-blue) !important; background-color: var(--light-blue) !important; box-shadow: 0 0 0 4px rgba(51, 117, 239, 0.1) !important; }
.tapro-form .tapro-submit-btn {
    background-color: var(--red-cta) !important; color: #ffffff !important; padding: 14px 50px !important;
    font-size: 16px !important; font-weight: 700 !important; border: none !important; border-radius: 50px !important;
    box-shadow: 0 5px 15px rgba(206, 0, 12, 0.2) !important; cursor: pointer; transition: all 0.3s ease !important;
    text-transform: uppercase; margin-top: 15px;
}
.tapro-form .tapro-submit-btn:hover { background-color: #a30009 !important; transform: translateY(-2px) !important; box-shadow: 0 8px 20px rgba(206, 0, 12, 0.4) !important; }
.tapro-form .tapro-submit-btn:disabled { background-color: #cccccc !important; cursor: not-allowed; box-shadow: none !important; }

@media (max-width: 768px) {
    .tapro-modal-content { padding: 40px 25px; width: 90%; }
    .popup-heading { font-size: 22px; }
    .tapro-form input { padding: 12px 20px !important; font-size: 14px !important; }
}


/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.tapro-footer {
    background: linear-gradient(-45deg, #111111, #000c3a, #171c1b, #00132a);
    background-size: 400% 400%;
    animation: taproGradientWave 15s ease infinite;
    color: #e0e0e0; padding: 60px 0 0 0; font-family: 'Roboto', sans-serif;
    position: relative; border-top: 3px solid var(--primary-blue);
}
@keyframes taproGradientWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-logo-wrapper { background: rgba(255, 255, 255, 0.95); display: inline-block; padding: 10px 20px; border-radius: 8px; margin-bottom: 25px; }
.footer-logo { max-height: 50px; display: block; }
.company-name { color: #ffffff; font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 25px; text-transform: uppercase; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; line-height: 1.6; font-size: 14px; }
.contact-icon { color: var(--primary-blue); margin-top: 2px; }
.footer-heading { color: #ffffff; font-size: 18px; font-weight: 700; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background-color: var(--primary-blue); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #b0b0b0; text-decoration: none; font-size: 14px; transition: all 0.3s ease; display: inline-flex; align-items: center; }
.footer-links a::before { content: '›'; margin-right: 8px; font-size: 16px; color: var(--primary-blue); transition: transform 0.3s ease; }
.footer-links a:hover { color: #ffffff; }
.footer-links a:hover::before { transform: translateX(3px); }
.footer-bottom { background: rgba(0, 0, 0, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 20px 0; text-align: center; font-size: 13px; color: #888888; }
.footer-bottom p { margin: 0; }

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .company-info { grid-column: span 2; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .company-info { grid-column: span 1; }
    .footer-logo-wrapper { margin-bottom: 20px; }
}


/* ==========================================================================
   9. TRANG DỊCH VỤ (SERVICE PAGE)
   ========================================================================== */
.tapro-service-page {
    font-family: 'Roboto', sans-serif;
    color: #333333;
    line-height: 1.6;
}

/* --- Hero Section --- */
.sp-hero {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
    background-color: var(--dark-blue);
    overflow: hidden;
    z-index: 1;
}
.sp-hero-bg { position: absolute; inset: 0; z-index: 1; }
.sp-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.sp-hero-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to bottom, rgba(37, 91, 199, 0.95), rgba(17, 17, 17, 0.8));
}
.sp-hero-content {
    position: relative; z-index: 3;
    max-width: 900px; margin: 0 auto;
}
.sp-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px; font-weight: 700; letter-spacing: 2px;
    margin-bottom: 25px;
}
.sp-title {
    font-size: 42px !important; font-weight: 900 !important;
    line-height: 1.3 !important; color: #ffffff !important; margin-bottom: 25px !important;
}
.sp-intro {
    font-size: 17px; color: #eaf1ff;
}
.sp-intro strong { color: #ffffff; }

/* --- Dịch vụ Grid --- */
.sp-services-section { padding: 30px 0; background: #ffffff; }
.sp-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.sp-service-card {
    background: #fcfcfc;
    border: 1px solid #eeeeee;
    border-radius: 12px; padding: 40px 30px;
    transition: all 0.3s ease;
}
.sp-service-card:hover {
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px rgba(51, 117, 239, 0.1);
    transform: translateY(-5px);
}
.sp-icon-wrap {
    width: 60px; height: 60px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
}
.sp-icon-wrap svg { width: 30px; height: 30px; }
.sp-service-card h3 { font-size: 22px; color: #111; font-weight: 800; margin-bottom: 20px; }
.sp-list { list-style: none; padding: 0; margin: 0; }
.sp-list li {
    position: relative; padding-left: 20px; margin-bottom: 12px; color: #555; font-size: 15px;
}
.sp-list li::before {
    content: '•'; color: var(--primary-blue);
    font-size: 20px; font-weight: bold; position: absolute; left: 0; top: -3px;
}

/* --- Split Section (Giá trị & Lợi thế) --- */
.sp-split-section { padding: 80px 0; background: #f4f7fb; }
.sp-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.sp-split-box {
    background: #ffffff; border-radius: 16px; padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.sp-split-box h3 {
    font-size: 26px; color: var(--primary-blue); font-weight: 800;
    margin-bottom: 30px; padding-bottom: 15px;
    border-bottom: 2px dashed #e0e0e0;
}
.sp-check-list { list-style: none; padding: 0; margin: 0; }
.sp-check-list li {
    position: relative; padding-left: 30px; margin-bottom: 18px; color: #444; font-size: 16px;
}
.sp-check-list li::before {
    content: '✔'; position: absolute; left: 0; top: 0;
    color: #28a745; /* Màu xanh lá tạo cảm giác tích cực, an toàn */
    font-weight: 900; font-size: 18px;
}
.sp-check-list strong { color: #111; }

/* --- Commitment & CTA --- */
.sp-cta-section { padding: 80px 0; background: #ffffff; }
.sp-cta-wrapper {
    max-width: 800px; margin: 0 auto; text-align: center;
    background: #ffffff; border: 1px solid #e0e0e0;
    border-radius: 20px; padding: 60px 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.sp-cta-title { font-size: 32px !important; font-weight: 900 !important; color: #111 !important; margin-bottom: 10px !important; }
.sp-slogan {
    font-size: 22px; font-weight: 700; color: var(--primary-blue);
    font-style: italic; margin-bottom: 25px;
}
.sp-cta-desc { font-size: 16px; color: #555; margin-bottom: 30px; line-height: 1.7; }
.sp-cta-desc strong { color: #111; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .sp-services-grid, .sp-split-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .sp-title { font-size: 32px !important; }
    .sp-split-box { padding: 35px 25px; }
    .sp-cta-wrapper { padding: 40px 20px; }
}


/* ==========================================================================
   10. GIAO DIỆN MEGA MENU 
   ========================================================================== */
.tapro-mega-wrapper {
    padding: 25px 30px;
    background-color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.tapro-mega-grid {
    display: grid;
    gap: 30px;
}

/* Lưới 5 cột cho Dịch vụ */
.mega-5-cols { grid-template-columns: repeat(5, 1fr); }

/* Lưới 2 cột cho Giải pháp */
.mega-2-cols { grid-template-columns: repeat(2, 1fr); }

.mega-column {
    display: flex;
    flex-direction: column;
}

.mega-heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    text-transform: uppercase;
    line-height: 1.3;
}

.mega-list {
    list-style: none;
    padding: 0; margin: 0;
}

.mega-list li {
    margin-bottom: 10px;
}

.mega-list li a {
    color: #444444;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.mega-list li a .arr {
    color: var(--primary-blue);
    margin-right: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Hiệu ứng trỏ chuột: Đổi màu xanh, mũi tên đẩy sang phải */
.mega-list li a:hover {
    color: var(--primary-blue);
}

.mega-list li a:hover .arr {
    transform: translateX(4px);
}

/* Responsive: Ẩn Mega-Menu Grid trên Mobile để Flatsome chuyển về menu dọc accordion */
@media (max-width: 992px) {
    .tapro-mega-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .tapro-mega-wrapper { padding: 15px; }
    .mega-heading { font-size: 15px; margin-top: 10px; }
}


/* ==========================================================================
   11. TRANG LIÊN HỆ (CONTACT PAGE)
   ========================================================================== */
.tapro-contact-page { font-family: 'Roboto', sans-serif; }

/* Banner Header */
.cp-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cp-hero .page-title { 
    color: white !important; 
    font-size: 36px !important; 
    font-weight: 900 !important; 
    margin-bottom: 15px !important; 
    text-transform: uppercase; 
}

.cp-hero .page-subtitle { 
    color: var(--light-blue); 
    font-size: 16px; 
    margin: 0; 
}

/* Khối nội dung chính */
.cp-main-section { 
    padding: 70px 0; 
    background: #ffffff; 
}

.cp-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; /* Cột form bên phải to hơn 1 chút */
    gap: 60px; 
    align-items: center;
}

.cp-info { padding-right: 20px; }

.cp-heading { 
    font-size: 30px; 
    color: var(--primary-blue); 
    font-weight: 800; 
    margin-bottom: 5px; 
    text-transform: uppercase;
}

.cp-desc { 
    font-size: 15px; 
    color: #555; 
    font-weight: 700; 
    margin-bottom: 35px; 
}

/* Danh sách thông tin */
.cp-list { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 35px 0; 
}

.cp-list li { 
    display: flex; 
    align-items: flex-start; 
    gap: 18px; 
    margin-bottom: 25px; 
    font-size: 15px; 
    color: #333; 
    line-height: 1.6; 
}

.cp-icon { 
    width: 45px; 
    height: 45px; 
    background: var(--light-blue); 
    color: var(--primary-blue); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
}

.cp-icon svg { width: 22px; height: 22px; }

/* Bản đồ Maps */
.cp-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #eeeeee;
}

.cp-map iframe { display: block; }

/* Cột phải chứa shortcode */
.cp-form-area {
    background: #ffffff;
}

/* Tùy chỉnh riêng form khi hiển thị ở trang Liên Hệ */
.cp-form-area .tapro-inline-section { padding: 0 !important; }
.cp-form-area .inline-contact-header { text-align: left !important; margin-bottom: 25px !important; }
.cp-form-area .inline-contact-header h2 { text-align: left !important; font-size: 26px !important; }
.cp-form-area .inline-contact-header h2::after { margin: 15px 0 0 0 !important; } /* Gạch chân dồn sang trái */
.cp-form-area .inline-contact-header p { text-align: left !important; }

/* Responsive */
@media (max-width: 992px) {
    .cp-grid { 
        grid-template-columns: 1fr; /* Gập 1 cột trên Mobile/Tablet */
        gap: 50px; 
    }
    .cp-info { padding-right: 0; }
    .cp-form-area .inline-contact-header h2 { text-align: center !important; }
    .cp-form-area .inline-contact-header h2::after { margin: 15px auto 0 auto !important; }
    .cp-form-area .inline-contact-header p { text-align: center !important; }
}

/* --- CÂN BẰNG TƯƠNG ĐỐI 2 CỘT TRANG LIÊN HỆ (An toàn tuyệt đối) --- */
/* 1. Ép 2 cột bám sát mép trên cùng của lưới */
.tapro-contact-page .cp-grid {
    align-items: flex-start !important; 
}

/* 2. Xóa bỏ khoảng lề trên (margin-top) thừa của cả 2 tiêu đề */
.tapro-contact-page .cp-info h2,
.tapro-contact-page .cp-form-area h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.3 !important;
}

/* 3. Khóa khối bọc tiêu đề form bên phải để không bị đẩy xuống */
.tapro-contact-page .cp-form-area .tapro-inline-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 4. Ép gạch chân (nếu có) của form bên phải căn sang trái cho đồng bộ */
.tapro-contact-page .cp-form-area h2::after {
    margin: 15px 0 20px 0 !important;
}

/* 5. Căn chỉnh chữ mô tả bên dưới tiêu đề cho cân nhau */
.tapro-contact-page .cp-info .cp-desc,
.tapro-contact-page .cp-form-area p {
    margin-top: 0 !important;
}


/* ==========================================================================
   12. TỐI ƯU GIAO DIỆN MOBILE (SLIDE VUỐT & DANH SÁCH NGANG)
   ========================================================================== */

/* --- Tái cấu trúc cơ bản thẻ Tài liệu --- */
.doc-card {
    display: flex !important; 
    flex-direction: row !important; /* Mặc định là nằm ngang (Ảnh trái - Chữ phải) */
    align-items: center !important;
    padding: 15px !important;
    gap: 15px !important;
    text-align: left !important;
}

.doc-thumb {
    width: 65px; height: 65px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

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

.doc-info {
    flex-grow: 1;
    display: flex; flex-direction: column; justify-content: center;
}

.doc-title { margin-bottom: 8px !important; font-size: 14px !important; }

/* --- XỬ LÝ RIÊNG CHO MÀN HÌNH ĐIỆN THOẠI --- */
@media (max-width: 768px) {
    
    /* 1. Phần 3 Ảnh: Biến thành Slider vuốt ngang (Swipe Carousel) */
    .about-stats-grid { 
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important; /* Bật cuộn ngang */
        scroll-snap-type: x mandatory !important; /* Tạo điểm neo mượt như App */
        gap: 15px !important;
        padding-bottom: 15px !important; /* Trừ hao thanh cuộn */
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ẩn thanh cuộn xấu xí trên điện thoại */
    .about-stats-grid::-webkit-scrollbar { display: none; }
    
    .stat-card { 
        flex: 0 0 85% !important; /* Mỗi ảnh chiếm 85% màn hình (để hở 15% ảnh tiếp theo tạo gợi ý vuốt) */
        scroll-snap-align: center !important; /* Vuốt tới đâu khựng ở giữa tới đó */
        height: 220px !important; /* Trả lại chiều cao đẹp cho ảnh */
    }

    /* 2. Phần Tải Tài Liệu: Danh sách xếp dọc 1 cột nhưng Ảnh và Chữ nằm ngang */
    .corp-docs-section { 
        display: flex !important;
        flex-direction: column !important; /* Xếp dọc các thẻ */
        gap: 12px !important; 
    }
    
    .doc-intro {
        text-align: center;
        padding-bottom: 15px !important;
        align-items: center;
    }
}