/* driverexam-index.css
 * Desktop-first practice dashboard, with responsive breakpoints below.
 * Mobile-inspired rounded cards.
 * Keeps dashboard JS hooks: .driverexam-panel and data-driverexam-section.
 * Common rules live in driverexam-index-shared.css, which is loaded before this file.
 */
 
 .practice-sidebar {
     min-width: 0;
 }
 
 .practice-content {
     display: block;
     min-width: 0;
 }
 
 .driverexam-panel {
     display: none;
 }
 
 .driverexam-panel-active {
     display: block;
 }
 
 /* Hero */
 
 .practice-hero {
     display: grid;
     gap: 1rem;
     margin-bottom: 1.25rem;
     padding: 2.4rem;
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 2.5rem;
     background: linear-gradient(135deg, rgba(21, 14, 96, 0.94), rgba(0, 194, 224, 0.84)), #150e60;
     color: #ffffff;
     box-shadow: 0 1.5rem 4rem rgba(21, 14, 96, 0.14);
 }
 
 .practice-hero-practice {
     grid-template-columns: minmax(0, 1fr) 11rem;
     align-items: end;
 }
 
 .practice-kicker {
     display: inline-flex;
     align-items: center;
     justify-self: start;
     min-height: 2rem;
     margin-bottom: 0.25rem;
     padding: 0.45rem 0.75rem;
     border-radius: 999rem;
     background: rgba(255, 255, 255, 0.18);
     color: #ffffff;
     font-size: 0.78rem;
     font-weight: 900;
     line-height: 1;
     letter-spacing: 0.08em;
     text-transform: uppercase;
 }
 
 .practice-text {
     max-width: 44rem;
     margin: 0;
     color: rgba(255, 255, 255, 0.94);
     font-size: 1.04rem;
     font-weight: 700;
     line-height: 1.46;
 }
 
 .practice-hero-summary {
     min-height: 10rem;
     padding: 1.25rem;
     border-radius: 2rem;
     background: rgba(255, 255, 255, 0.9);
     color: #150e60;
 }
 
 .practice-hero-summary span {
     display: block;
     margin-bottom: 0.75rem;
     color: #5b6b8c;
     font-size: 0.75rem;
     font-weight: 900;
     line-height: 1;
     text-transform: uppercase;
 }
 
 .practice-hero-summary strong {
     display: block;
     color: #150e60;
     font-size: 4.25rem;
     font-weight: 900;
     line-height: 0.9;
     letter-spacing: -0.08em;
 }

 /* Package banner */

 .practice-package-banner {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 1rem;
     margin: 0 0 1.25rem;
     padding: 1.1rem 1.4rem;
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 1.5rem;
     background: rgba(255, 255, 255, 0.92);
     box-shadow: 0 1rem 2.5rem rgba(21, 14, 96, 0.08);
 }

 .practice-package-banner-empty {
     background: #fff7ed;
     border-color: rgba(234, 88, 12, 0.2);
 }

 .practice-package-info {
     min-width: 0;
 }

 .practice-package-badge {
     display: inline-flex;
     margin-bottom: 0.4rem;
     padding: 0.35rem 0.6rem;
     border-radius: 999rem;
     background: #e0f7fc;
     color: #0f0a45;
     font-size: 0.72rem;
     font-weight: 900;
     line-height: 1;
     text-transform: uppercase;
 }

 .practice-package-banner-empty .practice-package-badge {
     background: #ffedd5;
     color: #9a3412;
 }

 .practice-package-name {
     color: #150e60;
     font-size: 1.05rem;
     font-weight: 900;
 }

 .practice-package-expiry {
     margin-top: 0.2rem;
     color: #5b6b8c;
     font-size: 0.85rem;
     font-weight: 700;
 }

 .practice-package-banner .practice-package-btn {
     flex-shrink: 0;
     width: auto;
     padding-left: 1.5rem;
     padding-right: 1.5rem;
 }

 /* Basic info cards */
 
 .practice-info-grid {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 0.9rem;
 }
 
 .practice-soft-card,
 .practice-empty {
     min-height: 13rem;
     padding: 1.35rem;
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 2rem;
     background: rgba(255, 255, 255, 0.92);
     box-shadow: 0 1rem 2.5rem rgba(21, 14, 96, 0.08);
 }
 
 .practice-soft-card span {
     display: inline-flex;
     margin-bottom: 1rem;
     padding: 0.45rem 0.65rem;
     border-radius: 999rem;
     background: #e0f7fc;
     color: #0f0a45;
     font-size: 0.78rem;
     font-weight: 900;
     line-height: 1;
 }
 
 .practice-soft-card h2,
 .practice-empty h2 {
     margin: 0 0 0.75rem;
     color: #150e60;
     font-size: 1.55rem;
     font-weight: 900;
     line-height: 1.05;
 }
 
 .practice-soft-card p,
 .practice-empty p {
     margin: 0;
     color: #5b6b8c;
     font-size: 0.96rem;
     font-weight: 700;
     line-height: 1.42;
 }
 
 .practice-soft-card.is-disabled {
     opacity: 0.78;
 }
 
 /* Category cards */
 
 .practice-category-grid {
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     align-items: start;
     gap: 1rem;
 }
 
 .practice-category-card {
     display: flex;
     flex-direction: column;
     gap: 1rem;
     min-width: 0;
     padding: 1.25rem;
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 2rem;
     background: rgba(255, 255, 255, 0.92);
     color: #150e60;
     box-shadow: 0 1rem 2.5rem rgba(21, 14, 96, 0.1);
 }
 
 .practice-category-card.has-active-run {
     background:
         linear-gradient(180deg, rgba(209, 250, 229, 0.48), rgba(255, 255, 255, 0.94) 42%),
         #ffffff;
 }
 
 .practice-run-banner {
     display: grid;
     grid-template-columns: minmax(0, 1fr) auto auto;
     gap: 0.5rem;
     align-items: center;
     padding: 0.8rem 0.9rem;
     border-radius: 1.25rem;
     background: #d1fae5;
     color: #150e60;
 }
 
 .practice-run-banner strong,
 .practice-run-banner em {
     font-style: normal;
     font-weight: 900;
 }
 
 .practice-stat-grid {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 0.65rem;
 }
 
 .practice-stat.is-good {
     background: #d1fae5;
 }
 
 .practice-stat.is-bad {
     background: #ffe4e6;
 }
 
 .practice-actions,
 .practice-card-footer {
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 0.65rem;
 }
 
 .practice-form-wide {
     grid-column: 1 / -1;
 }
 
 .practice-card-footer {
     margin-top: auto;
     padding-top: 0.25rem;
 }

 /* Responsive */

 @media (max-width: 1024px) {
     .practice-category-grid {
         grid-template-columns: repeat(2, minmax(0, 1fr));
     }
 }

 @media (max-width: 768px) {
     .practice-hero {
         padding: 1.75rem;
         border-radius: 1.75rem;
     }

     .practice-hero-practice {
         grid-template-columns: minmax(0, 1fr);
         align-items: start;
     }

     .practice-hero-summary {
         justify-self: start;
         min-height: 0;
     }

     .practice-title {
         font-size: clamp(2.5rem, 10vw, 3.5rem);
     }

     .practice-package-banner {
         flex-wrap: wrap;
     }

     .practice-package-btn {
         width: 100%;
     }

     .practice-info-grid,
     .practice-category-grid {
         grid-template-columns: minmax(0, 1fr);
     }

     .practice-stat-grid {
         grid-template-columns: repeat(2, minmax(0, 1fr));
     }

     .practice-actions,
     .practice-card-footer {
         grid-template-columns: minmax(0, 1fr);
     }

     .practice-form-wide {
         grid-column: auto;
     }
 }

 @media (max-width: 480px) {
     .practice-hero {
         padding: 1.35rem;
         border-radius: 1.5rem;
     }

     .practice-category-card {
         padding: 1rem;
     }

     .practice-stat-grid {
         gap: 0.5rem;
     }
 }
