/*
  Theme: Minimalist Clean
  Font: Montserrat
  Tone of Voice: Professional & Authoritative
  Language: English (US)
*/

/* --- Root Variables --- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --accent-primary: #007bff;
  --accent-hover: #0056b3;
  --border-color: #dee2e6;
  --font-body: 'Montserrat', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

h1 { font-size: 2.8rem; text-align: center; }
h2 { font-size: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
ul {
  list-style-position: inside;
  padding-left: 1rem;
}

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

.main-header {
  background-color: var(--bg-primary);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

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

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem 0;
  width: 100%;
}
.site-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.main-nav {
  width: 100%;
}
.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-left: 0;
}

.main-nav a {
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem;
  color: var(--text-primary);
}
.main-nav a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

main {
  padding: 3rem 0;
}

.main-layout {
  display: grid;
  gap: 3rem;
}

.main-content {
  grid-column: 1 / -1;
}

.sidebar {
  grid-column: 1 / -1;
}

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

/* --- Components --- */
.hero {
  padding: 3rem 1rem;
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3.2rem;
}
.hero p {
  font-size: 1.1rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.articles-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.article-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

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

.sidebar-widget {
  margin-bottom: 2rem;
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget h3 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

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

.sidebar-widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-widget ul li:last-child {
  border-bottom: none;
}

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

.article-header h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

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

.article-content ul {
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--bg-secondary);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.contact-form label {
    font-weight: 600;
    font-size: 1rem;
}

.contact-form input, .contact-form textarea {
    padding: 0.8rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    border-radius: 4px;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.contact-form button {
    padding: 0.9rem;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--accent-hover);
}

/* --- Media Queries --- */
@media (min-width: 768px) {
  .site-title {
    width: auto;
    text-align: left;
  }
  .main-nav {
    width: auto;
  }
  .main-layout {
    grid-template-columns: 2.5fr 1fr;
  }
  .main-content {
    grid-column: 1 / 2;
  }
  .sidebar {
    grid-column: 2 / 3;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 3.2rem; }
  .article-header h1 { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 { font-size: 3.5rem; }
}