/*
Theme Name: The Mystic Dark
Theme URI: https://mysticdark.com
Author: Antigravity
Author URI: https://antigravity.dev
Description: Giao diện Tarot The Mystic Dark siêu tối ưu
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mystic-dark
*/

/* Global Variables */
:root {
    --bg-dark: #0a0e17;
    /* Midnight blue / deep dark */
    --bg-darker: #020202;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --gold-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    --text-white: #ffffff;
    --text-gray: #a0aab2;
    --card-white: #f5f5f5;
    --zalo-color: #0068ff;

    font-family: 'Inter', sans-serif;
    color: var(--text-white);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    max-width: 100% !important;
    overflow-x: clip !important;
}

body {
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-header, .space-hero-wrapper, .about-section, .services-section, .faq-section, .articles-section, .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    border: none;
    outline: none;
    transition: 0.3s ease;
}

.gold-text {
    color: var(--gold);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
}

section {
    padding: 50px 0;
}

/* Floating Zalo Button */
.floating-zalo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--gold);
    color: var(--bg-dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Section 1: Hero */
/* Space Hero Wrapper */
.space-hero-wrapper {
    position: relative;
    width: 100%;
    background: #0a0e17 url('images/bg2.webp') top center / cover no-repeat;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.space-hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 14, 23, 0.2) 0%, rgba(10, 14, 23, 0.8) 100%);
    z-index: 0;
}

#star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, black 60%, transparent 95%);
    -webkit-mask-image: linear-gradient(to right, black 60%, transparent 95%);
    pointer-events: none;
}

.star {
    --shadow-color: rgba(255, 255, 255, 0.6);
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.star-major {
    --shadow-color: rgba(255, 215, 0, 0.8);
    background: #fffdf0;
}

.star-dust {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle-dust 15s infinite alternate ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.1;
        box-shadow: none;
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 5px 1px var(--shadow-color);
    }
}

@keyframes twinkle-dust {

    0%,
    100% {
        opacity: 0.05;
    }

    50% {
        opacity: 0.2;
    }
}

