/* ============================================================
   TRAINING FACILITY
   Shared components: base, buttons, header, footer, home sections,
   course + testimonial cards, sliders, blog listing, pagination.
   Palette lives in header_footer.css (:root --tf-*).
============================================================ */

body {
  background: var(--tf-page-bg);
  color: var(--tf-dark);
  font-family: var(--primary-font);
}

a {
  color: var(--tf-navy);
}

.tf-text-teal {
  color: var(--tf-teal);
}

.tf-section-title {
  color: var(--tf-navy);
  font-size: clamp(1.9rem, 2.4vw + 1rem, 2.85rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.tf-section-title strong {
  font-weight: 700;
}

/* ---------- buttons ---------- */
.tf-btn-teal {
  --_base: var(--tf-teal);
  --_hover: var(--tf-navy);
  --_text-base: #ffffff;
  --_text-hover: #ffffff;
  padding: 0.65rem 1.6rem;
  font-weight: 500;
}

.tf-btn-navy {
  --_base: var(--tf-navy);
  --_hover: var(--tf-teal);
  --_text-base: #ffffff;
  --_text-hover: #ffffff;
}

/* ============================================================
   HEADER
============================================================ */
.tf-header {
  background: var(--tf-page-bg);
  position: relative;
  z-index: 1030;
}

.tf-logo img {
  width: 190px;
  height: auto;
  display: block;
}

.tf-header .offcanvas-body {
  display: flex;
  flex-direction: column;
}

.tf-nav {
  gap: 0.5rem;
}

.tf-nav .nav-item {
  text-transform: none;
  padding: 0;
}

.tf-nav .nav-link {
  color: var(--tf-dark);
  font-size: 1.05rem;
  font-weight: 400;
  padding: 0.3rem 1.6rem !important;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.tf-nav .nav-link:hover {
  color: var(--tf-teal);
}

.tf-nav .nav-item.active .nav-link {
  background: var(--tf-teal);
  color: #ffffff;
  font-weight: 700;
}

.tf-flame {
  width: 20px;
  height: 20px;
  margin-top: -4px;
}

.tf-search {
  background: #a1bdc8;
  border-radius: 100px;
  padding: 0.15rem 0.35rem 0.15rem 1rem;
  min-width: 230px;
}

.tf-search-input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #ffffff;
  font-size: 0.9rem;
  width: 100%;
  padding: 0.45rem 0;
}

.tf-search-input::placeholder {
  color: #ffffff;
  opacity: 1;
}

.tf-search-btn {
  background: transparent;
  border: 0;
  color: #ffffff;
  padding: 0.35rem 0.5rem;
  display: flex;
}

.tf-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--tf-navy);
  color: #ffffff;
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.tf-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tf-navy);
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.tf-login-btn:hover,
.tf-cart-btn:hover {
  background: var(--tf-teal);
  color: #ffffff;
}

.tf-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--tf-teal);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

@media (min-width: 992px) {
  .tf-header .offcanvas-body {
    flex-direction: row;
  }
}

/* Tighter header between 992 and 1200 so everything fits on one line */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .tf-logo img {
    width: 150px;
  }
  .tf-nav {
    gap: 0;
  }
  .tf-nav .nav-link {
    padding: 0.3rem 0.8rem !important;
    font-size: 0.95rem;
  }
  .tf-search {
    min-width: 160px;
  }
  .tf-login-btn span {
    display: none;
  }
  .tf-login-btn {
    padding: 0.5rem 0.65rem;
  }
}

@media (max-width: 991.98px) {
  .tf-logo img {
    width: 150px;
  }
  .tf-nav .nav-link {
    padding: 0.5rem 1rem !important;
  }
  .tf-header-actions {
    margin-top: 1rem;
  }
  .tf-search {
    min-width: 0;
  }
}

/* ============================================================
   FOOTER
============================================================ */
#site-footer {
  background: var(--tf-navy);
  color: #ffffff;
}

#site-footer .footer-logo {
  height: auto;
  width: 190px;
}

#site-footer .footer-heading {
  font-size: 1.3rem;
  font-weight: 700;
}

