/* === Base Reset & Typography === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding: 1em;
}

/* === Header & Footer === */
header, footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1.5em;
  border-radius: 8px;
  margin-bottom: 2em;
}

header h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

footer p {
  font-size: 0.9em;
}

/* === Section Modules === */
.module {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.5em;
  margin-bottom: 2em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.module h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: #0066cc;
}

.module ul {
  list-style-type: disc;
  padding-left: 1.5em;
}

.module li {
  margin-bottom: 0.5em;
}

/* === Links === */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Teaching Section Specifics === */
.module.teaching {
  border-left: 6px solid #4CAF50;
}

.module.teaching h2 {
  color: #4CAF50;
}

/* === Affiliate Section Specifics === */
.module.affiliate {
  border-left: 6px solid #FF9800;
}

.module.affiliate h2 {
  color: #FF9800;
}

.module.affiliate a::after {
  content: " 🔗";
}

/* === Meme Section Specifics === */
.module.meme {
  border-left: 6px solid #9C27B0;
}

.module.meme h2 {
  color: #9C27B0;
}

.module.meme img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 1em;
}

/* Glossary Term Block */
.term-block {
  background-color: #f9f9fc;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.5em;
  margin: 2em auto;
  max-width: 800px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}

/* Term Title */
.term-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 0.5em;
  text-align: center;
}

/* Latin Subtitle */
.term-latin {
  font-style: italic;
  color: #555;
  text-align: center;
  margin-bottom: 1em;
}

/* Section Headings */
.term-section h3 {
  font-size: 1.2em;
  color: #34495e;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.2em;
}

/* Section Content */
.term-section p,
.term-section ul {
  font-size: 1em;
  color: #333;
  line-height: 1.6;
  margin-left: 1em;
  margin-right: 1em;
}

/* Bullet Styling */
.term-section ul {
  list-style-type: disc;
  padding-left: 1.5em;
}

h2 {
  color: black;
}

.hero {
  text-align: center;
  padding: 1em 1em;
  background-color: #f5faff;
  border-bottom: 2px solid #d0e6ff;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #2c3e50;
}

.hero p {
  font-size: 1.2em;
  color: #34495e;
}

/* Hero block: centered for emphasis */
.hero {
  text-align: center;
  padding: 2em 1em;
  background-color: #f5faff;
  border-bottom: 2px solid #d0e6ff;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #2c3e50;
}

.hero p {
  font-size: 1.2em;
  color: #34495e;
}

.featured, .toolkit, .blog {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5em;
  text-align: left;
}

/* Main content sections: horizontally centered, text left-aligned */
section:not(.hero) {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5em;
  text-align: left;
}

section h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  color: black;
}

section h3 {
  font-size: 1.4em;
  margin-top: 1em;
  color: #2c3e50;
}

section p,
section ul {
  font-size: 1em;
  line-height: 1.6;
  color: #333;
}

section ul {
  padding-left: 1.2em;
}

.hero {
  text-align: center;
}

.mini-nav {
  text-align: center;
  margin-top: 2em;
  font-size: 1em;
}

.mini-nav a {
  color: #2c3e50;
  text-decoration: none;
  margin: 0 0.5em;
  font-weight: bold;
}

.mini-nav a:hover {
  text-decoration: underline;
}

.link-clean {
  text-decoration: none;
  color: inherit; /* optional: keeps link color consistent with surrounding text */
  font-weight: bold; /* optional: adds emphasis */
}

/* === Responsive Tweaks === */
@media screen and (max-width: 600px) {
  body {
    padding: 0.5em;
  }

  .module {
    padding: 1em;
  }

  header h1 {
    font-size: 1.5em;
  }

  .module h2 {
    font-size: 1.2em;
  }
}
