/* ==========================================================
   DOPAMINE NEURAL MIND-MAP FAQ - MODULAR CSS (FIXED MOBILE TEXT DISPLAY)
   ========================================================== */

.mindmap-faq-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mindmap-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.neural-path {
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.mindmap-stage {
    position: relative;
    width: 100%;
    height: 720px;
    z-index: 2;
}

/* Perfectly Centered 3D Layered Central Neural Core */
.mindmap-center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.3) 0%, rgba(13, 14, 21, 0.98) 75%);
    border: 3px solid #00f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.4);
    cursor: pointer;
    z-index: 5;
    animation: coreThreeDBreathing 4s ease-in-out infinite;
    will-change: transform;
}

@keyframes coreThreeDBreathing {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg); 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.06) rotate(2deg); 
    }
}

.mindmap-center-hub i {
    font-size: 3.5rem;
    color: #00f2fe;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.7));
}

/* Question Branches with Clean Neon Stroke Outline */
.mindmap-branch {
    position: absolute;
    cursor: pointer;
    padding: 1.3rem 1.6rem;
    background: rgba(20, 22, 33, 0.95);
    border: 2px solid rgba(0, 242, 254, 0.35);
    border-radius: 18px;
    width: 310px;
    z-index: 10;
    will-change: transform;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mindmap-branch:hover {
    border-color: #00f2fe;
    background: rgba(25, 28, 42, 1);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
    transform: translateY(-3px) scale(1.02);
}

.mindmap-branch.active {
    border-color: #ffea00;
    background: rgba(25, 28, 42, 1);
    box-shadow: 0 0 30px rgba(255, 234, 0, 0.35);
    transform: scale(1.04);
}

.mindmap-branch p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

/* Radial Positioning for 7 Branches Around the Core */
.branch-0 { top: 5%; left: 3%; }
.branch-1 { top: 32%; left: 1%; }
.branch-2 { bottom: 32%; left: 1%; }
.branch-3 { bottom: 5%; left: 3%; }
.branch-4 { top: 5%; right: 3%; }
.branch-5 { top: 40%; right: 1%; }
.branch-6 { bottom: 5%; right: 3%; }

/* Glassmorphism Modal Pop-up Overlay */
.faq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 14, 21, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.faq-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.faq-modal-card {
    background: rgba(20, 22, 33, 0.98);
    border: 1px solid #00f2fe;
    border-radius: 20px;
    padding: 3rem;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.2);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-modal-overlay.active .faq-modal-card {
    transform: scale(1);
}

.faq-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-modal-close:hover {
    background: #ffea00;
    color: #000000;
    border-color: #ffea00;
}

.faq-modal-question {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffea00;
    margin-bottom: 1.25rem;
    line-height: 1.35;
    padding-right: 30px;
}

.faq-modal-answer {
    font-family: 'Inter', sans-serif;
    font-size: 1.12rem;
    color: #d1d5db;
    line-height: 1.85;
    margin: 0;
}

/* Optimized Mobile Touch Layout (Screens 1024px and below) */
@media (max-width: 1024px) {
    .mindmap-faq-container {
        min-height: auto;
    }
    .mindmap-stage {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .mindmap-svg-layer {
        display: none;
    }
    .mindmap-center-hub {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 1rem auto 1.5rem auto;
        align-self: center;
        width: 110px;
        height: 110px;
    }
    .mindmap-center-hub i {
        font-size: 2.2rem;
    }
    .mindmap-branch {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        text-align: center;
    }
    .faq-modal-card {
        padding: 2rem 1.5rem;
    }
}