/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h1 a {
    color: #2c5282;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2c5282;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.trust-indicators {
    margin-top: 3rem;
}

.trust-item {
    background-color: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background-color: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Practice Tests Section */
.practice-tests {
    padding: 4rem 0;
    background-color: #fff;
}

.practice-tests h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c5282;
}

.practice-tests > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.test-card {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.test-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c5282;
}

.test-details {
    margin-bottom: 1rem;
}

.test-details p {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0;
}

.test-description {
    margin: 1rem 0;
    color: #4a5568;
    line-height: 1.5;
}

.btn-primary {
    display: inline-block;
    background-color: #2c5282;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2a4365;
}

/* GED Info Section */
.ged-info {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.ged-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #2c5282;
}

.ged-info h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #2c5282;
}

.ged-info p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

.ged-info ul {
    margin: 1rem 0 1rem 2rem;
}

.ged-info li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Quiz Styles */
.quiz-container {
    max-width: 900px;
    margin: 2rem auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.quiz-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quiz-header h2 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 1rem;
}

.quiz-progress {
    background-color: rgba(255,255,255,0.3);
    height: 8px;
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar {
    background-color: #fff;
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.question-container {
    padding: 2rem;
}

.question {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2c5282;
    line-height: 1.5;
}

.options {
    margin: 2rem 0;
}

.option-item {
    margin: 1rem 0;
}

.option-label {
    display: flex;
    align-items: flex-start;
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.option-label:hover {
    border-color: #667eea;
    background-color: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.option-label.selected {
    border-color: #667eea;
    background-color: #f0f4ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.option-label input[type="radio"] {
    margin-right: 1rem;
    margin-top: 0.2rem;
    transform: scale(1.2);
}

.option-text {
    font-size: 1.1rem;
    line-height: 1.4;
    flex: 1;
}

.quiz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.question-counter {
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #cbd5e0;
    transform: translateY(-1px);
}

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

.btn-primary {
    background-color: #667eea;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Quiz Results Styles */
.quiz-results {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    margin: 0;
}

.quiz-results h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #2c5282;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.3);
}

.score-percentage {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-details {
    text-align: left;
    color: #2c5282;
}

.score-details p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.score-message {
    margin: 2rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.score-excellent { color: #38a169; }
.score-good { color: #d69e2e; }
.score-fair { color: #ed8936; }
.score-needs-work { color: #e53e3e; }

.quiz-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.quiz-actions .btn-primary,
.quiz-actions .btn-secondary {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

/* Answer Review Styles */
.question-review {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #fff;
}

.question-review .question {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #2c5282;
}

.answer-options {
    margin: 1rem 0;
}

.answer-options div {
    padding: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.review-correct {
    color: #38a169;
    font-weight: bold;
}

.review-incorrect {
    color: #e53e3e;
    font-weight: bold;
}

.review-explanation {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.review-explanation.correct {
    background-color: #f0fff4;
    border-left-color: #38a169;
}

.review-explanation.incorrect {
    background-color: #fef5e7;
    border-left-color: #ed8936;
}

/* Ad Styles */
.ad-banner, .ad-section, .ad-sidebar {
    margin: 2rem 0;
    text-align: center;
}

.ad-sidebar {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: #cbd5e0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
}

/* Page Styles */
.page-header {
    background-color: #2c5282;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-content {
    padding: 3rem 0;
    background-color: #fff;
}

.page-content h2 {
    color: #2c5282;
    margin: 2rem 0 1rem 0;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c5282;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .test-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ad-sidebar {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .quiz-container {
        margin: 1rem;
        padding: 1rem;
    }
}

/* Enhanced Quiz Styles */
.quiz-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quiz-info h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.5rem;
}

.quiz-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.timer {
    font-weight: bold;
    color: #e74c3c;
    background: #fff2f2;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    border: 1px solid #fdd;
}

.question-counter {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.3s ease;
}

.question-section {
    margin: 2rem 0;
}

.question-content h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 8px 8px 0;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option:hover {
    border-color: #3498db;
    background: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.option.selected {
    border-color: #27ae60;
    background: #e8f5e8;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
    border-width: 3px;
}

.option-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #e9ecef;
    color: #666;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option.selected .option-indicator {
    background: #27ae60;
    color: white;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #27ae60;
}

.option:hover .option-indicator {
    background: #3498db;
    color: white;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
    color: #2c3e50;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.nav-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.nav-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.next-btn {
    background: #27ae60;
}

.next-btn:hover:not(:disabled) {
    background: #229954;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.results-container {
    text-align: center;
    padding: 2rem;
}

.results-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.score-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.score-display.excellent {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
}

.score-display.good {
    background: linear-gradient(135deg, #2196f3 0%, #21cbf3 100%);
}

.score-display.fair {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
}

.score-display.needs-improvement {
    background: linear-gradient(135deg, #f44336 0%, #ff5722 100%);
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.score-percentage {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.performance-level {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.9;
}

.performance-message {
    font-size: 1.1rem;
    color: #666;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.review-btn {
    background: #9b59b6;
}

.review-btn:hover {
    background: #8e44ad;
}

.retry-btn {
    background: #e67e22;
}

.retry-btn:hover {
    background: #d35400;
}

.home-btn {
    background: #95a5a6;
}

.home-btn:hover {
    background: #7f8c8d;
}

.review-container {
    max-height: 600px;
    overflow-y: auto;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.review-header h2 {
    color: #2c3e50;
    margin: 0;
}

.review-questions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-question {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.review-question.correct {
    border-color: #27ae60;
    background: #f8fff8;
}

.review-question.incorrect {
    border-color: #e74c3c;
    background: #fff8f8;
}

.review-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.question-number {
    font-weight: bold;
    color: #2c3e50;
}

.result-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.result-indicator.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-indicator.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.review-question .question-text {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 500;
}

.answer-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.answer-row {
    font-size: 0.95rem;
    color: #666;
}

.answer-row.correct-answer {
    color: #27ae60;
    font-weight: 500;
}

.explanation {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Mobile Quiz Styles */
@media (max-width: 768px) {
    .quiz-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quiz-stats {
        gap: 1rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        text-align: center;
    }
    
    .review-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .score-percentage {
        font-size: 1.75rem;
    }
}

/* Instant Feedback Styles */
.instant-feedback {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

.feedback-correct {
    background: #f0fff4;
    border-left-color: #27ae60;
    border: 1px solid #c3e6cb;
}

.feedback-incorrect {
    background: #fff5f5;
    border-left-color: #e74c3c;
    border: 1px solid #f5c6cb;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feedback-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.feedback-message {
    font-size: 1.25rem;
    font-weight: 600;
}

.text-success {
    color: #27ae60;
}

.text-danger {
    color: #e74c3c;
}

.feedback-explanation {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Correct/Incorrect Answer Styling */
.option.correct-answer {
    border-color: #27ae60;
    background: #f0fff4;
    border-width: 3px;
}

.option.incorrect-answer {
    border-color: #e74c3c;
    background: #fff5f5;
    border-width: 3px;
}

.option.correct-answer:hover {
    border-color: #27ae60;
    background: #f0fff4;
}

.option.incorrect-answer:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
