/* ===== Test Page Styles ===== */

/* Test Hero Section */
.test-hero {
    position: relative;
    min-height: 500px;
    height: 60vh;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding);
    overflow: hidden;
}

.test-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.test-hero:hover .test-hero__bg-img {
    transform: scale(1.02);
}

.test-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(45, 80, 22, 0.6) 0%, 
        rgba(74, 124, 42, 0.5) 50%, 
        rgba(124, 179, 66, 0.45) 100%);
    z-index: 1;
}

.test-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.test-hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.test-hero__subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.test-hero__description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Test Warning */
.test-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    padding: 1.5rem 0;
}

.test-warning__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.test-warning__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.test-warning__text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.test-warning__text strong {
    color: var(--primary-green);
    font-weight: 700;
}

/* Test Section */
.test-section {
    padding: 4rem 0;
    background: var(--bg-color);
    min-height: 70vh;
}

/* Progress Bar */
.test-progress {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.test-progress__bar {
    width: 100%;
    height: 8px;
    background: rgba(124, 179, 66, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.test-progress__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 5%;
}

.test-progress__text {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Test Container */
.test-container {
    max-width: 800px;
    margin: 0 auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Question Card */
.test-question-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative;
    z-index: 1;
    min-height: 300px;
}

.test-question-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-color);
}

.test-question-card__category {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-question-card__number {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.test-question-card__body {
    margin-bottom: 2rem;
}

.test-question-card__question {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: var(--font-heading);
}

.test-question-card__options {
    display: grid;
    gap: 1rem;
}

.test-option {
    background: var(--bg-color);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    font-weight: 500;
}

.test-option:hover {
    background: rgba(124, 179, 66, 0.1);
    border-color: var(--bright-green);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.test-option.selected {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--accent-green);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.test-question-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--bg-color);
}

/* Results Screen */
.test-results {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.test-results__content {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 3rem 2rem;
}

.test-results__badge {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
}

.test-results__badge--a1 {
    background: linear-gradient(135deg, #aed581 0%, #7cb342 100%);
}

.test-results__badge--a2 {
    background: linear-gradient(135deg, #7cb342 0%, #4a7c2a 100%);
}

.test-results__badge--b1 {
    background: linear-gradient(135deg, #4a7c2a 0%, #2d5016 100%);
}

.test-results__badge--b2 {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2a 50%, #7cb342 100%);
}

.test-results__badge--c1 {
    background: linear-gradient(135deg, #7cb342 0%, #d4af37 100%);
}

.test-results__badge--c2 {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
}

.test-results__level {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
}

.test-results__level-name {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.test-results__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.test-results__title span {
    color: var(--primary-green);
}

.test-results__description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.test-results__score {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    display: inline-block;
}

.test-results__score-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-right: 0.5rem;
}

.test-results__score-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    font-family: var(--font-heading);
}

.test-results__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-width: 200px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn--secondary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn--secondary:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Navigation Test Link */
.nav__test {
    background: linear-gradient(135deg, var(--lime-green) 0%, var(--bright-green) 100%);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.2;
    display: inline-block;
    opacity: 0.5;
    border: none;
    cursor: pointer;
}

.nav__test:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.4);
    opacity: 0.75;
}

.nav__test.active {
    background: var(--gradient-primary);
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.3);
    opacity: 0.65;
}

/* Footer Improvements for Test Page */
.footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer__logo .logo-img {
    height: 50px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer__logo:hover .logo-img {
    transform: scale(1.05);
}

.footer__text {
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.footer__contact .footer__text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.footer__contact .footer__text:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer__bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.test-question-card {
    animation: fadeInUp 0.5s ease-out;
}

.test-option {
    animation: fadeInUp 0.3s ease-out;
}

.test-option:nth-child(1) { animation-delay: 0.1s; }
.test-option:nth-child(2) { animation-delay: 0.2s; }
.test-option:nth-child(3) { animation-delay: 0.3s; }
.test-option:nth-child(4) { animation-delay: 0.4s; }

.test-results__badge {
    animation: scaleIn 0.8s ease-out;
}
