/**
 * FinanceTest - Modern Financial Assessment Platform
 * Clean, responsive design with focus on user experience
 */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Modern Minimal Design - CSS Reset and Base Styles */
:root {
    /* Primary Colors - Clean Blue Theme */
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Background Colors */
    --background: #ffffff;
    --background-secondary: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;

    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-hover: #cbd5e1;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;

    /* Spacing & Layout */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 头部广告位 */
.de_iv_adv {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    /* background-color: #F8F8F8; */
    margin: 10px 0 0px;
}

/* 底部广告位 */
.postionFixed {
    width: 100%;
    min-height: 60px;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F8F8F8;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Modern Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Modern Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding-top: 64px;
}

/* Modern Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modern Form Elements */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    background: var(--surface);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(93, 156, 236, 0.1);
}

/* Modern List Styles */
.list-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: rgba(93, 156, 236, 0.05);
}

/* Modern Header and Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 64px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-hover);
}

.navbar {
    width: 100%;
}

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

.nav-logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

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

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

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-50);
}

.nav-link.active {
    color: var(--primary-color);
    background: var(--primary-100);
    font-weight: 600;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    z-index: 100;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #4b5563;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

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

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

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: #0400ffbb;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: rgba(255, 255, 255, 0.836);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

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

.btn-success:hover {
    background: #059669;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

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

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

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

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* About FinanceTest Section */
.about-financetest {
    padding: 5rem 0;
    background: var(--surface);
}

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

.about-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-text p:first-child {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    background: var(--primary-50);
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: var(--radius-md);
}

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

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.25rem 0;
    color: #6b7280;
}

.feature-list li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Rating System */
.rating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rating-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.rating-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.rating-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    color: #fff;
}

.rating-badge.novice {
    background: #ef4444;
}

.rating-badge.apprentice {
    background: #f59e0b;
}

.rating-badge.expert {
    background: #10b981;
}

.rating-badge.master {
    background: #8b5cf6;
}

/* Quiz Instructions */
.quiz-instructions {
    padding: 4rem 0;
    background: white;
}

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

.instruction-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.instruction-card:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.1);
}

.instruction-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.instruction-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.instruction-card p {
    color: #6b7280;
    line-height: 1.6;
}

.quiz-tips {
    background: #eff6ff;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border-left: 4px solid #2563eb;
}

.quiz-tips h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.quiz-tips ul {
    list-style: none;
    padding: 0;
}

.quiz-tips li {
    color: #4b5563;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.quiz-tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.quiz-tips strong {
    color: #1f2937;
    font-weight: 600;
}

/* Quiz Styles */
.quiz-selection {
    padding: 6rem 0 4rem;
}

.page-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

.page-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #6b7280;
    font-size: 1.125rem;
}

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

.level-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}

.level-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.level-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1.5rem;
    color: white;
    text-align: center;
}

.level-header h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.question-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.level-content {
    padding: 2rem;
}

.level-topics {
    list-style: none;
    margin: 1.5rem 0;
}

.level-topics li {
    padding: 0.5rem 0;
    color: #6b7280;
}

