html{scroll-behavior: smooth;}
/* Article Hero */
.post-hero {
    background-size: cover;
    background-position: center;
    color: white;
    /*padding: 2rem;*/
    position: relative;
    border-radius: 16px;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(102, 102, 102, 0.76) 0%, rgba(0, 0, 0, 0.76) 59%);
    z-index: 1;
    border-radius: 16px;
}

.post-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0 0 67px;
    width: 60%;
}

.post-hero .hero-breadcrumbs{
    font-weight: 500;
    font-size: 14px;
}

.post-hero .hero-breadcrumbs a {
    color: white;
    text-decoration: none;
}

.post-hero .hero-breadcrumbs a:hover {
    text-decoration: underline;
}

.post-hero .hero-title{
    font-weight: 700;
    font-size: 32px;
    margin-top: 20px;
    margin-bottom: 14px;
    line-height: 37px;
}

.post-hero .hero-excerpt{
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
}

.post-hero .hero-dates {
    display: flex;
    gap: 26px;
    margin-top: 20px;
    margin-bottom: 16px;
}

/* Article Hero - Contributor section */
.post-hero .hero-contributors {
    display: flex;
    gap: 30px;
    margin-top: 28px;
    color: white;
    padding: 20px 0 20px 67px;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border-style: solid;
    border-width: 1px 0px 0px 0px;
    border-color: #FFFFFF26;
}

.post-hero .contributor-profile {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-hero .contributor-details h4{
    font-size: 12px;
    font-weight: 400;
    color: white;
    margin: 0;
}

.post-hero .contributor-details p{
    margin: 0;
}

.post-hero .contributor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.post-hero .contributor-name {
    font-weight: 500;
    font-size: 14px;
    color: white;
    text-decoration: none;
    display: block;
    margin: 0;
}

.post-hero .hero-images-container {
    display: flex;
    gap: 10px;
}

.post-hero .hero-images-container img{
    width: 30px;
    height: 100%;
    object-fit: cover;
}

.post-hero .ai-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px; /* Makes it perfectly circular */
    border: 1px solid #fff;
    font-weight: bold;
    font-size: 1.4rem;
    text-decoration: none; /* Remove default underline */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    cursor: pointer;
    background-color: transparent;
    color: white; 
    transition: background-color 0.2s, color 0.2s; /* Smoother transition for color change */
}

.post-hero .ai-icon:hover {
    background-color: #fff;
    color: #000;
}

.post-hero .ai-icon svg {
    width: 20px;
    height: 20px;
    fill: white; /* Default SVG fill */
    transition: fill 0.2s;
}

.post-hero .ai-icon:hover svg {
    fill: #000;
}

.hero-images-container p{margin: 0;}
.hero-images-container br{display: none;}

/* Table of Contents CSS */
.table-of-contents .toc-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.table-of-contents .toc-list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 36px;
}

.table-of-contents .toc-list > li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.table-of-contents .toc-list > li::before {
    position: absolute;
    z-index: 2;
    content: "";
    background-color: #682D63;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 6px solid #fff;
    border-radius: 50%;
    -webkit-box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.table-of-contents .toc-list a {
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    transition: color 0.3s ease;
}

.table-of-contents .toc-list a:hover {
    color: #8C52FF;
}

/* sidebar newsletter form */
form.wpcf7-form p, form.wpcf7-form span{margin: 0;}
form.wpcf7-form br{display: none;}
form.wpcf7-form .wpcf7-email{
    padding: 8px;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 5px;
    border: 1px solid #95959580;
    background: #fff;
    height: 100%;
    color: #000;
}
form.wpcf7-form .wpcf7-submit{
    width: 100%;
    background: #682D63;
    color: #fff;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
    text-transform: capitalize;
}
form.wpcf7-form .wpcf7-response-output{
    margin-top: 0;
    font-size: 14px;
}

/* Article General CSS */
.single.single-post .wp-block-post-content h2{
    font-weight: 700;
    font-size: 28px;
    line-height: 33px;
    padding-top: 40px;
    border-top: 1px solid #61616147;
    margin-top: 48px;
}

.single.single-post .wp-block-post-content img {
    width: 100%;
    height: 100%;
    border-radius: 7px;
} 

.single.single-post .wp-block-post-content iframe {
    width: 100%;
    border-radius: 7px;
} 

.single.single-post .wp-block-post-content p a{
    color: #000;
}
.asf-author-form{
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}
.asf-author-form .asf-author-row{
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    justify-content: center;
}
.asf-author-form .asf-author-row img{
    width: 36px;
    height: 36px;
}
.asf-author-form .asf-author-wrapper{
    padding-left: 12px;
}
.asf-author-form .asf-author-wrapper .asf-author-name, .asf-author-form .asf-author-wrapper .asf-author-position{
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}
.asf-author-form .asf-author-wrapper p{
    margin: 0;
    font-weight: 400 !important;
}

/* Top Tools page table design */
table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin: 30px 0 20px 0;
border: 3px solid #000000;
border-radius: 5px;
}

