/* ===== BLOG HERO ===== */
.blog-hero-section{
    position: relative;
    z-index: 0;
    min-height: 55vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=1600&q=80') center center / cover no-repeat;
}
.blog-hero-section .hero-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(6,12,28,.92) 0%,
        rgba(11,23,48,.85) 45%,
        rgba(29,78,216,.75) 100%);
    z-index: -1;
}
.blog-hero-content{
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 12px;
}
.blog-hero-title{
    font-size: clamp(1.7rem, 5.5vw, 52px);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 20px 0;
    text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.blog-hero-title span{
    background: linear-gradient(135deg, #38BDF8, #93C5FD);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.blog-hero-description{
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.8;
    color: #F1F5FB;
    text-shadow: 0 1px 12px rgba(0,0,0,.3);
}


.hero-buttons{
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}
.hero-secondary-btn{
    padding: 14px 25px;
    border-radius: 50px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255,255,255,.4);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}
.hero-secondary-btn:hover{
    background: #fff;
    color: #1D4ED8;
}



/* ===== SECTION BADGE (shared) ===== */
.section-badge-inline{
    display: inline-block; padding: 8px 18px; border-radius: 50px;
    background: #EEF2FF; color: var(--primary-color, #1D4ED8);
    font-size: 13px; font-weight: 700; letter-spacing: .5px; margin-bottom: 18px;
}
.post-category{
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: #EEF2FF; color: var(--primary-color, #1D4ED8);
    font-size: 12px; font-weight: 700; letter-spacing: .5px;
}

/* ===== BLOG GRID ===== */
.blog-grid-section{ padding: 100px 0; background: #F8FAFF; }

.blog-filters{
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 45px;
}
.filter-btn{
    padding: 10px 22px; border-radius: 50px; font-size: 14px; font-weight: 600;
    background: #fff; color: var(--text-color, #64748B); border: 1px solid #E5E7EB;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active{
    background: linear-gradient(135deg,#1D4ED8,#38BDF8);
    color: #fff; border-color: transparent;
}

.blog-card{
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.06); transition: var(--transition); height: 100%;
}
.blog-card:hover{ transform: translateY(-8px); box-shadow: 0 20px 45px rgba(29,78,216,.15); }

.blog-card-image{ position: relative; height: 220px; overflow: hidden; }
.blog-card-image img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: var(--transition); }
.blog-card:hover .blog-card-image img{ transform: scale(1.08); }
.post-category-badge{
    position: absolute; top: 16px; left: 16px;
    background: rgba(6,12,28,.85); color: #fff;
    padding: 6px 14px; border-radius: 50px; font-size: 11px; font-weight: 700;
}

.blog-card-body{ padding: 26px 24px; }
.post-meta{ display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #94A3B8; margin-bottom: 14px; }
.post-meta i{ margin-right: 4px; color: #1D4ED8; }

.blog-card-title{ font-size: 18px; line-height: 1.4; margin-bottom: 10px; color: var(--heading-color, #0B1730); }
.blog-card-excerpt{ font-size: 14px; color: var(--text-color, #64748B); line-height: 1.7; margin-bottom: 18px; }

.read-more-link{
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; padding: 0;
    color: #1D4ED8; font-weight: 700; font-size: 14px; cursor: pointer;
    transition: var(--transition);
}
.read-more-link:hover{ gap: 10px; color: #38BDF8; }

/* ===== POST MODAL ===== */
.post-modal .modal-content{
    border: none; border-radius: 22px; overflow: hidden;
}
.post-modal .modal-header{
    border-bottom: none; padding: 22px 26px 0;
}
.post-modal .modal-body{ padding: 20px 30px 35px; }

.modal-post-image{
    width: 100%; height: 280px; object-fit: cover; border-radius: 16px; margin-bottom: 24px;
}
.modal-post-title{ font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--heading-color, #0B1730); margin-bottom: 12px; }
.modal-post-content{ font-size: 15px; line-height: 1.9; color: var(--text-color, #64748B); }
.modal-post-content p{ margin-bottom: 16px; }

body.dark-mode .post-modal .modal-content{ background: #111827; }
body.dark-mode .modal-post-title{ color: #F8FAFC; }
body.dark-mode .modal-post-content{ color: #94A3B8; }

/* ===== CTA (Contact) ===== */
.cta-section{ padding: 100px 0; }
.cta-wrapper{
    background: linear-gradient(135deg,#1D4ED8,#0B1730);
    padding: 80px 40px; border-radius: 30px; color: #fff;
}
.cta-title{ font-size: clamp(1.6rem, 4.5vw, 48px); margin: 20px 0; color: #fff; line-height: 1.3; }
.cta-title span{ color: #00F5D4; }
.cta-description{ max-width: 650px; margin: 0 auto 35px; opacity: .9; }
.cta-buttons{ display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.hero-primary-btn{
    padding: 14px 30px; border-radius: 50px;
    background: linear-gradient(135deg, #1D4ED8, #38BDF8);
    color: #fff; font-weight: 600; border: none;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.hero-primary-btn:hover{ transform: translateY(-3px); color: #fff; box-shadow: 0 10px 25px rgba(29,78,216,.4); }

/* ===== Responsive ===== */
@media (max-width: 991.98px){
    .blog-hero-section{ padding: 120px 0 60px; min-height: 45vh; }
    .blog-grid-section{ padding: 80px 0; }
    .cta-wrapper{ padding: 60px 30px; text-align: center; }
}
@media (max-width: 575.98px){
    .blog-hero-title{ font-size: 30px; }
    .blog-card-body{ padding: 20px 18px; }
    .modal-post-image{ height: 180px; }
    .post-modal .modal-body{ padding: 16px 18px 25px; }
}