/* ==================== CSS VARIABLES ==================== */
:root.mytheme {
    --primary-color: #51517B;
    --secondary-color: #666699;
    --background-light: #f5f5f5;
    --background-dark: #eee;
    --text-color: #333;
    --light-text-color: #666;
    --white-color: #fff;
    --accent-color: #f7a500;
    --border-color: #ddd;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.3);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;

    /* Added for collaborate popup */
    --green-color: #28a745;
    --red-color: #dc3545;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
}

/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    overflow-x: hidden;
}

/* ==================== LAYOUT UTILITIES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
    will-change: transform, opacity;
    /* Force GPU acceleration */
    transform: translateZ(0);
}

.fade-in-up.animated {
    will-change: auto;
    /* Reset sau khi animation xong */
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2em, 5vw, 3.2em);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5em, 4vw, 2.2em);
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes scrollContinuous {
    0% {
        transform: translateX(0);
    }

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ==================== HEADER ==================== */
header.main-header {
    background: linear-gradient(135deg, #51517b, #51517b) !important;
    color: var(--white-color);
    padding: 15px 0 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header-row-top {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%; 
}

.logo {
    flex-shrink: 0;
}

.header-title {
    flex: 1;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-left: 15px;
    line-height: 1.4;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: inline-block;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.logo-link:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.logo-img {
    height: 75px;
    width: auto;
    transition: var(--transition-fast);
    display: block;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--white-color);
}

/* Navigation */
/* Navigation */
.main-nav {
    width: 100%;
    background: transparent;
    text-align: center;
}

.main-nav ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
}

.main-nav ul li {
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav ul li:not(:last-child)::after {
    content: '|';
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5em;
    margin: 0 5px;
}

.main-nav ul li a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 20px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    position: relative;
    white-space: nowrap;
}

.main-nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav ul li a:hover::before {
    width: 70%;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

.main-nav ul li a:active {
    transform: scale(0.98);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}
.hero-section.has_bg {
	padding: 0;
}

.has_bg .hero-menu-full {
	margin-top: 0; 
}

.has_bg .top-banner-container {
	display: flex;
}
.top-banner {
	width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,100 1000,0 1000,100"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.hero-text {
    flex: 2;
}

.hero-text h1 {
    color: var(--white-color);
    margin-bottom: 8px;
}

.hero-text .subtitle {
    font-size: clamp(0.85em, 2.5vw, 1.4em);
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--accent-color);
    line-height: 1.2;
}

.hero-text .subtitle-detail {
    font-size: clamp(0.9em, 2vw, 1em);
    font-weight: 400;
    margin-bottom: 4px;
    color: var(--white-color);
    opacity: 0.9;
}

.rating {
    font-size: 1.1em;
    color: var(--white-color);
    margin-top: 4px;
}

.rating .star {
    color: var(--accent-color);
    font-size: 1.3em;
    margin-right: 3px;
}

/* Hero Image & Contact Buttons */
.hero-image {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 240px;
    height: 350px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-fast);
}

.hero-image img:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.contact-buttons-left {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 50px;
    margin-bottom: 0px;
}

.btn-call,
.btn-zalo {
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    border: none;
    color: white !important;
    white-space: nowrap;
    min-width: auto;
    justify-content: center;
}

.btn-call {
    background: var(--accent-color);
    box-shadow: 0 3px 12px rgba(247, 165, 0, 0.3);
}

.btn-call:hover {
    background: #e6940a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 165, 0, 0.4);
}

.btn-zalo {
    background: #0084ff;
    box-shadow: 0 3px 12px rgba(0, 132, 255, 0.3);
}

.btn-zalo:hover {
    background: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.4);
}

/* Hero Menu */
.hero-menu-full {
    width: 100%;
    padding: 20px 0 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 25px;
}

.hero-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    position: relative;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white-color) !important;
    transition: var(--transition-fast);
    padding: 15px 10px;
    flex: 1;
    max-width: 200px;
    position: relative;
    min-height: 80px;
}

.menu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 20%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.3) 80%,
            transparent 100%);
    transition: var(--transition-fast);
}

.menu-item:hover {
    transform: translateY(-3px);
    color: var(--accent-color) !important;
}

.menu-item:hover::after {
    background: rgba(247, 165, 0, 0.6);
}

.menu-item i {
    font-size: 1.8em;
    margin-bottom: 10px;
    transition: var(--transition-fast);
    color: white;
}

