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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #f8f9fa;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* --- Layout & Container --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: #ffffff;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  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 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

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

.main-nav a {
  font-weight: 600;
  color: #555;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}


/* --- Main Content & Grid Layout --- */
.main-content {
  padding: 2.5rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

.primary-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* --- Hero Section (Homepage) --- */
.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

/* --- Blog Post Listings --- */
.blog-posts-section {
  margin-top: 2.5rem;
}

.post-preview {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-preview:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.post-preview h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.post-preview h2 a {
  color: #1a1a1a;
  text-decoration: none;
}

.post-preview h2 a:hover {
  color: #007bff;
}

.btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
  color: #fff;
  text-decoration: none;
}


/* --- Sidebar --- */
.sidebar {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  height: fit-content;
}

.widget {
  margin-bottom: 2rem;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #007bff;
  display: inline-block;
}

.widget ul {
  list-style: none;
}

.widget li {
  margin-bottom: 0.5rem;
}

.widget a {
  color: #333;
}

.promo-widget {
  background-color: #e9f4ff;
  padding: 1.5rem;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  border-left: 4px solid #007bff;
}

/* --- Article Page --- */
.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

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

.article-content h2 {
    margin-top: 2rem;
}

.article-content h3 {
    margin-top: 1.5rem;
}

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

.cta-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 2rem;
    text-align: center;
}

/* --- Footer --- */
.site-footer {
  background-color: #343a40;
  color: #f8f9fa;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2.5rem;
}

.site-footer p {
  margin: 0;
}

/* --- Simple Page Styles (About, Contact, etc.) --- */
.page-header {
  text-align: center;
  padding: 2rem 0;
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 2.5rem;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Contact Form Placeholder --- */
.contact-info p {
    font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}
