article.insight-single {
    padding: 150px 0;
    background: linear-gradient(356deg, #F1F1FD 43.05%, #FFF 103.99%);
    padding-bottom: 100px !important;
}

article.insight-single .hero {
    padding: 30px 30px 80px 30px;
}

.insight-single .hero .inner-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

.heroMetaData {
    margin-bottom: 30px;
}

.heroMetaData .badgeAndDate {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-start;
}

.heroMetaData .badgeAndDate .badge span {
    display: inline-block;
    padding: .35rem 1rem;
    overflow: hidden;
    max-width: inherit;
    color: #3652f3;
    background: #e1e3f8;
    border-radius: .6rem;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: top;
}

.heroMetaData .badgeAndDate .date span {
    color: #222;
    font-family: Onest;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
    /* 24px */
    letter-spacing: -0.64px;
}

.insight-single .hero .inner-container .text h1 {
    color: #222;
    font-family: Onest;
    font-size: 64px;
    font-style: normal;
    font-weight: 200;
    line-height: 105%;
    /* 67.2px */
    letter-spacing: -0.64px;
}

.insight-sidebar__author {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.insight-sidebar__author__image img {
    border-radius: 100%;
}

.insight-sidebar__author__name span {
    text-transform: capitalize;
    font-family: 'Onest', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 75%;
    letter-spacing: -0.64px;
}

.insights-container {
    display: flex;
    gap: 5rem;
    width: 100%;
}
.toc-wrapper ol li{
    list-style: none;
}
.insight-sidebar__title{
    color: #4C36F3;
    font-family: 'Onest', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 24px */
    letter-spacing: -0.64px;
    margin-bottom: 20px;
}
#insight-content h2{
    color: #222;
    font-family: 'Onest', sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 200;
    line-height: 100%; /* 48px */
    letter-spacing: -1.92px;
    margin-bottom: 20px;
    margin-top: 60px;
}
#insight-content h2:first-child{
    margin-top: 0;
}
#insight-content h2 b{
    font-weight: 200;
}
#insight-content div.insight-faqs__title{
    color: #222;
    font-family: 'Onest', sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 200;
    line-height: 100%; /* 48px */
    letter-spacing: -1.92px;
    margin-bottom: 20px;
    margin-top: 60px;
}
#insight-content h3{
    color: #222;
    font-family: Onest;
    font-size: 36px;
    font-style: normal;
    font-weight: 200;
    line-height: 100%; /* 36px */
    letter-spacing: -1.44px;
    margin-bottom: 10px;
    margin-top: 40px;
}
#insight-content h4{
    color: #222;
    font-family: Onest;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 36px */
    letter-spacing: -1.44px;
    margin-bottom: 10px;
    margin-top: 30px;
}
#insight-content p{
    color: #222;
    font-family: 'Onest', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 150%; /* 24px */
    letter-spacing: -0.64px;
    margin-bottom: 20px;
}

#insight-content ul{
    padding-left: 40px;
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 20px;
}
#insight-content ol{
    padding-left: 40px;
    font-size: 20px;
    font-weight: 200;
    margin-bottom: 20px;
}

#insight-content a{
    font-size: 20px;
    color: #4C36F3;
}
#insight-content a:hover{
    font-size: 20px;
    color: #4C36F3;
    text-decoration: underline;
    cursor: pointer;
}
.insight-sidebar {
    flex: 0 0 25%;
    min-width: 0;
    position: sticky;
    top: 10rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
}

/* Responsive images inside insight content */
#insight-content {
    flex: 1 1 0%;
    min-width: 0; /* Prevent flex child overflow */
}

#insight-content figure {
    max-width: 100%;
    margin: 35px auto;
    box-sizing: border-box;
    overflow: hidden;
}

#insight-content figure img,
#insight-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

#insight-content figure figcaption {
    text-align: center;
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 300;
    margin-top: 10px;
}

