
/* --- Global Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg-color: #f8f9fa;
  --content-bg-color: #ffffff;
  --text-color: #212529;
  --primary-color: #0056b3;
  --link-color: #007bff;
  --border-color: #dee2e6;
  --header-bg: #ffffff;
  --footer-bg: #343a40;
  --footer-text: #f8f9fa;
}

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

* {
  box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--header-bg);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-title a {
  color: var(--text-color);
  text-decoration: none;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
}

/* --- Main Content Layout --- */
.main-content {
  padding: 40px 0;
}

.main-content .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

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

.content-area {
  background-color: var(--content-bg-color);
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.content-area h1,
.content-area h2 {
    margin-top: 0;
}

/* --- Blog Post Grid (Homepage) --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.blog-post-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--content-bg-color);
  transition: box-shadow 0.3s ease;
}

.blog-post-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.blog-post-card-content {
  padding: 20px;
}

.blog-post-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.read-more-btn {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
}

/* --- Sidebar --- */
.sidebar {
  padding: 20px;
  background-color: var(--content-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.sidebar-widget {
  margin-bottom: 30px;
}

.sidebar-widget h4 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  font-size: 1.2rem;
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget ul li {
  margin-bottom: 10px;
}

.sidebar-widget ul li a {
  display: block;
}

.promo-text {
  background-color: #e9f4ff;
  padding: 15px;
  border-radius: 5px;
  border-left: 4px solid var(--link-color);
  font-style: italic;
}

/* --- Article Page Specifics --- */
.article-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.article-header h1 {
  margin-bottom: 10px;
}

.article-meta {
  font-size: 0.9rem;
  color: #6c757d;
}

.article-content a {
    font-weight: 600;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-left: 0;
    font-style: italic;
    color: #555;
}

.cta-box {
    background-color: #e9f4ff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
}

.cta-box h3 {
    margin-top: 0;
}

.cta-box a {
    display: inline-block;
    background-color: var(--link-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-box a:hover {
    background-color: var(--primary-color);
}


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