/* ---
Theme: Tech / Futuristic
Font: Fira Code (Monospace)
Primary Colours: Dark Navy, Cyan, Magenta, White
--- */

/* CSS Variables */
:root {
  --bg-color: #0a0c1a;
  --surface-color: #1a1c2e;
  --primary-accent: #00f6ff; /* Cyan */
  --secondary-accent: #ff00ff; /* Magenta */
  --text-color: #c0c0ff;
  --heading-color: #ffffff;
  --border-color: #3a3c5a;
  --font-family-main: 'Fira Code', monospace;
  --glow-color: rgba(0, 246, 255, 0.5);
}

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

body {
  font-family: var(--font-family-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-main);
  color: var(--heading-color);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 1px;
}

h1 { font-size: 2.8rem; text-align: center; text-shadow: 0 0 5px var(--glow-color); }
h2 { font-size: 2rem; margin-top: 2.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
h3 { font-size: 1.4rem; color: var(--primary-accent); font-weight: 600; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 0 3px var(--glow-color);
}

a:hover {
  color: var(--heading-color);
  text-shadow: 0 0 8px var(--glow-color);
  text-decoration: none;
}

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

/* Header & Navigation */
.site-header {
  background-color: var(--surface-color);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--heading-color);
}

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

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

.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-color);
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

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

/* Intro Section */
.intro-section {
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.intro-section p {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 1rem auto 0;
}

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

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

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

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

.article-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  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 0 15px var(--glow-color);
}

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

.article-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.article-card p {
    font-size: 1rem;
    color: var(--text-color);
}

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

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

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

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

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

.promo-text {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-color);
  text-align: center;
  font-style: italic;
}

/* Single Article & Content Page */
.article-content, .content-wrapper {
  background: var(--surface-color);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}
.content-wrapper {
    margin-top: 2rem;
}

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

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

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

/* Call to Action Section */
.cta-section {
  margin-top: 3rem;
  padding: 2.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.cta-section h2 {
    border: none;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    color: var(--primary-accent);
}

.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.8rem;
  background-color: var(--primary-accent);
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 1px solid var(--primary-accent);
  text-shadow: none;
}

.cta-btn:hover {
  background-color: transparent;
  color: var(--primary-accent);
  box-shadow: 0 0 15px var(--glow-color);
  transform: translateY(-2px);
}

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

.site-footer p {
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  
  .header-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 25px;
  }
  
  .main-nav a {
      font-size: 1rem;
  }

  .article-content, .content-wrapper {
      padding: 1.5rem;
  }
}