/* Securities Knowledge Test Website - Professional Finance Style */
/* Color Palette: Deep Navy Blue (#0a1628), Gold (#d4af37), White */

:root {
    --primary-navy: #0a1628;
    --secondary-navy: #152238;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4cf57;
    --text-white: #ffffff;
    --text-light: #e8eef4;
    --text-muted: #8a9bb5;
    --border-color: #2a3f5f;
    --success-green: #2ecc71;
    --error-red: #e74c3c;
    --bg-light: #f5f7fa;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--primary-navy);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 1px;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1a3a5c 50%, var(--secondary-navy) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(212,175,55,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

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

/* Sections */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--accent-gold);
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

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

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

.article-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    border-left: 3px solid var(--accent-gold);
}

.article-item:hover {
    transform: translateX(5px);
}

.article-image {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.article-content p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-content a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

/* Test List */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.test-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent-gold);
}

.test-card h3 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.test-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.test-card .questions-count {
    display: inline-block;
    background: var(--secondary-navy);
    color: var(--accent-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Quiz Section */
.quiz-container {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

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

.quiz-question h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.quiz-option {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.quiz-option:hover {
    border-color: var(--accent-gold);
    background: #faf8f0;
}

.quiz-option.selected {
    border-color: var(--accent-gold);
    background: #faf8f0;
}

.quiz-option.correct {
    border-color: var(--success-green);
    background: #e8f8f0;
}

.quiz-option.incorrect {
    border-color: var(--error-red);
    background: #fdeeee;
}

.quiz-result {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-navy);
    border-radius: 10px;
    margin-top: 2rem;
}

.quiz-result h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.quiz-result p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--text-light);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Contact Page */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    text-align: center;
}

.about-hero h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.about-content h2 {
    color: var(--primary-navy);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Legal Pages */
.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    color: var(--primary-navy);
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--accent-gold);
    padding-bottom: 1rem;
}

.legal-content h2 {
    color: var(--primary-navy);
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 2rem;
    background: var(--bg-light);
    font-size: 0.9rem;
}

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

.breadcrumbs span {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

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

.feature {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.feature h3 {
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-navy);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

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

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-btn {
        display: block;
    }

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

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

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

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

    .article-item {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        height: 180px;
    }

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

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

    .quiz-container {
        padding: 1.5rem;
    }

    .legal-content {
        padding: 1.5rem;
    }
}

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

    .hero {
        padding: 2rem 1rem;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }

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

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

.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; }

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.card, .article-item, .test-card {
    animation: fadeIn 0.5s ease forwards;
}

.card:nth-child(1), .article-item:nth-child(1), .test-card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2), .article-item:nth-child(2), .test-card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3), .article-item:nth-child(3), .test-card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4), .article-item:nth-child(4), .test-card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5), .article-item:nth-child(5), .test-card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6), .article-item:nth-child(6), .test-card:nth-child(6) { animation-delay: 0.6s; }
