
/* --- General Setup & Variables --- */
:root {
  --primary-color: #e0e0e0; /* Light gray for text */
  --secondary-color: #b0b0b0; /* Dimmer gray for meta text */
  --accent-color: #d4af37;   /* Gold for links and highlights */
  --bg-color: #121212;       /* Near-black for background */
  --surface-color: #1e1e1e; /* Dark gray for cards/surfaces */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-radius: 8px;
  --font-family: 'Roboto Slab', serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--primary-color);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
  margin-bottom: 1.25rem;
}

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

a:hover, a:focus {
  color: #f7d87c;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* --- Layout Containers --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.main-content {
  flex: 1;
}

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

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

/* --- Elegant Dark Card Style --- */
.card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.site-title a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

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

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

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

.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #ffffff;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* --- Main & Articles --- */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.article-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.article-card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.article-card-content p {
  flex-grow: 1;
  color: var(--secondary-color);
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background-color: var(--accent-color);
  color: var(--bg-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.3s ease;
}

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

/* Single Article Page */
.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}
.article-meta {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-top: -0.5rem;
}
.article-content a {
  font-weight: 700;
}
.article-content img {
  margin: 1.5rem 0;
}
.cta-section {
  margin: 2.5rem 0;
  padding: 2rem;
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  text-align: center;
}
.cta-section h3 {
  color: var(--accent-color);
}

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

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

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

.sidebar-widget a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}
.sidebar-widget a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

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

/* --- Contact Form --- */
.contact-form .form-group {
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--primary-color);
  font-family: var(--font-family);
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}
.contact-form button {
  cursor: pointer;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  background-color: var(--accent-color);
  color: var(--bg-color);
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}
.contact-form button:hover {
  background-color: #f7d87c;
}
