:root {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --accent-color: #3b82f6;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

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

.navbar nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 700;
    transition: color 0.3s ease;
}

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


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

/* Hero Section */
.hero {
    margin-bottom: 3.5rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.card-img-container {
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    letter-spacing: 1.2px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    color: var(--text-color);
}

.card-desc {
    font-size: 0.95rem;
    color: #475569;
}

/* Hero Specific modifications */
.hero .card {
    flex-direction: row;
}

.hero .card-img-container {
    width: 60%;
    height: 480px;
}

.hero .card-content {
    width: 40%;
    justify-content: center;
    padding: 3.5rem;
}

.hero .card-title {
    font-size: 2.5rem;
}

.hero .card-desc {
    font-size: 1.15rem;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.grid .card-img-container {
    height: 220px;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    margin-top: 5rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 850px) {
    .hero .card {
        flex-direction: column;
    }
    .hero .card-img-container, .hero .card-content {
        width: 100%;
    }
    .hero .card-img-container {
        height: 300px;
    }
    .hero .card-title {
        font-size: 2rem;
    }
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }
    .navbar nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem 1.5rem;
    }
    .navbar nav a {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Newsletter Section */
.newsletter-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
}

.newsletter-card {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

.newsletter-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsletter-card p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.newsletter-form button {
    padding: 1.2rem 2.5rem;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    font-family: inherit;
}

.newsletter-form button:hover {
    background: #1e293b;
    transform: translateY(-3px);
}

/* Full Article View */
.article-page {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-header .category {
    font-size: 1rem;
}

.article-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 1.5rem 0;
    color: var(--text-color);
    letter-spacing: -1px;
}

.article-subtitle {
    font-size: 1.3rem;
    color: #475569;
    line-height: 1.5;
}

.article-image {
    width: 100%;
    margin-bottom: 4rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #1e293b;
}

.article-body a {
    color: var(--accent-color);
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body p:first-child::first-letter {
    font-size: 4rem;
    font-weight: 800;
    float: left;
    margin-right: 12px;
    line-height: 1;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.2rem;
    }
    .newsletter-form {
        flex-direction: column;
    }
}
