/* style/glossary.css */
.page-glossary {
  color: #ffffff; /* Light text for dark body background */
  background-color: #121212; /* Ensure consistency with body background */
  padding-top: var(--header-offset, 120px);
}

.page-glossary__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  text-align: center;
  padding: 60px 20px;
}

.page-glossary__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Darken image slightly for text readability, not changing color */
}

.page-glossary__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
  border-radius: 12px;
}

.page-glossary__hero-title {
  font-size: 3.2em;
  color: var(--primary-color, #FFD700);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-glossary__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-glossary__hero-cta {
  display: inline-block;
  background-color: var(--primary-color, #FFD700);
  color: #121212;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-glossary__hero-cta:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-glossary__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  margin-top: -80px; /* Overlap with hero section for visual flow */
  position: relative;
  z-index: 3;
}

.page-glossary__section-heading {
  font-size: 2.5em;
  color: var(--secondary-color, #1E90FF);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-glossary__intro-text {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #e0e0e0;
}

.page-glossary__alphabet-nav {
  text-align: center;
  margin-bottom: 50px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
}

.page-glossary__alphabet-title {
  font-size: 1.8em;
  color: var(--primary-color, #FFD700);
  margin-bottom: 20px;
}

.page-glossary__alphabet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.page-glossary__alphabet-list li a {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: var(--secondary-color, #1E90FF);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50%;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-glossary__alphabet-list li a:hover {
  background-color: #1565b3;
  transform: scale(1.1);
}

.page-glossary__terms-container {
  padding: 20px 0;
}

.page-glossary__term-section {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-glossary__term-anchor {
  font-size: 2.8em;
  color: var(--primary-color, #FFD700);
  margin-top: 0;
  margin-bottom: 20px;
  padding-top: 20px; /* Offset for anchor links */
}

.page-glossary__term-heading {
  font-size: 1.8em;
  color: var(--secondary-color, #1E90FF);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-glossary__term-definition {
  font-size: 1.05em;
  line-height: 1.8;
  color: #c0c0c0;
  margin-bottom: 10px;
}

.page-glossary__internal-link {
  color: var(--primary-color, #FFD700);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-glossary__internal-link:hover {
  color: #e6c200;
}

.page-glossary__cta-bottom {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 50px 30px;
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-glossary__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px; /* Minimum size for content images */
  object-fit: cover;
}

.page-glossary__cta-title {
  font-size: 2.2em;
  color: var(--primary-color, #FFD700);
  margin-bottom: 20px;
}

.page-glossary__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-glossary__cta-button {
  display: inline-block;
  background-color: var(--secondary-color, #1E90FF);
  color: #ffffff;
  padding: 18px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-glossary__cta-button:hover {
  background-color: #1565b3;
  transform: translateY(-4px);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-glossary__hero-title {
    font-size: 2.8em;
  }
  .page-glossary__section-heading {
    font-size: 2em;
  }
  .page-glossary__term-anchor {
    font-size: 2.4em;
  }
  .page-glossary__cta-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-glossary__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }
  .page-glossary__hero-title {
    font-size: 2.2em;
  }
  .page-glossary__hero-description {
    font-size: 1em;
  }
  .page-glossary__hero-cta {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-glossary__content-area {
    padding: 30px 15px;
    margin-top: -50px;
  }
  .page-glossary__section-heading {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-glossary__intro-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-glossary__alphabet-title {
    font-size: 1.5em;
  }
  .page-glossary__alphabet-list li a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 0.9em;
  }
  .page-glossary__term-anchor {
    font-size: 2em;
    padding-top: 15px;
  }
  .page-glossary__term-heading {
    font-size: 1.5em;
  }
  .page-glossary__term-definition {
    font-size: 0.9em;
  }
  .page-glossary__cta-bottom {
    padding: 30px 15px;
    margin-top: 40px;
  }
  .page-glossary__cta-title {
    font-size: 1.6em;
  }
  .page-glossary__cta-description {
    font-size: 0.95em;
  }
  .page-glossary__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-glossary img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-glossary__hero-title {
    font-size: 1.8em;
  }
  .page-glossary__hero-description {
    font-size: 0.9em;
  }
  .page-glossary__hero-cta {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-glossary__section-heading {
    font-size: 1.5em;
  }
  .page-glossary__alphabet-list li a {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 0.8em;
  }
  .page-glossary__term-anchor {
    font-size: 1.8em;
  }
  .page-glossary__term-heading {
    font-size: 1.3em;
  }
  .page-glossary__cta-title {
    font-size: 1.4em;
  }
  .page-glossary__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}