/* BLOG */

.blog-section {
    min-height: 100%;
    padding: 65px 0 110px;

    background: linear-gradient(
        160deg,
        #e5f7ee 0%,
        #d1f8ed 55%,
        #b4f9e9 100%
    );
}

.blog-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.blog-section h1 {
    margin: 0 0 90px;
    text-align: center;
    color: #497f72;
    font-size: clamp(48px, 5vw, 50px);
    font-weight: 700;
}

.blog-empty {
    margin: 0;
    color: #222;
    font-size: 20px;
    line-height: 1.6;
}

/* FUTURA QUADRÍCULA D'ARTICLES */

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

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

@media (max-width: 600px) {
    .blog-section {
        padding: 50px 0 75px;
    }

    .blog-section h1 {
        margin-bottom: 55px;
    }

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

    .blog-empty {
        font-size: 16px;
    }
}

.blog-page {
    background: linear-gradient(
        160deg,
        #e5f7ee 0%,
        #d1f8ed 55%,
        #b4f9e9 100%
    );
}

.blog-section {
    background: transparent;
}


/* GRID D'ARTICLES */

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

/* TARGETA */

.blog-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(28, 74, 57, 0.1);
}

.blog-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* FOTOGRAFIA */

.blog-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* TÍTOL */

.blog-card h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.025em;
    color: #193e34;
    margin: 25px 25px 12px;
}

/* RESUM */

.blog-card p {
    font-size: 14px;
    line-height: 1.75;
    color: #607b70;
    margin: 0 25px 25px;
}

/* LLEGIR MÉS */

.blog-read-more {
    display: inline-block;
    align-self: flex-start;
    margin: auto 25px 28px;
    padding-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #477b6c;
}

.blog-card:hover .blog-read-more {
    color: #193e34;
}

/* RESPONSIVE */

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

@media (max-width: 650px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 35px;
    }

    .blog-card img {
        height: 230px;
    }
}
