/* ==========================================================================
   BLOG LISTING & ARTICLE SCREENS - MODERN RESPONSIVE STYLING
   ========================================================================== */

/* Hero Banner & Layout */
.page-heading-sec {
    position: relative;
    padding-top: 145px !important;
    padding-bottom: 70px !important;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.page-headings h1 {
    font-size: clamp(26px, 3.8vw, 44px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #0f172a !important;
    letter-spacing: -0.5px !important;
}

.page-headings p.lead {
    font-size: clamp(14px, 1.6vw, 17px) !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    margin-bottom: 0 !important;
}

/* Subscription Card */
.ree-subs-from {
    background: #0f172a !important;
    border: 1px solid rgba(111, 179, 73, 0.35) !important;
    border-radius: 20px !important;
    padding: 28px 24px !important;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}

.newsletter-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 5px 6px 5px 14px;
    position: relative;
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: #6fb349;
    box-shadow: 0 0 0 3px rgba(111, 179, 73, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-input-group .input-icon {
    color: #94a3b8;
    font-size: 15px;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.newsletter-input-group .news-input-modern {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
    flex: 1;
    min-width: 0;
}

.newsletter-input-group .news-input-modern::placeholder {
    color: #94a3b8;
}

.newsletter-btn-modern {
    background: linear-gradient(135deg, #6fb349 0%, #86cb5e 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.newsletter-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(111, 179, 73, 0.45);
}

/* Category Filter Pills */
.filter-category-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.category-pill {
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    text-decoration: none;
}

.category-pill.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(111, 179, 73, 0.35);
}

.category-pill:not(.active) {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.category-pill:not(.active):hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-2px);
}

/* Modern Blog Cards */
.blog-block {
    background: #ffffff;
}

.ree-media-crd {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.ree-media-crd:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12) !important;
    border-color: #cbd5e1 !important;
}

.ree-media-crd .rpl-img {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.ree-media-crd .rpl-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ree-media-crd:hover .rpl-img img {
    transform: scale(1.05);
}

.blog-cat-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.88);
    color: #86cb5e;
    border: 1px solid rgba(111, 179, 73, 0.4);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
}

.rpl-contt {
    padding: 24px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-quick-inf {
    font-size: 12px;
    font-weight: 600;
}

.rpl-contt h4 {
    font-size: 17.5px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}

.rpl-contt h4 a {
    color: #0f172a;
    transition: color 0.2s ease;
}

.rpl-contt h4 a:hover {
    color: var(--primary-color);
}

.rpl-contt p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 22px;
    margin-bottom: 18px;
    flex: 1;
}

.author-block {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile, Tablet, Desktop)
   ========================================================================== */
@media (max-width: 991px) {
    .page-heading-sec {
        padding-top: 25px !important;
        padding-bottom: 50px !important;
    }
    .page-headings {
        text-align: center;
        margin-bottom: 25px;
    }
    .page-headings p.lead {
        margin: 0 auto;
    }
    .ree-subs-from {
        max-width: 540px;
        margin: 20px auto 0 auto !important;
    }
    .filter-category-pills {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 8px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filter-category-pills::-webkit-scrollbar {
        display: none;
    }
    .category-pill {
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .page-heading-sec {
        padding-top: 20px !important;
        padding-bottom: 40px !important;
    }
    .ree-subs-from {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }
    .newsletter-input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 10px;
    }
    .newsletter-input-group:focus-within {
        box-shadow: none;
        background: transparent;
    }
    .newsletter-input-group .input-icon {
        display: none;
    }
    .newsletter-input-group .news-input-modern {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        padding: 12px 14px;
        width: 100%;
        text-align: center;
    }
    .newsletter-btn-modern {
        width: 100%;
        justify-content: center;
        padding: 12px;
        border-radius: 10px;
    }
    .ree-media-crd .rpl-img {
        height: 185px;
    }
    .rpl-contt {
        padding: 20px 16px;
    }
    .rpl-contt h4 {
        font-size: 16px;
    }
}