:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --dark: #1f2937;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --text: #374151;
    --font-ui: 'Inter', sans-serif;
    --font-content: 'Merriweather', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

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

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

/* Top Bar */
.top-bar {
    background-color: var(--dark);
    color: var(--white);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

/* Header */
.blog-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text {
    font-family: var(--font-content);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
}

.main-nav a {
    margin-left: 2rem;
    font-weight: 600;
    color: var(--dark);
}

.main-nav a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    padding: 0.5rem;
    cursor: pointer;
}

/* Hero Article */
.hero-article {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background-color: var(--dark);
}

.hero-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
}

.hero-overlay h1 {
    font-family: var(--font-content);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-overlay p {
    max-width: 800px;
    font-size: 1.125rem;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Articles */
.article-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

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

.article-body {
    padding: 2rem;
}

.article-body h2 {
    font-family: var(--font-content);
    font-size: 1.875rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.article-body .meta {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-body p {
    font-family: var(--font-content);
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 1rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
}

.widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.widget h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.newsletter-widget input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.newsletter-widget button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.newsletter-widget button:hover {
    background: var(--primary-dark);
}

/* Contact Section */
.contact-section {
    background: var(--white);
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.contact-section h2 {
    text-align: center;
    font-family: var(--font-content);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    font-size: 1.125rem;
}

.info-item {
    margin-top: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-ui);
}

.btn-submit {
    background: var(--dark);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

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

.form-check {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Footer */
.blog-footer {
    background: var(--dark);
    color: #9ca3af;
    padding: 4rem 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    background: #111827;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    border-top: 4px solid var(--primary);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-buttons button {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    border: none;
}

.btn-accept {
    background: var(--primary);
    color: var(--white);
    margin-right: 0.5rem;
}

.btn-reject {
    background: #e5e7eb;
    color: var(--dark);
}

/* Responsive */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        margin: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }
}