/* ============================================================
   FRAMED MINDS — Community & BuddyBoss Overrides
   
   Requires: fm-tokens.css (brand variables)
   
   Covers:
     1. Course listing search bar
     2. General responsive overrides
     3. BuddyBoss app menu
     4. Mobile dashboard welcome card
     5. About / philosophy page spacing
   
   Last updated: March 31, 2026
   ============================================================ */

/*****************************************/


.course-progress-wrapper {
    margin-top: 0;
}

.course-progress-bar {
    background-color: #eee;
    border-radius: 30px;
    overflow: hidden;
    height: 5px;
    width: 100%;
}

.course-progress-fill {
    background-color: #97ca43;
    height: 100%;
    width: 0;
    transition: width 0.6s ease;
}

.course-progress-text {
    margin-top: 5px;
    font-size: 12px;
    color: #555;
    text-align: left;
}


/*Course Lsting serach bar CS*/

.course-search-container
 {
    text-align: center;
}

.course-search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 0px 10px;
}

.course-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.course-search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e0e0e0;
    /* border-radius: 30px; */
    font-size: 16px;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.course-search-input:focus {
    outline: none;
    border-color: #97CA43;
    background-color: white;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.course-search-button {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 8px;
    transition: color 0.2s ease;
}

.course-search-button:hover {
    color: #97CA43;
}

.course-search-button svg {
    display: block;
}

.course-search-clear {
    position: absolute;
    right: 50px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.course-search-clear:hover {
    color: #666;
    background-color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-search-input {
        padding: 10px 45px 10px 15px;
        font-size: 14px;
    }
    
    .course-search-button {
        right: 12px;
        padding: 6px;
    }
    
    .course-search-clear {
        right: 45px;
        font-size: 13px;
    }
}

.no-courses-found {
    text-align: center;
}

.custom-course-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.custom-course-pagination li {
    display: inline-block;
}

.custom-course-pagination li a,
.custom-course-pagination li span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: #f1f1f1;
    color: #97CA43;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.custom-course-pagination li a:hover {
    background-color: #ddd;
}

.custom-course-pagination li .current {
    background-color: #005fcc;
    color: white;
}


/***********  Responsive CSS  **********************/

@media (max-width: 1200px){
    .course-lisitng-app .course-card-description{
        min-height: 80px;
    }
}
@media (max-width: 992px){
    .course-lisitng-app .course-card-description{
        min-height: 55px;
    }
}
@media (max-width: 680px){
    .course-lisitng-app .course-card h2{
        min-height: 65px;
    }
    .course-lisitng-app .course-card-description{
        min-height: 48px;
    }
}
@media (max-width: 480px){
	*, *::before, *::after {
      box-sizing: inherit;
    }
    html {
      box-sizing: border-box;
    }
    .course-lisitng-app .course-card h2{
        min-height: 55px;
    }
    .ld-secondary-header .bb-secondary-list-tabs .push-right{
        gap: 10px;
    }
    .post-type-archive div#primary{
        padding-left: 0;
        padding-right: 0;
    }
    #bb-courses-directory-form .bb-courses-header{
        gap: 10px;
        margin-bottom: 10px;
    }
    .bb-grid #course-dir-list {
        padding-left: 0;
        padding-right: 0;  
    }
    .bb-grid #course-dir-list .bb-course-items .bb-course-item-wrap {
        padding-left: 0;
        padding-right: 0;
    }
    .bb-grid {
        -ms-flex-flow: row wrap;
        flex-flow: row-reverse;
        width: 100%;
        margin: 0 !important;
        min-width: 100%;
        display: block;
    }
  .bb-grid.site-content-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }
  .course-lisitng-app .course-card{
  	padding-bottom: 35px;
  }
  .course-progress-text{
    font-size: 10px;
    margin: 5px 0;
    line-height: 1.2;
  }
	.course-lisitng-app .course-card-body{
		gap: 8px;
	}
	.page-template-course_listing div#content{
		width: 100%;
	}
	.page-template-course_listing div#content .container{
		width: 100%;
		padding: 0;
		margin: 0;
	}
	.course-lisitng-app .author img{
		max-width: 30px;
    max-height: 30px;
	}
	.course-lisitng-app .author .card-author-info{
		gap: 4px;
		width: 100%;
	}
	.course-lisitng-app {
	    padding-left: 0 !important;
      padding-right: 0 !important;
	    /* margin-left: -10px;
	    margin-right: -10px; */
	}
	.course-lisitng-app .course-card-footer .attend{
		gap: 5px;
	}

	.course-lisitng-app .attending img {
    width: 20px;
    height: 20px;
  }
  .course-lisitng-app .course-card .course-card-footer{
  	bottom: 10px;
  }
  .course-lisitng-app {
    padding: 15px 0 !important;
	}
}
@media (max-width: 425px){

	.course-lisitng-app .course-card-body {
    height: auto;
    overflow: hidden;
    padding: 4% 0;
  }
  .course-lisitng-app .course-card-footer .attending{
  	display: flex;
  }
  .course-lisitng-app .course-card-footer .attend{
  	align-items: center;
  }
}

