/* General Body and Layout */
body {
  font-family: Arial, sans-serif;
  background: #f9fafb;
  margin: 0;
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.intro, .footer {
  max-width: 900px;
  margin: 20px auto;
  text-align: center;
  color: #374151;
  font-size: 16px;
  line-height: 1.75;
}

.footer {
    margin-top: 32px;
}

hr {
    margin: 20px 0;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Main Title */
h1 {
  text-align: center;
}

/* Card Styling */
.card {
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.02);
}

.title {
  font-size: 20px;
  margin-bottom: 5px;
}

.range {
  font-size: 14px;
  margin-bottom: 5px;
}

.keypoint {
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: bold;
}

.verse {
  font-style: italic;
  font-size: 14px;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 720px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  cursor: pointer;
}

/* Back to Home Link */
.home-link {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Banner Styling */
.hero-banner {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- Theme for Index Page --- */
.theme-index h1 { color: #334155; }
.theme-index .card { background: linear-gradient(135deg, #e2e8f0, #ffffff); }
.theme-index .card a { text-decoration: none; }
.theme-index .card .title { color: #1e293b; font-size: 24px; text-align: center; }

.section-title {
  text-align: center;
  font-size: 2.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #475569;
  padding: 15px 10px;
  margin-top: 50px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subsection-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #475569;
  margin-top: 40px;
  margin-bottom: 10px;
  text-align: center;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 8px;
}

.subsection-description {
  font-size: 0.9em;
  color: #64748b;
  margin-top: 5px;
  margin-bottom: 20px;
  text-align: center;
}

/* --- Generic Theme 1 (Purple) --- */
.theme-1 h1 { color: #4A148C; }
.theme-1 .card { background: linear-gradient(135deg, #ede7f6, #ffffff); }
.theme-1 .title { color: #4A148C; }
.theme-1 .range { color: #6A1B9A; }
.theme-1 .verse { color: #311B92; }

/* --- Generic Theme 2 (Blue) --- */
.theme-2 h1 { color: #0D47A1; }
.theme-2 .card { background: linear-gradient(135deg, #e3f2fd, #ffffff); }
.theme-2 .title { color: #0D47A1; }
.theme-2 .range { color: #1565C0; }
.theme-2 .verse { color: #1A237E; }

/* --- Generic Theme 3 (Green) --- */
.theme-3 h1 { color: #1B5E20; }
.theme-3 .card { background: linear-gradient(135deg, #e8f5e9, #ffffff); }
.theme-3 .title { color: #1B5E20; }
.theme-3 .range { color: #2E7D32; }
.theme-3 .verse { color: #004D40; }

/* --- Generic Theme 4 (Red) --- */
.theme-4 h1 { color: #B71C1C; }
.theme-4 .card { background: linear-gradient(135deg, #ffebee, #ffffff); }
.theme-4 .title { color: #B71C1C; }
.theme-4 .range { color: #C62828; }
.theme-4 .verse { color: #880E4F; }

/* --- Generic Theme 5 (Orange) --- */
.theme-5 h1 { color: #BF360C; }
.theme-5 .card { background: linear-gradient(135deg, #fbe9e7, #ffffff); }
.theme-5 .title { color: #BF360C; }
.theme-5 .range { color: #D84315; }
.theme-5 .verse { color: #A1887F; }

.modal-content h2 {
  margin-top: 0;
}

.modal-content p {
  margin: 10px 0;
}

.modal-content #modalDetail {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
}
