/* 
  Theme: Dark Mode Elegance
  Font: Merriweather (body), Lato (headings)
  Primary Color: #4db6ac (Teal)
*/

/* --- Basic Reset & Setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #4db6ac; /* Accent Teal */
  --primary-hover-color: #66c7bd;
  --bg-color: #121212;
  --surface-color: #1e1e1e;
  --text-color: #e0e0e0;
  --text-secondary-color: #a0a0a0;
  --border-color: #333333;
}

body {
  font-family: 'Merriweather', serif;
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Lato', sans-serif;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

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

h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1.2rem;
}

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

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

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

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--surface-color);
  border-bottom: 2px solid var(--border-color);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-title {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
}

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

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

.main-nav a {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  padding-bottom: 5px;
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

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

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

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

.main-column {
  background: var(--surface-color);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* --- Homepage Hero --- */
.hero {
  text-align: center;
  padding: 2.5rem;
  background-color: var(--surface-color);
  margin-bottom: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
}

/* --- Article List (Homepage) --- */
.article-list .article-preview {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

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

.article-preview h2 {
    border-bottom: none;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.article-preview h2 a {
  color: var(--text-color);
}

.article-preview h2 a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.article-preview p {
    color: var(--text-secondary-color);
}

.btn-read-more {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

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

/* --- Article Page --- */
.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

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

.article-meta {
  color: var(--text-secondary-color);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
}

.article-content ul, .article-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-content li {
  margin-bottom: 0.8rem;
}

.cta-box {
  background-color: rgba(77, 182, 172, 0.1); /* transparent accent */
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2.5rem 0;
  border-radius: 4px;
}
.cta-box h3 {
    margin-top: 0;
}

/* --- Sidebar --- */
.sidebar-widget {
  background: var(--surface-color);
  padding: 2rem;
  margin-bottom: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

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

.sidebar-widget ul li {
  margin-bottom: 1rem;
}

.sidebar-widget ul li a {
  color: var(--text-secondary-color);
  font-weight: 400;
  font-family: 'Lato', sans-serif;
}
.sidebar-widget ul li a:hover {
  color: var(--primary-color);
}

.sidebar-promo-text {
  font-style: italic;
  color: var(--text-secondary-color);
  text-align: center;
}

/* --- Contact Form --- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    color: var(--text-secondary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Merriweather', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

.contact-form button {
  display: block;
  width: 100%;
  padding: .8rem;
  border: 2px solid var(--primary-color);
  background-color: var(--primary-color);
  color: var(--bg-color);
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  h1 { font-size: 2.2rem; }
  .article-header h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  .main-column { padding: 1.5rem; }
  .sidebar-widget { padding: 1.5rem; }
}
