/* ============================================================
   TRAINING PAGE STYLES
   All training.php-specific styles live here.
   Base site styles are in style.css.
   ============================================================ */

body.training-page {
  background-color: #ffffff;
}

/* Payment Alert Banner */
.payment-alert {
  padding: 16px 0;
  text-align: center;
  border-bottom: 1px solid;
}
.payment-alert .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.payment-alert i {
  font-size: 20px;
}
.payment-alert-success {
  background-color: #d1fae5;
  border-color: #34d399;
  color: #065f46;
}
.payment-alert-info {
  background-color: #dbeafe;
  border-color: #60a5fa;
  color: #1e40af;
}

/* ---- Header/Nav contrast against dark hero ---- */
.training-page header {
  background: transparent;
}

.training-page header.scrolled {
  background: rgba(29, 53, 87, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}

.training-page .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

.training-page .nav-links a[style] {
  color: var(--warm-cream) !important;
}

.training-page .nav-links a:hover {
  color: #ffffff;
}

.training-page .open-contact {
  color: rgba(255, 255, 255, 0.85);
}

.training-page .header-btns .btn-primary {
  background-color: rgba(46, 125, 90, 0.85);
  color: #ffffff;
}

.training-page .header-btns .btn-primary:hover {
  background-color: var(--leaf-green);
}

.training-page .header-btns .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.training-page .header-btns .btn-outline:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* ---- Hero ---- */
.training-hero {
  background-color: var(--ocean-navy);
  background-image: url('images/mcs_hero_03.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding-top: 170px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* Dark overlay for text contrast */
.training-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 53, 87, 0.9) 0%, rgba(29, 53, 87, 0.75) 50%, rgba(15, 61, 58, 0.7) 100%);
  pointer-events: none;
}

/* Subtle decorative shape */
.training-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 380px;
  height: 320px;
  background: rgba(183, 215, 193, 0.12);
  border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
  pointer-events: none;
}

.training-hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.training-hero-label {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ocean-navy);
  margin-bottom: 24px;
  padding: 6px 16px;
  background: var(--sage);
  border-radius: 20px;
}

.training-hero h1 {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 24px;
  letter-spacing: -1px;
}

.training-hero h1 em {
  color: var(--sage);
  font-style: italic;
}

.training-hero-accent {
  width: 50px;
  height: 3px;
  background-color: var(--leaf-green);
  margin-bottom: 32px;
}

.training-hero-inner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 600px;
}

.training-overview {
  padding: 56px 0 10px;
  background: #ffffff;
}

.training-overview-inner {
  max-width: 920px;
  display: grid;
  gap: 14px;
}

.training-overview-inner p {
  color: var(--slate);
  font-size: 1.03rem;
  line-height: 1.75;
}

/* ---- Training Schedule Section ---- */
.training-schedule {
  padding: 100px 0;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.training-schedule-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.training-schedule-header h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--ocean-navy);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.training-schedule-header h2 em {
  color: var(--leaf-green);
  font-style: italic;
}

.training-schedule-header p {
  font-size: 1.08rem;
  color: var(--slate);
  line-height: 1.7;
}

.training-ceu-frame {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.training-ceu-frame span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(46, 125, 90, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: var(--leaf-green);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
}

/* Training Cards */
.training-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.training-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.training-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Accent stripe at top of each card */
.training-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--leaf-green), var(--sky-blue));
}

.training-card-inner {
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: start;
}

/* Date column */
.training-date {
  text-align: center;
  min-width: 100px;
}

.training-date-month {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--leaf-green);
  margin-bottom: 4px;
}

.training-date-day {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--ocean-navy);
  font-weight: 700;
}

.training-date-year {
  display: block;
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 2px;
}

/* Divider between date and content */
.training-card-divider {
  width: 1px;
  background: var(--light-gray);
  align-self: stretch;
}

/* Content column */
.training-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--ocean-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.training-content p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
}

/* Location badge */
.training-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.training-location.online {
  background: rgba(111, 168, 200, 0.15);
  color: var(--sky-blue);
}

.training-location.in-person {
  background: rgba(46, 125, 90, 0.12);
  color: var(--leaf-green);
}

.training-location i {
  font-size: 0.9rem;
}

/* In-person location details */
.training-location-detail {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 4px;
  font-weight: 400;
}

/* Card footer for register button */
.training-card-footer {
  padding: 20px 40px;
  background: rgba(46, 125, 90, 0.04);
  border-top: 1px solid rgba(46, 125, 90, 0.12);
  text-align: center;
}

.training-card-footer .btn-primary {
  background-color: var(--leaf-green);
  color: #ffffff;
  padding: 12px 28px;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.training-card-footer .btn-primary:hover {
  background-color: #3a9a6f;
}

/* ---- CTA Section ---- */
.training-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 50%, #c3e6cb 100%);
  position: relative;
  overflow: hidden;
}

.training-cta::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: rgba(46, 125, 90, 0.06);
  border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
  pointer-events: none;
}

.training-cta::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(111, 168, 200, 0.06);
  border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
  pointer-events: none;
}

.training-cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.training-cta h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--ocean-navy);
  margin-bottom: 16px;
}

.training-cta p {
  color: var(--slate);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.training-cta .btn-primary {
  background-color: var(--leaf-green);
  color: #ffffff;
  padding: 14px 32px;
  font-size: 1rem;
}

.training-cta .btn-primary:hover {
  background-color: #3a9a6f;
}

.training-pay-note {
  margin: 4px 0 12px;
  color: var(--ocean-navy);
  font-size: 0.92rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .training-hero {
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .training-hero h1 {
    font-size: 2.6rem;
  }

  .training-schedule {
    padding: 60px 0;
  }

  .training-overview {
    padding-top: 42px;
  }

  .training-schedule-header h2 {
    font-size: 2rem;
  }

  .training-card-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
  }

  .training-card-divider {
    display: none;
  }

  .training-date {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .training-date-month {
    margin-bottom: 0;
  }

  .training-location {
    margin-top: 12px;
  }

  .training-card-footer {
    padding: 16px 28px;
  }

  .training-cta h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .training-hero h1 {
    font-size: 2rem;
  }

  .training-card-inner {
    padding: 20px;
  }

  .training-date-day {
    font-size: 2rem;
  }
}
