/* -----------------------------------------------------------
   INTENTIVIST RETRO LMS THEME - FULL STYLING
   BuddyBoss + LearnDash + Retro Atomic Age Look
----------------------------------------------------------- */

/* ===========================
   GLOBAL
=========================== */

body {
    background-color: #78C2C4 !important; /* vintage teal */
    font-family: "Inter", system-ui, sans-serif;
    color: #0b3f4a;
}

a {
    color: #0b3f4a;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

/* ===========================
   RETRO HEADER
=========================== */

.site-header,
.bb-header,
.bb-header-main,
header#masthead {
    background: #0b3f4a !important; /* dark teal */
    border-bottom: 6px solid #d86a34 !important; /* retro orange */
    box-shadow: 0 6px 0 rgba(0,0,0,0.55);
    z-index: 9999;
    position: relative;
}

/* Menu branding */
.site-header .site-branding img,
.bb-header .site-branding img {
    max-height: 52px !important;
}

/* Primary menu buttons */
.main-navigation .menu > li > a,
.bb-primary-menu > li > a,
nav.bb-primary-menu > ul > li > a {
    font-family: "Gagalin", sans-serif !important;
    text-transform: uppercase;
    background: #d86a34 !important;
    color: #ffffff !important;
    padding: 0.55rem 1.45rem !important;
    border-radius: 999px;
    border: 3px solid #ffffff !important;
    margin: 0 0.35rem !important;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 0 rgba(0,0,0,0.5) !important;
}

.main-navigation .menu > li > a:hover,
.bb-primary-menu > li > a:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

/* ===========================
   PAGE TITLES (BuddyBoss)
=========================== */

.page-header .entry-title,
.bb-page-header .entry-title,
h1.entry-title {
    font-family: "Gagalin", sans-serif !important;
    font-size: 2.8rem !important;
    text-transform: uppercase;
    color: #0b3f4a !important;
    letter-spacing: 0.06em;
}

/* ===========================
   COURSE GRID CARDS (BuddyBoss)
=========================== */

.bb-course-items .bb-course-item,
.bb-course-items .bb-card,
.bb-course-items article,
.ld-course-list-items .ld_course_grid {
    background: #f7f0d9 !important; /* cream */
    border: 4px solid #0b3f4a !important; /* dark teal */
    border-radius: 16px !important;
    box-shadow: 0 10px 0 rgba(0,0,0,0.5) !important;
    overflow: hidden;
}

/* Course thumbnail */
.bb-course-items .bb-card-header,
.bb-course-items .bb-course-thumbnail,
.ld_course_grid .thumbnail {
    border-bottom: 4px solid #0b3f4a !important;
}

/* Course title */
.bb-course-items .bb-course-title,
.bb-course-items .bb-course-title a,
.ld_course_grid .course-title {
    font-family: "Gagalin", sans-serif !important;
    font-size: 1.4rem !important;
    color: #0b3f4a !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

/* Lesson/Meta text */
.bb-course-items .bb-course-content p,
.ld_course_grid .course-meta {
    color: #0b3f4a !important;
    opacity: 0.85;
}

/* ===========================
   PROGRESS BARS
=========================== */

.ld-progress-bar,
.ld-progress,
.bb-course-progress,
.course-progress-bar {
    background: rgba(255,255,255,0.7) !important;
    border-radius: 999px !important;
    height: 10px !important;
}

.ld-progress-bar-percentage,
.ld-progress .ld-progress-bar-percentage,
.course-progress-completed {
    background: #d86a34 !important;
    border-radius: 999px !important;
}

/* ===========================
   COURSE SINGLE PAGES
=========================== */

.ld-course-status,
.ld-status,
.ld-course-status .ld-progress {
    background: #f7f0d9 !important;
    border: 4px solid #0b3f4a !important;
    padding: 1.5rem !important;
    border-radius: 14px;
}

/* Section headers */
.ld-section-heading,
.ld-table-list-header,
.ld-content-title {
    font-family: "Gagalin", sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0b3f4a !important;
}

/* ===========================
   BUTTONS
=========================== */

button,
input[type=submit],
.ld-button,
.bb-button,
a.button,
.btn,
.button {
    background: #d86a34 !important;
    color: #fff !important;
    font-family: "Gagalin", sans-serif !important;
    text-transform: uppercase;
    border: 3px solid #fff !important;
    border-radius: 999px !important;
    padding: 0.65rem 1.4rem !important;
    letter-spacing: 0.06em;
    box-shadow: 0 5px 0 rgba(0,0,0,0.45) !important;
}

button:hover,
.bb-button:hover,
.button:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

/* ===========================
   SEARCH BAR & FILTERS
=========================== */

.bb-course-filters select,
.bb-course-filters input,
.ld-course-list-items .ld-course-search,
select,
input[type=text] {
    border-radius: 12px !important;
    border: 2px solid #0b3f4a !important;
    background: #fff !important;
    color: #0b3f4a !important;
    padding: 0.65rem !important;
}

/* ===========================
   RETRO SHADOWS
=========================== */

.retro-shadow {
    box-shadow: 0 8px 0 rgba(0,0,0,0.55) !important;
}

/* ===========================
   ATOMIC PATTERN BACKGROUND
=========================== */

.retro-atomic-bg {
    background-image: url('../svg/atomic-stars.svg') !important;
    background-size: 300px !important;
    background-repeat: repeat !important;
    opacity: 0.25;
}

/* ===========================
   BADGES
=========================== */

.intentivist-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 180px);
    gap: 1.5rem;
}

