@charset "UTF-8";

/* ==========================================================================
   0. GLOBAL RESETS & VARIABLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important; /* Forces prevention of horizontal scrolling */
    max-width: 100%; /* Uses % instead of vw to accurately account for scrollbars */
}

#page {
    overflow-x: hidden !important; /* Critical: Clips Kadence rows before they break the right-side fixed header */
}

/* ==========================================================================
   1. GLOBAL PAGE SPACING & ELEMENT VISIBILITY OVERRIDES
   ========================================================================== */

/* Remove BuddyBoss Default Gaps on Course Pages */
body.single-sfwd-courses #content.site-content,
body.single-sfwd-courses #primary.content-area,
body.single-sfwd-courses .bb-grid.site-content-grid {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Neutralize the footprint of the LearnDash Login Modal wrapper causing the logged-out gap */
.learndash-wrapper-login-modal {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Zero out the Kadence rows to prevent block gap issues */
#page .content-area .kb-row-layout-wrap.alignfull {
    margin-top: 0;
    margin-bottom: 0;
}

body.page:not(.sfwd-courses):not(.sfwd-lessons):not(.sfwd-topic):not(.sfwd-quiz) .entry-header,
body.page:not(.sfwd-courses):not(.sfwd-lessons):not(.sfwd-topic):not(.sfwd-quiz) .bb-page-header,
body.page:not(.sfwd-courses):not(.sfwd-lessons):not(.sfwd-topic):not(.sfwd-quiz) .page-header,
body.single-post .entry-header,
body.single-post .bb-page-header,
body.single-post .page-header,
div #breadcrumbs {
    display: none;
}

/* Ensure LearnDash Login wrapper doesn't break grid */
.user_has_no_access {
    width: 100%;
    max-width: 100%;
}

/* ==========================================================================
   2. KADENCE BREAKOUT LAYOUT STRIPS
   ========================================================================== */
.kb-row-layout-wrap.alignfull,
.kb-row-layout-wrap.alignfull .kb-row-layout-wrap.alignfull {
    width: 100vw !important; /* Kept !important as breakout utilities require it to fight strict block containers */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kb-row-layout-wrap.alignfull > .kt-row-column-wrap,
.kb-row-layout-wrap.alignfull .kb-row-layout-wrap.alignfull > .kt-row-column-wrap {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   3. BUDDYBOSS CONTAINER DROPDOWNS & NAVIGATION ACCESSIBILITY
   ========================================================================== */

/* Removed the max-width and position: relative overrides that were breaking the header background */

body:not(.logged-in) #site-navigation,
body:not(.logged-in) #primary-navbar,
body:not(.logged-in) .bb-primary-overflow {
    overflow: visible;
}

#header-aside .sub-menu-inner > li:first-child > a.user-link {
    background-color: var(--bb-primary-color);
    color: #ffffff;
}

#header-aside .sub-menu-inner > li:first-child > a.user-link .user-name,
#header-aside .sub-menu-inner > li:first-child > a.user-link .user-mention {
    color: #ffffff;
}

#header-aside .sub-menu-inner > li:first-child > a.user-link:hover {
    opacity: 0.9;
}

#header-aside .sub-menu-inner li a.ab-item,
#header-aside .sub-menu-inner li.logout-link a,
#header-aside .sub-menu-inner .ab-sub-wrapper .ab-submenu li a.ab-item {
    color: #333333;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

#header-aside .sub-menu-inner li a.ab-item i,
#header-aside .sub-menu-inner li.logout-link a i {
    color: #888888;
}

#header-aside .sub-menu-inner li a.ab-item:hover,
#header-aside .sub-menu-inner li a.ab-item:focus,
#header-aside .sub-menu-inner li.menupop:hover > a.ab-item,
#header-aside .sub-menu-inner li.logout-link a:hover,
#header-aside .sub-menu-inner li.logout-link a:focus,
#header-aside .sub-menu-inner .ab-sub-wrapper .ab-submenu li a.ab-item:hover {
    background-color: var(--bb-primary-color);
    color: #ffffff;
}

