/* ===================================================
                    PRACTICE PAGE
=================================================== */

/* IMPORTANT:
   Do NOT define width, max-width, margin, padding,
   position or transform on .practice-page.
   dashboard-student.css already controls the page shell.
*/


/* ===================================================
                    HERO
=================================================== */

.practice-hero {

    margin-bottom: 50px;

    padding: 30px;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        #0F3B63,
        #123F67
    );

    color: #FFFFFF;

}

.practice-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color: rgba(255,255,255,.8);

    font-size: .8rem;

    font-weight: 600;

    letter-spacing: .08em;

    text-transform: uppercase;

}

.practice-hero h1 {

    margin: 0 0 15px;

    color: #FFFFFF;

    font-size: 2.5rem;

    font-weight: 700;

    line-height: 1.2;

}

.practice-hero p {

    max-width: 700px;

    margin: 0;

    color: rgba(255,255,255,.82);

    font-size: 1rem;

    line-height: 1.8;

}


/* ===================================================
                    SECTION
=================================================== */

.practice-section {

    margin-bottom: 50px;

}

.practice-section-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    margin-bottom: 25px;

}

.practice-section-heading h2 {

    margin: 0 0 8px;

    color: #0F172A;

    font-size: 1.8rem;

    font-weight: 700;

}

.practice-section-heading p {

    margin: 0;

    color: #64748B;

    font-size: 1rem;

    line-height: 1.7;

}

.content-count {

    flex-shrink: 0;

    padding: 8px 15px;

    border-radius: 50px;

    background: #EFF6FF;

    color: #2563EB;

    font-size: .85rem;

    font-weight: 600;

}

/* ===================================================
                    EXAMS
=================================================== */

.exam-container {

    display: flex;

    flex-direction: column;

    gap: 18px;

    width: 100%;

}


.exam-card {

    display: flex;

    align-items: center;

    gap: 18px;

    width: 100%;

    min-height: 92px;

    padding: 18px 34px;

    border: 2px solid #2563EB;

    border-radius: 50px;

    background: #FFFFFF;

    color: #2563EB;

    font-family: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        background .25s,
        color .25s,
        box-shadow .25s,
        transform .25s;

}


.exam-card:hover {

    background: #F8FAFC;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(37,99,235,.10);

}


.exam-card.active {

    background: #2563EB;

    color: #FFFFFF;

}


.exam-card-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    border-radius: 12px;

    background: rgba(37,99,235,.10);

}


.exam-card:hover .exam-card-icon {

    background: rgba(37,99,235,.15);

}


.exam-card.active .exam-card-icon {

    background: rgba(255,255,255,.18);

}


.exam-card-icon i {

    font-size: 1.1rem;

}


.exam-card-image {

    width: 46px;

    height: 46px;

    flex-shrink: 0;

    border-radius: 50%;

    object-fit: cover;

}


.exam-card-content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 0;

    flex: 1;

}


.exam-card-content strong {

    display: block;

    margin-bottom: 5px;

    overflow: hidden;

    color: inherit;

    font-size: 1.05rem;

    font-weight: 700;

    line-height: 1.4;

    text-overflow: ellipsis;

    white-space: nowrap;

}


.exam-card-content small {

    margin-top: 2px;

    overflow: hidden;

    color: inherit;

    opacity: .72;

    font-size: .82rem;

    line-height: 1.45;

    display: -webkit-box;

    line-clamp: 1;

    -webkit-line-clamp: 1;

    -webkit-box-orient: vertical;

}


.exam-card-arrow {

    margin-left: auto;

    flex-shrink: 0;

    font-size: 1rem;

}

/* ===================================================
                    SUBJECTS
=================================================== */

.subject-container {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px, 1fr)
        );

    gap: 24px;

    margin-top: 25px;

}

.subject-card {

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    gap: 20px;

    min-width: 0;

    padding: 24px;

    border: 1px solid #E2E8F0;

    border-radius: 18px;

    background: #FFFFFF;

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);

    cursor: default;

    transition: .3s;

}

.subject-card:hover {

    transform: translateY(-5px);

    border-color: #14B8A6;

    box-shadow:
        0 18px 40px rgba(0,0,0,.08);

}


