/* BASI Course & Level Single Pages - Perfect Modern Design */

/* Main Image */
.lesson-main-image {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  position: relative;
}

.lesson-main-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  pointer-events: none;
}

.lesson-main-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.lesson-main-image:hover img {
  transform: scale(1.05);
}

/* Content Cards */
.lesson-content-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.lesson-content-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.lesson-content-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
}

.lesson-content-card h3 i {
  font-size: 1.75rem;
}

.lesson-description {
  color: #475569;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* BASI Levels Grid */
.basi-levels-grid {
  display: grid;
  gap: 25px;
}

.basi-level-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.basi-level-card:hover {
  border-color: #13314f;
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.15);
  transform: translateY(-4px);
}

.basi-level-header {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  border-bottom: 2px solid #e2e8f0;
}

.basi-level-image {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.basi-level-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.basi-level-card:hover .basi-level-image img {
  transform: scale(1.1);
}

.basi-level-title-section {
  flex: 1;
}

.basi-level-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1e3a8a 0%, #13314f 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.basi-level-title-section h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}

.basi-level-body {
  padding: 25px;
}

.basi-level-description {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1rem;
}

.basi-level-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}

.basi-level-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
  font-size: 0.95rem;
}

.basi-level-detail-item i {
  color: #13314f;
  font-size: 1.25rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.basi-level-footer {
  padding: 25px;
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
}

.btn-view-level {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1e3a8a 0%, #13314f 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 1.05rem;
}

.btn-view-level:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
  color: white;
  text-decoration: none;
}

.btn-view-level i {
  transition: transform 0.3s ease;
}

.btn-view-level:hover i {
  transform: translateX(4px);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: start;
  gap: 15px;
  padding: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.feature-item i {
  font-size: 1.25rem;
  color: #10b981;
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-item span {
  color: #475569;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Sidebar Cards */
.sidebar-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.sidebar-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
}

.sidebar-card h4 i {
  font-size: 1.5rem;
}

.sidebar-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 2px solid #f1f5f9;
}

.sidebar-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
}

.info-value {
  color: #1e293b;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Related Courses List */
.related-courses-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-course-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.related-course-item:hover {
  background: #eff6ff;
  transform: translateX(4px);
  text-decoration: none;
  border-color: #13314f;
}

.related-course-item img {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-course-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.related-course-info .text-muted {
  font-size: 0.875rem;
  color: #64748b;
}

/* Alert */
.alert {
  padding: 20px 24px;
  border-radius: 12px;
  border: none;
}

.alert-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e3a8a;
  border-left: 4px solid #13314f;
}

.alert i {
  margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .basi-level-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .basi-level-image {
    width: 100%;
    height: 180px;
  }

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

@media (max-width: 768px) {
  .lesson-content-card {
    padding: 25px 20px;
  }

  .basi-level-card {
    margin-bottom: 20px;
  }

  .basi-level-header {
    padding: 20px;
  }

  .basi-level-body,
  .basi-level-footer {
    padding: 20px;
  }

  .sidebar-card {
    padding: 25px 20px;
  }

  .basi-level-details {
    flex-direction: column;
    gap: 15px;
  }
}

/* Level Single Page Specific Styles */

/* Level Detail Hero */
.level-detail-hero {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.level-detail-hero:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.level-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1e3a8a 0%, #13314f 100%);
  color: white;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.level-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.hero-meta-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.hero-meta-item.highlight {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #13314f;
}

.hero-meta-item i {
  font-size: 2rem;
  color: #13314f;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  flex-shrink: 0;
}

.hero-meta-item .meta-label {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 600;
}

.hero-meta-item strong {
  display: block;
  font-size: 1.25rem;
  color: #1e293b;
  font-weight: 700;
}

/* Level Content Sections */
.level-content-section {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.level-content-section:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.level-content-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
}

.level-content-section h3 i {
  font-size: 1.75rem;
}

/* Included Grid */
.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.included-item {
  display: flex;
  align-items: start;
  gap: 15px;
  padding: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.included-item:hover {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.included-item i {
  font-size: 1.25rem;
  color: #10b981;
  margin-top: 2px;
  flex-shrink: 0;
}

.included-item span {
  color: #475569;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Inquiry Form Section */
.level-inquiry-section {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.inquiry-header {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 2px solid #f1f5f9;
}

.inquiry-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.inquiry-header p {
  margin: 0;
  line-height: 1.6;
}

.modern-inquiry-form {
  margin-top: 25px;
}

/* Modern Form Styles */
.form-floating-modern {
  position: relative;
  margin-bottom: 25px;
}

.form-control-modern {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

.form-control-modern:focus {
  border-color: #13314f;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  outline: none;
}

.form-control-modern::placeholder {
  color: #94a3b8;
}

.form-floating-modern label {
  position: absolute;
  top: -12px;
  left: 15px;
  background: white;
  padding: 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
}

.form-control-modern.is-invalid {
  border-color: #ef4444;
}

.invalid-feedback {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 6px;
  display: block;
}

.btn-submit-modern {
  width: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, #13314f 100%);
  color: white;
  padding: 18px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-submit-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

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

/* Sidebar Modern Cards */
.sidebar-modern-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.sidebar-modern-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.sidebar-modern-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-modern-card h4 i {
  font-size: 1.5rem;
}

.sidebar-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 2px solid #f1f5f9;
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-row.highlight {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 15px 20px;
  border-radius: 12px;
  border: 2px solid #13314f;
}

.detail-label {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
}

.detail-value {
  font-size: 1rem;
  color: #1e293b;
  font-weight: 700;
}

.detail-value-price {
  font-size: 1.5rem;
  color: #1e3a8a;
  font-weight: 800;
}

.detail-link {
  color: #13314f;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.detail-link:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

/* CTA Card */
.sidebar-cta-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #13314f 100%);
  border-radius: 20px;
  padding: 35px;
  text-align: center;
  color: white;
  margin-bottom: 25px;
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
  border: none;
}

.cta-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.sidebar-cta-card h4 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.sidebar-cta-card p {
  opacity: 0.95;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  background: white;
  color: #1e3a8a;
  padding: 14px 32px;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #1e3a8a;
}

/* Other Levels List */
.other-levels-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.other-level-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.other-level-item:hover {
  background: #eff6ff;
  border-color: #13314f;
  transform: translateX(4px);
  text-decoration: none;
}

.other-level-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px 0;
}

.other-level-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: #64748b;
}

.other-level-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.other-level-meta i {
  color: #13314f;
}

.other-level-item > i {
  color: #94a3b8;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.other-level-item:hover > i {
  color: #13314f;
  transform: translateX(4px);
}

/* Success Alert */
.alert-success {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
  padding: 18px 24px;
  margin-bottom: 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.alert-success i {
  font-size: 1.25rem;
}

/* Additional Responsive */
@media (max-width: 992px) {
  .level-hero-meta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .level-detail-hero,
  .level-content-section,
  .level-inquiry-section {
    padding: 25px 20px;
  }

  .sidebar-modern-card,
  .sidebar-cta-card {
    padding: 25px 20px;
  }

  .hero-meta-item {
    padding: 15px;
  }

  .form-control-modern {
    padding: 16px 18px;
  }

  .btn-submit-modern {
    padding: 16px 28px;
  }
}
