﻿/* =========================================================
   DR. SHYAM SINGH PUBLIC ACADEMY
   BLOG PAGE
   Same Maroon / Gold / Cream / Green Theme
   ========================================================= */

:root {
    --blog-maroon: #6E1423;
    --blog-maroon-dark: #4F0D19;
    --blog-gold: #D9A441;
    --blog-cream: #FBF6EC;
    --blog-green: #1F4B3F;
    --blog-dark: #2A2320;
    --blog-muted: #6D625C;
    --blog-white: #FFFFFF;
    --blog-border: rgba(110, 20, 35, 0.12);
}


/* =========================================================
   COMMON
   ========================================================= */

.blog-hero *,
.featured-section *,
.blog-categories *,
.blog-grid-section *,
.latest-section *,
.blog-cta * {
    box-sizing: border-box;
}

.blog-hero a,
.featured-section a,
.blog-categories a,
.blog-grid-section a,
.latest-section a,
.blog-cta a {
    text-decoration: none;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    color: var(--blog-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 55px;
}

    .section-heading h2,
    .category-heading h2,
    .latest-heading h2,
    .blog-cta-card h2 {
        font-family: Georgia, "Times New Roman", serif;
        line-height: 1.15;
    }

    .section-heading h2 {
        font-size: clamp(36px, 4vw, 52px);
        color: var(--blog-dark);
        margin: 0;
    }

        .section-heading h2 span,
        .category-heading h2 span,
        .latest-heading h2 span,
        .blog-cta-card h2 span {
            color: var(--blog-maroon);
        }


/* =========================================================
   HERO
   ========================================================= */

.blog-hero {
    position: relative;
    height: 590px;
    overflow: hidden;
    background: var(--blog-maroon-dark);
}

.blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.2s ease;
}

.blog-hero:hover .blog-hero-img {
    transform: scale(1.025);
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(48, 7, 16, 0.92), rgba(79, 13, 25, 0.65) 45%, rgba(79, 13, 25, 0.18) );
}

.blog-hero-content {
    position: absolute;
    z-index: 2;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 690px;
    color: white;
}

.blog-kicker {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid rgba(217,164,65,0.75);
    color: #F3D58F;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    background: rgba(110,20,35,0.3);
    margin-bottom: 22px;
}

.blog-hero-content h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(47px, 6vw, 76px);
    line-height: 1;
    margin: 0 0 24px;
    color: white;
}

    .blog-hero-content h1 span {
        display: block;
        color: #F0C96E;
    }

.blog-hero-content p {
    max-width: 610px;
    color: rgba(255,255,255,0.88);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.blog-hero-btn,
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 14px 22px;
    background: var(--blog-gold);
    color: var(--blog-dark);
    font-weight: 800;
    transition: 0.3s ease;
}

    .blog-hero-btn:hover,
    .cta-btn:hover {
        background: white;
        color: var(--blog-maroon);
        transform: translateY(-3px);
    }


/* =========================================================
   FEATURED STORY
   ========================================================= */

.featured-section {
    background: var(--blog-cream);
    padding: 105px 0;
}

.featured-blog {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: white;
    box-shadow: 0 25px 65px rgba(42,35,32,0.11);
    border: 1px solid var(--blog-border);
    overflow: hidden;
}

.featured-image {
    position: relative;
    min-height: 550px;
    overflow: hidden;
}

    .featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s ease;
    }

.featured-blog:hover .featured-image img {
    transform: scale(1.045);
}

