﻿/* -----------------------------------------------------------
   Defend.IT Systems – Blog Styles
   blog.css
----------------------------------------------------------- */

/* ------------------------------
   BLOG PAGE WRAPPER
------------------------------ */
.blog-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}
.blog-section-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
}
/* ------------------------------
   HERO SECTION (BLOG INDEX)
------------------------------ */
.blog-hero-section {
    background: var(--brand-primary);
    padding: 3rem 1rem 4rem;
    text-align: center;
    border-radius: 0 0 18px 18px;
}

.blog-hero-inner h1 {
    max-width: 800px;
    margin: 0 auto .5rem;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-light);
    line-height: 1.3;
}

.blog-hero-inner p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
}

/* ------------------------------
   FEATURED POST WRAPPER
------------------------------ */
.featured-wrapper {
    max-width: 1100px;
    margin: -2rem auto 3rem;
    padding: 0 1rem;
}


.section-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-light);
    margin-bottom: 1.5rem;
}

/* ------------------------------
   BLOG GRID
------------------------------ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

/* ------------------------------
   BLOG CARD
------------------------------ */
.blog-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.4rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all .28s ease;
    position: relative;
    overflow: hidden;
}
/* Overlap hero image (same pattern as featured post) */
.overlap-hero {
    max-width: 900px;
    margin: -3rem auto 2rem; /* pulls image upward */
    position: relative;
    z-index: 10;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}


    /* Glassy top accent */
    .blog-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 4px;
        width: 100%;
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
        opacity: .65;
    }

    /* Hover */
    .blog-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.12);
        border-color: rgba(0,0,0,0.12);
    }

/* Card Image */
.blog-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f3f3f3;
}

    .blog-card-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s ease;
    }

.blog-card:hover img {
    transform: scale(1.05);
}

/* Card Title */
.blog-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111;
    margin-bottom: .45rem;
    line-height: 1.3;
    text-decoration: none;
}

    .blog-card-title:hover {
        color: var(--brand-primary);
    }

/* Card Meta */
.blog-card-meta {
    font-size: .85rem;
    color: #666;
    margin-bottom: .9rem;
    font-weight: 500;
}

/* Card Excerpt */
.blog-card-excerpt {
    color: #333;
    font-size: 1rem;
    line-height: 1.55;
}

/* Read More */
.blog-card-readmore {
    display: inline-block;
    margin-top: .8rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    transition: opacity .2s ease;
}

    .blog-card-readmore:hover {
        opacity: .7;
    }

/* ------------------------------
   FEATURED POST CARD
------------------------------ */
.featured-post-card {
    background: linear-gradient(180deg, #ffffff, #f7f9ff);
    border-radius: 18px;
    padding: 1.4rem;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    transition: all .3s ease;
}

    .featured-post-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.16);
    }

/* Featured Title */
.featured-post-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #111;
    margin-bottom: .45rem;
    line-height: 1.3;
}

    .featured-post-title a {
        color: #111;
        text-decoration: none;
    }

        .featured-post-title a:hover {
            color: var(--brand-primary);
        }

/* Featured Meta */
.featured-post-meta {
    font-size: .95rem;
    color: #666;
    margin-bottom: 1.2rem;
}

/* Featured Excerpt */
.featured-post-excerpt {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.65;
}

/* ------------------------------
   BLOG POST PAGE (DETAIL VIEW)
------------------------------ */
.blog-post-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* Hero */
.blog-post-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

    .blog-post-hero h1 {
        font-size: 2.4rem;
        font-weight: 900;
        line-height: 1.25;
        margin-bottom: .8rem;
        color: #111;
    }

.blog-post-meta {
    font-size: .95rem;
    color: #666;
    margin-bottom: 1.6rem;
    font-weight: 500;
}

/* Hero Image */
.blog-post-hero-image,
.blog-image-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f3f3;
}

    .blog-post-hero-image img,
    .blog-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Content */
.blog-post-content {
    
    margin: 2.5rem auto;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #222;
}

    .blog-post-content h2,
    .blog-post-content h3 {
        margin-top: 2.2rem;
        margin-bottom: 1rem;
        font-weight: 800;
        line-height: 1.3;
    }

    .blog-post-content p {
        margin-bottom: 1.4rem;
    }