/* Header Styles */
.main-header {
    position: sticky;
    top: -1px; /* Tránh lỗi viewport 1px hở mép trên một số browser Safari */
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0; /* padding hai đầu để ôm trọn nút bên trong, tránh mọi hiện tượng bị cắt gọt (clip) ở đáy */
    background: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-only {
    display: none;
}

.mobile-menu-btn {
    font-size: 24px;
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Loại bỏ border-bottom và margin ở thẻ con, gộp chung vào main-header */
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-family: 'Montserrat', sans-serif;
}

.header-contact-info {
    display: flex;
    align-items: center;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}

.contact-item i {
    font-size: 1.1rem;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-title {
    display: block;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.contact-desc {
    color: var(--text-gray);
}

.header-btn {
    background: linear-gradient(135deg, #C5A059 0%, #F5E090 50%, #C5A059 100%);
    background-size: 200% auto;
    border: none;
    color: #1a0800;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
}

.header-btn:hover {
    background-position: right center;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.6);
    color: #000;
}

.user-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.header-nav {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #bbb;
    text-transform: uppercase;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    color: var(--gold);
}

.nav-menu li.active::before {
    content: '•';
    color: var(--gold);
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* Section 1: Hero Update */
.hero-section {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 0 160px;
    z-index: 10;
}

.hero-overlay {
    display: none;
}

/* Fade Transition Edge */
.bottom-fade-transition {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(to bottom, transparent 0%, #0a0e17 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.cta-button {
    background-color: #FFD700;
    color: #000;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #ffed80;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.hero-chatbox {
    flex: 1;
    max-width: 420px;
    margin-right: 60px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-greeting {
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
    white-space: nowrap;
    line-height: 1.3;
}

.chat-prompt-bar {
    background: #1e1e24;
    /* dark gray like AI chat */
    border-radius: 35px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.chat-prompt-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 10px 0;
    outline: none;
}

.chat-prompt-bar input::placeholder {
    color: #888;
}



.send-btn {
    background: transparent;
    color: #f5f5f5;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.send-btn:hover {
    color: var(--gold);
}

/* Section 2: About Us */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px 0;
}

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

/* Sacred Geometry System */
.sacred-system-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.sacred-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, transparent 0deg 3deg, rgba(255, 255, 255, 0.15) 3deg 5deg);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.sacred-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

@keyframes spinOrb {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinOrbReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.orbit-slow {
    animation: spinOrb 50s linear infinite;
    transform-origin: 200px 200px;
}

.orbit-medium {
    animation: spinOrbReverse 40s linear infinite;
    transform-origin: 200px 200px;
}

.orbit-fast {
    animation: spinOrb 30s linear infinite;
    transform-origin: 200px 200px;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

.about-content {
    flex: 1.5;
    padding-right: 20px;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ccc;
}

/* Reveal On Scroll Utility */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section 3: Services Redesign */
.services-section {
    position: relative;
    background-color: transparent;
}

/* Atmospheric Top Fog */
.services-section::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 0; right: 0;
    height: 350px;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="df"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.015" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23df)"/%3E%3C/svg%3E');
    background-size: 400px 400px;
    opacity: 0.08;
    z-index: 3;
    pointer-events: none;
    animation: driftTopFog 40s linear infinite;
    mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 60%, transparent 100%);
}

@keyframes driftTopFog {
    0% { background-position: 0 0; }
    100% { background-position: -400px 0; }
}

/* Rotating Tarot Circle Bg */
.tarot-circle-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -400px; /* half of 800 */
    margin-left: -400px;
    width: 800px;
    height: auto;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
    animation: spinCircle 120s linear infinite;
    mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
}

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

@media (max-width: 768px) {
    .tarot-circle-bg {
        width: 160%;
        margin-left: -80%;
        margin-top: -80%;
    }
}

/* Galactic Fog System */
.galactic-fog-container {
    position: absolute;
    top: -300px; /* Bleed upward to cover boundary */
    bottom: -150px;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.galactic-cloud {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(16, 24, 45, 0.4) 0%, transparent 60%);
    opacity: 0.6;
    border-radius: 50%;
    animation: slowDrift 100s linear infinite alternate;
}

.cloud-1 {
    top: -50%;
    left: -50%;
}

.cloud-2 {
    top: -30%;
    right: -50%;
    transform: scale(1.5);
    animation-duration: 120s;
    animation-direction: alternate-reverse;
    background: radial-gradient(circle at center, rgba(3, 10, 24, 0.4) 0%, transparent 50%);
}

@keyframes slowDrift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(15%, 5%) rotate(5deg);
    }
}

/* Service Grid */
.service-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

@keyframes nebulaDrift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

.service-card {
    flex: 1 1 300px;
    max-width: 350px;
    background-color: rgba(255, 255, 255, 0.05); /* Back to flawless dark glass */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(181, 148, 99, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(50, 80, 120, 0.45) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(200, 200, 255, 0.15) 0%, transparent 70%);
    background-size: 200% 200%;
    animation: nebulaDrift 20s linear infinite alternate;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid #B59463;
    outline: 1px dashed #B59463;
    outline-offset: -8px;
    padding: 40px 30px;
    position: relative;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(181, 148, 99, 0.3);
    /* Antique Gold glow */
    animation-duration: 8s;
    /* Nebula speeds up dramatically on hover */
}

/* Antique Filigree Frame Corners (matches Section 4 style) */
.service-card::before,
.service-card::after {
    content: '✦';
    position: absolute;
    color: #B59463;
    font-size: 16px;
    line-height: 1;
    z-index: 1;
}

.service-card::before {
    top: 14px;
    left: 16px;
}

.service-card::after {
    bottom: 14px;
    right: 16px;
}

/* Inner content styling */
.line-art-icon {
    font-size: 45px;
    color: #B59463;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #B59463;
    position: relative;
    z-index: 2;
}

.service-card p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.read-more-btn {
    margin-top: auto;
    background: transparent;
    border: 1px solid #B59463;
    color: #B59463;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
    z-index: 2;
}

.read-more-btn:hover {
    background: #B59463;
    color: #fff;
}

/* Section 4: Ornate Tarot Frame / Tarot Card Fan Layout */
.benefit-static-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    padding-bottom: 60px;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 20px; /* Standard horizontal layout */
    flex-wrap: wrap; /* Support small screens */
}

