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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header and Navigation */
.navbar {
    background-color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    margin-top: 2rem;
}

/* Buttons */
.btn-primary {
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

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

/* Main Content */
.main-content {
    padding: 3rem 0;
    background-color: white;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.main-article h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.main-article h3 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.main-article h4 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.main-article p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.main-article ul, .main-article ol {
    margin: 1rem 0 1rem 2rem;
}

.main-article li {
    margin-bottom: 0.5rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid #e9ecef;
}

.feature-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    background-color: #f8f9fa;
    padding: 0;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-widget a:hover {
    color: #3498db;
}

/* Ad Container */
.ad-container {
    margin: 2rem 0;
    text-align: center;
}

.ad-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 2rem;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* FAQ Section */
.faq-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

.faq-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: #2c3e50;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #34495e;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
}

.faq-answer {
    padding: 1.5rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Quiz Styles */
.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-header h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.quiz-selection {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.quiz-selection label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.quiz-selection select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1rem;
    background-color: white;
}

.quiz-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: #666;
    font-weight: 600;
}

.question-container {
    margin-bottom: 2rem;
}

.question-header h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    line-height: 1.5;
}

.options-container {
    display: grid;
    gap: 1rem;
}

.option-button {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.option-button:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.option-button.selected {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.option-button.correct {
    background: #27ae60;
    color: white;
    border-color: #229954;
}

.option-button.incorrect {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

.feedback-container {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.feedback-result {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.feedback-result.correct {
    color: #27ae60;
}

.feedback-result.incorrect {
    color: #e74c3c;
}

.feedback-explanation {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #555;
}

/* Results Styles */
.results-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 3rem;
    text-align: center;
}

.results-container h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.results-summary {
    margin-bottom: 3rem;
}

.score-display {
    font-size: 4rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 1rem;
}

.score-details p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.results-breakdown {
    margin-bottom: 2rem;
    text-align: left;
}

.results-breakdown h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.category-result {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

/* Page Styles */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.last-updated {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

/* Contact Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-method h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-method a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.additional-resources {
    margin-top: 3rem;
}

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

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.resource-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.resource-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Privacy Policy Styles */
.privacy-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.privacy-section h3 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.privacy-section ul {
    margin: 1rem 0 1rem 2rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* About Page Styles */
.about-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-section h3 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.about-section h4 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

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

.content-area {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.content-area h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.study-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.tip-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
}

.contact-cta {
    text-align: center;
    margin-top: 2rem;
}

.contact-cta .btn-primary,
.contact-cta .btn-secondary {
    margin: 0 0.5rem;
}

.cta-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    color: #666;
}

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

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

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

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

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

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

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #2c3e50;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .content-areas {
        grid-template-columns: 1fr;
    }
    
    .study-tips {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .results-actions .btn-primary,
    .results-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-cta .btn-primary,
    .contact-cta .btn-secondary {
        display: block;
        margin: 0.5rem auto;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .quiz-content,
    .privacy-content,
    .about-content {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .ad-container,
    .hero-cta,
    .contact-cta,
    .results-actions {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .quiz-content,
    .privacy-content,
    .about-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .sidebar-widget,
    .quiz-content {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.option-button:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}
