/* CSS Variables */
:root {
    --color-primary: #1E3A8A;
    --color-secondary: #14B8A6;
    --color-text: #0F172A;
    --color-muted: #64748B;
    --color-light: #F8FAFC;
    --color-border: #E2E8F0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: white;
}

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

a:hover {
    color: var(--color-secondary);
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-brand .logo {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-link {
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Section */
.section {
    padding: 4rem 0;
}

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

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

.category-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.category-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.category-card h3 a {
    color: inherit;
}

.category-card p {
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    margin: 40px 0;
    color: white;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto 15px;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.input-group button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.input-group button:hover {
    background: #ee5a5a;
}

.newsletter-form small {
    display: block;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Popular Blogs Section */
.popular-blogs-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

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

.popular-blogs-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #333;
}

.popular-blogs-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.popular-blog-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.popular-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-rank {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.blog-content {
    flex: 1;
}

.blog-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #333;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.blog-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #888;
}

.blog-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-group input,
    .input-group button {
    }

