
/* --- AI / Modern Theme --- */
:root {
  --background-color: #1a202c;
  --card-background: #2d3748;
  --primary-accent: #6366f1;
  --secondary-accent: #818cf8;
  --text-primary: #e2e8f0;
  --text-secondary: #a0aec0;
  --border-color: #4a5568;
  --font-family: 'Inter', sans-serif;
}

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

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

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

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

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

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

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

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

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

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

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

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  text-decoration: none;
}

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

.main-nav a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 1rem;
}

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

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

.page-intro {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-intro h1 {
  margin-bottom: 1rem;
}

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

/* --- Blog Articles Grid (Homepage) --- */
.articles-section {
  padding: 2rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.25rem;
  color: var(--text-primary);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

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

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

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

.article-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.article-card-content h3 a {
    color: var(--text-primary);
}

.article-card-content p {
  font-size: 0.95rem;
  flex-grow: 1;
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-accent);
  color: white;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
}

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

/* --- Article & Sidebar Layout --- */
.article-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.main-article {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

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

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

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

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--secondary-accent);
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-section {
    background-color: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary-accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 2rem;
}

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

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

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

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

.sidebar-widget ul li a {
  color: var(--text-secondary);
}

.sidebar-promo p {
    font-style: italic;
    text-align: center;
    color: var(--text-primary);
    font-size: 1rem;
}


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

/* --- Static Pages (About, Contact, etc.) --- */
.static-page-content {
    background-color: var(--card-background);
    padding: 2rem 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.static-page-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-accent);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    top: auto;
  }
}

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

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav ul {
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .static-page-content {
      padding: 1.5rem;
  }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .container {
        padding: 0 15px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
