/* ============================================================
   Post Slider & Carousel – Custom Design (Design 2 Override)
   - Natural image proportions (respects plugin image size)
   - No card border/shadow, full width
   - Black nav buttons outside cards with gap
   - Arrow fade-in/fade-out on hover
   ============================================================ */

/* --- Force entry-content to full width on homepage --- */
.page-template-template-homepage-php .entry-content,
.page-template-template-homepage-php .hentry .entry-content,
.page-template-template-homepage-php .col-full .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
}

/* --- Carousel outer wrapper: full width, padding reserves space for nav buttons --- */
.psacp-post-carousel-wrap.psacp-design-2 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 46px !important;
    margin: 40px auto !important;
    position: relative;
}

/* --- Owl stage: fill the padded area --- */
.psacp-post-carousel-wrap.psacp-design-2 .owl-stage-outer {
    width: 100% !important;
    overflow: hidden;
}

/* --- Items: small gap between cards --- */
.psacp-post-carousel-wrap.psacp-design-2 .owl-item {
    padding: 0;
}

/* --- Card: no border, no shadow, no radius --- */
.psacp-post-carousel-wrap.psacp-design-2 .psacp-post-carousel-content {
    border: none !important;
    background: transparent;
    border-radius: 0;
    box-shadow: none !important;
    overflow: visible;
}
.psacp-post-carousel-wrap.psacp-design-2 .psacp-post-slide:hover .psacp-post-carousel-content {
    border-color: transparent !important;
    box-shadow: none !important;
}

/* --- Image area: natural proportions (respects plugin image size setting) --- */
.psacp-post-carousel-wrap.psacp-design-2 .psacp-post-img-bg {
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    line-height: 0;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.psacp-post-carousel-wrap.psacp-design-2 .psacp-post-img-bg img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* --- Content area below image --- */
.psacp-post-carousel-wrap.psacp-design-2 .psacp-post-margin-content {
    padding: 10px 4px 0 4px;
    text-align: center;
}

/* --- Post title: blue, centred --- */
.psacp-post-carousel-wrap.psacp-design-2 h2.psacp-post-title {
    font-size: 16px;
    line-height: 1.45;
    margin: 0 !important;
    font-weight: 600;
}
.psacp-post-carousel-wrap.psacp-design-2 h2.psacp-post-title a {
    color: #1e73be !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}
.psacp-post-carousel-wrap.psacp-design-2 h2.psacp-post-title a:hover {
    color: #135a96 !important;
}

/* --- Hide categories / meta / content --- */
.psacp-post-carousel-wrap.psacp-design-2 .psacp-post-cats,
.psacp-post-carousel-wrap.psacp-design-2 .psacp-post-meta,
.psacp-post-carousel-wrap.psacp-design-2 .psacp-post-content {
    display: none !important;
}

/* --- Navigation container: absolute, spans full width, height set by JS --- */
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100%;
    margin: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
    pointer-events: none;
    z-index: 10;
    border: none !important;
}
/* --- Arrow buttons: black, at left/right edge, vertically centred --- */
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-prev,
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-next {
    pointer-events: all;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(0) !important;
    -webkit-transform: translateY(-50%) translateX(0) !important;
    background: #000 !important;
    color: #fff !important;
    width: 28px;
    height: 28px;
    line-height: 26px !important;
    font-size: 16px !important;
    border-radius: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    box-shadow: none !important;
    transition: background 0.2s ease, opacity 0.3s ease, transform 0.3s ease !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-prev {
    left: 0 !important;
}
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-next {
    right: 0 !important;
}
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-prev:hover,
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-next:hover,
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-prev:focus,
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-next:focus {
    background: #333 !important;
    color: #fff !important;
}

/* --- Arrow fade: visible + centred by default, slide+fade out on idle, slide+fade in on hover --- */
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-prev,
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-next {
    opacity: 1;
}
/* Fade-out: prev slides left, next slides right — instant */
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-prev.psacp-faded {
    opacity: 0;
    transform: translateY(-50%) translateX(-10px) !important;
    -webkit-transform: translateY(-50%) translateX(-10px) !important;
    transition: background 0.1s ease, opacity 0.1s ease, transform 0.1s ease !important;
}
.psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-next.psacp-faded {
    opacity: 0;
    transform: translateY(-50%) translateX(10px) !important;
    -webkit-transform: translateY(-50%) translateX(10px) !important;
    transition: background 0.1s ease, opacity 0.1s ease, transform 0.1s ease !important;
}

/* --- Dot pagination --- */
.psacp-post-carousel-wrap.psacp-design-2 .owl-dots {
    width: 100%;
    margin-top: 14px;
    text-align: center;
    line-height: 1;
}
.psacp-post-carousel-wrap.psacp-design-2 .owl-dots .owl-dot {
    width: 9px !important;
    height: 9px !important;
    background: #ccc !important;
    border-radius: 50%;
    margin: 0 3px;
    transition: background 0.3s ease;
    display: inline-block;
    padding: 0 !important;
}
.psacp-post-carousel-wrap.psacp-design-2 .owl-dots .owl-dot.active {
    background: #1e73be !important;
}

/* --- Responsive tweaks --- */
@media only screen and (max-width: 768px) {
    .psacp-post-carousel-wrap.psacp-design-2 h2.psacp-post-title {
        font-size: 13px;
    }
    .psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-prev,
    .psacp-post-carousel-wrap.psacp-design-2 .owl-nav .owl-next {
        width: 24px;
        height: 24px;
        font-size: 12px !important;
    }
}
@media only screen and (max-width: 480px) {
    .psacp-post-carousel-wrap.psacp-design-2 h2.psacp-post-title {
        font-size: 12px;
    }
}