.menu-item:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.menu-item span {
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ==================== PHILOSOPHY SECTION ==================== */
.philosophy-section {
    background: linear-gradient(135deg, var(--background-dark), var(--background-light));
    padding: 30px 0;
    text-align: center;
}

.philosophy-box {
    background-color: var(--white-color);
    border-radius: 15px;
    padding: 15px;
    box-shadow: var(--shadow-medium);
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid var(--primary-color);
}

.quote-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quote-text {
    font-size: 1em;
    font-style: italic;
    color: var(--light-text-color);
    line-height: 1.8;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.section-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
    flex-shrink: 0;
}

.section-header h2 {
    margin: 0;
    text-align: left;
    font-size: 1.8em;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ==================== TIMELINE SECTIONS ==================== */
.timeline-sections {
    position: relative;
}

/* Experience Section */
.experience-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tùy chỉnh khoảng cách giữa các section */

.experience-item {
    background: white;
    padding: 20px;
}

.experience-item.highlight {
    background: #fff8f0;
}

.experience-item.special {
    background: #e8e8ee;
}

.experience-item.neutral {
    background: var(--background-light);
}

.experience-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.experience-item ul li {
    color: var(--light-text-color);
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.experience-item ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Margin Section */
.margin-content {
    margin-top: -20px;
    margin-left: 20px;
}

.margin-features {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.feature-item i {
    color: var(--light-text-color);
    font-size: 1.2em;
}

.link-invest {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 10px;
}

/* ==================== STRATEGY SECTION - IMPROVED ==================== */
.strategy-section {
    padding: 60px 0;
}

/* section-icon-circle đã được định nghĩa ở trên, không cần lặp lại nếu không có thay đổi */
/* section-header h2 đã được định nghĩa ở trên, không cần lặp lại nếu không có thay đổi */

.strategy-steps-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .strategy-steps-new {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
}

.step-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: var(--transition-fast);
    cursor: pointer;
    opacity: 1;
    transform: translateY(0) translateZ(0);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02) translate-z(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.step-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

.step-card:hover .step-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    text-align: center;
}

.step-header i {
    font-size: 2.2em;
    margin-bottom: 12px;
    display: block;
    transition: var(--transition-fast);
    color: white;
}

.step-card:hover .step-header i {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

.step-header .step-number {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.step-header h3 {
    margin: 0px 0 0 0;
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
}

.step-content {
    padding: 30px 25px;
    background: #ffffff;
    transition: var(--transition-fast);
}

.step-card:hover .step-content {
    background: #fafbff;
}

.step-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-item .number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 3px 10px rgba(81, 81, 123, 0.3);
    transition: var(--transition-fast);
}

.step-card:hover .step-item .number {
    background: linear-gradient(135deg, var(--accent-color), #e6940a);
    transform: scale(1.1);
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.title-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.step-item strong {
    color: var(--primary-color);
    font-size: 1em;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
}

.step-item p {
    color: var(--light-text-color);
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 8px 0;
    text-align: justify;
}

.step-item p:last-child {
    margin-bottom: 0;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: linear-gradient(135deg, var(--text-color), var(--primary-color));
    color: var(--white-color);
    padding: 40px 0;
    text-align: center;
}

       .footer-slogan {
font-family: 'Open Sans', sans-serif;            font-size: 1.8em;
           font-weight: 700;
           margin-bottom: 20px;
           color: var(--accent-color);
       }

       .footer-info {
           font-size: 1em;
           margin-bottom: 15px;
           opacity: 0.9;
       }

       .copyright {
           margin-top: 30px;
           font-size: 0.9em;
           opacity: 0.7;
           border-top: 1px solid rgba(255, 255, 255, 0.2);
           padding-top: 20px;
       }

       /* Running Contact Bar */
.running-contact-bar {
    color: white;
    padding: 30px 0;
    overflow: hidden;
    position: relative;
    border: none;
    margin-bottom: 0;
    background: #4b4c4e;
}

.running-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scrollContinuous 30s linear infinite;

}

.contact-item-running {
    display: flex;
    align-items: center;
    margin-right: 80px;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 1em;
    min-width: max-content;
}

.contact-item-running:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.contact-item-running i {
    font-size: 1.2em;
    margin-right: 8px;
    color: var(--accent-color);
    transition: var(--transition-fast);
}

.contact-item-running:hover i {
    color: white;
    transform: rotate(10deg);
}

.running-contact-bar:hover .running-content {
    animation-play-state: paused;
}

/* ==================== POPUP STYLES ==================== */
/* General Popup styles (already exists, but for clarity) */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
}

.popup-container {
    background: #f0f0f0;
    /* Default background, will be overridden by specific popups if needed */
    max-width: 800px;
    /* Default max-width, will be overridden */
    margin: 50px auto;
    position: relative;
    border-radius: 15px;
    transform: scale(0.8) translateY(-50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    /* Add shadow to general container */
}

.popup-overlay.show .popup-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.popup-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    border-radius: 15px 15px 0 0;
    box-shadow: var(--shadow-light);
    /* Kept for consistency, collaborate has its own */
}

.popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

.popup-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.popup-content {
    padding: 20px;
    /* Default padding for general popup content */
    animation: fadeInUp 0.6s ease-out 0.2s both;
    overflow-x: hidden;
}

/* Service Table (for Investment Popup) */
.service-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.service-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border: none;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-table td {
    padding: 15px;
    border: 1px solid #eee;
    vertical-align: top;
    transition: var(--transition-fast);
}

.service-table tr:hover td {
    background: #f8f9ff;
}

.service-table td:first-child {
    padding: 15px;
    border: 1px solid #eee;
    vertical-align: middle;
    text-align: center;
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9ff, #e8e8f5);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.benefit-item {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Contact Form (for Investment Popup) */
.contact-form {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    border: 2px solid #e8e8f5;
}

.contact-form h3 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.form-row {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards;
}

.form-row label {
    width: 130px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95em;
    margin-right: 15px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e8e8f5;
    border-radius: 8px;
    font-size: 1em;
    transition: var(--transition-fast);
    background: white;
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(81, 81, 123, 0.1);
    transform: translateY(-1px);
}

.form-row input:hover {
    border-color: var(--secondary-color);
}

/* Investment Popup Gender Options - Specific Styles */
#investment-popup .form-row.gender-row {
    display: flex;
    align-items: center;
}

#investment-popup .form-row.gender-row .gender-label {
    width: 130px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95em;
    margin-right: 15px;
    flex-shrink: 0;
}

#investment-popup .form-row.gender-row fieldset {
    border: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

#investment-popup .form-row.gender-row legend {
    display: none;
    /* Hide default legend as we use a custom label */
}

#investment-popup .gender-options {
    display: flex;
    gap: 25px;
    align-items: center;
}

#investment-popup .gender-options label {
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    margin: 0;
    font-weight: 400;
    font-size: 0.95em;
}

#investment-popup .gender-options label:hover {
    background: rgba(81, 81, 123, 0.1);
    border-color: var(--primary-color);
}

#investment-popup .gender-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}


.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    box-shadow: 0 5px 15px rgba(81, 81, 123, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(81, 81, 123, 0.4);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Expert Info in Popups */
.expert-info {
    margin: 0;
    color: #f7a500;
    font-weight: 600;
    font-size: 1.1em;
}

/* ==================== ACCOUNT OPENING POPUP STYLES ==================== */
#account-popup .popup-container {
    max-width: 900px;
    margin: 30px auto;
    background: var(--light-gray);
}

#account-popup .popup-header {
    padding: 25px 20px;
}

#account-popup .header-subtitle {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

#account-popup .header-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

#account-popup .header-app {
    font-size: 1.2em;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
}

#account-popup .popup-content {
    padding: 25px;
    /* Adjust padding for content area */
}

/* Notice Section */
#account-popup .account-notice {
    background: linear-gradient(135deg, #fff3cd, #fff8e1);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

#account-popup .notice-title {
    font-weight: 700;
    color: var(--red-color);
    /* Sử dụng biến thay vì inline style */
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: center;
}

#account-popup .notice-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.95em;
    line-height: 1.5;
}

#account-popup .notice-item:last-child {
    margin-bottom: 0;
}