.intentivist-badge {
    width: 180px;
    height: 180px;
    background-size: cover;
    background-position: center;
    filter: drop-shadow(0 6px 0 rgba(0,0,0,0.5));
}
/* =========================================================
   INTENTIVIST TWEAKS – HEADER, FLAGS, BUTTONS, COURSE PANEL
   Paste at the BOTTOM of intentivist-lms.css
========================================================= */

/* 1. Load Gagalin font (if not already defined) */
@font-face {
    font-family: 'Gagalin';
    src: url('../fonts/Gagalin-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Use Gagalin for big titles and main nav */
h1, h2, h3,
.page-header .entry-title,
.bb-page-header .entry-title,
h1.entry-title,
.main-navigation .menu > li > a,
.bb-primary-menu > li > a {
    font-family: 'Gagalin', system-ui, sans-serif !important;
}

/* 2. Header menu buttons: tighter + pill + Gagalin */
.site-header .main-navigation .menu > li > a,
.bb-header .bb-primary-menu > li > a,
.bb-header .main-navigation .menu > li > a {
    font-family: 'Gagalin', system-ui, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #d86a34 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    border: 3px solid #ffffff !important;
    padding: 0.45rem 1.25rem !important;
    margin: 0 0.3rem !important;
    box-shadow: 0 4px 0 rgba(0,0,0,0.5) !important;
}

/* 3. “Start Course” flags – smaller + retro light green */
.bb-course-items .ld-status,
.bb-course-items .ld-status .ld-status-label,
.bb-course-items .ld-status .ld-status-text {
    background: #E3F4D5 !important;        /* retro light green */
    color: #0b3f4a !important;
    font-family: 'Gagalin', system-ui, sans-serif !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem !important;
    border-radius: 999px !important;
    border: 2px solid #0b3f4a !important;
}

/* Make sure flags sit neatly inside card */
.bb-course-items .ld-status {
    top: 10px !important;
    left: 10px !important;
}

/* 4. Course single hero title – make white for readability */
body.single-sfwd-courses h1.entry-title,
body.single-sfwd-courses .entry-title,
body.single-sfwd-courses .entry-title a {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* 5. Progress / status box – light green instead of cream */
.single-sfwd-courses .ld-course-status,
.single-sfwd-courses .ld-status,
.single-sfwd-courses .ld-course-status .ld-progress {
    background: #E3F4D5 !important;
    border: 4px solid #0b3f4a !important;
    border-radius: 16px !important;
}

/* 6. Global buttons – center label + Gagalin font */
button,
input[type="submit"],
.ld-button,
.bb-button,
a.button,
.btn,
.button {
    font-family: 'Gagalin', system-ui, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.1 !important;
}

/* 7. Right-side course “card” (Continue panel) – match theme */
body.single-sfwd-courses .bb-grid .bb-card,
body.single-sfwd-courses .bb-course-sidebar .bb-card,
body.single-sfwd-courses .bb-course-sidebar .bb-course-card {
    background: #f7f0d9 !important;          /* cream */
    border: 4px solid #0b3f4a !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 0 rgba(0,0,0,0.5) !important;
    color: #0b3f4a !important;
}

/* Text inside that panel */
body.single-sfwd-courses .bb-course-sidebar .bb-card h2,
body.single-sfwd-courses .bb-course-sidebar .bb-card h3,
body.single-sfwd-courses .bb-course-sidebar .bb-card p,
body.single-sfwd-courses .bb-course-sidebar .bb-card li {
    color: #0b3f4a !important;
}

/* Make the big Continue button match our main button style */
body.single-sfwd-courses .bb-course-sidebar .bb-card a,
body.single-sfwd-courses .bb-course-sidebar .bb-card .ld-button {
    background: #d86a34 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    border: 3px solid #ffffff !important;
}
/* ============================================================
   INTENTIVIST FIX PATCH #1
   – Header Menu
   – Course Grid Layout
   – Titles
   – Search Inputs
   – Start Course Badges
============================================================ */

/* ------------------------------
   1. HEADER MENU (FINAL FIX)
------------------------------ */

/* Override every BuddyBoss menu selector */
header#masthead .main-navigation .menu > li > a,
header#masthead .bb-primary-menu > li > a,
.bb-header .main-navigation .menu > li > a,
.bb-header .bb-primary-menu > li > a,
.navbar .menu > li > a,
.bb-header-main .menu > li > a {
    font-family: 'Gagalin', sans-serif !important;
    background: #d86a34 !important;
    color: #ffffff !important;
    padding: 0.45rem 1.15rem !important;
    border-radius: 999px !important;
    border: 3px solid #ffffff !important;
    margin: 0 0.25rem !important;
    font-size: 0.85rem !important;
    line-height: 1.1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 0 rgba(0,0,0,0.55);
    height: auto !important;
}

/* Hover */
header#masthead .main-navigation .menu > li > a:hover,
.bb-header .main-navigation .menu > li > a:hover {
    filter: brightness(1.05) !important;
    transform: translateY(-2px);
}

/* ------------------------------
   2. COURSE GRID TITLE SIZE
------------------------------ */

.bb-course-items .bb-course-title,
.bb-course-items .bb-course-title a,
.ld_course_grid .course-title {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.35rem !important;
}

/* ------------------------------
   3. COURSE GRID BOX FIX
   (Prevent cutoff at bottom)
------------------------------ */

.bb-course-items .bb-course-item,
.bb-course-items .bb-card,
.ld_course_grid .ld_course_grid_price,
.ld_course_grid,
article.ld_course_grid {
    min-height: 410px !important;
    padding-bottom: 1.25rem !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* Fix thumbnail/header region height issues */
.bb-card-header,
.bb-course-thumbnail,
.ld_course_grid .thumbnail {
    height: 200px !important;
    max-height: 200px !important;
    overflow: hidden !important;
}

/* Spacing in course body */
.bb-course-items .bb-card .bb-card-body {
    padding-bottom: 1.5rem !important;
}

/* ------------------------------
   4. SEARCH FILTERS CUT-OFF TEXT
------------------------------ */

.bb-course-filters input,
.bb-course-filters select,
input[type="search"],
select {
    height: 46px !important;         /* taller for readability */
    line-height: 46px !important;
    padding: 0 1rem !important;      /* prevent clipping */
    font-size: 0.9rem !important;
    color: #0b3f4a !important;
    border: 3px solid #0b3f4a !important;
}

/* Placeholder fix */
::placeholder {
    color: #0b3f4a !important;
    opacity: 0.65 !important;
}

/* ------------------------------
   5. START COURSE BADGE — CLEANER
------------------------------ */

.bb-course-items .ld-status {
    top: 12px !important;
    left: 12px !important;
    padding: 0.25rem 0.75rem !important;
    background: #DDEED0 !important;        /* softer pastel retro green */
    color: #0b3f4a !important;
    font-size: 0.55rem !important;
    border-radius: 999px !important;
    border: 2px solid #0b3f4a !important;
    font-family: 'Gagalin', sans-serif !important;
    letter-spacing: 0.06em;
}

/* Prevent badge clipping */
.bb-course-items .bb-course-item {
    overflow: visible !important;
}

/* ------------------------------
   6. FIX HEADER OVERLAY ON PAGE
------------------------------ */
header#masthead {
    height: auto !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Keep body from jumping under header */
body {
    padding-top: 110px !important;
}
/* ================================================================
   INTENTIVIST FIX PATCH #2 — HEADER • GRID TITLES • SEARCH INPUTS
   Paste at the BOTTOM of intentivist-lms.css
================================================================ */

/* ------------------------------
   0. LIGHTER RETRO BACKGROUND
------------------------------ */
body {
    background-color: #92D3D2 !important; /* softer, lighter retro teal */
}


/* ------------------------------
   1. HEADER MENU (FULL OVERRIDE)
   No extra space above header
------------------------------ */

/* Remove unwanted space above header */
body {
    padding-top: 0 !important;
}

/* Force header to honor correct height */
header#masthead,
.bb-header,
.bb-header-main,
.site-header {
    height: auto !important;
    padding: 0.75rem 0 !important;
    margin: 0 !important;
    background: #0b3f4a !important;
    border-bottom: 6px solid #d86a34 !important;
}

/* Retro menu item buttons (FINAL override) */
header#masthead .main-navigation .menu > li > a,
header#masthead .bb-primary-menu > li > a,
.bb-header .main-navigation .menu > li > a,
.bb-header .bb-primary-menu > li > a,
.navbar .menu > li > a,
.bb-header-main .menu > li > a,
ul#menu-primary-menu > li > a,
#primary-menu > li > a {
    font-family: 'Gagalin', sans-serif !important;
    background: #d86a34 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    border: 3px solid #ffffff !important;
    padding: 0.45rem 1.25rem !important;
    font-size: 0.9rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 0 rgba(0,0,0,0.5) !important;
    line-height: 1 !important;
}

/* Hover effect */
header#masthead .main-navigation .menu > li > a:hover,
.bb-header .main-navigation .menu > li > a:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-2px) !important;
}


/* -------------------------------------------
   2. COURSE GRID TITLES — Smaller + 2 Lines + Centered
------------------------------------------- */
.bb-course-items .bb-course-title,
.bb-course-items .bb-course-title a,
.ld_course_grid .course-title {
    font-size: 1rem !important;                /* smaller */
    line-height: 1.2 !important;
    text-align: center !important;             /* centered */
    max-height: 2.5rem !important;             /* 2 lines max */
    overflow: hidden !important;
    display: block;
    margin: 0 auto 0.5rem !important;
    width: 90%;
}


/* -------------------------------------------
   3. FIX COURSE GRID BOXES CUTTING OFF CONTENT
------------------------------------------- */
.bb-course-items .bb-course-item,
.bb-course-items .bb-card,
article.ld_course_grid {
    min-height: 470px !important; /* more room */
    padding-bottom: 2rem !important;
    overflow: visible !important;
}


/* -------------------------------------------
   4. SEARCH BAR & FILTER BUTTON TEXT CLIPPING FIX
------------------------------------------- */
.bb-course-filters input,
.bb-course-filters select,
input[type="search"],
select {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 48px !important;
    padding: 0 1rem !important;
    font-size: 0.9rem !important;
    border: 3px solid #0b3f4a !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
}

/* Fix desktop filter wrapper spacing */
.bb-course-filters {
    margin-top: 0.5rem !important;
}


/* -------------------------------------------
   5. START COURSE BADGE SPACING FIX (smaller & cleaner)
------------------------------------------- */
.bb-course-items .ld-status {
    font-size: 0.55rem !important;
    padding: 0.22rem 0.7rem !important;
    top: 10px !important;
    left: 10px !important;
    background: #E4F5D8 !important; /* lighter pastel green */
}
/* =========================================================
   INTENTIVIST PATCH #3
   Header pills • Light textured BG • Grid titles • Progress
========================================================= */

/* 0. LIGHT CREAM TEXTURED BACKGROUND (logo light color) */
body {
    background-color: #f7f0d9 !important; /* light cream */
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.4) 1px, transparent 0),
        linear-gradient(0deg, rgba(0,0,0,0.03), rgba(0,0,0,0.03));
    background-size: 6px 6px, 100% 100%;
    background-attachment: fixed;
}

