img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   HERO
========================= */

.blogs-hero {
    padding: 8rem 5% 4rem;
    background: var(--soft-black);
    color: var(--soft-white);
}

.blogs-hero-content {
    max-width: 900px;
}

.blogs-main-heading {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    margin: 1rem 0 2rem;
}

.blogs-main-heading span {
    opacity: 0.5;
}

.blogs-hero-text {
    max-width: 700px;
    font-size: 1.1rem;
    opacity: 0.8;
}


/* =========================
   BLOG SECTION
========================= */

.blogs-section {
    padding: 4rem 5% 8rem;
}


/* =========================
   BLOG GRID
========================= */

.blogs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}


/* =========================
   BLOG CARD
========================= */

.blog-card {
    background: #141414;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
}


/* =========================
   IMAGE
========================= */

.blog-img {
    height: 240px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}


/* =========================
   CONTENT
========================= */

.blog-content {
    padding: 1.5rem;
}


/* =========================
   META
========================= */

.blog-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}


/* =========================
   TITLE
========================= */

.blog-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 500;
}


/* =========================
   EXCERPT
========================= */

.blog-excerpt {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}


/* =========================
   BUTTON
========================= */

.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.blog-btn i {
    transition: 0.3s ease;
}

.blog-btn:hover i {
    transform: translateX(5px);
}


/* =========================
   CTA
========================= */

.blogs-cta {
    padding: 8rem 5%;
    text-align: center;
}

.blogs-cta h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.blogs-cta p {
    max-width: 700px;
    margin: auto;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.blogs-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    background: var(--primary-color);
    color: var(--soft-white);
    font-weight: 600;
    transition: 0.3s ease;
}

.blogs-cta-btn:hover {
    transform: translateY(-4px);
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width: 992px) {

    .blogs-container {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width: 768px) {

    .blogs-hero {
        padding-top: 6rem;
    }

    .blogs-container {
        grid-template-columns: 1fr;
    }

    .blog-img {
        height: 220px;
    }

    .blog-title {
        font-size: 1.3rem;
    }

}

@media(max-width: 500px) {

    .blogs-main-heading {
        font-size: 2.8rem;
    }

    .blogs-hero-text {
        font-size: 1rem;
    }

}