/* Legal Knowledge Portal - Professional Style */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a365d;
    --secondary: #2c5282;
    --accent: #c53030;
    --gold: #b7791f;
    --light: #f7fafc;
    --dark: #1a202c;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 18px 16px;
    display: block;
    font-size: 0.95rem;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--gold);
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2d3748 100%);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    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"><text y="50" font-size="50" fill="rgba(255,255,255,0.03)">⚖</text></svg>');
    background-size: 100px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    font-family: 'Arial', sans-serif;
}

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

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.test-card {
    background: var(--white);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--primary);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border);
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-top-color: var(--accent);
}

.test-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.test-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-family: 'Arial', sans-serif;
}

.tag {
    display: inline-block;
    background: #ebf8ff;
    color: var(--secondary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Arial', sans-serif;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 25px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 15px;
}

.content h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.content h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin: 1.5rem 0 0.8rem;
}

.content p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    display: block;
    border: 1px solid var(--border);
}

.content a {
    color: var(--secondary);
    text-decoration: underline;
}

.content ul, .content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.content li {
    margin-bottom: 0.6rem;
}

.related-content {
    background: #faf5eb;
    padding: 25px;
    border-radius: 6px;
    margin-top: 2.5rem;
    border-left: 4px solid var(--gold);
}

.related-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.related-content ul {
    list-style: none;
    margin: 0;
}

.related-content li {
    margin-bottom: 8px;
}

.related-content a {
    color: var(--secondary);
    text-decoration: none;
    font-family: 'Arial', sans-serif;
}

.related-content a:hover {
    text-decoration: underline;
}

.test-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.test-question {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.test-question h3 {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-family: 'Arial', sans-serif;
}

.option {
    display: block;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
}

.option:hover {
    border-color: var(--secondary);
    background: #ebf8ff;
}

.option.correct {
    background: #c6f6d5 !important;
    border-color: #48bb78 !important;
    color: #22543d;
}

.option.incorrect {
    background: #fed7d7 !important;
    border-color: #fc8181 !important;
    color: #742a2a;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    margin-top: 20px;
    transition: background 0.3s;
}

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

.score-display {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 18px 28px;
    border-radius: 8px;
    margin: 25px 0;
    font-size: 1.1rem;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
    font-family: 'Arial', sans-serif;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.breadcrumb {
    padding: 15px 20px;
    background: #edf2f7;
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--secondary);
}

.articles-list {
    display: grid;
    gap: 20px;
}

.article-card {
    background: var(--white);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.article-card:hover {
    border-left-color: var(--accent);
}

.article-card h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.article-card h2 a {
    color: var(--primary);
    text-decoration: none;
}

.article-card h2 a:hover {
    color: var(--accent);
}

.article-card p {
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #a0aec0;
    margin-top: 12px;
    font-family: 'Arial', sans-serif;
}

.about-section {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.about-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-section p {
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s;
}

.category-tab:hover, .category-tab.active {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
        width: 100%;
    }
    
    .nav-links a {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .tests-grid {
        grid-template-columns: 1fr;
    }
    
    .content h1 {
        font-size: 1.6rem;
    }
    
    .content h2 {
        font-size: 1.3rem;
    }
}
