/* ------------------------------------------------
   Taxonomy Filter Styles */

.b3-posts .filter-form {
   display: block;
}

.b3-posts .post-feed-filters {
   margin-bottom: 30px;
   padding: 20px;
   background-color: #f8f9fa;
   border-radius: 8px;
}

.b3-posts .filter-container {
   display: flex;
   gap: 10px;
   align-items: stretch;
}

.b3-posts .filter-container > * {
   flex: 1;
   min-height: 45px;
}

/* Custom Dropdown Styles */
.b3-posts .custom-dropdown {
   position: relative;
   flex: 1;
}

.b3-posts .dropdown-toggle {
   width: 100%;
   height: 100%;
   padding: 10px 15px;
   border: 2px solid #ddd !important; 
   background-color: white;
   font-size: 14px;
   color: #333;
   cursor: pointer;
   transition: all 0.3s ease;
   display: flex;
   justify-content: space-between;
   align-items: center;
   text-align: left;
   border-radius: 5px;
}

.b3-posts .custom-dropdown:last-of-type .dropdown-toggle {
   border-right: 2px solid #ddd;
}

.b3-posts .dropdown-toggle:hover,
.b3-posts .dropdown-toggle.active {
   background-color: #f8f9fa;
}

.b3-posts .dropdown-toggle.has-selections {
   font-weight: bold;
}

.b3-posts .dropdown-arrow {
   transition: transform 0.3s ease;
   font-size: 12px;
}

.b3-posts .dropdown-toggle.active .dropdown-arrow {
   transform: rotate(180deg);
}

.b3-posts .dropdown-menu {
   position: absolute;
   top: 100%;
   left: 0;
   right: 0;
   background-color: white;
   border: 2px solid #ddd;
   border-top: none;
   border-radius: 0 0 5px 5px;
   max-height: 250px;
   overflow-y: auto;
   z-index: 1000;
   display: none !important;
}

.b3-posts .dropdown-menu.show {
   display: block !important;
}

.b3-posts .checkbox-item {
   display: flex;
   align-items: center;
   padding: 10px 15px;
   cursor: pointer;
   transition: background-color 0.2s ease;
   border-bottom: 1px solid #eee;
}

.b3-posts .checkbox-item:last-child {
   border-bottom: none;
}

.b3-posts .checkbox-item:hover {
   background-color: #f8f9fa;
}

.b3-posts .checkbox-item input[type="checkbox"] {
   display: none;
}

.b3-posts .checkmark {
   width: 18px;
   height: 18px;
   border: 2px solid #ddd;
   border-radius: 3px;
   margin-right: 10px;
   position: relative;
   transition: all 0.2s ease;
   flex-shrink: 0;
}

.b3-posts .checkbox-item input[type="checkbox"]:checked + .checkmark::after {
   content: '✓';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   color: white;
   font-size: 12px;
   font-weight: bold;
}

/* Button Styles */
.b3-posts .filter-submit-btn,
.b3-posts .clear-all-btn {
   flex: 1;
   max-width: 200px;
   padding: 10px 15px;
   border: 2px solid #ddd;
   background-color: transparent;
   color: #333;
   cursor: pointer;
   font-size: 14px;
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 1px;
   transition: all 0.3s ease;
   white-space: nowrap;
   border-radius: 5px;
}

.b3-posts .filter-submit-btn:hover,
.b3-posts .clear-all-btn:hover {
    color:white;
}

.b3-posts .filter-submit-btn {
   color: white;
}

/* No Results Message */
.b3-posts .no-results-message {
   text-align: center;
   padding: 60px 20px;
   background-color: #f8f9fa;
   border-radius: 8px;
   margin: 20px 0;
}

.b3-posts .no-results-message h3 {
   color: #333;
   font-size: 24px;
   margin-bottom: 15px;
}

.b3-posts .no-results-message p {
   color: #666;
   font-size: 16px;
   line-height: 1.6;
}

.b3-posts .clear-filters-link {
   text-decoration: underline;
   font-weight: 500;
}

/* Selected Filters Styles */
.b3-posts .selected-filters-container {
   margin-top: 20px;
}