/* 1. HEADER MENU – SMALLER, EQUAL PILLS, HORIZONTAL */
header#masthead,
.bb-header,
.bb-header-main,
.site-header {
    height: auto !important;
    padding: 0.75rem 0 !important;
    margin: 0 !important;
    background: #0b3f4a !important;
    border-bottom: 6px solid #d86a34 !important;
}

/* All possible BuddyBoss menu anchors */
header#masthead .main-navigation .menu > li > a,
header#masthead .bb-primary-menu > li > a,
.bb-header .main-navigation .menu > li > a,
.bb-header .bb-primary-menu > li > a,
.navbar .menu > li > a,
.bb-header-main .menu > li > a,
ul#menu-primary-menu > li > a,
#primary-menu > li > a {
    font-family: 'Gagalin', sans-serif !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em;
    background: #d86a34 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    border: 3px solid #ffffff !important;
    /* equal-width horizontal pills */
    width: 140px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 0.35rem !important;
    box-shadow: 0 4px 0 rgba(0,0,0,0.55) !important;
    white-space: nowrap !important;
    text-align: center !important;
}

header#masthead .main-navigation .menu > li > a:hover,
.bb-header .main-navigation .menu > li > a:hover,
.bb-header .bb-primary-menu > li > a:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-2px) !important;
}

