* {
    box-sizing: border-box;
}


.newsletter-page-container {
    padding: 60px 0;
    /* background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); */
    font-family: 'Open Sans', sans-serif;
}

.newsletter-header {
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #e6f0fa 0%, #f1f7ff 100%);
    padding: 60px 0;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 40px;
    color: #045296;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.page-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: #5a6a85;
    line-height: 1.6;
}

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

.newsletter-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure all items stretch to the same height */
}

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

.newsletter-image {
    height: 240px;
    overflow: hidden;
    display: block;
    position: relative;
}

.newsletter-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.newsletter-image a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.newsletter-item:hover .newsletter-image a::after {
    opacity: 1;
}

.newsletter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    position: relative;
    z-index: 1;
}

.newsletter-item:hover .newsletter-image img {
    transform: scale(1.08);
}

.newsletter-content {
    padding: 25px;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 200px;
    /* Ensures consistent height for content */
}

.newsletter-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
    /* Set to 14px as requested */
    font-weight: 600;
    line-height: 1.5;
}

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

.newsletter-title a:hover {
    color: #0275d8;
}

.newsletter-meta {
    font-size: 14px;
    color: #7a8aa5;
    margin-bottom: 15px;
    font-style: italic;
}

.newsletter-excerpt {
    margin-bottom: 20px;
    color: #5a6a85;
    line-height: 1.7;
    font-size: 14px;
    flex-grow: 1;

}

.newsletter-button {
    text-align: right;
    margin-top: auto;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #045296 0%, #0275d8 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #0275d8 0%, #045296 100%);
    transform: translateY(-2px);
}

.newsletter-pagination {
    text-align: center;
    margin-top: 40px;
}

.newsletter-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 8px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    color: #045296;
    background: #f1f7ff;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.newsletter-pagination .page-numbers:hover {
    background: #e6f0fa;
    color: #0275d8;
    transform: translateY(-2px);
}

.newsletter-pagination .page-numbers.current {
    background: linear-gradient(135deg, #045296 0%, #0275d8 100%);
    color: white;
}

.no-posts-found {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #5a6a85;
    background: #f9f9f9;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .newsletter-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }

    .page-title {
        font-size: 32px;
    }

    .newsletter-header {
        padding: 40px 0;
    }

    .newsletter-image {
        height: 200px;
    }

    .newsletter-content {
        padding: 20px;
        min-height: 180px;
        /* Adjusted for smaller screens */
    }

    .newsletter-title {
        font-size: 14px;

    }

    .newsletter-excerpt {
        font-size: 14px;
    }

    .read-more-btn {
        font-size: 14px;
        padding: 8px 20px;
    }

    .newsletter-pagination .page-numbers {
        padding: 8px 14px;
        margin: 0 5px;
    }
}