.advanced-blog-widget {
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 20px; */
}

.mpp-navigation {
    display: none;
}

.abw-search-container {
    margin-bottom: 30px;
}

.abw-search-wrapper {
    display: flex;
    gap: 10px;
    max-width: 905px;
    margin: 0 auto;
    position: relative;
    height: 50px;
}

.abw-categories-wrapper > button:first-child {
    margin-left: 16px;
}

.abw-categories-wrapper > button:last-child {
    margin-right : 16px;
}

.abw-search-input {
    flex: 1;
    border: 1px solid #bbcae1 !important;
    border-radius: 15px !important;
    font-size: 15px !important;
    outline: none;
    transition: border-color 0.3s;
    color: #2c354c !important;
    height: 50px !important;
    padding: 0 32px !important;
}

.abw-search-input:focus {
    border-color: var(--primary-color, #0066FF);
}

.abw-search-button {
    position: absolute;
    right: 4px;
    background: var(--primary-color, #0066FF);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    width: 112px;
    height: 42px;
    top: 4px;
}

.abw-search-button:hover {
    background: #0052CC;
}

.abw-search-results {
    margin-top: 20px;
}

.abw-tabs-container {
    margin-bottom: 46px;
    display: flex;
    justify-content: center;
}

.abw-tabs {
    display: inline-flex;
    border: 1px solid #bbcae1;
    border-radius: 17px;
    height: 50px;
    width: 480px;
}

.abw-tab {
    width: 50%;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: #0a152c;
    text-shadow: 0 0 40px black;
    padding: 0;
}


.abw-tab:nth-child(1) {
    border-radius: 17px 0 0 17px;
}

.abw-tab:nth-child(2) {
    border-radius: 0 17px 17px 0;
}

.abw-tab.active {
    background: #edf2fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #23acfb;
    color: #0a152c;
}

.abw-categories-title {
    text-align: center;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    color: #0a152c !important;
    margin: 0 !important;
    line-height: 20px !important;
}

.abw-categories-wrapper {
    display: -webkit-inline-box;
    gap: 10px;
    margin-top: 25px;
    max-width: 100%;
    overflow-x: scroll;
    scrollbar-width: none;
}

.abw-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 294px;
    height: 60px;
    background: white;
    border: 1px solid #bbcae1;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: #23acfb;
    padding: 0 0 0 8px;
}

.abw-category-btn:hover {
    border-color: var(--primary-color, #0066FF);
    color: var(--primary-color, #0066FF);
}

.abw-category-btn.active {
    background: #23acfb;
    color: white;
    border-color: #23acfb;
}

.abw-category-icon {
    display: flex;
    align-items: center;
    width: 50px;
    height: 50px;
    background: #ebf3ff;
    border-radius: 50%;
    justify-content: center;
}

.abw-posts-grid {
    display: grid;
    grid-template-columns: 416px 416px 416px;
    gap: 24px;
    margin-top: 32px;
}

.abw-post-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none !important;
}

.abw-post-card:hover {
    transform: translateY(-5px);
}

.abw-post-thumbnail {
    position: relative;
    height: 318px;
    border-radius: 15px;
}

.abw-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 25px !important;
}

.abw-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    background: linear-gradient(to top, #001d5b 0%, #42129900 34%);
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    border-radius: 25px;
    height: 100%;
    justify-content: flex-end;
}

.abw-post-category {
    color: white;
    padding: 0px 30px;
    font-size: 16px;
    font-weight: 700;
}

.abw-post-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 14px;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.abw-post-icon {
    width: 20px;
}

.abw-post-content {
    padding: 26px 20px;
    font-size: 18px;
    color: #0a152c;
    font-weight: 600;
    text-align: center;
}

.abw-post-title, .abw-post-title > a {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0;
    line-height: 28px !important;
    text-decoration: none !important;
}

.abw-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.abw-post-title a:hover {
    color: var(--primary-color, #0066FF);
}

.abw-post-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 13px;
}

.abw-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.abw-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 45px;
}

.abw-pagination button {
    display: flex;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    justify-content: center;
    align-items: center;
    width: 29px;
    height: 34px;
    color: #0a152e;
    border: 1px solid transparent;
    padding: 0;
    overflow: hidden;
    font-size: 18px;
    font-weight: normal;
    background: transparent;
}

