
/* ===== COURSES FILTER ===== */
.courses-filter {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.courses-filter-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: #1f488a;
  color: #1f488a;
}
.filter-btn.active {
  background: #1f488a;
  border-color: #1f488a;
  color: #fff;
}

/* ===== COURSES LIST ===== */
.courses-wrap {
  background: #f8fafc;
  padding: 40px 0 60px;
  min-height: 500px;
}
.courses-container {
  max-width: 1200px;
  margin: 0 auto;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== COURSE CARD ===== */
.course-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.course-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-5px);
}
.course-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ff6b6b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  z-index: 1;
}
.course-card-badge.recommend {
  background: #ffa500;
}
.course-card-badge.vip {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #333;
}
.course-head {
  background: linear-gradient(135deg, #1f488a 0%, #2a5fa8 100%);
  padding: 30px 20px;
  text-align: center;
}
.course-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.course-type {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.course-body {
  padding: 24px;
}
.course-features {
  list-style: none;
  margin-bottom: 20px;
}
.course-features li {
  font-size: 14px;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  align-items: center;
  gap: 8px;
}
.course-features li:last-child {
  border-bottom: none;
}
.course-features li::before {
  content: '✓';
  color: #1f488a;
  font-weight: bold;
}
.course-price {
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.course-price .amount {
  font-size: 28px;
  font-weight: 700;
  color: #ff6b6b;
}
.course-price .original {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}
.course-price .unit {
  font-size: 14px;
  color: #999;
}
.course-actions {
  display: flex;
  gap: 12px;
}
.course-btn {
  flex: 1;
  display: inline-block;
  background: #1f488a;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.course-btn:hover {
  background: #2a5fa8;
}
.course-btn-outline {
  flex: 1;
  display: inline-block;
  background: #fff;
  color: #1f488a;
  text-align: center;
  padding: 12px;
  border: 1px solid #1f488a;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.course-btn-outline:hover {
  background: #1f488a;
  color: #fff;
}

/* ===== PAGINATION ===== */
.courses-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
.courses-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
}
.courses-pagination a:hover {
  border-color: #1f488a;
  color: #1f488a;
}
.courses-pagination a.active {
  background: #1f488a;
  border-color: #1f488a;
  color: #fff;
}
.courses-pagination .disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* ===== COURSE DETAIL ===== */
.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}
.course-detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
}
.detail-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ff6b6b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
}
.detail-header {
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}
.detail-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.detail-subtitle {
  font-size: 14px;
  color: #999;
}
.detail-price-box {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 1px solid #ffe0e0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price-label {
  font-size: 14px;
  color: #999;
}
.price-amount {
  font-size: 32px;
  font-weight: 700;
  color: #ff6b6b;
}
.price-original {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}
.detail-tags {
  display: flex;
  gap: 8px;
}
.detail-tags .tag {
  background: #1f488a;
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
}
.detail-section {
  margin-bottom: 50px;
}
.detail-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-icon {
  width: 24px;
  height: 24px;
  background: #1f488a;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.detail-section > p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}
.detail-features {
  list-style: none;
}
.detail-features li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.detail-features li:last-child {
  border-bottom: none;
}
.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.detail-features strong {
  display: block;
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
}
.detail-features p {
  font-size: 13px;
  color: #888;
}
.detail-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.highlight-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
}
.highlight-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.highlight-text strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}
.highlight-text p {
  font-size: 12px;
  color: #888;
}
.detail-process {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process-step-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
}
.step-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1f488a 0%, #2a5fa8 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.step-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.step-content p {
  font-size: 13px;
  color: #888;
}
.detail-notes {
  list-style: none;
  background: #fffbf0;
  border: 1px solid #ffe4a0;
  border-radius: 8px;
  padding: 20px;
}
.detail-notes li {
  font-size: 14px;
  color: #666;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-notes li::before {
  content: '•';
  color: #ffa500;
  font-weight: bold;
}
.detail-actions {
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.back-list {
  color: #1f488a;
  font-size: 14px;
}

/* ===== SIDEBAR ===== */
.course-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sidebar-price {
  background: linear-gradient(135deg, #1f488a 0%, #2a5fa8 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sidebar-price-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff6b6b;
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 0 12px 0 8px;
}
.sidebar-price-main {
  padding: 20px 0 10px;
}
.big-price {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}
.big-original {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: line-through;
  margin-top: 4px;
}
.sidebar-price-info {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.sidebar-btn {
  display: block;
  background: #fff;
  color: #1f488a;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.sidebar-btn:hover {
  background: #f0f0f0;
}
.sidebar-btn-outline {
  display: block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}
.sidebar-btn-outline:hover {
  background: rgba(255,255,255,0.25);
}
.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding-bottom: 12px;
  border-bottom: 2px solid #1f488a;
  margin-bottom: 16px;
}
.sidebar-course-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  transition: background 0.2s;
}
.sidebar-course-item:hover {
  background: #eee;
}
.sidebar-course-name {
  display: block;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.sidebar-course-price {
  display: block;
  font-size: 13px;
  color: #ff6b6b;
  margin-top: 2px;
}
.sidebar-course-arrow {
  color: #999;
  font-size: 16px;
}
.sidebar-contact {
  text-align: center;
}
.sidebar-contact .contact-phone {
  font-size: 24px;
  font-weight: 700;
  color: #1f488a;
  margin-bottom: 15px;
}
.sidebar-contact .contact-time {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}
.contact-btn {
  display: inline-block;
  background: #fff;
  color: #1f488a;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 2px #1f488a solid;
}
.contact-btn:hover {
  background: #f0f0f0;
}

/* ===== REGISTER FORM ===== */
.register-form-wrap {
  background: #f8fafc;
  border-radius: 10px;
  padding: 24px;
}
.register-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.register-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.register-form-group.full {
  grid-column: 1 / -1;
}
.register-form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.register-form-group .required {
  color: #ff6b6b;
}
.register-form-group input,
.register-form-group select,
.register-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.2s;
}
.register-form-group input:focus,
.register-form-group select:focus,
.register-form-group textarea:focus {
  border-color: #1f488a;
  outline: none;
}
.register-form-group input::placeholder,
.register-form-group textarea::placeholder {
  color: #bbb;
}
.register-form-group select {
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}
.register-form-group textarea {
  resize: vertical;
  min-height: 90px;
}
.captcha-wrap {
  display: flex;
  gap: 10px;
}
.captcha-wrap input {
  flex: 1;
}
.captcha-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #fff;
  font-size: 13px;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  border: 1px #1f488a solid;
}

.captcha-btn.counting {
  background: #ccc;
  cursor: not-allowed;
}
.register-form-submit {
  text-align: center;
  padding-top: 8px;
}
.register-submit-btn {
  display: inline-block;
  background: linear-gradient(135deg, #1f488a 0%, #2a5fa8 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 60px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.register-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.register-tip {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
}
.register-tip a {
  color: #1f488a;
}

@media (max-width: 600px) {
  .register-form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 960px) {
 .courses-wrap{
  padding: 20px 3%;
 }
  .courses-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }
  .courses-filter-box {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  .course-detail-layout {
    grid-template-columns: 1fr;
  }
  .course-detail-sidebar {
    order: 2;
  }
  .course-detail-card {
    padding: 20px;
  }
  .detail-header h1 {
    font-size: 22px;
  }
  .detail-price-box {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .detail-highlights {
    grid-template-columns: 1fr;
  }
  .sidebar-price{
    display: none;
  }
}
