@charset "utf-8";

/* ================== Base Reset ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================== Root Variables ================== */
:root {
  --primary: #007BFF;
  --background: #fafafa;
  --heading: #222;
}

/* ================== Typography ================== */
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding: 1rem;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3 {
  color: var(--heading);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1rem;
}

/* ================== Links ================== */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus {
  outline: 2px dashed var(--primary);
  outline-offset: 2px;
}

/* ================== Layout ================== */
#content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  #content {
    grid-template-columns: 1fr;
  }
}

/* ================== Navigation ================== */
nav {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
}

/* ================== Main Content ================== */
main {
  padding: 1rem;
}

/* ================== Paragraphs ================== */
p {
  margin-bottom: 1rem;
}

/* ================== Images ================== */
.photoleft,
.photoright {
  display: block;
  margin: 2rem 0;
  text-align: center;
}

.photoleft img,
.photoright img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

figure {
  margin: 2rem 0;
  text-align: center;
}

figcaption {
  font-style: italic;
  margin-top: 0.5rem;
  color: #555;
  font-size: 0.95em;
}

/* ================== Feature Blocks ================== */
.feature,
.story {
  background: var(--background);
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary);
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* ================== Dashboard ================== */
.dashboard-block {
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
  margin-bottom: 3rem;
  background-color: #ffffff; /* Stronger contrast to background */
  border: 3px solid var(--primary); /* Slightly thicker and uses your theme color */
  border-radius: 16px; /* More rounded */
  padding: 2.5rem;
  max-width: 800px; /* Limit width for better centering */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Slightly deeper shadow */
  text-align: center; /* Center all text inside */
}

.dashboard-block h3 {
  font-size: 2rem; /* Bigger title */
  margin-bottom: 2rem;
  color: var(--heading);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}

.stat-card {
  background-color: #fafafa;
  padding: 1.2rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
  font-size: 1.2rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  margin: 0;
}

/* ================== Helpers ================== */
.margin-top-xl {
  margin-top: 2rem;
}