.custom-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* App Menu Start Here */
.bb-grid:has( > .top-menu-app){
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.bb-grid:has( > .top-menu-app) .top-menu-app{
    background: #fff;
    padding-left: 0;
    padding-right: 0;
}
/* Reset default menu styles */

/*
.top-menu-app {
   top: -40px;
   position: fixed;
   width: 100%;
   z-index: 99999999999999999999999999;
   height: 150px;
   background-color: red;

}
body.in-bbapp nav.nav-main { display: none !important; }
body.in-bbapp #content > .content-area { padding-top: 0px !important; }
body.in-bbapp footer { display: none !important;}
.bb-header, body.in-bbapp header { display: none !important; }*/

.custom-top-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #ccc;
  position: relative;
    justify-content: space-around;
  display: flex;
  /*overflow-x: auto;
  overflow-y: auto;*/
  white-space: nowrap;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

}

.custom-top-menu::-webkit-scrollbar {
  height: 2px;
}

.custom-top-menu::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.custom-top-menu > * {
  flex: 0 0 auto;
  margin-right: 20px; /* spacing between items */
}

.custom-top-menu > li {
  position: relative;
  margin: 0 20px;
}

.custom-top-menu > li > a {
    font-family: 'SF Pro Text';
  display: block;
  padding: 5px 0;
  font-size: 16px;
  font-weight: 500;
  color: #71767A; 
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.custom-top-menu > li.menu-item-has-children > a{
    padding-right: 15px;
}

/* Active/hover styles */
.custom-top-menu > li.current-menu-item > a,
.custom-top-menu > li:hover > a {
  color: #000;
}

/* Yellow underline for active/hover item */

/* Dropdown indicator */
/* Remove the original ::after arrow */
.custom-top-menu > li.menu-item-has-children > a::after {
  content: none;
}

/* Style the new toggle arrow */
.submenu-toggle {
  display: inline-block;
    margin-left: 16px;
 color: #000;
font-size: 14px;
cursor: pointer;
position: absolute;
right: -10px;
top: 12px;
}

.custom-top-menu > li.submenu-open .submenu-toggle {
  transform: rotate(180deg);
}

/* Sub-menu styles */
.custom-top-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: #fff;
  padding: 5px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.custom-top-menu > li:hover .sub-menu {
  /*display: block;*/
}
.custom-top-menu > li.submenu-open .sub-menu {
  display: block;
}

/* Optional: rotate arrow when active */
.custom-top-menu > li.submenu-open > a::after {
  transform: rotate(180deg);
}
.custom-top-menu .sub-menu li a {
  padding: 3px 5px;
  display: block;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.custom-top-menu .sub-menu li a:hover {
  background-color: #f9f9f9;
  color: #000;
}

@media (min-width: 768px){
    .bb-grid:has( > .top-menu-app) .top-menu-app{
        display: none;
    }
}
@media (max-width: 1200px) and (min-width: 992px){
}
@media (max-width: 992px) and (min-width: 890px){
}
@media (max-width: 1024px){

}


@media (min-width: 1025px) {
}
/* Tablet layout (iPad portrait + landscape) */
@media (max-width: 1024px) and (min-width: 768px){
}
@media (max-width: 890px){
    .course-lisitng-app .course-card h2{
        min-height: 85px;
    }
}
@media (max-width: 768px){
}
@media (max-width: 580px){
    .course-lisitng-app .course-card h2{
        min-height: 55px;
    }
    .events-section {
        padding: 10px 0;
    }
    .events-grid{
        gap: 10px;
    }
    .box{
        margin-top: 10px;
        padding: 15px;
        background: transparent;
    }
    .box p{
        font-size: 14px;
    }
    .box img {
        max-width: 60px;
    }
    .custom-top-menu > li{
        margin: 0 10px;
    }
    .custom-top-menu > li > a{
        font-size: 14px;
        position: relative;
        z-index: 1;
    }
    .custom-top-menu > li.menu-item-has-children > a::after{
        z-index: 99;
        left: 0;
        right: 0;
    }
    .view-all{
        font-size: 14px;
    }
    .custom-top-menu .sub-menu li a{
        font-size: 12px;
        padding: 0 5px;
    }
    .custom-top-menu .sub-menu{
        padding: 2px 0;
        margin-left: 0;
    }
    .event-info{
        gap: 5px;
    }
    .event-info p {
        font-size: 12px;
    }
    .event-info h4,
    .event-meta{
        margin-bottom: 0;
    }
    .echoai-activity-feed .activity-action {
        font-size: 14px;
    }
    .event-info h4 {
        font-size: 16px;
    }
}
@media (max-width: 480px){
}
/* App Menu end Here */

/* =======================================================
   FRAMED MINDS — MOBILE DASHBOARD WELCOME CARD
   Compact, left-aligned, full-width, dual buttons
   ======================================================= */

/* --- CARD WRAPPER --- */
.fm-welcome-card {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 18px;
    padding: 14px 18px;          /* tighter top/bottom for compact feel */
    margin-bottom: 22px;
    display: block;              /* behave like original BuddyBoss cards */
}

/* --- TEXT BLOCK (LEFT) --- */
.fm-welcome-card-main {
    margin: 0 0 8px;             /* small gap above buttons */
}

.fm-welcome-title {
    margin: 2px 0 2px;           /* very tight, like original */
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
    max-width: 72%;              /* keeps heading visually left/compact */
}

.fm-welcome-subtitle {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.35;
    color: #6B7280;
    max-width: 68%;              /* mirrors original narrow copy */
}

/* --- BUTTON ROW --- */
.fm-welcome-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start; /* buttons sit under text, left aligned */
    flex-wrap: nowrap;
}

/* Base button – rectangular with soft corners, BuddyBoss-style */
.fm-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    text-align: center;
}

