/* Test Page Specific Styles */

/* Test Hero Section */
.test-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 150px 0 50px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.test-hero .hero-content {
    text-align: center;
    width: 100%;
}

.test-hero .hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.test-hero .hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Tests Section */
.tests {
    padding: 100px 0;
    background-color: var(--primary);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.test-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-orange));
    transition: height 0.3s ease;
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.test-card:hover::before {
    height: 100%;
}

.test-icon {
    font-size: 3.5rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.test-card:hover .test-icon {
    transform: scale(1.1);
    color: var(--accent-orange);
}

.test-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.test-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.test-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.test-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.test-info i {
    color: var(--accent-blue);
}

.btn-test {
    background: linear-gradient(45deg, var(--accent-blue), #3b82f6);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.btn-test:hover {
    background: linear-gradient(45deg, #1d4ed8, var(--accent-blue));
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

/* Test Features Section */
.test-features {
    padding: 100px 0;
    background-color: var(--secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    color: var(--accent-orange);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--accent-orange);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design for Test Page */
@media (max-width: 768px) {
    .test-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .test-card {
        padding: 20px;
    }
    
    .test-details {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .test-grid {
        grid-template-columns: 1fr;
    }
    
    .test-hero {
        padding: 120px 0 30px;
        min-height: 50vh;
    }
    
    .test-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .test-hero .hero-content p {
        font-size: 1rem;
    }
}

/* Animation for test cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.test-card {
    animation: fadeInUp 0.6s ease forwards;
}

.test-card:nth-child(1) { animation-delay: 0.1s; }
.test-card:nth-child(2) { animation-delay: 0.2s; }
.test-card:nth-child(3) { animation-delay: 0.3s; }
.test-card:nth-child(4) { animation-delay: 0.4s; }
.test-card:nth-child(5) { animation-delay: 0.5s; }
.test-card:nth-child(6) { animation-delay: 0.6s; }