/* ---
Theme: Magazine / Editorial
Font: Roboto Slab (Serif), Roboto (Sans-Serif)
Primary Colours: Off-White, Dark Charcoal, Deep Blue
--- */

/* CSS Variables */
:root {
  --bg-color: #f9f9f9;
  --surface-color: #ffffff;
  --text-color: #333333;
  --heading-color: #1a1a1a;
  --border-color: #e0e0e0;
  --accent-color: #004080; /* Deep Blue */
  --font-family-headings: 'Roboto Slab', serif;
  --font-family-body: 'Roboto', sans-serif;
}

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

body {
  font-family: var(--font-family-body);
  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-headings);
  color: var(--heading-color);
  margin-bottom: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; text-align: center; }
h2 { font-size: 1.8rem; margin-top: 2.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--accent-color); }
h3 { font-size: 1.3rem; font-weight: 600; }

p {
  margin-bottom: 1.5rem;
}

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

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

.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);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.site-title {
  font-size: 1.4rem;
  font-family: var(--font-family-headings);
  font-weight: 700;
}

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

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

.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  padding-bottom: 8px;
  text-decoration: none;
  position: relative;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

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

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

/* 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);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

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

.article-card p {
    font-size: 0.95rem;
    color: #555;
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
}

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

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

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

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

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

.promo-text {
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  color: #555;
}

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

@media (min-width: 768px) {
    .content-wrapper {
        padding: 3rem;
    }
}

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

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

.article-meta {
  font-size: 0.9rem;
  color: #666;
  font-family: var(--font-family-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.cta-section h2 {
    border: none;
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
}

.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-family-body);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cta-btn:hover {
  background-color: var(--heading-color);
  color: #fff;
  text-decoration: none;
}

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

.site-footer p {
    margin: 0;
    font-weight: 500;
}

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

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  
  .content-wrapper {
      padding: 1.5rem;
  }

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