/* ===================================================
                    SUBJECT IMAGE
=================================================== */

.subject-visual {

    width: 100%;

    height: 140px;

    overflow: hidden;

    border-radius: 12px;

    background: #F1F5F9;

}

.subject-visual img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


/* ===================================================
                    SUBJECT INFO
=================================================== */

.subject-info {

    min-width: 0;

}

.subject-info h3 {

    margin: 0 0 12px;

    color: #1E293B;

    font-size: 1.2rem;

    font-weight: 600;

    line-height: 1.4;

}

.subject-info p {

    margin: 0;

    color: #64748B;

    font-size: .95rem;

    line-height: 1.7;

}


/* ===================================================
                    SUBJECT ACTIONS
=================================================== */

.subject-actions {

    display: flex;

    gap: 12px;

    margin-top: auto;

}

.subject-actions button {

    flex: 1;

    min-width: 0;

    border: none;

    border-radius: 10px;

    padding: 12px 18px;

    font-family: inherit;

    font-size: .9rem;

    font-weight: 600;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    transition: .3s;

}

.practice-btn {

    background: #0D6EFD;

    color: #FFFFFF;

}

.practice-btn:hover {

    background: #0B5ED7;

}

.resource-btn {

    border: 1px solid #E2E8F0 !important;

    background: #F1F5F9;

    color: #0F172A;

}

.resource-btn:hover {

    background: #E2E8F0;

}


/* ===================================================
                    LOADING
=================================================== */

.practice-loading {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

    min-height: 110px;

    padding: 25px;

    border: 1px solid #E2E8F0;

    border-radius: 14px;

    background: #FFFFFF;

    color: #64748B;

    text-align: center;

}

/* ===================================================
                    EMPTY STATE
=================================================== */

.practice-empty {

    grid-column: 1 / -1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 400px;

    padding: 60px 30px;

    border: 2px dashed #CBD5E1;

    border-radius: 18px;

    background: #FFFFFF;

    text-align: center;

}


.empty-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 68px;

    height: 68px;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: #ECFDF5;

    color: #14B8A6;

    font-size: 1.8rem;

}


.practice-empty h3 {

    margin: 0 0 12px;

    color: #0F172A;

    font-size: 1.3rem;

    font-weight: 700;

}


.practice-empty p {

    max-width: 520px;

    margin: 0 auto;

    color: #64748B;

    font-size: 1rem;

    line-height: 1.8;

}

/* ===================================================
                    RETRY
=================================================== */

.practice-retry {

    margin-top: 15px;

    padding: 10px 18px;

    border: none;

    border-radius: 10px;

    background: #2563EB;

    color: #FFFFFF;

    font-family: inherit;

    font-weight: 600;

    cursor: pointer;

}


/* ===================================================
                    MESSAGE
=================================================== */

.practice-message {

    margin-bottom: 30px;

    padding: 14px 18px;

    border-radius: 10px;

    font-size: .9rem;

}

.practice-message.error {

    border: 1px solid #FECACA;

    background: #FEF2F2;

    color: #B91C1C;

}

.practice-message.success {

    border: 1px solid #BBF7D0;

    background: #F0FDF4;

    color: #15803D;

}


/* ===================================================
                    RESPONSIVE
=================================================== */

@media (max-width: 768px) {

    .practice-hero {

        padding: 24px;

        margin-bottom: 35px;

    }

    .practice-hero h1 {

        font-size: 2rem;

    }

    .practice-section-heading {

        flex-direction: column;

    }

    .exam-container {

        flex-direction: column;

    }

    .exam-card {

        width: 100%;

        justify-content: flex-start;

    }

    .subject-container {

        grid-template-columns: 1fr;

    }

    .subject-actions {

        flex-direction: column;

    }

}

@media (max-width: 480px) {

    .practice-hero {

        padding: 20px;

    }

    .practice-hero h1 {

        font-size: 1.7rem;

    }

    .practice-section-heading h2 {

        font-size: 1.5rem;

    }

    .subject-card {

        padding: 20px;

    }

}