/* ==========================================================
   Loop Carousel Widget v2 — Styles
   ========================================================== */

/* ── Wrapper ──────────────────────────────────────────────── */
.lcw-carousel-wrapper {
    position: relative;
    width: 100%;
}
.lcw-carousel-outer {
    overflow: hidden;
    position: relative;
}
.lcw-swiper {
    width: 100%;
    position: relative;
}
.lcw-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

/* ── Slide Inner wrapper ──────────────────────────────────── *
   Every slide output (template or default card) is wrapped
   in .lcw-slide-inner so Elementor panel style controls work.
 * ─────────────────────────────────────────────────────────── */
.lcw-slide-inner {
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
	width:100% !important;
}

/* When template mode, remove inner padding so template content
   can handle its own spacing */
.lcw-slide-inner .elementor {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Default Card ─────────────────────────────────────────── */
.lcw-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}
.lcw-card-linked {
    cursor: pointer;
}
.lcw-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* ── Card Image ───────────────────────────────────────────── */
.lcw-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    flex-shrink: 0;
}
.lcw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.lcw-card:hover .lcw-card-image img {
    transform: scale(1.05);
}
.lcw-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: transparent;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

/* ── Badge ────────────────────────────────────────────────── */
.lcw-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background-color: #0073e6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.4;
}

/* ── Card Body ────────────────────────────────────────────── */
.lcw-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.lcw-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    color: #1a1a1a;
}
.lcw-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.lcw-title a:hover {
    color: #0073e6;
}
.lcw-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.lcw-meta a {
    color: inherit;
    text-decoration: none;
}
.lcw-meta a:hover {
    color: #0073e6;
    text-decoration: underline;
}
.lcw-meta-sep { color: #ccc; user-select: none; }
.lcw-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 16px;
    flex-grow: 1;
}
.lcw-btn {
    display: inline-block;
    background-color: #0073e6;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: all 0.25s ease;
    align-self: flex-start;
}
.lcw-btn:hover {
    background-color: #005bb5;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ── No posts ─────────────────────────────────────────────── */
.lcw-no-posts {
    padding: 20px;
    color: #888;
    font-style: italic;
    text-align: center;
}

/* ── Arrows: base ─────────────────────────────────────────── */
.lcw-btn-prev,
.lcw-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    padding: 0;
    color: #555;
    outline: none;
}
.lcw-btn-prev:hover,
.lcw-btn-next:hover {
    background: #0073e6;
    border-color: #0073e6;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,115,230,0.35);
}
.lcw-btn-prev i, .lcw-btn-next i { font-size: 16px; transition: color .2s ease; }
.lcw-btn-prev svg, .lcw-btn-next svg { width: 16px; height: 16px; transition: fill .2s ease; }
.lcw-btn-prev:hover i, .lcw-btn-next:hover i { color: #fff; }
.lcw-btn-prev:hover svg, .lcw-btn-next:hover svg { fill: #fff; }

/* ── Arrows: INSIDE ───────────────────────────────────────── */
.lcw-arrows-inside .lcw-btn-prev { left: 14px; }
.lcw-arrows-inside .lcw-btn-next { right: 14px; }

/* ── Arrows: OUTSIDE ──────────────────────────────────────── */
.lcw-arrows-outside .lcw-carousel-outer { margin-left: 56px; margin-right: 56px; }
.lcw-arrows-outer {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
}
.lcw-arrows-outer .lcw-btn-prev,
.lcw-arrows-outer .lcw-btn-next {
    pointer-events: all;
    position: absolute;
    top: 0;
    transform: none;
}
.lcw-arrows-outer .lcw-btn-prev { left: 0; }
.lcw-arrows-outer .lcw-btn-next { right: 0; }

/* ── Arrows: BOTTOM ───────────────────────────────────────── */
.lcw-arrows-bottom .lcw-btn-prev,
.lcw-arrows-bottom .lcw-btn-next {
    position: static;
    transform: none;
    top: auto;
}
.lcw-arrows-bottom {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* ── Arrow disabled ───────────────────────────────────────── */
.lcw-btn-prev.swiper-button-disabled,
.lcw-btn-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ── Pagination ───────────────────────────────────────────── */
.lcw-pagination-wrap {
    text-align: center;
    margin-top: 20px;
    position: relative;
}
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0,0,0,0.2);
    opacity: 1;
    transition: background .25s ease, transform .25s ease;
}
.swiper-pagination-bullet-active {
    background: #0073e6;
    transform: scale(1.25);
}
.lcw-pagination-wrap .swiper-pagination-progressbar {
    position: relative;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: rgba(0,0,0,0.1);
    display: block;
}
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #0073e6;
    border-radius: 2px;
}
.swiper-pagination-fraction {
    color: #0073e6;
    font-size: 16px;
    font-weight: 600;
}

/* ── Template slide: make inner Elementor sections full-height */
.lcw-slide-inner > .elementor,
.lcw-slide-inner > .elementor .elementor-section-wrap,
.lcw-slide-inner > .elementor .e-container {
    height: 100%;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lcw-arrows-outside .lcw-carousel-outer { margin-left: 48px; margin-right: 48px; }
}
@media (max-width: 767px) {
    .lcw-arrows-outside .lcw-carousel-outer { margin-left: 0; margin-right: 0; }
    .lcw-arrows-outside .lcw-arrows-outer { display: none; }
    .lcw-btn-prev, .lcw-btn-next { width: 36px; height: 36px; }
    .lcw-card-image { height: 180px; }
    .lcw-title { font-size: 16px; }
}

/* ── Elementor editor: highlight slide boundary ───────────── */
.elementor-editor-active .lcw-slide-inner {
    outline: 2px dashed rgba(144,97,249,0.3);
    outline-offset: -2px;
}
