
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --text-primary: #d1d5db;
  --text-secondary: #9ca3af;
  --accent-primary: #0ea5e9;
  --accent-hover: #38bdf8;
  --border-color: #374151;
  --font-family: 'Inter', sans-serif;
}

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

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

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

h1, h2, h3, h4 {
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1.25rem;
  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;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--bg-secondary);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.site-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}
.site-title a {
  color: inherit;
}
.site-title a:hover {
  text-decoration: none;
  color: var(--accent-primary);
}

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

.main-nav a {
  font-weight: 600;
  font-size: 1rem;
}

/* --- Main Content Layout --- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

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

main {
  width: 100%;
}

/* --- Homepage Specific --- */
.hero {
  background-color: var(--bg-secondary);
  padding: 3rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}
.hero h1 {
  color: var(--accent-primary);
}

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

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-content h3 {
  margin-top: 0;
}
.card-content .read-more {
  margin-top: auto;
  align-self: flex-start;
  background-color: var(--accent-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.card-content .read-more:hover {
  background-color: var(--accent-hover);
  text-decoration: none;
}


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

.sidebar-widget h3 {
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.sidebar-widget ul {
  list-style: none;
}
.sidebar-widget ul li {
  margin-bottom: 0.75rem;
}
.sidebar-widget ul a {
  font-weight: 600;
}
.sidebar-widget p {
  font-style: italic;
  color: var(--text-primary);
}

/* --- Article Page --- */
.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}
.article-header .meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.article-header .meta span {
  margin-right: 1rem;
}

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

.cta-section {
    background-color: var(--accent-primary);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}
.cta-section h2 {
    color: #fff;
}
.cta-section p {
    color: #e0f2fe;
    margin-bottom: 1.5rem;
}
.cta-button {
    background-color: #fff;
    color: var(--accent-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    display: inline-block;
}
.cta-button:hover {
    background-color: #f0f9ff;
    text-decoration: none;
    color: #0c4a6e;
}

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