.level-topics li:before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Quiz Container */
.quiz-container {
    padding: 6rem 0 4rem;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.quiz-progress {
    flex: 1;
    margin-right: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.quiz-timer {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

/* Question Card */
.question-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.question-title {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

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

.option {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.option:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.option.selected {
    border-color: #2563eb;
    background: #dbeafe;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.option.selected:hover {
    border-color: #1d4ed8;
    background: #bfdbfe;
}

.option input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: #2563eb;
}

.option input[type="radio"]:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.option label {
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    color: #374151;
}

.option.selected label {
    color: #1f2937;
    font-weight: 600;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.quiz-info {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.quiz-level-info {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

/* Loading Section */
.loading-section {
    padding: 6rem 0;
    text-align: center;
}

.loading-content h2 {
    margin-bottom: 1rem;
    color: #1f2937;
}

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

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

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

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-section p {
    color: #aaaaaa;
}

.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: #fff;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: #d1d5db;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%;
        bottom: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
        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;
    }

    /* Mobile Legal section styles */
    .nav-menu .dropdown {
        position: relative;
        width: 100%;
    }

    .nav-menu .dropdown .nav-link {
        color: var(--text-muted);
        font-weight: 600;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 1rem 0 0.5rem 0;
        cursor: default;
        pointer-events: none;
    }

    .nav-menu .dropdown-menu {
        position: static;
        display: block !important;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
        margin: 0;
        padding: 0;
        min-width: auto;
        width: 100%;
    }

    .nav-menu .dropdown-menu li {
        width: 100%;
    }

    .nav-menu .dropdown-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
        color: var(--text-primary);
        text-align: center;
        width: 100%;
        border-bottom: 1px solid var(--border-light);
        transition: all 0.2s ease;
    }

    .nav-menu .dropdown-menu a:hover {
        background-color: var(--primary-light);
        color: var(--primary-color);
    }

    .nav-menu .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .quiz-header {
        flex-direction: column;
        gap: 1rem;
    }

    .quiz-progress {
        margin-right: 0;
    }

    .quiz-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .level-cards {
        grid-template-columns: 1fr;
    }

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

    .rating-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero {
        padding: 6rem 0 3rem;
    }

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

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

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* Results Page Styles */
.results-section {
    padding: 6rem 0 4rem;
}

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

.results-date {
    color: #6b7280;
    font-size: 1rem;
}

.score-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    align-items: center;
}

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

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto;
}

.score-circle .score-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.score-circle .score-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.score-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.score-item .score-label {
    color: #6b7280;
    font-weight: 500;
}

.score-item .score-value {
    color: #1f2937;
    font-weight: 600;
}

/* Rating Result */
.rating-result {
    margin: 2rem 0;
}

.rating-badge-large {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    gap: 2rem;
}

.rating-badge-large .rating-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.rating-badge-large.novice .rating-icon {
    background: #ef4444;
}

.rating-badge-large.apprentice .rating-icon {
    background: #f59e0b;
}

.rating-badge-large.expert .rating-icon {
    background: #10b981;
}

.rating-badge-large.master .rating-icon {
    background: #8b5cf6;
}

.rating-info h2 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.rating-description {
    color: #6b7280;
    font-size: 1.125rem;
}

/* Performance Breakdown */
.performance-breakdown {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.performance-breakdown h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.category-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.category-score:last-child {
    border-bottom: none;
}

.category-info h4 {
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.category-stats {
    color: #6b7280;
    font-size: 0.875rem;
}

.category-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
}

.category-progress .progress-bar {
    width: 100px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.category-progress .progress-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

.category-progress .percentage {
    font-weight: 600;
    color: #1f2937;
    min-width: 40px;
}

/* Recommendations */
.recommendations {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.recommendations h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

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

.recommendation-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recommendation-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.recommendation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.recommendation-icon .icon-text {
    font-size: 1.5rem;
    line-height: 1;
}

.recommendation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recommendation-content h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.recommendation-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.recommendation-actions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recommendation-actions li {
    padding: 0.375rem 0;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1rem;
}

.recommendation-actions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.recommendation-actions li:before {
    content: "→";
    color: #2563eb;
    margin-right: 0.5rem;
}

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

/* No Results */
.no-results {
    padding: 6rem 0;
    text-align: center;
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    opacity: 0.6;
}

.no-results-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-results h1 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.no-results p {
    margin-bottom: 2rem;
    color: #6b7280;
    font-size: 1.125rem;
}

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

/* Answer Review */
.answer-review {
    padding: 2rem 0;
    background: #f9fafb;
}

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

.review-content {
    max-height: 600px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
}

.review-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item.correct {
    border-left: 4px solid #10b981;
}

.review-item.incorrect {
    border-left: 4px solid #ef4444;
}

.review-question h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

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

.review-option {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    background: #f9fafb;
    position: relative;
}

.review-option.correct-answer {
    background: #d1fae5;
    border: 1px solid #10b981;
}

.review-option.user-answer:not(.correct-answer) {
    background: #fee2e2;
    border: 1px solid #ef4444;
}

.correct-indicator,
.incorrect-indicator {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    font-weight: 600;
}

.correct-indicator {
    color: #10b981;
}

.incorrect-indicator {
    color: #ef4444;
}

.review-explanation {
    background: #eff6ff;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #2563eb;
}

.review-explanation strong {
    color: #1f2937;
}

/* Legal Pages */
.legal-content {
    padding: 6rem 0 4rem;
}

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

.last-updated {
    color: #6b7280;
    font-style: italic;
}

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

.legal-text h2 {
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.legal-text h3 {
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* About Page Specific */
.about-content {
    padding: 6rem 0 4rem;
}

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

.about-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 0;
}

.about-sections {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.about-section h2 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

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

.feature-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.feature-item h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

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

.value-item {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.value-item h3 {
    color: #2563eb;
    margin-bottom: 0.75rem;
}

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

.contact-item {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.contact-item h3 {
    color: #1f2937;
    margin-bottom: 0.75rem;
}

/* Contact Page */
.contact-content {
    padding: 6rem 0 4rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Simplified Contact Styles */
.contact-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.email-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 500px;
    width: 100%;
}

.email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.email-icon .icon-text {
    font-size: 2.5rem;
    line-height: 1;
}

.email-details h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.email-details p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .email-contact {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .email-icon {
        width: 60px;
        height: 60px;
    }

    .email-icon .icon-text {
        font-size: 2rem;
    }

    .email-details h2 {
        font-size: 1.25rem;
    }

    .email-link {
        font-size: 1rem;
    }
}

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

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

.contact-form-section h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

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

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

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

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

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

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark:after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

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

.contact-info-section h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

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

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-details h3 {
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.contact-details a {
    color: #2563eb;
    font-weight: 500;
}

.response-times h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.response-times ul {
    list-style: none;
}

.response-times li {
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.875rem;
}

.response-times strong {
    color: #1f2937;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-section h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

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

.faq-item {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.faq-item h3 {
    margin-bottom: 0.75rem;
    color: #1f2937;
    font-size: 1rem;
}

.faq-item p {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Business Hours */
.business-hours {
    margin-top: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.business-hours h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

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

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

.hours-item .day {
    font-weight: 500;
    color: #1f2937;
}

.hours-item .time {
    color: #4b5563;
}

.hours-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 0;
}

/* Form Validation */
.form-errors {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.form-errors h4 {
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.form-errors ul {
    margin-left: 1rem;
    color: #dc2626;
}

.form-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.success-content h3 {
    color: #065f46;
    margin-bottom: 0.5rem;
}

.success-content p {
    color: #047857;
    margin-bottom: 0;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-info {
    background: #2563eb;
}

/* Responsive Design for New Styles */
@media (max-width: 768px) {
    .contact-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .score-overview {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .score-details {
        grid-template-columns: 1fr;
    }

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

    .recommendation-cards {
        grid-template-columns: 1fr;
    }

    .results-actions {
        flex-direction: column;
        align-items: center;
    }

    .results-actions .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

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

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .legal-text {
        padding: 1.5rem;
    }

    .about-section {
        padding: 1.5rem;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 1.5rem;
    }

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

    .score-circle {
        width: 100px;
        height: 100px;
    }

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

    .rating-badge-large .rating-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Blog Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
}

.blog-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

/* Blog Filters */
.blog-filters {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    top: 70px;
    z-index: 100;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: #2563eb;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
}

.sort-container {
    min-width: 150px;
}

.sort-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #2563eb;
}

/* Blog Articles */
.blog-articles {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    height: fit-content;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.article-card.featured {
    border-color: var(--warning);
    background: linear-gradient(135deg, var(--surface) 0%, #fffbeb 100%);
}

.article-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--warning);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    background: var(--warning);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-header {
    flex: 1;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.article-category {
    background: var(--primary-100);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-date,
.article-read-time {
    color: var(--text-muted);
    font-weight: 500;
}

.article-title {
    margin-bottom: 0.75rem;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: block;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 0.9375rem;
    opacity: 0.8;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.article-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--background-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.15s ease;
}

.tag:hover {
    background: var(--primary-50);
    color: var(--primary-color);
    border-color: var(--primary-200);
}

/* Loading and No Results States */
.loading-state {
    text-align: center;
    padding: 3rem 0;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

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

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results-content img {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.no-results h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.no-results p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.pagination-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.pagination-ellipsis {
    padding: 0.75rem 0.5rem;
    color: #6b7280;
}

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

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

.newsletter-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Blog Detail Page Styles */
.breadcrumb {
    background: #f9fafb;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-nav a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #6b7280;
}

.breadcrumb-current {
    color: #6b7280;
    font-weight: 500;
}

.blog-article {
    padding: 3rem 0;
    background: var(--background-secondary);
}

.article-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-main {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
}

.article-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.article-body {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.article-body h2 {
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.article-body h3 {
    color: #374151;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #4b5563;
}

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

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #4b5563;
}

.article-body strong {
    font-weight: 600;
    color: #1f2937;
}

.article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.author-bio {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.article-tags {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.article-tags h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-share {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.article-share h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn.copy {
    background: #6b7280;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.sidebar-section:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.sidebar-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.sidebar-article {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.15s ease;
}

.sidebar-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-article:hover {
    background: var(--background-secondary);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.sidebar-article-content h4 {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.sidebar-article-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.sidebar-article-content h4 a:hover {
    color: var(--primary-color);
}

.sidebar-article-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.sidebar-article-meta span {
    background: var(--background-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.newsletter-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-sidebar h3 {
    color: white;
}

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

.back-to-blog {
    padding: 2rem 0;
    text-align: center;
    background: white;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.blog-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.blog-cta-content h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-cta-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .blog-section {
        padding: 3rem 0;
    }

    .blog-cta-content h2 {
        font-size: 1.75rem;
    }

    .blog-cta-content p {
        font-size: 1rem;
    }
}

/* Blog Responsive Styles */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .filters-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .search-container {
        max-width: none;
    }

    .blog-preview-actions {
        flex-direction: column;
        text-align: center;
    }

    .blog-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .blog-hero-subtitle {
        font-size: 1rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .category-filters {
        justify-content: center;
    }

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

    .article-card {
        padding: 1.25rem;
    }

    /* Hero responsive */
    .hero {
        padding: 6rem 0 4rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    /* About section responsive */
    .about-text {
        font-size: 1rem;
    }

    .about-text p:first-child {
        font-size: 1.0625rem;
        padding: 0.75rem 0.75rem 0.75rem 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-content h2 {
        font-size: 2rem;
    }

    .article-header,
    .article-body,
    .article-tags,
    .article-share,
    .sidebar-section {
        padding: 1.5rem;
    }

    .share-buttons {
        justify-content: center;
    }

    .sidebar-article {
        flex-direction: column;
        text-align: center;
    }

    .sidebar-article-image {
        width: 100%;
        height: 150px;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 2rem 0;
    }

    .blog-hero-content h1 {
        font-size: 1.75rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .blog-hero-subtitle {
        font-size: 0.9375rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .article-header,
    .article-body,
    .article-tags,
    .article-share,
    .sidebar-section {
        padding: 1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }

    /* Quiz Instructions responsive */
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .instruction-card {
        padding: 1.5rem;
    }

    .instruction-icon {
        width: 60px;
        height: 60px;
    }

    .quiz-tips {
        padding: 1.5rem;
    }

    /* Quiz options responsive */
    .option {
        padding: 0.75rem;
    }

    .option label {
        font-size: 0.9rem;
    }
}