/* Testlerpage specific styles */

.tests-section {
    background-color: #f9f9f9;
}

.intro-text {
    text-align: center;
    font-size: 16px;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.tests-grid {
    display: block; /* display categories vertically */
    margin-top: 40px;
}

.tests-category {
    margin-bottom: 60px; /* spacing between categories */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    align-items: start;
}

.tests-category h3 {
    grid-column: 1 / -1; /* make heading span full width */
    font-size: 24px;
    color: var(--primary-pink);
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-pink);
    font-weight: bold;
}

/* Grid layout for test items within each category */

.test-item {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid var(--primary-pink);
}

.test-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 47, 136, 0.15);
}

/* ==================== Test Media (auto-inserted images) ==================== */
.test-media {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.test-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .test-media {
        height: 150px;
    }
    .test-media img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .test-media {
        height: 180px;
    }
    .test-media img {
        height: 180px;
    }
}

.test-header {
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--accent-purple) 100%);
    color: var(--text-light);
    padding: 25px;
    border-bottom: 3px solid var(--primary-pink);
}

.test-header h3 {
    font-size: 22px;
    margin: 0 0 8px 0;
    color: var(--text-light);
}

.test-acronym {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.test-description {
    padding: 25px;
}

.test-description p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.test-description h4 {
    font-size: 13px;
    color: var(--primary-pink);
    margin: 15px 0 10px 0;
    font-weight: bold;
    text-transform: uppercase;
}

.test-description ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.test-description li {
    font-size: 13px;
    color: #666;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.test-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-pink);
    font-weight: bold;
}

/* Contact Section on Testlerpage */
#contact {
    background-color: var(--bg-light);
}

#contact h2 {
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tests-category > div:not(h3) {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .tests-category {
        margin-bottom: 50px;
    }

    .tests-category h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .tests-category > div:not(h3) {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .test-item {
        border-left-width: 3px;
    }

    .test-header {
        padding: 20px;
    }

    .test-header h3 {
        font-size: 18px;
    }

    .test-description {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tests-grid {
        grid-template-columns: 1fr;
    }

    .test-header h3 {
        font-size: 16px;
    }

    .test-description p {
        font-size: 13px;
    }

    .test-description h4 {
        font-size: 12px;
    }

    .test-description li {
        font-size: 12px;
    }
}