#site-footer .footer-text {
  color: #ffffff;
  font-size: 0.85rem;
  max-width: 320px;
}

#site-footer .footer-links li {
  margin-bottom: 0.55rem;
}

#site-footer .footer-links a,
#site-footer .footer-contact,
#site-footer .footer-contact a {
  color: #ffffff;
  font-size: 0.95rem;
  text-decoration: none;
}

#site-footer .footer-contact {
  padding-left: 1.1rem;
}

#site-footer .footer-contact li {
  margin-bottom: 0.55rem;
}

#site-footer .footer-links a:hover,
#site-footer .footer-contact a:hover {
  color: var(--tf-teal);
}

#site-footer .footer-links a.active {
  border-bottom: 2px solid var(--tf-teal);
}

#site-footer .social-icon {
  border: 2px solid #ffffff;
}

#site-footer .footer-bottom {
  background: #000000;
}

#site-footer .footer-bottom p,
#site-footer .footer-bottom a {
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
}

#site-footer .footer-bottom a:hover {
  color: var(--tf-teal);
}

@media (max-width: 767.98px) {
  #site-footer .col-6 {
    width: 50%;
  }
}

/* ============================================================
   HOME HERO
============================================================ */
.tf-hero-sec {
  padding: 3rem 0 4rem;
}

.tf-hero-heading {
  color: var(--tf-navy);
  font-size: clamp(2.6rem, 4vw + 1rem, 4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tf-hero-heading strong {
  font-weight: 700;
}

.tf-hero-subheading {
  color: var(--tf-navy);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.25rem 0 1rem;
}

.tf-hero-desc {
  color: var(--tf-navy);
  font-size: 0.95rem;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.tf-hero-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border-radius: 100px;
  padding: 0.35rem 0.35rem 0.35rem 1.2rem;
  max-width: 440px;
  box-shadow: 0 6px 18px rgba(41, 63, 114, 0.18);
}

.tf-hero-search .bi-search {
  color: var(--tf-teal);
}

.tf-hero-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.95rem;
}

.tf-hero-search-btn {
  padding: 0.6rem 1.8rem;
}

@media (max-width: 991.98px) {
  .tf-hero-desc {
    margin-inline: auto;
  }
}

/* ============================================================
   ACCREDITATION SLIDER  ("Have Faith In Learning With Us")
============================================================ */
.tf-accredit-sec {
  padding: 2.5rem 0;
}

.tf-accredit-title {
  color: var(--tf-navy);
  font-size: clamp(1.9rem, 2.2vw + 1rem, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.2;
  margin: 0;
}

.tf-accredit-title strong {
  font-weight: 700;
}

.tf-accredit-swiper .swiper-wrapper {
  transition-timing-function: ease-in-out;
}

.tf-accredit-card {
  background: #e8fafe;
  border-radius: 10px;
  aspect-ratio: 201 / 141;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tf-accredit-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   POPULAR COURSES + COURSE CARD
============================================================ */
.tf-popular-sec {
  padding: 3rem 0;
}

.tf-course-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--tf-navy);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
  padding: 0.4rem 0.4rem 0.5rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tf-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(41, 63, 114, 0.15);
}

.tf-course-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--tf-light);
}

.tf-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tf-course-body {
  flex: 1;
  padding: 0.9rem 0.5rem 0.4rem;
}

