/* Practice Test Styles */
.card-box {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.cas-test-tabs .nav-tabs {
    border-bottom: 1px solid #e0e0e0;
}

/* Enable horizontal scrolling for tabs */
.tab-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab;
}

.tab-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab-scroll.active {
    cursor: grabbing;
}





.question-box {
    padding: 1rem 0;
    min-height: 300px;
}

.question-box h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.question-t-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 20px;
}

.question-t-box .box {
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.question-t-box .box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: #1150B2;
}

.question-t-box .box h6 {
    color: #1150B2;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.question-preview {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    height: 3.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.timer {
    display: inline-block;
    background: #e9f2ff;
    color: #1150B2;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.timer i {
    margin-right: 5px;
}

.blue-grad-btn {
    background-image: linear-gradient(90deg, #1150B2 0%, #5694F7 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blue-grad-btn:hover {
    box-shadow: 0 5px 15px rgba(17, 80, 178, 0.3);
    transform: translateY(-2px);
    color: white;
}

/* Custom Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.spinner-border-lg {
    width: 3rem;
    height: 3rem;
    border: 0.3em solid transparent;
    border-radius: 50%;
    position: absolute;
    animation: spinner-animation 1.5s ease infinite;
}

.spinner-primary {
    border-top-color: #1150B2;
    animation-delay: 0s;
}

.spinner-secondary {
    border-left-color: #5694F7;
    width: 2.5rem;
    height: 2.5rem;
    animation-delay: 0.2s;
}

@keyframes spinner-animation {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-box {
        padding: 1.5rem;
    }
    
    .cas-test-tabs .nav-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.9rem;
    }
    
    .question-t-box {
        grid-template-columns: 1fr;
    }
}

.btn-back {
    display: inline-block;
    color: #1150B2;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-back:hover {
    color: #5694F7;
}