/*
 Theme Name:   Zele Child
 Theme URI:    http://zele.bold-themes.com
 Description:  Zele child theme
 Author:       BoldThemes
 Author URI:   http://bold-themes.com
 Template:     zele
 Version:      1.0.3
 Tags:         one-column, right-sidebar, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  zele-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* Body / paragraph default font-size */
body,
body p,
.btArticle p,
.btContentHolder p {
  font-size: 18px;
}

/* Keep consistent on tablet/mobile (overrides parent theme's 15px at small breakpoints) */
@media (max-width: 1024px) {
  body,
  body p,
  .btArticle p,
  .btContentHolder p {
    font-size: 18px;
  }
}

/* Mobile size */
@media (max-width: 767px) {
  body,
  body p,
  .btArticle p,
  .btContentHolder p {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* =========================================================
   Custom counter icons (PNG)
   ---------------------------------------------------------
   Cara pakai:
   1. Simpan file PNG di: wp-content/themes/zele-child/images/counter/
      dengan nama icon-1.png sampai icon-12.png
      (disarankan pakai PNG 2x resolusi, minimal 160x160px, supaya
      tetap tajam di layar retina)
   2. Di Bold Builder → Counter element, buka group "Extra" →
      isi "Extra class name" dengan dua class, contoh:
          bt-custom-icon bt-custom-icon-1
   3. Field "Icon" di counter tetap harus diisi icon apa saja
      sebagai placeholder (supaya wrapper <div class="bt_bb_counter_icon">
      ter-render — glyph-nya akan disembunyikan oleh CSS di bawah).
========================================================= */

/* Base: shared untuk semua custom counter icon */
.bt-custom-icon .bt_bb_counter_icon .bt_bb_icon_holder {
  font-size: 0; /* sembunyikan glyph icon font bawaan */
}
.bt-custom-icon .bt_bb_counter_icon .bt_bb_icon_holder:before {
  content: '';
  display: inline-block;
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Per-icon: background image */
.bt-custom-icon-1 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-1.png');
}
.bt-custom-icon-2 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-2.png');
}
.bt-custom-icon-3 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-3.png');
}
.bt-custom-icon-4 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-4.png');
}
.bt-custom-icon-5 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-5.png');
}
.bt-custom-icon-6 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-6.png');
}
.bt-custom-icon-7 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-7.png');
}
.bt-custom-icon-8 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-8.png');
}
.bt-custom-icon-9 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-9.png');
}
.bt-custom-icon-10 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-10.png');
}
.bt-custom-icon-11 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-11.png');
}
.bt-custom-icon-12 .bt_bb_counter_icon .bt_bb_icon_holder:before {
  background-image: url('images/counter/icon-12.png');
}

/* Override ukuran per icon (uncomment + sesuaikan kalau butuh lebih besar)
.bt-custom-icon-3 .bt_bb_counter_icon .bt_bb_icon_holder:before {
    width: 100px;
    height: 100px;
}
.bt-custom-icon-7 .bt_bb_counter_icon .bt_bb_icon_holder:before {
    width: 120px;
    height: 120px;
}
*/

