/* ==============================
   Zestminds Academy Training Page
   Main Color: #e04423
   ============================== */

:root {
  --academy-primary: #e04423;
  --academy-primary-dark: #9f2b16;
  --academy-accent: #ff7a4d;
  --academy-soft: #fff5f1;
  --academy-soft-2: #fff0ea;
  --academy-border: rgba(224, 68, 35, 0.16);
  --academy-text: #1f2937;
  --academy-muted: #5f6c7b;
}

/* Background helpers */
.section-white {
  background: #ffffff;
}

.section-soft {
  background:
    radial-gradient(circle at top left, rgba(224, 68, 35, 0.08), transparent 30%),
    linear-gradient(135deg, #fff8f5 0%, #ffffff 52%, #fff1eb 100%);
}

.section-light-orange {
  background:
    radial-gradient(circle at top left, rgba(224, 68, 35, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 122, 77, 0.14), transparent 34%),
    linear-gradient(135deg, #fff8f5 0%, #ffffff 48%, #fff1eb 100%);
}

/* General small enhancements */
.section-label {
  color: var(--academy-primary);
}

.course-card {
  border: 1px solid rgba(224, 68, 35, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 68, 35, 0.28);
  box-shadow: 0 18px 40px rgba(224, 68, 35, 0.1);
}

/* ==============================
   Course Path Section
   ============================== */

.course-path-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--academy-border);
  box-shadow: 0 18px 45px rgba(224, 68, 35, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-path-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 55px rgba(224, 68, 35, 0.16);
  border-color: rgba(224, 68, 35, 0.35);
}

.course-path-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(224, 68, 35, 0.11);
}

.course-path-card::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 122, 77, 0.1);
}

.course-path-content {
  position: relative;
  z-index: 1;
}

.course-path-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e04423, #ff7a4d);
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 12px 24px rgba(224, 68, 35, 0.24);
}

.course-path-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(224, 68, 35, 0.1);
  color: #e04423;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.course-path-title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 14px;
}

.course-path-desc {
  color: var(--academy-muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.course-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.course-skill-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff5f1;
  color: #9f2b16;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(224, 68, 35, 0.12);
}

.path-link-list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.path-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #fff8f5;
  border: 1px solid rgba(224, 68, 35, 0.16);
  color: #1f2937;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.path-link:hover {
  background: #e04423;
  color: #ffffff;
  border-color: #e04423;
  text-decoration: none;
}

.path-link i {
  font-size: 13px;
  color: #e04423;
  transition: transform 0.25s ease, color 0.25s ease;
}

.path-link:hover i {
  color: #ffffff;
  transform: translateX(4px);
}

.path-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  background: #fff3ee;
  color: #e04423;
  border: 1px solid rgba(224, 68, 35, 0.22);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(224, 68, 35, 0.08);
  transition: all 0.25s ease;
}

.path-cta i {
  color: #e04423;
  transition: transform 0.25s ease, color 0.25s ease;
}

.path-cta:hover {
  background: #e04423;
  color: #ffffff;
  border-color: #e04423;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(224, 68, 35, 0.18);
}

.path-cta:hover i {
  color: #ffffff;
  transform: translateX(4px);
}

.training-note-box {
  padding: 24px 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(224, 68, 35, 0.18);
  box-shadow: 0 14px 34px rgba(224, 68, 35, 0.08);
}

/* ==============================
   Why Zestminds Section
   ============================== */

.why-zestminds-section {
  position: relative;
  overflow: hidden;
}

.why-zestminds-section::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(224, 68, 35, 0.08);
}

.why-zestminds-section::after {
  content: "";
  position: absolute;
  bottom: -140px;
  right: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(224, 68, 35, 0.07);
}

.why-zestminds-section .container-fluid {
  position: relative;
  z-index: 1;
}

.why-feature-card {
  padding: 26px 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(224, 68, 35, 0.14);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.why-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 68, 35, 0.35);
  box-shadow: 0 22px 45px rgba(224, 68, 35, 0.13);
}

.why-feature-icon,
.info-mini-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e04423, #ff7a4d);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  box-shadow: 0 12px 24px rgba(224, 68, 35, 0.22);
}

.why-feature-card h3,
.info-mini-card h3,
.step-card h3,
.faq-card h3 {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 10px;
}

.why-feature-card p,
.info-mini-card p,
.step-card p,
.faq-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #5f6c7b;
  margin-bottom: 0;
}

/* ==============================
   Program Options Image Cards
   ============================== */

.program-options-section {
  position: relative;
}

.program-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(224, 68, 35, 0.14);
  box-shadow: 0 14px 35px rgba(31, 41, 55, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 68, 35, 0.35);
  box-shadow: 0 24px 50px rgba(224, 68, 35, 0.12);
}

.program-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #fff5f1;
}

