.elementor-widget-magenest_news_tabs {
    width: 100%;
}

.magenest-tabs-nav {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #C4D5FF;
    margin: 0 0 37px;
}

.magenest-tab-title {
    padding: 15px 40px;
    cursor: pointer;
    position: relative;
    color: #333333;
    font-size: 20px;
    line-height: 24px;
    transition: all 0.3s;
    /*width: 33.3333%;*/
    flex: 1;
    text-align: center;
}

.magenest-tab-title.is-active {
    color: #153674;
    font-family: "Hubot Sans", Sans-serif;
    font-weight: 600;
}

.magenest-tab-title.is-active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #153674;
}

.magenest-tab-title.is-active::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 4px;
    background-image: url('../../img/down-mark.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: block;
    z-index: 2;
}


.magenest-tab-title.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #153674;
}

.magenest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Card Styling */
.magenest-post-card .post-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    max-height: 240px;
}

.magenest-post-card .post-thumbnail a {
    display: block;
    height: 100%;
}

.magenest-post-card .post-thumbnail img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.magenest-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.magenest-post-card .post-info {
    padding: 24px;
}

.magenest-post-card .post-category-tag {
    font-size: 16px;
    line-height: 24px;
    color: #959595;
    margin: 0 0 16px;
}

.magenest-post-card .post-title,
.magenest-post-card .post-title a {
    font-family: "Hubot Sans", Sans-serif !important;
    font-weight: 600 !important;
    font-size: 20px;
    color: #333;
    text-decoration: none;
    line-height: 28px;
}

.magenest-post-card .post-title {
    margin: 0 0 16px;
    min-height: 56px;
}

.magenest-post-card .post-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magenest-post-card .post-excerpt {
    font-size: 16px;
    line-height: 24px;
    color: #333333;
}

.magenest-tabs-footer {
    text-align: center;
    margin-top: 32px;
    justify-content: center;
    display: flex;
}

.btn-view-all {
    display: block;
    width: fit-content;
    padding: 13.5px 24px;
    background-color: #153674;
    border: 1px solid #2A2EA9;
    box-shadow: 0px 3px 0px 0px #7D9FFD inset !important;
    -moz-box-shadow: 0px 3px 0px 0px #7D9FFD inset !important;
    -webkit-box-shadow: 0px 3px 0px 0px #7D9FFD inset !important;
    -o-box-shadow: 0px 3px 0px 0px #7D9FFD inset !important;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -o-border-radius: 8px;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 24px;
}

@media (max-width: 991px) {
    .magenest-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .magenest-news-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .magenest-tabs-nav {
        flex-wrap: wrap;
    }

    .magenest-tab-title {
        font-size: 14px;
        line-height: 20px;
        padding: 10px;
    }

    .magenest-post-card .post-thumbnail img,
    .magenest-post-card .post-thumbnail {
        max-height: 200px;
    }

    .magenest-post-card .post-info {
        padding: 10px;
    }

    .magenest-post-card .post-category-tag {
        font-size: 14px;
        line-height: 20px;
        margin: 0 0 10px;
    }

    .magenest-post-card .post-title,
    .magenest-post-card .post-title a {
        font-size: 16px;
        line-height: 24px;
    }

    .magenest-post-card .post-title {
        margin: 0 0 10px;
        min-height: 48px;
    }
}