#account-popup .notice-item i {
    color: var(--light-text-color);
    margin-right: 8px;
    margin-top: 3px;
    flex-shrink: 0;
}

#account-popup .expert-code {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    margin: 0 4px;
}

#account-popup .zalo-link {
    color: #0084ff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #0084ff;
    transition: var(--transition-fast);
}

#account-popup .zalo-link:hover {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* Steps Guide */
#account-popup .steps-guide {
    margin-top: 20px;
}

/* Step 1 - Text Only */
#account-popup .step-text-only {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

#account-popup .step-number-icon {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    margin-right: 15px;
    vertical-align: middle;
}

#account-popup .step-text-content {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
}

#account-popup .step-text-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 5px;
}

#account-popup .step-text-desc {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Step 2 - Complex Layout */
#account-popup .step-complex {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

#account-popup .step-complex-header {
    text-align: center;
    margin-bottom: 25px;
}

#account-popup .step-complex-number {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3em;
    margin-bottom: 15px;
}

#account-popup .step-complex-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 8px;
}

#account-popup .step-complex-desc {
    color: #666;
    font-size: 1em;
    line-height: 1.4;
}

/* Method Sections */
#account-popup .method-section {
    margin-bottom: 25px;
}

#account-popup .method-title {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1em;
    margin-bottom: 15px;
    font-style: italic;
}

#account-popup .method-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* Đã chỉnh sửa: Loại bỏ khung điện thoại và biến thành container ảnh đơn giản */
#account-popup .method-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 400px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: none;
    position: relative;
    margin: 0 auto;
}

/* Đảm bảo ảnh bên trong lấp đầy và cover */
#account-popup .method-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Đảm bảo ảnh lấp đầy khung, có thể bị cắt */
    display: block;
    margin: 0 auto;
}

/* Loại bỏ pseudo-elements tạo khung điện thoại */
#account-popup .method-image::before,
#account-popup .method-image::after {
    display: none;
}

/* Loại bỏ hiệu ứng hover trên khung nếu bạn đã bỏ khung */
#account-popup .method-image:hover {
    transform: translateY(0);
    /* Đảm bảo không có dịch chuyển */
    box-shadow: none;
    /* Đảm bảo không có đổ bóng */
}


#account-popup .arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    min-width: 120px;
}

#account-popup .arrow {
    font-size: 2.5em;
    color: var(--primary-color);
    /* Cùng màu với chữ */
    animation: pulse 2s infinite;
    letter-spacing: 0.2em;
    transform: scaleX(1.5);
}

/* Force căn giữa cho tất cả step-image */
#account-popup .step-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

#account-popup .step-item {
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
}

#account-popup .arrow-text {
    font-size: 1em;
    color: var(--primary-color);
    /* Màu #51517B */
    font-weight: 700;
    text-align: center;
    max-width: 150px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    word-spacing: 2px;
}

/* Regular Steps (3, 4, 5...) - Specific to account popup */
#account-popup .steps-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}


#account-popup .step-item {
    flex: 1;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-fast);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#account-popup .step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

#account-popup .step-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    border-bottom: 1px solid #e8e8f5;
    text-align: center;
    min-height: 100px;
    /* Standardize header height */
    display: flex;
    /* Make it a flex container */
    flex-direction: column;
    /* Stack content vertically */
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */
    color: var(--primary-color);
    font-family: 'Open Sans', sans-serif;
}

#account-popup .step-number {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1em;
    margin: 0 auto 12px auto;
}

#account-popup .step-header h3 {
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

#account-popup .step-header p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

#account-popup .step-image {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    flex: 1;
    text-align: center;
    background: #fafbff;
    width: 100%;
    margin: 0 auto;
}

#account-popup .step-image img {
    width: 100%;
    height: 90%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}



#account-popup .step-item .step-image {
    display: flex;
    flex-direction: column;
    /* Thêm */
    align-items: center;
    /* Căn giữa placeholder */
    justify-content: center;
}

/* Đảm bảo tất cả step containers căn giữa */
#account-popup .steps-row .step-item {
    text-align: center;
}

#account-popup .steps-row .step-item .step-image {
    align-items: center;
    justify-content: center;
}




/* ==================== COLLABORATE POPUP STYLES ==================== */
#collaborate-popup .popup-container {
    max-width: 600px;
    background: var(--light-gray);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#collaborate-popup .popup-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 20px 20px;
    text-align: center;
    position: relative;
    border-radius: 15px 15px 0 0;
    box-shadow: none;
}

#collaborate-popup .popup-content {
    padding: 0;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* These are specific to collaborate popup header */
#collaborate-popup .header-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: inherit;
}

#collaborate-popup .header-main {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

#collaborate-popup .header-subtitle {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: inherit;
}

