/**
 * Elementor Post Carousel Styles
 */

.epc-swiper-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 10px 10px 50px 10px;
    /* Added padding for shadows and pagination */
}

.epc-post-slide {
    height: auto;
    display: flex;
}

.epc-post-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.epc-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.epc-post-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 60%;
    /* Aspect ratio placeholder */
}

.epc-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.epc-post-card:hover .epc-post-image img {
    transform: scale(1.1);
}

/* Gradient Overlay on Image Hover */
.epc-post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.epc-post-card:hover .epc-post-image::after {
    opacity: 1;
}

.epc-post-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.epc-post-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #2d3748;
}

.epc-post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.epc-post-title a:hover {
    color: #0073aa;
}

.epc-post-excerpt {
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    flex-grow: 1;
}

.epc-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 115, 170, 0.2);
}

.epc-read-more:hover {
    background: #005177;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 115, 170, 0.3);
}

/* Navigation Overrides */
.epc-swiper-button-next,
.epc-swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    color: #2d3748;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.epc-swiper-button-prev {
    left: 10px;
}

.epc-swiper-button-next {
    right: 10px;
}

.epc-swiper-button-next:hover,
.epc-swiper-button-prev:hover {
    background: #0073aa;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.3);
}

.epc-swiper-button-next svg,
.epc-swiper-button-prev svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
}

.epc-swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e0;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #0073aa;
    width: 24px;
    border-radius: 4px;
}