/* Newsletter Archive Styles */
.newsletter-archive-banner {
    padding: 120px 0 !important;
    position: relative;
}
.newsletter-archive-banner:before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.49); 
}

.newsletter-archive {
    background: #fff;
}
.newsletter-item{
    margin-bottom: 30px;
}

.archive-title {
    color: #FFFFFF;
    font-size: 70px;
    font-weight: 600 !important;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 0px;
}

/* Filter Bar */
.filter-bar-wrapper {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-bar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.filter-dropdown {
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: row;
    align-items: center;
    max-width: 100%;
    background-color: #fff;
    border-radius: .9375rem;
    font-size: .9375rem;
    box-shadow: 0 0 1rem #0000002e;
    margin-top: -2.2rem;
    overflow: hidden;
}

.filter-label {
    font-size: 18px;
    color: #212529;
    padding: 20px 30px 20px 40px;
    cursor: pointer;
}

.filter-btn {
    background-color: #0077A3;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    padding: 1.5rem 2.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 14px;
}

.filter-btn:hover {
    background-color: #005a7a;
}

.filter-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.08);
    border: 1px solid #DEE2E6;
    margin-top: 10px;
    min-width: 200px;
    z-index: 100;
    display: none;
    flex-direction: column;
}

.filter-menu.active {
    display: flex;
}

.filter-item {
    padding: 12px 20px;
    color: #312F31;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.filter-item:last-child {
    border-bottom: none;
}

.filter-item:hover,
.filter-item.active {
    background-color: #0077A3;
    color: #FFFFFF;
}

/* Featured Post */
.featured-post {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.featured-image {
    width: 50%;
    height: 400px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 20px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 30px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #8F8F8F;
}

.featured-separator {
    color: #8F8F8F;
}

.featured-title {
    font-size: 32px;
    font-weight: 800 !important;
    color: #312F31;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-title a {
    color: #312F31;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-title a:hover {
    color: #0077A3;
}

.featured-excerpt {
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    color: #312F31;
    line-height: 1.6;
    margin-bottom: 15px;
}

.featured-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #0077A3;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.featured-read-more:hover {
    color: #005a7a;
}

/* Newsletter Grid */
.newsletter-grid {
    margin-bottom: 10px;
}

.newsletter-card {
    background: #fff;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s;
    border-radius: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.newsletter-card:hover {
    box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.21);
}

.newsletter-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
}

.newsletter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.newsletter-card:hover .newsletter-image img {
    transform: scale(1.05);
}

.newsletter-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.newsletter-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #8F8F8F;
}

.newsletter-separator {
    color: #8F8F8F;
}

.newsletter-title {
    font-size: 20px;
    font-weight: 600;
    color: #312F31;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

.newsletter-title a {
    color: #312F31;
    text-decoration: none;
    transition: color 0.3s;
}

.newsletter-title a:hover {
    color: #0077A3;
}

.newsletter-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #0077A3;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    margin-top: auto;
}

.newsletter-read-more:hover {
    color: #005a7a;
}

/* Load More Button */
.load-more-wrapper{
    margin-bottom: 40px;
}
.load-more-btn {
    background-color: #0077A3;
    color: #FFFFFF;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0px 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 214px;
    height: 54px;
    border-radius: 5px;
    margin: 0 auto;
}

.load-more-btn:hover:not(.loading) {
    background-color: #005a7a;
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn.hide {
    display: none;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    color: #8F8F8F;
}

.filter-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: 0;
    padding: 15px 30px;
    min-width: 418px;
    z-index: 100;
    right: 0px;
    top: 32px;
    border-radius: 13px;
}
.filter-menu ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.filter-menu ul li{
    padding: 5px 0;
}
.filter-menu ul li label{
    margin: 0;
}
.filter-menu ul li label input{
    accent-color: #0077A3;
    margin-right: 5px;
}
.outer_filter_wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 680px;
    justify-content: flex-start;
    padding-top: 20px;
}