.benefit-card {
    position: relative;
    width: 270px;
    height: 450px;
    flex-shrink: 0;
    /* Use the explicitly assigned new card layout frame */
    background-image: url('/wp-content/uploads/2026/03/card-4.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    padding: 0;
    /* Glow cực sáng sang trọng & bóng tối rạp phía sau để đẩy nổi lá bài */
    filter: drop-shadow(0 0 10px rgba(255, 235, 170, 0.45)) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.95));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s, z-index 0.4s;
    display: flex;
    flex-direction: column;
}

.benefit-card:hover {
    transform: translateY(-40px) !important; /* Pull card up like drawing a card */
    z-index: 10 !important;
    /* Ánh sáng vàng chói lóa bùng lên khi nhấc bài */
    filter: drop-shadow(0 0 25px rgba(255, 235, 170, 0.75)) drop-shadow(0 25px 45px rgba(0, 0, 0, 1.0));
}

@media (max-width: 900px) {
    .benefit-static-grid {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }
    .benefit-card {
        position: relative;
        transform: none !important;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .benefit-card:hover {
        transform: translateY(-20px) !important;
    }
}

/* Inner Content Box */
.card-inner-content {
    position: relative;
    z-index: 2;
    padding: 80px 30px 60px 30px; /* Safe padding bounds */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Dynamically centers text inside the safe zone */
    height: 100%;
}

.benefit-card .title {
    font-size: 1.35rem;
    margin-bottom: 5px;
    text-align: center;
    font-family: serif;
    font-weight: bold;
    letter-spacing: 0.5px;
    /* Metallic Gold Text */
    background: linear-gradient(to right, #B59463, #FDF0C6, #B59463, #FDF0C6, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Helps maintain clipping legibility */
}

/* Ornamental Line Divider */
.card-divider {
    width: 60%;
    height: 1px;
    background-color: rgba(229, 196, 139, 0.4);
    margin: 10px auto 25px auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-divider::after {
    content: '';
    position: absolute;
    width: 6px; height: 6px;
    background-color: #B59463;
    transform: rotate(45deg);
}

.benefit-card .content {
    list-style-type: none;
    margin-top: 0;
    padding: 0;
}

.benefit-card .content li {
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
    font-weight: 500;
    /* Mild Metallic Gold Text for lists */
    background: linear-gradient(to right, #e5c48b, #fff, #ecd077);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.benefit-card .content li::before {
    content: '•';
    color: #B59463;
    background: none;
    -webkit-text-fill-color: #B59463; /* Make bullet solid despite clipping class */
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.2rem;
}

.bottom-icons {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    color: #B59463;
    font-size: 1.6rem;
    align-items: center;
}
.deco-card .big-icon {
    font-size: 4rem;
    color: #B59463;
    opacity: 0.5;
    z-index: 2;
}

/* Section 5: Articles Slider */
.articles-section {
    background: linear-gradient(to bottom, transparent 0px, rgba(0, 0, 0, 0.4) 150px, rgba(0, 0, 0, 0.4) calc(100% - 150px), transparent 100%);
    padding: 60px 0;
}

.articles-slider-wrapper {
    position: relative;
    padding: 0 40px; /* Room for nav buttons */
}
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gold);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    font-size: 1.2rem;
}
.slider-nav-btn:hover {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.slider-nav-btn.prev-btn { left: 0; }
.slider-nav-btn.next-btn { right: 0; }

.articles-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 20px;
    scroll-behavior: auto; /* Required for continuous auto-scroll */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    cursor: grab;
}
.articles-scroll-container.active {
    cursor: grabbing;
}
.articles-scroll-container::-webkit-scrollbar {
    display: none;
}

.article-card {
    flex: 0 0 320px;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, outline 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    outline: 1px solid var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.article-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, filter 0.5s;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.article-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
    color: #eee;
    transition: color 0.3s;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-info h3 {
    color: var(--gold);
}

.view-all-card {
    flex: 0 0 320px; /* Added for flex container */
    scroll-snap-align: start; /* Added for flex container */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Modified from dashed 0.2 to solid 0.1 */
    color: #fff; /* Added */
    cursor: pointer;
    transition: background 0.3s; /* Added */
}
.view-all-card:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    outline: none; /* Moved from the end of the provided snippet */
}
.view-all-card i {
    font-size: 3rem;
    color: #B59463;
    margin-bottom: 15px;
    transition: color 0.3s, transform 0.3s;
}
.view-all-card span {
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    color: #B59463;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}
.view-all-card:hover i, .view-all-card:hover span {
    color: var(--gold);
}
.view-all-card:hover i {
    transform: translateX(10px);
}

/* Section 6: Footer */
/* Fix Layout: Ghìm chân Footer xuống đáy màn hình khi nội dung trang ngắn */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.cta-conversion-section {
    flex-grow: 1; /* Nở rộng để lấp đầy không gian tàn dư, ép footer xuống đáy */
}

/* Section 6: Footer (Organic Silk & Cosmic Blending) */
/* FOOTER BACKGROUND */
.footer-section {
    position: relative;
    padding: 200px 0 10px; /* Tăng lại top padding, giữ bottom padding mỏng tang để text bám sát đáy */
    /* Khôi phục khoảng cách chuẩn để nếp lụa không chờm cao làm ăn lấp nội dung bên trên */
    margin-top: -80px;
    /* Đổ nền tối hoàn toàn để ánh sáng từ section trên không làm trắng dải viền trang trí trong suốt của ảnh */
    background: transparent;
    border-top: none !important;
    outline: none;
    box-shadow: none;
    z-index: 10;
}

/* Background lụa và fade ở top để xóa mép đen (cinematic edge) */
.footer-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background-image: url('/wp-content/uploads/2026/03/footer-moi.webp'); /* File gốc không bị sai alpha channel */
    background-size: 100% 100%; /* Căng dãn đúng tỷ lệ khung footer để xóa hoàn toàn khoảng đen */
    background-position: center top; /* Đưa mép hoa văn lên sát viền trên cùng */
    background-repeat: no-repeat;
    z-index: 0;
    /* Đã loại bỏ hiệu ứng mờ viền ảnh background theo yêu cầu của user */
}

/* Lớp bảo vệ chống che lấp Text */
.footer-section .footer-container {
    position: relative;
    z-index: 50; /* Kéo Text lên trên cùng khói sương để rõ nét */
}

/* --- CINEMATIC MYSTIC ENVIRONMENT --- */
.footer-cinematic-environment {
    position: absolute;
    top: -150px; left: 0; right: 0; bottom: 0;
    overflow: hidden; /* Cắt triệt để khói bay xuống gây khoảng đen dưới đáy */
    z-index: 20;
    pointer-events: none;
    mix-blend-mode: screen; 
}

/* --- HỆ THỐNG KHÓI CHIỀU SÂU (CINEMATIC SMOKE VFX) --- */
.smoke-river-container {
    position: absolute;
    /* Ôm chọn khu vực từ đỉnh của lụa (top: 0) để khói uốn quanh lụa */
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 20;
    pointer-events: none;
    overflow: visible;
}

/* Form gốc: Nguồn phát Neo (Anchor Emitter) xuất phát từ sâu dưới đường sóng lụa */
.vfx-smoke {
    position: absolute;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    mix-blend-mode: screen; 
    
    /* Dùng closest-side ép mask triệt để vào lõi, triệt tiêu 100% mép viền vuông của ảnh */
    -webkit-mask-image: radial-gradient(closest-side, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 80%);
    mask-image: radial-gradient(closest-side, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 80%);
    will-change: transform, opacity;
}

/* LỚP 1: BACKGROUND SMOKE (Hậu Cảnh - Ôm viền lụa nhấp nhô) */
.smoke-layer-1 { left: -5%; top: 70px; width: 550px; height: 550px; z-index: 1; opacity: 0.35; animation: smoke-rise-bg 35s ease-in-out infinite alternate; }
.smoke-layer-2 { left: 25%; top: 120px; width: 580px; height: 580px; z-index: 1; opacity: 0.45; animation: smoke-rise-bg 42s ease-in-out infinite alternate 5s; }
.smoke-layer-3 { right: -5%; top: 90px; width: 620px; height: 620px; z-index: 1; opacity: 0.4; animation: smoke-rise-bg 38s ease-in-out infinite alternate 12s; }

/* LỚP 2: MAIN SMOKE (Trung Cảnh - Ngay rãnh võng xuống của lụa) */
.smoke-layer-4 { left: 15%; top: 180px; width: 500px; height: 500px; z-index: 5; opacity: 0.6; animation: smoke-rise-main 28s ease-in-out infinite alternate 2s; }
.smoke-layer-5 { right: 20%; top: 140px; width: 450px; height: 450px; z-index: 5; opacity: 0.65; animation: smoke-rise-main 32s ease-in-out infinite alternate 8s; }

/* LỚP 3: FOREGROUND SMOKE (Tiền Cảnh - Chồm lên bài Tarot góc màn hình) */
.smoke-layer-6 { left: -10%; top: 100px; width: 650px; height: 650px; z-index: 35; opacity: 0.75; animation: smoke-rise-fg 25s ease-in-out infinite alternate; }
.smoke-layer-7 { right: -10%; top: 110px; width: 600px; height: 600px; z-index: 35; opacity: 0.75; animation: smoke-rise-fg 28s ease-in-out infinite alternate 15s; }

/* --- 3-AXIS BILLOWING PHYSICS (Quỹ đạo Tỏa Khói Vật Lý - RẤT NHẸ) --- */
/* Mây dập dềnh bám biên lướt quanh dải lụa, không bốc lên cao thấu trời nữa */
@keyframes smoke-rise-bg {
    0% { transform: translateY(0px) translateX(0px) scale(0.95) rotate(-3deg); }
    100% { transform: translateY(-30px) translateX(20px) scale(1.05) rotate(3deg); }
}

@keyframes smoke-rise-main {
    0% { transform: translateY(0px) translateX(0px) scale(1) rotate(2deg); }
    100% { transform: translateY(-40px) translateX(-15px) scale(1.1) rotate(-2deg); }
}

@keyframes smoke-rise-fg {
    0% { transform: translateY(0px) translateX(0px) scale(1.05) rotate(-5deg); }
    100% { transform: translateY(-35px) translateX(15px) scale(1.15) rotate(4deg); }
}

/* Tầng Các Hạt Tinh Thể Chiều Sâu (Depth of Field Star Dust) */
.cinematic-stardust-layer {
    position: absolute;
    inset: 0;
    mix-blend-mode: screen; /* Các vì sao lơ lửng xuyên qua làn khói hòa sáng vào background */
    z-index: 21;
}
.cinematic-dust {
    position: absolute;
    border-radius: 50%;
    /* Bụi vàng rực tinh khiết thay vì trắng/xám đục */
    background: radial-gradient(circle, rgba(255,230,160,1) 0%, rgba(255,200,100,0.4) 50%, transparent 80%);
    box-shadow: 0 0 8px rgba(255, 200, 100, 0.7), 0 0 3px rgba(255, 255, 255, 0.9);
    animation: drift-dust linear infinite;
    pointer-events: none;
}
@keyframes drift-dust {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 1; }
    85% { opacity: 0.9; }
    100% { transform: translateY(-200px) translateX(40px); opacity: 0; }
}

/* 3. Dải khói cổ điển (Ancient Smoke Tendrils) */
.footer-smoke {
    position: absolute;
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(140, 90, 240, 0.5) 0%, rgba(200, 150, 100, 0.3) 30%, transparent 60%);
    border-radius: 50%;
    opacity: 0.9;
    animation: smoke-curl-tendril 20s ease-in-out infinite alternate;
}
.footer-smoke-1 {
    top: 10%; left: 15%;
    animation-delay: 0s;
}
.footer-smoke-2 {
    bottom: 15%; right: 10%;
    width: 800px; height: 500px;
    background: radial-gradient(circle, rgba(220, 180, 80, 0.3) 0%, rgba(130, 60, 220, 0.4) 40%, transparent 70%);
    animation: smoke-curl-reverse-tendril 30s ease-in-out infinite alternate;
}