#header-aside .sub-menu-inner li a.ab-item:hover i,
#header-aside .sub-menu-inner li.logout-link a:hover i {
    color: #ffffff;
}

.bb-template-v2 .buddypanel-menu > li > .bb-menu-item > i:not(.bb-icon-angle-down) { color: #ffffff; }


/* ==========================================================================
   4. FOXSY CORE CUSTOM LEARNDASH GRID CARDS
   ========================================================================== */
.foxsy-grid-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.foxsy-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.foxsy-card-thumbnail {
    width: 100%;
    padding-bottom: 66.67%;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.foxsy-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.foxsy-grid-card:hover .foxsy-card-thumbnail img { transform: scale(1.05); }

.foxsy-card-content {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.foxsy-card-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    order: -10;
    margin-bottom: 4px;
}

.foxsy-rating-stars {
    display: flex;
    gap: 2px;
    color: #ffa500;
    font-size: 16px;
    letter-spacing: 1px;
}

.foxsy-rating-stars .star.filled { color: #ffa500; }
.foxsy-rating-stars .star.half { color: #ffa500; opacity: 0.5; }
.foxsy-rating-stars .star.empty { color: #d0d0d0; }
.foxsy-rating-text { font-size: 13px; color: #999; font-weight: 500; }

.foxsy-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 47px;
    order: -9;
}

.foxsy-card-title a { color: inherit; text-decoration: none; }
.foxsy-card-title a:hover { color: #027373; }

.foxsy-card-byline {
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 1.4;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    order: -8;
}

.foxsy-instructor-link { color: #027373; text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.foxsy-instructor-link:hover { color: #015555; text-decoration: underline; }

.foxsy-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    order: -7;
    min-height: 72px;
}

.foxsy-access-badge-wrapper { margin-top: auto; padding-top: 12px; order: -6; }

.foxsy-access-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #027373 0%, #8faa7e 100%);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.foxsy-badge-text { color: #ffffff; }

.foxsy-access-badge:hover {
    background: linear-gradient(135deg, #015555 0%, #7a9369 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 115, 115, 0.3);
}

.foxsy-logo { height: 16px; width: auto; }

.foxsy-grid-card .foxsy-card-footer {
    padding: 16px 20px 24px 20px !important;
    margin-top: auto;
    flex-shrink: 0 !important;
    min-height: max-content !important;
}

.foxsy-cta-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box !important;
}

.foxsy-grid-card .foxsy-cta-button.foxsy-view-class {
    margin-bottom: 8px !important; /* Forced override against LearnDash's last-child margin stripping */
    background: transparent;
    color: #027373;
    border: 2px solid #027373 !important; /* Locked down so it doesn't get clipped */
}

.foxsy-cta-button.foxsy-view-class:hover {
    background: #027373;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 115, 115, 0.3);
}

.foxsy-grid-card .foxsy-cta-button.foxsy-get-pass {
    background-color: #6220a8 !important;
    border: 2px solid #6220a8 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
}

.foxsy-grid-card .foxsy-cta-button.foxsy-get-pass:hover {
    background-color: #027373 !important;
    border-color: #027373 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 115, 115, 0.3);
}

.learndash-course-grid .load-more-button,
.learndash-course-grid button.load-more {
    background-color: #027373;
    color: #ffffff;
    border: none;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 6px;
}

.learndash-course-grid .load-more-button:hover,
.learndash-course-grid button.load-more:hover {
    background-color: #015555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 115, 115, 0.3);
}

/* ==========================================================================
   5. SAMCART BILLING ACCOUNTS INTERFACE
   ========================================================================== */
.foxsy-billing-dashboard { width: 100%; margin-top: 10px; }
.foxsy-billing-section { margin-bottom: 40px; }

.foxsy-billing-section h3 {
    border-bottom: 2px solid var(--bb-content-border-color, #e7e9ec);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--bb-body-text-color);
}

.foxsy-billing-card {
    border: 1px solid var(--bb-content-border-color, #e7e9ec);
    border-radius: 8px;
    padding: 20px;
    background: var(--bb-content-background-color, #fff);
    margin-bottom: 15px;
}

.foxsy-billing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.foxsy-billing-label {
    font-size: 0.85em;
    color: var(--bb-body-text-color, #666);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.foxsy-billing-value {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--bb-body-text-color, #333);
}

.foxsy-cancel-btn {
    color: #d9534f;
    border: 1px solid #d9534f;
    background: transparent;
    transition: 0.2s all ease-in-out;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
}

.foxsy-cancel-btn:hover { background: #d9534f; color: #ffffff; }

.foxsy-table { width: 100%; border-collapse: collapse; margin-top: 10px; color: var(--bb-body-text-color); }
.foxsy-table th, .foxsy-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--bb-content-border-color, #e7e9ec);
}
.foxsy-table th { background: var(--bb-body-background-color, #f8f9fa); font-weight: 600; font-size: 0.9em; }

.foxsy-action-bar {
    margin-top: 15px;
    border-top: 1px solid var(--bb-content-border-color, #e7e9ec);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.foxsy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.foxsy-modal-content {
    background: var(--bb-content-background-color, #ffffff);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    z-index: 9999;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.foxsy-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--bb-body-text-color);
    opacity: 0.6;
}
.foxsy-modal-close:hover { opacity: 1; }

.foxsy-modal-content h3 {
    margin-top: 0;
    color: var(--bb-primary-color, #204ce5);
    font-size: 1.6em;
    margin-bottom: 15px;
}

.foxsy-offer-text { font-size: 1.1em; line-height: 1.5; margin-bottom: 25px; }
.foxsy-btn-stack { display: flex; flex-direction: column; gap: 15px; align-items: center; }

.foxsy-link-btn {
    background: none;
    border: none;
    color: var(--bb-body-text-color);
    opacity: 0.8;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95em;
    padding: 0;
}
.foxsy-link-btn:hover { opacity: 1; }

/* ==========================================================================
   6. INTERACTIVE ASSIGNMENT FEEDBACK INTERFACES
   ========================================================================== */
.foxsy-assignment-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.foxsy-assignment-card {
    border: 1px solid var(--bb-content-border-color, #e7e9ec);
    border-radius: 8px;
    padding: 24px;
    background: var(--bb-content-background-color, #fff);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.foxsy-assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bb-content-border-color, #e7e9ec);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.foxsy-assignment-title { margin: 0; font-size: 1.2em; font-weight: bold; color: var(--bb-headings-color); }

.foxsy-status-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.85em; font-weight: 600; }
.foxsy-status-badge.status-approved { background: #d4edda; color: #155724; }
.foxsy-status-badge.status-pending { background: #fff3cd; color: #856404; }

.foxsy-assignment-meta { font-size: 0.9em; color: var(--bb-body-text-color, #666); opacity: 0.9; margin-bottom: 15px; }

.foxsy-feedback-area {
    background: var(--bb-body-background-color, #f8f9fa);
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.foxsy-comment { margin-bottom: 15px; padding: 15px; border-radius: 6px; }
.foxsy-comment:last-of-type { margin-bottom: 0; }
.foxsy-comment-instructor { background: #eef2ff; border-left: 4px solid var(--bb-primary-color, #204ce5); }
.foxsy-comment-student {
    background: var(--bb-content-background-color, #ffffff);
    border: 1px solid var(--bb-content-border-color, #e7e9ec);
    border-left: 4px solid #a0aec0;
}

.foxsy-comment-meta { font-size: 0.85em; color: #555; margin-bottom: 5px; }
.foxsy-reply-form {
    margin-top: 20px;
    border-top: 1px dashed var(--bb-content-border-color, #cbd5e0);
    padding-top: 20px;
}
.foxsy-reply-textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--bb-content-border-color, #cbd5e0);
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

/* ==========================================================================
   7. LEARNDASH UI BUTTON NORMALIZATIONS & GRAVITY FORMS
   ========================================================================== */
.pagination .load-more {
    background-color: var(--bs-button-primary-bg, #007bff);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pagination .load-more:hover {
    background-color: var(--bs-button-primary-hover, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}
.pagination .load-more:disabled, .pagination .load-more.loading { opacity: 0.6; cursor: not-allowed; }

.hide-required-indicator .gfield_required { display: none; }
.bold-radio-labels-14px .gfield_radio li label { font-weight: bold; font-size: 14px; }

/* ==========================================================================
   8. FORUMS ARCHIVE LANDSCAPE BANNER & WCA COHORT SHORTCODES
   ========================================================================== */
.kb-image-forums-hero { margin-bottom: 2rem; margin-top: 0; width: 100%; }
.kb-image-forums-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.foxsy-wca-tracker img { display: block; margin: 0 auto; height: auto; }
.foxsy-wca-fullview img { width: 75%; }
.foxsy-wca-progressview img { width: 235px; height: 60px; margin-bottom: 10px; }

/* ==========================================================================
   9. ACF TEXT ENGINE DESIGN & COURSE HEADER ADJUSTMENTS
   ========================================================================== */

/* Main Class Page Section Headers */
#page .foxsy-section-heading,
#page .foxsy-projects-heading,
#page #learndash_course_content_title,
#page .bb-about-instructor .bb-instructor-heading {
    font-size: 26px;
    line-height: 26px;
    margin: 0 0 20px 0;
    font-weight: 700;
    color: var(--bb-headings-color) !important; /* Restored !important to override Kadence/LearnDash */
    text-transform: none;
}

/* Sidebar and Review Headers (Overrides Hardcoded Inline HTML Styles) */
#page .foxsy-sidebar-box h4,
#page .bb-single-course-sidebar h4,
#page #course-reviews-section h3 {
    color: var(--bb-headings-color) !important;
}

/* Course Content Tabs (Class / Materials) */
#page .bb-ld-tabs .ld-tabs-navigation .ld-tab.ld-active,
#page .bb-ld-tabs .ld-tabs-navigation .ld-tab.ld-active span,
#page .bb-ld-tabs .ld-tabs-navigation .ld-tab.ld-active .ld-icon,
#page .bb-ld-tabs .ld-tabs-navigation .ld-tab:hover,
#page .bb-ld-tabs .ld-tabs-navigation .ld-tab:hover span,
#page .bb-ld-tabs .ld-tabs-navigation .ld-tab:hover .ld-icon {
    color: var(--bb-headings-color) !important;
    border-bottom-color: var(--bb-headings-color) !important;
}

.foxsy-checkmark, .foxsy-checkmark svg, .foxsy-checkmark svg path { color: #027373; fill: #027373; }
.foxsy-class-projects-section { margin: 0 0 40px 0; padding: 0; background: transparent; }
.foxsy-projects-intro { font-size: 16px; line-height: 1.6; margin: 0 0 25px 0; }

.foxsy-projects-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
}

.project-image-wrap { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.project-image-wrap img { width: 100%; height: auto; display: block; border-radius: 8px; transition: transform 0.3s ease; }

.foxsy-custom-course-content .kt-svg-icon-list li { transition: transform 0.2s ease; }
.foxsy-custom-course-content .kt-svg-icon-list li:hover { transform: translateX(5px); }
.foxsy-projects-gallery .project-image-wrap:hover img { transform: scale(1.05); }
.foxsy-lightbox-trigger { cursor: zoom-in; }

/* ==========================================================================
   10. RESTRUCTURED CLASS DIRECTORY LESSON LOOPS
   ========================================================================== */
#page #lesson_heading { display: none; }
#learndash_lessons { background: transparent; padding: 0; border: none; }
#lessons_list { display: flex; flex-direction: column; gap: 12px; }

#lessons_list > div {
    background: #ffffff;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#lessons_list > div:hover {
    border-color: #027373;
    box-shadow: 0 4px 12px rgba(2, 115, 115, 0.15);
    transform: translateX(5px);
}

#lessons_list .list-count {
    background: #027373;
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

#lessons_list h4 { margin: 0; flex-grow: 1; font-size: 16px; font-weight: 600; }
#lessons_list h4 a { color: #333333; text-decoration: none; }
#lessons_list h4 a:hover { color: #027373; }
#lessons_list h4 a.completed::after { content: "✓"; display: inline-block; margin-left: 10px; color: #4CAF50; font-weight: bold; }
#lessons_list h4 a.notcompleted::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #DDDDDD;
    border-radius: 50%;
    margin-left: 10px;
    vertical-align: middle;
}

/* ==========================================================================
   11. TIPPY TOOLTIPS CUSTOM THEMING
   ========================================================================== */
.tippy-box[data-theme~='foxsy'] {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 2px solid #f2916d;
    max-width: 280px;
}
.tippy-box[data-theme~='foxsy'] .tippy-content { padding: 0; }
.tippy-box[data-theme~='foxsy'][data-placement^='top'] > .tippy-arrow::before { border-top-color: #f2916d; }
.tippy-box[data-theme~='foxsy'][data-placement^='bottom'] > .tippy-arrow::before { border-bottom-color: #f2916d; }
.tippy-box[data-theme~='foxsy'][data-placement^='left'] > .tippy-arrow::before { border-left-color: #f2916d; }
.tippy-box[data-theme~='foxsy'][data-placement^='right'] > .tippy-arrow::before { border-right-color: #f2916d; }
.tippy-box[data-theme~='foxsy'] .tippy-arrow { width: 16px; height: 16px; }

/* ==========================================================================
   12. RESPONSIVE MEDIA CONTROLS & MISC FIXES
   ========================================================================== */
@media (max-width: 768px) {
    .foxsy-custom-course-content .wp-block-columns { flex-direction: column; }
    .foxsy-projects-gallery { grid-template-columns: repeat(2, 1fr); }
    .kb-image-forums-hero img { border-radius: 12px; }
}
@media (max-width: 480px) {
    .foxsy-projects-gallery { grid-template-columns: 1fr; }
    .kb-image-forums-hero img { border-radius: 8px; }
}

/* Fix for Class Reviews Background (Updated with correct ID from HTML) */
#page #course-reviews-section {
    background-color: #ffffff !important;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #8C8BFF; /* Matches the light purple from the About Instructor Box */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-top: 30px;
}

/* Force Samcart Outline Buttons to match theme and override inline styles */
#page .bb-single-course-sidebar .foxsy-sidebar-box a.foxsy-btn-outline {
    background: transparent !important;
    color: #027373 !important;
    border: 2px solid #027373 !important;
}

#page .bb-single-course-sidebar .foxsy-sidebar-box a.foxsy-btn-outline:hover {
    background: #027373 !important;
    color: #ffffff !important;
}

/* Fix for Textarea Resize Handle on Assignments */
.bb-assignment-response textarea,
.activity-update-form textarea,
#bp-message-content,
.foxsy-reply-textarea {
    resize: vertical;
    overflow-y: auto;
    min-height: 100px;
}

/* Fix for Fox Den Comment Hover unreadable text */
#page #bbpress-forums ul.bbp-replies li.bbp-body div.hentry:hover,
#page .activity-list li.activity-item:hover,
#page .activity-list li.comment-item:hover {
    background-color: #f8f9fa; /* Soft grey instead of dark purple */
    transition: background-color 0.2s ease;
}

/* ==========================================================================
   13. BUDDYBOSS PROFILE & PAGE SPACING FIXES
   ========================================================================== */

/* Restore top spacing for all BuddyBoss pages to clear the fixed header */
body.buddypress #content.site-content {
    padding-top: 40px !important; 
}

/* Fix alignment and weird gaps inside the Profile Details boxes */
#page .bp-profile-content table.profile-fields {
    margin-top: 10px !important; /* Pulls the content up closer to the separator line */
    width: 100%;
}

#page .bp-profile-content table.profile-fields tr td.label,
#page .bp-profile-content table.profile-fields tr td.data {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    vertical-align: middle !important;
}

#page .bp-profile-content table.profile-fields tr td.label {
    width: 25%; /* Keeps the labels column a consistent width */
    color: var(--bb-headings-color);
    font-weight: 600;
}