/*

 Theme Name:   Hello Elementor Child

 Template:     hello-elementor

 Version:      1.0.0

 Created by: Matthew Newman for BWA 2025
 Most Custom CSS is in functions.php or in the elementor editor > site settings > custom css

*/

.overlapping-parent {
    position: relative;
    display: flex;
  }
  
  .overlapping-child-bg {
    position: relative;
    z-index: 1;
  }
  
  .overlapping-child-fg {
    position: relative;
    z-index: 2;
  }
  
  
  .rank-math-breadcrumb { /* Replace with the actual class or ID */
      font-family: Poppins, sans-serif !important;
      font-size: 14px !important;
  }
  
/* Remove bullets and add spacing between list items */
.projects-sidebar ul,
.projects-sidebar li {
    list-style: none;
    padding-left: 0;
}

.projects-sidebar li {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    transition: background-color 0.2s ease;
}

.projects-sidebar li:last-child {
    margin-bottom: 0;
}

/* Link styling */
.projects-sidebar li a {
    flex: 1;
    text-decoration: none;
    color: #333;
    padding: 0;
}

/* Post count styling - now that JavaScript wraps it in a span */
.post-count {
    color: #666;
    font-size: 0.9em;
    margin-left: 8px;
}

/* Hover effect for all list items */
.projects-sidebar li:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Style for active/current market */
.projects-sidebar li.current-menu-item,
.projects-sidebar li.current-cat,
.projects-sidebar li.current_page_item {
    background-color: #f0f0f0;
    border-radius: 4px;
    border-left: 3px solid #007cba;
    padding-left: 16px;
}

/* Active item link styling */
.projects-sidebar li.current-menu-item a,
.projects-sidebar li.current-cat a,
.projects-sidebar li.current_page_item a {
    color: #007cba;
    font-weight: 700;
}


/* Style Basic Projects Posts Widget */
.elementor-posts .elementor-post.project_type-basic {
    /* Full width layout for Basic Projects */
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
}

.elementor-posts .elementor-post.project_type-basic .elementor-post__card {
    /* Style the text content */
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.elementor-posts .elementor-post.project_type-basic .elementor-post__title {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Add location styling between title and excerpt */
.elementor-posts .elementor-post.project_type-basic .project-location,
.elementor-posts .elementor-post .project-location {
    display: block !important;
    color: #6c757d !important;
    font-size: 0.9em !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    line-height: 0.9 !important;
    font-style: italic !important;
}

/* Make basic projects non-clickable in Elementor lists */
.is-basic-project .elementor-post__title a,
.is-basic-project a.elementor-post__thumbnail__link,
.is-basic-project .elementor-post__card a {
	  pointer-events: none;
	  cursor: default;
	  text-decoration: none;
	  color: inherit;
}

/* Optional: remove hover lift/shadow so they look intentionally static */
.is-basic-project .elementor-post__card:hover {
	  transform: none;
	  box-shadow: none;
}


/* General location styling - catch all instances */
.project-location {
    display: block !important;
	font-weight: 400;
    color: #6c757d !important;
    font-size: 0.9em !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    line-height: 0.9 !important;
    font-style: italic !important;
}

.elementor-posts .elementor-post.project_type-basic .elementor-post__excerpt {
    color: #495057;
    font-style: italic;
    margin-top: 0;
    line-height: 1.5;
}

/* Remove the badge completely */
.elementor-posts .elementor-post.project_type-basic .elementor-post__card::before {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Target any Elementor-generated badge content */
.elementor-posts .elementor-post.project_type-basic .elementor-post__card::after,
.elementor-posts .elementor-post.project_type-basic .elementor-post__card:before,
.elementor-posts .elementor-post.project_type-basic .elementor-post__card:after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Remove any badge-like elements that might be generated */
.elementor-posts .elementor-post.project_type-basic .elementor-post__card [class*="badge"],
.elementor-posts .elementor-post.project_type-basic .elementor-post__card [class*="label"],
.elementor-posts .elementor-post.project_type-basic .elementor-post__card [class*="tag"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide any element containing "BASIC" text */
.elementor-posts .elementor-post.project_type-basic .elementor-post__card *:contains("BASIC"),
.elementor-posts .elementor-post.project_type-basic .elementor-post__card *:contains("Basic") {
    display: none !important;
    visibility: hidden !important;
}

/* Nuclear option: hide all pseudo-elements */
.elementor-posts .elementor-post.project_type-basic .elementor-post__card *::before,
.elementor-posts .elementor-post.project_type-basic .elementor-post__card *::after {
    display: none !important;
    visibility: hidden !important;
    content: "" !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .elementor-posts .elementor-post.project_type-basic .elementor-post__card {
        padding: 15px;
    }
    
    .elementor-posts .elementor-post.project_type-basic .elementor-post__title {
        font-size: 1.1em;
    }
}

/* Debug: Show all elements with "BASIC" text */
*:contains("BASIC") {
    border: 3px solid red !important;
    background: yellow !important;
}