/* This is a global class, but it might have been defined before for collaborate.
If it's only for collaborate, it should be scoped: #collaborate-popup .header-contact */
.header-contact {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.program-section {
    background: var(--light-gray);
    padding: 25px 20px;
    text-align: center;
}

.program-title {
    font-size: 1.1em;
    color: var(--dark-gray);
    margin-bottom: 5px;
    font-weight: 600;
}

.program-main {
    font-size: 1.6em;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.handshake-icon {
    font-size: 2em;
    color: var(--accent-color);
    margin: 10px 0;
}

.commission-rate {
    font-size: 2.2em;
    color: var(--green-color);
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.commission-note {
    color: var(--red-color);
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.benefits-section,
.products-section {
    background: white;
    padding: 20px;
    margin: 0 20px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.benefits-title,
.products-title {
    background: #51517B;
    /* Primary color */
    color: white;
    padding: 12px;
    margin: -20px -20px 20px -20px;
    /* Adjust to match parent padding */
    font-weight: 600;
    font-size: 1.1em;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

/* Specific override for products-title to use primary color from the collaborate file */
.products-section .products-title {
    background: var(--primary-color);
}


.benefit-item,
.product-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.5;
}

.benefit-item:last-child,
.product-item:last-child {
    margin-bottom: 0;
}

.benefit-item .check-icon,
.product-item .check-icon {
    color: var(--green-color);
    margin-right: 10px;
    font-size: 1.1em;
    margin-top: 2px;
    flex-shrink: 0;
}

.popup-footer {
    background: linear-gradient(135deg, var(--accent-color), #e6940a);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 0 0 15px 15px;
}

.footer-title {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-subtitle {
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

/* ==================== CUSTOM SECTION SPACING ==================== */
.experience-section {
    padding-bottom: 50px;
    margin-bottom: -20px;
}

/* Kéo section Margin lên gần section Experience */
.margin-section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.strategy-section {
    padding-top: 50px;
    margin-top: -20px;
}

/* ==================== FIXED CONTACT BUTTONS (MOBILE ONLY) ==================== */
.fixed-contact-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    display: none;
}

.btn-call-fixed,
.btn-zalo-fixed {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.4em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-call-fixed {
    background: var(--accent-color);
}

.btn-call-fixed:hover {
    background: #e6940a;
    transform: scale(1.08);
}

.btn-zalo-fixed {
    background: #0084ff;
}

.btn-zalo-fixed:hover {
    background: #0066cc;
    transform: scale(1.08);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet and larger phones */
       @media (max-width: 992px) {
           .footer-slogan {
font-family: 'Open Sans', sans-serif;            font-size: 1em;
           font-weight: 700;
           margin-bottom: 20px;
           color: var(--accent-color);
       }
           .container {
               max-width: 720px;
           }

           header.main-header {
               padding: 5px 0;
               /* Adjusted for tighter header on mobile */
    }

    header.main-header {
        padding: 12px 0 0 0;
    }

    .header-content {
        gap: 0;
    }

    .header-row-top {
        flex-direction: column;
        gap: 12px;
        padding-bottom: 12px;
        position: relative;
        /* Di chuyển lên đây */
    }

    .header-row-top {
        position: relative;
        /* Để hamburger absolute hoạt động */
    }

    .logo {
        margin-bottom: 0;
    }

    .logo-img {
        height: 65px;
    }

    .header-title {
        font-family: 'Open Sans', sans-serif;
        font-size: 1em;
        font-weight: 600;
        text-align: center;
        padding: 0 15px;
        line-height: 1.4;
        letter-spacing: 1px;
    }


    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    .main-nav ul li {
        display: flex;
        align-items: center;
    }

    .main-nav ul li:not(:last-child)::after {
        font-size: 1em;
        margin: 0 3px;
    }

    .main-nav ul li a {
        font-size: 0.75em;
        padding: 10px 12px;
        letter-spacing: 0.5px;
    }

    .main-nav ul li a::before {
        height: 2px;
        bottom: 6px;
    }

    .main-nav ul li a:hover::before {
        width: 60%;
    }




    .btn-account,
    .btn-expert {
        padding: 8px 12px;
        font-size: 0.8em;
        text-transform: capitalize;
        letter-spacing: 0;
    }

    .contact-buttons-left {
        justify-content: center;
        margin-top: 15px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 10px;
    }

    .hero-text {
        margin-top: 5px;
    }

    .hero-text .subtitle {
        font-size: 1em;
        line-height: 1.3;

        /* Adjusted from clamp */
    }

    .hero-text .subtitle-detail {
        font-size: 0.95em;
        /* Adjusted from clamp */
    }

    .rating {
        font-size: 0.95em;
    }

    .rating .star {
        font-size: 1.1em;
    }

    .hero-image img {
        width: 220px;
        height: 320px;
        border-radius: 15px;
    }

    /* --- Hero Menu - Mobile Specific Styles --- */
    .hero-menu {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        max-width: 350px;
        margin: 0 auto;
        padding: 0 10px;
        justify-items: stretch;
        align-items: center;
    }

    .menu-item {
        width: 100%;
        max-width: none;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 16px 12px;
        min-height: 85px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--white-color) !important;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .menu-item:hover {
        transform: translateY(-5px) scale(1.02);
        border-color: var(--accent-color);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    /* Shimmer effect cho menu item */
    .menu-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: all 0.5s ease;
        z-index: 1;
    }

    .menu-item:hover::before {
        left: 100%;
    }

    /* Cập nhật màu và kích thước icon/text */
    .menu-item i {
        font-size: 1.6em;
        margin-bottom: 8px;
        color: var(--white-color);
        transition: var(--transition-fast);
    }

    .menu-item:hover i {
        color: var(--accent-color);
        transform: scale(1.1);
    }

    .menu-item span {
        font-size: 0.85em;
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
        letter-spacing: 0.3px;
        white-space: normal;
        word-break: break-word;
    }

    /* Xóa dấu phân cách cũ */
    .menu-item:not(:last-child)::after {
        display: none;
    }

    /* Loại bỏ ::before không cần thiết */
    .hero-menu::before {
        display: none;
    }

    /* Cập nhật layout positioning cho từng item */
    /* Layout mobile: MỞ TÀI KHOẢN có độ rộng = KIẾN THỨC + CỘNG TÁC VIÊN */
    /* Layout mobile: 2x2 grid */
    /* Layout mobile: 2x2 grid - TẤT CẢ Ô BẰNG NHAU */
    .hero-menu {
        grid-template-columns: 1fr 1fr;
        /* 2 cột bằng nhau */
        grid-template-rows: 1fr 1fr;
        /* 2 hàng bằng nhau */
    }

    /* Loại bỏ tất cả custom grid-column và grid-row */
    .hero-menu .menu-item:nth-child(1),
    .hero-menu .menu-item:nth-child(2),
    .hero-menu .menu-item:nth-child(3),
    .hero-menu .menu-item:nth-child(4) {
        grid-column: auto;
        /* Reset về mặc định */
        grid-row: auto;
    }

    /* Đảm bảo tất cả ô có cùng chiều cao tối thiểu */
    .menu-item {
        min-height: 100px;
        /* Tăng từ 85px lên 100px */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* --- End Hero Menu Mobile Specific Styles --- */


    .section-padding {
        padding: 40px 0;
        /* Reduced section padding */
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 1.6em;
        text-align: center;
    }

    .experience-content,
    .margin-content {
        margin-left: 0;
        /* Remove left margin for mobile */
    }

    .experience-item ul li,
    .feature-item span,
    .step-item strong,
    .step-item p,
    .footer-info {
        font-size: 0.95em;
    }

    .step-header h3 {
        font-size: 1.1em;
    }

    .running-contact-bar {
        max-width: 90%;
        margin: 0 auto;
        box-shadow: var(--shadow-medium);
        animation-duration: 15s;
        /* Faster scroll on mobile */
    }

    .contact-item-running {
        font-size: 0.9em;
        margin-right: 50px;
    }

    .contact-item-running i {
        font-size: 1.1em;
    }

    /* Popups */
    .popup-container {
        margin: 20px;
        max-width: none;
        border-radius: 10px;
    }

    /* Investment Popup */
    #investment-popup .popup-header h2 {
        font-size: 1.8em;
        /* Reduce font size for popup header */
    }

    #investment-popup .expert-info {
        font-size: 1em;
        /* Reduce font size for expert info */
    }

    #investment-popup .service-table th {
        font-size: 1em;
        /* Reduce font size for table headers */
    }

    #investment-popup .service-table td {
        padding: 10px;
        /* Reduce padding for table cells */
        font-size: 0.9em;
        /* Reduce font size for table content */
    }

    #investment-popup .service-table td:first-child {
        width: 120px;
        /* Adjust width of first column */
        font-size: 0.9em;
    }

    #investment-popup .benefit-item {
        font-size: 0.9em;
        /* Further reduce font size for benefit items */
        margin-bottom: 5px;
    }

    #investment-popup .contact-form {
        padding: 20px;
        /* Reduce padding for contact form */
    }

    #investment-popup .contact-form h3 {
        font-size: 1.3em;
        /* Reduce font size for form title */
    }

    #investment-popup .form-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
        /* Adjust margin */
    }

    #investment-popup .form-row label,
    #investment-popup .form-row .gender-label {
        width: 100%;
        margin-bottom: 5px;
        margin-right: 0;
    }

    #investment-popup .form-row input[type="text"],
    #investment-popup .form-row input[type="email"],
    #investment-popup .form-row input[type="tel"] {
        padding: 10px;
        font-size: 0.9em;
    }

    #investment-popup .form-row.gender-row {
        flex-direction: column;
        align-items: flex-start;
    }

    #investment-popup .form-row.gender-row fieldset {
        width: 100%;
        /* Allow fieldset to take full width */
    }

    #investment-popup .gender-options {
        width: auto;
        margin-top: 0;
        gap: 15px;
        justify-content: flex-start;
    }

    #investment-popup .gender-options label {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    #investment-popup .submit-btn {
        padding: 12px 30px;
        font-size: 1em;
    }

    /* Account Popup */
    #account-popup .header-title {
        font-size: 1.6em;
    }

    #account-popup .header-subtitle,
    #account-popup .header-app {
        font-size: 0.7em;
    }

    #account-popup .notice-title {
        font-size: 0.95em;
    }

    #account-popup .notice-item span {
        font-size: 0.85em;
        text-align: justify;
        display: block;
    }

    #account-popup .expert-code {
        font-size: 0.75em;
    }

    #account-popup .step-text-title {
        font-size: 0.95em;
    }

    #account-popup .step-text-desc {
        font-size: 0.85em;
    }

    #account-popup .step-complex-title {
        font-size: 1em;
    }

    #account-popup .step-complex-desc {
        font-size: 0.9em;
    }

    #account-popup .step-header h3 {
        font-size: 0.95em;
    }

    #account-popup .step-header p {
        font-size: 0.8em;
    }

    #account-popup .method-images {
        flex-direction: column;
        gap: 15px;
        flex-wrap: nowrap;
    }

    #account-popup .method-image {
        width: 100%;
        max-width: 250px;
        height: auto;
        min-height: 300px;
    }

    #account-popup .method-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        max-height: none;
    }

    #account-popup .arrow-container {
        transform: rotate(90deg);
        position: relative;
    }

    #account-popup .arrow-text {
        transform: rotate(-90deg);
        font-size: 1em;
        color: var(--primary-color);
        font-weight: 700;
        text-align: center;
        max-width: 150px;
        line-height: 1.3;
        letter-spacing: 0.5px;
        word-spacing: 2px;
        position: absolute;
        left: -60px;
        top: 50%;
        transform-origin: center;
        transform: translateY(-50%) rotate(-90deg);
    }

    #account-popup .steps-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #account-popup .step-image {
        min-height: 300px;
    }

    /* Collaborate Popup */
    #collaborate-popup .popup-header {
        padding: 20px 15px;
        /* Adjust header padding */
    }

    #collaborate-popup .header-title {
        font-size: 1em;
        /* Reduce font size */
    }

    #collaborate-popup .header-main {
        font-size: 1.3em;
    }

    #collaborate-popup .header-subtitle {
        font-size: 0.7em;
        /* Reduce font size */
    }

    #collaborate-popup .header-contact {
        font-size: 0.85em;
        /* Reduce font size */
        padding: 6px 12px;
    }

    #collaborate-popup .program-section {
        padding: 20px 15px;
        /* Adjust padding */
    }

    #collaborate-popup .program-title {
        font-size: 1em;
        /* Reduce font size */
    }

    #collaborate-popup .program-main {
        font-size: 1.2em;
        /* Reduce font size */
    }

    #collaborate-popup .handshake-icon {
        font-size: 1.8em;
        /* Reduce icon size */
    }

    #collaborate-popup .commission-rate {
        font-size: 1.6em;
    }

    #collaborate-popup .commission-note {
        font-size: 1em;
        /* Reduce font size */
    }

    #collaborate-popup .benefits-section,
    #collaborate-popup .products-section {
        margin: 0 10px 10px 10px;
        /* Adjust margins */
        padding: 15px;
        /* Adjust padding */
    }

    #collaborate-popup .benefits-title,
    #collaborate-popup .products-title {
        margin: -15px -15px 15px -15px;
        /* Adjust margins to align with new padding */
        padding: 10px;
        /* Adjust padding */
        font-size: 1em;
        /* Reduce font size */
    }

    #collaborate-popup .benefit-item,
    #collaborate-popup .product-item {
        font-size: 0.9em;
        /* Reduce font size */
    }

    #collaborate-popup .benefit-item .check-icon,
    #collaborate-popup .product-item .check-icon {
        font-size: 1em;
        /* Adjust icon size */
    }

    #collaborate-popup .popup-footer {
        padding: 15px;
        /* Adjust padding */
    }

    #collaborate-popup .footer-title {
        font-size: 0.7em;
        /* Reduce font size */
    }

    #collaborate-popup .footer-subtitle {
        font-size: 0.7em;
        /* Reduce font size */
    }

    /* Show fixed contact buttons */
    .fixed-contact-buttons {
        display: flex;
    }

    #investment-popup .form-row.gender-row .gender-label {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0;
    }

    #investment-popup .gender-options {
        flex-direction: row;
        gap: 20px;
        justify-content: flex-start;
        width: 100%;
    }

    #investment-popup .gender-options label {
        padding: 8px 12px;
        font-size: 0.85em;
    }

}

