/* =========================================================
   PREMIUM BLOG PAGE CSS
   Maximum Joy Foundation
========================================================= */

.blog-page {
    position: relative;
    background: #f5f7fb;
    overflow: hidden;
}

/* =========================================================
   HERO
========================================================= */

.page-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(0,0,0,0.82),
            rgba(0,0,0,0.55)
        );
    z-index: 1;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,0.08),
            transparent 40%
        );
    z-index: 2;
}

.page-hero__content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    padding: 120px 0;
    color: #fff;
}

.page-hero__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 10px 18px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.page-hero__title {
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 24px;
    color: #fff;
}

.page-hero__text {
    font-size: 18px;
    line-height: 1.9;
    max-width: 650px;
    opacity: 0.92;
}

/* =========================================================
   FEATURED BLOG
========================================================= */

.featured-blog-section {
    position: relative;
    margin-top: -90px;
    z-index: 20;
    padding-bottom: 40px;
}

.featured-blog-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 15px 50px rgba(0,0,0,0.08);
}

.featured-blog-image {
    position: relative;
    overflow: hidden;
}

.featured-blog-image img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.featured-blog-grid:hover .featured-blog-image img {
    transform: scale(1.05);
}

.featured-blog-content {
    padding: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    display: inline-flex;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.featured-category {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 20px;
    color: #0d9488;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.featured-blog-content h2 {
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-blog-content h2 a {
    color: #111827;
    text-decoration: none;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    transition: color .3s ease;
}

.featured-blog-content h2 a:hover {
    color: #0d9488;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 15px;
}

.featured-meta i {
    margin-right: 8px;
    color: #0d9488;
}

.featured-blog-content p {
    font-size: 18px;
    line-height: 1.9;
    color: #4b5563;
    margin-bottom: 35px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 16px 30px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #0d9488,
        #14b8a6
    );
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: all .35s ease;
    box-shadow:
        0 10px 25px rgba(13,148,136,0.25);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 35px rgba(13,148,136,0.35);
}

/* =========================================================
   CATEGORY FILTER
========================================================= */

.blog-categories {
    padding: 40px 0 10px;
}

.blog-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.category-btn {
    border: none;
    outline: none;
    padding: 14px 24px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    font-weight: 600;
    transition: all .3s ease;
    box-shadow:
        0 5px 18px rgba(0,0,0,0.05);
}

.category-btn span {
    opacity: .7;
    margin-left: 6px;
}

.category-btn:hover,
.category-btn.active {
    background: #0d9488;
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================================
   BLOG GRID
========================================================= */

.blog-grid-section {
    padding: 70px 0 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

/* =========================================================
   BLOG CARD
========================================================= */

.blog-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: all .4s ease;
    box-shadow:
        0 10px 35px rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.12);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
}

.blog-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.3),
            transparent
        );
    opacity: 0;
    transition: opacity .4s ease;
}

.blog-card:hover .blog-card-image::after {
    opacity: 1;
}

.blog-card-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .7s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-content {
    padding: 30px;
}

.blog-card-category {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(13,148,136,0.1);
    color: #0d9488;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.blog-card-title {
    margin-bottom: 18px;
    line-height: 1.35;
}

.blog-card-title a {
    color: #111827;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    transition: color .3s ease;
}

.blog-card-title a:hover {
    color: #0d9488;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #6b7280;
}

.blog-card-meta i {
    color: #0d9488;
    margin-right: 6px;
}

.blog-card-excerpt {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 15px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0d9488;
    font-weight: 700;
    transition: all .3s ease;
}

.blog-read-more i {
    transition: transform .3s ease;
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    text-align: center;
    padding: 100px 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.05);
}

.empty-state h3 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #111827;
}

.empty-state p {
    color: #6b7280;
    font-size: 17px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-blog-content {
        padding: 50px;
    }
}

@media (max-width: 992px) {

    .featured-blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-blog-image img {
        min-height: 400px;
    }

    .featured-blog-content {
        padding: 40px;
    }

    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .page-hero {
        min-height: 60vh;
    }

    .page-hero__content {
        padding: 100px 0 80px;
    }

    .featured-blog-section {
        margin-top: -40px;
    }

    .featured-blog-content {
        padding: 30px;
    }

    .featured-blog-content h2 a {
        font-size: 32px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card-content {
        padding: 24px;
    }

    .blog-category-list {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .blog-category-list::-webkit-scrollbar {
        height: 6px;
    }

    .blog-category-list::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.15);
        border-radius: 20px;
    }
}

@media (max-width: 480px) {

    .page-hero__title {
        font-size: 42px;
    }

    .page-hero__text {
        font-size: 16px;
    }

    .featured-blog-content h2 a {
        font-size: 28px;
    }

    .featured-blog-content p {
        font-size: 16px;
    }

    .blog-card-title a {
        font-size: 22px;
    }
}

/* =========================================================
   BLOG SYSTEM — PREMIUM ENTERPRISE UI
========================================================= */

/* =========================================================
   BLOG HERO
========================================================= */

.blog-single-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    padding: 140px 0 90px;
}

.blog-single-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.88) 0%,
            rgba(0,0,0,0.55) 45%,
            rgba(0,0,0,0.20) 100%
        );
}

.blog-single-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    color: #fff;
}

.blog-single-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.blog-single-hero h1 {
    font-size: 3.5rem;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 24px;
    color: #fff;
}

.blog-single-hero p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.92);
    max-width: 760px;
}

