.xio-custom-posts {
    width: 100%;
}

.xio-custom-posts__container {
    display: grid !important;
    grid-template-areas:
        "large small-1"
        "large small-2";
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin: 20px 0;
}

.xio-custom-posts__post-link {
    text-decoration: none;
    color: inherit;
}

.xio-custom-posts__post-link--large {
    grid-area: large;
}

.xio-custom-posts__post-link--small-1 {
    grid-area: small-1;
}

.xio-custom-posts__post-link--small-2 {
    grid-area: small-2;
}

.xio-custom-posts__post--large {
    background: #ffffff;
    border-radius: 10px;
}

.xio-custom-posts__post--large:hover,
.xio-custom-posts__post--small:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition-duration: 0.5s;
}

.xio-custom-posts__post--large:hover h2,
.xio-custom-posts__post--small:hover h2 {
    color: #7d5ca8;
    transition-duration: 0.2s;
}

.xio-custom-posts__post-content {
    padding: 20px;
}

.xio-custom-posts__post-content h2 {
    color: var(--e-global-color-primary);
}

.xio-custom-posts__post-content p {
    font-size: 16px;
    color: var(--e-global-color-text);
}

.xio-custom-posts__post-image img {
    border-radius: 10px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

.xio-custom-posts__post--large img,
.xio-custom-posts__post--small img {
    aspect-ratio: 549 / 398;
}

.xio-custom-posts__post--large h2 {
    font-size: 30px;
    font-weight: bold;
    color: var(--e-global-color-primary);
    margin: 10px 0;
}

.xio-custom-posts__post--small {
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.xio-custom-posts__post--small .xio-custom-posts__post-image {
    width: 60%;
}

.xio-custom-posts__post--small .xio-custom-posts__post-content {
    width: 40%;
    align-self: center;
}

.xio-custom-posts__post--small h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 8px 0;
}

.xio-custom-posts__post--large .xio-custom-posts__post-date,
.xio-custom-posts__post--small .xio-custom-posts__post-date {
    font-size: 14px;
    color: var(--e-global-color-642d59f);
    margin-bottom: 10px;
}

.xio-custom-posts__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.xio-custom-posts__pagination-btn {
    padding: 5px 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.xio-custom-posts__pagination-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.xio-custom-posts__pagination-btn:hover:not(:disabled) {
    color: #0073aa;
}

.xio-custom-posts__pagination-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.xio-custom-posts__pagination-number {
    font-size: 16px;
    font-weight: bold;
    color: var(--e-global-color-text);
    cursor: pointer;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

.xio-custom-posts__pagination-number--active {
    color: var(--e-global-color-accent);
    border-color: var(--e-global-color-accent);
    cursor: default;
}

.xio-custom-posts__pagination-number:hover:not(.xio-custom-posts__pagination-number--active) {
    color: var(--e-global-color-accent);
    border-color: var(--e-global-color-accent);
}

.xio-custom-posts__pagination-btn-number {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    padding: 0;
}

.xio-custom-posts__pagination-btn-number--active {
    color: var(--e-global-color-accent);
}

.xio-custom-posts__pagination-dots {
    display: flex;
    align-items: center;
}

.xio-custom-posts__pagination-dots span {
    color: var(--e-global-color-text);
}

@media (max-width: 768px) {
    .xio-custom-posts__container {
        grid-template-areas:
            "large"
            "small-1"
            "small-2";
        grid-template-columns: 1fr;
    }

    .xio-custom-posts__post--small {
        flex-direction: column;
    }

    .xio-custom-posts__post--small .xio-custom-posts__post-image,
    .xio-custom-posts__post--small .xio-custom-posts__post-content {
        width: 100%;
    }
}
