.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;
    }
}

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

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

p {
    letter-spacing: 0;
}

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

.secondary-heading {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}


.swiper {
    padding-bottom: 88px;
    .swiper-slide{
        display: flex !important;
        height: unset !important;
    }
}

.author-banner {
    padding: 32px;
    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);
    border-radius: 12px;

    .author-img {
        border-radius: 50%;
        width: 128px;
        height: 128px;
        border: 4px solid var(--primary-color);

        img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }
    }

    .author-name {
        font-size: 36px;
        font-weight: 600;
        line-height: 40px;
        color: var(--primary-color);
        margin-bottom: 8px;
    }

    .author-position {
        font-size: 18px;
        font-weight: 400;
        line-height: 28px;
        color: var(--text-color);
        margin-bottom: 18px;
    }
}

.author-about {
    .author-about-content {
        padding: 32px;
        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);
        border-radius: 12px;
        margin-top: 40px;
        p{
            color: var(--text-color);
        }
    }

    .about-me-wrap {
        margin-bottom: 32px;
    }

    .expertise-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin: 0 auto;
        margin-bottom: 32px;
    }

    .expertise-wrap {
        background-color: #F9FAFB;
        border-radius: 8px;
        padding: 16px;

        .expertise-title {
            font-size: 16px;
            line-height: 24px;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        p {
            margin: 0;
        }
    }
        p {
            font-size: 18px;
        }
}

.timeline {
    margin-bottom: 32px;

    .timeline-wrap {
        position: relative;

        &:not(:last-child)::after {
            content: '';
            width: 2px;
            height: 100%;
            background-color: #E5E7EB;
            position: absolute;
            left: 4px;
            top: 6px;
            z-index: 1;
        }
    }

    .job-title {
        font-size: 16px;
        line-height: 24px;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 4px;
        display: block;
        position: relative;

        &::before {
            content: '';
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: var(--primary-color);
            position: absolute;
            left: -25px;
            top: 6px;
            z-index: 2;
        }
    }

    .date {
        display: block;
        margin-bottom: 4px;
        font-size: 14px;
        line-height: 20px;
        font-weight: 400;
        color: #6B7280;
    }

    .description {
        display: block;
        padding-bottom: 16px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
        color: var(--text-color);
    }
}

.education {
    .education-title {
        font-size: 16px;
        line-height: 24px;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 8px;
    }

    ul {
        list-style-type: none;
        padding-left: 30px;

        li {
            position: relative;

            &::before {
                content: url('/img/icons/education-list-icon.png');
                position: absolute;
                left: -30px;
                top: 2px;
            }
        }
    }

    .degree {
        font-size: 16px;
        line-height: 24px;
        font-weight: 500;
        color: var(--text-color);
    }

    .university {
        font-size: 14px;
        line-height: 20px;
        font-weight: 400;
        margin-bottom: 8px;
        color: var(--text-color);
        display: block;
    }
}

.certifications {
    ul {

        li {

            &::before {
                content: url('/img/icons/certification-list-icon.png');
            }
        }
    }
}

.author-articles {
    .secondary-heading {
        font-size: 30px;
        margin-top: 40px;
        margin-bottom: 24px;
    }
    #articles-container{
        row-gap: 24px;
    }
}

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

        .tab-item {
            font-size: 14px;
            font-weight: 500;
            line-height: 20px;
            padding: 8px 16px;
            background-color: #F3F4F6;
            border-radius: 4px;
            cursor: pointer;
            color: var(--text-color);
        }

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

        .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: var(--text-color);
                    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;
                }
            }
        }

        .search-field {
            font-size: 14px;
            font-weight: 400;
            line-height: 20px;
            padding: 7px 12px;
            background-color: #F3F4F6;
            border-radius: 8px;

            .search-btn {
                background: none;
                outline: none;
                box-shadow: none;
                border: none;
            }

            .search-input {
                border: none;
                outline: none;
                background: none;
                margin-left: 5px;
            }
        }
    }

}

