img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   HERO
========================= */

.blog-hero {
    padding: 8rem 5% 4rem;
}

.blog-hero-content {
    max-width: 900px;
    margin: auto;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

.blog-main-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.blog-intro {
    max-width: 750px;
    font-size: 1.1rem;
    opacity: 0.8;
}


/* =========================
   COVER IMAGE
========================= */

.blog-cover-image {
    width: 100%;
    padding: 0 5%;
}

.blog-cover-image img {
    border-radius: 24px;
    max-height: 550px;
    object-fit: cover;
}


/* =========================
   CONTENT LAYOUT
========================= */

.blog-content-wrapper {
    padding: 6rem 5%;
}

.blog-content-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 5rem;
    align-items: start;
}


/* =========================
   TABLE OF CONTENTS
========================= */

.table-of-contents {
    position: sticky;
    top: 100px;
}

.table-of-contents h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 1rem;
}

.table-of-contents a {
    color: var(--soft-blck);
    transition: 0.3s ease;
}



/* =========================
   ARTICLE
========================= */

.blog-article {
    max-width: 850px;
}

.blog-article section {
    margin-bottom: 5rem;
}

.blog-article h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-article h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.blog-article p {
    margin-bottom: 1.5rem;
    opacity: 0.85;
    font-size: 1.05rem;
}

.blog-article ul {
    padding-left: 1.5rem;
}

.blog-article li {
    margin-bottom: 0.8rem;
    opacity: 0.85;
}


/* =========================
   CTA
========================= */

.blog-cta {
    padding: 8rem 5%;
    text-align: center;
}

.blog-cta h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.blog-cta p {
    max-width: 700px;
    margin: auto;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.blog-cta-btn {
    position: relative;
    top: 0;
    left: 0;
    transform: translatex(0);
    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;
}

.blog-cta-btn:hover {
    transform: translateY(-4px);
}

.related-blogs {
    padding: 4rem 5% 8rem;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 992px) {

    .blog-content-container {
        grid-template-columns: 1fr;
    }

    .table-of-contents {
        position: relative;
        top: 0;
    }

}

@media(max-width: 768px) {
    .related-blogs {
        padding: 3.5rem 5% 5rem;
    }

    .blog-hero {
        padding-top: 6rem;
    }

    .blog-main-title {
        font-size: 2.8rem;
    }

    .blog-article h2 {
        font-size: 1.8rem;
    }

    .blog-content-wrapper {
        padding-top: 4rem;
    }

}

@media(max-width: 500px) {
    .related-blogs {
        padding: 2rem 3% 4rem;
    }

    .blog-main-title {
        font-size: 2.3rem;
    }

    .blog-intro {
        font-size: 1rem;
    }

    .blog-article h2 {
        font-size: 1.5rem;
    }

}

/* =========================
   RELATED BLOGS
========================= */