table td, table th {
padding: 10px;
border: 0.5px solid #000000;
text-align: left;
font-size: 14px;
line-height: 1.2;
}

table td {
font-weight: normal;
text-wrap-mode: nowrap;
}

table th {
font-weight: 500;
background-color: #000000;
color: white;
}

.table-overflow{overflow: auto;}

.table-overflow tr:nth-child(even) {
 background-color: #f2f2f2;
}

.table-overflow tr:nth-child(odd) {
 background-color: #ffffff;
}

.table-overflow tr td:first-child {
    font-weight: 700;
}

/* Top tools progress bar */
.ntw-score-table {
    max-width: 900px;
    padding: 30px;
    background: #F0F0F0;
    border-radius: 10px;
}

.ntw-score-row {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    align-items: center;
    gap: 20px;
}

.ntw-score-row p{display: none;}

.ntw-score-label {
    font-size: 12px;
    color: #111;
    font-weight: 500;
    text-align: right;
}

.ntw-score-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.ntw-score-bar {
    width: 100%;
    height: 20px;
    background: #fff;
    overflow: hidden;
}

.ntw-score-bar span {
    display: block;
    height: 100%;
    background: #6b2c6f; /* purple color */
}

.ntw-score-value {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    min-width: 30px;
    text-align: right;
}

.ntw-score-scale {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    margin-top: 12px;
    padding-left: calc(1.2fr); /* aligns with bar start */
    font-size: 12px;
    color: #666;
}

.ntw-score-scale span {
    text-align: left;
    position: relative;
}

.ntw-score-scale br{display: none;}

.ntw-score-scale span::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    /* transform: translateX(-50%); */
    width: 1px;
    height: 20px;
    background: #ccc;
}

.related-posts-section ul.wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    max-width: 100%;
    padding: 0;
    gap: 13px;
}

.related-posts-section ul.wp-block-post-template li{
    margin-bottom: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0 10px 0 rgba(186, 186, 186, .5);
}

.related-posts-section .wp-block-post-featured-image :where(img) {
    box-sizing: border-box;
    height: auto;
    max-width: 100%;
    vertical-align: bottom;
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.related-posts-section .wp-block-post-featured-image br{display: none;}
.related-posts-section .wp-block-post h4 br{display: none;}
.related-posts-section .wp-block-post h4{
    padding: 12px 10px !important;
    line-height: 1.2 !important;
    font-size: 15px;
    font-weight: 400;
    color: #161616 !important;
    text-decoration: none !important;
    margin: 0;
}
.related-posts-section .wp-block-post h4 a{
    font-size: 15px;
    font-weight: 400;
    color: #161616 !important;
    text-decoration: none !important;
}
.related-posts-section ul.wp-block-post-template li figure{margin: 0;}

.post-template-top-tools .wp-block-greenshift-blocks-row-column p img{
    width: 100% !important;
    height: 100% !important;
}

/* Media Queries for Article CSS */
@media (max-width: 992px) {
    .post-hero, .post-hero::before, .post-hero .hero-contributors{
        border-radius: 0;
    }
    .ntw-score-row{
        grid-template-columns: auto;
        gap: 5px;
        margin-bottom: 10px;
    }
    .ntw-score-label{
        text-align: left;
    }
    .ntw-score-scale{
        display: none;
    }
}
@media (max-width: 768px) {
    .post-hero .hero-content {
        padding: 50px;
        width: 100%;
    }
    .related-posts-section ul.wp-block-post-template{
        grid-template-columns: repeat(2, 1fr);
        padding: 0 15px;
    }
    .related-posts-section .related-posts-title{
        padding: 0 15px;
    }
}
@media (max-width: 650px) {
    .post-hero .hero-contributors {
        padding: 20px;
        justify-content: space-between;
    }
    .post-hero .hero-content {
        padding: 20px;
    }
}
@media (max-width: 600px) {
    .post-hero .hero-contributors {
        padding: 20px;
        justify-content: space-between;
        flex-wrap: wrap;
        row-gap: 20px;
    }
    .post-hero .hero-content {
        padding: 20px;
    }
    .related-posts-section ul.wp-block-post-template{
        grid-template-columns: 1fr;
    }
    .post-template-wp-custom-template-review-article .post-hero .hero-content {
        width: 80%;
    }
}