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

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

.primary-color {
    color: var(--primary-color);
}

.primary-bg {
    background-color: var(--primary-color);
}

p {
    letter-spacing: 0;
}

.secondary-heading {
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 32px;
    &:hover{
        color: var(--primary-color);
    }
}

.view-all-btn {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    &:hover{
        color: var(--primary-color);
    }
    img{
        margin-top: -5px;
    }
}

.no-more-blogs-text {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
}

.title-wrap {
    margin-bottom: 32px;
}

.mb-64 {
    margin-bottom: 64px;
}

/* Header section */

.blog-page {
    padding-top: 130px;
    background-color: #f8f8fa;

    .blog-header {
        margin-bottom: 48px;
        background-color: transparent;

        h1 {
            font-size: 48px;
            line-height: 48px;
        }

        p {
            font-size: 18px;
            line-height: 28px;
            color: var(--text-color);
            max-width: 768px;
            margin: 0;
        }
    }

    .featured-post {
        .featured-post-card {
            gap: 24px;
            box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1),
                0px 10px 15px -3px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            background: linear-gradient(
                    180deg,
                    rgb(255 255 255 / 0%) 0%,
                    rgb(6 6 6 / 86%) 100%
                ),
                url(/images/blog/featured-image.png);
            min-height: 500px;
            padding: 40px;
            background-repeat: no-repeat;
            background-size: cover;

            .featured-post-content {
                gap: 16px;

                a.category-pill {
                    background-color: #bc8418;
                    border-radius: 4px;
                    padding: 4px 12px;
                    font-weight: 12px;
                    font-weight: 600;
                    line-height: 16px;
                    color: #fff;
                }

                p.category-pill {
                    background-color: #bc8418;
                    border-radius: 4px;
                    padding: 4px 12px;
                    font-weight: 12px;
                    font-weight: 600;
                    line-height: 16px;
                    color: #222222;
                }

                .post-title {
                    font-weight: 700;
                    font-size: 36px;
                    line-height: 40px;
                    color: #fff;
                }

                .post-description {
                    font-weight: 400;
                    font-size: 18px;
                    line-height: 28px;
                    color: #fff;
                }
            }

            .post-meta-box {
                .post-author-box {
                    gap: 12px;

                    .author-profile {
                        img {
                            height: 40px;
                            width: 40px;
                            object-fit: cover;
                            border-radius: 50%;
                        }
                    }

                    .author-meta {
                        .author-name {
                            font-size: 16px;
                            line-height: 24px;
                            color: #fff;
                            font-weight: 500;
                        }

                        .post-read-time {
                            font-size: 14px;
                            font-weight: 400;
                            line-height: 20px;
                            color: #d1d5db;
                        }
                    }
                }

                a.post-link {
                    background-color: #bc8418;
                    color: #fff;
                    padding: 12px 24px;
                    border-radius: 3px;
                    font-size: 16px;
                    font-weight: 500;
                    line-height: 24px;
                }
            }
        }
    }

    .explore-topics {
        padding-top: 64px;
        padding-bottom: 11px;

        .explore-topics-box {
            background-color: #ffffff;
            padding: 24px 32px;

            h2 {
                font-size: 20px;
                font-weight: 600;
                line-height: 28px;
                margin-bottom: 24px;
            }

            .category-grid {
                /* overflow-x: scroll; */

                .parent-list {
                    /* display: grid;
                    grid-auto-flow: column;
                    grid-template-rows: 1fr 1fr;
                    grid-auto-columns: calc(25% - 16px); */
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: start;
                    gap: 10px;
                    list-style: none;
                    padding: 0;
                    margin: 0;
                    overflow-x: scroll;
                    scrollbar-width: none;

                    .parent-item {
                        /* position: relative; */
                        border: 1px solid #f3f4f6;
                        background-color: #ffffff;
                        padding: 13px 25px;
                        border-radius: 2px;
                        flex-basis: 24%;

                        .parent-label {
                            display: flex;
                            align-items: center;
                            gap: 23px;
                            cursor: pointer;

                            a {
                                color: var(--text-color);
                                font-size: 14px;
                                font-weight: 500;
                                line-height: 20px;
                                flex-grow: 1;
                            }

                            .cap-icon {
                                transition: all 0.3s ease-in-out;
                                filter: brightness(0) saturate(100%) invert(45%) sepia(0%) saturate(2996%) hue-rotate(45deg) brightness(105%) contrast(85%);
                            }

                            img {
                                height: 14px;
                                width: 14px;
                                object-fit: contain;
                                filter: brightness(0) saturate(100%) invert(45%) sepia(0%) saturate(2996%) hue-rotate(45deg) brightness(105%) contrast(85%);
                            }
                        }

                        .child-list {
                            list-style: none;
                            position: absolute;
                            top: 100%;
                            left: 0;
                            background: #ffffff;
                            border: 1px solid #f3f4f6;
                            border-radius: 8px;
                            padding: 1rem;
                            min-width: 100%;
                            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
                            opacity: 0;
                            visibility: hidden;
                            transform: translateY(10px);
                            transition: all 0.3s ease;
                            z-index: 100;
                            min-width: 200px;
                            width: 200px;

                            li {
                                justify-content: space-between;
                                padding-bottom: 14px;

                                span {
                                    font-size: 13px;

                                    a {
                                        color: #212529;
                                        text-decoration: none;
                                        &:hover{
                                            color: var(--primary-color);
                                        }
                                    }

                                    &:nth-child(2) {
                                        color: #bfc4ca;
                                    }
                                }

                                &:nth-last-child(2) {
                                    border-bottom: 1px solid #eeeeee;
                                }
                            }

                            a.view-all-btn {
                                margin-top: 18px;
                                font-size: 14px;
                                color: var(--primary-color);
                                text-decoration: none;
                                font-weight: 500;
                                gap: 10px;
                            }

                            .category-info {
                                border-bottom: 1px solid #eeeeee;
                                margin-bottom: 18px;
                                padding-bottom: 10px;

                                .category-heading {
                                    font-weight: bold;
                                    margin: 0;
                                    font-size: 14px;
                                    margin-bottom: 5px;
                                    &:hover{
                                        color: var(--primary-color);
                                    }
                                }

                                .category-description {
                                    color: #666666;
                                    font-size: 11px;
                                    margin: 0;
                                }
                            }
                        }

                        &:hover {
                            border-color: var(--primary-color);

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

                            .child-list {
                                opacity: 1;
                                visibility: visible;
                                transform: translateY(1px);
                            }
                        }
                    }
                }
            }
        }
    }

    .latest-articles {
        margin-bottom: 53px;
        .articles {
            row-gap: 24px;
        }
        .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: 32px;
            background-color: #f8f8fa;
        }
    }

    .meet-experts {
        .team-carousel {
            padding-bottom: 88px;
            .swiper-wrapper {
                .swiper-slide {
                    display: flex !important;
                    height: unset !important;
                }
            }
        }
    }

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

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

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