/* Custom Loader CSS */
.loader {
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid;
  border-color: #000 #0000;
  animation: l1 1s infinite;
}
@keyframes l1 {to{transform: rotate(.5turn)}}

/* Filter actions styles */
.filter-actions {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
#cancelBtn, #submitBtn {
    padding: 5px 15px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}
#submitBtn {
    background: #007cba;
    color: white;
    border-color: #007cba;
}
/* .filter-btn {
    padding: 8px 14px;
    background: black;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    border: none;
} */

.selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background: #fff;
    border: 1px solid #0077A3;
    color: #0077A3;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.chip span {
    cursor: pointer;
    font-weight: bold;
}

.clear-filters {
    padding: 10px 16px;
    background: #0077A3;
    font-size: 16px;
    color: #fff;
    border-radius: 10px;
    border: none;
    display: inline-block;
    cursor: pointer;
}





.newsletter-read-more, 
.featured-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.newsletter-read-more span,
.featured-read-more span {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Hover Effect */
.newsletter-read-more:hover span, 
.featured-read-more:hover span {
    transform: translateX(5px);
}



/* Responsive Styles */
@media only screen and (max-width: 1200px) {
    .filter-label {
        font-size: 16px;
        padding: 12px 30px 12px 20px;
        white-space: nowrap;
    }
    .filter-btn {
        padding: 15px 15px;
        border-radius: 10px;
    }
    .outer_filter_wrap{
        min-width: 620px;
        gap: 10px;
    }
    .filter-menu {
        top: 14px;
        padding: 12px 20px;
        min-width: 305px;
    }
}
@media only screen and (max-width: 991px) {
    .archive-title {
        font-size: 32px;
    }
    
    .featured-post {
        flex-direction: column;
    }
    
    .featured-image {
        width: 100%;
        height: 300px;
    }
    
    .featured-content {
        width: 100%;
        padding: 25px;
    }
    
    .featured-title {
        font-size: 26px;
    }
    
    .newsletter-image {
        height: 200px;
    }
    .filter-bar-wrapper {
        flex-wrap: wrap;
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

@media only screen and (max-width: 767px) {
    .archive-title {
        font-size: 28px;
        text-align: left;
    }
    
    .filter-bar {
        justify-content: flex-start;
    }
    .selected-filters{
        gap: 5px;
    }
    
    .filter-menu {
        right: auto;
        left: 0;
    }
    
    .featured-post {
        flex-direction: column;
        margin-bottom: 30px;
    }
    
    .featured-image {
        width: 100%;
        height: 250px;
    }
    
    .featured-content {
        width: 100%;
        padding: 20px;
    }
    
    .featured-title {
        font-size: 22px;
    }
    
    .featured-excerpt {
        font-size: 14px;
    }
    .newsletter-archive-banner {
        padding: 60px 0 !important;
    }
    
    .newsletter-image {
        height: 180px;
    }
    
    .newsletter-content {
        padding: 15px;
    }
    
    .newsletter-title {
        font-size: 18px;
    }
    
    .load-more-btn {
        width: 100%;
        max-width: 214px;
    }
    .outer_filter_wrap {
        min-width: 100%;
    }
}

@media only screen and (max-width: 575px) {
    .filter-btn {
        padding: 12px 25px;
        border-radius: 10px;
    }
     .filter-label {
        font-size: 14px;
    }
    .filter-dropdown{
        justify-content: space-between;
        width: 100%;
    }
    
    .filter-menu {
        width: 100%;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .newsletter-image {
        height: 160px;
    }
    .chip {
        padding: 4px 8px;
        border-radius: 15px;
        gap: 4px;
        font-size: 12px;
    }
    .clear-filters {
        padding: 7px 15px;
        font-size: 13px;
        border-radius: 10px;
    }
    .outer_filter_wrap{
        padding-top: 15px;
    }
}