/* --- Scope all styles inside #csr-newsletter-page to avoid theme conflicts --- */
#csr-newsletter-page {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #222222;
    background-color: #f7f9fb;
    padding-bottom: 70px;
    line-height: 1.6;
}

#csr-newsletter-page * {
    box-sizing: border-box;
}

/* ---------------- HERO BANNER ---------------- */
.csr-hero-banner {
    position: relative;
    width: 100%;
    min-height: 220px;
    background-color: var(--csr-hero-2, #6200ea);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 0, 150, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 200, 200, 0.4) 0%, transparent 40%),
        linear-gradient(125deg, var(--csr-hero-1, #b80099) 0%, var(--csr-hero-2, #6200ea) 50%, var(--csr-hero-3, #00b4d8) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.csr-hero-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='300' viewBox='0 0 800 300'%3E%3Cpolygon points='0,0 200,80 150,220 0,300' fill='rgba(255,255,255,0.04)'/%3E%3Cpolygon points='800,0 600,100 680,260 800,300' fill='rgba(255,255,255,0.05)'/%3E%3Cpolygon points='200,0 450,90 350,280 150,220' fill='rgba(255,255,255,0.03)'/%3E%3Cpolygon points='450,90 600,100 550,300 350,280' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") center/cover no-repeat;
    pointer-events: none;
}

.csr-hero-title {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

/* ---------------- CONTAINER ---------------- */
.csr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------- FEATURED SPOTLIGHT SECTION ---------------- */
.csr-spotlight-wrap {
    margin-top: -30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.csr-spotlight-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
}

@media (max-width: 900px) {
    .csr-spotlight-card {
        grid-template-columns: 1fr;
    }
}

.csr-spotlight-content {
    padding: 35px;
    background: #fdfdf9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #eee;
}

.csr-spotlight-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2b580c;
    margin-bottom: 18px;
    line-height: 1.4;
}

.csr-spotlight-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 13px;
    color: #333333;
    line-height: 1.55;
    text-align: justify;
}

@media (max-width: 600px) {
    .csr-spotlight-body {
        grid-template-columns: 1fr;
    }
}

.csr-director-signature {
    margin-top: 15px;
    border-top: 1px dashed #ddd;
    padding-top: 12px;
}

.csr-director-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #111;
    font-size: 14px;
}

.csr-director-role {
    font-size: 12px;
    color: #666;
}

.csr-spotlight-highlights-box {
    background: #fbf8ed;
    border: 1px solid #e2dac2;
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
}

.csr-highlights-title {
    font-weight: 700;
    font-size: 13px;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid #ded6be;
    padding-bottom: 6px;
}

.csr-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.csr-highlights-list li {
    font-size: 12px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    color: #333;
    display: flex;
    align-items: center;
}

.csr-highlights-list li::before {
    content: "•";
    color: #2b580c;
    font-weight: bold;
    font-size: 16px;
    margin-right: 8px;
}

.csr-spotlight-visual {
    background: #f7f9fa;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.csr-visual-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.csr-vol-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #4b6584;
}

.csr-visual-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #2c3e1e;
    line-height: 1.15;
    margin-top: 6px;
}

.csr-logo-emblem {
    width: 65px;
    height: auto;
}

.csr-banner-img-frame {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.csr-banner-img-frame img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.csr-banner-img-frame:hover img {
    transform: scale(1.03);
}

/* ---------------- SECTION TITLE ---------------- */
.csr-section-header {
    text-align: center;
    margin: 50px 0 35px 0;
}

.csr-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    position: relative;
    display: inline-block;
}

.csr-section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #c30fa5, #00897b);
    margin: 10px auto 0 auto;
    border-radius: 3px;
}

/* ---------------- FILTER TABS & SEARCH ---------------- */
.csr-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.csr-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.csr-tab-btn {
    background: #f1f5f9;
    border: 1px solid transparent;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s ease;
}

.csr-tab-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.csr-tab-btn.active {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(30, 41, 59, 0.25);
}

.csr-search-box {
    position: relative;
    min-width: 240px;
}

.csr-search-input {
    width: 100%;
    padding: 9px 16px 9px 36px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.csr-search-input:focus {
    border-color: #6366f1;
}

.csr-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* ---------------- NEWSLETTER CARDS GRID ---------------- */
.csr-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .csr-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .csr-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.csr-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.csr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Cover Image / Art Area */
.csr-card-cover {
    position: relative;
    height: 250px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}

.csr-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

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

/* SVG Mock Cover Art */
.csr-mock-cover {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.csr-cover-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Card Body */
.csr-card-body {
    padding: 20px 22px 24px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    text-align: center;
}

.csr-card-year {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.csr-download-links-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csr-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.csr-download-link:hover {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
    text-decoration: none;
}

.csr-download-link svg {
    transition: transform 0.2s;
}

.csr-download-link:hover svg {
    transform: translateY(2px);
}

/* No results state */
.csr-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    color: #64748b;
    display: none;
}

/* ---------------- MODAL / PREVIEW ---------------- */
.csr-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.csr-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
    position: relative;
    animation: csrFadeIn 0.3s ease;
}

@keyframes csrFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.csr-modal-header {
    padding: 18px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.csr-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.csr-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.csr-modal-body {
    padding: 30px;
    text-align: center;
}

.csr-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.csr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.csr-btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
}

.csr-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.csr-btn-secondary {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.csr-btn-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.csr-modal-subtitle {
    margin: 0 0 10px 0;
    color: #1e293b;
}

.csr-modal-text {
    color: #64748b;
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto 20px auto;
}

/* ---------------- SPOTLIGHT: MANAGED CONTENT ---------------- */
.csr-spotlight-body p:first-child {
    margin-top: 0;
}

.csr-banner-img-frame.is-placeholder {
    height: 220px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 35%),
        linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0284c7 100%);
}

.csr-banner-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.csr-banner-caption strong {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.csr-banner-caption span {
    font-size: 12px;
    color: #cbd5e1;
}

img.csr-logo-emblem {
    object-fit: contain;
}

/* ---------------- AUTO-GENERATED CARD COVER ---------------- */
.csr-gen-cover {
    width: 100%;
    height: 100%;
    padding: 16px 20px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.18) 0%, transparent 35%),
        linear-gradient(135deg, var(--csr-accent) 0%, color-mix(in srgb, var(--csr-accent) 70%, #000000) 100%);
    display: flex;
}

.csr-gen-cover-inner {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    border-left: 5px solid var(--csr-accent);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.csr-gen-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.5px;
    color: var(--csr-accent);
    max-width: 75%;
}

.csr-gen-label {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #64748b;
}

.csr-gen-highlights {
    list-style: none;
    margin: auto 0 0 0;
    padding: 12px 0 0 0;
    border-top: 1px dashed #e2e8f0;
}

.csr-gen-highlights li {
    font-size: 12px;
    color: #334155;
    padding: 2px 0;
}

.csr-gen-highlights li::before {
    content: "•";
    color: var(--csr-accent);
    font-weight: 700;
    margin-right: 6px;
}

/* ---------------- LINKS WITHOUT A FILE YET ---------------- */
.csr-download-link.is-pending {
    color: #64748b;
    border-style: dashed;
}
