/* Newsletter Styles */
/* Location: css/newsletter.css */

/* Container */
.newsletter-container {
    padding: 0px;
    background-color:transparent !important;
}

/* Latest Newsletter Display */
.latest-newsletter {
    background-color: transparent !important;
    margin: 20px 0;
    padding: 0;
}

.newsletter-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.newsletter-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.newsletter-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.newsletter-text {
    flex: 1;
    min-width: 0;
}

.latest-newsletter h2 {
    font-size: 28px !important;
    margin-top: 0;
    margin-bottom: 10px;
}

.latest-newsletter .newsletter-date {
    color: #000000;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.latest-newsletter .newsletter-excerpt {
    font-size: 16px !important;
    line-height: 1.6;
    margin-bottom: 20px;
}

.latest-newsletter .newsletter-content {
    color: #000000;
    font-size: 16px !important;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.latest-newsletter .newsletter-content a {
    color: #18a9b7 !important;
    font-weight: bold !important;
    cursor: pointer !important;
    font-size: 13px !important;
    word-break: break-all;
}

.latest-newsletter .newsletter-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* PDF Download Button */
.newsletter-pdf-link {
    margin-top: 25px;
}

.pdf-download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #18a9b7;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(24, 169, 183, 0.3);
}

.pdf-download-button:hover {
    background: #159aa8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 169, 183, 0.4);
}

.pdf-icon {
    font-size: 20px;
    line-height: 1;
}

.pdf-icon-small {
    font-size: 16px;
}

/* Newsletter Listing with Tabs */
.newsletter-listing-wrapper {
    margin: 40px 0;
}

.newsletter-year-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: #18a9b7;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(24, 169, 183, 0.2);
}

.year-tab {
    background: transparent;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    opacity: 0.7;
}

.year-tab:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.year-tab.active {
    background: #ffffff;
    color: #18a9b7;
    opacity: 1;
}

/* Newsletter Grid */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

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

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

.newsletter-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.newsletter-card-image a {
    display: block;
    height: 100%;
}

.newsletter-card-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    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;
    background: #ffffff;
}

.newsletter-card-title {
    font-size: 20px;
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
}

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

.newsletter-card-title a:hover {
    color: #18a9b7;
}

.newsletter-card-date {
    color: #6b7280;
    font-size: 13px;
    margin: 0 0 15px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-card-excerpt {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.newsletter-card-link {
    color: #18a9b7;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-card-link:hover {
    color: #1d4ed8;
    transform: translateX(4px);
}

.newsletter-card-link .pdf-icon-small {
    display: inline-block;
    margin-right: 4px;
}

/* Loading Spinner */
.newsletter-loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #18a9b7;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* No Newsletters Message */
.no-newsletters {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .latest-newsletter {
        padding: 0;
    }

    .newsletter-layout {
        flex-direction: column;
        gap: 25px;
    }

    .newsletter-image {
        flex: 1;
        max-width: 100%;
        margin-bottom: 0;
    }

    .latest-newsletter h2 {
        font-size: 24px !important;
    }

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

    .newsletter-year-tabs {
        gap: 0;
        padding: 6px;
    }

    .year-tab {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .newsletter-card-image {
        height: 200px;
    }
}

/* Single Newsletter Page */
.single-newsletter .entry-header {
    margin-bottom: 20px;
}

.single-newsletter .entry-title {
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 10px;
}

.single-newsletter .entry-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.single-newsletter .entry-content a {
    color: #18a9b7;
    word-break: break-all;
}

.single-newsletter .entry-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}