/* 2. COURSE GRID TITLES – SMALLER, CENTERED, MAX 2 LINES */
.bb-course-items .bb-course-title,
.bb-course-items .bb-course-title a,
.ld_course_grid .course-title {
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
    text-align: center !important;
    margin: 0.4rem auto 0.6rem !important;
    width: 90%;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;   /* clamp to 2 lines */
    overflow: hidden !important;
}

/* 3. COURSE GRID CARD HEIGHT – NO CUTOFF */
.bb-course-items .bb-course-item,
.bb-course-items .bb-card,
article.ld_course_grid {
    min-height: 520px !important;  /* gives space for title + meta + progress */
    padding-bottom: 2.2rem !important;
    overflow: visible !important;
}

/* 4. RETRO PROGRESS AREA (“0% COMPLETE” + BAR) */
.bb-course-items .ld-progress,
.bb-course-items .ld-progress-bar,
.bb-course-items .ld-progress .ld-progress-bar {
    background: #ffe8c9 !important;        /* soft retro track */
    border-radius: 999px !important;
    height: 10px !important;
    overflow: hidden;
}

.bb-course-items .ld-progress-bar-percentage,
.bb-course-items .ld-progress .ld-progress-bar-percentage {
    background: #d86a34 !important;        /* orange bar */
    border-radius: 999px !important;
}

