.recent-card {
    color: #2c3e3e;
}

/* image */
.recent-card__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* content */
.recent-card__title {
    font-size: 20px;
    margin-bottom: 12px;
}

.recent-card__desc {
    color: #6d7778;
    line-height: 1.6;
    margin-bottom: 0;
}

/* accent line */
.recent-card__line {
    display: block;
    width: 30px;
    height: 3px;
    background: #5faeb8;
    margin-bottom: 16px;
}

/* button */
.recent-card__btn {
    display: inline-block;
    background: #5faeb8;
    color: #fff;
    padding: 12px 24px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* date */
.recent-card__date {
    font-size: 14px;
    color: #999;
}

/* ---------------- */
/* LONG VERSION */
/* ---------------- */

.recent-card--long {
    max-width: 380px;
}

.recent-card--long .recent-card__content {
    padding: 20px 0;
}

.recent-card--long .recent-card__image img {
    height: 260px;
    object-fit: cover;
}


/* ---------------- */
/* SHORT VERSION */
/* ---------------- */

.recent-card--short {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.recent-card--short .recent-card__content {
    padding: 0 20px;
}

.recent-card--short .recent-card__image {
    flex: 0 0 70px;
}

.recent-card--short .recent-card__image img {
    aspect-ratio: 1 / 1;
}

.recent-card--short .recent-card__content {
    padding: 0;
}

.recent-card--short .recent-card__btn,
.recent-card--short .read-more,
.recent-card--short .recent-card__line {
    display: none;
}

.recent-card--short .recent-card__title {
    font-size: 18px;
    margin-bottom: 6px;
}

.recent-card--short .recent-card__desc {
    font-size: 13px;
    color: #999999;
}

.banner-detail {
    position: relative;
    min-height: 30vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: clamp(32px, 6vw, 72px);
    overflow: hidden;

    /* Replace with your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.detail__location {
    margin: 14px 0  0 300px;
    color: rgba(255, 255, 255, 0.9);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 0.2px;
}

/* subtle dark overlay like in screenshot */
.detail__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background-color: rgba(32, 51, 52, 0.5);
    left: 0;
    width: 100%;
    height: 100%;
}

/* content sits above overlay */
.detail__content {
    position: relative;
    max-width: 1240px;
}

.detail__title {
    margin-left: 300px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.05;

    /* big title sizing */
    font-size: clamp(36px, 6vw, 60px);
}

.detail-hero .blog {
    padding: 80px 0;
    display: grid;
    column-gap: 40px;
    grid-template-columns: 1.35fr .65fr;
}

.detail-hero .blog-recent-post .title {
    font-size: 20px;
    color: #333;
}

.blog-content .inner .intro,
.blog-content .inner .subIntro {
    margin-bottom: 28px;
}

.blog-content .inner .image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    margin-bottom: 28px;
}

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

.blog-content .inner .description {

}

.blog-content .inner .parent {
    display: grid;
    gap: 16px;
}

.blog-content .inner .parent > div {
    overflow: hidden;
}

.blog-content .inner .parent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 4 images layout */
.blog-content .inner .parent.images-4 {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    height: 500px;
}

.blog-content .inner .parent.images-4 .div1 {
    grid-area: 1 / 1 / 5 / 6;
}

.blog-content .inner .parent.images-4 .div2 {
    grid-area: 1 / 6 / 5 / 9;
}

.blog-content .inner .parent.images-4 .div3 {
    grid-area: 5 / 1 / 9 / 4;
}

.blog-content .inner .parent.images-4 .div4 {
    grid-area: 5 / 4 / 9 / 9;
}

/* 2 images layout */
.blog-content .inner .parent.images-2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
}

.blog-content .inner .parent.images-2 .div1,
.blog-content .inner .parent.images-2 .div2 {
    grid-area: auto;
}

/* optional: 1 image */
.blog-content .inner .parent.images-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* optional: 3 images */
.blog-content .inner .parent.images-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.blog-content .inner .parent.images-3 .div1 {
    grid-area: 1 / 1 / 3 / 2;
}

.blog-content .inner .parent.images-3 .div2 {
    grid-area: 1 / 2 / 2 / 3;
}

.blog-content .inner .parent.images-3 .div3 {
    grid-area: 2 / 2 / 3 / 3;
}

@media screen and (max-width: 1024px) {
    .banner-detail {
        min-height: 30vh;
    }

    .detail-hero .blog {
        grid-template-columns: 1fr;
        row-gap: 40px;
        padding: 60px 20px;
    }

    .recent-card--long {
        max-width: 100%;
    }

    .recent-card--long .recent-card__image img {
        width: 100%;
        height: auto;
    }

    .detail__content {
        max-width: 100%;
    }

    .detail__title {
        font-size: clamp(32px, 5vw, 48px);
        margin-left: 30px;
    }
    .detail__location {
        margin-left: 30px;
    }
}

@media screen and (max-width: 991px) {
    .blog-content .inner .parent.images-4 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        height: auto;
        gap: 14px;
    }

    .blog-content .inner .parent.images-4 .div1,
    .blog-content .inner .parent.images-4 .div2,
    .blog-content .inner .parent.images-4 .div3,
    .blog-content .inner .parent.images-4 .div4 {
        grid-area: auto;
    }

    .blog-content .inner .parent.images-4 > div {
        height: 220px;
    }
}

/* tablet */
@media screen and (max-width: 768px) {
    .banner-detail {
        min-height: 30vh;
        padding: 24px 20px;
        background-position: center;
    }

    .detail__title {
        font-size: clamp(28px, 7vw, 40px);
        line-height: 1.15;
    }

    .detail__location {
        font-size: 14px;
        margin-top: 10px;
    }

    .detail-hero .blog {
        padding: 50px 16px;
        row-gap: 32px;
    }

    .detail-hero .blog-recent-post .title {
        font-size: 18px;
    }

    .recent-card__title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .recent-card__desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .recent-card__btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .recent-card--short {
        gap: 12px;
    }

    .recent-card--short .recent-card__image {
        flex: 0 0 80px;
    }

    .recent-card--short .recent-card__title {
        font-size: 16px;
    }

    .recent-card--short .recent-card__desc {
        font-size: 12px;
    }
}

/* mobile */
@media screen and (max-width: 576px) {
    .banner-detail {
        min-height: 20vh;
        padding: 20px 16px;
        align-items: flex-end;
    }

    .detail__title {
        font-size: 28px;
    }

    .detail__location {
        font-size: 12px;
    }

    .detail-hero .blog {
        padding: 40px 12px;
        row-gap: 28px;
    }

    .recent-card--long .recent-card__content {
        padding: 16px 0;
    }

    .recent-card__title {
        font-size: 17px;
    }

    .recent-card__desc {
        font-size: 13px;
    }

    .recent-card__date {
        font-size: 12px;
    }

    .recent-card__btn {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .recent-card--short {
        align-items: center;
    }

    .recent-card--long .recent-card__image img {
        height: 220px;
    }

    .recent-card--short .recent-card__image {
        flex: 0 0 72px;
    }

    .recent-card--short .recent-card__title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .recent-card--short .recent-card__desc {
        font-size: 12px;
        line-height: 1.5;
    }

    .blog-content .inner .parent.images-2,
    .blog-content .inner .parent.images-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .blog-content .inner .parent > div {
        height: 200px;
    }
}

/* very small mobile */
@media screen and (max-width: 400px) {
    .detail__title {
        font-size: 24px;
    }

    .recent-card--short {
        gap: 10px;
    }

    .recent-card--short .recent-card__image {
        flex: 0 0 64px;
    }

    .recent-card__btn {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
}