.tf-course-title {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.tf-course-title a {
  color: var(--tf-dark);
  text-decoration: none;
}

.tf-course-title a:hover {
  color: var(--tf-teal);
}

.tf-course-students {
  color: var(--tf-navy);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.tf-course-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0;
}

.tf-course-price del,
.tf-course-price del * {
  color: #7b7b7b;
  font-size: 1rem;
}

.tf-course-price ins {
  text-decoration: none;
  color: var(--tf-teal);
  font-weight: 700;
  font-size: 1.4rem;
}

.tf-course-btn {
  display: block;
  text-align: center;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  margin-top: 0.75rem;
}

/* mobile-card-slider.js dots */
.mcs-slider .mcs-dot {
  background: var(--tf-navy);
}

.mcs-slider .mcs-dot-active {
  background: var(--tf-teal);
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.tf-testi-sec {
  padding: 3rem 0;
}

.tf-testi-swiper {
  padding-bottom: 2.5rem;
}

.tf-testi-card {
  border: 2px solid var(--tf-navy);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
  padding: 1.25rem 1.1rem 1.5rem;
}

.tf-testi-name {
  font-family: "Poppins", sans-serif;
  font-size: 1.45rem;
  color: var(--tf-dark);
  margin: 0;
  line-height: 1.2;
}

.tf-testi-role {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  color: var(--tf-dark);
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--tf-navy);
  width: 70%;
}

.tf-testi-stars {
  color: #f3af26;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.tf-testi-quote {
  font-size: 0.9rem;
  color: var(--tf-dark);
  margin: 0;
}

/* shared Swiper dots */
.tf-swiper-dots {
  text-align: center;
}

.tf-swiper-dots .swiper-pagination-bullet {
  background: var(--tf-navy);
  opacity: 0.3;
}

.tf-swiper-dots .swiper-pagination-bullet-active {
  background: var(--tf-teal);
  opacity: 1;
}

/* ============================================================
   SMOOTH JOURNEY
============================================================ */
.tf-journey-sec {
  padding: 3rem 0;
}

.tf-journey-img {
  border: 3px solid var(--tf-navy);
  border-radius: 16px;
  width: 100%;
}

.tf-journey-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.tf-journey-feature:last-child {
  margin-bottom: 0;
}

.tf-journey-icon {
  flex-shrink: 0;
  width: 112px;
  height: 92px;
  border-radius: 14px;
  background: #e8fafe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-journey-feature-2 .tf-journey-icon {
  background: #fef6e7;
}

.tf-journey-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.tf-journey-feature-title {
  color: var(--tf-navy);
  font-size: clamp(1.15rem, 0.8vw + 0.9rem, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.tf-journey-feature-desc {
  color: var(--tf-navy);
  font-size: 0.9rem;
  max-width: 330px;
  margin: 0;
}

@media (max-width: 575.98px) {
  .tf-journey-icon {
    width: 84px;
    height: 72px;
  }
  .tf-journey-icon img {
    width: 54px;
    height: 54px;
  }
}

/* ============================================================
   TRUSTED BRANDS  (grid >= 768px, Swiper slider below)
============================================================ */
.tf-brands-sec {
  padding: 3rem 0 4rem;
}

.tf-brands-swiper img {
  width: 100%;
  height: auto;
  display: block;
}

.tf-brands-pagination {
  display: none;
}

@media (min-width: 768px) {
  .tf-brands-swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    transform: none !important;
  }
  .tf-brands-swiper .swiper-slide {
    width: auto !important;
    margin: 0 !important;
  }
}

@media (min-width: 992px) {
  .tf-brands-swiper .swiper-wrapper {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .tf-brands-swiper {
    padding-bottom: 2rem;
  }
  .tf-brands-pagination {
    display: block;
  }
}

/* ============================================================
   CERTIFICATE CTA
============================================================ */
.tf-cert-sec {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
}

.tf-cert-title {
  color: var(--tf-teal);
  font-weight: 700;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  margin-bottom: 2.5rem;
}

.tf-cert-img {
  max-width: 380px;
}

.tf-cert-text {
  color: #6b7280;
  font-size: 0.95rem;
  text-align: justify;
  max-width: 520px;
}

.tf-cert-btn {
  border-radius: 6px;
  padding: 0.7rem 3.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ============================================================
   BLOG LISTING (grid / list toggle)
============================================================ */
.tf-blogs-main {
  padding: 2.5rem 0 4rem;
}

.tf-blogs-header h1 {
  color: var(--tf-navy);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.5vw + 1rem, 2.4rem);
}

.tf-view-toggle {
  display: flex;
  gap: 0.4rem;
}

.tf-view-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tf-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.tf-view-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.tf-view-btn.is-active {
  background: var(--tf-teal);
  color: #ffffff;
}

.tf-view-btn:not(.is-active):hover {
  color: var(--tf-teal);
}

.tf-blog-list {
  display: grid;
  gap: 1.75rem;
}

.tf-blog-card {
  display: flex;
  height: 100%;
  text-decoration: none;
  background: #ffffff;
  border: 1.5px solid #6fdcc4;
  border-radius: 14px;
  padding: 0.5rem;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.tf-blog-card:hover {
  box-shadow: 0 10px 24px rgba(40, 195, 162, 0.2);
  transform: translateY(-3px);
}

.tf-blog-thumb {
  border-radius: 10px;
  overflow: hidden;
  background: var(--tf-light);
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.tf-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tf-blog-title {
  color: var(--tf-navy);
  font-weight: 700;
  line-height: 1.25;
}

.tf-blog-excerpt {
  color: var(--tf-navy);
  line-height: 1.35;
}

.tf-blog-date {
  color: var(--tf-navy);
  font-weight: 700;
  margin: 0;
}

/* grid */
.tf-blog-list.is-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tf-blog-list.is-grid .tf-blog-card {
  flex-direction: column;
}

.tf-blog-list.is-grid .tf-blog-body {
  padding: 0.75rem 0.5rem 0.5rem;
}

.tf-blog-list.is-grid .tf-blog-title {
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.tf-blog-list.is-grid .tf-blog-excerpt {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.tf-blog-list.is-grid .tf-blog-date {
  font-size: 0.8rem;
}

/* list */
.tf-blog-list.is-list {
  grid-template-columns: 1fr;
}

.tf-blog-list.is-list .tf-blog-card {
  flex-direction: row;
  align-items: stretch;
  gap: 1.5rem;
}

.tf-blog-list.is-list .tf-blog-thumb {
  width: 300px;
}

.tf-blog-list.is-list .tf-blog-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem 1rem 0.75rem 0;
}

.tf-blog-list.is-list .tf-blog-title {
  font-size: 1.35rem;
}

.tf-blog-list.is-list .tf-blog-excerpt {
  font-size: 1.05rem;
  margin: 0.75rem 0;
}

.tf-blog-list.is-list .tf-blog-date {
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .tf-blog-list.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tf-blog-list.is-list .tf-blog-thumb {
    width: 240px;
  }
}

@media (max-width: 575.98px) {
  .tf-blog-list.is-grid {
    grid-template-columns: 1fr;
  }
  /* list rows stack image on top of text on phones, but stay wider than grid cards */
  .tf-blog-list.is-list .tf-blog-card {
    flex-direction: column;
    gap: 0;
  }
  .tf-blog-list.is-list .tf-blog-thumb {
    width: 100%;
  }
  .tf-blog-list.is-list .tf-blog-body {
    padding: 0.75rem 0.5rem 0.5rem;
  }
  .tf-blog-list.is-list .tf-blog-title {
    font-size: 1.15rem;
  }
  .tf-blog-list.is-list .tf-blog-excerpt {
    font-size: 0.9rem;
  }
}

/* ============================================================
   PAGINATION (paginate_links output)
============================================================ */
.tf-pagination,
.alcrs-custom-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tf-pagination .page-numbers,
.alcrs-custom-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 0.9rem;
  border: 2px solid #6fdcc4;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.tf-pagination .page-numbers.prev,
.tf-pagination .page-numbers.next,
.alcrs-custom-pagination .page-numbers.prev,
.alcrs-custom-pagination .page-numbers.next {
  padding: 0 2rem;
}

.tf-pagination .page-numbers.current,
.tf-pagination a.page-numbers:hover,
.alcrs-custom-pagination .page-numbers.current,
.alcrs-custom-pagination a.page-numbers:hover {
  background: var(--tf-teal);
  border-color: var(--tf-teal);
  color: #ffffff;
}

.tf-pagination .page-numbers.dots,
.alcrs-custom-pagination .page-numbers.dots {
  border: 0;
  min-width: 0;
  padding: 0 0.25rem;
}

@media (max-width: 767.98px) {
  .tf-section-title {
    text-align: center;
  }
}

/* ============================================================
   HOT DEALS
============================================================ */
.tf-deal-hero {
  background: #fdf1dc;
}

.tf-deal-hero-inner {
  position: relative;
  max-width: 1924px;
  margin: 0 auto;
}

.tf-deal-hero-img {
  display: block;
  width: 100%;
  height: auto;
}

/* hotspots, positioned as % of the 1924x751 artwork */
.tf-deal-hotspot {
  position: absolute;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 100px;
  cursor: pointer;
}

.tf-deal-hotspot:focus-visible {
  outline: 3px solid var(--tf-teal);
  outline-offset: 2px;
}

.tf-deal-copy {
  left: 78%;
  top: 67.5%;
  width: 8.8%;
  height: 8.3%;
}

.tf-deal-browse {
  left: 68.5%;
  top: 82.5%;
  width: 14%;
  height: 11%;
}

.tf-deal-copy-msg {
  position: absolute;
  left: 75.5%;
  top: 77%;
  transform: translateX(-50%);
  background: var(--tf-navy);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tf-deal-copy-msg.is-visible {
  opacity: 1;
}

.tf-deal-courses {
  background: #effcf9;
}

/* ============================================================
   COURSE LISTING (all courses, category archives, search)
============================================================ */
.tf-courses-main {
  background: var(--tf-page-bg);
}

.tf-page-title {
  color: var(--tf-navy);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.6vw + 1.1rem, 2.6rem);
}

.tf-courses-main .alcrs-category-pill {
  background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
  color: var(--tf-navy);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.55rem 1.4rem;
  box-shadow: 0 2px 6px rgba(41, 63, 114, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.tf-courses-main .alcrs-category-pill:hover {
  background: var(--tf-light);
  color: var(--tf-teal);
}

.tf-courses-main .alcrs-category-pill.alcrs-active {
  background: var(--tf-teal);
  color: #ffffff;
  font-weight: 500;
}

.tf-courses-main .alcrs-category-toggle {
  border-color: var(--tf-teal);
  color: var(--tf-teal);
}

.tf-course-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--tf-teal);
  border-radius: 10px;
  background: #ffffff;
  padding: 0.35rem 0.35rem 0.35rem 1.2rem;
  max-width: 560px;
}

.tf-course-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.95rem;
}

.tf-course-search .ch-btn {
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.6rem 2.2rem;
}

.tf-course-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: 2px solid var(--tf-teal);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  transition: box-shadow 0.25s ease;
}

.tf-course-row:hover {
  box-shadow: 0 10px 24px rgba(40, 195, 162, 0.18);
}

.tf-course-row-thumb {
  flex-shrink: 0;
  width: 170px;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--tf-teal);
  border-radius: 12px;
  overflow: hidden;
  background: var(--tf-light);
}

.tf-course-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tf-course-row-body {
  flex: 1;
  min-width: 0;
}

.tf-course-row-title {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.tf-course-row-title a {
  color: var(--tf-dark);
  text-decoration: none;
}

.tf-course-row-title a:hover {
  color: var(--tf-teal);
}

.tf-course-row-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--tf-navy);
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
}

.tf-stars {
  color: #f3af26;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.tf-course-row-desc {
  font-size: 0.8rem;
  color: var(--tf-dark);
  margin: 0;
}

.tf-course-row-price {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tf-course-row-price del,
.tf-course-row-price del * {
  color: #7b7b7b;
  font-size: 0.9rem;
}

.tf-course-row-price ins {
  text-decoration: none;
  color: var(--tf-teal);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
}

.tf-course-row-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 2.2rem;
  margin-top: 0.4rem;
}

.tf-sort {
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(41, 63, 114, 0.06);
  position: sticky;
  top: 1rem;
}

.tf-sort-label {
  color: var(--tf-navy);
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.tf-sort-label i {
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

.tf-sort-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tf-sort-list a {
  display: block;
  text-align: center;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  color: var(--tf-navy);
  font-size: 0.9rem;
  text-decoration: none;
}

.tf-sort-list a:hover {
  color: var(--tf-teal);
}

.tf-sort-list a.is-active {
  background: var(--tf-teal);
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .tf-sort {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  .tf-sort-label {
    margin: 0;
  }
  .tf-sort-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .tf-course-row {
    flex-wrap: wrap;
    padding: 0.5rem;
    gap: 0.75rem;
  }
  .tf-course-row-thumb {
    width: 110px;
  }
  .tf-course-row-body {
    flex-basis: calc(100% - 130px);
  }
  .tf-course-row-price {
    flex-basis: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
  }
  .tf-course-row-price ins {
    font-size: 1.35rem;
  }
  .tf-course-row-btn {
    margin: 0;
  }
}

@media (max-width: 575.98px) {
  .tf-course-row-title {
    font-size: 0.95rem;
  }
  .tf-course-row-desc {
    display: none;
  }
}

/* ============================================================
   SINGLE COURSE (tutor/single-course.php)
============================================================ */
.single-courses .hero-sec {
  background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
}

.single-courses .course-name {
  color: var(--tf-navy);
  font-weight: 700;
}

.single-courses .hero-sec .border-3 {
  border-color: var(--tf-navy) !important;
}

.single-courses .hero-info-card {
  border-color: #eef1f8 !important;
  box-shadow: 0 10px 30px rgba(41, 63, 114, 0.08);
}

.single-courses .hero-info-card .discounted-price,
.single-courses .hero-info-card .discounted-price * {
  color: var(--tf-navy);
}

.single-courses .tf-take-course-btn {
  color: var(--tf-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.single-courses .tf-or {
  margin: 0.4rem 0;
  font-size: 1.05rem;
}

.tf-btn-green {
  --_base: #0fb35c;
  --_hover: var(--tf-navy);
  --_text-base: #ffffff;
  --_text-hover: #ffffff;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.tf-btn-gift {
  --_base: #ef4b6c;
  --_hover: var(--tf-navy);
  --_text-base: #ffffff;
  --_text-hover: #ffffff;
  text-transform: uppercase;
}

.tf-text-yellow {
  color: #ffde59;
}

.single-courses .main-teg-line {
  background: var(--tf-teal);
  color: var(--tf-navy);
  border-radius: 100px;
}

.single-courses .main-teg-line a {
  color: var(--tf-navy) !important;
  font-style: italic;
  font-weight: 700;
}

.single-courses .main-teg-line .text-warning {
  color: #ffde59 !important;
}

.single-courses .overview-sec,
.single-courses .module-sec {
  background: #e9f9fd;
}

.single-courses .content-box {
  background: transparent;
  border: 0 !important;
  color: var(--tf-navy);
  text-align: justify;
}

.single-courses .fade-overlay {
  background: linear-gradient(to top, #e9f9fd 0%, rgba(233, 249, 253, 0) 100%);
}

.single-courses .show-more-btn {
  background: #a1bdc8;
  color: #ffffff;
  border-radius: 100px;
  font-size: 0.8rem;
  text-decoration: none;
}

.single-courses .pricing-card .illustration-box {
  border-color: var(--tf-navy);
}

.single-courses .pricing-card .price-new,
.single-courses .pricing-card .price-new * {
  color: var(--tf-teal);
}

.single-courses .pricing-card .buy-now-btn {
  color: var(--tf-dark);
  font-weight: 700;
}

.single-courses .faq-heading h2 {
  color: var(--tf-navy);
}

.single-courses .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--tf-dark);
  box-shadow: none;
}

.single-courses .accordion-body {
  background: linear-gradient(180deg, #ffffff 0%, #f6efff 100%);
  color: var(--tf-navy);
}

.tf-similar-sec {
  background: #e9f9fd;
}

.tf-similar-title {
  color: var(--tf-navy);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.5vw + 1rem, 2.4rem);
}

.single-courses .accordion-item {
  border-radius: 0;
  margin-bottom: 0.25rem;
}

/* ============================================================
   SINGLE BLOG
============================================================ */
.single-post main {
  background: var(--tf-page-bg);
  padding-top: 0;
}

.tf-sglblg-banner {
  background: var(--tf-teal);
  padding: 4.5rem 0;
}

.tf-sglblg-title {
  color: var(--tf-navy);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2.4rem);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.2;
}

.single-post #ch-sglblg-sec {
  background: transparent;
}

.tf-sglblg-thumb {
  min-height: 0;
  border: 4px solid var(--tf-teal);
  border-radius: 14px;
  overflow: hidden;
}

.single-post .ch-sglblg-content {
  color: var(--tf-navy);
  font-size: 1rem;
  line-height: 1.6;
}

.single-post .ch-sglblg-content h2,
.single-post .ch-sglblg-content h3 {
  color: var(--tf-navy);
  font-weight: 700;
  margin-top: 1.75rem;
}

.single-post .ch-sglblg-content a {
  color: var(--tf-teal-dark);
}

/* "Quick Overview" style boxes in post content (Group / Quote blocks) */
.single-post .ch-sglblg-content .wp-block-group.has-border-color,
.single-post .ch-sglblg-content blockquote {
  border: 1px solid var(--tf-navy);
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
  margin: 1.5rem 0;
}

/* ============================================================
   WOOCOMMERCE CART + CHECKOUT (classic shortcodes)
============================================================ */
.tf-woo-page {
  background: var(--tf-page-bg);
  color: var(--tf-dark);
}

.tf-woo-page .woocommerce-message,
.tf-woo-page .woocommerce-info,
.tf-woo-page .woocommerce-error {
  background: #e9f9fd;
  border: 0;
  border-radius: 18px;
  color: var(--tf-dark);
  text-align: center;
  padding: 1rem 1.5rem;
}

.tf-woo-page .woocommerce-message::before,
.tf-woo-page .woocommerce-info::before {
  color: var(--tf-teal);
}

/* buttons */
.tf-woo-page .button,
.tf-woo-page button.button,
.tf-woo-page .checkout-button,
.tf-woo-page #place_order {
  background: var(--tf-teal) !important;
  color: #ffffff !important;
  border: 0;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  transition: background-color 0.2s ease;
}

.tf-woo-page .button:hover,
.tf-woo-page .checkout-button:hover,
.tf-woo-page #place_order:hover {
  background: var(--tf-navy) !important;
}

/* inputs */
.tf-woo-page .input-text,
.tf-woo-page select,
.tf-woo-page .select2-container .select2-selection {
  border: 2px solid #6fdcc4;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  background: #ffffff;
}

.tf-woo-page .input-text:focus,
.tf-woo-page select:focus {
  outline: 0;
  border-color: var(--tf-teal);
  box-shadow: 0 0 0 3px rgba(40, 195, 162, 0.15);
}

/* cart: items left, totals right */
@media (min-width: 992px) {
  .tf-woo-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
  .tf-woo-cart .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
  }
  .tf-woo-cart .cart-collaterals .cart_totals {
    width: 100%;
    float: none;
  }
}

.tf-woo-cart table.shop_table {
  border: 0;
  border-collapse: separate;
  border-spacing: 0 0.75rem;
}

.tf-woo-cart table.shop_table thead {
  display: none;
}

.tf-woo-cart table.shop_table td {
  border: 0;
  background: #e9f9fd;
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.tf-woo-cart table.shop_table tr td:first-child {
  border-radius: 18px 0 0 18px;
}

.tf-woo-cart table.shop_table tr td:last-child {
  border-radius: 0 18px 18px 0;
}

.tf-woo-cart table.shop_table td.actions {
  background: transparent;
}

.tf-woo-cart .product-thumbnail img {
  width: 120px;
  border-radius: 10px;
}

.tf-woo-cart .product-name a {
  color: var(--tf-dark);
  text-decoration: none;
}

.tf-woo-cart .cart_totals,
.tf-woo-checkout #order_review {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 20px rgba(41, 63, 114, 0.06);
}

.tf-woo-cart .cart_totals h2 {
  display: none;
}

.tf-woo-cart .cart_totals table.shop_table td,
.tf-woo-cart .cart_totals table.shop_table th {
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.9rem;
}

.tf-woo-cart .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
}

