
/* ===================================================================
   Newsletter :: Single Post Styles
   =================================================================== */

.newsletter-container {
    max-width: 840px; 
    margin: 60px auto;
    padding: 0 20px;
}

.newsletter-single {
    background: #fff;
}

.newsletter-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    text-align: center; 
}

.newsletter-title {
    font-size: 3em;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.1;
    font-weight: 700;
}

.newsletter-meta {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-featured-image {
    margin: 40px 0;
    text-align: center;
}

.newsletter-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: none;
}

.newsletter-content {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin: 40px 0;
}

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

.newsletter-download {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.download-pdf-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.download-pdf-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: #fff;
}

.download-pdf-button .dashicons {
    margin-right: 8px;
    vertical-align: middle;
}

/* ===================================================================
   Newsletter :: Archive (List) & Shortcode Styles
   =================================================================== */

.newsletter-archive-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 2.5em;
    color: #333;
}

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

.newsletter-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.newsletter-card-image {
    overflow: hidden;
    height: 250px;
}

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

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

.newsletter-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill space */
}

.newsletter-card-title {
    font-size: 1.5em;
    margin: 0 0 15px 0;
}

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

.newsletter-card-title a:hover {
    color: #667eea;
}

.newsletter-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes footer down */
}

.newsletter-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.newsletter-card-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-pdf-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.download-pdf-card-button:hover {
    background-color: #764ba2;
    color: #fff;
}

.download-pdf-card-button .dashicons {
    font-size: 18px;
    width: auto;
    height: auto;
}

.newsletter-card-date {
    color: #999;
    font-size: 14px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
}

.newsletter-no-posts-message {
    grid-column: 1 / -1; /* Span full width of the grid */
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 8px;
    color: #555;
}

/* ===================================================================
   Responsive Styles
   =================================================================== */
@media (max-width: 768px) {
    .newsletter-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-title {
        font-size: 2.2em;
    }

    .newsletter-content {
        font-size: 16px;
    }
}
