/********** blog.html ***********/
.blog {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1 0 auto;
    background-color: #F4F1EC;
    animation: fadeIn 0.3s ease-out 0s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.blog-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(16rem, 30vh, 30rem);
    background-image: url("../svg/template-1.3999207847f6.svg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    color: white;
    text-align: center;
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.blog-hero h1 {
    font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
    color: #fff;
    font-size: clamp(2.5rem, 3.5vw + 1rem, 4rem);
    letter-spacing: 0.25rem;
    font-weight: 500;
    z-index: 2;
    animation: fadeIn 0.3s ease-out 0s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


.blog-hero p {
    font-family: 'Roboto', 'Roboto-Condensed', 'Signika', 'Arsenal', sans-serif;
    color: #ffffff;
    z-index: 2;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0;
    margin-bottom: 3rem;
    text-align: left;
    line-height: 1.87rem;
    max-width: 37.5vh;
}

/* divider-gradient */
.divider-gradient-2 {
    height: 0.37rem;
    background-image: linear-gradient(to right, #FF931E, #3B8210, #2E98ED);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.blog-content {
    width: 100%;
    background-color: #F4F1EC;
    padding: 3rem 3rem 3rem 3rem;
    flex: 1 0 auto;
}



.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem;
    max-width: 95%;
    width: calc(80rem - 2rem);
    margin: 0 auto 3rem auto;
}

.blog-posts {
    position: relative;
    display: flex;
    flex-direction: column;
    height: clamp(24rem, 30vw, 27rem);
    min-width: 0;
    overflow: hidden;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0);
    border-radius: 12px;
}

.blog-posts a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.blog-posts-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    transition: transform 0.25s ease;
}

.blog-posts-image:hover {
    transform: scale(1.025);
}

.blog-posts-content {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 10.5rem;
    background: #33333312;
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(40px);
    overflow: hidden;
    margin: 0;
    z-index: 2;
    pointer-events: none;
}

.blog-posts-title {
    margin: 0;
    padding: 1rem 1.15rem 0 1.15rem;
}

.blog-posts-title h2 {
    color: #fff;
    font-family: 'Roboto-Condensed', 'Roboto', 'Signika', 'Arsenal', sans-serif;
    font-weight: 600;
    font-size: clamp(1.15rem, 1.2vw, 1.35rem);
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-align: left;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    word-wrap: break-word;
    overflow: hidden;
}

.blog-posts-summary {
    margin: 0;
    padding: 0.35rem 1.15rem 0 1.15rem;
}

.blog-posts-summary p {
    color: #fff;
    font-family: 'Roboto', 'Arsenal', sans-serif;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: 0;
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    word-wrap: break-word;
    overflow: hidden;
}

.blog-posts-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.9rem 1.15rem 1rem 1.15rem;
}

.blog-posts-published-date {
    flex-shrink: 0;
}

.blog-posts-published-date p {
    color: #fff;
    font-family: 'Roboto-Condensed', 'Roboto', 'Signika', 'Arsenal', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: -0.3px;
    display: flex;
    margin: 0;
    padding: 0;
}

.blog-posts-category {
    background: #fff;
    border-radius: 6px;
    max-width: calc(100% - 92px);
    padding: 0.35rem 0.65rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.blog-posts-category p {
    color: #555;
    font-family: 'Signika', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card--wide {
    grid-column: span 2;
}

.card--full {
    grid-column: span 3;
}

@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card--wide {
        grid-column: span 2;
    }

    .card--full {
        grid-column: span 2;
    }
}

@media (max-width: 928px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-content {
        padding: 2.5rem 1.5rem 5rem 1.5rem;
    }

    .blog-posts {
        height: clamp(20rem, 52vw, 24rem);
    }

    .blog-posts-content {
        min-height: 9.5rem;
    }

    .blog-posts-title h2 {
        font-size: 1.1rem;
    }

    .blog-posts-summary p {
        font-size: 0.9rem;
    }
}

@media (max-width: 700px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .card--wide,
    .card--full {
        grid-column: span 1;
    }

    .blog-content {
        padding: 2rem 1rem 4rem 1rem;
    }
}