.tf-woo-cart .coupon {
  display: flex;
  border: 2px solid var(--tf-teal);
  border-radius: 10px;
  padding: 0.25rem;
  background: #ffffff;
}

.tf-woo-cart .coupon .input-text {
  border: 0;
  flex: 1;
}

/* checkout */
.tf-woo-checkout h3 {
  color: var(--tf-dark);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.4rem;
}

.tf-woo-checkout #payment {
  background: transparent;
  border-radius: 0;
}

.tf-woo-checkout #payment ul.payment_methods {
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  padding: 0;
}

.tf-woo-checkout #payment ul.payment_methods li {
  border-bottom: 1px solid #dfe3ea;
  padding: 0.9rem 1rem;
}

.tf-woo-checkout #payment ul.payment_methods li:last-child {
  border-bottom: 0;
}

/* ============================================================
   FORM PAGES (certificate order, voucher redeem)
============================================================ */
.tf-form-banner-sub {
  color: var(--tf-dark);
  text-align: center;
  max-width: 620px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

.tf-form-sec {
  padding: 3.5rem 0 4.5rem;
}

.tf-form-side-img {
  max-width: 420px;
}

.tf-form-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e3ebf3;
  border-top: 4px solid var(--tf-teal);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(41, 63, 114, 0.08);
  padding: 2rem;
}