/* Smallest Mobile Devices () */
@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    header.main-header {
        padding: 10px 0 0 0;
    }

    .header-row-top {
        gap: 10px;
        padding-bottom: 10px;
    }

    .logo-img {
        height: 55px;
    }

    .header-title {
        font-family: 'Open Sans', sans-serif;
        font-size: 1em;
        font-weight: 600;
        padding: 0 10px;
        line-height: 1.3;
        letter-spacing: 0.8px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px 0;
    }

    .main-nav ul li {
        display: flex;
        align-items: center;
    }

    .main-nav ul li:not(:last-child)::after {
        font-size: 0.9em;
        margin: 0 2px;
    }

    .main-nav ul li a {
        font-size: 0.68em;
        padding: 8px 10px;
        letter-spacing: 0.3px;
    }

    .main-nav ul li a::before {
        bottom: 5px;
        height: 1.5px;
    }

    .main-nav ul li a:hover::before {
        width: 50%;
    }

    .hero-image img {
        width: 180px;
        height: 280px;
    }

    .hero-text .subtitle {
        font-size: 0.85em;
        line-height: 1.2;
        margin-bottom: 6px;
        text-align: center;
        word-spacing: 1px;
        letter-spacing: 0.3px;
    }

    .hero-text .subtitle-detail {
        font-size: 0.85em;
    }

    .rating {
        font-size: 0.8em;
    }

    .hero-menu {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        padding: 0 5px;
        max-width: 320px;
    }

    .menu-item {
        padding: 12px 8px;
        min-height: 75px;
    }

    .menu-item i {
        font-size: 1.4em;
        margin-bottom: 6px;
    }

    .menu-item span {
        font-size: 0.75em;
        line-height: 1.1;
    }

    /* Giữ nguyên layout 2x3 */
    /* Layout mobile nhỏ: vẫn giữ 2x2 đều nhau */
    .hero-menu {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        max-width: 320px;
    }

    .menu-item {
        min-height: 90px;
        /* Giảm cho màn hình nhỏ */
    }

    /* Font size đồng đều cho tất cả */
    .menu-item span {
        font-size: 0.75em;
        line-height: 1.1;
    }

    .menu-item i {
        font-size: 1.4em;
        margin-bottom: 6px;
    }

    .contact-buttons-left {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        margin-top: 12px;
    }

    .btn-call,
    .btn-zalo {
        min-width: 110px;
        max-width: 130px;
        padding: 10px 14px;
        font-size: 0.85em;
        border-radius: 20px;
    }

    .popup-container {
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Investment Popup */
    #investment-popup .popup-header h2 {
        font-size: 1.6em;
        /* Further reduce font size */
    }

    #investment-popup .expert-info {
        font-size: 0.9em;
        /* Further reduce font size */
    }

    #investment-popup .service-table th {
        font-size: 0.9em;
        /* Further reduce font size */
    }

    #investment-popup .service-table td {
        padding: 8px;
        /* Further reduce padding */
        font-size: 0.8em;
        /* Further reduce font size */
    }

    #investment-popup .service-table td:first-child {
        width: 100px;
        /* Adjust width of first column */
        font-size: 0.85em;
    }

    #investment-popup .benefit-item {
        font-size: 0.9em;
        /* Even smaller font size */
        margin-bottom: 3px;
    }

    #investment-popup .contact-form {
        padding: 15px;
        /* Further reduce padding */
    }

    #investment-popup .contact-form h3 {
        font-size: 1.1em;
        /* Further reduce font size */
    }

    #investment-popup .form-row {
        margin-bottom: 10px;
        /* Further reduce margin */
    }

    #investment-popup .form-row label {
        font-size: 0.85em;
        /* Further reduce font size */
        margin-bottom: 3px;
    }

    #investment-popup .form-row input[type="text"],
    #investment-popup .form-row input[type="email"],
    #investment-popup .form-row input[type="tel"] {
        padding: 8px;
        font-size: 0.85em;
    }

    #investment-popup .gender-options {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    #investment-popup .gender-options label {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    #investment-popup .submit-btn {
        padding: 10px 25px;
        font-size: 0.9em;
    }


    .section-header h2 {
        font-size: 1.2em;
        line-height: 1.3;
    }

    .experience-item ul li,
    .feature-item span,
    .step-item strong,
    .step-item p {
        font-size: 0.85em;
        line-height: 1.4;
    }

    .step-header h3 {
        font-size: 0.95em;
        line-height: 1.2;
    }

    .footer-info {
        font-size: 0.75em;
    }

    .running-contact-bar {
        max-width: 98%;
        padding: 15px 0;
    }

    .contact-item-running {
        font-size: 0.8em;
        margin-right: 30px;
    }

    .contact-item-running i {
        font-size: 0.9em;
    }

    /* Account Popup */
    #account-popup .header-title {
        font-size: 1.4em;
    }

    #account-popup .header-subtitle,
    #account-popup .header-app {
        font-size: 0.8em;
    }

    #account-popup .notice-title {
        font-size: 0.9em;
    }

    #account-popup .notice-item span {
        font-size: 0.8em;
    }

    #account-popup .expert-code {
        font-size: 0.7em;
    }

    #account-popup .step-text-title {
        font-size: 0.9em;
    }

    #account-popup .step-text-desc {
        font-size: 0.8em;
    }

    #account-popup .step-complex-title {
        font-size: 0.9em;
    }

    #account-popup .step-complex-desc {
        font-size: 0.8em;
    }

    #account-popup .step-header h3 {
        font-size: 0.9em;
    }

    #account-popup .step-header p {
        font-size: 0.75em;
    }

    #account-popup .method-image {
        height: 250px;
    }

    #account-popup .step-image {
        min-height: 200px;
    }

    #account-popup .popup-content,
    #account-popup .account-notice,
    #account-popup .step-complex {
        padding: 15px;
    }

    /* Collaborate Popup */
    #collaborate-popup .popup-header {
        padding: 15px 10px;
        /* Further reduce padding */
    }

    #collaborate-popup .header-title {
        font-size: 0.9em;
        /* Further reduce font size */
    }

    #collaborate-popup .header-main {
        font-size: 1.1em;
        /* Further reduce font size */
    }

    #collaborate-popup .header-subtitle {
        font-size: 0.7em;
        /* Further reduce font size */
    }

    #collaborate-popup .header-contact {
        font-size: 0.8em;
        /* Further reduce font size */
        padding: 5px 10px;
    }

    #collaborate-popup .program-section {
        padding: 15px 10px;
        /* Further reduce padding */
    }

    #collaborate-popup .program-title {
        font-size: 0.9em;
        /* Further reduce font size */
    }

    #collaborate-popup .program-main {
        font-size: 1em;
        /* Further reduce font size */
    }

    #collaborate-popup .handshake-icon {
        font-size: 1.5em;
        /* Further reduce icon size */
    }

    #collaborate-popup .commission-rate {
        font-size: 1.4em;
    }

    #collaborate-popup .commission-note {
        font-size: 0.9em;
        /* Further reduce font size */
    }

    #collaborate-popup .benefits-section,
    #collaborate-popup .products-section {
        margin: 0 5px 5px 5px;
        /* Further reduce margins */
        padding: 10px;
        /* Further reduce padding */
    }

    #collaborate-popup .benefits-title,
    #collaborate-popup .products-title {
        margin: -10px -10px 10px -10px;
        /* Adjust margins to align with new padding */
        padding: 8px;
        /* Further reduce padding */
        font-size: 0.9em;
        /* Further reduce font size */
    }

    #collaborate-popup .benefit-item,
    #collaborate-popup .product-item {
        font-size: 0.85em;
        /* Further reduce font size */
    }

    #collaborate-popup .popup-footer {
        padding: 10px;
        /* Further reduce padding */
    }

    #collaborate-popup .footer-title {
        font-size: 0.7em;
        /* Further reduce font size */
    }

    #collaborate-popup .footer-subtitle {
        font-size: 0.7em;
        /* Further reduce font size */
    }

    .fixed-contact-buttons {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }

    .btn-call-fixed,
    .btn-zalo-fixed {
        width: 38px;
        height: 38px;
        font-size: 1em;
    }

    #account-popup .steps-row {
        gap: 15px;
    }

    #account-popup .step-item {
        border-radius: 8px;
    }

    #account-popup .step-header {
        min-height: 80px;
        padding: 15px;
    }

    #account-popup .step-image {
        min-height: 200px;
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.4em;
        line-height: 1.3;
    }

    .hero-text .subtitle {
        font-size: 0.9em;
        line-height: 1.3;
    }

    .hero-text .subtitle-detail {
        font-size: 0.9em;
        line-height: 1.4;
    }

    /* Improve readability */
    .step-item p {
        text-align: left;
        line-height: 1.5;
    }

    .popup-header h2 {
        font-size: 1.5em;
        line-height: 1.2;
    }

    @media (max-width: 360px) {
        .hero-text .subtitle {
            font-size: 0.75em;
            line-height: 1.1;
            word-break: break-word;
            hyphens: auto;
        }
    }
}

