/* ==========================================================
   TRAINING PAGE
   Zenith Solutions Limited
   Version 7.0
========================================================== */

/* ==========================================================
   VARIABLES
========================================================== */

:root {
  --primary: #262871;
  --secondary: #6c385e;

  --primary-light: #eef2ff;
  --secondary-light: #f8f3f7;

  --dark: #0f172a;
  --text: #475569;
  --border: #e2e8f0;
  --light: #ffffff;

  --hero-gradient: linear-gradient(
    135deg,
    #262871 0%,
    #46307b 55%,
    #6c385e 100%
  );
}

body {
  margin: 0;
  background: #f8fafc;
  color: var(--dark);
  overflow-x: hidden;
}

/* ==========================================================
   COMMON
========================================================== */

section {
  position: relative;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);

  font-weight: 800;

  color: var(--primary);
}

.section-subtitle {
  display: inline-block;

  letter-spacing: 4px;

  text-transform: uppercase;

  color: var(--secondary);

  font-weight: 600;
}

.section-text {
  color: var(--text);

  line-height: 1.9;

  margin-top: 24px;
}
/* ==========================================================
   HERO
========================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--navbar-height-desktop));
  min-height: calc(116dvh - var(--navbar-height-desktop));
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: 34px 0 26px;
  box-sizing: border-box;
  background: var(--hero-gradient);
  color: #fff;
}

.hero::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 255, 255, 0.1),
      transparent 40%
    );

  pointer-events: none;
}

.hero .container,
.hero .max-w-7xl {
  position: relative;

  z-index: 2;
}

.hero-subtitle {
  display: inline-flex;

  align-items: center;

  gap: 0.75rem;

  padding: 0.65rem 1.3rem;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(14px);

  text-transform: uppercase;

  letter-spacing: 2px;

  font-size: 0.82rem;

  font-weight: 700;
}

.hero-title {
  margin-top: 24px;

  font-size: clamp(2.7rem, 5vw, 4.5rem);

  font-weight: 800;

  line-height: 1.1;
}

.hero-text {
  margin-top: 30px;

  max-width: 640px;

  color: rgba(255, 255, 255, 0.88);

  line-height: 1.9;

  font-size: 1.05rem;
}

.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 18px;

  margin-top: 42px;
}
/* ==========================================================
   HERO CARDS
========================================================== */

.hero-card {
  position: relative;

  overflow: hidden;

  border-radius: 32px;

  background: rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(20px);

  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.18);

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);

  transition: all 0.35s ease;
}

.hero-card:hover {
  transform: translateY(-10px);

  background: rgba(255, 255, 255, 0.15);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.hero-card::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 45%;

  height: 100%;

  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.1),
    transparent
  );

  pointer-events: none;
}

.hero-card:hover {
  transform: translateY(-10px);

  background: rgba(255, 255, 255, 0.16);
}

.hero-card i {
  font-size: 2.8rem;

  margin-bottom: 18px;
}

.hero-card h3 {
  font-size: 2rem;

  font-weight: 700;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.88);

  line-height: 1.8;
}
/* ==========================================================
   FLOATING SHAPES
========================================================== */

.hero-shape {
  position: absolute;

  border-radius: 50%;

  filter: blur(60px);

  opacity: 0.3;
}

.hero-shape.one {
  width: 320px;

  height: 320px;

  background: #7c3aed;

  top: -80px;

  right: -80px;
}

.hero-shape.two {
  width: 260px;

  height: 260px;

  background: #2563eb;

  bottom: -70px;

  left: -70px;
}
/* ==========================================================
   TRAINING PROGRAMS
========================================================== */

.training-programs {
  padding: 110px 0;

  background: #ffffff;
}

.program-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 32px;

  margin-top: 70px;
}

