.course-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.course-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* dark overlay for readability */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.course-hero-content {
  position: relative;
  text-align: center;
  max-width: 90%;
}

.course-hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 6rem;
  line-height: 1.3;
  color: var(--soft-ivory);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 992px) {
  .course-hero {
    height: 60vh;
  }

  .course-hero-content h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 600px) {
  .course-hero {
    height: 35vh;
  }
 .course-hero-content h1{
  font-size: 3rem;
 }
}

/* ========== Reveal Sections ========== */
.reveal {
  width: 80%;
  max-width: 600px;
  margin: 50px auto;
  overflow: hidden;
  position: relative;
}

.reveal img {
  width: 100%;
  display: block;
  transform-origin: left;
}

/* ===========================================
   ACADEMY HERO SECTION STYLES
=========================================== */
/* Academy Section Styles */
.academy-section {
  padding: 40px 0;
  /* background: var(--soft-ivory); */
  position: relative;
  overflow: hidden;
}

.academy-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.academy-section .container .kmo-section-title {
  margin-bottom: 0;
}

/* Rows */
.academy-row {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Content Blocks */
.academy-content {
  flex: 1;
  padding: 40px;
}

.content-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.content-wrapper .kmo-section-title {
  text-align: left;
  margin-bottom: 1rem;
}
/* Content Reveal Animations */
.content-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for content */
.content-reveal:nth-child(1) {
  transition-delay: 0.1s;
}
.content-reveal:nth-child(2) {
  transition-delay: 0.2s;
}
.content-reveal:nth-child(3) {
  transition-delay: 0.3s;
}
.content-reveal:nth-child(4) {
  transition-delay: 0.4s;
}
.content-reveal:nth-child(5) {
  transition-delay: 0.5s;
}

/* Content Text */
.content-text {
  margin-bottom: 40px;
  text-align: justify;
}

.description {
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.stat-box {
  text-align: center;
  padding: 10px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.027);
  border: 1px solid rgba(139, 107, 97, 0.1);
}

.stat-number {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--deep-rose);
  margin-bottom: 5px;
}

.stat-label {
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  color: var(--ash-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.right-image {
  height: 80vh;
  width: auto;
  border-radius: 20% 10% 0 33%;
}

/* Responsive */
@media (max-width: 1024px) {
  .academy-row {
    flex-direction: column;
    gap: 40px;
  }

  .reveal {
    width: 100%;
    max-width: 100%;
  }

  .reveal img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .academy-section {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .academy-content {
    padding: 20px;
  }

  .right-image{
    display: none;
  }

}

@media (max-width: 480px) {
  .stat-number {
    font-size: 2.5rem;
  }
}

.course-overview-section {
  padding: 40px 30px;
  /* background: var(--soft-ivory); */
  background-color: #a6866d;
  position: relative;
  overflow: hidden;

  display: flex;
  justify-content: flex-end; /* Push content to the right */
}

/* IMAGE ON LEFT with fade-out */
.course-overview-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0; /* Move image to the left side */
  width: 55%;
  height: 100%;

  background-image: url(images/advance-permanent-hero-img-kmo-academy-1.jpg);
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;

  /* Fade to the right */
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 100%
  );

  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 100%
  );

  pointer-events: none;
}

/* Ensure content sits on the right side */
.course-overview-section .course-container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-left: auto; /* Push the content to the right side */
}
.course-overview-section .course-container .kmo-section-title {
  margin-bottom: 1.6rem;
}
.course-overview-section .course-container .kmo-section-title h2,
.course-overview-section .course-container .kmo-section-title .kmo-sub-title {
  color: #fff !important;
  border-color: #ffff;
}

.course-overview-content {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.course-overview-column {
  flex: 1 1 400px;
}

.course-overview-column ul {
  list-style: none;
  padding: 0;
}

.course-overview-column ul li {
  font-family: "Syne", sans-serif;
  font-size: 1.7rem;
  /* color: #22262a; */
  color: #ffffff;
  line-height: 1.7;
  position: relative;
  padding-left: 25px;
  font-weight: 100;
}

.course-overview-column ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #ffff;
  font-weight: bold;
}
    /* Simple H3 inside LI styling */
    li h3 {
        color: #ffffff;
        margin: 5px 0;
    }

    li p {
      color: #f0e6e6e0;
        margin: 0 0 8px 0;
        line-height: 1.1;
    }







    .course-enroll-container {
  padding: 40px 30px;
  font-family: "Syne", sans-serif;
}