.hamburger-menu {
    display: none;
    /* Ẩn mặc định */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation khi menu mở */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Overlay */
@media (max-width: 992px) {
    .hamburger-menu {
        display: flex;
        position: absolute;
        right: 20px;
        top: 15px;
        /* Đổi từ 50% sang giá trị cố định */
        transform: none;
        /* Bỏ translateY */
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 220px;
        /* Giảm từ 280px xuống 220px */
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        padding: 60px 15px 20px;
        /* Giảm padding */
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        border-radius: 20px 0 0 20px;
        /* Thêm dòng này */

    }

    .main-nav.active {
        right: 0;
        /* Hiện menu */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .main-nav ul li:not(:last-child)::after {
        display: none;
        /* Ẩn dấu phân cách | */
    }

    .main-nav ul li a {
        display: block;
        width: 100%;
        padding: 14px 12px;
        /* Giảm từ 18px xuống 14px */
        text-align: left;
        font-size: 0.9em;
        /* Giảm từ 1em xuống 0.9em */
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }

    .main-nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-left-color: var(--accent-color);
        padding-left: 20px;
    }

    .main-nav ul li a::before {
        display: none;
        /* Ẩn underline effect */
    }

    /* Overlay backdrop */
    .nav-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-backdrop.active {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .main-nav {
        width: 200px;
        /* Nhỏ hơn cho màn hình nhỏ */
        padding: 50px 12px 15px;
    }

    .main-nav ul li a {
        padding: 12px 10px;
        font-size: 0.85em;
    }

    .main-nav ul li a:hover {
        padding-left: 15px;
        /* Giảm hiệu ứng hover */
    }
}

/* 404 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}
.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}
.no-results-text {
    font-size: 1rem;
    line-height: 1.5;
}

main {
	background: #f5f5f5;
}

/* Paginate */
.text-center {
	text-align: center;
}
.text-center nav {
	display: block;
}
.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}
.pagination>li {
    display: inline;
}
.pagination>li:first-child>a, .pagination>li:first-child>span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.pagination>.disabled>a, .pagination>.disabled>a:focus, .pagination>.disabled>a:hover, .pagination>.disabled>span, .pagination>.disabled>span:focus, .pagination>.disabled>span:hover {
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #ddd;
}

.pagination>li>a, .pagination>li>span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}
.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover {
    z-index: 3;
    color: #fff;
    cursor: default;
    background-color: #3b3b75;
    border-color: #3b3b75;
}
.pagination>li:last-child>a, .pagination>li:last-child>span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/*Categroy page*/
.research-section {
    padding: 10px 40px;
} 

