/* ========================================
   15. COURSE DASHBOARD VIZ
   ======================================== */

.course-dashboard-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-8);
    align-items: center;
    /* Vertically center metrics with text */
}

/* Adjust text wrapper to sit nicely in the left column */
.course-dashboard-hero .hero-text-column {
    max-width: 100%;
}

.viz-dashboard {
    margin-top: 0;
    /* No top margin needed in side-by-side layout */
    background: var(--swiss-gray-1);
    border: 1px solid var(--swiss-gray-2);
    padding: var(--grid-8);
    /* More breathing room */
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
    height: 100%;
    /* Match height if needed */
    position: relative;
    /* Needed for hover effect */
    transition: all var(--transition-smooth);
}

/* Hover Effect (Same as .content-card) */
.viz-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent-primary);
    transition: width var(--transition-elegant);
}

.viz-dashboard:hover {
    background: var(--swiss-white);
}

.viz-dashboard:hover::before {
    width: 100%;
}

/* Metrics Grid - 2x2 Layout */
.viz-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-8);
    /* Generous gap for square feel */
    border-bottom: none;
    padding-bottom: 0;
}

.viz-metric-card {
    display: flex;
    flex-direction: column;
    gap: var(--grid-1);
    align-items: flex-start;
    /* Align numbers to left */
}

.viz-label {
    font-size: var(--type-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    font-weight: 700;
    color: var(--swiss-gray-3);
    white-space: nowrap;
    /* Keep on one line */
}

.viz-value {
    font-size: var(--type-3xl);
    /* Even bigger impact */
    font-weight: 800;
    color: var(--swiss-black);
    letter-spacing: var(--tracking-tighter);
    line-height: 0.9;
}

.viz-value.highlight {
    color: var(--accent-primary);
}

.viz-sub {
    font-size: var(--type-xs);
    color: var(--swiss-gray-4);
    font-weight: 500;
    margin-top: -4px;
    /* Move closer to number */
}

/* Responsive */
@media (max-width: 991px) {
    .course-dashboard-hero .hero-content {
        grid-template-columns: 1fr;
        gap: var(--grid-8);
    }

    .course-dashboard-hero .hero-text-column {
        text-align: center;
    }

    .course-dashboard-hero .hero-intro,
    .course-dashboard-hero .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .viz-dashboard {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .viz-metrics-grid {
        grid-template-columns: 1fr 1fr;
        /* Keep 2x2 on mobile if fits, or 1fr for stack */
        gap: var(--grid-6);
    }

    .viz-value {
        font-size: var(--type-2xl);
    }
}