.page-glossary {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1); /* Assuming shared.css defines a dark background */
}

.page-glossary__main-content-wrapper {
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

.page-glossary__hero-section {
  background: linear-gradient(135deg, #0A2463, #3a5c96); /* Darker gradient for hero */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-glossary__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-glossary__hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #E3B505; /* Highlight title with accent color */
}

.page-glossary__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-glossary__hero-description a {
  color: #E3B505;
  text-decoration: none;
  font-weight: bold;
}

.page-glossary__hero-description a:hover {
  text-decoration: underline;
}

.page-glossary__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-glossary__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-glossary__cta-button--primary {
  background: #E3B505;
  color: #0A2463;
  border: 2px solid #E3B505;
}

.page-glossary__cta-button--primary:hover {
  background: #d4a700;
  border-color: #d4a700;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-glossary__cta-button--secondary {
  background: transparent;
  color: #E3B505;
  border: 2px solid #E3B505;
}

.page-glossary__cta-button--secondary:hover {
  background: #E3B505;
  color: #0A2463;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-glossary__content-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-1); /* Inherit from body or specific dark color */
}

.page-glossary__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-glossary__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #E3B505;
  text-align: center;
  margin-bottom: 40px;
}

.page-glossary__text-block {
  font-size: 17px;
  margin-bottom: 30px;
  text-align: justify;
  color: #f0f0f0;
}

.page-glossary__text-block a {
  color: #E3B505;
  text-decoration: none;
  font-weight: bold;
}

.page-glossary__text-block a:hover {
  text-decoration: underline;
}

.page-glossary__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 800px; /* Limit width for better display */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-glossary__subsection-title {
  font-size: 28px;
  font-weight: bold;
  color: #E3B505;
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
}

.page-glossary__term-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-glossary__term-item {
  background: #ffffff; /* Light background for terms */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for light background */
  border: 1px solid #e0e0e0;
}

.page-glossary__term-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-glossary__term-name {
  font-size: 22px;
  font-weight: bold;
  color: #0A2463;
  margin-bottom: 15px;
  border-bottom: 2px solid #E3B505;
  padding-bottom: 10px;
}

.page-glossary__term-definition {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

.page-glossary__term-definition a {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
}

.page-glossary__term-definition a:hover {
  text-decoration: underline;
}

.page-glossary__faq-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-1); /* Consistent dark background */
}

.page-glossary__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-glossary__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-glossary__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #f9f9f9; /* Light background for answer */
  color: #333333; /* Dark text for answer */
  font-size: 16px;
  line-height: 1.7;
}

.page-glossary__faq-item.active .page-glossary__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-glossary__faq-answer a {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
}

.page-glossary__faq-answer a:hover {
  text-decoration: underline;
}

.page-glossary__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff; /* Light background for question */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333; /* Dark text for question */
}

.page-glossary__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-glossary__faq-question:active {
  background: #eeeeee;
}

.page-glossary__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #0A2463; /* Accent color for question text */
}

.page-glossary__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E3B505; /* Accent color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-glossary__faq-item.active .page-glossary__faq-toggle {
  color: #0A2463;
  transform: rotate(45deg); /* Change '+' to 'x' or similar */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-glossary__hero-title {
    font-size: 38px;
  }
  .page-glossary__section-title {
    font-size: 32px;
  }
  .page-glossary__subsection-title {
    font-size: 26px;
  }
  .page-glossary__term-name {
    font-size: 20px;
  }
  .page-glossary__term-item {
    padding: 25px;
  }
  .page-glossary__term-list {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-glossary__main-content-wrapper {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
  }
  .page-glossary__hero-section {
    padding: 60px 15px;
  }
  .page-glossary__hero-title {
    font-size: 32px;
  }
  .page-glossary__hero-description {
    font-size: 16px;
  }
  .page-glossary__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-glossary__cta-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-glossary__content-section {
    padding: 40px 15px;
  }
  .page-glossary__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-glossary__text-block {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-glossary__image {
    margin-bottom: 30px;
  }
  .page-glossary__subsection-title {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 25px;
  }
  .page-glossary__term-list {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
  }
  .page-glossary__term-item {
    padding: 20px;
  }
  .page-glossary__term-name {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .page-glossary__term-definition {
    font-size: 15px;
  }
  .page-glossary__faq-section {
    padding: 40px 15px;
  }
  .page-glossary__faq-item {
    margin-bottom: 10px;
  }
  .page-glossary__faq-question {
    padding: 15px;
  }
  .page-glossary__faq-question h3 {
    font-size: 16px;
  }
  .page-glossary__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-glossary__faq-item.active .page-glossary__faq-answer {
    padding: 15px !important;
  }
  /* Mobile image responsive */
  .page-glossary img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-glossary__section,
  .page-glossary__card,
  .page-glossary__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}