/* Training Page Styles */

.training-hero {
  display: flex;
  align-items: center;
  min-height: 60vh;
  background: linear-gradient(135deg, var(--bg) 0%, #f0f8f0 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--fg);
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 2rem;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 15px rgba(14, 126, 12, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 126, 12, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.courses-section {
  padding: 4rem 2rem;
  background: var(--bg);
}

.courses-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--fg);
}

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

.course-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.course-header h3 {
  font-size: 1.5rem;
  color: var(--fg);
  margin: 0;
}

.course-badge {
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.course-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.course-description {
  position: relative;
}

.description-content {
  transition: max-height 0.5s ease;
}

.toggle-checkbox {
  display: none;
}

.toggle-button {
  display: none;
}

.toggle-button::after {
  content: 'See More';
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 15px;
  border: 1px solid var(--accent);
  background: #f0f8f0;
  color: var(--accent);
  transition: all 0.3s ease;
}

.toggle-button:hover::after {
  background: var(--accent);
  color: white;
}

.toggle-checkbox:checked ~ .toggle-button::after {
  content: 'See Less';
}

@media (max-width: 768px) {
  .description-content {
    max-height: 13lh; 
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 8;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
  }

  .toggle-checkbox:checked ~ .description-content {
    max-height: 2000px;
    line-clamp: none;
    -webkit-line-clamp: none;
    display: block;
  }

  .toggle-button {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
  }
}

footer{
    margin-top: 0 !important;
}

@media (max-width: 768px) {
  .training-hero {
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    padding: 1.5rem;
  }
}
