/* =============================================================================
   COURSE CARD — templates/course/course-card/index.php
   Applied: every page that renders a course card (home, our-courses, search,
            category archive, single-course related, shortcodes)
   Key selectors: .home-course-main | .overlap-llink | .course-card-content
                  .course-lists | .checklists | .enroll-row | .enroll | .hour
   ============================================================================= */

/* ---- Card wrapper ---- */
.home-course-main {
  position: relative;
  border: 1px solid #ebeef1;
  border-radius: 16px;
  transition: 0.3s;
}

/* Full-card click overlay (makes the entire card a link without nesting <a> inside <a>) */
.overlap-llink {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 99;
}

.home-course-main:hover {
  box-shadow: 0px 3px 14px 0px #37506e26;
  transform: scale(1.02);
}

/* ---- Card body ---- */
.home-course-main .course-card-content {
  font-family: "Source Sans 3";
  padding: 11px 15px 15px 15px;
}

/* ---- Featured image ---- */
.home-course-main .tw-cs-course-card-image {
  height: 170px;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
}
.home-course-main .course-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  padding: 15px;
  border-radius: 16px 16px 0px 0px;
  transition: 0.3s;
}
.home-course-main .course-image::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background: linear-gradient(to top, #000000ed -5%, #00000000 50%);
  left: 0;
  top: 0;
  transition: 0.3s;
}

/* ---- Course title (overlaid on image) ---- */
.home-course-main .course-title {
  display: block;
  width: 100%;
  margin-bottom: 0px !important;
  display: flex;
  align-items: flex-end;
}
.home-course-main .course-title a {
  color: #ffffff !important;
  z-index: 9;
  position: relative;
  font-size: 18px !important;
  font-weight: 500 !important;
  font-family: "Source Sans 3" !important;
}
.home-course-main:hover .course-title a {
  color: #ececef;
}

/* ---- Card border ---- */
.home-course-main .course-item {
  border: 1px solid #ebeef1;
  border-radius: 16px !important;
}

/* ---- CTA / price row ---- */
.home-course-main .button-area {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #c1c9d2;
  padding-top: 12px;
  margin-top: 12px;
}
.home-course-main .course-button {
  font-size: 14px;
  border-radius: 100px;
  background: #37506e;
  color: #ffffff;
  font-weight: 400;
  padding: 7px 10px 7px 16px;
  font-family: "Source Sans 3";
  transition: 0.3s;
}
.home-course-main:hover .course-button {
  background: #f9a31a;
}

/* ---- Pricing ---- */
.home-course-main .course-price span {
  display: block !important;
}
.home-course-main .regular-price {
  color: #5f738b !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 18px;
  text-decoration: line-through;
}
.home-course-main .sell-price {
  color: #37506e !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 22px;
}

/* ---- Enrolment / duration meta ---- */
.home-course-main .enroll-row {
  justify-content: space-between;
}
.home-course-main .single-texonomy {
  display: none !important;
}
.home-course-main .left-col {
  display: flex;
  gap: 0px;
  align-items: center;
}
.home-course-main .enroll {
  border-right: 1px solid #c1c9d2;
  padding-right: 10px;
  margin-right: 10px;
}
.home-course-main .bundle-enroll {
  border-right: 0px !important;
}
.home-course-main .enroll,
.home-course-main .hour {
  display: flex;
  gap: 5px;
  height: 15px;
  align-items: center;
}
.home-course-main .enroll span,
.home-course-main .hour span {
  font-size: 12px;
  font-weight: 600;
  color: #37506e;
  width: auto;
  line-height: 14px;
}
.home-course-main .enroll img,
.home-course-main .hour img {
  width: 15px !important;
}

/* ---- Checklist feature bullets ---- */
.home-course-main .course-lists {
  margin-top: 14px;
  margin-bottom: 16px;
}
.home-course-main .checklists {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #5f738b;
  line-height: 14px;
  margin-bottom: 6px;
}
/* ---- Course card grid (category shortcode output) ---- */
.home-shortcode-course-main .elementor-shortcode {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
