/* ==== HERO SECTION ==== */

.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


/* Desktop / Mobile split */
.video-desktop { display: none; }
.video-mobile  { display: block; }

@media (min-width: 576px) {
    .video-desktop { display: block; }
    .video-mobile  { display: none; }
}

/* ==== TEXT CONTENT ==== */

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    mix-blend-mode: difference;
    width: 90%;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(2.5rem, 7vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 2px;
}

/* smooth animations ready */
.hero-content,
.hero-video-wrapper video {
    transition: all 0.4s ease-in-out;
}





.courses-cards-wrapper {
  padding: 40px 0;
  background-color: #d9cdc01a;
}

.course-card-continer {
  margin-top: -4rem;
  position: relative;
}
.kmo-academy-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 28px;
  padding: 8px;
}

.kmo-academy-filter-bar .kmo-academy-input,
.kmo-academy-filter-bar .kmo-academy-select {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--light-gray);
  background: var(--white);
  outline: none;
  font-size: 1.6rem;
}
.kmo-academy-filter-bar .kmo-academy-select {
  padding: 1.5rem 0.4rem;
}
.kmo-academy-filter-bar .kmo-academy-input[type="text"] {
  min-width: 240px;
  flex: 1;
}

.kmo-academy-filter-bar .kmo-academy-range {
  width: 110px;
}

/* focus */
.kmo-academy-filter-bar .kmo-academy-input:focus,
.kmo-academy-filter-bar .kmo-academy-select:focus {
  border-color: var(--primary);
  font-size: 1.6rem;
  box-shadow: 0 0 0 4px rgba(161, 136, 127, 0.06);
}

/* =========================
   GRID / TRACK
   ========================= */
.kmo-academy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 10px 0 40px;
}

/* card column sizing */
.kmo-academy-item {
  list-style: none;
  flex: 0 0 calc(33.333% - 23.333px); /* 3 columns with gap compensation */
  min-width: calc(33.333% - 23.333px);
  max-width: calc(33.333% - 23.333px);
}

/* ensure full height card */
.kmo-academy-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--light-gray);
}

.kmo-academy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 15, 15, 0.06);
}

/* =========================
   BANNER
   ========================= */
.kmo-academy-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.kmo-academy-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.kmo-academy-card:hover .kmo-academy-banner img {
  transform: scale(1.06);
  filter: brightness(1.03);
}

/* subtle overlay */
.kmo-academy-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0, 0, 0, 0.12) 100%
  );
  opacity: 0;
  transition: opacity var(--transition);
}
.kmo-academy-card:hover .kmo-academy-banner::after {
  opacity: 1;
}

/* =========================
   CONTENT AREA
   ========================= */
.kmo-academy-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kmo-academy-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

/* toggle box */
.kmo-academy-toggle {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.kmo-academy-toggle-btn {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--light-gray);
  background: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kmo-academy-toggle-btn.kmo-academy-active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* meta list */
.kmo-academy-meta {
  display: flex;
  gap: 16px 22px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 8px;
}

.kmo-academy-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  font-size: 1.4rem;
}

/* use :before for icons fallback (optional) */
.kmo-academy-meta-item kmo-icon {
  display: inline-block;
  width: 18px;
}

/* description */
.move-page-cta{
  position: relative;
  display: inline-block;
  margin-top: -1rem;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 1.3rem;
  cursor: pointer;
  overflow: hidden;
  color: inherit;
}

/* Background fill */
.move-page-cta::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: var(--dark);
  z-index: -1;
  transition: width 0.5s ease;
}

/* Text wrapper to animate movement */
.move-page-cta span{
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.5s ease, color 0.4s ease;
}

.move-page-cta:hover::before{
  width: 100%;
}

.move-page-cta:hover span{
  transform: translateX(180%); /* left → center smooth slide */
  color: #fff;
}

/* CTA spacer to push content up if needed */
.kmo-academy-spacer {
  margin-top: auto;
}

/* =========================
   RESPONSIVE
   ========================= */
/* Tablet */
@media (max-width: 991px) {
  .kmo-academy-item {
    flex: 0 0 calc(50% - 17.5px);
    min-width: calc(50% - 17.5px);
    max-width: calc(50% - 17.5px);
  }
  .kmo-academy-banner {
    height: 220px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .kmo-academy-item {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }
  .kmo-academy-banner {
    height: 200px;
  }
  .kmo-academy-body {
    padding: 18px;
  }
  .kmo-academy-title {
    font-size: 1.25rem;
  }
  .kmo-academy-filter-bar {
    gap: 8px;
  }
}