.course-enroll-container .kmo-section-title {
  margin-bottom: 2rem;
}

.course-enroll-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  padding: 3rem 0;
}

/* Clean Card */
.course-enroll-card {
  border: 2px solid var(--deep-rose);
  border-radius: 20px;
  padding: 5rem 1rem 0;
  background: #fff;
  text-align: center;
  position: relative;
  transition: 0.3s ease;
  font-family: "Syne", sans-serif;
  overflow: hidden;
}

/* Heading sits on top line */
.card-heading {
  position: absolute;
  top: 0; /* Moves heading on the line */
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep-rose);
  padding: 3px 12px;
  height: 4rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f1f1;
  width: 101%;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.3;
  text-align: center;
  white-space: normal; /* Proper wrapping */
  border-radius: 10px 10px 0 0;
}

/* Hover */
.course-enroll-card:hover {
  transform: translateY(-7px);
}

/* Responsive */
/* ============================
   FULLY RESPONSIVE STYLES
=============================== */

/* Tablets & below */
@media (max-width: 1024px) {
  .course-enroll-container {
    padding: 30px 20px;
  }

  .course-enroll-cards {
    gap: 25px;
  }

  .card-heading {
    font-size: 1.3rem;
    height: 3.4rem;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .course-section-title h2 {
    font-size: 2.2rem;
  }

  .course-enroll-cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 2rem 0;
  }

  .course-enroll-card {
    padding: 4rem 1rem 1rem;
  }

  .card-heading {
    font-size: 1.2rem;
    height: 3.2rem;
    padding: 3px 10px;
  }

  .card-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
    line-height: 55px;
  }
}

/* Mobile Medium */
@media (max-width: 576px) {
  .course-section-title h2 {
    font-size: 2rem;
  }

  .course-enroll-container {
    padding: 25px 15px;
  }

  .course-enroll-card {
    padding: 3.5rem 1rem 1rem;
  }

  .card-heading {
    font-size: 1.1rem;
    height: 3rem;
  }
}

/* Mobile Small */
@media (max-width: 430px) {
  .course-enroll-cards {
    grid-template-columns: 1fr;
  }

  .card-heading {
    font-size: 1rem;
    height: 2.8rem;
  }

  .course-enroll-card {
    padding: 3rem 0.8rem 1rem;
  }
}


.duration-format-container-main {
  font-family: "Syne", sans-serif;
  color: var(--charcoal);
  padding: 40px 20px;
  /* background: var(--soft-ivory); */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #a6866d;
}

.duration-format-section {
  max-width: 1200px;
  width: 100%;
}

.kmo-slider-track {
  margin-top: -5rem;
}

.duration-format-section .kmo-section-title h2 span,
.duration-format-section .kmo-section-title h2,
.duration-format-section .kmo-section-title .kmo-sub-title {
  color: #ffffff;
  border-color: #ffffff;
}

/* Each Column */
.kmo-slider-track > li {
  list-style: none;
  box-sizing: border-box;
  flex: 0 0 calc(50% - 17.5px);
  min-width: calc(50% - 17.5px);
  max-width: calc(50% - 17.5px);
}
.kmo-slider-track > li .kmo-course-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* COURSE CARD */
.kmo-course-card {
  border-radius: 22px;
  overflow: hidden;
  /* box-shadow: 0 15px 45px rgba(0,0,0,.08); */
  transition: all 0.35s ease;
  position: relative;
}


.kmo-course-card.dimmed {
  opacity: 0.08;
  filter: grayscale(20%) blur(1px);
  transform: scale(0.94);
  pointer-events: none;
}

/* Active Card Spotlight */
.kmo-course-card.active-focus {
  transform: scale(1.02);
  border-radius: 12px;
  transition: 0.4s ease;
}

.kmo-course-card:hover {
  transform: translateY(-6px);
  /* box-shadow: 0 25px 55px rgba(0,0,0,.12); */
}

