/* =============================================
   Training Page Styles
   Prefix: tw- (TechWise custom)
   Aesthetic: Bold editorial dark — structured panels,
   generous spacing, layered depth, lime accents
   ============================================= */

/* ---- Hero Section ---- */
.tw-training-hero {
  padding: 220px 0 100px;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

/* Subtle radial glow behind hero text */
.tw-training-hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(196, 238, 24, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Fine grid texture overlay */
.tw-training-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.tw-hero-inner {
  position: relative;
  z-index: 1;
}

.tw-training-hero .tw-program-badge {
  margin-bottom: 28px;
}

.tw-hero-label {
  display: block;
  font-family: var(--tp-ff-dm), 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.tw-training-hero-title {
  font-family: var(--tp-ff-heading), 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.tw-training-hero-title .tw-text-accent {
  color: var(--tp-theme-primary, #c4ee18);
}

.tw-training-hero-desc {
  font-family: var(--tp-ff-dm), 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
}

/* Hero stat counters */
.tw-hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tw-hero-stat-number {
  font-family: var(--tp-ff-heading), 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--tp-theme-primary, #c4ee18);
  line-height: 1;
  margin-bottom: 4px;
}

.tw-hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll indicator */
.tw-scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--tp-ff-dm), 'DM Sans', sans-serif;
}

.tw-scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.tw-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--tp-theme-primary, #c4ee18);
  animation: tw-scroll-pulse 2s ease-in-out infinite;
}

@keyframes tw-scroll-pulse {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

.tw-scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: all 0.3s ease;
  animation: tw-bounce 2s ease-in-out infinite;
}

.tw-scroll-btn:hover {
  border-color: var(--tp-theme-primary, #c4ee18);
  color: var(--tp-theme-primary, #c4ee18);
  background: rgba(196, 238, 24, 0.08);
}

@keyframes tw-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---- Course Cards Section ---- */
.tw-courses-section {
  padding: 100px 0 80px;
  position: relative;
}

.tw-courses-section-title {
  font-family: var(--tp-ff-heading), 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--tp-theme-primary, #c4ee18);
  margin-bottom: 56px;
}

/* Course panel — full-width stacked layout */
.tw-course-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #111112;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.4s ease;
  margin-bottom: 24px;
}

.tw-course-panel:hover {
  border-color: rgba(196, 238, 24, 0.12);
}

/* Left side: Course info */
.tw-course-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
}

.tw-course-info .tw-program-badge {
  align-self: flex-start;
  margin-bottom: 20px;
}

.tw-course-info .tw-program-name {
  font-family: var(--tp-ff-heading), 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tw-course-info .tw-program-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* Right side: Details + CTA */
.tw-course-aside {
  padding: 48px 44px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tw-course-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.tw-course-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--tp-ff-dm), 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.tw-course-meta-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(196, 238, 24, 0.08);
}

.tw-course-meta-icon svg {
  width: 16px;
  height: 16px;
  color: var(--tp-theme-primary, #c4ee18);
}

.tw-course-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tw-course-cta .tw-program-price {
  font-family: var(--tp-ff-heading), 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0;
}

.tw-course-cta .tw-price-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

.tw-btn-enroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--tp-theme-primary, #c4ee18);
  color: #030303;
  border: none;
  border-radius: 28px;
  font-family: var(--tp-ff-heading), 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.tw-btn-enroll:hover {
  background: #d4f53a;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(196, 238, 24, 0.25);
  color: #030303;
}

.tw-btn-enroll svg {
  transition: transform 0.3s ease;
}

.tw-btn-enroll:hover svg {
  transform: translateX(4px);
}

/* ---- Registration Form Section ---- */
.tw-training-form-section {
  padding: 80px 0 120px;
  position: relative;
}

.tw-training-form-section .tw-courses-section-title {
  margin-bottom: 40px;
}

.tw-training-form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #111112;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 960px;
  margin: 0 auto;
}

/* Left panel: Why register */
.tw-form-sidebar {
  padding: 48px 44px;
  background: linear-gradient(160deg, rgba(196, 238, 24, 0.06) 0%, transparent 60%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tw-form-sidebar-title {
  font-family: var(--tp-ff-heading), 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tw-form-sidebar-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 32px;
}

.tw-form-perks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tw-form-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.tw-form-perk-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(196, 238, 24, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.tw-form-perk-icon svg {
  width: 10px;
  height: 10px;
  color: var(--tp-theme-primary, #c4ee18);
}

/* Right panel: Form */
.tw-training-form-wrapper {
  padding: 48px 44px;
}

.tw-training-form-wrapper .tw-form-title {
  font-family: var(--tp-ff-heading), 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}

/* ---- Custom Select ---- */
.tw-form-select {
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 40px 0 16px;
  font-family: var(--tp-ff-dm), 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

.tw-form-select:focus {
  border-color: var(--tp-theme-primary, #c4ee18);
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23c4ee18' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.tw-form-select.tw-input-error {
  border-color: #ff4d4d;
}

.tw-form-select option {
  background: #1a1a1b;
  color: #fff;
  padding: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .tw-course-panel {
    grid-template-columns: 1fr;
  }

  .tw-course-aside {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .tw-training-form-layout {
    grid-template-columns: 1fr;
  }

  .tw-form-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 767px) {
  .tw-training-hero {
    padding: 160px 0 70px;
  }

  .tw-training-hero-title {
    font-size: 38px;
  }

  .tw-training-hero-desc {
    font-size: 16px;
  }

  .tw-hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  .tw-hero-stat-number {
    font-size: 28px;
  }

  .tw-courses-section {
    padding: 60px 0 60px;
  }

  .tw-course-info,
  .tw-course-aside {
    padding: 32px 28px;
  }

  .tw-course-info .tw-program-name {
    font-size: 22px;
  }

  .tw-course-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .tw-course-cta .tw-program-price {
    font-size: 26px;
  }

  .tw-training-form-section {
    padding: 40px 0 80px;
  }

  .tw-form-sidebar,
  .tw-training-form-wrapper {
    padding: 32px 24px;
  }

  .tw-form-sidebar-title {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .tw-training-hero {
    padding: 140px 0 50px;
  }

  .tw-training-hero-title {
    font-size: 30px;
  }

  .tw-hero-stats {
    gap: 24px;
  }

  .tw-hero-stat-number {
    font-size: 24px;
  }

  .tw-course-info,
  .tw-course-aside {
    padding: 24px 20px;
  }

  .tw-course-meta-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .tw-course-meta-icon svg {
    width: 14px;
    height: 14px;
  }

  .tw-form-sidebar,
  .tw-training-form-wrapper {
    padding: 24px 20px;
  }

  .tw-btn-submit,
  .tw-btn-enroll {
    font-size: 13px;
  }
}
