/* ========================================================
   NEXUSPAY - HOMELEARN (EDUCATION MODULE STYLES)
   ======================================================== */

/* Header da Página */
.learn-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2.5rem;
}

.learn-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-pure);
  margin: 0.5rem 0;
}

.learn-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0.75rem 0 0;
  line-height: 1.6;
}

/* Seção de Cursos */
.courses-section {
  animation: fadeInUp 0.8s var(--ease-out-expo);
}

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

/* Card do Curso (Standardized Glassmorphic Cards) */
.course-card {
  display: flex;
  flex-direction: column;
  height: 660px; /* Locked height for perfect parallel alignment */
  background: rgba(24, 24, 27, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.course-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  transform: translateY(-4px);
}

.course-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.course-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.course-card:nth-child(2) .course-icon {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.course-card:nth-child(3) .course-icon {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.course-info {
  flex: 1;
}

.course-title {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--text-pure);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.course-lessons {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--accent-blue);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Container de Aulas (Equal Height Scrollable Modules with custom thin bars) */
.lessons-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 6px;
  flex: 1;
}

.lessons-container::-webkit-scrollbar {
  width: 4px;
}
.lessons-container::-webkit-scrollbar-track {
  background: transparent;
}
.lessons-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.lessons-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Item da Aula */
.lesson-item {
  padding: 1.2rem;
  background: rgba(9, 9, 11, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.lesson-item:hover {
  background: rgba(24, 24, 27, 0.7);
  border-color: var(--border-light);
}

.lesson-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.lesson-number {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.lesson-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.4rem 0;
  line-height: 1.4;
}

.lesson-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Responsive YouTube Video Wrapper (100% responsivo) */
.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsividade de Módulos */
@media (max-width: 991px) {
  .course-card {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .learn-title {
    font-size: 2rem;
  }
  .learn-subtitle {
    font-size: 1rem;
  }
  .course-card {
    height: 520px;
    padding: 1.5rem;
  }
  .course-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }
  .lessons-container {
    max-height: 380px;
  }
}

/* Base Animate */
html {
  scroll-behavior: smooth;
}
/* Glassmorphic Player Toggle Button */
.btn-toggle-player {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: -6px;
  margin-bottom: 12px;
}

.btn-toggle-player:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.22);
  transform: translateY(-1px);
}

.btn-toggle-player i {
  font-size: 0.9rem;
}


