/* Mock Tests Page Styles - Exact copy from old working version */

.top-bar { background: #1e3a8a; color: white; padding: 8px 0; font-size: 0.9rem; position: sticky; top: 0; z-index: 1001; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.contact-info { display: flex; align-items: center; gap: 25px; }
.contact-info a { color: white; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color 0.3s ease; }
.contact-info a:hover { color: #fbbf24; }
.top-bar-actions { display: flex; align-items: center; gap: 20px; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: white; font-size: 1.1rem; transition: color 0.3s ease; }
.social-links a:hover { color: #fbbf24; }
.top-bar-auth { display: flex; gap: 15px; }
.top-bar-auth a { color: white; text-decoration: none; padding: 5px 12px; border-radius: 4px; transition: all 0.3s ease; font-size: 0.85rem; }
.top-bar-auth a.login-link:hover { background: rgba(255, 255, 255, 0.1); }
.top-bar-auth a.register-link { background: #fbbf24; color: #1e3a8a; font-weight: 600; }
body { font-family: 'Inter', sans-serif; margin: 0; padding: 0; line-height: 1.6; }
.header-container { background-color: white; border-bottom: 2px solid #e5e7eb; padding: 15px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 42px; z-index: 999; }
.nav-item { position: relative; }
.header-flex { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo-brand-section { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-right: 30px; }
.main-nav { display: flex; align-items: center; gap: 5px; flex-grow: 1; justify-content: center; ; white-space: nowrap; }
.header-controls { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.search-wrapper { position: relative; width: 280px; }
.search-box { width: 100%; border: 2px solid #e5e7eb; border-radius: 8px; padding: 10px 45px 10px 15px; font-size: 14px; transition: border-color 0.3s ease; }
.search-box:focus { outline: none; border-color: #3b82f6; }
.search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; font-size: 16px; }
.cart-icon-wrapper { position: relative; cursor: pointer; padding: 10px; transition: all 0.3s ease; }
.cart-icon-wrapper:hover { background: #f8fafc; border-radius: 8px; }
.cart-icon { font-size: 1.5rem; color: #1e3a8a; }
.cart-badge { position: absolute; top: 5px; right: 5px; background: #ef4444; color: white; font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 10px; min-width: 18px; text-align: center; }
.page-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 100px 0 80px 0; position: relative; overflow: hidden; }
.breadcrumb { background: transparent; margin-bottom: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb-item.active { color: white; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }

/* Filter & Sort Section */
.filter-sort-section { background: white; padding: 25px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); margin-bottom: 30px; }
.filter-group { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.filter-label { font-weight: 600; color: #1e293b; min-width: 100px; }
.filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border: 2px solid #e5e7eb; background: white; color: #64748b; border-radius: 25px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.filter-btn:hover, .filter-btn.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-color: #667eea; }
.sort-select { padding: 10px 20px; border: 2px solid #e5e7eb; border-radius: 10px; font-weight: 500; cursor: pointer; min-width: 200px; }
.results-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 15px; background: #f8f9fa; border-radius: 10px; }
.results-count { font-weight: 600; color: #1e293b; }
.reset-filters { background: #ef4444; color: white; border: none; padding: 8px 20px; border-radius: 25px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.reset-filters:hover { background: #dc2626; }

/* Test Cards - Optimized for consistent height */
.test-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; height: 100%; min-height: 580px; border: 2px solid transparent; position: relative; display: flex; flex-direction: column; }
.test-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2); border-color: #667eea; }
.test-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px; position: relative; flex-shrink: 0; }
.test-badge { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, 0.25); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; backdrop-filter: blur(10px); }
.test-category { font-size: 0.8rem; opacity: 0.9; margin-bottom: 8px; font-weight: 500; }
.test-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.test-description { font-size: 0.85rem; opacity: 0.95; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.test-body { padding: 18px; flex-grow: 1; display: flex; flex-direction: column; }
.test-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 15px; }
.stat-item { background: #f8fafc; padding: 10px 8px; border-radius: 8px; text-align: center; }
.stat-icon { font-size: 1rem; color: #667eea; margin-bottom: 3px; }
.stat-value { font-size: 1rem; font-weight: 700; color: #1e293b; }
.stat-label { font-size: 0.7rem; color: #64748b; margin-top: 2px; }
.test-features { margin-bottom: 12px; flex-shrink: 0; }
.feature-item { display: flex; align-items: center; gap: 8px; color: #64748b; font-size: 0.8rem; margin-bottom: 6px; }
.feature-item i { color: #10b981; font-size: 0.9rem; }
.test-price { font-size: 1.8rem; font-weight: 800; color: #667eea; margin-bottom: 12px; text-align: center; flex-shrink: 0; }
.test-price.free { color: #10b981; }
.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, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 12px 16px; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; font-size: 0.9rem; width: 100%; }
.btn-enroll:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4); color: white; }
.btn-view-details { background: white !important; color: #667eea !important; border: 2px solid #667eea !important; padding: 10px 16px !important; border-radius: 8px !important; font-weight: 600 !important; font-size: 0.85rem !important; width: 100%; text-align: center; transition: all 0.3s ease; text-decoration: none !important; display: block; }
.btn-view-details:hover { background: #667eea !important; color: white !important; }
.btn-contact-group { display: flex; gap: 8px; margin-top: 5px; }
.btn-call { background: #10b981 !important; color: white !important; border: none !important; padding: 10px 12px !important; border-radius: 8px !important; font-weight: 600 !important; font-size: 0.8rem !important; transition: all 0.3s ease; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none !important; cursor: pointer; }
.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: 8px !important; font-weight: 600 !important; font-size: 0.8rem !important; transition: all 0.3s ease; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.btn-whatsapp:hover { background: #20ba5a !important; transform: translateY(-2px); color: white !important; }
.btn-whatsapp i { color: white !important; font-size: 0.9rem; }

/* Modal Design Fixes */
.modal-section { margin-bottom: 30px; padding: 20px; background: #f8fafc; border-radius: 12px; }
.modal-section-title { font-size: 1.25rem; font-weight: 700; color: #1e293b; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid #e2e8f0; }
.modal-section-title i { color: #667eea; }

/* Override Bootstrap btn-outline-primary */
.test-card .btn-outline-primary { color: #667eea !important; border-color: #667eea !important; background: white !important; }
.test-card .btn-outline-primary:hover { background: #667eea !important; color: white !important; }
.difficulty-badge { display: inline-block; padding: 4px 12px; border-radius: 15px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; }
.difficulty-badge.easy { background: #d1fae5; color: #065f46; }
.difficulty-badge.medium { background: #fed7aa; color: #92400e; }
.difficulty-badge.hard { background: #fecaca; color: #991b1b; }

/* 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; }
}
