/* 
  Theme: Minimalist Clean
  Font: Inter
  Tone: Informative & Straightforward
  Language: English (US)
*/

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

/* --- CSS Variables --- */
:root {
  --primary-color: #2563eb; /* Blue 600 */
  --secondary-color: #4b5563; /* Gray 600 */
  --background-color: #f9fafb; /* Gray 50 */
  --surface-color: #ffffff;
  --text-color: #111827; /* Gray 900 */
  --border-color: #e5e7eb; /* Gray 200 */
  --header-height: 70px;
  --font-main: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
  text-decoration: underline;
  color: #1d4ed8; /* Blue 700 */
}

ul {
  list-style-position: inside;
  margin-bottom: 1rem;
}

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

.main-content {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 3rem;
}

.layout-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

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

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

.main-nav a {
  font-weight: 500;
  color: var(--secondary-color);
  text-decoration: none;
  padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* --- Homepage Specifics --- */
.hero {
  text-align: center;
  padding: 3rem 0;
  background-color: var(--surface-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.hero p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--secondary-color);
}

.articles-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.articles-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.article-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.article-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card-content h3 {
  margin-bottom: 0.5rem;
}

.article-card-content p {
  color: var(--secondary-color);
  flex-grow: 1;
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  align-self: flex-start;
}

/* --- Sidebar --- */
.sidebar {
  background-color: var(--surface-color);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  height: fit-content;
}

.sidebar-widget {
  margin-bottom: 2rem;
}

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

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

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

.sidebar-widget ul li a {
  display: block;
  padding: 0.5rem 0;
  color: var(--secondary-color);
  border-bottom: 1px dashed var(--border-color);
}

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

.sidebar-widget ul li a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.promo-text {
  background-color: #eef2ff; /* Indigo 50 */
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  border-left: 4px solid var(--primary-color);
}

/* --- Article Page Specifics --- */
.article-page main {
  background-color: var(--surface-color);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

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

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

.article-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.article-content .cta {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px dashed var(--primary-color);
    margin-top: 2rem;
    text-align: center;
}

.article-content .cta p {
    margin-bottom: 1rem;
}

.article-content .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
}

.article-content .cta-button:hover {
    background-color: #1d4ed8;
}

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

/* --- Responsive Design --- */

/* For tablets and larger */
@media (min-width: 768px) {
  .layout-grid {
    grid-template-columns: 1fr 300px;
  }
  .article-page .layout-grid {
    grid-template-columns: 1fr 320px;
  }
  #main-article {
    grid-column: 1 / 2;
  }
  #sidebar {
    grid-column: 2 / 3;
  }
}

/* For smaller screens (mobile) */
@media (max-width: 767px) {
  .header-container {
    flex-direction: column;
    padding: 0.5rem 0;
  }
  .site-header {
    position: static;
    height: auto;
  }
  .main-content {
    padding-top: 1rem;
  }
  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    gap: 0.5rem 1rem;
  }
  h1 {
      font-size: 2rem;
  }
  .article-header h1 {
      font-size: 2.2rem;
  }
}

/* Contact form basic styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

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

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

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

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

.contact-form button {
    align-self: flex-start;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-form button:hover {
    background-color: #1d4ed8;
}
