/* Newsletter Styles */
.newsletter-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.newsletter-box {
    width: 1162px; /* Fixed width as requested */
    height: 378px; /* Fixed height as requested */
    background-color: #f5f0f7; /* Light purple background like in image 2 */
    border-radius: 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
}

/* The accent rectangle in top-left */
.newsletter-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 100px;
    background-color: #4e2a84; /* Darker purple for accent */
    opacity: 0.2;
    z-index: 1;
}

/* Content area (left side) */
.newsletter-content {
    flex: 0 0 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.newsletter-title {
    font-size: 28px;
    
    color: #000;
    margin: 0 0 10px 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
}

.newsletter-author {
    font-size: 16px;
    font-style: italic;
    color: #333;
    margin: 0 0 20px 0;
}

.newsletter-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

.newsletter-button {
    display: inline-block;
    background-color: #4e2a84; /* Purple button like in image 2 */
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.newsletter-button:hover {
    background-color: #3a1f63; /* Darker purple on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Image area (right side) */
.newsletter-image-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Creates the curved area where the image is shown */
.newsletter-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* The actual image */
.newsletter-image {
    position: absolute;
    right: -30%; /* Makes only part of the image visible */
    height: 85%;
    top: 50%;
    transform: translateY(-50%);
    max-width: none;
    object-fit: contain;
    z-index: 1;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
    .newsletter-box {
        width: 100%;
        height: auto;
        min-height: 378px;
    }
    
    .newsletter-image {
        right: -20%;
    }
}

@media screen and (max-width: 768px) {
    .newsletter-box {
        flex-direction: column;
        height: auto;
    }
    
    .newsletter-content {
        flex: 0 0 auto;
        padding: 30px 20px;
        width: 100%;
        order: 2;
    }
    
    .newsletter-image-container {
        position: relative;
        width: 100%;
        height: 250px;
        order: 1;
    }
    
    .newsletter-image {
        right: 0;
        width: 100%;
        height: auto;
    }
    
    .newsletter-accent {
        width: 80px;
        height: 60px;
    }
}