.articles-grid {
		margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /*auto fill: tự tính width để chia ra cho đều
     auto fit: nếu chỉ có 1 block thì sẽ bị full width
     min 300px
     max 1fr nghĩa là cho phép giãn cột*/
    gap: 20px;
    margin-bottom: 10px;
}

.article-card {
    background: white;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    min-height: 180px;
    transition: all 0.3s ease;
} 

.article-card:hover {
	opacity: 0.9;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  transform: translateY(-10px); /* hơi nổi lên một chút */
}

.article-card .article-link {
    display: block;
    width: 100%;
    height: 100%;
}

.article-card .article-content {
    position: absolute;
    left: 0;
    bottom: 1px;
    color: #fff;
    font-size: 12px;
    padding: 0 18px;
    width: 100%;
}

.image_placeholder {
	width: 100%; 
	opacity: 0;
}

.article-card .article-meta-new .views-meta {
	float: left;
}
.article-card .article-meta-new .date-meta {
	float: right;
}
.article-card .views-meta::before {
  content: "\f06e"; /* mã unicode của icon fa-eye */
  font-family: "Font Awesome 6 Free";
  font-weight: 600; /* cần thiết để hiện icon solid */
  font-size: 10px;
  color: #c7853e;
}

/*Post page*/
.post-header {
  background: #393969; /* màu tím xanh */
  color: #e7e7e7;
  padding: 20px 40px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  text-align: center;
}
.post-header .article-title {
    color: #f7a500;
    font-size: 23px;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 10px;
    text-transform: uppercase;
    margin-top: 20px;
}
.post-header a { 
  color: #e7e7e7;  
}
.mycontent {
	padding-top: 20px;
}
.post-header .article-meta { 
  display: flex; 
  gap: 30px;
  font-size: 14px;
  justify-content: center;  
  align-items: center; 
}

