.single-sfwd-courses .bb-course-banner-inner .bb-course-category {
  display: none !important;
}
.learndash-course-grid .ld-course-grid-enrolled,
.learndash-course-grid .ld-course-grid-students,
.learndash-course-grid [class*="student"] {
  display: none !important;
}
/* Card corners + shadow */
.learndash-course-grid .items-wrapper .ld_course_grid .thumbnail.course,
.learndash-course-grid .ld_course_grid .thumbnail.course,
.learndash-course-grid .ldcg-course-card {
  border-radius: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}

/* Enrolled badge color */
.learndash-course-grid .ld-status.ld-status-progress,
.learndash-course-grid .ld-course-status,
.learndash-course-grid .ldcg-status,
.learndash-course-grid .ribbon-enrolled,
.learndash-course-grid [class*="enrolled"] {
  background: #1d4ed8 !important;
  color: #fff !important;
  border-radius: 10px !important;
}

/* Remove author line */
.learndash-course-grid .caption .ld_course_grid_author,
.learndash-course-grid .caption .author,
.learndash-course-grid [class*="author"] {
  display: none !important;
}

/* Remove total students */
.learndash-course-grid .ld_course_grid_price + .ld_course_grid_meta .ld_course_grid_students,
.learndash-course-grid .ld-course-info [class*="student"],
.learndash-course-grid .caption [class*="student"] {
  display: none !important;
}
/* Hide LearnDash/BuddyBoss Points stat on profile course header */
.bb-profile-card .bb-course-stats .bb-course-stat:last-child,
.bb-profile-card .bb-profile-stats .bb-profile-stat:last-child,
.ld-profile-stats .ld-profile-stat:last-child {
  display: none !important;
}
/* Make the custom License Info account menu item match the others better */
.woocommerce-account .woocommerce-MyAccount-navigation-link--license-info a {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Small ID / profile-style icon */
.woocommerce-account .woocommerce-MyAccount-navigation-link--license-info a::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-block;
  opacity: 0.72;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  /* inline SVG icon */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2' ry='2'/><circle cx='9' cy='12' r='2.2'/><path d='M14 10h4'/><path d='M14 14h4'/></svg>");
}
/* CEFF account/course sections - responsive fix */
.woocommerce-account .ceff-section,
.woocommerce-account .ceff-course-section,
.woocommerce-account .ceff-cert-section,
.woocommerce-account .ceff-active-course-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Prevent text/buttons from forcing columns wider than the screen */
.woocommerce-account .ceff-section *,
.woocommerce-account .ceff-course-card *,
.woocommerce-account .ceff-cert-card * {
  box-sizing: border-box;
}

/* Make course/cert cards flexible and prevent overflow */
.woocommerce-account .ceff-course-card,
.woocommerce-account .ceff-cert-card {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.woocommerce-account .ceff-course-main,
.woocommerce-account .ceff-cert-main {
  min-width: 0;
  max-width: 100%;
}

.woocommerce-account .ceff-course-main strong,
.woocommerce-account .ceff-cert-main strong,
.woocommerce-account .ceff-course-main span,
.woocommerce-account .ceff-cert-main span {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Buttons should not force horizontal overflow */
.woocommerce-account .ceff-course-actions {
  min-width: 0;
  max-width: 100%;
}

.woocommerce-account .ceff-cert-button,
.woocommerce-account .ceff-course-button,
.woocommerce-account .ceff-hide-course-button,
.woocommerce-account .ceff-section-toggle {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* Mobile/tablet: force sections and cards into one clean column */
@media (max-width: 900px) {
  .woocommerce-account .ceff-section {
    margin: 18px 0;
  }

  .woocommerce-account .ceff-section-header,
  .woocommerce-account .ceff-section-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .woocommerce-account .ceff-section-title-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    min-width: 0;
  }

  .woocommerce-account .ceff-section-heading,
  .woocommerce-account .ceff-section-title {
    font-size: 22px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .woocommerce-account .ceff-section-toggle {
    justify-self: start;
    width: auto;
  }

  .woocommerce-account .ceff-section-collapsible .ceff-section-summary {
    padding: 16px;
  }

  .woocommerce-account .ceff-section-collapsible .ceff-section-body {
    padding: 0 16px 16px;
  }

  .woocommerce-account .ceff-course-list,
  .woocommerce-account .ceff-cert-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .woocommerce-account .ceff-course-card,
  .woocommerce-account .ceff-cert-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    padding: 16px;
  }

  .woocommerce-account .ceff-course-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    justify-content: stretch;
  }

  .woocommerce-account .ceff-cert-button,
  .woocommerce-account .ceff-course-button,
  .woocommerce-account .ceff-hide-course-button {
    width: 100%;
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .woocommerce-account .ceff-section-heading,
  .woocommerce-account .ceff-section-title {
    font-size: 20px;
  }

  .woocommerce-account .ceff-section-count {
    font-size: 13px;
  }

  .woocommerce-account .ceff-course-card,
  .woocommerce-account .ceff-cert-card {
    padding: 14px;
  }

  .woocommerce-account .ceff-course-main strong,
  .woocommerce-account .ceff-cert-main strong {
    font-size: 15px;
  }

  .woocommerce-account .ceff-course-main span,
  .woocommerce-account .ceff-cert-main span {
    font-size: 13px;
  }
}