:root {
    --max-width: 1200px;
    --color-primary: #0077be;
    --color-secondary: #f39c12;
    --color-text: #2c3e50;
    --color-light: #f8f9fa;
    --color-border: #dee2e6;
    --border-radius: 8px;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: #fff;
    font-size: 16px;
}

/* Header */
.header-sticky {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.brand span {
    color: var(--color-text);
    font-weight: 400;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 16px;
    min-height: 60vh;
}

h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--color-primary);
}

h2 {
    font-size: 24px;
    margin: 24px 0 16px;
    color: var(--color-text);
}

h3 {
    font-size: 20px;
    margin: 20px 0 12px;
}

p {
    margin-bottom: 16px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #0077be 100%);
    color: white;
    padding: 60px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 24px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Cards Grid */
.cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin: 32px 0;
}

.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.card h3 {
    color: var(--color-primary);
    margin-bottom: 8px;
}

.card p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6c757d;
    margin-top: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    min-height: 44px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #005a8b;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-secondary);
}

.btn-secondary:hover {
    background: #e67e00;
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* Section */
.section {
    margin: 48px 0;
}

.section-header {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.section-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--color-light);
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s;
}

.tag:hover {
    background: var(--color-primary);
    color: white;
}

/* Info Box */
.info-box {
    background: var(--color-light);
    border-left: 4px solid var(--color-primary);
    padding: 20px;
    margin: 24px 0;
    border-radius: var(--border-radius);
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-weight: 600;
    color: var(--color-primary);
}

/* FAQ */
.faq {
    margin: 32px 0;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    font-weight: 600;
    padding: 16px;
    background: var(--color-light);
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 16px;
    background: white;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: white;
    padding: 40px 16px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: white;
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-stats {
        gap: 24px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessibility */
:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}