
/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;600&display=swap');

/* --- CSS Variables --- */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --primary-color: #102A43; /* Dark Blue */
    --secondary-color: #334E68; /* Slate Blue */
    --accent-color: #005f73; /* Deep Teal */
    --text-color: #243B53;
    --bg-color: #F0F4F8; /* Light Grey-Blue */
    --card-bg: #FFFFFF;
    --border-color: #D9E2EC;
}

/* --- Base & Reset Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; color: var(--secondary-color); }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 2.5fr 1fr;
    }
}

/* --- Header & Navigation --- */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(16, 42, 67, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.main-nav a {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    text-decoration: none;
}


/* --- Main Content & Cards --- */
main {
    width: 100%;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(16, 42, 67, 0.08);
    margin-bottom: 2rem;
}

/* --- Blog Post Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(16, 42, 67, 0.12);
}

.post-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.post-card p {
    flex-grow: 1;
    font-size: 0.95rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.read-more-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    text-decoration: none;
    color: #fff;
}

/* --- Sidebar --- */
.sidebar .widget {
    margin-bottom: 2.5rem;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

/* --- Article Page Specifics --- */
.article-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 3.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.article-content h2, .article-content h3 {
    margin-top: 2.5rem;
}

.article-content ul {
    list-style-position: inside;
    list-style-type: '— ';
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.cta-section {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
    background: var(--primary-color);
    color: var(--bg-color);
    font-size: 0.9rem;
}

.site-footer p {
    color: #BCCCDC;
    margin: 0;
}
