/* newsletter.css - Dark Luxury Theme for Serendib Escape */
.newsletter-section {
    padding: 5rem 2rem;
    background-color: #0a0a0a; /* Deep black background */
    color: #e8e8e8;
    position: relative;
    border-top: 1px solid rgba(212, 180, 131, 0.1); /* Gold accent */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #b0b0b0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Layout for Featured vs. Recent */
.newsletter-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .newsletter-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- FEATURED ARTICLE STYLES --- */
.featured-article {
    background: #141414;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 180, 131, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 180, 131, 0.3);
}

.featured-image {
    height: 400px;
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.5s ease, transform 0.8s ease;
}

.featured-article:hover .featured-image img {
    opacity: 0.95;
    transform: scale(1.03);
}

.featured-content {
    padding: 2.5rem;
}

.article-category {
    display: inline-block;
    background: rgba(212, 180, 131, 0.1);
    color: #d4b483; /* Gold */
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(212, 180, 131, 0.2);
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    color: #ffffff;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    font-weight: 600;
}

.article-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* --- RECENT ARTICLES STYLES --- */
.recent-articles {
    background: #141414;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(212, 180, 131, 0.1);
}

.recent-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #f5f5f5;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-item:hover {
    padding-left: 0.5rem;
}

.recent-item:hover .recent-text h5 {
    color: #d4b483;
}

.recent-text h5 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #e8e8e8;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.recent-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #8a8a8a;
    line-height: 1.5;
}

.recent-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

/* --- BUTTON STYLES (Matches your site) --- */
.read-more-btn {
    background: transparent;
    color: #d4b483;
    border: 1.5px solid #d4b483;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.read-more-btn:hover {
    background: #d4b483;
    color: #0a0a0a;
    box-shadow: 0 5px 15px rgba(212, 180, 131, 0.2);
}

/* --- ARTICLE MODAL STYLES --- */
.article-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #141414;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 180, 131, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(212, 180, 131, 0.3);
}

.modal-content {
    padding: 3rem;
    overflow-y: auto;
    max-height: calc(90vh - 6rem);
}

.modal-header {
    margin-bottom: 2.5rem;
}

.modal-category {
    background: rgba(212, 180, 131, 0.1);
    color: #d4b483;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 180, 131, 0.2);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.modal-meta {
    font-family: 'Inter', sans-serif;
    color: #8a8a8a;
    font-size: 0.95rem;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #d0d0d0;
    font-size: 1.05rem;
}

.modal-body h3 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    margin: 2.5rem 0 1.2rem;
    font-size: 1.7rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
}

.modal-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-section { padding: 3rem 1.5rem; }
    .section-title { font-size: 2.2rem; }
    .newsletter-layout { gap: 2.5rem; }
    .featured-content, .recent-articles { padding: 1.8rem; }
    .article-title { font-size: 1.8rem; }
    .modal-container { margin: 2vh auto; max-height: 96vh; width: 95%; }
    .modal-content { padding: 2rem; }
    .modal-title { font-size: 2rem; }
}