/* =========================================================
   KxIcons — custom icon font registration
   ---------------------------------------------------------
   Icon set ini di-register via fonts/KxIcons/KxIcons.php dan
   otomatis di-load oleh Zele's icon font scanner (lihat
   wp-content/themes/zele/framework/boldthemes_functions.php).

   CSS di bawah mirror-ing pola yang dipakai parent theme untuk
   register icon font bawaan di zele/icons.php, supaya icon
   custom ini bisa dipakai di iconpicker Bold Builder dan
   compatible dengan semua icon style (zig_zag, rugged, filled,
   outline, borderless, circle, square, dll).

   Cara generate font file-nya: lihat instruksi di bawah setelah
   saya kasih summary (intinya pakai IcoMoon.io).
========================================================= */
@font-face {
  font-family: 'KxIcons';
  src:
    url('fonts/KxIcons/KxIcons.woff') format('woff'),
    url('fonts/KxIcons/KxIcons.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

*[data-ico-kxicons]:before {
  font-family: KxIcons;
  content: attr(data-ico-kxicons);
}

/* KxIconsWhite — white variant icon font */
@font-face {
  font-family: 'KxIconsWhite';
  src:
    url('fonts/KxIconsWhite/KxIconsWhite.woff') format('woff'),
    url('fonts/KxIconsWhite/KxIconsWhite.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

*[data-ico-kxiconswhite]:before {
  font-family: KxIconsWhite;
  content: attr(data-ico-kxiconswhite);
}

/* =========================================================
   Course Guide Modal
========================================================= */
.cg-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  justify-content: center;
  align-items: center;
}

.cg-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.cg-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  max-width: 480px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.cg-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 4px;
}
.cg-modal-close:hover {
  color: #333;
}

.cg-modal-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.cg-modal-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0 0 24px;
}

/* CF7 form styling inside modal */
.cg-modal .btContact .btContactRow {
  margin-bottom: 12px;
}

.cg-modal .cg-course-name-row input[readonly] {
  background: #f0f0f0;
  color: #333;
  cursor: default;
  border: 1px solid #ddd;
  font-weight: 600;
}

.cg-modal .cg-lead-source-row,
.hs-hidden-field {
  margin-bottom: 0 !important;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
  position: absolute;
}

.cg-modal .btContactButton .wpcf7-submit {
  width: 100%;
  background: #3bb8c4;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cg-modal .btContactButton .wpcf7-submit:hover {
  background: #2da3ae;
}

.cg-modal .wpcf7-spinner {
  display: block;
  margin: 8px auto 0;
}

.cg-modal .wpcf7-response-output {
  margin: 16px 0 0 !important;
  font-size: 14px;
}

@media (max-width: 767px) {
  .cg-modal-content {
    padding: 24px;
  }
  .cg-modal-title {
    font-size: 16px;
  }
}

/* =========================================================
   Course Popup Modal — enquiry form field styles
   ========================================================= */

/* Enquiry course name readonly field */
.cg-modal .enq-course-name-row input[readonly] {
  background: #f0f0f0;
  color: #333;
  cursor: default;
  border: 1px solid #ddd;
  font-weight: 600;
}

/* Enquiry lead source hidden field */
.cg-modal .enq-lead-source-row {
  margin-bottom: 0 !important;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
  position: absolute;
}

/* =========================================================
   Bold Timeline — show icons on mobile
   ========================================================= */
@media (max-width: 768px) {
  /* Override plugin opacity: 0 */
  .bold_timeline_container.bold_timeline_container_line_position_vertical
    .bold_timeline_item
    .bold_timeline_item_icon {
    opacity: 1 !important;
  }

  /* Add left space for icon */
  .btSlant.bold_timeline_container.bold_timeline_container_line_position_vertical
    .bold_timeline_item {
    margin-left: 5rem !important;
  }

  /* Position icon to the left of card */
  .btSlant.bold_timeline_container .bold_timeline_item .bold_timeline_item_icon {
    left: -2.5rem !important;
    top: 2rem !important;
    transform: translateX(-50%) translateY(-50%) !important;
  }
}

/* =========================================================
   Course Pathway Cards — [course_pathways] shortcode
========================================================= */
.course-pathways-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.course-pathway-card {
  flex: 0 0 calc(25% - 18px);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #1d1e21;
}

/* 3 or fewer cards — grow to fill row */
.course-pathways-grid--few .course-pathway-card {
  flex: 1 1 0;
  max-width: calc(33.333% - 16px);
}

/* Image wrapper — 3:4 aspect ratio */
.course-pathway-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.course-pathway-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 650ms ease-in-out;
}

.course-pathway-card:hover .course-pathway-card__image img {
  transform: scale(1.05);
}

/* Gradient overlay — bottom-up for text readability */
.course-pathway-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.05) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Content — positioned over image, full height */
.course-pathway-card__content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: #fff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

/* Chips wrapper — multiple chips pinned to top */
.course-pathway-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: auto;
}

