/* ============================================================
   NEWSLETTER PAGE
   File: /static/css/newsletter.css
============================================================ */

/* ------------------------------------------------------------
   HERO / INTRO
------------------------------------------------------------ */
.newsletter-hero,
.newsletter-section-inner{
    max-width:760px;
}

.newsletter-hero{
    text-align:center;
}

.newsletter-intro{
    margin-bottom:0.5rem;
}

.newsletter-meta{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin-top:18px;
}

.newsletter-meta span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:8px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,0.10);
    background:rgba(255,255,255,0.04);
    color:rgba(255,255,255,0.84);
    font-size:13px;
    font-weight:700;
}

@media (max-width:767px){
    .newsletter-meta span{
        width:100%;
    }
}

/* ------------------------------------------------------------
   POSTS SECTION
------------------------------------------------------------ */
.newsletter-posts{
    margin-top:0.5rem;
}

.newsletter-posts-grid{
    margin-top:1.5rem;
}

.newsletter-card{
    overflow:hidden;
    display:flex;
    flex-direction:column;
    height:100%;
}

.newsletter-card-body{
    display:flex;
    flex-direction:column;
    gap:10px;
    flex:1;
}

.newsletter-image{
    margin:-28px -28px 18px;
    overflow:hidden;
    background:rgba(255,255,255,0.03);
    border-bottom:1px solid rgba(255,255,255,0.06);
}

.newsletter-image img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    transition:transform 0.45s ease;
}

.newsletter-card:hover .newsletter-image img{
    transform:scale(1.04);
}

.newsletter-subject{
    margin:0;
    color:rgba(255,255,255,0.92);
    line-height:1.6;
}

.newsletter-date{
    margin-bottom:0.25rem;
}

.newsletter-content{
    line-height:1.75;
    word-break:break-word;
    color:var(--text-muted);
}

.newsletter-content img{
    max-width:100%;
    height:auto;
    display:block;
    border-radius:14px;
    margin:0.75rem 0;
}

.newsletter-content p:last-child{
    margin-bottom:0;
}

/* ------------------------------------------------------------
   SUBSCRIBE CARD
------------------------------------------------------------ */
.newsletter-subscribe{
    margin-top:1rem;
}

.newsletter-signup-card,
.newsletter-page .info-card{
    background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border:1px solid rgba(255,255,255,0.08);
    border-radius:22px;
    box-shadow:var(--shadow-md);
    padding:24px;
}

.newsletter-page .info-head{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-bottom:14px;
}

.newsletter-page .info-icon{
    width:42px;
    height:42px;
    min-width:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:rgba(250,204,21,0.12);
    border:1px solid rgba(250,204,21,0.28);
    color:var(--gold);
    font-size:1.1rem;
}

.newsletter-page .info-title{
    margin:2px 0 0;
    font-size:1.2rem;
    line-height:1.2;
}

.newsletter-page .info-text{
    color:var(--text-muted);
    line-height:1.75;
}

.newsletter-form{
    display:grid;
    gap:14px;
    margin-top:18px;
}

.newsletter-form input{
    width:100%;
    min-height:52px;
    padding:14px;
    border:1px solid rgba(255,255,255,0.12);
    background:rgba(255,255,255,0.03);
    color:#fff;
    font-size:15px;
    border-radius:14px;
    transition:border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.newsletter-form input::placeholder{
    color:rgba(255,255,255,0.45);
}

.newsletter-form input:hover{
    border-color:rgba(255,255,255,0.18);
}

.newsletter-form input:focus{
    outline:none;
    border-color:rgba(250,204,21,0.72);
    box-shadow:0 0 0 3px rgba(250,204,21,0.15);
}

.newsletter-form .cta-btn{
    width:100%;
    min-height:50px;
}

.newsletter-page .info-note{
    color:rgba(255,255,255,0.58);
    font-size:13px;
    line-height:1.6;
}

@media (min-width:768px){
    .newsletter-form{
        grid-template-columns:1fr 1fr auto;
        align-items:end;
    }

    .newsletter-form .cta-btn{
        width:auto;
        min-width:160px;
    }

    .newsletter-signup-card,
    .newsletter-page .info-card{
        padding:28px;
    }
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width:640px){
    .newsletter-image{
        margin:-28px -28px 16px;
    }

    .newsletter-image img{
        height:200px;
    }

    .newsletter-form .cta-btn{
        width:100%;
        justify-content:center;
    }
}

/* ------------------------------------------------------------
   ACCESSIBILITY
------------------------------------------------------------ */
.newsletter-form input:focus-visible,
.newsletter-form .cta-btn:focus-visible{
    outline:2px solid var(--gold);
    outline-offset:3px;
}

/* ------------------------------------------------------------
   REDUCED MOTION
------------------------------------------------------------ */
@media (prefers-reduced-motion:reduce){
    .newsletter-image img,
    .newsletter-page .info-card,
    .newsletter-form input,
    .newsletter-form .cta-btn{
        transition:none !important;
    }
}