﻿#test-library {
    background-color: #f8f9fa;
    padding: 20px 0;
}

/*thêm vào ngày 19/06 */
.extra-item {
    transition: all 0.3s ease;
}





.filter-test {
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: start;
    border-radius: 7px !important;
}

.category {
    font-weight: 550 !important;
}


@media (max-width: 768px) {
    h1 {
        font-size: 25px !important;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 25px !important;
    }
}
/*thêm vào ngày 19/06 */
h1 {
    color: #ff6e40;
    font-weight: 700;
    font-size: 48px;
}

.filter-test {
    height: fit-content;
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Ensure content stays within the border */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effect */
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: left;
    margin-bottom: 20px; /* Space between articles */
}

.btn-outline-primary {
    border-radius: 10px;
}

.filter-test a {
    font-weight: 700;
    /* border: 1px solid #ff6e40; */
}

.filter-test .btn-outline-primary {
    color: #ff6e40;
}

.test-display-section {
    border-radius: 10px;
    margin: auto;
    background-color: white;
}

.input-group form {
    width: 100%;
}

.test-display {
    height: fit-content;
    background-color: #f8f9fa; /* Background color for the container */
    border-radius: 20px; /* Rounded corners */
    overflow: hidden; /* Ensure content stays within the border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effect */
    border: 1px solid #d6e4da;
    display: inline-block;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 20px; /* Space between articles */
    width: 270px;
    height: 94px;
    display: flex;
}

.test-display-info {
    font-weight: 400;
    line-height: 30px;
    padding-top: 15px;
}

    .test-display-info p {
    }

.test-display a {
    text-decoration: none; /* Remove underline from links */
    color: #ff6e40;
    width: 100%; /* Make the link cover the entire item */
    display: block;
    text-align: left;
}

.test-display h6 {
    margin: 0;
    font-size: 14px; /* Adjust font size */
    color: #214252;
    font-weight: 700;
}

.test-display:hover {
    transform: scale(1.05); /* Slightly increase size on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Increase shadow on hover */
}

.previous-cirle-userscore {
    width: 54px;
    height: 54px;
}

    .previous-cirle-userscore circle {
        width: 46px;
        height: 46px;
        border: 2px solid #0b6a3c;
        border-radius: 50%;
        font-weight: 700;
        display: flex; /* Use flexbox */
        align-items: center; /* Vertically center the content */
        justify-content: center; /* Horizontally center the content */
    }

.score-cirle p {
    text-align: center;
    font-weight: 600;
    margin: 0;
}

.col-md-4 {
    padding: 10px; /* Padding between columns */
}

.search-widget {
    display: flex;
    flex-direction: column;
}

.input-group-text {
    background-color: transparent;
    border: none;
}

.book-img-col {
    padding: 0;
}

.book-img {
    max-width: 100%;
}

.subscribe-widget {
    padding: unset;
}

.tests-library-left {
    padding-top: 20px;
}

.tests-library-right {
    padding: 40px 10px 0px 10px;
}

.filter-test-mobile {
    display: none;
}


.search-widget {
    padding-bottom: 14px;
}

/* Extra small devices (phones, <576px) */
@media (max-width: 576px) {
    .filter-test {
        display: none;
    }

    .filter-test-mobile {
        display: block;
    }

    #skill-select {
        width: 100%;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #214252;
        color: #214252;
        font-weight: 700;
    }

    .book-img-col {
        display: none;
    }

    .test-display {
        max-width: 100%; /* Full width for smaller screens */
    }
}

/* Small devices (phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .test-display {
        max-width: 100%; /* Full width for small devices */
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .test-display {
        max-width: 100%; /* Full width for tablets */
    }

    .filter-test {
        justify-content: center;
        gap: 15px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .test-display {
        max-width: 100%; /* Full width for larger screens */
    }

    .filter-test {
        justify-content: flex-start;
        gap: 20px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .test-display {
        max-width: 100%; /* Full width for extra large screens */
    }
}