/* Chip label */
.course-pathway-card__chip {
  display: inline-block;
  background: #0c4b54;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.1;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
}

/* Title */
.course-pathway-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #fff;
  min-height: 2.4em; /* reserve 2 lines (2 × 1.2) */
}

/* Description */
.course-pathway-card__desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.85);
  min-height: 4.5em; /* reserve 3 lines (3 × 1.5) */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button — special_skew_filled style (matches theme) */
.course-pathway-card .course-pathway-card__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 1em 2em;
  min-width: 200px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  background: transparent;
  /* align-self: flex-start; */
  overflow: hidden;
}

.course-pathway-card__btn span {
  position: relative;
  z-index: 2;
  line-height: 1;
}

/* Skewed teal background (::before) */
.course-pathway-card__btn::before {
  content: '';
  display: block;
  width: 91%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0.7em;
  z-index: 0;
  background: #04b1ba;
  transform: skewX(-10deg);
}

/* Hover slide-in (::after) */
.course-pathway-card__btn::after {
  content: '';
  display: block;
  width: 91%;
  height: 100%;
  position: absolute;
  top: 0;
  left: calc(-100% - 2em);
  z-index: 1;
  background: #fff;
  opacity: 0;
  transform: skewX(-10deg);
  transition: left 0.55s cubic-bezier(0, 0.81, 0.59, 0.99);
}

.course-pathway-card .course-pathway-card__btn:hover {
  color: #04b1ba;
  text-decoration: none;
}

.course-pathway-card__btn:hover::after {
  opacity: 1;
  left: 0.7em;
}

/* Responsive — tablet: 2 per row */
@media (max-width: 1199px) {
  .course-pathway-card {
    flex: 0 0 calc(50% - 12px);
  }
}

/* Responsive — mobile: 1 per row */
@media (max-width: 767px) {
  .course-pathway-card {
    flex: 0 0 100%;
  }

  .course-pathway-card__content {
    align-items: center;
    text-align: center;
  }

  /* Keep chips left-aligned on mobile */
  .course-pathway-card__chips {
    align-self: flex-start;
  }

  .course-pathway-card__title {
    font-size: 20px;
    min-height: unset;
  }

  .course-pathway-card__desc {
    min-height: unset;
  }
}

/* =========================================================
   Course Sections — [course_sections] shortcode
   ========================================================= */
.course-section {
  padding: 48px 40px;
}

/* Alternating background */
.course-section--gray {
  background: rgb(247, 247, 247);
}

.course-section--white {
  background: #fff;
}

/* Two-column layout — card left, content right */
.course-section__columns {
  display: flex;
  gap: 100px;
  align-items: center;
}

/* LEFT — card with image + title + desc + enrol */
.course-section__left {
  flex: 0 0 32%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #cacacd inset;
}

/* Gray section → white card */
.course-section--gray .course-section__left {
  background: #fff;
}

/* White section → dark card */
.course-section--white .course-section__left {
  background: #13323c;
}

/* Card body (text + button area below image) */
.course-section__card-body {
  padding: 24px;
}

/* Landscape image inside left card */
.course-section__image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Chips wrapper overlay on card image */
.course-section__chips {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Chip label */
.course-section__chip {
  display: inline-block;
  background: #0c4b54;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.1;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
}

.course-section__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* RIGHT — description, learn list, features, buttons */
.course-section__right {
  flex: 1 1 0;
}

/* Title (inside dark card) */
.course-section__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}

/* Description (inside dark card) */
.course-section__desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.course-section__desc p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.8);
}

.course-section__desc p:last-child {
  margin-bottom: 0;
}

/* Gray section (white card) — dark text */
.course-section--gray .course-section__title {
  color: #13323c;
}

.course-section--gray .course-section__desc,
.course-section--gray .course-section__desc p {
  color: rgba(19, 50, 60, 0.75);
}

/* Primary button — skew style matching pathway cards */
.course-section__btn--primary,
.bt-content .course-section__btn--primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 1em 2em;
  min-width: 200px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  border: none;
  overflow: hidden;
  cursor: pointer;
}