@keyframes smoke-curl-tendril {
    0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.4) rotate(45deg); opacity: 0.8; }
    100% { transform: translateY(20px) scale(0.9) rotate(-15deg); opacity: 0.4; }
}
@keyframes smoke-curl-reverse-tendril {
    0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-40px) scale(1.3) rotate(-35deg); opacity: 0.2; }
    100% { transform: translateY(-10px) scale(1.1) rotate(20deg); opacity: 0.6; }
}

/* 1 & 2. Hạt bụi sao vô cực đan xen (Mystic Dust Particles) */
.footer-particles {
    position: absolute;
    inset: -10%; /* Không viền lệch xoáy nữa do đã bỏ macro rotation */
    /* Kết hợp mask fade-out phía trên và radial tâm */
    mask-image: radial-gradient(ellipse at center, black 10%, rgba(0,0,0,0.7) 60%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, rgba(0,0,0,0.7) 60%, transparent 90%);
    transform-origin: center center;
}
.mystic-dust {
    position: absolute;
    border-radius: 50%;
    animation: float-swirl linear infinite;
}

/* Biến thể màu sắc hạt bụi vũ trụ */
.dust-gold {
    background: radial-gradient(circle, rgba(255,220,100,1) 0%, rgba(255,200,0,0.6) 40%, transparent 80%);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.9), 0 0 3px rgba(255, 255, 255, 0.7);
}
.dust-purple {
    background: radial-gradient(circle, rgba(200,120,255,1) 0%, rgba(130,50,250,0.6) 40%, transparent 80%);
    box-shadow: 0 0 8px rgba(180, 80, 255, 0.8), 0 0 3px rgba(255, 220, 255, 0.7);
}
.dust-blue {
    background: radial-gradient(circle, rgba(120,200,255,1) 0%, rgba(50,150,250,0.6) 40%, transparent 80%);
    box-shadow: 0 0 8px rgba(80, 180, 255, 0.8), 0 0 3px rgba(220, 240, 255, 0.7);
}
.dust-white {
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(220,220,255,0.6) 40%, transparent 80%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 3px rgba(255, 255, 255, 0.9);
}

