/* Premium Styles for Newsletter Page */

/* Reset and Wrapper */
.newsletter-page-wrapper {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: #fafbfc;
    color: #1a253c;
    overflow-x: hidden;
}

.container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.newsletter-top-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
}

/* Hero Banner */
.newsletter-hero {
    background: linear-gradient(135deg, #0e1e3e 0%, #061024 100%);
    color: #ffffff;
    position: relative;
    padding: 100px 0 120px;
    text-align: center;
    overflow: hidden;
}

.newsletter-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay .badge-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.text-gold {
    color: #d4af37;
    position: relative;
}

.hero-desc {
    font-size: 18px;
    color: #a0aec0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 750;
    color: #0e1e3e;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #d4af37;
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 16px;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

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

/* Newsletter Card */
.newsletter-card {
    background: #b51824;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(181, 24, 36, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #d4af37;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(181, 24, 36, 0.18);
    border-color: rgba(212, 175, 55, 0.5);
}

.newsletter-card:hover::before {
    opacity: 1;
}

/* Card Icon */
.card-icon-wrapper {
    margin-bottom: 24px;
}

/* Card Cover Image (A4 Aspect Ratio Layout) */
.card-cover-wrapper {
    width: 100%;
    aspect-ratio: 210 / 297; /* A4 aspect ratio */
    margin: 0 auto 24px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #f7fafc;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
}

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

.newsletter-card:hover .card-cover-img {
    transform: scale(1.04);
}

.pdf-icon-bg {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
}

.newsletter-card:hover .pdf-icon-bg {
    background: #ffffff;
    color: #b51824;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}

/* Card Meta */
.card-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.meta-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 550;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-row {
    display: flex;
    gap: 6px;
}

.volume-badge, .issue-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.volume-badge {
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.issue-badge {
    text-transform: none;
    background: #d4af37;
    color: #b51824;
}

/* Card Title */
.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 24px;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.newsletter-card:hover .card-title {
    color: #d4af37;
}

/* Download Button */
.download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    color: #b51824 !important;
    border: none;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.download-btn .btn-icon {
    transition: transform 0.3s ease;
}

.download-btn:hover {
    background: #d4af37;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}

.download-btn:hover .btn-icon {
    transform: translateY(3px);
}

/* Empty state */
.no-newsletters {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px dashed #cbd5e0;
    max-width: 600px;
    margin: 40px auto;
}

.empty-icon {
    font-size: 56px;
    color: #a0aec0;
    margin-bottom: 20px;
}

.no-newsletters h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0e1e3e;
    margin-bottom: 10px;
}

.no-newsletters p {
    color: #718096;
    font-size: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 38px;
    }
    .hero-desc {
        font-size: 15px;
    }
    .container-inner {
        padding: 50px 15px;
    }
    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
