/* Mock Tests Page Styles */


/* Filter & Sort Section - Modern Glass Card */
.filter-sort-section {
    background: #ffffff;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
    margin-bottom: 30px;
}
.filter-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-label { font-weight: 700; color: #1e293b; min-width: 90px; font-size: 0.92rem; }
.filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 18px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-btn:hover {
    background: #ede9fe;
    color: #7c3aed;
    border-color: #c4b5fd;
    transform: translateY(-2px);
}
.filter-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35) !important;
    transform: translateY(-2px);
}
.sort-select {
    padding: 10px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.2s ease;
}
.sort-select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.results-count { font-weight: 700; color: #1e293b; font-size: 0.95rem; }
.reset-filters {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}
.reset-filters:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.35);
}

/* Test Cards - Stylish & Modern Elevated Design */
#testsContainer .test-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px -5px rgba(15, 23, 42, 0.06);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    display: flex;
    flex-direction: column;
}
#testsContainer .test-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.2);
    border-color: #a5b4fc;
}
.test-header {
    background: linear-gradient(135deg, #110e2e 0%, #1e1b4b 50%, #312e81 100%);
    color: white;
    padding: 24px;
    position: relative;
    flex-shrink: 0;
}
.test-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    pointer-events: none;
}
.test-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fef08a;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.test-category {
    font-size: 0.78rem;
    color: #38bdf8;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.test-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.35;
}
.test-description {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}
.test-body {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.difficulty-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: fit-content;
}
.difficulty-badge.easy { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.difficulty-badge.medium { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.difficulty-badge.hard { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

.test-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.stat-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 10px 6px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
}
.stat-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}
.stat-icon { font-size: 1.05rem; color: #6366f1; margin-bottom: 3px; }
.stat-value { font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.stat-label { font-size: 0.68rem; color: #64748b; font-weight: 600; text-transform: uppercase; margin-top: 2px; }

.test-features { margin-bottom: 16px; flex-shrink: 0; }
.feature-item { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 0.84rem; margin-bottom: 6px; }
.feature-item i { color: #10b981; font-size: 0.92rem; }

.test-price {
    font-size: 1.85rem;
    font-weight: 850;
    color: #4f46e5;
    margin-bottom: 16px;
    text-align: center;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}
.test-price.free { color: #059669; }
.test-price small { font-size: 1rem; color: #94a3b8; text-decoration: line-through; margin-left: 10px; font-weight: 500; }

.test-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.btn-enroll {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: #ffffff !important;
    border: none;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.94rem;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
    color: #ffffff !important;
}
.btn-view-details {
    background: #f8fafc !important;
    color: #4f46e5 !important;
    border: 1.5px solid #e0e7ff !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    width: 100%;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none !important;
    display: block;
}
.btn-view-details:hover {
    background: #ede9fe !important;
    border-color: #c7d2fe !important;
    color: #6d28d9 !important;
    transform: translateY(-2px);
}
.btn-contact-group { display: flex; gap: 8px; margin-top: 4px; }
.btn-call {
    background: #10b981 !important;
    color: white !important;
    border: none !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    transition: all 0.25s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.btn-call:hover { background: #059669 !important; transform: translateY(-2px); color: white !important; }
.btn-call i { color: white !important; font-size: 0.85rem; }

.btn-whatsapp {
    background: #25d366 !important;
    color: white !important;
    border: none !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    transition: all 0.25s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover { background: #20ba5a !important; transform: translateY(-2px); color: white !important; }
.btn-whatsapp i { color: white !important; font-size: 0.9rem; }

/* Test Detail Modal */
.test-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; align-items: center; justify-content: center; overflow-y: auto; padding: 20px; }
.test-modal.show { display: flex; }
.modal-content { background: white; border-radius: 20px; max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 30px; position: relative; border-radius: 20px 20px 0 0; }
.modal-close { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.2); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: all 0.3s ease; }
.modal-close:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.1); }
.modal-body { padding: 30px; }
.modal-section { margin-bottom: 30px; }
.modal-section-title { font-size: 1.25rem; font-weight: 700; color: #1e293b; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.modal-section-title i { color: #667eea; }

/* Footer Styles */
.footer-section { margin-top: 80px; background-color: #1e3a8a; color: #ffffff; }
.footer-heading { color: #ffffff !important; font-weight: 600; border-bottom: 2px solid rgba(255, 255, 255, 0.3); padding-bottom: 10px; margin-bottom: 1.5rem; }
.footer-contact p, .footer-contact a { color: #e5e7eb !important; text-decoration: none; transition: color 0.3s ease; }
.footer-contact a:hover { color: #ffffff !important; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links li a { color: #e5e7eb !important; text-decoration: none; transition: all 0.3s ease; display: inline-block; }
.footer-links li a:hover { color: #ffffff !important; padding-left: 5px; }
.newsletter-form .input-group .form-control { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: #ffffff; }
.newsletter-form .input-group .form-control::placeholder { color: rgba(255, 255, 255, 0.6); }
.newsletter-form .input-group .form-control:focus { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.5); color: #ffffff; box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1); }
.newsletter-form .btn-primary { background: #ffffff; color: #1e3a8a; border: none; font-weight: 600; }
.newsletter-form .btn-primary:hover { background: #f0f0f0; transform: scale(1.05); }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icon { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: white; text-decoration: none; transition: all 0.3s ease; font-size: 1.1rem; }
.social-icon:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.social-icon.facebook { background: #3b5998; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.youtube { background: #ff0000; }
.social-icon.twitter { background: #1da1f2; }
.social-icon.telegram { background: #0088cc; }
.footer-copyright { background: #0f172a; color: #e5e7eb; }
.footer-copyright p { color: #e5e7eb !important; margin: 0; }

/* Responsive */
@media (max-width: 768px) {
    .filter-group { flex-direction: column; align-items: flex-start; }
    .filter-label { min-width: auto; }
    .filter-buttons { width: 100%; }
    .test-stats { grid-template-columns: repeat(2, 1fr); }
    .page-header { padding: 60px 0 40px 0; }
    .page-header h1 { font-size: 1.8rem; }
}
