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

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

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

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2563eb;
}

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

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Article Grid */
.featured-articles {
    padding: 4rem 0;
}

.featured-articles h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.article-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

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

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card h3 {
    padding: 1rem 1.5rem 0;
}

.article-card h3 a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
}

.article-card h3 a:hover {
    color: #2563eb;
}

.article-card p {
    padding: 0.5rem 1.5rem;
    color: #666;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1.5rem 1.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background-color: #fff;
}

.categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.category-card {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.category-card:hover {
    background-color: #e9ecef;
}

.category-card h3 a {
    text-decoration: none;
    color: #2563eb;
    font-size: 1.3rem;
}

.category-card p {
    margin-top: 0.5rem;
    color: #666;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

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

/* Article Page Styles */
.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 1rem;
    opacity: 0.9;
}

.article-content {
    background: white;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #333;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
    color: #444;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1rem 2rem;
}

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

.article-content a {
    color: #2563eb;
    text-decoration: none;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

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

.legal-page h1 {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.legal-page h2 {
    color: #1e40af;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.legal-page ul, .legal-page ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

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

.legal-page p {
    margin-bottom: 1rem;
}

/* Contact Page Styles */
.contact-page {
    max-width: 1000px;
    margin: 2rem auto;
}

.contact-page h1 {
    color: #2563eb;
    text-align: center;
    margin-bottom: 1rem;
}

.contact-page > p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #6b7280;
}

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

.contact-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-section h2 {
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-section p {
    margin-bottom: 0.5rem;
}

.contact-section ul {
    margin-left: 1rem;
}

.contact-section li {
    margin-bottom: 0.3rem;
}

.faq-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.faq-section h2 {
    color: #2563eb;
    margin-bottom: 1.5rem;
}

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

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h3 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-note {
    background: #fef3c7;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin-bottom: 2rem;
}

.contact-note h2 {
    color: #92400e;
    margin-bottom: 1rem;
}

.contact-note ul {
    margin-left: 1rem;
}

.thank-you {
    background: #dcfce7;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #16a34a;
    text-align: center;
}

.thank-you h2 {
    color: #166534;
    margin-bottom: 1rem;
}

/* Category Hero Section */
.category-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.category-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Articles Grid Section */
.articles-grid {
    padding: 3rem 0;
}

.articles-grid h2 {
    color: #374151;
    margin-bottom: 2rem;
}

/* Coming Soon Badge */
.coming-soon {
    background: #fbbf24;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Example Box for Articles */
.example-box {
    background: #f1f5f9;
    border-left: 4px solid #2563eb;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}

.example-box p {
    margin-bottom: 0.5rem;
}

.example-box p:last-child {
    margin-bottom: 0;
}

/* Active Navigation Link */
.nav-links a.active {
    color: #2563eb;
    font-weight: 600;
}

/* Tables in articles */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.article-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.article-content tr:last-child td {
    border-bottom: none;
}