.featured-image-label {
    position: absolute;
    left: 25px;
    bottom: 25px;
    background: var(--blog-maroon);
    color: white;
    padding: 10px 15px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.featured-content {
    padding: 60px 55px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    color: var(--blog-maroon);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.featured-content h3 {
    color: var(--blog-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.15;
    margin: 0 0 22px;
}

.featured-content p {
    color: var(--blog-muted);
    line-height: 1.85;
    margin-bottom: 14px;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0 28px;
}

    .featured-meta span {
        padding: 8px 11px;
        background: var(--blog-cream);
        color: var(--blog-green);
        font-size: 11px;
        font-weight: 700;
    }

.read-story {
    color: var(--blog-maroon);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

    .read-story:hover {
        color: var(--blog-gold);
    }


/* =========================================================
   CATEGORIES
   ========================================================= */

.blog-categories {
    padding: 85px 0 45px;
    background: white;
}

.category-heading {
    text-align: center;
}

    .category-heading h2 {
        color: var(--blog-dark);
        font-size: clamp(34px, 4vw, 48px);
        margin: 0 0 35px;
    }

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    padding: 11px 18px;
    border: 1px solid var(--blog-border);
    color: var(--blog-dark);
    background: var(--blog-cream);
    font-size: 13px;
    font-weight: 700;
    transition: 0.25s ease;
}

    .category-btn:hover,
    .category-btn.active {
        background: var(--blog-maroon);
        color: white;
        border-color: var(--blog-maroon);
    }


/* =========================================================
   BLOG GRID
   ========================================================= */

.blog-grid-section {
    background: white;
    padding: 45px 0 110px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--blog-cream);
    border: 1px solid var(--blog-border);
    overflow: hidden;
    transition: 0.35s ease;
}

    .blog-card:hover {
        transform: translateY(-9px);
        box-shadow: 0 22px 45px rgba(42,35,32,0.12);
    }

.blog-card-image {
    height: 245px;
    position: relative;
    overflow: hidden;
}

    .blog-card-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.55s ease;
    }

.blog-card:hover .blog-card-image img {
    transform: scale(1.07);
}

.blog-number {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blog-maroon);
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.blog-card-category {
    position: absolute;
    right: 16px;
    top: 16px;
    background: var(--blog-gold);
    color: var(--blog-dark);
    padding: 8px 10px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.blog-card-content {
    padding: 27px 27px 25px;
}

.small-category {
    color: var(--blog-maroon);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-card-content h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--blog-dark);
    font-size: 25px;
    line-height: 1.25;
    margin: 10px 0 13px;
}

.blog-card-content p {
    color: var(--blog-muted);
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid var(--blog-border);
}

    .blog-card-footer span {
        color: var(--blog-green);
        font-size: 11px;
        font-weight: 700;
    }

    .blog-card-footer a {
        color: var(--blog-maroon);
        font-size: 12px;
        font-weight: 800;
    }

        .blog-card-footer a:hover {
            color: var(--blog-gold);
        }


/* =========================================================
   LATEST STORIES
   ========================================================= */

.latest-section {
    background: var(--blog-green);
    padding: 100px 0;
}

.latest-heading {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    align-items: end;
    gap: 60px;
    margin-bottom: 45px;
}

    .latest-heading h2 {
        color: white;
        font-size: clamp(35px, 4vw, 52px);
        margin: 0;
    }

        .latest-heading h2 span {
            color: #F0C96E;
        }

    .latest-heading p {
        color: rgba(255,255,255,0.76);
        line-height: 1.8;
        margin: 0;
    }

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.latest-item {
    background: white;
    overflow: hidden;
    transition: 0.3s ease;
}

    .latest-item:hover {
        transform: translateY(-7px);
    }

.latest-image {
    height: 220px;
    overflow: hidden;
}

    .latest-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

.latest-item:hover .latest-image img {
    transform: scale(1.07);
}

.latest-content {
    padding: 25px;
}

    .latest-content > span {
        color: var(--blog-maroon);
        font-size: 10px;
        letter-spacing: 1.5px;
        font-weight: 900;
    }

    .latest-content h3 {
        color: var(--blog-dark);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 22px;
        line-height: 1.3;
        margin: 10px 0 18px;
    }

    .latest-content a {
        color: var(--blog-maroon);
        font-size: 12px;
        font-weight: 800;
    }


/* =========================================================
   CTA
   ========================================================= */

.blog-cta {
    background: var(--blog-cream);
    padding: 100px 0;
}

.blog-cta-card {
    position: relative;
    text-align: center;
    padding: 70px 30px;
    background: white;
    border: 1px solid var(--blog-border);
    box-shadow: 0 20px 55px rgba(42,35,32,0.08);
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient( 90deg, var(--blog-maroon), var(--blog-gold), var(--blog-green) );
}

.blog-cta-card h2 {
    color: var(--blog-dark);
    font-size: clamp(35px, 4vw, 52px);
    margin: 0 0 20px;
}

.blog-cta-card p {
    color: var(--blog-muted);
    max-width: 650px;
    margin: 0 auto 28px;
    line-height: 1.8;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

    .featured-blog {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 400px;
    }

    .blog-grid,
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


@media (max-width: 650px) {

    .blog-hero {
        height: 570px;
    }

    .blog-hero-content {
        left: 7%;
        right: 7%;
    }

        .blog-hero-content h1 {
            font-size: 47px;
        }

        .blog-hero-content p {
            font-size: 15px;
        }

    .featured-section,
    .blog-grid-section,
    .latest-section,
    .blog-cta {
        padding: 75px 0;
    }

    .featured-content {
        padding: 38px 27px;
    }

    .featured-image {
        min-height: 320px;
    }

    .blog-grid,
    .latest-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        height: 250px;
    }

    .category-list {
        padding: 0 10px;
    }

    .category-btn {
        font-size: 12px;
    }
}
