/* =========================================
   HERO / HEADER
========================================= */
.practice-hero {
    background: linear-gradient(to right, #0a1118 0%, #1e3a8a 100%);
    padding: 3.5rem 0;
    color: #f8fafc;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.practice-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center aligning per previous style */
    text-align: center;
    gap: 0.4rem;
}

.practice-hero-sub {
    font-size: 0.85rem;
    font-weight: 800;
    color: #93c5fd;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.practice-main-title {
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.1;
}

.practice-hero-meta {
    font-size: 0.95rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

/* =========================================
   PRACTICE PLANS SPECIFIC STYLES
========================================= */

/* Main Layout Wrapper */
#practice-dashboard {
    max-width: 1280px;
    margin: 3rem auto 4rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* -----------------------------------------
   SIDEBAR (Desktop) 
----------------------------------------- */
#plan-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#date-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-date-btn {
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.plan-date-btn:hover {
    background: #f8fafc;
    color: #1e3a8a;
}

.plan-date-btn.active {
    background: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

/* -----------------------------------------
   CONTENT AREA 
----------------------------------------- */
#plan-content {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.plan-header-block {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.plan-main-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Rendered Blocks from 2D Array */
.plan-section-header {
    background: #1e293b;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.plan-drill-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6; /* Blue accent left border */
}

.drill-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.drill-content {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.5;
    font-weight: 500;
    white-space: pre-wrap; /* Preserve line breaks if any */
}

/* -----------------------------------------
   MOBILE RESPONSIVE 
----------------------------------------- */
@media screen and (max-width: 900px) {
    #practice-dashboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 4%;
        margin-top: 1rem;
    }

    /* Convert Sidebar to horizontal scroll strip */
    #plan-sidebar {
        padding: 1rem;
        background: #f8fafc;
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin: 0 -4.1%; /* Break out of padding */
        padding-left: 4%;
        padding-right: 4%;
    }

    .sidebar-title {
        display: none; /* Hide 'Recent Plans' title on mobile to save space */
    }

    #date-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
        gap: 0.75rem;
        align-items: center;
    }

    #date-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .plan-date-btn {
        white-space: nowrap;
        padding: 0.6rem 1.2rem;
        border-radius: 30px; /* Pill shape */
        background: #ffffff;
        border: 1px solid #cbd5e1;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        width: auto;
    }

    .plan-date-btn.active {
         border-color: #1e3a8a;
    }

    /* Thicker padding for massive tap targets on phone */
    .plan-section-header {
        padding: 1.15rem 1.25rem;
        font-size: 1.05rem;
    }

    .plan-drill-card {
        padding: 1.25rem;
    }
}