.program-card {
  position: relative;

  background: #ffffff;

  border: 1px solid var(--border);

  border-radius: 28px;

  overflow: hidden;

  transition: 0.35s ease;

  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.program-card:hover {
  transform: translateY(-12px);

  border-color: rgba(38, 40, 113, 0.18);

  box-shadow: 0 30px 70px rgba(38, 40, 113, 0.1);
}

.program-image {
  height: 220px;

  overflow: hidden;
}

.program-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 0.6s;
}

.program-card:hover img {
  transform: scale(1.08);
}

.program-body {
  padding: 34px;
}

.program-category {
  display: inline-flex;

  align-items: center;

  padding: 0.45rem 1rem;

  border-radius: 999px;

  background: var(--primary-light);

  color: var(--primary);

  font-size: 0.82rem;

  font-weight: 700;

  margin-bottom: 18px;
}

.program-title {
  font-size: 1.55rem;

  font-weight: 800;

  color: var(--dark);

  margin-bottom: 16px;
}

.program-text {
  color: var(--text);

  line-height: 1.9;

  margin-bottom: 28px;
}
/* ==========================================================
   COURSE FEATURES
========================================================== */

.feature-list {
  display: grid;

  gap: 14px;
}

.feature-item {
  display: flex;

  align-items: flex-start;

  gap: 14px;
}

.feature-item i {
  color: var(--primary);

  margin-top: 4px;

  font-size: 1rem;
}

.feature-item span {
  color: var(--text);

  line-height: 1.8;
}
/* ==========================================================
   PROGRAM FOOTER
========================================================== */

.program-footer {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 30px;

  padding-top: 24px;

  border-top: 1px solid var(--border);
}

.program-meta {
  display: flex;

  gap: 22px;

  flex-wrap: wrap;
}

.program-meta div {
  display: flex;

  align-items: center;

  gap: 8px;

  color: var(--text);

  font-size: 0.92rem;
}

.program-meta i {
  color: var(--secondary);
}

.program-footer .btn {
  border-radius: 999px;

  padding: 0 26px;
}
/* ==========================================================
   CARD ACCENT
========================================================== */

.program-card::before {
  content: "";

  position: absolute;

  left: 0;

  top: 0;

  width: 100%;

  height: 5px;

  background: linear-gradient(90deg, var(--primary), var(--secondary));

  transform: scaleX(0);

  transform-origin: left;

  transition: 0.4s;
}

.program-card:hover::before {
  transform: scaleX(1);
}
/* ==========================================================
   LEARNING JOURNEY
========================================================== */

.learning-journey {
  padding: 110px 0;

  background: #f8fafc;
}

.journey-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 30px;

  margin-top: 70px;
}

.journey-step {
  position: relative;

  background: #fff;

  border: 1px solid var(--border);

  border-radius: 28px;

  padding: 42px 30px;

  text-align: center;

  transition: 0.35s ease;

  overflow: hidden;
}

.journey-step:hover {
  transform: translateY(-10px);

  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);

  border-color: rgba(38, 40, 113, 0.18);
}

.journey-number {
  width: 70px;

  height: 70px;

  margin: auto;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.5rem;

  font-weight: 800;

  color: #fff;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.journey-title {
  margin-top: 24px;

  font-size: 1.35rem;

  font-weight: 700;

  color: var(--dark);
}

.journey-text {
  margin-top: 18px;

  color: var(--text);

  line-height: 1.9;
}
/* ==========================================================
   TRAINING STATISTICS
========================================================== */

.training-stats {
  padding: 110px 0;

  background: var(--hero-gradient);

  color: #fff;
}

.stats-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 28px;

  margin-top: 70px;
}

.stat-box {
  padding: 42px 25px;

  text-align: center;

  border-radius: 26px;

  background: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(255, 255, 255, 0.16);

  backdrop-filter: blur(18px);

  transition: 0.35s;
}

.stat-box:hover {
  transform: translateY(-10px);

  background: rgba(255, 255, 255, 0.15);
}

.stat-box h3 {
  font-size: 3rem;

  font-weight: 800;
}

.stat-box p {
  margin-top: 14px;

  color: rgba(255, 255, 255, 0.88);
}
/* ==========================================================
   CERTIFICATION
========================================================== */

