/**
 * One Elementor - One Post Grid Widget
 * Post Grid Styles
 */

/* ========================================
   Post Grid Container
======================================== */
.oe-post-grid-wrapper {
    width: 100%;
}

.oe-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 20px;
}

/* ========================================
   Post Item Card
======================================== */
.oe-post-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.oe-post-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   Post Image
======================================== */
.oe-post-image {
    position: relative;
    overflow: hidden;
    background-color: #F5F5F5;
    height: auto;
    line-height: 0;
}

.oe-post-image img {
    width: 100%;
    height: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    vertical-align: top;
}

.oe-post-item:hover .oe-post-image img {
    transform: scale(1.05);
}

.oe-post-image a {
    display: block;
    height: 100%;
    line-height: 0;
}

/* ========================================
   Post Content
======================================== */
.oe-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

/* Post Title */
.oe-post-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #333333;
}

.oe-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.oe-post-title a:hover {
    color: #FF6B6B;
}

/* ========================================
   Post Meta
======================================== */
.oe-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999999;
    margin-top: auto;
}

.oe-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.oe-post-meta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
}

.oe-post-date {
    color: #999999;
}

.oe-post-comments,
.oe-post-views {
    color: #999999;
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .oe-post-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 15px;
        row-gap: 15px;
    }

    .oe-post-image {
    }

    .oe-post-content {
        padding: 15px;
        gap: 10px;
    }

    .oe-post-title {
        font-size: 15px;
    }

    .oe-post-meta {
        font-size: 12px;
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .oe-post-grid {
        grid-template-columns: repeat(1, 1fr);
        column-gap: 10px;
        row-gap: 10px;
    }

    .oe-post-image {
    }

    .oe-post-content {
        padding: 15px;
    }

    .oe-post-title {
        font-size: 14px;
    }

    .oe-post-meta {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .oe-post-content {
        padding: 12px;
    }

    .oe-post-title {
        font-size: 14px;
    }

    .oe-post-meta {
        font-size: 11px;
        gap: 10px;
    }
}

/* ========================================
   Carousel - Swiper
======================================== */
.oe-post-carousel {
    position: relative;
}

.oe-post-carousel .swiper {
    width: 100%;
    height: 100%;
}

.oe-post-carousel .swiper-slide {
    height: auto;
}

.oe-post-carousel .oe-post-item {
    height: 100%;
}

/* Navigation Arrows */
.oe-post-carousel .swiper-button-prev,
.oe-post-carousel .swiper-button-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.oe-post-carousel .swiper-button-prev:after,
.oe-post-carousel .swiper-button-next:after {
    content: none;
    display: none;
}

.oe-post-carousel .swiper-button-prev svg,
.oe-post-carousel .swiper-button-next svg {
    width: 26px;
    height: 26px;
}

.oe-post-carousel .swiper-button-prev {
    left: 0;
}

.oe-post-carousel .swiper-button-next {
    right: 0;
}

.oe-post-carousel .swiper-button-prev:hover,
.oe-post-carousel .swiper-button-next:hover {
    background-color: #FF6B6B;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.oe-post-carousel .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.oe-post-carousel .swiper-button-disabled:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1);
}

/* Pagination Dots */
.oe-post-carousel .swiper-pagination {
    position: relative;
    margin-top: 35px;
    bottom: auto;
}

.oe-post-carousel .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background-color: #d0d0d0;
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.oe-post-carousel .swiper-pagination-bullet:hover {
    background-color: #999999;
    transform: scale(1.2);
}

.oe-post-carousel .swiper-pagination-bullet-active {
    width: 35px;
    background-color: #FF6B6B;
    border-radius: 7px;
}

/* Responsive */
@media (max-width: 1024px) {
    .oe-post-carousel {
    }

    .oe-post-carousel .swiper-button-prev,
    .oe-post-carousel .swiper-button-next {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 768px) {
    .oe-post-carousel {
    }

    .oe-post-carousel .swiper-button-prev,
    .oe-post-carousel .swiper-button-next {
        width: 42px;
        height: 42px;
    }

    .oe-post-carousel .swiper-button-prev svg,
    .oe-post-carousel .swiper-button-next svg {
        width: 22px;
        height: 22px;
    }

    .oe-post-carousel .swiper-pagination {
        margin-top: 28px;
    }

    .oe-post-carousel .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        margin: 0 5px;
    }

    .oe-post-carousel .swiper-pagination-bullet-active {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .oe-post-carousel {
    }

    .oe-post-carousel .swiper-button-prev,
    .oe-post-carousel .swiper-button-next {
        width: 38px;
        height: 38px;
    }

    .oe-post-carousel .swiper-button-prev svg,
    .oe-post-carousel .swiper-button-next svg {
        width: 20px;
        height: 20px;
    }

    .oe-post-carousel .swiper-pagination {
        margin-top: 25px;
    }

    .oe-post-carousel .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    .oe-post-carousel .swiper-pagination-bullet-active {
        width: 24px;
    }
}

/* ========================================
   Pagination
======================================== */
.oe-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.oe-pagination a,
.oe-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.oe-pagination a {
    background-color: #f5f5f5;
    color: #333333;
}

.oe-pagination a:hover {
    background-color: #FF6B6B;
    color: #ffffff;
    transform: translateY(-2px);
}

.oe-pagination span.current,
.oe-pagination .current {
    background-color: #FF6B6B;
    color: #ffffff;
    cursor: default;
}

.oe-pagination .oe-pagination-dots,
.oe-pagination .dots {
    background: none;
    color: #999999;
    pointer-events: none;
    min-width: auto;
    padding: 8px 4px;
}

.oe-pagination .oe-pagination-prev,
.oe-pagination .oe-pagination-next,
.oe-pagination .prev,
.oe-pagination .next {
    font-weight: 600;
}

/* Pagination responsive */
@media (max-width: 768px) {
    .oe-pagination {
        margin-top: 20px;
        gap: 3px;
    }

    .oe-pagination a,
    .oe-pagination span {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .oe-pagination a,
    .oe-pagination span {
        min-width: 32px;
        height: 32px;
        padding: 4px 8px;
        font-size: 12px;
    }
}