.program-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(224, 68, 35, 0.02) 0%, rgba(224, 68, 35, 0.12) 100%);
  pointer-events: none;
}

.program-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.program-card:hover .program-img-wrap img {
  transform: scale(1.05);
}

.program-card .card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: #fff3ee;
  color: #e04423;
  border: 1px solid rgba(224, 68, 35, 0.18);
  box-shadow: 0 8px 18px rgba(224, 68, 35, 0.12);
}

.program-card .btn-learn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 15px;
  border-radius: 12px;
  background: #fff3ee;
  color: #e04423;
  border: 1px solid rgba(224, 68, 35, 0.22);
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
}

.program-card .btn-learn:hover {
  background: #e04423;
  color: #ffffff;
  border-color: #e04423;
  text-decoration: none;
}

/* ==============================
   Info / Batch / Who Can Join Cards
   ============================== */

.info-mini-card {
  height: 100%;
  padding: 26px 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(224, 68, 35, 0.14);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.07);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.info-mini-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 68, 35, 0.35);
  box-shadow: 0 22px 45px rgba(224, 68, 35, 0.12);
}

/* ==============================
   Step Cards
   ============================== */

.step-card {
  position: relative;
  height: 100%;
  padding: 30px 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(224, 68, 35, 0.14);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.07);
  overflow: hidden;
}

.step-number {
  display: inline-flex;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: rgba(224, 68, 35, 0.22);
  margin-bottom: 18px;
}

/* ==============================
   FAQ Cards
   ============================== */

.faq-card {
  height: 100%;
  padding: 26px 24px;
  border-radius: 20px;
  background: #ffffff;
  border-left: 4px solid #e04423;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
}

/* Mobile */
@media (max-width: 767px) {
  .course-path-card,
  .why-feature-card,
  .info-mini-card,
  .step-card,
  .faq-card {
    padding: 22px;
    border-radius: 20px;
  }

  .course-path-title {
    font-size: 21px;
  }

  .program-img-wrap {
    height: 190px;
  }

  .path-link {
    align-items: flex-start;
  }
}

/* Trainer and Classroom Image Adjustments */
.classroom-img-wrap {
  height: 180px;
  border-radius: 18px;
  border: 1px solid rgba(224, 68, 35, 0.14);
}

.classroom-img-wrap img {
  border-radius: 18px;
}

.program-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.program-card .card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #fff5f1;
  color: #9f2b16;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(224, 68, 35, 0.12);
}

@media (max-width: 767px) {
  .classroom-img-wrap {
    height: 190px;
  }
}

/* Campus Events Smooth Infinite Auto Scroll + Flip Cards */
.campus-events-auto-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-bottom: 10px;
}

.campus-events-auto-track {
  display: flex;
  width: max-content;
  animation: campusEventsScroll 75s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.campus-events-auto-wrap:hover .campus-events-auto-track {
  animation-play-state: paused;
}

.campus-events-auto-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  flex: 0 0 auto;
  padding-right: 24px;
}

.campus-event-auto-card {
  flex: 0 0 370px;
  width: 370px;
  max-width: 370px;
  height: 430px;
  perspective: 1200px;
  transform: translateZ(0);
}

.event-flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 22px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.65s ease;
  will-change: transform;
}

.campus-event-auto-card:hover .event-flip-card,
.campus-event-auto-card:focus-within .event-flip-card {
  transform: rotateY(180deg);
}

.event-flip-front,
.event-flip-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  transform: translateZ(0);
}

.event-flip-front {
  transform: rotateY(0deg);
  z-index: 2;
}

.event-flip-back {
  transform: rotateY(180deg);
  z-index: 1;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #1f2937;
}

.event-flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-flip-front::after {
  content: "";
  position: absolute;
  inset: 0;
 
  z-index: 1;
}

.event-flip-front-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #ffffff;
}

.event-flip-front-content h3 {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.25;
  margin: 10px 0 0;
}

.event-flip-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 50px;
  background: rgba(224, 68, 35, 0.12);
  color: #e04423;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.event-flip-front-content .event-flip-badge {
  background: rgba(255, 255, 255, 0.92);
  color: #e04423;
}

.event-flip-back h3 {
  color: #111827;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.event-flip-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #374151;
}

.event-flip-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-flip-desc {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.event-flip-link {
  margin-top: auto;
  width: fit-content;
}

@keyframes campusEventsScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 767px) {
  .campus-event-auto-card {
    flex: 0 0 82vw;
    width: 82vw;
    max-width: 82vw;
    height: 420px;
  }

  .campus-events-auto-track {
    animation-duration: 65s;
  }

  .event-flip-front-content h3,
  .event-flip-back h3 {
    font-size: 20px;
  }

  .event-flip-back {
    padding: 22px;
  }
}