/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Arial', sans-serif; */
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
    padding-top: 70px; /* Để tránh bị che bởi fixed header */
}

.container {
    width: 1140px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== RESET GIÃN DÒNG & KHOẢNG CÁCH CHO NỘI DUNG TỪ TINYMCE ===== */
p, ul, ol, li, h1, h2, h3, h4, h5, h6, table {
    line-height: 1.4;
    margin-bottom: 1.1em;
    margin-top: 0;
}

ul, ol {
    padding-left: 2em;
}

li {
    margin-bottom: 0.5em;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5em;
}

th, td {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
}

/* Nếu bạn có wrapper cho nội dung TinyMCE, ví dụ: */
.tinymce-content p,
.tinymce-content ul,
.tinymce-content ol,
.tinymce-content li,
.tinymce-content h1,
.tinymce-content h2,
.tinymce-content h3,
.tinymce-content h4,
.tinymce-content h5,
.tinymce-content h6 {
    line-height: 1.7;
    margin-bottom: 1.1em;
    margin-top: 0;
}

/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: #3a80cb;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #3a80cb;
}

/* Navigation Styles */
.nav .menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav .menu li {
    position: relative;
}

.nav .menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 10px 5px;
    display: block;
    /* CRITICAL: Remove transition từ đây */
    font-size: 14px;
}

/* Separate hover and active states với transition riêng */
.nav .menu a:hover {
    color: #3a80cb;
    transition: color 0.3s ease; /* Chỉ áp dụng transition cho hover */
}

.nav .menu a.active {
    color: #3a80cb !important;
    /* NO TRANSITION cho active state để tránh cascade effect */
}

/* Dropdown arrow styles */

.nav .menu .dropdown > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor; /* Sẽ theo màu text */
}

/* Active dropdown parent - UPDATED */
.nav .menu li.dropdown:hover > a,
.nav .menu li.dropdown.active > a {
    color: #3a80cb;
    /* NO transition */
}

/* Active submenu items - UPDATED */
.nav .submenu li a.active {
    background: #e3f2fd !important;
    color: #3a80cb !important;
    font-weight: 600;
    /* NO transition */
}

.nav .submenu li a:hover {
    background: #f8f9fa;
    color: #3a80cb;
    transition: background-color 0.3s ease, color 0.3s ease; /* Chỉ cho hover */
}

/* Section highlight animation */
.section.highlight {
    background-color: rgba(30, 58, 138, 0.05);
    transition: background-color 0.5s ease;
}

/* Visual indicator for active sections */
.section {
    scroll-margin-top: 80px; /* Offset for fixed header */
    position: relative;
}

/* Dropdown Menu Styles */
.nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    min-width: 240px;
    z-index: 9999;
    border-radius: 4px;
}

.nav .menu li.dropdown:hover > .submenu {
    display: block !important;
}

.nav .submenu li a {
    padding: 12px 20px;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.nav .submenu li:last-child a {
    border-bottom: none;
}

.nav .submenu li a:hover {
    background: #f8f9fa;
    color: #3a80cb;
}

.nav .menu li.dropdown:hover > .submenu {
    display: block;
}

.menu li.dropdown {
    position: relative;
}

.menu .submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    z-index: 1000;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.menu li.dropdown:hover > .submenu {
    display: block;
}
/* ==== FIX MENU OVERLAY ON MOBILE ==== */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 6px 0;
    }

    /* Giới hạn chiều cao header để không chiếm nhiều không gian */
    .header .container {
        flex-direction: column;
        gap: 4px;
    }

    /* Giảm khoảng cách giữa các item menu */
    .nav .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        font-size: 12px;
        margin-bottom: 5px;
    }

    .nav .menu a {
        padding: 4px 0;
        font-size: 12px;
    }

    /* Giảm padding cho body */
    body {
        padding-top: 70px !important;
    }

    /* Ẩn submenu khi không hover */
    .nav .submenu {
        position: static;
        box-shadow: none;
    }

    .nav .submenu li a {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav .menu {
        font-size: 11px;
        gap: 4px;
    }
    .nav .menu a {
        padding: 3px 0;
        font-size: 11px;
    }
    .logo-text {
        font-size: 15px;
    }
}