.insight-faq {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

/* Make button a flex container */
.insight-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 0.25rem 0;

    background: none;
    border: none;

    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

/* Text wrapper */
.insight-faq__question span {
    flex: 1;
    padding-right: 1rem;
}

/* Icon */
.insight-faq__question::after {
    content: "+";
    flex-shrink: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

/* Expanded state */
.insight-faq__question[aria-expanded="true"]::after {
    content: "-";
}

/* Answer */
.insight-faq__answer {
    overflow: hidden;
    transition: height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}

/* When open */
.insight-faq__answer.is-open {
    opacity: 1;
}

.toc ol>li ol {
    padding: 0;
    margin: 8px 0 0 8px;
    display: none;
    overflow: hidden;
    height: auto;
    transition: max-height .5s ease-in-out;
    max-height: -webkit-fit-content;
    max-height: -moz-fit-content;
    max-height: fit-content;
    margin-left: 20px;
}

.toc ol>li {
    display: table;
    font-size: 20px;
    line-height: 20px;
    margin-bottom: 15px;
}

.toc li.passed>a {
    color: #9c9c9c;
}

.toc li.active>ol {
    display: block;
}

.toc li.active>a,
.toc li a:hover {
    color: #4C36F3;
}

.toc li.active>ol li:first-child{
    margin-top: 10px;
}
.insight-faqs{
    padding: 30px;
    background-color: white;
    border-radius: 30px;
}
.insight-faq__question{
    color: #222;
    font-family: Onest;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; /* 30px */
    letter-spacing: -0.8px;
}

button.insight-faq__question:active{
    transform: none !important;
}

button.insight-faq__question[aria-expanded="true"] span{
    color: #4C36F3;
}

.insight-faq p{
    margin-top: 10px;
}

.insight-faq p{
    margin-top: 10px;
}

.insight-faq ul li p{
    margin-bottom: 10px !important;
}

/* Related Resources Section */
.insight-single .sf-entrylist-content {
    margin-top: 10px !important;
    padding-top: 20px !important;
    padding-bottom: 0px !important;
}

/* Ensure category colors match resources styling */
.insight-single .sf-entry-cat.blog {
    color: #3652f3;
    background: #e1e3f8;
}

.insight-single .sf-entry-cat.insights {
    color: #3652f3;
    background: #e1e3f8;
}
.sf-entrylist-section{
    margin-top: 40px !important;
}
.sf-entrylist-heading{
    text-align: center;
}
.sf-entrylist-heading h2{
    color: #222;
    font-family: 'Onest', sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 200;
    line-height: 100%;
    letter-spacing: -1.92px;
    margin-bottom: 40px;
}

.insight-faq h3{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.insight-faq:last-child{
    border-bottom: none !important;
}
div.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
  }
#insight-content table{
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}   
#insight-content table tr{
    border-bottom: 1px solid #d7d7d7;
}
#insight-content table td{
    padding: 12px 15px;
    font-size: 16px;
}
#insight-content table th{
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 10px;
}
.insight-sidebar__author__image img{
    width: 60px;
    height: 60px;
    border: 1px solid #000000;
}
.insight-sidebar__author_content{
    display: flex;
    flex-direction: column;
    gap: 0px;
}
.insight-sidebar__author__name{
    font-size: 20px;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: -0.64px;
    text-transform: capitalize;
}
.insight-sidebar__author__designation{
    font-size: 20px;
    font-weight: 300;
}
.related-resources .sf-entry-thumbnail picture{
    position: relative !important;
}
.related-resources .sf-entry-thumbnail{
    padding-bottom: 0 !important;
}
.dateMetaData{
    margin-left: 5px !important;
    margin-top: 5px !important;
}

/* Responsive code starts here */
@media (max-width: 767px) {
    .container.insights-container{
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .heroMetaData {
        margin-bottom: 20px;
        margin-top: 15px;
    }
    .insight-sidebar{
        margin-top: 0 !important;
    }
    #insight-content p{
        font-size: 18px !important;
    }
    #insight-content ul{
        font-size: 18px !important;
    }
    article.insight-single{
        padding: 70px 20px;
    }
    .heroMetaData .badgeAndDate .badge span{
        font-size: 14px;
    }
    .heroMetaData .badgeAndDate .date span{
        font-size: 14px;
    }
    article.insight-single .hero{
        padding: 0;
    }
    .insight-single .hero .inner-container .text h1{
        font-size: 34px;
        margin-bottom: 20px;
    }
    .insight-sidebar__content.toc{
        display: none;
    }
    .insights-container{
        flex-direction: column;
        gap: 2rem;
    }
    .insight-sidebar{
        flex: 0 0 auto;
        width: 100%;
        position: relative;
        top: unset;
        max-height: none;
    }
    #insight-content{
        flex: 0 0 auto;
        width: 100%;
    }
    #insight-content h2{
        font-size: 30px;
        margin-top: 40px;
    }
    #insight-content h3{
        font-size: 27px;
        margin-top: 35px;
    }
    #insight-content div.insight-faqs__title{
        font-size: 32px;
    }
    .sf-entrylist-heading h2{
        font-size: 32px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    article.insight-single{
        padding: 70px 20px;
    }
    .heroMetaData .badgeAndDate .badge span{
        font-size: 18px;
    }
    .heroMetaData .badgeAndDate .date span{
        font-size: 18px;
    }
    article.insight-single .hero{
        padding: 0;
    }
    .insight-single .hero .inner-container .text h1{
        font-size: 40px;
        margin-bottom: 40px;
    }
    .insights-container{
        gap: 2rem;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .insight-sidebar{
        flex: 0 0 220px;
        top: 18rem;
    }
    #insight-content{
        flex: 1 1 0%;
    }
    .toc-wrapper{
        width: 200px;
    }
    #insight-content h2{
        font-size: 30px;
        margin-top: 40px;
    }
    #insight-content h3{
        font-size: 27px;
        margin-top: 40px;
    }
    #insight-content div.insight-faqs__title{
        font-size: 32px;
    }
    .sf-entrylist-heading h2{
        font-size: 32px;
    }
    .sf-entrylist-container{
        padding: 0rem;
    }
    .insight-sidebar{
        margin-top: 0 !important;
    }
    #insight-content p{
        font-size: 18px !important;
    }
    #insight-content ul{
        font-size: 18px !important;
    }
    .insight-single .heroMetaData {
        margin-bottom: 20px !important;
    }
    .insight-single .hero .inner-container .text h1 {
        margin-bottom: 15px !important;
    }
    .dateMetaData small {
        font-size: 11px !important;
        
    }
    .dateMetaData {
     margin-bottom: 20px !important;
     }
    .toc ol>li{
        font-size: 18px !important;
    }
    .toc ol>li ol{
        font-size: 16px !important;
    }
    .toc ol>li ol li{
        font-size: 16px !important;
    }
    .toc ol>li ol li a{
        font-size: 16px !important;
    }
    .insight-faq__question{
        font-size: 18px !important
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    article.insight-single{
        padding: 70px 40px;
    }
    article.insight-single .hero{
        padding-left: 0;
        padding-right: 0;
    }
    .sf-entrylist-container{
        padding: 0 8rem;
    }
}

@media (min-width: 1440px) and (max-width: 1529px) {
    article.insight-single{
        padding: 70px 40px;
    }
    article.insight-single .hero{
        padding-left: 0;
        padding-right: 0;
    }
    .sf-entrylist-container{
        padding: 0 8rem;
    }
}