@keyframes float-swirl {
    0% { transform: translateY(0px) translateX(0px); opacity: 0; }
    10% { opacity: 1; }
    33% { transform: translateY(-30px) translateX(15px); }
    66% { transform: translateY(-60px) translateX(-10px); }
    90% { opacity: 1; }
    100% { transform: translateY(-90px) translateX(5px); opacity: 0; }
}

.footer-container {
    position: relative;
    z-index: 50;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Keep the brand slightly wider for balance, but 3 columns */
    gap: 20px;
    margin-bottom: 0px !important; /* KHÔNG có khoảng cách dưới text, đặt kịch trần xuống đáy */
    
    transform: translateY(-10px); /* Đẩy dịch lên trên 1 chút để cân đối */
    
    /* Đã loại bỏ hiệu ứng làm nền ở phần text footer */
    background: none;
    padding: 20px 40px; /* Bóp padding lại để box gọn hơn, text dồn sát mí dưới */
    border-radius: 40px;
    
    /* Global text-shadow for all children inside */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #FCD667; /* Pale Gold Title */
}

.footer-col {
    color: #FFF8E7; /* Consistent bright body color */
}

.slogan {
    color: #FFF8E7;
    font-size: 1.05rem;
    line-height: 1.6;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #FCD667; /* Pale Gold Title */
}

