/* =====================================================
   BLOG HERO
===================================================== */

.blog-hero {
    position: relative;
}

.blog-hero-image {
    min-height: clamp(650px, 100vh, 900px);
    max-height: 100vh;

    background:
        linear-gradient(rgba(255, 248, 244, 0.10),
            rgba(255, 248, 244, 0.08)),
        url('../img/blog-hero.jpg') center center / cover no-repeat;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 120px 20px;

    pointer-events: none;
}

/* =====================================================
   UNIFIED GLASS CARD
===================================================== */

.blog-hero-content {
    pointer-events: auto;

    width: 100%;
    max-width: 920px;

    padding: 55px 40px;

    border-radius: 34px;

    background: rgba(255, 255, 255, 0.341);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.28);

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.22);
}

.blog-hero-title {
    font-size: clamp(46px, 5vw, 64px);

    color: #1a4144;

    font-weight: 500;

    display: inline-block;

    margin: 0;
}

/* SAME underline as About */

.blog-hero-title::after {

    content: "";

    display: block;

    width: 80px;
    height: 6px;

    margin: 20px auto 0;

    background:
        linear-gradient(#1a4144, #1a4144) top center / 60px 2px no-repeat,
        linear-gradient(#1a4144, #1a4144) bottom center / 30px 2px no-repeat;
}

.blog-hero-subtitle {
    max-width: 760px;

    margin: 38px auto 0;

    font-size: 24px;
    line-height: 1.9;

    color: #1a4144;

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.25);
}

/* =====================================================
BLOG SECTION (PLAYFUL LIKE ABOUT)
===================================================== */

.blog-list-section {
    padding: 140px 20px;
    background: linear-gradient(180deg, #e8cfcf 0%, #f7e7e7 100%);
}

.blog-wrapper {
    max-width: 2560px;
    margin: 0 48px;
    position: relative;
}

/* 🔥 BACKGROUND GLOW (same as about) */
.blog-wrapper::before {
    content: "";
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 189, 89, 0.30), transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(0, 151, 178, 0.22), transparent 46%),
        radial-gradient(circle at 40% 85%, rgba(47, 94, 98, 0.18), transparent 48%);
    pointer-events: none;
}


/* =====================================================
CONNECTED GRID
===================================================== */

.blog-connected-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;

    border-radius: 34px;
    overflow: hidden;

    box-shadow:
        0 40px 110px rgba(0, 0, 0, 0.12);
}


/* =====================================================
CARD (SAME SYSTEM AS ABOUT)
===================================================== */

.blog-pill {
    background: rgba(255, 255, 255, 0.94);

    border-right: 1px solid rgba(47, 94, 98, 0.14);
    border-bottom: 1px solid rgba(47, 94, 98, 0.14);

    transition: transform .25s ease, background .25s ease;
    overflow: visible;
}

.blog-pill:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.98);
}

/* remove right border on last column */
.blog-pill:nth-child(3n) {
    border-right: none;
}


/* =====================================================
TOP COLOR BAR
===================================================== */

.blog-pill::before {
    content: "";
    display: block;
    height: 6px;
    width: 100%;
    background: #FFBD59;
}

.blog-pill:nth-child(2)::before,
.blog-pill:nth-child(5)::before {
    background: #0097B2;
}

.blog-pill:nth-child(3)::before,
.blog-pill:nth-child(6)::before {
    background: #2f5e62;
}


/* =====================================================
IMAGE
===================================================== */

.pill-image {

    width: 100%;
    height: 240px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f8f3f3;
}

.pill-image img {

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transition: transform .4s ease;
}

.blog-pill:hover .pill-image img {
    transform: scale(1.05);
}


/* =====================================================
DOT
===================================================== */

.pill-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FFBD59;

    margin: 36px auto 14px;

    box-shadow:
        0 8px 20px rgba(255, 189, 89, 0.35);
}

/* alternate dot colors */
.blog-pill:nth-child(2) .pill-dot,
.blog-pill:nth-child(5) .pill-dot {
    background: #0097B2;
}

.blog-pill:nth-child(3) .pill-dot,
.blog-pill:nth-child(6) .pill-dot {
    background: #2f5e62;
}


/* =====================================================
CONTENT
===================================================== */

.pill-content {
    padding: 28px 26px 30px;
    /* 🔥 tighter sides */
    text-align: center;
}

.blog-date {
    font-size: 14px;
    color: #888;
    display: block;
    margin-bottom: 12px;
}

.blog-pill h3 {
    font-size: 28px;
    font-weight: 500;
    color: #2f5e62;
    margin-bottom: 14px;
}

.blog-pill h3 a {
    text-decoration: none;
    color: inherit;
}

.blog-pill p {
    font-size: 21px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
}


/* =====================================================
RESPONSIVE
===================================================== */