/* “0% Complete” text */
.bb-course-items .ld-progress p,
.bb-course-items .ld-progress span,
.bb-course-items .ld-progress-percentage,
.bb-course-items .ld-status-complete {
    font-family: 'Gagalin', system-ui, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem !important;
    color: #0b3f4a !important;
}

/* Align progress label + bar nicely */
.bb-course-items .ld-progress {
    margin-top: 0.6rem !important;
}

/* 5. OPTIONAL: TAB LABELS (All Courses / My Courses) TO MATCH STYLE */
.bb-ld-courses-tab-nav a {
    font-family: 'Gagalin', system-ui, sans-serif !important;
    letter-spacing: 0.06em;
}
/* ============================================================
   GLOBAL BACKGROUND — SOLID CREAM
   No dots, no texture
   ============================================================ */
body,
.bb-grid,
.site,
#page,
#content,
.buddyboss-theme,
.buddyboss-theme #page,
.buddyboss-theme #content {
    background: #F2E9D0 !important; /* Cream color from badge */
    background-image: none !important;
}

/* Remove dotted SVG background if BuddyBoss injects it */
body::before,
body::after,
#content::before,
#content::after {
    background-image: none !important;
}

/* Courses page wrapper */
#learndash-page-content,
.ld-item-list,
.bb-ld-grid,
.ld-course-grid,
.ld-course-list-items {
    background: #F2E9D0 !important;
}
/* =========================================================
   INTENTIVIST HEADER + COURSE GRID FIX PATCH
   - Logo size
   - Flexible menu pills + hover
   - Remove header/body gap
   - Course grid fonts
========================================================= */