/* =========================================================
   BLOG META
========================================================= */

.blog-meta-section {
    position: relative;
    z-index: 10;
    margin-top: -45px;
    margin-bottom: 60px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 24px 30px;
    background: #fff;
    border-radius: 24px;
    box-shadow:
        0 10px 35px rgba(0,0,0,0.06),
        0 2px 10px rgba(0,0,0,0.03);
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
}

.blog-meta i {
    color: var(--primary-color, #0ea5e9);
}

/* =========================================================
   BLOG CONTENT
========================================================= */

.blog-content-section {
    padding: 30px 0 120px;
}

.blog-content-section .container {
    max-width: 900px;
}

.blog-intro {
    margin-bottom: 55px;
}

.blog-intro p {
    font-size: 1.3rem;
    line-height: 2;
    color: #374151;
    font-weight: 500;
}

/* =========================================================
   TEXT BLOCK
========================================================= */

.blog-text-block {
    margin-bottom: 38px;
}

.blog-text-block p {
    font-size: 1.08rem;
    line-height: 2.05;
    color: #374151;
}

/* =========================================================
   HEADING
========================================================= */

.blog-heading {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.3;
    font-weight: 800;
    color: #111827;
    margin: 10px 0 28px;
}

/* =========================================================
   IMAGE BLOCK
========================================================= */

.blog-image-block {
    margin: 60px 0;
}

.blog-image-block img {
    width: 100%;
    border-radius: 28px;
    display: block;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.08),
        0 4px 12px rgba(0,0,0,0.04);
}

.blog-image-block figcaption {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

/* =========================================================
   QUOTE BLOCK
========================================================= */

.blog-quote {
    position: relative;
    margin: 70px 0;
    padding: 45px 50px;
    border-radius: 30px;
    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef6ff
        );
    border-left: 6px solid var(--primary-color, #0ea5e9);
    font-size: 1.4rem;
    line-height: 1.8;
    font-weight: 700;
    color: #111827;
    box-shadow:
        0 12px 30px rgba(0,0,0,0.04);
}

.blog-quote::before {
    content: "“";
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 7rem;
    color: rgba(14,165,233,0.12);
    font-family: serif;
}

/* =========================================================
   CTA BLOCK
========================================================= */

.blog-cta {
    position: relative;
    overflow: hidden;
    margin-top: 90px;
    padding: 70px 50px;
    border-radius: 36px;
    background:
        linear-gradient(
            135deg,
            #0f172a,
            #111827
        );
    color: #fff;
    text-align: center;
}

.blog-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,0.12),
            transparent 35%
        );
}

.blog-cta h3 {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.blog-cta p {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto 35px;
    color: rgba(255,255,255,0.88);
    line-height: 1.9;
    font-size: 1.05rem;
}

.blog-cta-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    transition: all .35s ease;
}

.blog-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow:
        0 15px 30px rgba(255,255,255,0.18);
}

/* =========================================================
   FEATURED BLOG
========================================================= */

.featured-blog-section {
    padding: 110px 0 70px;
}

.featured-blog-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 55px;
    align-items: center;
}

.featured-blog-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 36px;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.10);
}

.featured-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(14,165,233,0.12);
    color: var(--primary-color, #0ea5e9);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-category {
    display: block;
    margin-bottom: 18px;
    color: #6b7280;
    font-weight: 700;
}

.featured-blog-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 22px;
}

.featured-blog-content h2 a {
    color: #111827;
    text-decoration: none;
}

.featured-blog-content p {
    font-size: 1.08rem;
    line-height: 2;
    color: #4b5563;
    margin-bottom: 35px;
}

.featured-meta {
    margin-bottom: 22px;
    color: #6b7280;
    font-weight: 600;
}

/* =========================================================
   BLOG GRID
========================================================= */

.blog-grid-section {
    padding: 60px 0 120px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.blog-card {
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    transition: all .4s ease;
    box-shadow:
        0 12px 30px rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 30px 60px rgba(0,0,0,0.10);
}

.blog-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.blog-card .blog-content {
    padding: 30px;
}

.blog-category {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary-color, #0ea5e9);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-card h3 {
    margin-bottom: 18px;
    font-size: 1.45rem;
    line-height: 1.45;
}

.blog-card h3 a {
    color: #111827;
    text-decoration: none;
}

.blog-card .blog-meta {
    margin-bottom: 18px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    color: #6b7280;
}

.blog-excerpt {
    color: #4b5563;
    line-height: 1.9;
    margin-bottom: 24px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
}

section.blog-share {
    text-align: center;
    margin-top: 40px;
    background: rgb(232 239 231);
    padding: 40px;
    border-radius: 30px;
}

/* =========================================================
   BUTTON
========================================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 999px;
    background: var(--primary-color, #007939);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: all .35s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .featured-blog-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-blog-image img {
        height: 450px;
    }
}

@media (max-width: 768px) {

    .blog-single-hero {
        min-height: 65vh;
        padding: 120px 0 70px;
    }

    .blog-single-hero h1 {
        font-size: 2.5rem;
    }

    .blog-meta {
        padding: 22px;
        gap: 14px;
    }

    .blog-quote {
        padding: 35px 28px;
        font-size: 1.1rem;
    }

    .blog-cta {
        padding: 50px 28px;
    }

    .featured-blog-image img {
        height: 320px;
    }

    .blog-card .blog-content {
        padding: 24px;
    }
}