
/* --- DarkNova Theme --- */
/* --- Font: Merriweather --- */
/* --- Tone: Informative & Straightforward --- */

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

:root {
  --primary-color: #e0e0e0;
  --secondary-color: #3498db;
  --background-color: #121212;
  --surface-color: #1e1e1e;
  --text-color: #c0c5ce;
  --light-text-color: #8a93a0;
  --border-color: #2c3e50;
  --font-family: 'Merriweather', serif;
  --container-width: 1100px;
  --border-radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.8;
  font-size: 17px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

a:hover {
  color: #5dade2;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  font-weight: 700;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.6rem; }

p {
  margin-bottom: 1.25rem;
}

ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--surface-color);
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  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.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

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

.main-nav a {
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 5px;
  position: relative;
  color: var(--text-color);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}
.main-nav a.active {
    color: var(--primary-color);
}


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

/* --- Hero Section --- */
.hero {
  background-color: var(--surface-color);
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--light-text-color);
}

/* --- Article Grid --- */
.articles-section {
    padding: 2rem 0;
}

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

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

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary-color);
}

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

.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.card-content h3 a:hover {
    text-decoration: none;
}

.card-content p {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: var(--light-text-color);
}

.read-more-btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 5px;
  text-align: center;
  font-weight: 700;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.read-more-btn:hover {
  background-color: #5dade2;
  color: #fff;
  text-decoration: none;
}

/* --- Article Page --- */
.article-full {
  background-color: var(--surface-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

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

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

.article-meta {
  display: flex;
  gap: 1rem;
  color: var(--light-text-color);
  font-size: 0.9rem;
}

.article-content {
    max-width: 100%;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--light-text-color);
    background-color: rgba(44, 62, 80, 0.2);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.cta-section {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    margin: 2rem 0;
}
.cta-section h3 {
    margin-bottom: 1rem;
}

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

.widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
}

.widget ul {
  list-style: none;
  padding: 0;
}

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

.widget ul li a {
  text-decoration: none;
  font-weight: 700;
}

.promo-widget p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
  background-color: #000;
  color: #fff;
  padding: 2.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #fff;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* --- Contact Page --- */
.contact-details {
    margin-top: 2rem;
}
.contact-details p {
    font-size: 1.1rem;
    line-height: 1.8;
}
.contact-details strong {
    color: var(--primary-color);
}
.contact-note {
    background: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .main-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  h1 { font-size: 2rem; }
  .article-header h1 { font-size: 2.2rem; }
}

@media (min-width: 992px) {
  .page-wrapper {
    grid-template-columns: 2fr 1fr;
  }
  .article-full-layout {
      grid-template-columns: 3fr 1fr;
  }
}
