/* ============================================
   BLOG PAGE
   Uses the shared design tokens from variables.css
   (imported via style.css) — no :root override here
   so the light theme keeps working.
============================================ */

.blog-wrap{
    width:min(1200px,90%);
    margin:auto;
}

/* ==========================
   BLOG HERO
========================== */

.blog-hero{
    padding:60px 0 35px;
    text-align:center;
    position:relative;
}

.blog-badge{
    display:inline-flex;
    align-items:center;

    padding:10px 22px;
    margin-bottom:22px;

    border-radius:40px;

    background:rgba(255,138,0,.12);
    border:1px solid rgba(255,138,0,.25);

    color:var(--primary);
    font-weight:600;
    font-size:14px;
}

.blog-hero h1{
    font-family:var(--heading);
    font-size:58px;
    line-height:1.1;
    font-weight:700;
}

.blog-hero h1 span{
    color:var(--primary);
}

.blog-hero p{
    max-width:640px;
    margin:22px auto 0;

    color:var(--text);
    font-size:18px;
    line-height:1.8;
}

/* ==========================
   FILTER CHIPS
========================== */

.blog-filters{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;

    margin:44px 0 55px;
}

.blog-filter{
    padding:10px 22px;

    border-radius:40px;

    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.10);

    color:var(--text);
    font-family:var(--body);
    font-size:14px;
    font-weight:500;

    cursor:pointer;
    transition:var(--transition);
}

.blog-filter:hover{
    color:var(--white);
    border-color:rgba(255,138,0,.45);
}

.blog-filter.active{
    color:#fff;
    border-color:transparent;
    background:linear-gradient(135deg,#ff8a00,#ff7b00);
    box-shadow:0 8px 24px rgba(255,138,0,.28);
}

/* ==========================
   FEATURED POST
========================== */

.featured-post{
    display:grid;
    grid-template-columns:1.1fr 1fr;

    margin-bottom:60px;

    border-radius:26px;
    overflow:hidden;

    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);

    transition:var(--transition);
}

.featured-post:hover{
    border-color:rgba(255,138,0,.35);
    box-shadow:0 25px 60px rgba(255,138,0,.10);
}

.featured-image{
    position:relative;
    min-height:340px;
    overflow:hidden;
}

.featured-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .6s ease;
}

.featured-post:hover .featured-image img{
    transform:scale(1.06);
}

.featured-flag{
    position:absolute;
    top:20px;
    left:20px;

    padding:8px 16px;
    border-radius:30px;

    font-size:12px;
    font-weight:600;

    color:#fff;
    background:linear-gradient(135deg,#ff8a00,#ff7b00);
    box-shadow:0 8px 22px rgba(255,138,0,.35);
}

.featured-body{
    padding:48px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:16px;
}

.featured-body .blog-meta{
    margin-bottom:2px;
}

.featured-body h2{
    font-family:var(--heading);
    font-size:2rem;
    line-height:1.3;
}

.featured-body p{
    color:var(--text);
    line-height:1.8;
}

/* ==========================
   BLOG GRID + CARDS
========================== */

.blog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.blog-card{
    display:flex;
    flex-direction:column;

    border-radius:22px;
    overflow:hidden;

    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);

    transition:transform .4s ease,
               border-color .4s ease,
               box-shadow .4s ease;
}

.blog-card:hover{
    transform:translateY(-10px);
    border-color:rgba(255,138,0,.40);
    box-shadow:0 22px 55px rgba(255,138,0,.12);
}

.blog-card-image{
    position:relative;
    height:210px;
    overflow:hidden;
}

.blog-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .6s ease;
}

.blog-card:hover .blog-card-image img{
    transform:scale(1.08);
}

.blog-tag{
    position:absolute;
    top:14px;
    left:14px;

    padding:6px 14px;
    border-radius:30px;

    font-size:12px;
    font-weight:600;

    color:#fff;
    background:linear-gradient(135deg,#ff8a00,#ff7b00);
    box-shadow:0 6px 18px rgba(255,138,0,.3);
}

.blog-card-body{
    display:flex;
    flex-direction:column;
    gap:14px;
    flex:1;

    padding:26px;
}

.blog-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 14px;

    color:var(--text);
    font-size:13px;
}