.category-slide-button {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    box-shadow: -1px 1px 9px 2px rgb(0 0 0 / 28%);
    position: absolute;
    background: #fff;
    transform: translate(0px, 2px);
    cursor: pointer;
    z-index: 3;
}
.category-slide-button.left-slide-button {
    left: 44px;
    transform: rotate(180deg) translate(0px, -4px);
}
.category-slide-button.right-slide-button {
    right: 44px;
    transform: translateY(-44px);
}
.our-mission {
    display: none;
}
.article-card {
    & .article-card-footer {
        & .article-read-more {
            span {
                margin-right: 0;
            }
            img{
                margin-top: -4px;
            }
        }
    }
}
body footer .container {
    max-width: 1140px !important;
}

.category-grid{
    .parent-list {
        .parent-item {
            a.view-all-btn{
                img{
                    margin-top: 0;
                }
            }
        }
    }
}

body.filter-panel-lock {
  overflow: hidden;
}

.filter-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-panel-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.blog-category-filter-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.blog-category-filter-panel.open {
  transform: translateX(0);
}

/* Rest of your styles remain unchanged */
.blog-category-filter-toggle {
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    height: 50px;
    padding-inline: 25px;
    color: var(--primary-color);
    display: block;
    align-content: center;
    font-weight: 500;
    margin-bottom: 32px;
    background-color: #f8f8fa;
}

.blog-category-filter-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.blog-category-filter-panel-header h3 {
  margin: 0;
  font-size: 20px;
  color: var(--primary-color);
}

.blog-category-filter-close {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

.blog-category-filter-list,
.blog-category-filter-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-category-filter-list li {
  position: relative;
  margin-bottom: 10px;
}

.blog-category-filter-list li a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: var(--text-color);
  background-color: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
}

.blog-category-filter-list li a:hover {
  background-color: #e0e0e0;
}

.blog-category-filter-sublist {
  display: none;
  margin-top: 5px;
  margin-left: 15px;
}

.blog-category-filter-list li.open > .blog-category-filter-sublist {
  display: block;
}



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

@media (max-width: 992px) {
    .blog-page .explore-topics .explore-topics-box .category-grid .parent-list {
        .parent-item {
            min-width: calc(100% / 3 - 7px);
        }
    }
    .blog-page .explore-topics .explore-topics-box .category-grid .parent-list {
        flex-wrap: nowrap;
        overflow: scroll;
        .parent-item {
            min-width: fit-content;
        }
    }
    .explore-topics-box{
        display: none;
    }
    .blog-category-filter-toggle{
        display: block;
    }
}

@media (min-width: 993px) {
    .blog-category-filter-toggle{
        display: none;
    }
}
@media (max-width: 768px) {
    body .container {
        padding: 0 30px;
    }
}

@media (max-width: 560px) {
    .secondary-heading {
        font-size: 24px;
    }

    .blog-page {
        .blog-header {
            h1 {
                font-size: 36px;
                line-height: 48px;
            }

            p {
                font-size: 16px;
                line-height: 24px;
            }
        }

        .featured-post {
            .featured-post-card {
                padding: 25px;

                .featured-post-content {
                    .post-title {
                        font-size: 30px;
                    }

                    .post-description {
                        font-size: 16px;
                    }
                }

                .post-meta-box {
                    flex-direction: column;
                    align-items: start !important;
                    gap: 16px;
                }
            }
        }

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

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

@media (max-width: 425px) {
.blog-category-filter-toggle{
    width: 100%;
}
}

@media (max-width: 388px) {
    .category-slide-button.right-slide-button {
        transform: translateY(-44px);
    }
}
@media (max-width : 382px){
    .category-slide-button.right-slide-button{
        transform: translateY(-56px);
    }
    .category-slide-button.left-slide-button{
            transform: rotate(180deg) translate(0px, -12px);
    }
}