.ai-post-section {
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(248, 251, 255) 25%, rgb(212, 230, 249) 50%, rgb(248, 251, 255) 75%, rgb(255, 255, 255) 100%);
}

.ai-header-post-container {
    max-width: 1024px;
    height: 420px;

    padding: 32px 14px;
    margin: auto;
    margin-bottom: 50px;
}



.ai-header-post-wrapper {
    width: 100%;
    height: 100%;
    background-color: #ffffffad;
    border-radius: 14px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition: 0.4s;
}


.ai-header-post-wrapper:hover {
    transform: translate(0px, -5px);
    box-shadow: 0 15px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.ai-header-post-container a {
    display: block;
    height: 100%;
    width: 100%;
}

.ai-header-post {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

.ai-header-post-image-container {
    width: 60%;
    height: 100%;
    padding: 24px;
}

.ai-header-post-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px !important;
}

.ai-header-post-image {
    height: 100%!important;
    width: 100%;
    object-fit: cover;
    object-position: center center;
    overflow: hidden;
    transition: 0.4s;
}

.ai-header-post-wrapper:hover .ai-header-post-image {
    transform: scale(1.05);
}

.ai-header-post-content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40%;
    height: 100%;
    padding: 24px;
    margin: auto;
}

.ai-header-post-badge {
    width: fit-content;
    margin: auto;
    text-align: center;
    color: #012F6B;
    font-size: 14px;
    font-weight: bold;
    position: relative;
}

.ai-header-post-badge::before,
.ai-header-post-badge::after {
    content: " ";
    position: absolute;
    top: 50%;
    width: 48px;
    height: 4px;
    border-radius: 20px;
    background-color: #FFD800;
    transform: translate(0, -50%);
}

.ai-header-post-badge::before {
    left: calc(-100% - 16px);
}

.ai-header-post-badge::after {
    right: calc(-100% - 16px);
}

.ai-header-post-title {
    color: #012F6B;
    font-size: 24px;
    text-align: center;
    font-weight: bold;
}

.ai-heade-post-excerpt-container {
    font-size: 16px;
    text-align: center;
    color: #000000;
}

.ai-header-post-read-more-container {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    background-color: #FFD800;
    border-radius: 10px;
    padding: 12px 32px;
    margin: auto;
    transition: 0.4s;
}

.ai-header-post-read-more-container:hover {
    background-color: #ffd900b0;
    transform: scale(1.05) translate(0px, -5px);
}

/******************/

.ai-posts-holder {
    max-width: 1024px;
    margin: auto;
    padding: 32px 24px;
}

.ai-post-container {
    width: 100%;
    height: fit-content;
    padding: 16px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    margin-top: 16px;
    background-color: #ffffffad;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: 0.4s;
}

.ai-post-container:hover {
    /* transform: translate(0px, -5px); */
    box-shadow: 0 15px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* .ai-post-container:nth-child(even) {
    background: #F5F9FF;
    } */

.ai-post-wrapper {
    width: 100%;
    height: 180px;
}

.ai-post-wrapper a {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: reverse;
    justify-content: space-between;
    column-gap: 24px;
}

.ai-post-image-container {
    width: 320px;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.elementor img.ai-post-image {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    transition: 0.4s;
}

.ai-post-container:hover .ai-post-image {
    transform: scale(1.05);
}

.ai-post-content-container {
    display: flex;
    flex-direction: column;
    width: calc(100% - 24px - 320px);
    max-width: 690px;
    height: fit-content;
}

.ai-post-title {
    font-size: 22px;
    color: #012F6B;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ai-post-excerpt-container {
    font-size: 16px;
    color: black;
    margin-bottom: 12px;
    line-height: 1.6;
}

.ai-post-read-more-container {
    padding: 0px 10px;
}

.ai-post-read-more-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    /* line-height: 24px; */
    color: #012F6B;
    background-color: #FFD800;
    margin-top: auto;
    border-radius: 8px;
    padding: 12px 24px;
    width: fit-content;
    text-align: center;
}

.ai-post-read-more-container {
    color: #000000;
    transition: 0.4s;
    margin: 0;
    width: fit-content;
}

.ai-post-read-more-container:hover {
    cursor: pointer;
    background-color: #ffd900b0;
    transform: scale(1.05) translate(0px, -5px);
}

.ai-post-read-more-container p i {
    display: none;
    color: #FFD800;
    margin-left: 5px;
}

.ai-post-read-more-container p:hover i {
    margin-left: 20px;
    transition: 0.4s;
}


@media only screen and (max-width: 1199px) {

    .ai-posts-holder {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 5px;
        row-gap: 5px;
    }

    .ai-post-wrapper {
        height: unset;
    }

    .ai-post-wrapper a {
        flex-direction: column;
    }

    .ai-post-image-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: unset;
        height: unset;
        margin-bottom: 5px;

    }

    .elementor img.ai-post-image {
        width: fit-content;
        height: 190px;

    }

    .ai-post-content-container {
        margin: auto;
        width: 100%;
    }

    .ai-post-read-more-container {
        margin: auto;
    }

    /* .ai-posts-holder {
        /* display: grid;
        grid-column-gap: 60px;
        grid-row-gap: 60px;
        grid-template-columns: repeat(2, 1fr); */
}

/*

    .ai-post-wrapper a {
        flex-direction: column;
    }

    .ai-post-image-container {
        width: 100%;
        height: 300px;
    }

    .elementor img.ai-post-image {
        object-fit: cover;
    }

    .ai-post-content-container {
        width: 100%;
        margin-top: 20px;
    } */



@media only screen and (max-width: 866px) {
    .ai-header-post-container {
        /* width: 340px; */
        height: unset;
    }

    .ai-header-post {
        flex-direction: column;
    }

    .ai-header-post-image-container {
        margin: auto;
    }

    .ai-header-post-image-wrapper {
        /* width: 60%; */
        margin: auto;
    }

    .ai-header-post-content-container {
        width: 60%;
    }
}

@media only screen and (max-width: 699px) {
    .ai-post-container {
        padding: 50px 5%;
    }

    .ai-header-post-container {
        max-width: 340px;
    }

    .ai-header-post-image-container,
    .ai-header-post-content-container {
        width: 100%;
    }

    .ai-posts-holder {
        display: grid;
        grid-template-columns: 1fr;
        column-gap: 5px;
        row-gap: 5px;
    }

    .elementor img.ai-post-image {
        height: unset;
    }

}