.main-blog-container {
    /* margin-top: 6%;
        padding-top: 1.88rem; */
    padding-bottom: 7.50rem;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}


.container {
    /* max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 1rem; */
}

.blog-container {

    padding-bottom: 30px;
    width: 78% !important;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 58px;
    letter-spacing: 0px;
    text-align: center;
    background: linear-gradient(to right, #022640, #5786AB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* For Firefox */
    background-clip: text;
    color: black;
    margin: 0 0 1rem 0;
}

.header h2 {
    color: #131313;
    /* max-width: 56rem; */
    margin: 0 auto 1.5rem auto;
    font-family: Work Sans;
    font-weight: 500;
    font-size: 22px !important;
    line-height: 30px;
    letter-spacing: 0px;
    text-align: center;

}

.header p {
    width: auto;
    margin: 0 auto;
    font-family: Work Sans;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0px;
    text-align: center;
    color: #4C4C4C;
}

.header-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    color: #131313;
    font-family: Work Sans;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0px;
}

.header-meta> :not([hidden])~ :not([hidden]) {
    margin-left: 5.5rem;
}

.header-meta .read-time {
    display: flex;
    align-items: center;
    color: #4C4C4C;
}

.header-meta svg {
    height: 1rem;
    width: 1rem;
    margin-right: 0.5rem;
    /* color: #4ade80; */
}

/*sub-header section  */
.sub-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0rem 0;
    margin: 0rem auto;
    width: 90%;
    flex-wrap: wrap;
}

.header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-right: 2rem;
    border-right: 1px solid #e0e0e0;
}

.header-meta span {
    white-space: nowrap;
}

.sub-header p {
    max-width: 775px;
    margin: 0px;
    margin-top: 24px;
    text-align: left;
    color: #4C4C4C;
}


/* banner section */
.blog-banner {
    width: 100%;
    max-width: 1680px;
    height: auto;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 24px;
}

.blog-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Content Section */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 120px !important;
}

/* Aside Navigation */
.sidebar {
    /* width: 402px; */
    position: sticky;
    top: 10rem;
    background-color: #1313130D;
    padding: 1rem;
    border-radius: 16px;
    gap: 24px;
    max-height: calc(100vh - 8.8rem);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;

}

.sidebar::-webkit-scrollbar {
    display: none;
}

.toc-nav> :not([hidden])~ :not([hidden]) {
    margin-top: 1rem;
}

.toc-nav a {
    color: #4C4C4C;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 200ms;
    font-family: Work Sans;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;

}

.toc-nav a:hover span,
.toc-nav a.active span {
    background: linear-gradient(90deg, #022640 0%, #5786AB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.toc-nav a.active::before {
    content: '►';
    margin-right: 0.75rem;
    background: linear-gradient(90deg, #022640 0%, #5786AB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.toc-nav svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.75rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.toc-nav .sub-link {
    /* margin-left: 1.75rem; */
}

/* Article Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.625;
}

.article-content> :not([hidden])~ :not([hidden]) {
    margin-top: 2.5rem;
}

.article-content section> :not([hidden])~ :not([hidden]) {
    margin-top: 1rem;
}

.article-content p,
.article-content li {
    margin: 0;
    color: #4C4C4C;
    font-family: Work Sans;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0px;
    /* text-align: center; */

}

.article-content p+p {
    margin-top: 1rem;
}

.article-content .highlight {
    color: #4C4C4C;
    font-weight: 600;

}

.article-content h3 {
    color: #131313;
    padding-top: 2rem;
    margin: 0;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0px;

}

.skills-gap-banner {
    /* background-color: #1f2937; */
    /* border-radius: 0.75rem; */
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    /* box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); */
}

.skills-gap-banner h3 {
    padding-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    /* color: #4ade80; */
}

.skills-gap-banner p {
    padding-top: 18px;
    font-size: 17px;
}

.blog-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 4rem;
}

/* Responsive Styles */
@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .header h1 {
        font-size: 3rem;
        line-height: 1;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    .main-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .aside-container {
        grid-column: span 1 / span 1;
    }

    .article-container {
        grid-column: span 3 / span 3;

    }

    .skills-gap-banner h3 {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .main-content {
        gap: 3rem;
    }
}


@media only screen and (min-width: 992px) and (max-width: 1367px) {
    .header h1 {
        font-size: 40px !important;
    }

    .article-content h3 {
        font-size: 26px;
    }

    .header h2 {
        font-size: 17px;
    }

    .header p {
        font-size: 14px;
    }

    .header-meta {
        font-size: 14px;
    }

    .toc-nav a {
        font-size: 12px;
    }

    .article-content p,
    .article-content li {
        font-size: 15px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1400px) {


    .sub-header {
        width: 85%;
    }

    .sub-header p {
        max-width: 549px;
    }

    .header p {
        font-size: 13px;
    }

    .header-meta {
        font-size: 13px;
    }

    .sidebar {
        width: 260px;
        top: 7.5rem;
        max-height: calc(100vh - 9rem);
    }
}