.course-section__btn--primary span {
  position: relative;
  z-index: 2;
  line-height: 1;
}

.course-section__btn--primary::before {
  content: '';
  display: block;
  width: 91%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0.7em;
  z-index: 0;
  background: #04b1ba;
  transform: skewX(-10deg);
}

.course-section__btn--primary::after {
  content: '';
  display: block;
  width: 91%;
  height: 100%;
  position: absolute;
  top: 0;
  left: calc(-100% - 2em);
  z-index: 1;
  background: #fff;
  opacity: 0;
  transform: skewX(-10deg);
  transition: left 0.55s cubic-bezier(0, 0.81, 0.59, 0.99);
}

.course-section__btn--primary:hover,
.bt-content .course-section__btn--primary:hover {
  text-decoration: none;
}

.course-section__btn--primary:hover::after {
  opacity: 1;
  left: 0.7em;
}

/* Left-column button hover — teal text on white slide-in (dark card) */
.course-section--white
  .course-section__left
  .course-section__btn--primary:hover,
.bt-content
  .course-section--white
  .course-section__left
  .course-section__btn--primary:hover {
  color: #04b1ba;
}

/* Gray section (white card) — dark button matching right-column style */
.course-section--gray
  .course-section__left
  .course-section__btn--primary::before {
  background: #13323c;
}
.course-section--gray
  .course-section__left
  .course-section__btn--primary::after {
  background: #02b2ba;
}
.course-section--gray .course-section__left .course-section__btn--primary:hover,
.bt-content
  .course-section--gray
  .course-section__left
  .course-section__btn--primary:hover {
  color: #13323c;
}

/* Right-column buttons — dark bg variant (VIEW COURSE, COURSE GUIDE) */
.course-section__right .course-section__btn--primary::before {
  background: #13323c;
}
.course-section__right .course-section__btn--primary::after {
  background: #02b2ba;
}
.course-section__right .course-section__btn--primary:hover,
.bt-content .course-section__right .course-section__btn--primary:hover {
  color: #13323c;
}

/* Buttons */
.course-section__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.course-section__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8em 2em;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

/* Secondary button — outline (kept for fallback) */
.course-section .course-section__btn--secondary {
  background: transparent;
  color: #04b1ba;
  border-color: #04b1ba;
}

.course-section .course-section__btn--secondary:hover {
  background: #04b1ba;
  color: #fff;
  text-decoration: none;
}

/* "What you'll learn" heading (from WYSIWYG) */
.course-section__learn-list h3,
.course-section__learn-list h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-section__learn-list {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 24px;
}

.course-section__learn-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-section__learn-list ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.course-section__learn-list ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #13323c;
}

/* Feature items — 2-column grid in right column */
.course-section__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.course-section__feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.course-section__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: #04b1ba;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.course-section__feature-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 1.3;
}

/* Badge image (inside features grid) */
.course-section__badge {
  display: flex;
  align-items: center;
  max-width: 160px;
}

.course-section__badge img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive — tablet */
@media (max-width: 1024px) {
  .course-section__columns {
    gap: 28px;
  }

  .course-section__left {
    flex: 0 0 40%;
  }

  .course-section__title {
    font-size: 26px;
  }

  .course-section__card-body {
    padding: 20px;
  }

  .course-section__features {
    grid-template-columns: 1fr;
  }
}

/* Responsive — mobile */
@media (max-width: 767px) {
  .course-section {
    padding: 32px 0;
  }

  .course-section__columns {
    flex-direction: column;
    gap: 24px;
  }

  .course-section__left {
    flex: none;
  }

  .course-section__card-body {
    padding: 16px;
  }

  .course-section__title {
    font-size: 22px;
  }

  .course-section__desc {
    font-size: 14px;
  }

  .course-section__features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .course-section__feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 18px;
  }

  .course-section__buttons {
    flex-direction: column;
  }

  .course-section__btn {
    width: 100%;
    text-align: center;
  }

  .course-section__learn-list {
    font-size: 14px;
  }
}
