/* Using the Inter font (google) */
:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

@supports (font-variation-settings: normal) {
    :root {
        font-family: InterVariable, sans-serif;
    }
}

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

body { 
    margin-bottom: 2cm;
    padding: 0;
    background: #f5f1e8;
    color: #1a1a1a;
}

/* Link colors */
a, a:visited {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    color: #003d7a;
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.nav-logo:hover {
    color: #0066cc;
}

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

.nav-item {
    margin: 0;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.05);
}

.nav-link.active {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.1);
}

/* Blog Page Styles */
.blog-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.blog-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.blog-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    border-bottom: 2px solid rgba(0, 102, 204, 0.2);
    padding-bottom: 0.5rem;
}

.blog-post-preview {
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-post-preview:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.blog-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-post-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    align-items: center;
}

.blog-post-figure {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post-figure img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.blog-post-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-post-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.blog-post-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

.blog-post-date {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* Mobile navigation */
@media (max-width: 850px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Mobile responsive for blog posts */
@media (max-width: 850px) {
    .blog-page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .blog-post-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .blog-post-figure {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .blog-post-figure img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .blog-post-title {
        font-size: 1.3rem;
    }

    .blog-post-summary {
        font-size: 0.95rem;
    }
}
