/* ==========================================================================
   WDB POST MODELS — Blog Carousel Widget
   ========================================================================== */

/* ==========================================================================
   WRAPPER
   ========================================================================== */
.wdb-post-models {
    width: 100%;
}

.wdb-pm-slider {
    overflow: hidden;
}

.wdb-pm-slider .swiper-slide {
    height: auto;
}

/* ==========================================================================
   POST CARD
   ========================================================================== */
.wdb-pm-card {
    position: relative;
    padding-bottom: 80px;
}

/* Image */
.wdb-pm-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.wdb-pm-img-wrap img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.wdb-pm-card:hover .wdb-pm-img-wrap img {
    transform: scale(1.08);
}

/* ==========================================================================
   DATE BADGE
   ========================================================================== */
.wdb-pm-date {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    transition: background 0.3s, color 0.3s;
    z-index: 2;
}

.wdb-pm-date .wdb-pm-day {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    transition: color 0.3s;
}

.wdb-pm-date .wdb-pm-month {
    font-size: 13px;
    font-weight: 500;
    color: #6c6c8a;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.wdb-pm-card:hover .wdb-pm-date {
    background: #7c6cf0;
}

.wdb-pm-card:hover .wdb-pm-date .wdb-pm-day {
    color: #fff;
}

.wdb-pm-card:hover .wdb-pm-date .wdb-pm-month {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

/* ==========================================================================
   CATEGORY BADGE
   ========================================================================== */
.wdb-pm-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #7c6cf0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    transition: background 0.3s;
}

.wdb-pm-cat:hover {
    background: #1a1a2e;
    color: #fff;
}

/* ==========================================================================
   CONTENT OVERLAY
   ========================================================================== */
.wdb-pm-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 95%;
    margin: 0 auto;
    height: 140px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    border: 1px solid #ededed;
    backdrop-filter: blur(2px);
    transition: height 0.5s ease;
    overflow: hidden;
}

.wdb-pm-card:hover .wdb-pm-content {
    height: 320px;
}

/* ==========================================================================
   META TAGS
   ========================================================================== */
.wdb-pm-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.wdb-pm-meta a {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 12px;
    border: 1px solid #ededed;
    backdrop-filter: blur(5px);
    color: #1a1a2e;
    text-decoration: none;
    transition: all 0.3s;
}

.wdb-pm-meta a svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #7c6cf0;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.wdb-pm-meta a:hover {
    background: #7c6cf0;
    color: #fff;
    border-color: #7c6cf0;
}

.wdb-pm-meta a:hover svg {
    stroke: #fff;
}

/* ==========================================================================
   TITLE
   ========================================================================== */
.wdb-pm-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e;
    padding-left: 16px;
    border-left: 3px solid #7c6cf0;
    margin: 0;
    transition: color 0.3s;
    position: relative;
}

.wdb-pm-title a {
    color: inherit;
    text-decoration: none;
}

.wdb-pm-title a:hover {
    color: #7c6cf0;
}

/* ==========================================================================
   DIVIDER
   ========================================================================== */
.wdb-pm-divider {
    width: 100%;
    height: 1px;
    background: #ededed;
    margin: 16px 0;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

.wdb-pm-card:hover .wdb-pm-divider {
    opacity: 1;
}

/* ==========================================================================
   EXCERPT
   ========================================================================== */
.wdb-pm-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #6c6c8a;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.wdb-pm-card:hover .wdb-pm-excerpt {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   FADE EDGES (Opacity nos slides das extremidades)
   ========================================================================== */
.wdb-pm-has-fade .swiper-slide {
    opacity: var(--wdb-pm-fade-opacity, 0.3);
    transition: opacity 0.4s ease;
}

.wdb-pm-has-fade .swiper-slide-visible {
    opacity: 1;
}

.wdb-pm-has-fade .swiper-slide:not(.swiper-slide-visible) {
    opacity: var(--wdb-pm-fade-opacity, 0.3);
}

/* ==========================================================================
   NO POSTS
   ========================================================================== */
.wdb-pm-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #6c6c8a;
    font-size: 15px;
}

/* ==========================================================================
   NAVIGATION (Services Slider Pro 1 style)
   ========================================================================== */
.wdb-pm-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
}

.wdb-pm-nav-arrows {
    display: flex;
    align-items: center;
    gap: 25px;
}

.wdb-pm-nav-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid #c4c4cc;
    background: transparent;
    color: #6c6c8a;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.wdb-pm-nav-btn:hover {
    border-color: #1a1a2e;
    background: linear-gradient(135deg, #1a1a2e, #2d2d52);
    color: #fff;
}

.wdb-pm-nav-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

/* Pagination bullets */
.wdb-pm-nav .swiper-pagination {
    position: relative;
    width: auto;
    bottom: auto;
}

.wdb-pm-nav .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c4c4cc;
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.wdb-pm-nav .swiper-pagination-bullet-active {
    transform: scale(1.5);
    border-color: #7c6cf0;
    background: transparent;
}

/* Pagination fraction */
.wdb-pm-nav .swiper-pagination-fraction {
    font-size: 14px;
    color: #6c6c8a;
    width: auto;
}

/* Pagination progressbar */
.wdb-pm-nav .swiper-pagination-progressbar {
    position: relative;
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0,0,0,0.08);
}

.wdb-pm-nav .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #7c6cf0;
    border-radius: 2px;
}

/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */
@media (max-width: 1024px) {
    .wdb-pm-img-wrap img {
        height: 320px;
    }
}

/* ==========================================================================
   RESPONSIVE — MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    .wdb-pm-img-wrap img {
        height: 280px;
    }

    .wdb-pm-content {
        height: 130px;
    }

    .wdb-pm-card:hover .wdb-pm-content {
        height: 280px;
    }

    .wdb-pm-title {
        font-size: 17px;
    }

    .wdb-pm-nav {
        margin-top: 32px;
    }

    .wdb-pm-nav-btn {
        width: 38px;
        height: 38px;
    }
}
