/* ---
Theme: Tech / Futuristic
Font: Inter
Primary Colors: Dark Blues, Cyan accents
--- */

/* CSS Variables */
:root {
  --bg-color-dark: #0d1117;
  --bg-color-medium: #161b22;
  --bg-color-light: #21262d;
  --border-color: #30363d;
  --text-color-primary: #c9d1d9;
  --text-color-secondary: #8b949e;
  --accent-color: #58a6ff;
  --accent-color-hover: #1f6feb;
  --font-family-main: 'Inter', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; border-left: 4px solid var(--accent-color); padding-left: 1rem; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; color: var(--accent-color); }

p {
  margin-bottom: 1rem;
  color: var(--text-color-secondary);
}

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

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

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

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

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

.site-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-color-primary);
}

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

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

.main-nav a {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

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

/* 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 {
  background-color: var(--bg-color-medium);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Intro Section */
.intro-section {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.intro-section h1 {
  border-left: none;
  padding-left: 0;
}

/* Blog Articles Section */
.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-color-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  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);
}

.article-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color-primary);
}

.article-card p {
  flex-grow: 1;
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--accent-color);
  color: var(--bg-color-dark);
  font-weight: bold;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s ease;
}

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

/* Sidebar */
aside {
  position: sticky;
  top: 100px; /* Adjust based on header height */
}

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

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

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

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

.sidebar-widget ul li a::before {
  content: '»';
  margin-right: 8px;
  color: var(--accent-color);
}

.promo-text {
  font-style: italic;
  color: var(--text-color-secondary);
  background-color: var(--bg-color-light);
  padding: 1rem;
  border-left: 3px solid var(--accent-color);
  border-radius: 4px;
}

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

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

.article-content ul, .article-content ol {
    margin-left: 20px;
    margin-bottom: 1rem;
    color: var(--text-color-secondary);
}

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

.cta-section {
  background-color: var(--bg-color-light);
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 2.5rem;
}

.cta-section h2 {
    border-bottom: none;
    margin-top: 0;
}

.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  background-color: var(--accent-color);
  color: var(--bg-color-dark);
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--accent-color-hover);
  color: white;
  text-decoration: none;
}


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

/* Responsive Menu (Placeholder for JS-less interaction) */
.menu-toggle {
  display: none; /* Hidden by default */
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  main {
    padding: 1.5rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}
