/* Clean Grid Mind Map Layout */
.mindmap-container {
    padding: 2rem 0 6rem;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.mindmap-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.mindmap-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr auto 1fr 1fr;
    align-items: stretch;
    /* Stretch cards to equal height */
    gap: 40px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Center Node Styling */
.mindmap-center-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mindmap-center {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 15px 40px rgba(4, 120, 87, 0.4);
    text-align: center;
    padding: 15px;
    border: 6px solid white;
    position: relative;
}

.mindmap-center i {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.mindmap-center span {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Node Cards */
.node-card {
    background: white;
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    height: 100%;
    /* Take full height of grid cell */
    display: flex;
    flex-direction: column;
}

.node-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.node-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8fafc;
}

.node-icon {
    width: 32px;
    height: 32px;
    background: #f0fdf4;
    color: #047857;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.node-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.node-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.node-file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #475569;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.node-file-item:hover {
    color: #047857;
    padding-left: 5px;
}

.node-file-item i {
    color: #cbd5e1;
}

/* Background Lines */
.mindmap-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.mindmap-line {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 2;
}

/* Responsive */
@media (max-width: 1200px) {
    .mindmap-grid-layout {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .mindmap-center-item {
        grid-column: span 2;
        order: -1;
        margin-bottom: 2rem;
    }

    .mindmap-svg {
        display: none;
    }
}

@media (max-width: 768px) {
    .mindmap-grid-layout {
        grid-template-columns: 1fr;
    }

    .mindmap-center-item {
        grid-column: span 1;
    }
}