* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --accent-color: #667eea;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1.5rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.7rem 2.5rem 0.7rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    width: 250px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    width: 300px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.92) 0%, rgba(118, 75, 162, 0.92) 100%),
                url('https://images.unsplash.com/photo-1504639725590-34d0984388bd?w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Articles Section */
.articles {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
}

.tab {
    padding: 0.6rem 1.5rem;
    border: none;
    background: white;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab:hover,
.tab.active {
    background: var(--accent-color);
    color: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.article-card.featured {
    grid-column: span 2;
}

.article-image {
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card.featured .article-image {
    height: 350px;
}

.image-icon {
    font-size: 5rem;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-content {
    padding: 2rem;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-card.featured .article-content h3 {
    font-size: 1.8rem;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.author-avatar {
    font-size: 1.5rem;
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Categories Section */
.categories {
    padding: 5rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    transition: transform 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    opacity: 0.9;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.contact-item-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.contact-item-inline:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.contact-item-inline .contact-icon {
    font-size: 1.8rem;
}

.contact-item-inline a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.newsletter-content .contact-info-centered {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .search-box input {
        width: 100%;
    }

    .search-box input:focus {
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card.featured {
        grid-column: span 1;
    }

    .contact-item-inline {
        width: 100%;
        justify-content: center;
    }
}

