/* Hide the BuddyBoss profile header (avatar + cover block) */
body.buddypress #item-header.users-header.single-headers {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide BuddyBoss subnavs
body.buddypress .bp-subnavs {
  display: none !important;
} */

/* Hide LearnDash sidebar only on one Homework
body.postid-56149 .bb-single-course-sidebar.bb-preview-wrap {
  display: none !important;
} */

/* Hide pagination count only on the Plans (Groups) page
body.groups.bp-user.my-groups .bp-pagination {
  display: none !important;
} */

/* 🧹 Hide BuddyBoss LearnDash category (e.g., "SAT Math") */
.bb-course-category {
  display: none !important;
}

/* 🧮 Also hide course points if present */
.bb-course-points,
.bb-course-points-wrap {
  display: none !important;
}

/* 🧹 Hide category + points (already working, keeping for completeness) */
.bb-course-category,
.bb-course-points,
.bb-course-points-wrap {
  display: none !important;
}

/* 3️⃣ Shrink course title text 
body.single-sfwd-courses h1.entry-title {
  font-size: 1.6rem !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
}*/

/* --- KYBO Academy: Unified Header Title Size for LearnDash --- 
body.single-sfwd-courses h1.entry-title,
body.single-sfwd-homework h1.entry-title,
body.single-sfwd-lessons h1.entry-title,
body.single-sfwd-topic h1.entry-title,
body.single-sfwd-quiz h1.entry-title {
  font-size: 1.6rem !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
}*/

/* above here good! */

/* === KYBO: Hide Group Name & Total Seats without breaking updates === */

/* Collapse visual layout but keep the inputs in the DOM */
body.page-id-54744 .uo-edit-group-field.uo-edit-group-field-group-name label,
body.page-id-54744 .uo-edit-group-field.uo-edit-group-field-total-seats label {
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-54744 .uo-edit-group-field.uo-edit-group-field-group-name input,
body.page-id-54744 .uo-edit-group-field.uo-edit-group-field-total-seats input {
  opacity: 0 !important;        /* hide visually */
  height: 0 !important;         /* collapse */
  pointer-events: none !important; /* prevent clicks */
  position: absolute !important;
}

/* === KYBO: Force-hide "Group name" & "Total seats" on Uncanny front-end editor === */

/* Add an animation hook to continuously reapply the hide state when fields are injected */
@keyframes hideUncannyFields {
  from { opacity: 1; }
  to { opacity: 0; }
}

div.uo-edit-group-field.uo-edit-group-field-group-name,
div.uo-edit-group-field.uo-edit-group-field-total-seats {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  animation: hideUncannyFields 1s infinite;
}


/* KYBO — Fix oversized labels in comment forms */
#subscribe-label,
#subscribe-blog-label,
.comment-subscription-form label.subscribe-label {
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  color: #777 !important;
  display: inline-block !important;
  margin: 4px 0 !important;
}

/* KYBO TV New Post */
.kybo-tv-form input,
.kybo-tv-form textarea {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  font-size: 1rem;
}

.kybo-tv-form button:hover {
  background: #444;
}

/* ============================================================
   🧱 KYBO ACADEMY — HIDE/RESTORE BUDDYBOSS HORIZONTAL NAV BARS (v2.1)
   Global hide, but ALWAYS show on any Profile page for all users
   (plus Messages / Directories / Activity / Groups like before).
   ============================================================ */

/* 1) Global hide (catch all) */
.bb-group-header__nav,
.bb-member-header__nav,
.bb-profile-nav,
.bb-profile-subnav,
.bb-course-nav,
.bb-group-header .bp-navs,
.bb-group-header .bp-subnavs,
.bb-profile-header .bp-navs,
.bb-profile-header .bp-subnavs,
.bb-course-header .bp-navs,
.bb-course-header .bp-subnavs,
nav.buddypress-object-nav,
#item-nav,
#object-nav,
#subnav,
.bb-single-main-nav,
.bb-user-header__nav {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 2) Restore for Messages, Directories, Activity */
body.messages #subnav,
body.messages .bp-navs,
body.messages .bp-subnavs,
body.directory #subnav,
body.directory .bp-navs,
body.directory .bp-subnavs,
body.activity #subnav,
body.activity .bp-navs,
body.activity .bp-subnavs {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
}

body.messages #subnav {
  margin: 0 0 18px 0 !important;
  padding: 14px 20px 6px 20px !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* 3) Restore inside Study Plan (Groups) */
