.error-wrap{
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 30px 20px;
    background-color: #fff;
    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);

    p{
        margin-bottom: 0 !important;
    }
}

.is-invalid {
  border: 1px solid red !important;
}

.breadcrumb-item {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;

    &.active {
        color: #6b7280;
        font-weight: 400;
    }

    a {
        text-decoration: none;
        color: var(--text-color);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    img{
        filter: brightness(0) saturate(100%) invert(51%) sepia(9%) saturate(9%) hue-rotate(9deg) brightness(88%) contrast(84%);
    }
}

.breadcrumb-item+.breadcrumb-item {
    padding-left: 20px;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "";
    background-image: url("/img/icons/breadcrumb-arrow.png");
    background-size: 100% 100%;
    display: block;
    width: 7px;
    min-width: 7px;
    height: 16px;
    position: relative;
    top: 2px;
    margin-right: 8px;
}

.blog-category-wrap {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;

    h1 {
        color: var(--primary-color);
        font-style: 48px;
        font-weight: bold;
        line-height: 48px;
        margin-bottom: 12px;
    }

    p {
        font-weight: 400;
        color: #4b5563;
        font-style: 18px;
        line-height: 28px;
        max-width: 765px;
        letter-spacing: 0;
    }
}

.articles-section {
    margin-top: 32px;
}

.sort-articles {
    margin-top: 32px;

    .articles-wrap {
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 16px;

        .sort-by {
            font-size: 14px;
            font-weight: 500;
            line-height: 20px;
            padding: 8px 16px;
            background-color: #F3F4F6;
            border-radius: 4px;
            position: relative;
            color: var(--text-color);

            .cap-icon {
                transition: all 0.3s ease-in-out;
            }

            &:hover {
                .sort-by-dropdown {
                    opacity: 1;
                    visibility: visible;
                    transform: translateY(1px);
                }

                .cap-icon {
                    transform: rotate(180deg);
                }
            }
        }

        .sort-by-dropdown {
            background: #fff;
            border-radius: 4px;
            box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
            padding: 16px 15px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 100;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;


            ul {
                padding: 0;
                margin: 0;
                list-style: none;

                a {
                    color: #4B5563;
                    font-size: 14px;
                    font-weight: 500;
                    line-height: 20px;
                    display: block;
                    opacity: 0.7;

                     &:hover, &.active{
                        color: var(--primary-color);
                        opacity: 1;
                    }
                }

                li:not(:last-child) {
                    margin-bottom: 14px;
                }
            }
        }
    }
}

.popular-insights-section {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;

    .popular-insights-title {
        font-size: 20px;
        line-height: 28px;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 16px;
    }

    .insights-card:not(:last-child) {
        margin-bottom: 16px;
    }

    .insights-card-image {
        img {
            width: 64px;
            height: 64px;
            object-fit: cover;
            border-radius: 8px;
        }
    }

    .insights-card-content {
        .insights-title {
            font-size: 14px;
            font-weight: 600;
            line-height: 20px;
            margin-bottom: 4px;
            color: var(--primary-color);
            -webkit-line-clamp: 2;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .insight-details {
            span {
                font-size: 12px;
                color: #6b7280;
            }
        }
    }
}

.related-categories-section {
    margin-top: 32px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;

    .related-categories-list {
        padding: 0 12px 12px;
    }

    .related-categories-title {
        font-size: 20px;
        line-height: 28px;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 30px;
    }

    .related-category-item:not(:last-child) {
        margin-bottom: 32px;
    }

    .related-category-item {
        .related-category-title {
            font-size: 16px;
            line-height: 24px;
            font-weight: 600;
            color: var(--text-color);
        }

        .related-category-count {
            background-color: #f3f4f6;
            border-radius: 9999px;
            color: #4b5563;
            font-size: 12px;
            font-weight: 600;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 30px;
            height: 24px;
        }
    }
}

.featured-authors-section {
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 12px;
    margin-top: 32px;

    .featured-authors-title {
        font-size: 20px;
        line-height: 28px;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 16px;
    }

    .featured-author-item:not(:last-child) {
        margin-bottom: 16px;
    }

    .featured-author-item {
        display: flex;
        align-items: center;
        gap: 12px;

        img {
            width: 48px;
            height: 48px;
            border-radius: 50%;
        }

        .featured-author-name {
            font-size: 16px;
            font-weight: 600;
            line-height: 24px;
            color: var(--primary-color);
            margin: 0;
        }

        .featured-author-details {
            span {
                font-size: 12px;
                color: #6b7280;
            }
        }
    }
}

.faq-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;

    .faq-section-title {
        font-size: 24px;
        font-weight: 700;
        line-height: 32px;
        color: var(--primary-color);
        margin-bottom: 24px;
    }

    .faq-item:not(:last-child) {
        margin-bottom: 16px;
    }

    .faq-item {
        background-color: #f9fafb;
        border-radius: 8px;
        padding: 16px;

        .faq-item-heading {
            font-size: 18px;
            font-weight: 600;
            line-height: 28px;
            color: var(--primary-color);
        }

        .faq-item-description {
            font-size: 14px;
            font-weight: 400;
            line-height: 20px;
            color: var(--text-color);
            letter-spacing: 0;
            margin: 0;
            margin-bottom: 4px;
        }
    }
}

.newsletter-section {
    border-radius: 12px;
    background-color: var(--primary-color);
    padding: 20px;
    margin-top: 32px;

    .newsletter-title {
        font-size: 20px;
        font-weight: 600;
        line-height: 28px;
        color: #fff;
        max-width: 160px;
    }

    .newsletter-description {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        color: #e5e7eb;
        margin-bottom: 16px;
        letter-spacing: 0;
    }

    .newsletter-form {
        input {
            width: 100%;
            height: 36px;
            border-radius: 4px;
            padding-inline: 16px;
            border: none;
            outline: none;
            font-size: 14px;
            margin-bottom: 12px;
        }

        .submit-button {
            width: 100%;
            height: 40px;
            border-radius: 4px;
            background-color: #bc8418;
            color: #fff;
            text-align: center;
            border: none;
            outline: none;
        }
    }
}

.pagination-section {
    margin-top: 40px;
    margin-bottom: 32px;

    .pagination {
        gap: 8px;
        align-items: center;
        margin: 0;

        .page-item:not(.previous, .next) {
            a {
                width: 40px;
                height: 40px;
                border-radius: 4px;
                background-color: #fff;
                color: #fff;
                text-align: center;
                align-content: center;
                border: none;
                outline: none;
                color: var(--primary-color);
                img{
                    filter: brightness(0) saturate(100%) invert(11%) sepia(54%) saturate(5815%) hue-rotate(282deg) brightness(92%) contrast(85%);
                }
            }
        }

        .page-item.active {
            a {
                background-color: var(--primary-color);
                color: #fff;
            }
        }
    }

    .pagination-count {
        color: var(--text-color);
        font-size: 14px;
        line-height: 20px;
        font-weight: 400;
        margin: 0;
    }

    .pagination-arrow-left {
        rotate: -180deg;
    }

    .page-item {
        &.previous {
            a {
                width: 34px;
                height: 32px;
                border-radius: 4px;
                display: flex;
                justify-content: center;
                align-items: center;
                border: none;
                outline: none;

                span {
                    font-size: 0;
                }
            }
        }
    }

    .page-item {
        &.next {
            a {
                width: 34px;
                height: 32px;
                border-radius: 4px;
                display: flex;
                justify-content: center;
                align-items: center;
                border: none;
                outline: none;

                span {
                    font-size: 0;
                }
            }
        }
    }

    .page-item {
        a {
            &:focus {
                border: none;
                outline: none;
                box-shadow: none;
            }
        }
    }
}

.section-space-top {
    padding-top: 150px;
}

.section-space-bottom {
    padding-bottom: 0;
}

body .container {
    max-width: 1440px !important;
    padding: 0 40px;
}

.article-card {
    & .article-card-footer {
        & .article-read-more {
            span{
                margin-right: 0;
            }
            img{
                margin-top: -5px;
            }
        }
    }
}

.our-mission{
    display: none;
}

body footer .container {
    max-width: 1140px !important;
    padding: 0 12px;
}

@media only screen and (min-width: 1800px) {
    body .container {
        max-width: 1440px !important;
        padding: 0 40px;
    }

    .section-space-top {
        padding-top: 150px;
    }
}

@media(max-width: 1320px) {
    .popular-insights-section {
        .insights-card-content {
            .insight-details {
                span {
                    font-size: 11px;
                }
            }
        }
    }

    .featured-authors-section {
        .featured-author-item {
            .featured-author-details {
                span {
                    font-size: 11px;
                }
            }
        }
    }
}

@media(max-width: 1280px) {
    .popular-insights-section {
        .insights-card {
            gap: 8px !important;
        }

        .insights-card-content {
            .insight-details {
                span {
                    width: max-content;
                }
            }
        }
    }

    .featured-authors-section {
        .featured-author-item {
            gap: 8px;

            .featured-author-details {
                span {
                    width: max-content;
                }
            }
        }
    }

}

@media(max-width: 1240px) {
    .featured-authors-section {
        .featured-author-item {
            gap: 8px;

            img {
                width: 40px;
                height: 40px;
            }

            .featured-author-details {
                span {
                    width: max-content;
                }
            }
        }
    }
}

@media (max-width: 1200px) {
    body .container {
        padding: 0 35px;
    }
}

@media(max-width: 1180px) {
    .popular-insights-section {
        padding: 15px;
    }

    .related-categories-section {
        padding: 15px;

        .related-categories-list {
            padding: 0 6px 3px;
        }
    }

    .featured-authors-section {
        padding: 14px;
    }
}

@media(max-width: 1140px) {
    .popular-insights-section {
        padding: 20px;

        .insights-card {
            gap: 16px !important;
        }

        .insights-card-content {
            .insight-details {
                flex-direction: column;
                align-items: flex-start !important;
                gap: 2px !important;

                span.dot {
                    display: none;
                }
            }
        }
    }

    .related-categories-section {
        padding: 20px;
    }

    .featured-authors-section {
        padding: 20px;

        .featured-author-item {
            gap: 12px;

            img {
                width: 48px;
                height: 48px;
            }

            .featured-author-details {
                flex-direction: column;
                align-items: flex-start !important;
                gap: 2px !important;

                span.dot {
                    display: none;
                }
            }
        }
    }
}

@media (max-width: 1000px) {
    .section-space-top {
        padding-top: 200px;
    }

    .section-space-bottom {
        padding-bottom: 0;
    }
}

@media(max-width: 992px) {
    body header .container{
        padding: 0;
    }
    body footer .container {
    padding: 0 30px;
}
    .popular-insights-section {
        .insights-card-content {
            .insight-details {
                flex-direction: row;
                align-items: center !important;
                gap: 8px !important;

                span.dot {
                    display: inline-block;
                }

                span {
                    font-size: 12px;
                }
            }
        }
    }

    .related-categories-section {

        .related-categories-list {
            padding: 0 12px 12px;
        }
    }

    .featured-authors-section {
        .featured-author-item {
            .featured-author-details {
                flex-direction: row;
                align-items: center !important;
                gap: 4px !important;

                span.dot {
                    display: inline-block;
                }

                span {
                    font-size: 12px;
                }
            }
        }
    }
}

@media (max-width: 768px) {
    body .container {
        padding: 0 30px;
    }
}
