/* Glossary Section Styles */
.glossary-section {
  background-color: #f9fafb;
  padding: 5rem 0;
  font-family: "Assistant Regular", sans-serif;
}

.glossary-section > div {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glossary Header */
.glossary-section > div > div:first-child {
  text-align: center;
  margin-bottom: 3rem;
}

.glossary-section > div > div:first-child > div:first-child {
  font-size: 3rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1rem;
}

.glossary-section > div > div:first-child > div:first-child .highlits {
  color: #2563eb;
}

.glossary-description {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Glossary Content Container */
.glossary-section > div > div:last-child {
  max-width: 1000px;
  margin: 0 auto;
}

/* Glossary Terms Grid */
.glossary-section > div > div:last-child > div {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

/* Individual Term Card */
.glossary-section > div > div:last-child > div > div {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glossary-section > div > div:last-child > div > div:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Term Title */
.glossary-term {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
  position: relative;
  order: 1;
}



/* Term Definition */
.glossary-definition {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  font-size: 16px;
  text-align: justify;
  order: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .glossary-section > div > div:first-child > div:first-child {
    font-size: 2rem;
  }

  .glossary-description {
    font-size: 1rem;
  }

  .glossary-section > div > div:last-child > div {
    grid-template-columns: 1fr;
  }

  .glossary-section > div > div:last-child > div > div {
    padding: 1rem;
  }

  .glossary-term {
    font-size: 1rem;
  }

  .glossary-definition {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .glossary-section {
    padding: 3rem 0;
  }

  .glossary-section > div {
    padding: 0 1rem;
  }
}


/* Focus states for accessibility */
.glossary-section > div > div:last-child > div > div:focus-within {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .glossary-section > div > div:last-child > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .glossary-section > div > div:last-child > div > div {
    box-shadow: none;
    border: 1px solid #d1d5db;
    break-inside: avoid;
  }

  .glossary-term::before {
    display: none;
  }
}

/* Loading state */
.glossary-section.loading {
  opacity: 0.7;
  pointer-events: none;
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Smooth scrolling for the page */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar for glossary section */
.glossary-section::-webkit-scrollbar {
  width: 8px;
}

.glossary-section::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.glossary-section::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 4px;
}

.glossary-section::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}