@media (max-width: 992px) {

    .blog-connected-grid {
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    .blog-pill {
        border-right: none;
    }

    .pill-image {
        height: 200px;
    }

}


/* =====================================================
CTA
===================================================== */

.blog-cta-section {
    padding: 70px 20px;
    /* 🔥 add top space */
    background: #fddca3;
    text-align: center;

}

.blog-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.blog-cta-inner h2 {
    font-size: 40px;
    color: #2f5e62;
    margin-bottom: 20px;
}

.blog-cta-inner p {
    font-size: 22px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #2f5e62;
}

.blog-category-title {
    font-size: 42px;
    color: #2f5e62;
    text-align: center;
    margin: 100px 0 60px;
}

.blog-category-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 6px;
    margin: 20px auto 0;
    background:
        linear-gradient(#2f5e62, #2f5e62) top center / 60px 2px no-repeat,
        linear-gradient(#2f5e62, #2f5e62) bottom center / 30px 2px no-repeat;
}

.blog-cta-inner h2::after {

    content: "";

    display: block;

    width: 80px;
    height: 6px;

    margin: 18px auto 0;

    background:
        linear-gradient(#2f5e62, #2f5e62) top center / 60px 2px no-repeat,
        linear-gradient(#2f5e62, #2f5e62) bottom center / 30px 2px no-repeat;
}

/* =========================
BUTTON HOVER UPGRADE
========================= */

/* BLOG-SPECIFIC BUTTON EFFECT */
.blog-pill .btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-pill .btn:hover {
    transform: scale(1.05);
}

.blog-pill .btn:active {
    transform: scale(1.02);
}

/* =====================================================
SINGLE BLOG PAGE
===================================================== */

.single-hero img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

/* MAIN CONTENT */

.single-blog {
    padding: 120px 20px;
    background: #ffffff;
}

.single-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* CATEGORY */

.single-category {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.single-category a {
    display: inline-block;

    padding: 8px 18px;

    font-size: 32px;
    /* 🔥 bigger */
    font-weight: 500;

    color: #0097B2;
    background: rgba(0, 151, 178, 0.08);

    border-radius: 999px;

    text-decoration: none;

    transition: all 0.3s ease;
}

/* hover */
.single-category a:hover {
    background: rgba(0, 151, 178, 0.18);
}

/* hover */
.single-category a:hover {
    background: rgba(0, 151, 178, 0.18);
}

/* TITLE */

.single-title {
    font-size: 46px;
    color: #2f5e62;
    line-height: 1.3;

    text-align: center;
}

/* UNDERLINE — ALWAYS BELOW TITLE */
.single-title::after {
    content: "";
    display: block;
    /* 🔥 IMPORTANT — forces new line */

    width: 80px;
    height: 6px;

    margin: 12px auto 24px;
    /* 🔥 centered + spacing */

    transform: scaleX(0.9);
    transition: transform 0.4s ease;

    background:
        linear-gradient(#2f5e62, #2f5e62) top center / 60px 2px no-repeat,
        linear-gradient(#2f5e62, #2f5e62) bottom center / 30px 2px no-repeat;
}

/* HOVER */
.single-content:hover .single-title::after {
    transform: scaleX(1);
}

/* DATE FIX */
.single-date {
    display: block;
    color: #888;

    margin-top: 6px;
    margin-bottom: 30px;
}

/* TEXT */

.single-text {
    font-size: 22px;
    line-height: 1.9;
    color: #333;
}

.single-text p {
    margin-bottom: 26px;
}

.single-text h2,
.single-text h3 {
    margin-top: 40px;
    color: #2f5e62;
}

/* BACK BUTTON */

.single-back {
    display: inline-block;
    margin-top: 60px;
}

@media (max-width: 768px) {

    .single-content {
        text-align: center;
    }

    .single-title {
        text-align: center;
    }

    .single-title::after {
        margin: 20px auto 0;
        /* 🔥 CENTER LINE */
    }

    .single-text {
        text-align: center;
    }

    .single-date {
        text-align: center;
    }
}

.single-hero {
    margin-bottom: -60px;
    /* smooth overlap */
}

/* =====================================================
   FINAL IMAGE FIT FIX
===================================================== */

.blog-pill .pill-image {

    width: 100%;
    height: 240px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f8f3f3;
}

.blog-pill .pill-image img {

    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center !important;

    display: block;
}

/* =====================================================
   FINAL FINAL BLOG IMAGE FIX
===================================================== */

.blog-pill .pill-image img {

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;
    object-position: center !important;

    display: block !important;
}

/* =====================================================
   BLOG IMAGE LINK FIX
===================================================== */

.blog-pill .pill-image a {

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* image */

.blog-pill .pill-image a img {

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    display: block;
}

/* =====================================================
   BLOG MOBILE WIDTH FIX
===================================================== */

@media (max-width: 425px) {

    .blog-wrapper {
        margin: 0 10px;
    }

    .blog-connected-grid {
        border-radius: 22px;
    }

    .blog-pill {

        width: 100%;
        min-width: 0;

        overflow: hidden;
    }

    .pill-content {
        padding: 24px 20px 28px;
    }

    .blog-pill h3 {
        font-size: 24px;
        line-height: 1.45;
    }

    .blog-pill p {
        font-size: 18px;
        line-height: 1.75;
    }
}