body.single-item.groups nav.buddypress-object-nav,
body.single-item.groups #item-nav,
body.single-item.groups #object-nav,
body.single-item.groups #subnav,
body.single-item.groups .group-nav,
body.single-item.groups .bb-navs,
body.single-item.groups .bp-navs,
body.single-item.groups .bp-subnavs,
body.single-item.groups .bb-single-main-nav,
body.single-item.groups .bb-group-header__nav,
body.single-item.groups .groups-header .bp-navs,
body.single-item.groups .groups-header .bp-subnavs,
body.single-item.groups .item-body .bp-navs,
body.single-item.groups .item-body .bp-subnavs {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
}

body.single-item.groups #item-nav,
body.single-item.groups #object-nav,
body.single-item.groups .bb-single-main-nav,
body.single-item.groups .bb-group-header__nav,
body.single-item.groups .groups-header .bp-navs {
  margin: 0 0 14px 0 !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* 4) 🔥 Always show nav on ANY Profile page (everyone, viewing anyone) */
/* BuddyBoss/BuddyPress profile body classes vary, so cover common variants */
body.profile #object-nav,
body.profile .bb-profile-nav,
body.profile .bb-profile-subnav,
body.profile .bp-navs,
body.profile .bp-subnavs,
body.buddypress.bp-user #object-nav,
body.buddypress.bp-user .bb-profile-nav,
body.buddypress.bp-user .bb-profile-subnav,
body.buddypress.bp-user .bp-navs,
body.buddypress.bp-user .bp-subnavs,
body.buddypress.members #object-nav,
body.buddypress.members .bb-profile-nav,
body.buddypress.members .bb-profile-subnav,
body.buddypress.members .bp-navs,
body.buddypress.members .bp-subnavs,
body.single-item.members #object-nav,
body.single-item.members .bb-profile-nav,
body.single-item.members .bb-profile-subnav,
body.single-item.members .bp-navs,
body.single-item.members .bp-subnavs,
body.single-item.users #object-nav,
body.single-item.users .bb-profile-nav,
body.single-item.users .bb-profile-subnav,
body.single-item.users .bp-navs,
body.single-item.users .bp-subnavs,
body.members #object-nav,
body.members .bb-profile-nav,
body.members .bb-profile-subnav,
body.members .bp-navs,
body.members .bp-subnavs,
.bb-user-header__nav {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
  margin: 0 0 14px 0 !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* 5) Cleanup */
.bb-group-header,
.bb-profile-header,
.bb-course-header,
.group-header,
.member-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border: none !important;
  box-shadow: none !important;
}



/* ================================
   KYBO — Clean, Minimal Homework Banner
   ================================ */

/* 1. Restore banner container shape, but smaller */
.bb-learndash-banner {
    max-height: 180px !important;
    padding: 20px 0 !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 2. Center the title, ensure it is visible */
.bb-learndash-banner .bb-course-banner-inner,
.bb-learndash-banner .bb-course-banner-info,
.bb-learndash-banner .bb-single-meta {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

/* 3. Actual H1 title styling */
.bb-learndash-banner h1.entry-title {
    font-size: 32px !important;      /* smaller */
    font-weight: 600 !important;
    color: #ffffff !important;       /* white text */
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. Hide the useless Featured Image preview box */
.bb-course-preview-wrap .thumbnail-container,
.bb-course-preview-wrap .bb-thumbnail-preview,
.bb-thumbnail-container,
.bb-thumbnail-container-img {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   KYBO — HIDE BuddyBoss PROFILE horizontal submenu
   (NOT BuddyPanel, NOT Messages, NOT Groups)
   ========================================================= */

/* Only on BuddyBoss member profile pages */
body.bp-user #object-nav,
body.buddypress.bp-user nav#object-nav,
body.buddypress.bp-user .bp-navs.single-screen-navs {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}

/* Remove the spacing container BuddyBoss leaves behind */
body.bp-user .bp-wrap,
body.bp-user .bp-single-plain-nav,
body.bp-user .bb-profile-grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =========================================
   KYBO — Modern responsive video embeds
   ========================================= */

.kybo-vimeo-embed,
.kybo-streamyard-embed {
    aspect-ratio: 16 / 9;
    width: 100%;
    position: relative;
}

.kybo-vimeo-embed iframe,
.kybo-streamyard-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* admin menu wrap */
.wp-admin #adminmenuwrap {
    position: relative !important;
    overflow-y: auto !important;
    height: auto !important;
}

.wp-admin #adminmenuwrap {
    position: relative !important;
}

/* 🚫 Hide "Members" tab in BuddyBoss Group nav */
body.single-item.groups #members-groups-li {
    display: none !important;
}

/* 🚫 Hide Members tab if it appears inside "..." dropdown */
body.single-item.groups .bb-more-dropdown #members-groups-li {
    display: none !important;
}

/* 🚫 Hide Members directory content if accessed directly */
body.single-item.groups #members {
    display: none !important;
}