/* 1. HEADER LOGO – a bit larger */
header#masthead .site-branding img,
.bb-header .site-branding img {
    max-height: 64px !important;    /* tweak to taste: 60–72px */
    height: auto !important;
}

/* 2. FLEXIBLE MENU PILLS (no fixed width, nice padding) */
header#masthead .main-navigation .menu > li > a,
header#masthead .bb-primary-menu > li > a,
.bb-header .main-navigation .menu > li > a,
.bb-header .bb-primary-menu > li > a,
.navbar .menu > li > a,
.bb-header-main .menu > li > a,
ul#menu-primary-menu > li > a,
#primary-menu > li > a {
    font-family: 'Gagalin', sans-serif !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em;
    background: #d86a34 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    border: 3px solid #ffffff !important;
    /* FLEX pills: width driven by text, not fixed */
    width: auto !important;
    min-width: 120px !important;            /* keeps pills consistent */
    padding: 0.45rem 1.6rem !important;
    margin: 0 0.4rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 0 rgba(0,0,0,0.55) !important;
    white-space: nowrap !important;
    text-align: center !important;
    line-height: 1.1 !important;
}

/* Better hover: subtle “press” instead of awkward jump */
header#masthead .main-navigation .menu > li > a:hover,
.bb-header .main-navigation .menu > li > a:hover,
.bb-header .bb-primary-menu > li > a:hover {
    background: #e67b3f !important;       /* slightly lighter orange */
    transform: translateY(1px) !important;
    box-shadow: 0 2px 0 rgba(0,0,0,0.5) !important;
}

/* 3. REMOVE WEIRD SPACE BETWEEN HEADER & BODY */
body {
    padding-top: 0 !important;
}
.site,
#page,
.site-content,
.content-area,
.bb-page-header,
.bb-page-header-inner,
.buddyboss-theme #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* If BuddyBoss adds top padding on the courses page wrapper, kill it */
body.post-type-archive-sfwd-courses .site-content,
body.sfwd-courses .site-content {
    padding-top: 0 !important;
}

/* 4. COURSE GRID TYPOGRAPHY – match theme */

/* Course titles in grid – Gagalin, teal, centered */
.bb-course-items .bb-course-title,
.bb-course-items .bb-course-title a,
.ld_course_grid .course-title,
.ld_course_grid .course-title a {
    font-family: 'Gagalin', system-ui, sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    text-align: center !important;
    color: #0b3f4a !important;
}

/* Meta text (lessons, steps, etc.) – body font */
.bb-course-items .bb-course-meta,
.bb-course-items .bb-course-meta *,
.bb-course-items .ld-course-status,
.bb-course-items .ld-course-status *,
.ld_course_grid .course-meta,
.ld_course_grid .course-meta * {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 0.8rem !important;
    color: #444444 !important;
}

/* Progress label + percentage text – retro but readable */
.bb-course-items .ld-progress,
.bb-course-items .ld-progress *,
.ld_course_grid .ld-progress,
.ld_course_grid .ld-progress * {
    font-family: 'Gagalin', system-ui, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem !important;
    color: #0b3f4a !important;
}

/* Progress bar styling to match theme */
.bb-course-items .ld-progress-bar,
.bb-course-items .ld-progress .ld-progress-bar,
.ld_course_grid .ld-progress-bar,
.ld_course_grid .ld-progress .ld-progress-bar {
    background: #ffe8c9 !important;          /* cream/orange track */
    border-radius: 999px !important;
    height: 10px !important;
}

.bb-course-items .ld-progress-bar-percentage,
.bb-course-items .ld-progress .ld-progress-bar-percentage,
.ld_course_grid .ld-progress-bar-percentage,
.ld_course_grid .ld-progress .ld-progress-bar-percentage {
    background: #d86a34 !important;          /* Intentivist orange */
    border-radius: 999px !important;
}

