:root {
    --primary-color: #4368E8;  /* Bright blue */
    --primary-light: #E8F0FE;  /* Light blue background */
    --secondary-color: #00C1D4; /* Teal accent */
    --accent-color: #FF6B6B;   /* Coral accent */
    --success-color: #34D399;  /* Mint green */
    --dark-color: #1E293B;     /* Dark slate */
    --light-color: #F8FAFC;    /* Lightest blue-gray */
    --text-color: #1E293B;     /* Dark slate for text */
    --text-muted: #64748B;     /* Muted slate */
    --gradient-1: linear-gradient(135deg, #4368E8 0%, #00C1D4 100%);
    --gradient-2: linear-gradient(135deg, #00C1D4 0%, #FF6B6B 100%);
    --gradient-hero: linear-gradient(135deg, #E8F0FE 0%, #F0F9FF 100%);
    --gradient-card: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 999999;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    color: var(--text-color) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    background-size: 200% auto;
    box-shadow: 0 4px 20px rgba(67, 104, 232, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 104, 232, 0.4);
    background-position: right center;
}

.btn-primary:hover:before {
    opacity: 1;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--gradient-2);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    background-size: 200% auto;
    box-shadow: 0 4px 20px rgba(188, 199, 241, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 245, 247, 0.3);
    background-position: right center;
}

.btn-secondary:hover:before {
    opacity: 1;
}

.btn-outline-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 245, 247, 0.3);
}