/* Banner */
.kmo-course-banner {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.kmo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.kmo-course-card:hover .kmo-img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.has-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.45));
  opacity: 0;
  transition: 0.4s ease;
}

.kmo-course-card:hover .has-overlay::after {
  opacity: 1;
}

/* Content */
.kmo-course-content {
  padding: 30px;
}

.kmo-course-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

/* Meta List */
.kmo-meta-list {
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
}

.kmo-meta-item {
  font-size: 1.5rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kmo-meta-item ion-icon {
  font-size: 20px;
  color: var(--deep-rose);
}

/* Description */
.kmo-course-text {
  font-size: 1.55rem;
  color: #666;
  line-height: 1.6;
}

/* Hover Lift */
.kmo-course-card:hover .kmo-course-content {
  transform: translateY(-3px);
}

/* =========================
   Responsive Design
========================= */
/* =========================
   Responsive Design
========================= */

/* Large Tablets & Small Laptops */
@media (max-width: 1200px) {
  .kmo-slider-track > li {
    flex: 0 0 calc(50% - 14px);
    min-width: calc(50% - 14px);
    max-width: calc(50% - 14px);
  }

  .kmo-course-banner {
    height: 230px;
  }
}

/* Tablets */
@media (max-width: 991px) {
  .duration-format-container-main {
    padding: 30px 15px;
  }

  .kmo-slider-track {
    margin-top: -3rem;
  }

  .kmo-slider-track > li {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .kmo-course-banner {
    height: 220px;
  }

  .kmo-course-content {
    padding: 24px;
  }

  .kmo-course-title {
    font-size: 2.1rem;
  }
}

/* Small Tablets & Large Phones */
@media (max-width: 768px) {
  .duration-format-container-main {
    padding: 25px 12px;
  }



  .kmo-course-banner {
    height: 210px;
  }

  .kmo-course-title {
    font-size: 2rem;
  }

  .kmo-course-text {
    font-size: 1.45rem;
  }
}

/* Mobile */
/* Mobile Fix: Always 1 Card Per Row */
@media (max-width: 600px) {

  .kmo-slider-track {
    display: flex;
    flex-wrap: wrap !important;
  }

  .kmo-slider-track > li {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  /* Remove negative margin causing side shift */
  .kmo-slider-track {
    margin-top: 0 !important;
  }
}


/* Extra Small Mobile */
@media (max-width: 420px) {
  .kmo-course-title {
    font-size: 1.8rem;
  }

  .kmo-meta-item {
    font-size: 1.3rem;
  }

  .kmo-course-text {
    font-size: 1.35rem;
  }

  .kmo-course-banner {
    height: 175px;
  }
}





/* ================================
   KMO COURSES SECTION
================================ */

/* Section Wrapper */
.kmo-courses-section {
  padding: 40px;
  position: relative;
  z-index: 1;
}


/* Title */
.duration-format-container-main .container .kmo-section-title span {
  color: #fff;
  border-color: white;
}

/* Tabs */
.kmo-course-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.kmo-course-tabs a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #444;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: white;
  border: 1px solid #eee;
  transition: all .25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,.04);
}

.kmo-course-tabs a:hover {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--deep-rose);
  transform: translateY(-3px);
}

/* Slider Track */
.kmo-course-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  padding: 10px 0;
}

/* Each Column: DESKTOP 3 CARDS PER ROW */
.kmo-course-cards-wrapper > li {
  list-style: none;
  box-sizing: border-box;
  flex: 0 0 calc(33.333% - 23.33px); /* 3 cards per row */
  min-width: calc(33.333% - 23.33px);
  max-width: calc(33.333% - 23.33px);
}

.kmo-course-cards-wrapper > li .kmo-course-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.kmo-course-cards-wrapper > li .kmo-course-card .kmo-course-content{
padding: 20px;
}
/* Banner */
.kmo-course-banner {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.kmo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .5s ease;
}

.kmo-course-card:hover .kmo-img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.has-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.45));
  opacity: 0;
  transition: .4s ease;
}

.kmo-course-card:hover .has-overlay::after {
  opacity: 1;
}