.b3-posts .selected-filters-title {
   font-size: 16px;
   font-weight: 600;
   color: #333;
   margin: 0 0 12px 0;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.b3-posts .selected-filters-list {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   align-items: center;
}

.b3-posts .selected-filter-item {
   display: inline-flex;
   align-items: center;
   color: white;
   padding: 6px 12px;
   border-radius: 20px;
   font-size: 13px;
   font-weight: 500;
   line-height: 1.2;
   white-space: nowrap;
   text-decoration: none;
}

.b3-posts .selected-filter-item:hover {
   text-decoration: none;
}

.b3-posts .selected-filter-item .filter-category {
   font-weight: 600;
   margin-right: 4px;
}

.b3-posts .selected-filter-item .remove-filter {
   margin-left: 8px;
   color: white;
   text-decoration: none;
   font-size: 16px;
   font-weight: bold;
   line-height: 1;
   padding: 2px 4px;
   border-radius: 50%;
   transition: background-color 0.2s ease;
   display: flex;
   align-items: center;
   justify-content: center;
   min-width: 18px;
   height: 18px;
}

.b3-posts .selected-filter-item .remove-filter:hover {
   background-color: rgba(255, 255, 255, 0.2);
   color: white;
   text-decoration: none;
}

.b3-posts .clear-all-filters-btn {
   display: inline-flex;
   align-items: center;
   color: white;
   padding: 3px 12px;
   border-radius: 20px;
   font-size: 13px;
   font-weight: 500;
   text-decoration: none;
   transition: background-color 0.2s ease;
   white-space: nowrap;
}

.b3-posts .clear-all-filters-btn:hover {
   color: white;
   text-decoration: none;
}

/* Responsive Design for Filters */
@media (max-width: 1024px) {
   .b3-posts .filter-container {
      flex-direction: column;
      gap: 0;
   }
   
   .b3-posts .custom-dropdown .dropdown-toggle {
      border-right: 2px solid #ddd;
      border-bottom: none;
      border-radius: 5px 5px 0 0;
   }
   
   .b3-posts .custom-dropdown:last-of-type .dropdown-toggle {
      border-bottom: 2px solid #ddd;
      border-radius: 0;
   }
   
   .b3-posts .filter-submit-btn,
   .b3-posts .clear-all-btn {
      border-left: 2px solid #ddd;
      border-top: none;
      border-radius: 0;
   }
   
   .b3-posts .filter-submit-btn {
      border-bottom: none;
   }
   
   .b3-posts .clear-all-btn {
      border-radius: 0 0 5px 5px;
   }
}

@media (max-width: 768px) {
   .b3-posts .post-feed-filters {
      padding: 15px;
      margin-bottom: 20px;
   }
   
   .b3-posts .dropdown-toggle {
      padding: 12px 15px;
      font-size: 16px; /* Prevents zoom on iOS */
   }
   
   .b3-posts .filter-submit-btn,
   .b3-posts .clear-all-btn {
      padding: 12px 15px;
      font-size: 16px;
   }
   
   .b3-posts .checkbox-item {
      padding: 12px 15px;
   }
}

/* ------------------------------------------------
   List */

.b3-posts-list .post {
    margin-bottom:75px;
    padding-bottom:75px;
    border-bottom:solid thin #999;
}

.b3-posts-list .post.no-divider {
    border-bottom: none;
}

.b3-posts-list .post:last-child {
    border-bottom:none
}

.b3-posts-list .post-content .post-thumbnail {
    overflow: hidden;
}

.b3-posts-list .post-content .post-thumbnail img {
    width:100%;
    display: block;
}

.b3-posts-list .entry-meta {
    font-size:80%;
    opacity:0.9;
}

.b3-posts-list .b3-content-items a {
    border-bottom:none;
}

.b3-posts-list .btn {
    
}

@media (min-width:767px) {
    .b3-posts-list.side .post-content {
        display:flex;
    }

    .b3-posts-list.side .post-content .post-thumbnail {
        width:30%;
        padding-right:3%;
    }

    .b3-posts-list.side .post-content .content-inner {
        width:65%;   
    }

    .b3-posts-list .post-content .content-inner.no-image {
        width:100%;
    }

    .b3-posts-list .post-content h3 {
        margin-top:0;
        font-size:2rem;
    }
}

/* ------------------------------------------------
   Grid */

.b3-posts-grid {

}

.b3-posts-grid .b3-content-items {
    display: grid;
    justify-content: center;
    gap:30px;
    grid-template-columns: repeat(1, 12fr);
    margin-bottom:30px;
}

.b3-posts-grid a {
    color:#333;
}

.b3-posts-grid .post-content {
    padding:10px 25px;
}

.b3-posts-grid .post-link {
    border-radius: 15px;
    overflow: hidden;
    transition:all 0.5s ease;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.b3-posts-grid .post-link:hover {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    margin:-10px 0 10px 0;
}

.b3-posts-grid .page-subhead {
    padding-bottom:0;
}

.b3-posts-grid .entry-title {
    text-align: center;
    font-size:100%;
}

.b3-posts-grid .b3-content-items > a {
    display:block;
}

.b3-posts-grid .post-link img {
    width:100%;
    height:250px;
    object-fit: cover;
    object-position: center;
}

@media (min-width:767px) {
    .b3-posts-grid .b3-content-items {
        grid-template-columns: repeat(3, 4fr);
    }

    .b3-posts-grid .post-link img {
        height:320px;
    }
}

@media (max-width:1025px) and (min-width:768px) {
    .b3-posts-grid .b3-content-items {
        grid-template-columns: repeat(2, 6fr);
    }

    .b3-posts-grid .post-link img {
        height:300px;
    }
}

/* ------------------------------------------------
   Pagination styles */

.post-list-pagination {
    text-align:center;
}

.post-list-pagination > * {
    display:inline-block;
    margin:0 2px;
    padding:4px 4px 6px;
    border-radius:5px;
    border:solid thin #6e6d98;
    transition:all 0.5s;
    color: #333;
    background:white;
    line-height:1em;
    cursor: pointer;
}

.post-list-pagination > *:hover {
    background-color:#6e6d98; 
    color:white;
}

/* Blog Default
   ========================================================================== */

body .site-main.blog-single {
    width:100%;
    max-width: 100% !important;
}

.blog-default {
    width: 100%;
    max-width:1400px;
    padding:30px 20px;
    margin:0 auto;
}

.blog-default time {
    background-color: #666666;
    display: inline-block;
    padding:5px 10px;
    color:white;
    font-size:65%;
}

.blog-default h1.page-title {
    font-weight: bold;
    line-height: 1.5em;
    margin-bottom: 30px;
}

.blog-default h2 {
    margin-top:40px;
    font-size: 120%;
    font-weight: bold;
    line-height: 1.5em;
}

.blog-default a {
    text-decoration: underline;
}

.blog-default p {
   line-height: 1.5em;
}

.blog-default .blog-default-sidebar {
    background-color: white;
}

.blog-default-sidebar > li {
    list-style: none;
} 

.blog-default .blog-default-sidebar .blog-recent {
    padding:20px;
    background-color: #333;
    color:white;
    margin-bottom:30px;
}

.blog-default .blog-default-sidebar h3 {
    text-transform: uppercase;
    color:white;
    font-size:20px;
    font-weight: bold;
}

.blog-default .blog-default-sidebar .blog-recent ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-default .blog-default-sidebar .blog-recent li {
    list-style: none;
    margin-bottom: 10px;
    line-height: 1.2em;
}

.blog-default .blog-default-sidebar a {
    color:#333;
    font-size: 16px;
    text-decoration: none;
}

.blog-default .blog-default-sidebar .blog-recent a {
    color: white;
}

.blog-default .blog-default-sidebar a:hover {
    text-decoration: underline;
}

@media (min-width:769px) {
    .blog-default {
        display:flex;
        flex-direction: row;
        gap:20px;
        align-items: flex-start;
    }

    .blog-default .blog-default-content {
        width:70%;
    }

    .blog-default .blog-default-content > .inner {
        padding: 50px;
        background-color: #eee;
    }

    .blog-default .blog-default-sidebar {
        width:28%;
        padding-bottom:30px;
    }
}

.blog-default .post-thumbnail {
   width:100%;
   height:auto;
}