/* =========================================
   EXAM PORTAL
========================================= */

.ep-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
    padding: 10px 20px;
    box-sizing: border-box;
}

.ep-heading {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 700;
}

.ep-description {
    margin: 0 0 25px;
    font-size: 17px;
    color: #555;
}


/* =========================================
   FILTERS
========================================= */

.ep-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    align-items: end;
}

.ep-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ep-filter-item label {
    font-size: 14px;
    font-weight: 600;
}

.ep-filter-item input,
.ep-filter-item select {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.ep-filter-item input:focus,
.ep-filter-item select:focus {
    outline: none;
    border-color: #0d6efd;
}


/* =========================================
   TEST LIST
========================================= */

.ep-tests {
    width: 100%;
}


/* =========================================
   TEST CARD
========================================= */

.ep-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    transition: .3s;
    box-sizing: border-box;
}

.ep-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
}

.ep-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.ep-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.ep-info {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}


/* =========================================
   BADGES
========================================= */

.ep-premium,
.ep-free {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.ep-premium {
    background: #ffe5e5;
    color: #d60000;
}

.ep-free {
    background: #e4f8ea;
    color: #16803c;
}


/* =========================================
   BUTTON
========================================= */

.ep-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0d6efd;
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
}

.ep-btn:hover {
    background: #0b5ed7;
    color: #fff !important;
}


/* =========================================
   LOAD MORE
========================================= */

.ep-load {
    text-align: center;
    margin: 25px 0;
}

.ep-load-more {
    display: none;
    padding: 11px 25px;
    border: none;
    border-radius: 6px;
    background: #333;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

.ep-load-more:hover {
    background: #111;
}


/* =========================================
   LOADING
========================================= */

.ep-loading {
    padding: 25px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555;
    background: #fafafa;
}


/* =========================================
   EMPTY / ERROR
========================================= */

.ep-empty {
    padding: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #555;
}

.ep-error {
    padding: 20px;
    text-align: center;
    border: 1px solid #f1b0b7;
    border-radius: 8px;
    background: #f8d7da;
    color: #842029;
}


/* =========================================
   TEST PAGE
========================================= */

.ep-main {
    display: flex;
    gap: 20px;
}

.ep-left {
    width: 75%;
}

.ep-right {
    width: 25%;
    border: 1px solid #ddd;
    padding: 15px;
}

.ep-question {
    font-size: 20px;
    margin-bottom: 20px;
}

.ep-option {
    display: block;
    padding: 12px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.ep-option:hover {
    background: #f5f5f5;
}

.palette-btn {
    width: 45px;
    height: 45px;
    margin: 5px;
    cursor: pointer;
}

.current {
    background: #28a745 !important;
    color: #fff !important;
}

.answered {
    background: #007bff !important;
    color: #fff !important;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .ep-wrapper {
        padding: 10px;
    }

    .ep-filters {
        display: block;
    }

    .ep-filter-item {
        margin-bottom: 12px;
    }

    .ep-filter-item input,
    .ep-filter-item select {
        width: 100%;
        min-width: 0;
    }

    .ep-card {
        padding: 15px;
    }

    .ep-main {
        display: block;
    }

    .ep-left,
    .ep-right {
        width: 100%;
    }

    .ep-right {
        margin-top: 20px;
    }

}