/* Premium Redesign for Practice Page */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

.practice-premium-wrap {
    font-family: 'Ubuntu', sans-serif;
}

.practice-header-container {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.practice-page-title-glow {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    margin-top: 2rem;
    letter-spacing: -1px;
}

.practice-subtitle-glow {
    font-size: 1.15rem;
    color: #6b7280;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1200px) {
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .premium-grid {
        grid-template-columns: 1fr;
    }
}

.premium-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.5rem;
    position: relative;
    border: 1px solid rgba(229, 231, 235, 0.6);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    z-index: 1;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.2);
}

.premium-card:hover::before {
    opacity: 1;
}

.premium-card-image-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-card:hover .premium-card-img {
    transform: scale(1.08);
}

.premium-icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #4f46e5;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.1);
    transition: transform 0.4s ease;
}

.premium-card:hover .premium-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.premium-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.premium-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.premium-card-desc {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.premium-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    background: #f8fafc;
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: .5px solid #e2e8f0;
    gap: 0.5rem;
    width: 100%;
}

.premium-card:hover .premium-card-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.premium-card-btn i {
    transition: transform 0.3s ease;
}

.premium-card:hover .premium-card-btn i {
    transform: translateX(4px);
}

/* Ambient background glows for the page */
.ambient-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: #4f46e5;
    filter: blur(100px);
    opacity: 0.05;
    border-radius: 50%;
    z-index: -1;
}

.glow-1 { top: -100px; left: -100px; background: #ec4899; }
.glow-2 { bottom: -100px; right: -100px; background: #4f46e5; }

/* Preview page: gap below breadcrumb, 20% | 60% card | 20% for ads */
.practice-page--preview .practice-preview-layout {
    display: flex;
    align-items: flex-start;
    margin-top: 1.5rem;
    width: 100%;
}

.practice-preview-side {
    flex: 0 0 20%;
    min-width: 0;
}

.practice-preview-center {
    flex: 0 0 60%;
    width: 60%;
    min-width: 0;
    padding: 0 0.5rem;
}

/* Practice pagination */
.practice-premium-wrap .pagination {
    gap: 0.25rem;
}
.practice-premium-wrap .pagination .page-link {
    padding: 0.5rem 0.75rem;
}
.practice-premium-wrap .pagination .page-item.disabled .page-link {
    opacity: 0.6;
}

@media (max-width: 991px) {
    .practice-page--preview .practice-preview-layout {
        flex-wrap: wrap;
    }
    .practice-preview-side,
    .practice-preview-center {
        flex: 0 0 100%;
        width: 100%;
    }
    .practice-preview-center {
        padding: 0;
    }
}

/* Premium icon box (category/subcategory/index) */
.premium-icon-box {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    opacity: 0.5;
}

/* Practice page title and empty state */
.practice-page-title {
    font-weight: 800;
    font-family: 'Ubuntu', sans-serif;
}
.practice-empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
}

/* Test page: form wrap hidden until "Start Test" is clicked */
.practice-test-form-wrap.is-hidden {
    display: none;
}

/* Question image in test/session */
.practice-question-img {
    max-height: 280px;
}

/* Prev button hidden until not on first question */
.practice-scholastic-prev {
    display: none;
}
.practice-scholastic-prev.visible {
    display: inline-flex !important;
}
.practice-scholastic-next.hidden {
    display: none !important;
}