.load-more-btn {
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    height: 50px;
    padding-inline: 25px;
    color: var(--primary-color);
    display: inline-block;
    align-content: center;
    font-weight: 500;
    margin-top: 48px;
}

.tab-bar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tab-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding: 0 40px 0 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar in Chrome/Safari */
}

.tab-item {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    flex: 0 0 auto;
}

.tab-item:hover {
    background-color: #f0f0f0;
}

.tab-item.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.scroll-arrow {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 4px 8px 5px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 1;
}

.scroll-arrow.left {
    margin-right: 10px;
}

.scroll-arrow.right {
    margin-left: 10px;
}

.tab-bar-wrapper:hover .scroll-arrow.left {
    opacity: 1;
    /* Show left arrow only when canScrollLeft is true (handled by v-show) */
}

.tab-bar-wrapper:hover .scroll-arrow.right {
    opacity: 1;
    /* Show right arrow only when canScrollRight is true (handled by v-show) */
}

.scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease-in-out;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.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;
}
/* Responsive: Show dropdown on small screens */
@media (max-width: 768px) {
    .author-about {
        .expertise-container {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

.meet-experts {
    .secondary-heading {
        font-size: 30px;
        line-height: 36px;
    }

    .team-carousel {
        .swiper {
            padding-bottom: 88px;
        }
    }
}

.newsletter-insights {
    padding-bottom: 97px;

    .newsletter-wrap {
        background-color: var(--primary-color);
        text-align: center;
        border-radius: 12px;
        padding: 32px 24px;

        .secondary-heading {
            font-size: 30px;
            line-height: 36px;
        }

        .newsletter-description {
            color: #E5E7EB;
            font-size: 16px;
            font-weight: 400;
            line-height: 24px;
            margin-bottom: 24.5px;
            max-width: 767px;
        }

        .newsletter-agreement-desc {
            color: #D1D5DB;
            font-size: 12px;
            font-weight: 400;
            line-height: 16px;
            margin-top: 16px;

            a {
                text-decoration: none;
                color: inherit;
            }
        }

        input {
            width: 100%;
            max-width: 633px;
            height: 48px;
            min-height: 48px;
            border-radius: 4px;
            padding-inline: 16px;
            border: none;
            outline: none;
            font-size: 14px;
            margin-bottom: 12px;
        }

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

@media (min-width: 1100px) {
    body {
        .author-articles {
            .articles-wrap {
                .row {
                    row-gap: 0;

                    .col-lg-7 {
                        flex: 0 0 auto;
                        width: 58.33333333% !important;
                    }

                    .col-lg-2 {
                        flex: 0 0 auto;
                        width: 16.66666667% !important;
                    }

                    .col-lg-3 {
                        flex: 0 0 auto;
                        width: 25% !important;
                    }
                }

            }
        }
    }
}

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

@media (min-width: 992px) {
    .author-articles {
        .articles-wrap {
            .row {
                row-gap: 16px;

                .col-lg-7 {
                    flex: 0 0 auto;
                    width: 100%;
                }

                .col-lg-2 {
                    flex: 0 0 auto;
                    width: 30% !important;
                }

                .col-lg-3 {
                    flex: 0 0 auto;
                    width: 70% !important;
                }
            }
        }
    }
}

@media (max-width: 991px) {
    .author-articles {
        .articles-wrap {
            .row {
                row-gap: 16px;
            }
        }
    }
    body header .container{
        padding: 0;
    }
    body footer .container{
        padding: 0 30px;
    }
}

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

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

@media (max-width: 560px) {
    .author-about {
        .expertise-container {
            grid-template-columns: 1fr;
        }
    }

    .newsletter-insights {

        .newsletter-wrap {
            .form-wrap {
                align-items: center;

                input {
                    margin-bottom: 0;
                }
            }
        }
    }
}