.abw-pagination button:hover {
    background: var(--primary-color, #0066FF);
    color: white
}

.abw-pagination button:hover path {
    fill: white;
}

.abw-pagination button.active {
    background: #23acfb;
    color: white;
    border-color: #ffffff;
}

.abw-loading {
    text-align: center;
    padding: 40px;
}

.abw-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color, #0066FF);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.abw-no-posts {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

@media (max-width: 768px) {
    .abw-posts-grid {
        grid-template-columns: 1fr;
    }

    .abw-categories-wrapper {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .abw-search-wrapper {
        flex-direction: column;
    }
}

/* Search Results Styles */
.abw-search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.abw-pagination-dots {
    padding: 8px;
    color: #999;
}

.abw-filters-container {
    background: white;
    padding: 40px 0 28px;
    border-radius: 25px;
}

span.abw-category-icon > svg {
    width: 34px;
    height: 34px;
}

button.abw-category-btn.active .abw-category-icon {
    background: white;
}

.abw-post-meta > div {
    display: flex;
    gap: 12px;
    align-items: center;
}

.abw-post-icon {
    display: flex;
}

.abw-icon {
    width: 16px;
    height: 16px;
    display: flex;
}

.abw-icon path {
    fill: white;
}

.mpp-posts-container,
.abw-categories-wrapper {
    cursor: grab;
    user-select: none;
}

.mpp-posts-container:active,
.abw-categories-wrapper:active {
    cursor: grabbing;
}


.abw-categories-section > button {
    width: 24px;
    padding: 0;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.abw-arr-left {
    transform: rotate(180deg);
    position: absolute;
    bottom: 20px;
    left: -42px;
}

.abw-arr-right {
    position: absolute;
    bottom: 20px;
    right: -42px;
}

.abw-categories-section {
    position: relative;
}

.abw-categories-section > button path, .abw-categories-section > button rect {
    fill: #23acfb;
}

.mpp-posts-container {
    display: -webkit-inline-box;
    max-width: 100%;
    overflow-x: scroll;
    gap: 22px;
    padding-top: 56px;
    scrollbar-width: none;
}

.mpp-posts-container > div {
    width: 495px;
}

h2.mpp-title {
    text-align: center;
    line-height: 25px !important;
}


@media (max-width: 768px) {
    .abw-search-results-grid {
        grid-template-columns: 1fr;
    }

    .abw-tabs {
        width: 90%;
        justify-content: space-around;
    }

    .abw-tab {
        flex: 1;
        padding: 10px 15px;
        font-size: 13px;
    }

    .mpp-posts-container > div {
        width: 323px;
    }

    .mpp-posts-container > div .abw-post-thumbnail {
        height: 247px;
    }

    .mpp-posts-container > div:first-child {
        margin-left: 18px;
    }

    .mpp-navigation {
        display: flex;
        justify-content: space-between;
    }

    .mpp-navigation > button {
        background: transparent;
        border: none;
        display: flex;
        padding: 0 47px;
    }

    .mpp-navigation .abw-arr-right,
    .mpp-navigation .abw-arr-left {
        position: unset;
        left: 0;
        top: 0;
        right: 0;
    }

    .mpp-navigation svg {
        width: 24px;
    }

    .mpp-navigation .abw-arr-right {
        margin-left: auto;
    }

    .abw-post-category {
        padding: 0 26px;
    }

    .abw-post-overlay,
    .abw-post-content {
        padding: 12px;
        gap: 0px;
    }

    .abw-post-meta > div {
        gap: 6px;
    }

    .abw-categories-section > button {
        display: none;
    }

    .mpp-navigation {
        display: flex;
    }
}


.advanced-blog-widget {
    position: relative;
}

.advanced-blog-widget::after {
    content: "";
    position: absolute;
    bottom: 54px;
    width: 570px;
    height: 80px;
    background: red;
    z-index: -1;
    display : none;
}



.mpp-widget {
    position: relative;
}

.mpp-widget::after {
    content: "";
    position: absolute;
    top: 25px;
    width: 570px;
    height: 56px;
    background: red;
    right: 234px;
    z-index: -1;
    display : none;
}