/* Wrapper */
.ec-swiper-wrapper {
    position: relative;
    padding: 10px 0 50px;
}

/* Card design */
.ec-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    height: 520px;
    transition: transform 0.3s ease;
}
.ec-card:hover {
    transform: translateY(-4px);
}

/* Image */
.ec-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}
.ec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ec-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* Content area */
.ec-content {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Date badge */
.ec-date {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #00A2FF;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

/* Title */
.ec-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}
.ec-title a {
    color: #1a1a1a;
    text-decoration: none;
}
.ec-title a:hover {
    color: #00A2FF;
}

/* Excerpt */
.ec-excerpt {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

/* Read More Button */
.ec-btn {
    display: inline-block;
    margin-top: auto;
    padding: 9px 20px;
    background: #00A2FF;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    transition: background 0.2s ease;
}
.ec-btn:hover {
    background: #c44a18;
    color: #fff;
}

/* Swiper arrows custom styling */
.ec-prev, .ec-next {
    color: #e85d24 !important;
}
.ec-prev::after, .ec-next::after {
    font-size: 18px !important;
    font-weight: bold;
}

/* Dots */
.ec-pagination .swiper-pagination-bullet-active {
    background: #e85d24 !important;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .ec-image {
        height: 160px;
    }
    .ec-content {
        padding: 14px 16px 18px;
    }
    .ec-title {
        font-size: 15px;
    }
}