.certification {
  padding: 110px 0;

  background: #fff;
}

.cert-card {
  display: flex;

  gap: 35px;

  align-items: center;

  padding: 45px;

  border-radius: 30px;

  border: 1px solid var(--border);

  background: #fff;

  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.cert-icon {
  width: 110px;

  height: 110px;

  border-radius: 28px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 3rem;

  color: #fff;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.cert-content h3 {
  font-size: 2rem;

  font-weight: 800;

  color: var(--primary);

  margin-bottom: 18px;
}

.cert-content p {
  color: var(--text);

  line-height: 1.9;
}
/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 991px) {
  .hero {
    min-height: calc(100vh - var(--navbar-height-tablet));
    min-height: calc(100dvh - var(--navbar-height-tablet));
    padding: 54px 0;
    text-align: center;
  }

  .hero-text {
    margin-right: auto;
    margin-left: auto;
  }

  .hero .flex {
    justify-content: center;
  }

  .cert-card {
    flex-direction: column;

    text-align: center;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }

  .journey-grid,
  .stats-grid,
  .program-grid {
    gap: 24px;
  }

  .hero {
    min-height: calc(100vh - var(--navbar-height-mobile));
    min-height: calc(100dvh - var(--navbar-height-mobile));
    padding: 48px 0;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .program-body {
    padding: 26px;
  }

  .stat-box h3 {
    font-size: 2.3rem;
  }

  .journey-step {
    padding: 34px 24px;
  }
}
/* ==========================================================
   FAQ
========================================================== */

.training-faq {
  padding: 110px 0;

  background: #f8fafc;
}

.faq-wrapper {
  max-width: 900px;

  margin: 70px auto 0;
}

.faq-item {
  background: #fff;

  border: 1px solid var(--border);

  border-radius: 20px;

  overflow: hidden;

  margin-bottom: 18px;

  transition: 0.35s;
}

.faq-item:hover {
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);

  border-color: rgba(38, 40, 113, 0.15);
}

.faq-item details {
  width: 100%;
}

.faq-item summary {
  list-style: none;

  cursor: pointer;

  padding: 26px 30px;

  font-size: 1.08rem;

  font-weight: 700;

  color: var(--dark);

  position: relative;

  transition: 0.3s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";

  position: absolute;

  right: 30px;

  top: 50%;

  transform: translateY(-50%);

  font-size: 1.5rem;

  color: var(--primary);

  transition: 0.3s;
}

.faq-item details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-content {
  padding: 0 30px 28px;

  color: var(--text);

  line-height: 1.9;
}
/* ==========================================================
   TRAINING CTA
========================================================== */

.training-cta {
  padding: 110px 0;
}

.cta-box {
  position: relative;

  overflow: hidden;

  border-radius: 36px;

  padding: 80px 60px;

  background: var(--hero-gradient);

  color: #fff;

  text-align: center;
}

.cta-box::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 255, 255, 0.12),
      transparent 40%
    );
}

.cta-box > * {
  position: relative;

  z-index: 2;
}

.cta-box h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);

  font-weight: 800;
}

.cta-box p {
  max-width: 760px;

  margin: 24px auto 42px;

  color: rgba(255, 255, 255, 0.9);

  line-height: 1.9;
}

.cta-actions {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 18px;
}
/* ==========================================================
   ANIMATION
========================================================== */

.fade-up {
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(30px);
  }

  to {
    opacity: 1;

    transform: none;
  }
}
/* ==========================================================
   UTILITIES
========================================================== */