/* 5. Tiny safety: make sure cards aren't cut off */
.bb-course-items .bb-course-item,
.bb-course-items .bb-card,
article.ld_course_grid {
    overflow: visible !important;
}
/* HEADER LOGO – larger and not constrained by container */
header#masthead .site-branding,
.bb-header .site-branding {
    max-height: 100px !important;
}

header#masthead .site-branding img,
.bb-header .site-branding img {
    max-height: 88px !important;   /* adjust 80–100px to taste */
    height: auto !important;
    width: auto !important;
}
/* COURSE GRID – ensure all text uses theme font stack */

/* Titles (we keep Gagalin) */
.ld-course-list-items .ld_course_grid .course-title,
.ld-course-list-items .ld_course_grid .course-title a,
.bb-course-items .bb-course-title,
.bb-course-items .bb-course-title a {
    font-family: 'Gagalin', system-ui, sans-serif !important;
    font-weight: normal !important;
}

/* Meta text: “0 Lessons”, steps, etc. */
.ld-course-list-items .ld_course_grid,
.ld-course-list-items .ld_course_grid *,
.bb-course-items .bb-course-meta,
.bb-course-items .bb-course-meta *,
.bb-course-items .ld-course-status,
.bb-course-items .ld-course-status * {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Pagination at bottom of grid */
.bb-ld-pagination,
.bb-ld-pagination *,
.page-numbers,
.page-numbers * {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
/* COURSE TITLES – no clipping, natural wrap */
.bb-course-items .bb-course-title,
.bb-course-items .bb-course-title a,
.ld_course_grid .course-title,
.ld_course_grid .course-title a {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow: visible !important;
    display: block !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}
/* =========================================================
   INTENTIVIST COURSE PAGE FIXES
   - Tabs text centering
   - Remove extra line under tabs
   - In Progress / Complete status styling
   - Lesson nav buttons
========================================================= */

/* 1. COURSE / REVIEWS TABS – center text, remove underline line */
.ld-tabs .ld-tabs-nav li a,
.ld-tabs .ld-tabs-navigation li a,
.bb-ld-tabs-nav li a,
.bb-ld-tabs .bb-ld-tab-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.1 !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Kill the thin line LearnDash/BuddyBoss draws under active tab */
.ld-tabs .ld-tabs-nav li a::after,
.ld-tabs .ld-tabs-nav li a::before,
.bb-ld-tabs-nav li a::after,
.bb-ld-tabs-nav li a::before,
.ld-tabs .ld-tabs-nav .ld-tab-active,
.ld-tabs .ld-tabs-nav .bb-ld-tab-active {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 2. STATUS BOX – In Progress (red) and Complete (green)
   These classes cover common LearnDash/BuddyBoss status labels.
   If your markup uses only one of them, it will still work. */

/* generic status pill shape */
.ld-status,
.ld-course-status,
.bb-ld-status-label {
    border-radius: 10px !important;
    padding: 0.6rem 1.4rem !important;
    font-family: 'Gagalin', system-ui, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* IN PROGRESS – red */
.ld-status-in-progress,
.ld-course-status.ld-status-in-progress,
.bb-ld-status-label.in-progress {
    background: #c0392b !important;
    border: 3px solid #7b241c !important;
    color: #ffffff !important;
}

/* COMPLETE – green */
.ld-status-complete,
.ld-course-status.ld-status-complete,
.bb-ld-status-label.complete {
    background: #27ae60 !important;
    border: 3px solid #1e8449 !important;
    color: #ffffff !important;
}

/* 3. NAV BUTTONS NEXT TO STATUS – make them clear & clickable */
.ld-status-nav a,
.ld-status-nav button,
.ld-status .ld-nav a,
.ld-status .ld-nav button {
    background: #0b3f4a !important;         /* dark teal */
    color: #ffffff !important;
    border-radius: 10px !important;
    border: none !important;
    min-width: 40px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 4px !important;
    font-size: 0.8rem !important;
    box-shadow: 0 2px 0 rgba(0,0,0,0.35) !important;
}

.ld-status-nav a:hover,
.ld-status-nav button:hover,
.ld-status .ld-nav a:hover,
.ld-status .ld-nav button:hover {
    background: #145668 !important;
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.35) !important;
}