.btn-success {
    background: var(--gradient-2);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    background-size: 200% auto;
    box-shadow: 0 4px 20px rgba(46, 235, 125, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-success:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(93, 243, 156, 0.3);
    background-position: right center;
}

.btn-success:hover:before {
    opacity: 1;
}

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 243, 156, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 150px 0 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgdmlld0JveD0iMCAwIDQwIDQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBwYXR0ZXJuVHJhbnNmb3JtPSJyb3RhdGUoNDUpIHNjYWxlKDAuNSkiPjxyZWN0IGlkPSJwYXR0ZXJuLWJnIiB3aWR0aD0iNDAwJSIgaGVpZ2h0PSI0MDAlIiBmaWxsPSJyZ2JhKDEwOCwgOTksIDI1NCwgMC4wNSkiPjwvcmVjdD4gPGNpcmNsZSBmaWxsPSJyZ2JhKDEwOCwgOTksIDI1NCwgMC4xKSIgY3g9IjIwIiBjeT0iMjAiIHI9IjEiPjwvY2lyY2xlPiA8Y2lyY2xlIGZpbGw9InJnYmEoMTA4LCA5OSwgMjU0LCAwLjEpIiBjeD0iNDAiIGN5PSI0MCIgcj0iMSI+PC9jaXJjbGU+IDxjaXJjbGUgZmlsbD0icmdiYSgxMDgsIDk5LCAyNTQsIDAuMSkiIGN4PSIwIiBjeT0iNDAiIHI9IjEiPjwvY2lyY2xlPiA8Y2lyY2xlIGZpbGw9InJnYmEoMTA4LCA5OSwgMjU0LCAwLjEpIiBjeD0iNDAiIGN5PSIwIiByPSIxIj48L2NpcmNsZT4gPGNpcmNsZSBmaWxsPSJyZ2JhKDEwOCwgOTksIDI1NCwgMC4xKSIgY3g9IjAiIGN5PSIwIiByPSIxIj48L2NpcmNsZT4gPC9wYXR0ZXJuPiA8L2RlZnM+IDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiPjwvcmVjdD48L3N2Zz4=');
    opacity: 0.5;
    z-index: 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: translateY(-10px);
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(67, 104, 232, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(67, 104, 232, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 36px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(67, 104, 232, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover .feature-icon {
    transform: translateY(-5px) scale(1.05);
    color: white;
    box-shadow: 0 15px 35px rgba(67, 104, 232, 0.2);
}

.feature-card:hover .feature-icon:before {
    opacity: 1;
}

.feature-card:hover .feature-icon i {
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
}

/* How to make the most Section */
.how-to-make-the-most {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Testimonials */
.testimonial-section {
    padding: 100px 0;
}

/* Testimonials */
.what-you-can-do-section {
    padding: 100px 0;
}

.testimonial-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(67, 104, 232, 0.08);
    margin: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.testimonial-card:before {
    content: '';
    font-size: 5rem;
    color: var(--primary-light);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    z-index: 0;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h5 {
    margin: 0;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 80px 0 20px;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #b3b3b3;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-image {
        margin-top: 50px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

/* Multi-level dropdown styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-submenu > a:after {
    display: block;
    content: "\f285";
    font-family: "bootstrap-icons";
    float: right;
    margin-left: 10px;
    font-size: 0.8em;
    line-height: 1.5;
}

.dropdown-menu {
    min-width: 15rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu .dropdown-menu {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--text-color);
    font-weight: 400;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding-left: 1.75rem;
}

.dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.25rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }
}

/* Page Header */
.page-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3Qgd2lkdGg9IjUwJSIgaGVpZ2h0PSI1MCUiIGZpbGw9IiNlZWYiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiIG9wYWNpdHk9IjAuMSIvPjwvc3ZnPg==');
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    margin-top: 100px;
    margin-bottom: 40px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Search and Filter */
.search-filter {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    padding-left: 45px;
    border-radius: 8px;
    border: 1px solid #e1e5ee;
    height: 50px;
    width: 100%;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 180px;
}

/* Test Cards */
.test-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--dark-color);
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.test-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.test-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.test-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.test-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.test-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.test-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.test-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.test-meta div {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.test-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.btn-start {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s;
    text-align: center;
    display: block;
}

.btn-start:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    color: white;
}

/* Pagination */
.pagination {
    justify-content: center;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #e9ecef;
    margin: 0 5px;
    border-radius: 8px !important;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.test-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding-top: 150px;
    padding-bottom: 50px;
    margin-bottom: 40px;
}

.test-details-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.test-info-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.test-info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.test-info-content h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
}

.test-info-content p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.instructions-list {
    padding-left: 20px;
}

.instructions-list li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.btn-start-test {
    background: var(--success-color);
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    transition: all 0.3s;
    width: 100%;
    margin-top: 20px;
}

.btn-start-test:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.prerequisite-card {
    background: #fff8e6;
    border-left: 4px solid var(--warning-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.test-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.test-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Question Panel */
.question-panel {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.question-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.question-number {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
}

.question-image {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Options */
.options-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.option-item {
    margin-bottom: 15px;
    position: relative;
}

.option-input {
    position: absolute;
    opacity: 0;
}

.option-label {
    display: block;
    padding: 15px 20px 15px 55px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.option-label:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.option-input:checked + .option-label {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.option-input:checked + .option-label::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Navigation Panel */
.navigation-panel {
    width: 300px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.question-nav-btn {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s;
    position: relative;
}

.question-nav-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.question-nav-btn.answered {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.question-nav-btn.unanswered {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.question-nav-btn.flagged {
    position: relative;
    overflow: hidden;
}

.question-nav-btn.flagged::after {
    content: '🚩';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
}

.question-nav-btn.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.test-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}



@media (max-width: 992px) {
    .test-wrapper {
        flex-direction: column;
    }
    
    .navigation-panel {
        width: 100%;
        order: -1;
        margin-bottom: 30px;
    }
    
    .question-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

@media (max-width: 768px) {
    .question-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .test-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .question-panel {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .question-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .flag-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

/* Results Container */
.results-container {
    max-width: 900px;
    margin: 50px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 40px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.results-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Score Display */
.score-display {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: white;
    margin: 0 auto 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 10px solid;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.score-percentage {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.score-message {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 0;
}

.score-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Results Details */
.results-details {
    margin-top: 40px;
}

.results-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    color: var(--primary-color);
}

.result-item {
    background: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.result-item.correct {
    border-left-color: var(--success-color);
}

.result-item.incorrect {
    border-left-color: var(--danger-color);
}

.question-text {
    font-weight: 600;
    margin-bottom: 10px;
}

.answer-feedback {
    display: flex;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.answer-feedback div {
    margin-right: 20px;
}

.answer-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.answer-text {
    font-weight: 500;
}

.correct-answer .answer-text {
    color: var(--success-color);
}

.user-answer.incorrect .answer-text {
    color: var(--danger-color);
}

.explanation {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
    border-right: 3px solid var(--primary-color);
}

.explanation strong {
    color: var(--primary-color);
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-container {
    max-width: 1000px;
    width: 100%;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.login-illustration {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.login-illustration h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

.login-illustration p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.login-illustration img {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
}

.login-form {
    flex: 1;
    min-width: 300px;
    padding: 0px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form h2 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.login-form p {
    color: #6c757d;
    margin-bottom: 30px;
}

.form-control {
    height: 50px;
    border-radius: 8px;
    padding: 0 15px;
    border: 1px solid #e1e5ee;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #495057;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    height: 50px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #6c757d;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.divider:not(:empty)::before {
    margin-right: 1em;
}

.divider:not(:empty)::after {
    margin-left: 1em;
}

table.table_border, .table_border td, .table_border th {
  border: 1px solid;
}

.table_border td, .display_table th {
  padding: 5px;
}

table.table_border {
  width: 100%;
  border-collapse: collapse;
}

.error-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.error-container {
    max-width: 600px;
}

.error-code {
    font-size: 12rem;
    font-weight: 900;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

.error-message {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.article-card { 
    border: none; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}
.sidebar-box { 
    background: #fff; 
    border-radius: 10px; 
    padding: 20px; 
    margin-bottom: 20px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
}
.table thead { 
    background-color: #e9ecef; 
}
.sticky-top { 
    top: 20px; 
}
h2 { 
    border-left: 5px solid #007bff; 
    padding-left: 15px; 
    margin-top: 30px; 
    font-weight: 700; 
}
.badge-custom { 
    background-color: #e7f1ff; 
    color: #007bff; 
    font-weight: 600; 
}