.blog-meta i{
    color:var(--primary);
    margin-right:5px;
}

.blog-card-body h3{
    font-family:var(--heading);
    font-size:1.35rem;
    line-height:1.4;
}

.blog-card-body > p{
    color:var(--text);
    line-height:1.75;
    font-size:.95rem;
    flex:1;
}

.blog-card-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-top:auto;
    padding-top:10px;

    border-top:1px solid rgba(255,255,255,.07);
}

.blog-author{
    display:flex;
    align-items:center;
    gap:10px;
}

.blog-author .avatar{
    width:36px;
    height:36px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    font-size:13px;
    font-weight:700;
    color:#fff;

    background:linear-gradient(135deg,#ff8a00,#ff7b00);
}

.blog-author span.name{
    font-size:14px;
    font-weight:500;
    color:var(--white);
}

.read-more{
    display:inline-flex;
    align-items:center;
    gap:6px;

    color:var(--primary);
    font-weight:600;
    font-size:14px;

    transition:var(--transition);
}

.read-more:hover{
    gap:10px;
}

/* Hidden by the category filter */

.blog-card.hide{
    display:none;
}
/* ==========================
   BLOG CONTENT & SPACING FIX
========================== */

.blog-content {
    padding: 10px 0 80px;
}

/* ==========================
   NEWSLETTER
========================== */

.newsletter {
    padding: 40px 0 100px;
}

/* ==========================
   NEWSLETTER
========================== */

.newsletter{
    padding:40px 0 100px;
}

.newsletter-box{
    position:relative;
    overflow:hidden;

    padding:64px 40px;

    text-align:center;
    border-radius:32px;

    background:linear-gradient(
        135deg,
        rgba(255,138,0,.15),
        rgba(255,123,0,.10)
    );
    border:1px solid rgba(255,138,0,.25);

    backdrop-filter:blur(20px);
}

.newsletter-box::before{
    content:"";
    position:absolute;

    width:340px;
    height:340px;

    background:rgba(255,138,0,.18);
    filter:blur(120px);

    top:-120px;
    right:-100px;
}

.newsletter-box h2{
    font-family:var(--heading);
    font-size:2.4rem;
    margin-bottom:14px;
}

.newsletter-box p{
    max-width:560px;
    margin:0 auto;

    color:var(--text);
    line-height:1.8;
}

.newsletter-form{
    display:flex;
    gap:12px;

    max-width:520px;
    margin:28px auto 0;
}

.newsletter-form input{
    flex:1;

    padding:16px 22px;

    border-radius:40px;

    background:rgba(0,0,0,.25);
    border:1px solid rgba(255,255,255,.14);

    color:var(--white);
    font-family:var(--body);
    font-size:15px;

    outline:none;
    transition:var(--transition);
}

.newsletter-form input::placeholder{
    color:rgba(215,215,215,.6);
}

.newsletter-form input:focus{
    border-color:var(--primary);
}

.newsletter-form button{
    padding:16px 30px;

    border:none;
    border-radius:40px;

    cursor:pointer;

    color:#fff;
    font-family:var(--body);
    font-weight:600;
    font-size:15px;

    background:linear-gradient(135deg,#ff8a00,#ff7b00);
    transition:var(--transition);
}

.newsletter-form button:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 30px rgba(255,138,0,.35);
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width:900px){

    .featured-post{
        grid-template-columns:1fr;
    }

    .featured-image{
        min-height:240px;
    }

    .featured-body{
        padding:36px;
    }

    .featured-body h2{
        font-size:1.6rem;
    }
}

@media (max-width:600px){

    .blog-hero{
        padding:140px 0 30px;
    }

    .blog-hero h1{
        font-size:40px;
    }

    .blog-hero p{
        font-size:16px;
    }

    .newsletter-box{
        padding:44px 24px;
    }

    .newsletter-box h2{
        font-size:1.9rem;
    }

    .newsletter-form{
        flex-direction:column;
    }
}
