/* Glossary Page Styles */

/* ========== Glossary Content Section ========== */
.glossary-content-section {
  padding: 80px 20px;
  background: #f8f9fa;
}

.glossary-content-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== Definition Card ========== */
.glossary-definition-card {
  background: white;
  padding: 50px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.glossary-type-icon svg {
  fill: transparent;
}

.glossary-section-title {
  font-size: 32px;
  color: #333;
  margin-bottom: 25px;
  margin-top: 0;
  font-weight: 600;
}

.glossary-definition-text {
  font-size: 20px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.glossary-text {
  font-size: 18px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 15px;
}

/* ========== Explanation Card ========== */
.glossary-explanation-card {
  background: white;
  padding: 50px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ========== Steps Grid ========== */
.glossary-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.glossary-step-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glossary-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.glossary-step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #326ef1 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.glossary-step-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.glossary-step-text {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ========== Formula Card ========== */
.glossary-formula-card {
  background: white;
  padding: 50px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.glossary-formula-box {
  background: linear-gradient(135deg, #326ef1 0%, #764ba2 100%);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  margin: 30px 0;
}

.glossary-formula {
  font-size: 32px;
  font-weight: bold;
  color: white;
  font-family: 'Courier New', monospace;
}

.glossary-example-box {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  margin-top: 30px;
}

.glossary-example-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  margin-top: 0;
  font-weight: 600;
}

.glossary-example-text {
  font-size: 18px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
}

.glossary-calculation {
  background: white;
  padding: 25px;
  border-radius: 10px;
  font-size: 20px;
  color: #333;
  margin: 20px 0;
  border-left: 4px solid #326ef1;
  font-family: 'Courier New', monospace;
}

.glossary-result {
  color: #2e7d32;
  font-weight: bold;
  font-size: 24px;
}

/* ========== Types Card ========== */
.glossary-types-card {
  background: white;
  padding: 50px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.glossary-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.glossary-type-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid #e9ecef;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glossary-type-item:hover {
  transform: translateY(-5px);
  border-color: #326ef1;
  box-shadow: 0 10px 25px rgba(50, 110, 241, 0.15);
}

.glossary-type-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.glossary-type-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.glossary-type-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ========== Highlight Box ========== */
.glossary-highlight-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 30px;
  border-radius: 15px;
  border-left: 5px solid #2e7d32;
  margin: 30px 0;
}

.glossary-highlight-text {
  font-size: 18px;
  color: #1b5e20;
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

/* ========== Warning Box ========== */
.glossary-warning-box {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  padding: 30px;
  border-radius: 15px;
  border-left: 5px solid #f57c00;
  margin: 30px 0;
}

.glossary-warning-text {
  font-size: 18px;
  color: #e65100;
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

/* ========== Info Box ========== */
.glossary-info-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 30px;
  border-radius: 15px;
  border-left: 5px solid #1976d2;
  margin: 30px 0;
}

.glossary-info-text {
  font-size: 18px;
  color: #0d47a1;
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

/* ========== Related Terms Section ========== */
.glossary-related-section {
  padding: 80px 20px;
  background: white;
}

.glossary-related-container {
  max-width: 1200px;
  margin: 0 auto;
}

.glossary-related-title {
  font-size: 36px;
  color: #333;
  text-align: center;
  margin-bottom: 50px;
  margin-top: 0;
  font-weight: 600;
}

.glossary-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.glossary-related-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: block;
}

.glossary-related-card:hover {
  transform: translateY(-5px);
  border-color: #326ef1;
  box-shadow: 0 10px 25px rgba(50, 110, 241, 0.15);
}

.glossary-related-card-title {
  font-size: 22px;
  color: #326ef1;
  margin-bottom: 15px;
  font-weight: 600;
}

.glossary-related-card-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ========== Responsive Design ========== */

/* Tablets and below */
@media (max-width: 768px) {
  .glossary-content-section {
    padding: 60px 15px;
  }

  .glossary-definition-card,
  .glossary-explanation-card,
  .glossary-formula-card,
  .glossary-types-card {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .glossary-section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .glossary-definition-text {
    font-size: 18px;
  }

  .glossary-text {
    font-size: 16px;
  }

  .glossary-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .glossary-step-card {
    padding: 25px 20px;
  }

  .glossary-step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .glossary-step-title {
    font-size: 18px;
  }

  .glossary-formula-box {
    padding: 30px 20px;
  }

  .glossary-formula {
    font-size: 24px;
  }

  .glossary-example-box {
    padding: 20px;
  }

  .glossary-example-title {
    font-size: 20px;
  }

  .glossary-example-text {
    font-size: 16px;
  }

  .glossary-calculation {
    font-size: 18px;
    padding: 20px;
  }

  .glossary-result {
    font-size: 20px;
  }

  .glossary-types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .glossary-type-item {
    padding: 25px 20px;
  }

  .glossary-type-icon {
    font-size: 40px;
  }

  .glossary-related-section {
    padding: 60px 15px;
  }

  .glossary-related-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .glossary-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .glossary-related-card {
    padding: 25px 20px;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  .glossary-content-section {
    padding: 50px 10px;
  }

  .glossary-definition-card,
  .glossary-explanation-card,
  .glossary-formula-card,
  .glossary-types-card {
    padding: 25px 15px;
    margin-bottom: 25px;
    border-radius: 15px;
  }

  .glossary-section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .glossary-definition-text {
    font-size: 16px;
    line-height: 1.7;
  }

  .glossary-text {
    font-size: 15px;
    line-height: 1.6;
  }

  .glossary-step-card {
    padding: 20px 15px;
  }

  .glossary-step-number {
    width: 45px;
    height: 45px;
    font-size: 20px;
    margin-bottom: 15px;
  }

  .glossary-step-title {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .glossary-step-text {
    font-size: 15px;
  }

  .glossary-formula-box {
    padding: 25px 15px;
  }

  .glossary-formula {
    font-size: 20px;
  }

  .glossary-example-box {
    padding: 20px 15px;
  }

  .glossary-example-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .glossary-example-text {
    font-size: 15px;
  }

  .glossary-calculation {
    font-size: 16px;
    padding: 15px;
  }

  .glossary-result {
    font-size: 18px;
    display: block;
    margin-top: 5px;
  }

  .glossary-type-item {
    padding: 20px 15px;
  }

  .glossary-type-icon {
    font-size: 36px;
  }

  .glossary-type-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .glossary-type-desc {
    font-size: 15px;
  }

  .glossary-highlight-box,
  .glossary-warning-box,
  .glossary-info-box {
    padding: 20px 15px;
    margin: 20px 0;
  }

  .glossary-highlight-text,
  .glossary-warning-text,
  .glossary-info-text {
    font-size: 16px;
  }

  .glossary-related-section {
    padding: 50px 10px;
  }

  .glossary-related-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .glossary-related-card {
    padding: 20px 15px;
  }

  .glossary-related-card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .glossary-related-card-desc {
    font-size: 15px;
  }
}