/* Primary (View Profile) */
.fm-btn-primary {
    background-color: #BCCF97;
    color: #FFFFFF;
    border-color: #BCCF97;
}

/* Secondary (Menu) */
.fm-btn-secondary {
    background-color: #FFFFFF;
    color: #BCCF97;
    border-color: #BCCF97;
}

/* --- Optional Hover (web only, harmless in app) --- */
.fm-btn-primary:hover {
    background-color: #9FAF80;
    border-color: #9FAF80;
    color: #FFFFFF;
}

.fm-btn-secondary:hover {
    background-color: #9FAF80;
    color: #FFFFFF;
}

/* --- SMALL-SCREEN TWEAKS (extra safety) --- */
@media (max-width: 480px) {
    .fm-welcome-card {
        padding: 14px 16px;      /* slightly narrower side padding */
    }

    .fm-welcome-actions {
        gap: 8px;
    }

    .fm-btn {
        font-size: 13px;
        padding: 9px 0;
    }
}


/* List View Style for mobile */
@media (max-width: 480px){
    #page .bb-course-items.list-view .bb-course-title {
        font-size: 16px;
        max-width: 100%;
    }
    .bb-course-items.list-view .bb-card-course-details {
        padding: 16px 15px 10px;
    }
    .bb-course-items.list-view .bb-course-meta .item-avatar {
        max-width: 20px;
    }
    .bb-course-items.list-view .bb-course-meta{
        margin-bottom: 10px;        
    }
    .bb-course-items.list-view .ld-progress-stats{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .bb-course-items.list-view .course-completion-rate{
        margin-top: 0;
    }
    .bb-course-items.list-view .bb-cover-wrap{
        background: #e6e3d0;
    }
    .bb-course-items.list-view .bb-cover-wrap img{
        object-fit: contain;
    }
}


/* Slightly tighter default section spacing */
.section-tight {
  padding: 56px 16px;
}

/* Safer primary button hover: deeper green, clear contrast */
.btn-primary:hover {
  background: #3A5A40;          /* deep green */
  border-color: #3A5A40;
  color: #FFFFFF;
}

/* Text-style link under main CTA */
.btn-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fm-text-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link:hover {
  color: var(--fm-accent);
}


/* ================================
   ABOUT / PHILOSOPHY PAGE SPACING
   Replace 123 with your real page ID
   ================================ */

/* 1. Remove Elementor's extra top/bottom padding on this page only */
body.page-id-7277 .elementor-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 2. Remove inner container padding Elementor adds */
body.page-id-7277 .elementor-section .elementor-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 3. Let OUR .section wrapper control all vertical spacing */
body.page-id-7277 .section {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* 4. Slightly tighter for the mid sections if you want them closer */
body.page-id-7277 .section.section-tight {
  padding-top: 52px;
  padding-bottom: 52px;
}

body.page-id-7277 .philo-founder-section.section {
  padding-top: 48px;
  padding-bottom: 56px;
}

/* About / Philosophy page – tighten vertical spacing */
.section.section-philo {
  padding-top: 48px;   /* adjust to taste: 40–56 works nicely */
  padding-bottom: 48px;
}

/* If you want it even tighter, try 40px */
@media (max-width: 768px) {
  .section.section-philo {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