/* ===== HERO BANNER STYLES ===== */
.hero-banner {
    /* background-image: linear-gradient(135deg, rgba(30, 58, 138, 0.7), rgba(221, 143, 69, 0.6)), 
                      url('../image/banner_aep.png'); */
    background-image: url('../image/banner_aep.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

/* Animated gradient overlay */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(
        45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%
    );
    animation: shine 4s infinite;
    z-index: 1;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Floating particles effect */
.hero-banner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 200px 200px, 150px 150px, 300px 300px;
    animation: float 20s infinite linear;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(360deg); }
}

.hero-content {
    text-align: left;
    color: #fff;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    animation: slideInFromLeft 1s ease-out;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    max-width: 700px;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content p {
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Enhanced button styles */
.hero-buttons .btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
}

.hero-buttons .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;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #e55a2b, #e8841a);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Geometric shapes decoration */
.hero-banner .geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-banner .shape {
    position: absolute;
    opacity: 0.1;
    animation: rotate 15s infinite linear;
}

.hero-banner .shape-1 {
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.hero-banner .shape-2 {
    bottom: 20%;
    left: 15%;
    width: 80px;
    height: 80px;
    border: 2px solid #fff;
    transform: rotate(45deg);
}

.hero-banner .shape-3 {
    top: 30%;
    left: 5%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-banner {
        min-height: 60vh;
        padding: 50px 0;
    }
    
    .hero-content {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 50vh;
        padding: 40px 0;
        background-attachment: scroll; /* Disable parallax on mobile */
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 28px;
        letter-spacing: 1px;
        margin-bottom: 15px;
        background: none;
        -webkit-text-fill-color: #fff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .hero-banner .shape {
        display: none; /* Hide shapes on mobile */
    }
}

@media (max-width: 480px) {
    .hero-banner {
        min-height: 45vh;
        padding: 30px 0;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Button Styles */
.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: #ffc107;
    color: #000;
}

.btn-primary:hover {
    background: #e0a800;
    color: #000;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #333;
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    background: #fff;
    padding: 50px 0;
    min-height: 500px;
}

/* ===== SECTION STYLES ===== */
.section {
    margin-bottom: 50px;
}

.section h1 {
    font-size: 28px;
    color: #1e3a8a;
    margin-bottom: 25px;
    font-weight: 700;
}

.section h2 {
    font-size: 36px;
    color: #3a80cb;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: left;
}

.section h3 {
    font-size: 18px;
    color: #1e3a8a;
    margin-bottom: 15px;
    font-weight: 600;
}

.section h4 {
    font-size: 16px;
    color: #1e3a8a;
    margin-bottom: 10px;
    font-weight: 600;
}

.section p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
    /* text-align: justify; */
    line-height: 1.6;
}

/* ===== MEMBER GRID STYLES ===== */
.member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.member-card {
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ căn giữa nội dung trong thẻ */
    text-align: center;
    padding: 25px 20px;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    min-height: 320px;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
}

/* Member photo */
.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: #f8f9fa;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #e9ecef;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Role / Info */
.member-role {
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 8px;
    display: inline-block;
}

.member-info h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.member-info .institution {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.member-info .country {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .member-card {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .member-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-top: 30px;
    }

    .member-card {
        flex: 0 0 100%;
        max-width: 90%;
        padding: 20px 15px;
    }

    .member-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .member-info h4 {
        font-size: 16px;
    }

    .member-info .institution {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .member-card {
        max-width: 95%;
        padding: 15px 10px;
    }

    .member-photo {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
    }

    .member-role {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .member-info h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .member-info .institution {
        font-size: 12px;
    }

    .member-info .country {
        font-size: 11px;
    }
}



/* ===== TABLE STYLES ===== */
.fee-table, .dates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fee-table th, .fee-table td, 
.dates-table th, .dates-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.fee-table th, .dates-table th {
    background: #1e3a8a;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.fee-table td, .dates-table td {
    font-size: 14px;
    color: #666;
}

.fee-table tbody tr:nth-child(even),
.dates-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.fee-table tbody tr:hover,
.dates-table tbody tr:hover {
    background: #e9ecef;
}

/* ===== AWARD STYLES ===== */
.award-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #7d1e8a;
}

.award-item h4 {
    font-size: 18px;
    color: #1e3a8a;
    margin-bottom: 10px;
    font-weight: 600;
}

.award-item p {
    margin-bottom: 0;
}

/* ===== LIST STYLES ===== */
.tracks-list {
    list-style: disc;
    margin-left: 20px;
    margin-top: 15px;
}

.tracks-list li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    text-align: center;
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin: 5px 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        max-width: calc(100% - 30px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .nav .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .member-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 5px;
    }
    
    body {
        padding-top: 120px; /* Tăng padding cho mobile */
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section h2 {
        font-size: 20px;
    }
    
    .fee-table, .dates-table {
        font-size: 12px;
    }
    
    .fee-table th, .fee-table td, 
    .dates-table th, .dates-table td {
        padding: 8px 10px;
    }
}


.article-item p{
    line-height: 1.4;
    font-size: 16px;
}

/* CSS cho đoạn contact us trong trang index.php */
.article-contact-us {
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* nội dung con bám trái */
    justify-content: flex-start;
    max-width: none;          /* Loại bỏ giới hạn width */
    margin: 0;                /* bám sát lề trái của parent */
    padding: 0;               /* Loại bỏ padding có thể có */
    width: 100%;
}

.article-contact-us > h3,
.article-contact-us > div {
    width: 100%;
    text-align: left;         /* chữ bám trái */
    margin: 0;                /* Loại bỏ margin tự động */
    padding: 0;               /* Loại bỏ padding */
}

/* Đảm bảo title Contact Us bám trái */
.article-contact-us h3 {
    font-size: 36px;
    color: #4472c4;           /* Màu xanh như trong ảnh */
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left !important;
}

/* Styling cho email */
.article-contact-us .email {
    color: #28a745;           /* Màu xanh lá cho email */
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.article-contact-us .email::before {
    content: "✉";            /* Icon email */
    margin-right: 8px;
    font-size: 18px;
}

/* Styling cho tên tổ chức */
.article-contact-us .organization {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Styling cho địa chỉ */
.article-contact-us .address {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Nếu cần reset CSS của container cha */
.section.contact-section {
    text-align: left !important;  /* Override text-align center nếu có */
}

.section.contact-section .container {
    padding-left: 20px;          /* Đảm bảo có padding từ lề trái */
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .article-contact-us {
        padding: 0 15px;
    }
    
    .article-contact-us h3 {
        font-size: 28px;
    }
    
    .article-contact-us .email,
    .article-contact-us .address {
        font-size: 14px;
    }
    
    .article-contact-us .organization {
        font-size: 16px;
    }
}

/* FAQs */
.faqs-fixed-button {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.faqs-fixed-button a {
    background: #4472c4;
    color: white;
    padding: 15px 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    /* border-radius: 20px 0 0 20px; */
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: block;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faqs-fixed-button a:hover {
    background: #e03134;
    transform: translateX(-5px);
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

/* Alternative horizontal style */
.faqs-fixed-button-horizontal {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.faqs-fixed-button-horizontal a {
    background: #1e3a8a;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 25px 0 0 25px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: block;
}

.faqs-fixed-button-horizontal a:hover {
    background: #e03134;
    transform: translateX(-8px);
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faqs-fixed-button,
    .faqs-fixed-button-horizontal {
        right: 15px;
    }
    
    .faqs-fixed-button a {
        padding: 12px 6px;
        font-size: 12px;
        min-height: 60px;
    }
    
    .faqs-fixed-button-horizontal a {
        padding: 10px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .faqs-fixed-button,
    .faqs-fixed-button-horizontal {
        right: 10px;
    }
}

/* Style for popup */
/* ===== POPUP STYLES - FIXED VERSION ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Ẩn hoàn toàn */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    opacity: 0; /* Để chuẩn bị fade in */
    transition: opacity 0.3s ease; /* Transition cho fade */
}

.popup-overlay.popup-active {
    display: flex; /* HIỂN THỊ VÀ CENTER */
    opacity: 1; /* Fade in */
}

.popup-box {
    background: #fff;
    width: 90%;
    max-width: 480px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.popup-overlay.popup-active .popup-box {
    transform: scale(1) translateY(0);
}

.popup-box h3 {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 15px;
    font-weight: 600;
}

.popup-box p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    color: #e03134;
    transform: rotate(90deg) scale(1.1);
}

.popup-btn {
    background: #4472c4;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(68, 114, 196, 0.3);
}

.popup-btn:hover {
    background: #365a9e;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(68, 114, 196, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .popup-box {
        width: 85%;
        padding: 25px 20px;
    }
    
    .popup-box h3 {
        font-size: 20px;
    }
    
    .popup-box p {
        font-size: 14px;
    }
    
    .popup-btn {
        width: 100%;
        padding: 14px 20px;
    }
}
