/* LifeQuiz Pro - Main Stylesheet */
/* Minimalist design with clean user interactions */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

ul,
ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    color: #cacaca;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header and Navigation */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px 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 1rem;
}

.nav-logo h1 {
    font-size: 1.8rem;
    color: #3498db;
    margin: 0;
}

.nav-logo a {
    color: inherit;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: #555;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 150px;
}

#view-results-btn {
    background-color: #9b59b6;
    border-color: #9b59b6;
}

#view-results-btn:hover {
    background-color: #8e44ad;
    border-color: #8e44ad;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
}

.stat-label {
    font-size: 1rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

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

/* About Section */
.about {
    padding: 5rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    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,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%;
        height: 100vh;
        flex-direction: column;
        background-color: white;
        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-item {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Quiz Styles */
.quiz-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.quiz-section {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.quiz-section.active {
    display: block;
}

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

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

.quiz-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Level Selection */
.level-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.level-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.level-card:hover {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.15);
}

.level-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

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

.level-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.level-details p:first-child {
    font-weight: 600;
    color: #3498db;
    font-size: 1.1rem;
}

.level-btn {
    margin-top: 1.5rem;
    width: 100%;
}

/* Quiz Progress */
.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    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: #7f8c8d;
    font-weight: 500;
}

/* Question Container */
.question-container {
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

.option-item {
    background: #f8f9fa;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    border-color: #3498db;
    background-color: #ebf3fd;
}

.option-item.selected {
    border-color: #3498db;
    background-color: #3498db;
    color: white;
}

.option-item input[type="radio"] {
    margin-right: 1rem;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.question-actions button {
    flex: 1;
    max-width: 150px;
}

/* Loading Screen */
.loading-container {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

.loading-container p {
    color: #7f8c8d;
}

/* Results Styles */
.results-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.results-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.score-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.score-card {
    text-align: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#3498db 0deg, #ecf0f1 0deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    z-index: 1;
}

.score-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    z-index: 1;
}

.score-details {
    display: flex;
    gap: 2rem;
}

.score-item {
    text-align: center;
}

.score-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
}

.score-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rating Section */
.rating-section {
    margin-bottom: 3rem;
}

.rating-badge {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.rating-icon {
    font-size: 4rem;
}

.rating-title {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.rating-description {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Analysis Section */
.analysis-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.analysis-section h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

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

.analysis-item h4 {
    color: #3498db;
    margin-bottom: 1rem;
}

.analysis-item ul {
    list-style-type: none;
    padding: 0;
}

.analysis-item li {
    background: #f8f9fa;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

/* Recommendations Section */
.recommendations-section {
    margin-bottom: 3rem;
}

.recommendations-section h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

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

.recommendation-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-5px);
}

.rec-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.recommendation-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

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

/* Share Section */
.share-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Question Review Section */
.question-review-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.question-review-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.question-review-section>p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.review-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.questions-review-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 1rem;
}

.question-review-item {
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
}

.question-review-item:last-child {
    margin-bottom: 0;
}

.question-review-item.correct {
    border-left: 4px solid #27ae60;
    background: #f0f9f4;
}

.question-review-item.incorrect {
    border-left: 4px solid #e74c3c;
    background: #fdf2f2;
}

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

.question-number {
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.question-status {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-status.correct {
    background: #27ae60;
    color: white;
}

.question-status.incorrect {
    background: #e74c3c;
    color: white;
}

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

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

.answer-option {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ecf0f1;
    background: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.answer-option.user-answer {
    background: #ebf3fd;
    border-color: #3498db;
    font-weight: 500;
}

.answer-option.correct-answer {
    background: #f0f9f4;
    border-color: #27ae60;
    font-weight: 500;
}

.answer-option.user-incorrect {
    background: #fdf2f2;
    border-color: #e74c3c;
    font-weight: 500;
}

.answer-label {
    font-weight: 600;
    color: #3498db;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 0.5rem;
}

.answer-label.correct {
    color: #27ae60;
}

.answer-label.incorrect {
    color: #e74c3c;
}

.question-explanation {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1rem;
    border-radius: 0 6px 6px 0;
    margin-top: 1rem;
}

.question-explanation h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-explanation p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tutorial Styles */
.tutorial-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.tutorial-header {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tutorial-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tutorial-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 1rem;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Levels Explanation */
.levels-explanation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.level-explanation {
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 1.5rem;
}

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

.level-header .level-icon {
    font-size: 2rem;
}

.level-header h3 {
    color: #2c3e50;
    margin: 0;
}

.level-details p {
    margin-bottom: 1rem;
    color: #666;
}

.level-details ul {
    margin-bottom: 1rem;
}

.level-details em {
    color: #7f8c8d;
    font-style: italic;
}

/* Rating System */
.rating-system {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rating-tier {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.rating-badge.novice {
    border-left: 4px solid #e74c3c;
}

.rating-badge.apprentice {
    border-left: 4px solid #f39c12;
}

.rating-badge.expert {
    border-left: 4px solid #27ae60;
}

.rating-badge.master {
    border-left: 4px solid #9b59b6;
}

.rating-tier .rating-badge {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.rating-info h4 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
}

.rating-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

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

/* FAQ Container */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Tutorial CTA */
.tutorial-cta {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

.tutorial-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.tutorial-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Blog Styles */
.blog-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.featured-label {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-content h2 {
    color: #2c3e50;
    margin: 1rem 0;
    font-size: 2rem;
}

.featured-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Blog Categories */
.blog-categories {
    margin-bottom: 3rem;
}

.blog-categories h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

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

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.category-card p {
    color: #666;
    margin-bottom: 1rem;
}

.article-count {
    color: #3498db;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Recent Articles */
.recent-articles {
    margin-bottom: 3rem;
}

.recent-articles h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.article-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-card .article-meta {
    margin-bottom: 1.5rem;
}

.read-more {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

/* Load More Section */
.load-more-section {
    text-align: center;
}

#load-more-btn {
    padding: 1rem 2rem;
}

/* Legal Pages Styles */
.legal-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.legal-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.legal-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

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

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    color: #3498db;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-bottom: 1.5rem;
}

.legal-section li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* About Page Specific */
.about-section {
    margin-bottom: 3rem;
}

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

/* Contact Page Styles */
.contact-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-message {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Info */
.contact-info-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

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

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

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

.contact-details p {
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: #3498db;
    font-weight: 500;
}

/* Contact FAQ */
.contact-faq-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-faq-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-faq-section>p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

/* Response Info */
.response-info {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.response-info h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.response-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.timeline-icon {
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Additional Responsive Design */
@media (max-width: 768px) {

    /* Quiz Styles */
    .level-cards {
        grid-template-columns: 1fr;
    }

    .score-overview {
        flex-direction: column;
        gap: 2rem;
    }

    .score-details {
        flex-direction: column;
        gap: 1rem;
    }

    .rating-badge {
        flex-direction: column;
        text-align: center;
    }

    .analysis-content {
        grid-template-columns: 1fr;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Tutorial Styles */
    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .rating-tier {
        flex-direction: column;
        text-align: center;
    }

    .rating-tier .rating-badge {
        min-width: auto;
        width: 100%;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    /* Blog Styles */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Contact Styles */
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    /* Question Review Responsive */
    .review-controls {
        flex-direction: column;
        align-items: center;
    }

    .review-controls .btn {
        width: 100%;
        max-width: 250px;
    }

    .questions-review-container {
        max-height: 400px;
    }

    .question-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .answer-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .answer-label {
        margin-right: 0;
    }

    /* Legal Pages */
    .legal-content {
        padding: 2rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {

    /* General */
    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Quiz */
    .quiz-section {
        padding: 1rem;
    }

    .level-card {
        padding: 1.5rem;
    }

    .question-actions {
        flex-direction: column;
    }

    .question-actions button {
        max-width: none;
    }

    /* Results */
    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-circle::before {
        width: 90px;
        height: 90px;
    }

    .score-value {
        font-size: 1.5rem;
    }

    /* Tutorial */
    .tutorial-section {
        padding: 1.5rem;
    }

    /* Blog */
    .featured-article {
        padding: 1.5rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .article-card {
        padding: 1.5rem;
    }

    /* Contact */
    .contact-form {
        padding: 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Legal */
    .legal-content {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .btn,
    .hamburger {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .quiz-section,
    .legal-content,
    .tutorial-section {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border: 2px solid #000;
    }

    .btn-secondary {
        background-color: #666;
        border: 2px solid #666;
    }

    .feature-card,
    .quiz-section,
    .legal-content {
        border: 2px solid #000;
    }
}

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

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -100%;
    left: 6px;
    background: #3498db;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

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

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse animation for important elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Color utilities */
.text-primary {
    color: #3498db;
}

.text-secondary {
    color: #95a5a6;
}

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

.text-warning {
    color: #f39c12;
}

.text-danger {
    color: #e74c3c;
}

.text-muted {
    color: #7f8c8d;
}

.bg-primary {
    background-color: #3498db;
}

.bg-secondary {
    background-color: #95a5a6;
}

.bg-success {
    background-color: #27ae60;
}

.bg-warning {
    background-color: #f39c12;
}

.bg-danger {
    background-color: #e74c3c;
}

.bg-light {
    background-color: #f8f9fa;
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Selection styling */
::selection {
    background-color: #3498db;
    color: white;
}

::-moz-selection {
    background-color: #3498db;
    color: white;
}

/* Enhanced focus indicators */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
    transform: translateX(0);
}

.notification-info {
    background-color: #3498db;
}

.notification-success {
    background-color: #27ae60;
}

.notification-warning {
    background-color: #f39c12;
}

.notification-error {
    background-color: #e74c3c;
}

/* Article content styling */
.article-content {
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #34495e;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

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

.article-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.article-cta {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.article-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Enhanced table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Code styling */
code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: none;
    padding: 0;
    color: #2c3e50;
}