/* Content */
.toggle-box {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.toggle-btn {
  padding: 6px 14px;
  border: 1px solid #c3c3c3;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.toggle-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}


.kmo-course-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

/* Meta List */
.kmo-meta-list {
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
}

.kmo-meta-item {
  font-size: 1.5rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kmo-meta-item ion-icon {
  font-size: 20px;
  color: var(--deep-rose);
}

/* Description */
.kmo-course-text {
  font-size: 1.55rem;
  color: #666;
  line-height: 1.6;
}

/* Hover Lift */
.kmo-course-card:hover .kmo-course-content {
  transform: translateY(-3px);
}

/* =========================
   Responsive Design
========================= */

/* Tablet: 2 cards per row */
@media(max-width: 991px) {
  .kmo-course-cards-wrapper > li {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

/* Mobile: 1 card per row */
@media(max-width: 600px) {
  .kmo-section-title h2 {
    font-size: 3rem;
  }

  .kmo-course-card {
    border-radius: 18px;
  }
  .kmo-course-cards-wrapper > li {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .kmo-course-banner { height: 200px; }
  .kmo-course-content { padding: 20px; }
}






/* =====================
CTA Hero Section 
======================*/
.cta-section-am-hero {
  position: relative;
  width: 100%;
  height: 60vh; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Syne", sans-serif;
  overflow: hidden;
}

/* Overlay for gradient / dark effect */
.cta-section-am-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35); /* Dark overlay for readability */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

/* Content wrapper */
.cta-section-am-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 90%;
  z-index: 2;
}

/* Hero Heading */
.cta-section-am-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #fff;
}

/* Hero Paragraph */
.cta-section-am-content p {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #fff;
  text-align: center;
}

/* Button */
.cta-section-am-content .btn {
  font-size: 1.6rem;
  font-weight: 600;
  padding: 15px 50px;
  border-radius: 50px;
  background: var(--deep-rose);
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Button Hover Effect */
.cta-section-am-content .btn:hover {
  background: #fff;
  color: var(--deep-rose);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Optional: before pseudo for stylish effect */
.cta-section-am-content .btn.has-before::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 100%;
  top: 0;
  left: -110%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}

.cta-section-am-content .btn.has-before:hover::before {
  left: 110%;
}

/* =========================
   Responsive: Tablet Large
========================= */
@media (max-width: 1024px) {
  .cta-section-am-hero {
    height: 500px;
  }
  .cta-section-am-content h1 {
    font-size: 3rem;
  }
  .cta-section-am-content p {
    font-size: 1.6rem;
  }
  .cta-section-am-content .btn {
    padding: 12px 35px;
    font-size: 1.5rem;
  }
}

/* =========================
   Responsive: Tablet / iPad
========================= */
@media (max-width: 768px) {
  .cta-section-am-hero {
    height: 420px;
  }
  .cta-section-am-content {
    max-width: 95%;
    width: 100%;
  }
  .cta-section-am-content h1 {
    font-size: 2.6rem;
    text-align: center;
  }
  .cta-section-am-content p {
    font-size: 1.45rem;
    text-align: center;
  }
  .cta-section-am-content .btn {
    padding: 10px 28px;
    font-size: 1.35rem;
  }
}

/* =========================
   Responsive: Mobile
========================= */
@media (max-width: 576px) {
  .cta-section-am-hero {
    height: 380px;
    padding: 0 18px;
  }
  .cta-section-am-content h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }
  .cta-section-am-content p {
    font-size: 1.35rem;
    line-height: 1.6;
  }
  .cta-section-am-content .btn {
    padding: 10px 25px;
    font-size: 1.3rem;
  }
}

/* =========================
   Extra Small Mobile
========================= */
@media (max-width: 420px) {
  .cta-section-am-hero {
    height: 350px;
  }
  .cta-section-am-content h1 {
    font-size: 2rem;
  }
  .cta-section-am-content p {
    font-size: 1.25rem;
  }
  .cta-section-am-content .btn {
    padding: 9px 22px;
    font-size: 1.25rem;
  }
}






.courses-cards-wrapper {
  padding: 40px 0;
}

.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;
}

/* cta move to page btn  */
.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;
  }
}
