/* --- General Setup & Variables --- */
:root {
  --bg-color: #111827; /* Dark Slate Blue */
  --content-bg-color: #1F2937; /* Lighter Slate */
  --border-color: #374151; /* Gray */
  --primary-text-color: #F9FAFB; /* Off-white */
  --secondary-text-color: #9CA3AF; /* Lighter Gray */
  --accent-color: #4F46E5; /* Indigo */
  --accent-hover-color: #6366F1; /* Lighter Indigo */
  --font-family: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--primary-text-color);
  line-height: 1.6;
  font-size: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-text-color);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }
p { margin-bottom: 1rem; color: var(--secondary-text-color); }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-hover-color); text-decoration: underline; }

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

.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

/* --- Header --- */
.header {
  background-color: var(--content-bg-color);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.header .site-title {
  font-size: 2.25rem;
  font-weight: 900;
  margin: 0;
}

.header .site-title a {
  color: var(--primary-text-color);
}

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

/* --- Navigation --- */
.main-nav {
  background-color: var(--content-bg-color);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.main-nav a {
  color: var(--secondary-text-color);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
  background-color: var(--accent-color);
  color: var(--primary-text-color);
  text-decoration: none;
}

/* --- Main Content & Articles --- */
.main-content, .sidebar {
  background-color: var(--content-bg-color);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.article-list .article-card {
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
}

.article-list .article-card:last-child {
  border-bottom: none;
}

.article-card h2 {
  border: none;
  padding: 0;
  margin-top: 0;
  font-size: 1.75rem;
}
.article-card h2 a {
  color: var(--primary-text-color);
}

.read-more-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-text-color);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  margin-top: 1rem;
  transition: background-color 0.3s;
}

.read-more-btn:hover {
  background-color: var(--accent-hover-color);
  text-decoration: none;
  color: var(--primary-text-color);
}

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

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

.cta-box {
  background-color: var(--bg-color);
  border: 1px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 0;
}

/* --- Sidebar --- */
.sidebar-widget {
  margin-bottom: 2rem;
}
.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

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

.sidebar-widget ul li {
  margin-bottom: 0.75rem;
}
.sidebar-widget ul li a {
    color: var(--secondary-text-color);
}
.sidebar-widget ul li a:hover {
    color: var(--accent-hover-color);
}
.promo-text {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover-color));
    color: var(--primary-text-color);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--secondary-text-color);
  font-size: 0.9rem;
}

/* --- Utility Classes --- */
.text-center {
  text-align: center;
}

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--primary-text-color);
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-hover-color);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: var(--primary-text-color);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent-hover-color);
}
