/* -------------------------------------------------
   Base Reset & Structure
------------------------------------------------- */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
  background: #fafafa;
  color: #222;
}

.site-main {
  flex: 1; 
  padding: 2rem 1rem;
}

.home-intro {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.home-intro h1 {
  font-size: 1.8rem;
  text-align: center;
  font-weight: 800;
  color: #2b3a67;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  letter-spacing: 1px;
}

.home-intro p {
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.6;
  color: #333;
  max-width: 820px;
  margin: 0 auto;
}

/* -------------------------------------------------
   Page titles
------------------------------------------------- */
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 1.5rem;
  color: #2b3a67; 
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .page-title {
    font-size: 2.4rem;
  }
}

.page-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}

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

/* -------------------------------------------------
   Header
------------------------------------------------- */
.site-header {
  background: #1a1a1a;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

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

.logo {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

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

.main-nav a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.75;
}

/* -------------------------------------------------
   Footer
------------------------------------------------- */
.site-footer {
  background: #f8f9fa;
  color: #555;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #e2e2e2;
}

/* -------------------------------------------------
   Headings
------------------------------------------------- */
h1 {
  text-align: center;
  margin-bottom: 2rem;
}

/* -------------------------------------------------
   CARDS
------------------------------------------------- */
.eras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;            
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-decoration: none;    
  color: inherit;             
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1rem;
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}

.card-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

.card-year {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #222;
}


.back-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #0066cc;
  font-weight: bold;
  text-decoration: underline;
}

/* -------------------------------------------------
   Event Cards
------------------------------------------------- */
.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.event-article h1 {
  margin-top: 0;
}

/* -------------------------------------------------
   Resources
------------------------------------------------- */
.resources-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  display: grid;
  gap: 1rem;
}

.resource-item {
  padding: 1rem 1.25rem;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.resource-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.resource-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: #004080;
  text-decoration: none;
}

.resource-link:hover {
  color: #0066cc;
  text-decoration: underline;
}

.resource-author {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: #444;
}

.resource-meta {
  font-size: 0.85rem;
  color: #777;
}


/* -------------------------------------------------
   Statistics
------------------------------------------------- */

.charts-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.chart-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  padding: 1.5rem;
}

.chart-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.chart-source {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}
.chart-source a {
  color: #004080;
  text-decoration: underline;
}
/* -------------------------------------------------
   Responsive Layouts
   (Mobile-first → scale up)
------------------------------------------------- */

/* Small screens (default): 
   - Header stacks vertically
   - Navigation in a single row under title, centered
*/
.site-header .container {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  text-align: center;
}

.main-nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin: 1rem 0 0 0;
  padding: 0;
}

/* Medium screens (tablets, >=768px):
   - Title left, nav right
*/
@media only screen and (min-width: 768px) {
  .site-header .container {
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .main-nav ul {
    justify-content: flex-end;
    gap: 2rem;
    margin: 0;
  }

  .site-main {
    padding: 2rem;
  }
}

/* Large screens (desktops, >=992px):
   - Larger font sizes
   - More space inside cards
*/
@media (min-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  .card {
    padding: 1.5rem;
  }

  .resource-link {
    font-size: 1.2rem;
  }
}

.about {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.about p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

.about ul {
  list-style: disc inside;
  margin-bottom: 1.5rem;
  color: #333;
}