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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f5f5f5;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  background-color: #ffffff;
  border-bottom: 3px solid #cc0000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.top-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 0;
}

.hero-title {
  text-align: center;
}

.hero-title h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #cc0000;
  text-transform: uppercase;
}

.hero-title p {
  margin-top: 8px;
  font-size: 1.05rem;
  color: #444;
}

.hero-title p.alt-slogan {
  margin-top: 4px;
  font-size: 0.9rem;
  font-style: italic;
  color: #777;
}

nav {
  margin-top: 10px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

nav li {
  padding: 6px 10px;
  border-radius: 4px;
  background-color: #f0f0f0;
  font-size: 0.9rem;
}

nav li:hover {
  background-color: #cc0000;
  color: #ffffff;
}

main {
  padding: 20px 0 40px 0;
}

section {
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

section h2 {
  margin-bottom: 10px;
  font-size: 1.6rem;
  color: #cc0000;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 6px;
}

section h3 {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 1.2rem;
  color: #444;
}

p {
  margin-bottom: 10px;
  font-size: 0.98rem;
}

ul {
  margin: 8px 0 10px 20px;
  font-size: 0.96rem;
}

li {
  margin-bottom: 4px;
}

.program-images,
.three-column-images,
.books-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.program-images img,
.three-column-images img,
.books-images img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.books-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr;
  gap: 20px;
  align-items: center;
}

.books-images figure {
  text-align: center;
  font-size: 0.9rem;
}

.books-images figcaption {
  margin-top: 4px;
}

form {
  margin-top: 10px;
}

form .form-group {
  margin-bottom: 10px;
}

form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 8px;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

form textarea {
  min-height: 120px;
}

form button {
  padding: 8px 16px;
  font-size: 0.95rem;
  background-color: #cc0000;
  color: #ffffff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

form button:hover {
  background-color: #a00000;
}

footer {
  background-color: #222;
  color: #eee;
  padding: 15px 0;
  font-size: 0.85rem;
  margin-top: 20px;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  .books-layout {
    grid-template-columns: 1fr;
  }
}
