/**
 * Newsletter Styles - Modern Design
 * Matches the Neeti Niyaman theme design with enhanced UX
 */
 .content_right {
    background: none;
}
section.banner-inner {
    min-height: auto;
    padding-top: 40px;
}
section.banner-inner:before {
    background: none;
}
section.banner-inner h2{
    color: #174569;
}
.sub_categories h3{
    background-color: #174569;
}

.newsletter-breadcrumb {
    color: #174569 !important;
}
/* Archive Page Breadcrumb */
.newsletter-breadcrumb {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.newsletter-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.newsletter-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.6);
}

/* Advanced Filter System */
.newsletter-advanced-filters {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    color: var(--primary-color, #333);
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary-color, #333);
    border-radius: 2px;
}

.newsletter-filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.newsletter-filter-select:focus {
    outline: none;
    border-color: var(--primary-color, #333);
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.newsletter-filter-select:hover {
    border-color: #c1c5c9;
}

/* Search Filter */
.search-filter {
    position: relative;
    display: flex;
    align-items: center;
}

.newsletter-search-input {
    flex: 1;
    padding: 12px 16px;
    padding-right: 50px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-search-input:focus {
    outline: none;
    border-color: var(--primary-color, #333);
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.newsletter-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color, #333);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-search-btn:hover {
    background: var(--lightblack-color, #666);
    transform: translateY(-50%) scale(1.05);
}

/* Clear Filters */
.filter-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.newsletter-clear-btn {
    width: 100%;
    background: #f8f9fa;
    color: var(--lightblack-color, #666);
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-clear-btn:hover {
    background: #e9ecef;
    border-color: #c1c5c9;
    color: var(--primary-color, #333);
}

/* Remove bullets from all newsletter UL elements */
.newsletter-advanced-filters ul,
.newsletter-recent ul,
.newsletter-pagination ul,
.newsletter-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Newsletter Pagination */
.newsletter-pagination {
    margin-top: 40px;
    text-align: center;
}

.newsletter-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.newsletter-pagination li {
    margin: 0;
    padding: 0;
}

.newsletter-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    color: var(--primary-color, #333);
    text-decoration: none;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #fff;
}

.newsletter-pagination li a:hover,
.newsletter-pagination .current {
    background: var(--primary-color, #333);
    color: #fff;
    border-color: var(--primary-color, #333);
    transform: translateY(-2px);
}

.newsletter-pagination .prev,
.newsletter-pagination .next {
    padding: 0 16px;
}

/* Results Header */
.newsletter-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e1e5e9;
}

.results-info h3 {
    color: var(--primary-color, #333);
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
}

.results-info p {
    color: var(--lightblack-color, #666);
    font-size: 14px;
    margin: 0;
}

/* Newsletter Sorting */
.newsletter-sorting {
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter-sorting label {
    color: var(--primary-color, #333);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.newsletter-sort-select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 160px;
}

.newsletter-sort-select:focus {
    outline: none;
    border-color: var(--primary-color, #333);
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.newsletter-sort-select:hover {
    border-color: #c1c5c9;
}



/* Newsletter Grid */
.newsletter-grid-container {
    position: relative;
}

.newsletter-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e1e5e9;
    border-top: 4px solid var(--primary-color, #333);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}



.newsletter-item {
    transition: all 0.3s ease;
}

.newsletter-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.newsletter-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.newsletter-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.newsletter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Latest Badge */
.latest-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.latest-badge i {
    font-size: 10px;
}

.newsletter-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

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

.newsletter-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.newsletter-date {
    background: var(--base-color, #f5f5f5);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color, #333);
}

.newsletter-excerpt {
    color: var(--primary-color, #666);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}



/* No Newsletters */
.no-newsletters {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-newsletters-icon {
    font-size: 64px;
    color: #e1e5e9;
    margin-bottom: 20px;
}

.no-newsletters h3 {
    color: var(--primary-color, #333);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-newsletters p {
    color: var(--lightblack-color, #666);
    font-size: 16px;
}

/* ===== SINGLE NEWSLETTER PAGE STYLES ===== */

/* Recent Newsletters Section */
.recent-newsletters-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e1e5e9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: var(--primary-color, #333);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color, #333);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border: 2px solid var(--primary-color, #333);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-color, #333);
    color: #fff;
    transform: translateY(-2px);
}

.recent-newsletters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.recent-newsletters-grid .recent-newsletter-item {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.recent-newsletters-grid .recent-newsletter-item:hover {
    background: none;
    padding: 0;
    margin: 0;
}

.recent-newsletters-grid .newsletter-card {
    height: 100%;
}

.recent-newsletters-grid .newsletter-image {
    height: 180px;
}

.recent-newsletters-grid .newsletter-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.recent-newsletters-grid .newsletter-excerpt {
    font-size: 13px;
    margin-bottom: 0;
}

/* Single Newsletter Header */
.newsletter-single-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e1e5e9;
}

.newsletter-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--lightblack-color, #666);
}

.newsletter-breadcrumb a {
    color: var(--primary-color, #333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.newsletter-breadcrumb a:hover {
    color: var(--lightblack-color, #666);
}

.newsletter-breadcrumb i {
    font-size: 12px;
}

.newsletter-single-title {
    color: var(--primary-color, #333);
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.newsletter-single-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color:  #666;
    font-size: 14px;
}

.meta-item i {
    color: var(--primary-color, #333);
    font-size: 16px;
}

/* Featured Image */
.newsletter-single-featured {
    margin: 30px 0;
    text-align: center;
}

.newsletter-featured-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Newsletter Content */
.newsletter-single-content {
    margin: 40px 0;
    line-height: 1.8;
    color: #666;
    font-size: 16px;
}

.newsletter-single-content h1,
.newsletter-single-content h2,
.newsletter-single-content h3,
.newsletter-single-content h4,
.newsletter-single-content h5,
.newsletter-single-content h6 {
    color: var(--primary-color, #333);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.newsletter-single-content h1 { font-size: 32px; }
.newsletter-single-content h2 { font-size: 28px; }
.newsletter-single-content h3 { font-size: 24px; }
.newsletter-single-content h4 { font-size: 20px; }
.newsletter-single-content h5 { font-size: 18px; }
.newsletter-single-content h6 { font-size: 16px; }

.newsletter-single-content p {
    margin-bottom: 25px;
}

.newsletter-single-content ul,
.newsletter-single-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.newsletter-single-content li {
    margin-bottom: 10px;
}

.newsletter-single-content blockquote {
    border-left: 4px solid var(--primary-color, #333);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--lightblack-color, #666);
}

.newsletter-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* PDF Download Section */
.newsletter-single-pdf {
    margin: 50px 0;
}

.pdf-download-card {
    background: linear-gradient(135deg, var(--primary-color, #333) 0%, var(--lightblack-color, #666) 100%);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.pdf-download-icon {
    font-size: 48px;
    color: #fff;
    flex-shrink: 0;
}

.pdf-download-content {
    flex: 1;
}

.pdf-download-content h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.pdf-download-content p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--primary-color, #333);
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.pdf-download-btn:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    color: var(--primary-color, #333);
}

/* Newsletter Navigation */
.newsletter-single-navigation {
    margin: 60px 0 40px 0;
    padding-top: 40px;
    border-top: 2px solid #e1e5e9;
}

.newsletter-nav-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.newsletter-nav-prev,
.newsletter-nav-next {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.nav-link:hover {
    border-color: var(--primary-color, #333);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color, #333);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-label {
    color: var(--lightblack-color, #666);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.nav-title {
    color: var(--primary-color, #333);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.newsletter-nav-next .nav-link {
    flex-direction: row-reverse;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-advanced-filters {
        padding: 20px;
    }
    
    .newsletter-results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .newsletter-sorting {
        width: 100%;
        justify-content: flex-start;
    }
    
    .newsletter-sort-select {
        min-width: 140px;
    }
    
    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    

    
    .newsletter-meta {
        gap: 8px;
    }
    
    /* Single Newsletter Responsive */
    .newsletter-single-title {
        font-size: 28px;
    }
    
    .newsletter-single-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .pdf-download-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .newsletter-nav-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .newsletter-nav-next .nav-link {
        flex-direction: row;
        text-align: left;
    }
    
    /* Recent Newsletters Section Responsive */
    .recent-newsletters-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .section-header {
        gap: 15px;
        align-items: flex-start;
    }
    
    .recent-newsletters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .newsletter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .newsletter-advanced-filters {
        padding: 15px;
    }
    
    .newsletter-content {
        padding: 20px;
    }
    
    .newsletter-title {
        font-size: 18px;
    }
    
    /* Single Newsletter Mobile */
    .newsletter-single-title {
        font-size: 24px;
    }
    
    .newsletter-single-content {
        font-size: 15px;
    }
    
    .pdf-download-card {
        padding: 25px 15px;
    }
    
    .pdf-download-icon {
        font-size: 36px;
    }
    
    .pdf-download-content h3 {
        font-size: 20px;
    }
    
    /* Recent Newsletters Section Mobile */
    .recent-newsletters-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .view-all-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .recent-newsletters-grid .newsletter-image {
        height: 150px;
    }
    
    .recent-newsletters-grid .newsletter-title {
        font-size: 14px;
    }
    
         .recent-newsletters-grid .newsletter-excerpt {
         font-size: 12px;
     }
     
     .recent-newsletters-grid {
         grid-template-columns: 1fr;
         gap: 15px;
     }
     
     .newsletter-grid {
         grid-template-columns: 1fr;
         gap: 15px;
     }
}
@media(max-width:1024px){
    .single-newsletter .about-two {
        display: flex    ;
        flex-direction: column-reverse;
        flex-wrap: wrap;
    }
    .content_right{
        padding: 15px;
    }
    .sub_categories{
        margin: 40px 10px 30px 5px !important;
}
}
/* Animation for newsletter items */
.newsletter-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.newsletter-item:nth-child(1) { animation-delay: 0.1s; }
.newsletter-item:nth-child(2) { animation-delay: 0.2s; }
.newsletter-item:nth-child(3) { animation-delay: 0.3s; }
.newsletter-item:nth-child(4) { animation-delay: 0.4s; }
.newsletter-item:nth-child(5) { animation-delay: 0.5s; }
.newsletter-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover effects */
.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #333) 0%, var(--lightblack-color, #666) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.newsletter-card:hover::before {
    transform: scaleX(1);
}

/* Filter transitions */
.filter-group {
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 