/* Learning Hub Page Styles */

.page-hero {
  padding-top: 120px;
  padding-bottom: 60px;
}

.learning-hub-section {
  padding: 80px 0;
  scroll-margin-top: 120px;
}

.learning-tabs-wrapper {
  margin-bottom: 40px;
}

.learning-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
  flex-wrap: nowrap;
  align-items: center;
}

.learning-tab-button {
  padding: 16px 0px;
  background: none;
  border: none;
  color: var(--text-secondary, #b0b0b0);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  margin-right: 20px;
  white-space: nowrap;
  text-decoration: none;
}

.learning-tab-button:hover {
  color: var(--accent-color, #00d4ff);
  text-decoration: none;
}

.learning-tab-button.active {
  color: var(--accent-color, #00d4ff);
  border-bottom-color: var(--accent-color, #00d4ff);
  text-decoration: none;
}

.learning-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
  scroll-margin-top: 100px;
  /* Ensure content scrolls below fixed navbar */
}

.learning-tab-content.active {
  display: block;
}

/* Tab Hero Section */
.tab-hero {
  margin-bottom: 40px;
  padding: 30px 0 15px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.tab-hero-content {
  text-align: center;
}

.tab-hero-content .section-label {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-color, #00d4ff);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.tab-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 16px;
  font-family: "Outfit", sans-serif;
  line-height: 1.3;
}

.tab-hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary, #b0b0b0);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Workshop Cards */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.workshop-card {
  background: linear-gradient(
    135deg,
    var(--surface-dark, #1a1a1a) 0%,
    var(--surface-darker, #0f0f0f) 100%
  );
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.workshop-card:hover {
  border-color: var(--accent-color, #00d4ff);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
  transform: translateY(-8px);
}

.workshop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.workshop-category {
  font-size: 12px;
  color: var(--accent-color, #00d4ff);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 212, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
}

.workshop-duration {
  font-size: 12px;
  color: var(--text-secondary, #b0b0b0);
  font-weight: 500;
}

.workshop-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 12px;
  font-family: "Outfit", sans-serif;
  line-height: 1.4;
}

.workshop-description {
  font-size: 14px;
  color: var(--text-secondary, #b0b0b0);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.workshop-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}

.workshop-level {
  color: var(--accent-purple, #9d4edd);
  font-weight: 500;
  background: rgba(157, 78, 221, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
}

.workshop-capacity {
  color: var(--text-secondary, #b0b0b0);
}

/* Single card grid - centered */
.workshop-grid-single {
  grid-template-columns: minmax(300px, 480px);
  justify-content: center;
}

/* Ended Workshop Card */
.workshop-card-ended {
  opacity: 0.85;
  position: relative;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.workshop-card-ended:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.workshop-ended-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(90, 139, 110, 0.15);
  color: #5a8b6e;
  border: 1px solid rgba(90, 139, 110, 0.25);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workshop-date {
  font-size: 12px;
  color: var(--text-secondary, #b0b0b0);
  font-weight: 500;
}

.workshop-status-ended {
  color: #c45a5a;
  font-weight: 500;
  background: rgba(196, 90, 90, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.btn-ended {
  background: rgba(196, 90, 90, 0.12);
  border: 2px solid rgba(196, 90, 90, 0.4);
  color: #c45a5a;
  cursor: not-allowed;
  align-self: flex-start;
  font-weight: 600;
}

.btn-ended:disabled {
  opacity: 0.9;
  cursor: not-allowed;
}

/* Course Cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.course-card {
  background: linear-gradient(
    135deg,
    var(--surface-dark, #1a1a1a) 0%,
    var(--surface-darker, #0f0f0f) 100%
  );
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card:hover {
  border-color: var(--accent-color, #00d4ff);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
  transform: translateY(-8px);
}

.course-header {
  margin-bottom: 16px;
}

.course-category {
  font-size: 12px;
  color: var(--accent-color, #00d4ff);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 212, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
}

.course-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 12px;
  margin-top: 12px;
  font-family: "Outfit", sans-serif;
  line-height: 1.4;
}

.course-description {
  font-size: 14px;
  color: var(--text-secondary, #b0b0b0);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}

.course-duration {
  color: var(--text-secondary, #b0b0b0);
  font-weight: 500;
}

.course-level {
  color: var(--accent-purple, #9d4edd);
  font-weight: 500;
  background: rgba(157, 78, 221, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
}

.stars {
  color: #ffc107;
  font-size: 14px;
  letter-spacing: 2px;
}

.rating-count {
  color: var(--text-secondary, #b0b0b0);
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-color, #00d4ff) 0%,
    var(--accent-purple, #9d4edd) 100%
  );
  color: var(--text-dark, #000);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .learning-hub-section {
    padding: 60px 0;
  }

  .learning-tabs {
    gap: 10px;
  }

  .learning-tab-button {
    padding: 10px 16px;
    font-size: 14px;
  }

  .workshop-grid,
  .course-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .workshop-header,
  .course-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
