/* ============================================================
   KC GlobEd – US CMA landing page
   Custom styles ported 1:1 from kcglobed_website/src/app/index.css
   (only the rules that apply to this page) + small replacements
   for the React-only pieces (framer-motion reveal/hover, toasts).
   Tailwind utilities live in css/tailwind.css (compiled).
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
}

/* ---------- ported from index.css ---------- */

.number-box {
  display: block;
}

@media screen and (max-width: 767px) and (min-width: 200px) {
  .number-box {
    display: flex;
    width: 100%;
    gap: 12px;
  }
  .border-left {
    border-left: 1px solid #fff;
    padding-left: 13px;
  }
  .us_cpa_section {
    flex-direction: column;
  }
  .card-two .why_cpa-flex {
    flex-flow: row-reverse;
  }
  .card-four .why_cpa-flex {
    flex-flow: row-reverse;
  }
  .why_cpa-flex {
    padding: 10px;
    border-radius: 100px;
    padding-top: 11px;
  }
  .why_cpa-flex p {
    font-size: 8px;
  }
  .content_para {
    font-size: 14px !important;
  }
  .card-two .why_cpa-flex p {
    text-align: right;
  }
  .card-four .why_cpa-flex p {
    text-align: right;
  }
  .bgcma_section {
    display: flex;
    flex-wrap: wrap;
  }
  .cma_section {
    width: 28%;
    font-size: 6px;
    padding: 3px 5px;
    margin: 4px 0px;
  }
  .cma_section:nth-child(7) {
    margin-left: 30px;
  }
  .cma_section:nth-child(8) {
    margin-right: 30px;
  }
  .date_section {
    width: 154px;
    padding: 0px 9px;
    padding-left: 13px;
  }
  .date_section p {
    font-size: 8px;
    white-space: nowrap;
  }
  .date_section .numfont {
    font-size: 12px;
  }
  .date_month_section {
    margin-left: -13px;
    margin-bottom: 51px;
  }
  .date_month_section .relative:last-child {
    position: absolute;
    margin-left: 5rem;
    margin-top: 119px;
  }
  .bg_cma {
    background-position: bottom;
  }
}

@media only screen and (max-width: 1024px) {
  .navGap a {
    font-size: 13px;
    margin: 0;
  }
}

.kc_course_page_form {
  color: #000 !important;
}

.course_banner_details h1 {
  font-size: 42px;
}
.course_banner_details h3 {
  font-size: 36px;
  font-weight: 700;
}
.course_banner_details h4 {
  color: #FBB03B;
  font-family: Inter;
  font-weight: 500;
  font-size: 32px;
  margin-top: 20px;
  line-height: 41.13px;
}
.course_banner_details p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 30.08px;
}
.course_banner_details img {
  max-width: 160px;
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1020px) {
  .course_banner {
    gap: 0rem;
  }
  .course_banner_details {
    width: 80%;
  }
}
@media (max-width: 767.98px) {
  .course_banner {
    flex-direction: column;
    gap: 4rem;
  }
  .course_banner_details h1 {
    font-size: 32px;
  }
  .course_banner_details h3 {
    font-size: 24px;
  }
  .course_banner_details h4 {
    color: #FBB03B;
    font-family: Inter;
    font-weight: 500;
    font-size: 24px;
    margin-top: 20px;
    line-height: 30.13px;
  }
  .course_banner_details p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 21.08px;
  }
}

/* ---------- next/image "fill" replacement (hero background) ---------- */
.img-fill {
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0;
  color: transparent;
}

/* ---------- framer-motion <Reveal/> replacement ----------
   hidden: { opacity: 0, y: 75 } -> visible: { opacity: 1, y: 0 }
   transition: { duration: 0.5, delay: 0.25 }                      */
.reveal > .reveal-inner {
  opacity: 0;
  transform: translateY(75px);
  transition: opacity 0.5s ease-out 0.25s, transform 0.5s ease-out 0.25s;
  will-change: opacity, transform;
}
.reveal.is-visible > .reveal-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- framer-motion whileHover / whileTap replacement ----------
   whileHover={{ scale: 1.1 }} whileTap={{ scale: 0.9 }} spring        */
.hover-scale {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-scale:hover {
  transform: scale(1.1);
}
.hover-scale:active {
  transform: scale(0.9);
}

/* ---------- react-hot-toast replacement ---------- */
#toastRoot {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  font-size: 16px;
  pointer-events: auto;
  animation: toast-in 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}
.toast.toast-leave {
  animation: toast-out 0.4s forwards cubic-bezier(0.06, 0.71, 0.55, 1);
}
.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.toast-success .toast-icon {
  background: #61d345;
}
.toast-error .toast-icon {
  background: #ff4b4b;
}
@keyframes toast-in {
  0% {
    transform: translate3d(0, -200%, 0) scale(0.6);
    opacity: 0.5;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}
@keyframes toast-out {
  0% {
    transform: translate3d(0, 0, -1px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, -150%, -1px) scale(0.6);
    opacity: 0;
  }
}

/* ---------- misc ---------- */
.rotate-90 {
  transform: rotate(90deg);
}
