/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/*styling the subcategories displaying on NPC, NPSP, Browse by Topic*/
.topics-subcategories {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  column-gap: 2rem;
  border: 1px dotted #020101;
  padding: 2em;
  border-radius: 5px;
}

@media (max-width: 767px) {
	.topics-subcategories {
	   grid-template-columns: 1fr;
	}
}

.topics-subcategories li a {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  color: #333;
  font-weight: 500;
  padding: 0.8rem 1rem;
  background: #fff;
  font-family: 'Nunito';
  font-weight: 600;
}

.topics-subcategories li a:hover {
  background: #D1D8D7;
  padding: 0.8rem 1rem;
  border-radius: 8px;
}


/*For the tags in articles*/
.custom-topic-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1em;
}

.topic-tag {
  display: inline-block;
  padding: 0.5em 1em;
  font-size: 1rem;
  background-color:#F6F6F6;
  color: #333;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-family: 'Nunito';
  margin-right: 2em !important;
  margin-top: 1em !important;
}

.topic-tag:hover {
  background-color: #D1D8D7;
  color:  #383737;
}


/**STYLES TO DISPLAY TOPICS TAGS IN HOMEPAGE BOXES SECTION NPC and NPSP**/
.topics-toggle-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1em;
}
.topics-term {
  /*background: #eee;
  padding: 4px 8px;
  border-radius: 4px;*/
	
  display: inline-block;
  padding: 0.5rem;
  font-size: 0.9rem;
  background-color:#F6F6F6;
  border-radius: 2px;
  transition: background-color 0.2s ease;
  font-family: 'Nunito';
  margin-right: 2em !important;
  margin-top: 1em !important;
  color:  #383737;
}

.topics-term:hover {
  background-color: #D1D8D7;
}

.topics-term a {
	color: #333;
	text-decoration: none;
}

.hidden-topic {
  display: none;
}
.visible-topic {
  display: inline-block !important;
}
.topics-toggle-btn {
  display: inline-block;
  background-color: #F6F6F6;
  color: #000;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  margin-top: 1rem;
  border-radius: 50%;
  cursor: pointer;
}

.topics-toggle-btn:hover {
	background-color: #D1D8D7;
	color: #666666;
}

.topics-toggle-btn:focus {
	background-color: #D1D8D7;
	color: #666666;
}

/*STYLES FOR THE MULTI FILTER TAGS IN BROWSE BY TOPIC PAGE*/
.topics-filter {
  margin-bottom: 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 2rem;
}
.topic-filter-btn {
  background-color: #F6F6F6;
  color: #333;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer; 
  font-size: 1rem;
  transition: background-color 0.1s ease;
  font-family: 'Nunito';
  margin: 0.5rem auto;
}
.topic-filter-btn.active {
  background-color: #5B7370;
  color: #fff;
}

.topic-filter-btn:hover {
  background-color: #5B7370;
  color: #fff;
}

.topic-filter-btn:not(.active):focus,
.topic-filter-btn:not(.active):active {
  background-color: #f6f6f6 !important;
  color: #212121;	
  outline: none !important;
  box-shadow: none !important;
}

.topics-subcategories {
  list-style: none;
  padding: 0;
}
.topics-subcategories li {
  margin: 4px 0;
}



/* --- Active filter tags styles --- */
.active-filters {
    display: flex;
    flex-wrap: wrap;
	align-items: center;
	margin-bottom: 1.5rem;
}

.active-filter-tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 0.4rem 0.6rem;
    border-radius: 0.8rem;
    font-size: 14px;
    display: flex;
    align-items: center;
    margin: 1rem;
    transition: background-color 0.2s;
}

.active-filter-tag:hover {
    background-color: #e5e5e5;
}

.active-filter-tag .remove-filter {
    color: #888;
    font-weight: bold;
    cursor: pointer;
    margin-left: 4px;
}

.active-filter-tag .remove-filter:hover {
    color: #c00;
}