.post-content {
	 
}
 
/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 0px; 
    padding: 8px;  
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
}

.tab-button {
    background: #c3c4da;
    border: 1px solid #ccc;
    padding: 8px 10px;
    border-radius: 3px; 
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    min-width: fit-content;
		margin: 2px;
		width: 170px;
} 

.tab-button:hover { 
		color: #fff;
    background: #696a96;
}

.tab-button.active {
    background: #696a96;
    color: white;
    box-shadow: 0 2px 2px rgba(61, 29, 79, 0.3);
}

/*search form*/
/* Bao ngoài: không nền, không bo */
.search-wrapper {
  width: fit-content;
  margin: 10px auto;
}

/* Form 1 hàng */
.search-form {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Ô nhập có icon bên trái */
.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-radius: 20px 0 0 20px;
    padding: 3px 10px;
    background: #fff;
}

.search-box .search-icon {
  color: #888;
  font-size: 15px;
  margin-right: 6px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  min-width: 160px;
  height: 30px;
}

/* Select không bo góc */
.search-form select {
  border: 1px solid #ccc; 
  border-radius: 0;
  padding: 6px 10px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  height: 38px;
  margin-left: 	1px;
  margin-right: 1px;
  transition: border-color 0.3s ease;
}

.search-form select:hover {
  border-color: #aaa;
}

/* Button nằm sát bên phải, bo tròn */
.search-form button {
  background: #5b5b85;
  color: white;
  border: 1px solid #5b5b85;
  border-radius: 0 10px 10px 0; 
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-form button:hover {
  transform: translateY(-2px);
}

.search-form button i {
  font-size: 14px;
}

.related-section {
	margin-bottom: 50px;
}
.block-title {
	font-size: 25px;
	color: #51517b !important;
}

.comment-section {
	margin-top: 40px;
	margin-bottom: 40px;
}
.comment-title {
	color: #51517b !important;
	text-align: center;
	font-size: 23px;
	margin-bottom: 20px;
}

.comment-form {
  max-width: 600px;
  margin: 30px auto;
  background: #f9f9ff;
  padding: 20px 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  transition: all 0.25s ease;
  background: #fff;
  color: #333;
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
  border-color: #6a5acd;
  box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.15);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-comment-btn {
  align-self: flex-end;
  padding: 10px 22px;
  background: linear-gradient(135deg, #6a5acd, #836fff);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  margin: auto;
  transition: all 0.25s ease;
}

.submit-comment-btn:hover {
  background: linear-gradient(135deg, #5a4acd, #7260ff);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(106, 90, 205, 0.2);
}

/* ====== DANH SÁCH BÌNH LUẬN ====== */
.feedback-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px; 
  color: #333;
}

/* ====== MỖI BÌNH LUẬN ====== */
.feedback-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  font-size: 14px;
}

.feedback-item:hover {
  border-color: #bbb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ====== HEADER: tên + ngày ====== */
.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.feedback-user {
  font-weight: 600;
  color: #000;
  font-size: 14px;
}

.feedback-date {
  font-size: 12.5px;
  color: #777;
}

/* ====== NỘI DUNG ====== */
.feedback-text {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  white-space: pre-line;
}

/* ====== PHÂN CẤP COMMENT THEO CLASS responseN ====== */
/* (Desktop: lùi 30px mỗi cấp, không có line dọc) */
.response1 {
  margin-left: 30px;
}

.response2 {
  margin-left: 60px;
}

.response3 {
  margin-left: 90px;
} 

/* ====== RESPONSIVE: giảm độ lùi trên mobile ====== */
@media (max-width: 768px) {
  .response0 {
    margin-left: 12px;
  }

  .response1 {
    margin-left: 20px;
  }

  .response2 {
    margin-left: 28px;
  }

  .response3 {
    margin-left: 36px;
  }

  .feedback-item {
    padding: 8px 10px;
    font-size: 13.5px;
  }

  .feedback-text {
    font-size: 13px;
  }
}

/* ====== KHOẢNG CÁCH GIỮA CÁC COMMENT CON ====== */
.feedback-item + .feedback-item {
  margin-top: 6px;
}


@media (max-width: 768px) {
    .strategy-steps-new {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    .tab-button {
    	width: 130px;
    }
}

@media (max-width: 580px) {
		.research-section {
		    padding: 10px 10px;
		    background: #ebecff;
		}
		.articles-grid {
			gap: 10px;
		}
    .filter-tabs {
    	display: block;
    	text-align: center;
    }
    .filter-tabs a {
    	display: block;
    	margin: 2px;
    }
    .tab-button {
    	width: 200px;
    }
    
    .search-form, .search-box, .selelct_date, .search_btn {
        display: block;
    }
    .search-box {   
		    border-radius: 20px;  
		    width: 100%;
		    margin-bottom: 4px;
		}
		
    .search-form select {   
		    border-radius: 20px;  
		    width: 100%;
		    margin-bottom: 4px;
		}
		
		.search-form button {
				border-radius: 20px;
        text-align: center;
        width: 100%;
		}
		
		.post-header { 
		    padding: 20px 0px; 
		}
		.post-header .article-meta {
			display: block;
		}
		.post-header .meta-item {
			display: inline-block;
			margin-right: 15px;
		}
     
}