.footer-links ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-links ul li a {
    color: #FFF8E7;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.footer-links ul li a i {
    color: #FCD667;
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-links ul li a:hover {
    color: #FCD667;
    transform: translateX(5px);
}

.contact-email {
    color: #FFF8E7;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.contact-email i {
    color: #FCD667;
    font-size: 1.2rem;
}

.follow-us-text {
    color: #FCD667;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08); /* Lighter borderish feel */
    border: 1px solid rgba(252, 214, 103, 0.3); /* Subtle gold border */
    border-radius: 50%;
    color: #FFF8E7;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #FCD667;
    color: #0a0e17;
    box-shadow: 0 0 15px rgba(252, 214, 103, 0.5);
    transform: translateY(-3px);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    border-top: none !important; /* Xóa viền để kéo sát lên */
    padding-top: 10px !important; /* Sát vào text block trên để triệt tiêu mọi khoảng cách */
    color: var(--text-gray);
    font-size: 0.9rem;
    transform: translateY(35px); /* Đẩy bản quyền di chuyển đồng bộ với khối Text */
}

/* Explore Section */
.explore-section {
    padding: 0 0 60px 0;
    position: relative;
    z-index: 20;
    /* Hero section có padding-bottom là 160px. 
       Margin-top -120px giúp section này luôn duy trì khoảng cách tối thiểu 40px an toàn phía dưới nút dù resize kiểu gì đi nữa */
    margin-top: -120px;
}

.explore-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.explore-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #ffffff;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 25px;
    font-weight: 700;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.explore-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.explore-card .card-heading {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Box 1 List */
.popular-spreads-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-spreads-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.popular-spreads-list i {
    font-size: 1.5rem;
    color: #B59463;
    margin-top: 5px;
}

.spread-info strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.spread-info span {
    color: #a0aab2;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Box 2 Card */
.card-of-day {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.card-of-day img {
    width: 70px;
    height: 110px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-text {
    flex: 1;
}

.card-text h4 {
    color: #FFD700;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.card-text p {
    color: #a0aab2;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Box 3 Zodiac */
.daily-horoscope {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.horo-zodiac {
    display: flex;
    align-items: center;
    gap: 12px;
}

.horo-zodiac h4 {
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 0;
}

.daily-horoscope p {
    color: #a0aab2;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.explore-cta-text {
    text-align: center;
    color: #a0aab2;
    font-size: 0.9rem;
    margin-top: 25px;
    font-style: italic;
}

/* FAQ Accordion Section */
.faq-accordion-section {
    position: relative;
    padding: 80px 0;
    width: 100vw !important;
    max-width: 100vw !important;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border: 1px solid #B59463;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(2, 2, 2, 0.4);
}

.accordion-header {
    background: rgba(10, 14, 23, 0.6);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

.accordion-header i {
    color: #B59463;
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background-color: #020202; /* Deep midnight black */
}

.accordion-inner {
    padding: 20px;
    color: #ccc;
    line-height: 1.6;
    border-top: 1px solid rgba(181, 148, 99, 0.2);
}

/* CTA Conversion Section */
.cta-conversion-section {
    position: relative;
    padding: 100px 0 200px 0 !important; /* Dãn sâu xuống để phủ kín mép gờ cắt */
    margin-bottom: 0; /* Loại bỏ lùi lại để không đè nút của section trước */
    overflow: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
}

.galactic-breath-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    background: transparent;
}

.galactic-breath-bg .breath-layer {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(181, 148, 99, 0.15) 0%, rgba(10, 14, 23, 0.5) 40%, rgba(10, 14, 23, 0.8) 60%, #0a0e17 80%);
    animation: galacticBreath 8s infinite alternate ease-in-out;
}

@keyframes galacticBreath {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

.cta-container {
    text-align: center;
    max-width: 900px !important;
}

.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 700;
}

.cta-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-content p {
    margin-bottom: 15px;
}

.final-cta-btn {
    background: #FFD700;
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 45px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.final-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    background: #ffed80;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .explore-section {
        margin-top: -60px;
    }
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-chatbox {
        margin: 0 auto;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .services-grid,
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .explore-section {
        margin-top: -20px;
    }
    .explore-grid {
        grid-template-columns: 1fr;
    }
    .chat-greeting {
        font-size: 19px;
        margin-bottom: 10px;
        white-space: normal;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        margin-top: -80px;
        padding: 100px 0 10px;
    }

    .footer-section::before {
        background-image: url('/wp-content/uploads/2026/03/IMG_5220-1.webp'); /* Ảnh nền riêng cho mobile đã được nén WEBP */
        background-size: 100% 100%; /* Ép khung ảnh mới này trải vừa đủ nội dung */
        background-position: center bottom;
    }

    .social-icons {
        justify-content: center;
    }

    .header-top-bar {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .header-contact-info {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .contact-item {
        gap: 5px;
    }

    .contact-title {
        font-size: 9px;
        line-height: 1.2;
    }

    .contact-desc {
        font-size: 10px;
        line-height: 1.2;
    }

    .header-logo h2 {
        font-size: 1.2rem;
    }

    .header-logo i {
        font-size: 1.2rem;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .nav-menu {
        display: none;
    }
}

/* Mobile Slide-In Menu CSS */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 100%;
    height: 100vh;
    background: #090a0f;
    z-index: 2000;
    transition: 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-close {
    align-self: flex-end;
    font-size: 28px;
    color: var(--gold);
    cursor: pointer;
    margin-bottom: 40px;
}

/* =========================================================
   Deep Space Odyssey Background (Section 4)
   ========================================================= */
/* =========================================================
   Deep Space Odyssey Background (Section 4)
   ========================================================= */
.faq-section {
    position: relative;
    /* Loại bỏ 'overflow: hidden' để phần cảnh nền có thể tràn mờ xuống Area tiếp theo */
    padding: 80px 0;
    min-height: 600px;
}

.dynamic-galaxy-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100vw;
    height: 130%; /* Tràn hẳn xuống Section bên dưới (10% lên trên, 20% đè đoạn đầu mục sau) */
    z-index: 1;
    pointer-events: none; /* Tránh che chắn click của section 5 do tràn */
    opacity: 0.05; /* Giảm mạnh Opacity xuống 5% theo yêu cầu */
    transform-origin: center center;
    will-change: transform, opacity;
    
    /* Fade Gradient ở đỉnh và đáy (tràn Section 5) */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.galaxy-breath-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/wp-content/uploads/2026/03/thienha.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: faqNebulaBreath 15s ease-in-out infinite alternate;
}

#faq-star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

@keyframes faqNebulaBreath {
    0% {
        transform: scale(1.0); /* Nhịp thở bắt đầu */
    }
    100% {
        transform: scale(1.1); /* Nhịp thở tối đa (phình ra) */
    }
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-nav-list a {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.mobile-nav-list li.active a {
    color: var(--gold);
}