/* --- CSS Variables and General Setup --- */
:root {
    --primary-color: #4a6a8a;
    /* A calming blue-grey */
    --secondary-color: #f4f4f4;
    /* Light grey background */
    --dark-color: #333;
    --light-color: #fff;
    --font-body: 'Lora', serif;
    --font-heading: 'Montserrat', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9f9f9;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3a536b;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--dark-color);
    padding-bottom: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}


/* --- Hero Section --- */
.hero {
    height: 60vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1506126613408-4e07873734b8?q=80&w=2070');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
}


/* --- Main Content Layout --- */
.site-content {
    display: flex;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

/* --- Post Card --- */
.post-card {
    background-color: var(--light-color);
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    border-radius: 4px;
    margin-bottom: 15px;
}

.post-content h2 {
    margin-bottom: 10px;
}

.post-content h2 a {
    color: var(--dark-color);
}

.post-content p {
    margin-bottom: 20px;
    color: #666;
}

.read-more {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Sidebar --- */
.widget {
    background-color: var(--light-color);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--secondary-color);
}

.widget-list li:last-child {
    border-bottom: none;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-color);
    color: #aaa;
    text-align: center;
    padding: 30px 20px;
}

.site-footer p {
    margin: 5px 0;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        flex-direction: column;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-toggle {
        display: block;
    }

    .site-content {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}