.shadow-soft {
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.shadow-hover:hover {
  box-shadow: 0 28px 70px rgba(38, 40, 113, 0.1);
}

.round-xl {
  border-radius: 30px;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: #fff;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}
/* ==========================================
   HERO GLASS CARD
========================================== */

.hero-glass {
  position: relative;
  overflow: hidden;

  min-height: 230px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 40px;

  border-radius: 30px;

  color: #fff;

  background: rgba(255, 255, 255, 0.02);

  border: 1px solid rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);

  transition: 0.35s ease;
}

.hero-glass:hover {
  transform: translateY(-10px);

  background: rgba(255, 255, 255, 0.06);

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.hero-glass::before {
  content: "";

  position: absolute;

  top: 0;
  left: -40%;

  width: 70%;
  height: 100%;

  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.08),
    transparent
  );

  transform: skewX(-20deg);
}

.hero-glass i {
  font-size: 3rem;

  margin-bottom: 20px;
}

.hero-glass h3 {
  font-size: 2rem;

  font-weight: 700;
}
/* ==========================================
   GLOBAL GLASS HOVER
========================================== */

.glass {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.glass:hover {
  transform: translateY(-8px);

  border-color: rgba(38, 40, 113, 0.18);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================
   TRAINING HERO — FULL VIEWPORT FIT
========================================================== */

.training-page main {
  overflow: clip;
}

.training-page .hero > div {
  width: 100%;
}

@media (min-width: 1200px) {
  .training-page .hero .grid.lg\:grid-cols-2 {
    gap: 3rem;
  }

  .training-page .hero-title {
    margin-top: 14px;
    font-size: clamp(3rem, 4vw, 4rem);
    line-height: 1.08;
  }

  .training-page .hero-text {
    margin-top: 20px;
    line-height: 1.7;
  }

  .training-page .hero .flex.mt-10 {
    margin-top: 26px;
  }

  .training-page .hero .grid.grid-cols-2 {
    gap: 18px;
  }

  .training-page .hero-glass {
    min-height: 190px;
    padding: 24px;
  }

  .training-page .hero-glass.mt-12 {
    margin-top: 24px;
  }
}

@media (max-height: 760px) and (min-width: 1200px) {
  .training-page .hero {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .training-page .hero-title {
    font-size: clamp(2.65rem, 3.5vw, 3.45rem);
  }

  .training-page .hero-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .training-page .hero-glass {
    min-height: 170px;
    padding: 20px;
  }

  .training-page .hero-glass.mt-12 {
    margin-top: 18px;
  }
}

@media (max-width: 576px) {
  .training-page #topBtn {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    right: 16px !important;
    bottom: 16px !important;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
  }
}
/* Keep the last cards clear of Back to Top button */
.training-page .academy-section {
    padding-bottom: 90px !important;
}

.training-page #topBtn {
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    z-index: 9999 !important;
}

@media (max-width: 576px) {
    .training-page .academy-section {
        padding-bottom: 85px !important;
    }

    .training-page #topBtn {
        right: 14px !important;
        bottom: 14px !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
    }
}
/* Mobile Fix: 320px–425px */
@media (min-width: 320px) and (max-width: 425px) {

    /* Hero Academy Cards */
    .training-page .hero .grid.grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100%;
    }

    .training-page .hero-glass {
        width: 100%;
        min-width: 0;
        min-height: 165px;
        padding: 18px 12px !important;
        border-radius: 22px;
        overflow: hidden;
    }

    .training-page .hero-glass.mt-12 {
        margin-top: 20px !important;
    }

    .training-page .hero-glass i {
        margin-bottom: 14px !important;
        font-size: 2.1rem !important;
    }

    .training-page .hero-glass h3 {
        font-size: 1.15rem !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere;
    }

    /* Success Numbers */
    .training-page .counter {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
        white-space: nowrap;
    }

    .training-page .counter + p {
        margin-top: 12px !important;
        font-size: 0.95rem !important;
        line-height: 1.45;
    }

    .training-page .counter {
        width: 100%;
        text-align: center;
    }

    .training-page section .grid.grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 14px !important;
        row-gap: 38px !important;
    }

    /* Back to Top Button */
    .training-page #topBtn {
        position: fixed !important;
        right: 14px !important;
        bottom: 14px !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        z-index: 9999 !important;
    }
}