.tf-form-card-title {
  color: var(--tf-navy);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tf-form-card-desc {
  color: #6b7280;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.tf-form-card label {
  color: var(--tf-dark);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.tf-form-card label span {
  color: var(--tf-teal-dark);
}

.tf-form-card input[type="text"],
.tf-form-card input[type="email"] {
  border: 1px solid #d5dde6;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.1rem;
  background: var(--tf-light);
  color: var(--tf-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tf-form-card input[type="text"]:focus,
.tf-form-card input[type="email"]:focus {
  outline: none;
  border-color: var(--tf-teal);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(40, 195, 162, 0.2);
}

.tf-form-card input[type="submit"] {
  border: 0;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.5rem;
  cursor: pointer;
}

.tf-form-card input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}

#results_message {
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

#results_message:empty {
  display: none;
}

@media (max-width: 575.98px) {
  .tf-form-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ============================================================
   ABOUT PAGE
============================================================ */
.tf-about-eyebrow {
  display: inline-block;
  color: var(--tf-teal-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tf-about-intro {
  padding: 4.5rem 0;
}

.tf-about-intro p {
  color: #4b5563;
  line-height: 1.75;
}

.tf-about-img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

.tf-about-quote {
  background: var(--tf-navy);
  padding: 3.5rem 0;
}

.tf-about-quote p {
  color: #ffffff;
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.9rem);
  line-height: 1.4;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.tf-about-quote strong {
  color: var(--tf-teal);
}

.tf-about-values {
  padding: 4.5rem 0;
  background: var(--tf-light);
}

.tf-about-card {
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 24px rgba(41, 63, 114, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tf-about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(41, 63, 114, 0.12);
}

.tf-about-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 195, 162, 0.12);
  color: var(--tf-teal-dark);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.tf-about-card h3 {
  color: var(--tf-navy);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.tf-about-card p {
  color: #6b7280;
  margin: 0;
  line-height: 1.65;
}

.tf-about-cta {
  padding: 1rem 0 4.5rem;
}

.tf-about-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--tf-teal);
  border-radius: 16px;
  padding: 2.5rem 3rem;
}

.tf-about-cta-inner h2 {
  color: var(--tf-navy);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2.1rem);
  margin-bottom: 0.35rem;
}

.tf-about-cta-inner p {
  color: var(--tf-dark);
  margin: 0;
}

.tf-about-cta-inner .ch-btn {
  padding: 0.8rem 2.2rem;
  font-weight: 700;
  border-radius: 8px;
}

@media (max-width: 575.98px) {
  .tf-about-cta-inner {
    padding: 2rem 1.5rem;
  }
}
