/* ==================================================
DM HEALTH TECHNOLOGY
BLOG PREMIUM 2026
================================================== */

/* ==========================================
HERO
========================================== */

.blog-hero{
    position:relative;

    padding:100px 0 80px;

    background:
        linear-gradient(
            135deg,
            #071827 0%,
            #0b2740 50%,
            #123a5a 100%
        );

    color:#fff;

    overflow:hidden;
}

.blog-hero::before{
    content:"";

    position:absolute;
    inset:0;

    background:
        radial-gradient(
            circle at top right,
            rgba(0,214,255,.10),
            transparent 35%
        );

    pointer-events:none;
}

.blog-badge{
    display:inline-flex;

    padding:10px 20px;

    border-radius:50px;

    background:
        rgba(255,255,255,.08);

    border:
        1px solid rgba(255,255,255,.12);

    backdrop-filter:blur(10px);

    margin-bottom:20px;

    font-size:.9rem;

    font-weight:600;
}

.blog-hero h1{
    font-size:clamp(2.5rem,5vw,4rem);

    font-weight:800;

    margin-bottom:20px;
}

.blog-hero p{
    max-width:850px;

    margin:auto;

    color:rgba(255,255,255,.85);

    font-size:1.1rem;

    line-height:1.9;
}

/* ==========================================
SEARCH
========================================== */

.blog-search{
    margin-top:-40px;
    position:relative;
    z-index:10;
}

.search-box{
    display:flex;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:
        0 20px 60px rgba(0,0,0,.08);
}

.search-box input{
    flex:1;

    border:none;

    padding:20px 25px;

    outline:none;

    font-size:1rem;
}

.search-box button{
    border:none;

    width:70px;

    background:
        linear-gradient(
            135deg,
            #00c6ff,
            #00d89f
        );

    color:#fff;

    cursor:pointer;

    transition:.3s;
}

.search-box button:hover{
    opacity:.9;
}

/* ==========================================
FILTERS
========================================== */

.blog-filters{
    padding:40px 0 10px;
}

.filter-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:12px;

    justify-content:center;
}

.filter-buttons a{
    text-decoration:none;

    padding:10px 20px;

    border-radius:50px;

    background:#f5f8fb;

    color:#18344d;

    font-weight:600;

    transition:.3s;
}

.filter-buttons a:hover,
.filter-buttons a.active{
    background:
    linear-gradient(
        135deg,
        #00c6ff,
        #00d89f
    );

    color:#fff;
}

/* ==========================================
   CONTENT
========================================== */

.blog-content {
    padding: 70px 0 100px;
}

/* ==========================================
   CARD
========================================== */

.blog-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 12px 40px rgba(15, 23, 42, .06);
    transition: transform .4s ease, box-shadow .4s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, .12);
}

/* ==========================================
   FEATURED BADGE
========================================== */

.featured-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, #00c6ff, #00d89f);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 198, 255, .30);
}

/* ==========================================
   IMAGE
========================================== */

.blog-image {
    position: relative;
    display: block;
    overflow: hidden;
    height: 320px;
    background: #eef3f8;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .8s ease, filter .5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.06);
}

.blog-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .12),
        transparent 40%
    );
    opacity: 0;
    transition: .4s;
}

.blog-card:hover .blog-image::after {
    opacity: 1;
}

/* ==========================================
   BODY
========================================== */

.blog-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px;
}

/* ==========================================
   META
========================================== */

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: .85rem;
    color: #6b7280;
}

.blog-meta span:first-child {
    color: #00a6ff;
    font-weight: 700;
}

/* ==========================================
   TITLE
========================================== */

.blog-body h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.4;
}

.blog-body h3 a {
    color: #0f172a;
    text-decoration: none;
    transition: .3s;
}

.blog-body h3 a:hover {
    color: #00a6ff;
}

/* ==========================================
   DESCRIPTION
========================================== */

.blog-body p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* ==========================================
   FOOTER
========================================== */

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, .06);
}

.blog-stats {
    display: flex;
    gap: 16px;
    color: #64748b;
    font-size: .9rem;
}

.blog-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00a6ff;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
}

.blog-link:hover {
    gap: 12px;
    color: #008fe0;
}

/* ==========================================
   EMPTY STATE
========================================== */

.empty-content {
    text-align: center;
    padding: 90px 40px;
    background: #fff;
    border-radius: 30px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 15px 50px rgba(15, 23, 42, .05);
}

.empty-content i {
    font-size: 4rem;
    color: #00a6ff;
    margin-bottom: 20px;
}

.empty-content h3 {
    font-weight: 800;
    margin-bottom: 10px;
}

/* ==========================================
   NEWSLETTER
========================================== */

.blog-newsletter {
    padding: 20px 0 120px;
}

.newsletter-box {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 80px 50px;
    border-radius: 36px;
    background: linear-gradient(135deg, #071827, #123a5a);
    color: #fff;
    box-shadow: 0 30px 80px rgba(7, 24, 39, .25);
}

.newsletter-box::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(0, 214, 255, .08);
    top: -120px;
    right: -120px;
}

.newsletter-box h2 {
    position: relative;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.newsletter-box p {
    position: relative;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 35px;
    line-height: 1.8;
}

.newsletter-box form {
    position: relative;
    display: flex;
    gap: 15px;
    max-width: 720px;
    margin: auto;
}

.newsletter-box input {
    flex: 1;
    border: none;
    border-radius: 16px;
    padding: 18px 22px;
    outline: none;
    font-size: 1rem;
}

.newsletter-box button {
    border: none;
    padding: 18px 32px;
    border-radius: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #00c6ff, #00d89f);
    color: #fff;
    transition: .3s;
}

.newsletter-box button:hover {
    transform: translateY(-3px);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 992px) {

    .blog-image {
        height: 280px;
    }

    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-box form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    .blog-hero h1 {
        font-size: 2.2rem;
    }

    .blog-image {
        height: 250px;
    }

    .blog-body {
        padding: 22px;
    }

    .newsletter-box {
        padding: 60px 25px;
    }
}

@media (max-width: 576px) {

    .blog-image {
        height: 220px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-box h2 {
        font-size: 1.8rem;
    }
}