/* ============================================
    Plunksna Carousel Widget – v1.9.3
    ============================================ */

/* Prevent horizontal overflow on page */
html,
body {
    overflow-x: clip;
}

/* Fix third-party mobile panels overflow */
.pmm-mobile-panels {
    max-width: 100vw;
    overflow: hidden;
}

/* Wrapper */
.plunksna-carousel {
    --plunksna-static-justify: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: clip;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 30px;
    box-sizing: border-box;
}

.plunksna-carousel__track-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Track */
.plunksna-carousel__track {
    display: flex;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    backface-visibility: hidden;
}

.plunksna-carousel--static .plunksna-carousel__track-wrapper {
    overflow: visible;
    max-width: 100%;
    display: flex;
    justify-content: var(--plunksna-static-justify, center);
}

.plunksna-carousel--static .plunksna-carousel__track {
    width: 100% !important;
    justify-content: stretch;
    margin: 0;
    transform: none !important;
}

.plunksna-carousel--static .plunksna-carousel__slide {
    width: auto !important;
    flex: 1 1 0 !important;
    min-width: 0;
}

/* Slide */
.plunksna-carousel__slide {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

a.plunksna-carousel__slide:hover {
    text-decoration: none;
}

/* Image */
.plunksna-carousel__image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

/* Title */
.plunksna-carousel__title {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #333;
    text-align: center;
    transition: color 0.3s ease;
    width: 100%;
}

/* ── Arrows ── */
.plunksna-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 2;
    padding: 0;
    line-height: 1;
}

.plunksna-carousel__arrow:hover {
    color: #333;
}

.plunksna-carousel__arrow--prev {
    left: 0;
}

.plunksna-carousel__arrow--next {
    right: 0;
}

/* ── Dots ── */
.plunksna-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 4px;
    flex-wrap: wrap;
}

.plunksna-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plunksna-carousel__dot:hover {
    opacity: 0.8;
}

.plunksna-carousel__dot--active {
    width: 28px;
    background: #3b82f6;
}

@media (max-width: 767px) {
    .plunksna-carousel {
        padding-left: 28px;
        padding-right: 28px;
    }

    .plunksna-carousel__arrow {
        top: clamp(56px, 24vw, 104px);
        z-index: 3;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 4px 14px rgba(31, 41, 55, 0.14);
    }

    .plunksna-carousel__arrow--prev {
        left: 4px;
    }

    .plunksna-carousel__arrow--next {
        right: 4px;
    }

    .plunksna-carousel__dots {
        margin-top: 16px;
        gap: 6px;
    }
}

/* ── Dragging cursor ── */
.plunksna-carousel--dragging {
    cursor: grabbing;
}

.plunksna-carousel--dragging .plunksna-carousel__slide {
    pointer-events: none;
}

/* ============================================
    Product Carousel Card Styles
    ============================================ */

/* Card */
.plunksna-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
    width: 100%;
}

a.plunksna-product-card:hover {
    text-decoration: none;
    color: inherit;
}

/* Product Image */
.plunksna-product-card__image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.plunksna-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.plunksna-product-card__image-primary {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    z-index: 1;
}

.plunksna-product-card__image-secondary {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
}

.plunksna-product-card:hover .plunksna-product-card__image--has-hover .plunksna-product-card__image-primary {
    opacity: 0 !important;
}

.plunksna-product-card:hover .plunksna-product-card__image--has-hover .plunksna-product-card__image-secondary {
    opacity: 1;
}

/* Badge */
.plunksna-product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: #e53e3e;
    border-radius: 3px;
    line-height: 1.4;
}

/* Title */
.plunksna-product-card__title {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: left;
    line-height: 1.4;
    transition: color 0.3s ease;
    width: 100%;
}

/* Price */
.plunksna-product-card__price {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: left;
    line-height: 1.4;
    width: 100%;
}

.plunksna-product-card__price del {
    color: #999;
    font-weight: 400;
    margin-right: 6px;
}

.plunksna-product-card__price ins {
    text-decoration: none;
    color: #e53e3e;
    font-weight: 600;
}

/* ============================================
    Testimonial Carousel Styles
    ============================================ */

/* Testimonial card */
.plunksna-testimonial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
}

/* Quote icon */
.plunksna-testimonial__quote {
    display: block;
    font-size: 36px;
    line-height: 1;
    color: #7c8e9e;
    font-family: Georgia, serif;
    margin-bottom: 12px;
}

/* Content text */
.plunksna-testimonial__content {
    font-size: 15px;
    line-height: 1.65;
    color: #444;
    flex: 1 1 auto;
}

/* Footer: name + stars row */
.plunksna-testimonial__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    gap: 12px;
}

/* Author group (avatar + name) */
.plunksna-testimonial__author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* Avatar */
.plunksna-testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Name */
.plunksna-testimonial__name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stars */
.plunksna-testimonial__stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 18px;
    flex-shrink: 0;
}

.plunksna-testimonial__star--filled {
    color: #c5a04e;
}

.plunksna-testimonial__star--empty {
    color: #d1d5db;
}

/* Ensure slide stretches card height + CSS-only fallback sizing */
.plunksna-carousel--testimonials .plunksna-carousel__slide {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 0 0 33.333%;
    box-sizing: border-box;
    padding: 0 10px;
}

@media (max-width: 1024px) {
    .plunksna-carousel--testimonials .plunksna-carousel__slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 767px) {
    .plunksna-carousel--testimonials .plunksna-carousel__slide {
        flex: 0 0 100%;
    }
}

/* Card fills the slide */
.plunksna-testimonial {
    flex: 1 1 auto;
    min-width: 0;
}

/* ============================================
    Post Carousel Card Styles
    ============================================ */

/* Card link */
.plunksna-post-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.3s ease;
}

a.plunksna-post-card:hover {
    text-decoration: none;
    color: inherit;
}

/* Post Image */
.plunksna-post-card__image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.plunksna-post-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.plunksna-post-card:hover .plunksna-post-card__image img {
    transform: scale(1.03);
}

/* Body */
.plunksna-post-card__body {
    padding-top: 12px;
    width: 100%;
}

/* Meta (date / category) */
.plunksna-post-card__meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Title */
.plunksna-post-card__title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: left;
    line-height: 1.45;
    margin: 0;
    transition: color 0.3s ease;
    width: 100%;
}

/* Excerpt */
.plunksna-post-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-top: 8px;
    width: 100%;
}

/* "Visi įrašai" button wrapper */
.plunksna-post-carousel__button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.plunksna-post-carousel__button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #5b7e96;
    border: 1px solid #5b7e96;
    border-radius: 2px;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.plunksna-post-carousel__button:hover {
    background: #5b7e96;
    color: #fff;
    text-decoration: none;
}

/* ============================================
    Hero Slider Styles
    ============================================ */

.plunksna-hero-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    overflow: hidden;
}

/* Slide */
.plunksna-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    z-index: 0;
}

.plunksna-hero-slide--active {
    opacity: 1;
    z-index: 1;
}

/* Overlay */
.plunksna-hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Inner – positions content */
.plunksna-hero-slide__inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 40px 40px 40px 80px;
    box-sizing: border-box;
}

/* Content block */
.plunksna-hero-slide__content {
    max-width: 600px;
}

/* Heading */
.plunksna-hero-slide__heading {
    margin: 0;
    padding: 0;
    font-size: 42px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.25;
    color: #333;
}

/* Buttons wrapper */
.plunksna-hero-slide__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* Button */
.plunksna-hero-slide__button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #5b7e96;
    background: transparent;
    border: 1px solid #5b7e96;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.plunksna-hero-slide__button:hover {
    background: #5b7e96;
    color: #fff;
    text-decoration: none;
}

/* Button secondary */
.plunksna-hero-slide__button--secondary {
    color: #fff;
    background: #5b7e96;
    border-color: #5b7e96;
}

.plunksna-hero-slide__button--secondary:hover {
    background: #fff;
    color: #5b7e96;
}

/* Dots */
.plunksna-hero-slider__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.plunksna-hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plunksna-hero-slider__dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.plunksna-hero-slider__dot--active {
    width: 28px;
    background: #fff;
}

/* Responsive */
@media (max-width: 767px) {
    .plunksna-hero-slide__inner {
        padding: 30px 20px;
        justify-content: center;
        text-align: center;
    }

    .plunksna-hero-slide__heading {
        font-size: 26px;
    }

    .plunksna-hero-slide__content {
        max-width: 100%;
    }
}

/* ── Image-wrap (hidden in overlay mode, shown in below mode) ── */
.plunksna-hero-slide__image-wrap {
    display: none;
}

/* ── Below-image layout (shared base styles) ── */

.plunksna-hero-slider--below {
    height: auto;
    display: flex;
    flex-direction: column;
}

.plunksna-hero-slider--below .plunksna-hero-slide {
    position: relative;
    inset: auto;
    display: none;
    opacity: 1;
    background-image: none !important;
}

.plunksna-hero-slider--below .plunksna-hero-slide--active {
    display: contents;
}

.plunksna-hero-slider--below .plunksna-hero-slide__overlay {
    display: none;
}

.plunksna-hero-slider--below .plunksna-hero-slide__image-wrap {
    display: block;
    width: 100%;
    overflow: hidden;
    order: 1;
}

.plunksna-hero-slider--below .plunksna-hero-slide__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.plunksna-hero-slider--below .plunksna-hero-slider__dots {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    justify-content: center;
    padding: 12px 0;
    order: 2;
}

.plunksna-hero-slider--below .plunksna-hero-slide__inner {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    order: 3;
}

.plunksna-hero-slider--below .plunksna-hero-slide__content {
    max-width: 100%;
}

.plunksna-hero-slider--below .plunksna-hero-slide__buttons {
    justify-content: center;
}

/* ── Responsive: below only on tablet + mobile (≤1024px) ── */
.plunksna-hero-slider--below-tablet-only {
    height: 75vh;
    display: block;
}

.plunksna-hero-slider--below-tablet-only .plunksna-hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    background-image: initial !important;
}

.plunksna-hero-slider--below-tablet-only .plunksna-hero-slide--active {
    display: block;
    opacity: 1;
}

.plunksna-hero-slider--below-tablet-only .plunksna-hero-slide__overlay {
    display: block;
}

.plunksna-hero-slider--below-tablet-only .plunksna-hero-slide__image-wrap {
    display: none;
}

.plunksna-hero-slider--below-tablet-only .plunksna-hero-slider__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.plunksna-hero-slider--below-tablet-only .plunksna-hero-slide__inner {
    position: relative;
    height: 100%;
    flex-direction: row;
    text-align: inherit;
    padding: 40px 40px 40px 80px;
    order: unset;
}

@media (max-width: 1024px) {
    .plunksna-hero-slider--below-tablet-only {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .plunksna-hero-slider--below-tablet-only .plunksna-hero-slide {
        position: relative;
        inset: auto;
        display: none;
        opacity: 1;
        background-image: none !important;
    }

    .plunksna-hero-slider--below-tablet-only .plunksna-hero-slide--active {
        display: contents;
    }

    .plunksna-hero-slider--below-tablet-only .plunksna-hero-slide__overlay {
        display: none;
    }

    .plunksna-hero-slider--below-tablet-only .plunksna-hero-slide__image-wrap {
        display: block;
        order: 1;
    }

    .plunksna-hero-slider--below-tablet-only .plunksna-hero-slider__dots {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        padding: 12px 0;
        order: 2;
    }

    .plunksna-hero-slider--below-tablet-only .plunksna-hero-slide__inner {
        height: auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 30px 20px;
        order: 3;
    }

    .plunksna-hero-slider--below-tablet-only .plunksna-hero-slide__content {
        max-width: 100%;
    }

    .plunksna-hero-slider--below-tablet-only .plunksna-hero-slide__buttons {
        justify-content: center;
    }
}

/* ── Responsive: below only on mobile (≤767px) ── */
.plunksna-hero-slider--below-mobile-only {
    height: 75vh;
    display: block;
}

.plunksna-hero-slider--below-mobile-only .plunksna-hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    background-image: initial !important;
}

.plunksna-hero-slider--below-mobile-only .plunksna-hero-slide--active {
    display: block;
    opacity: 1;
}

.plunksna-hero-slider--below-mobile-only .plunksna-hero-slide__overlay {
    display: block;
}

.plunksna-hero-slider--below-mobile-only .plunksna-hero-slide__image-wrap {
    display: none;
}

.plunksna-hero-slider--below-mobile-only .plunksna-hero-slider__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.plunksna-hero-slider--below-mobile-only .plunksna-hero-slide__inner {
    position: relative;
    height: 100%;
    flex-direction: row;
    text-align: inherit;
    padding: 40px 40px 40px 80px;
    order: unset;
}

@media (max-width: 767px) {
    .plunksna-hero-slider--below-mobile-only {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .plunksna-hero-slider--below-mobile-only .plunksna-hero-slide {
        position: relative;
        inset: auto;
        display: none;
        opacity: 1;
        background-image: none !important;
    }

    .plunksna-hero-slider--below-mobile-only .plunksna-hero-slide--active {
        display: contents;
    }

    .plunksna-hero-slider--below-mobile-only .plunksna-hero-slide__overlay {
        display: none;
    }

    .plunksna-hero-slider--below-mobile-only .plunksna-hero-slide__image-wrap {
        display: block;
        order: 1;
    }

    .plunksna-hero-slider--below-mobile-only .plunksna-hero-slider__dots {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        padding: 12px 0;
        order: 2;
    }

    .plunksna-hero-slider--below-mobile-only .plunksna-hero-slide__inner {
        height: auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 30px 20px;
        order: 3;
    }

    .plunksna-hero-slider--below-mobile-only .plunksna-hero-slide__content {
        max-width: 100%;
    }

    .plunksna-hero-slider--below-mobile-only .plunksna-hero-slide__buttons {
        justify-content: center;
    }
}

/* ============================================
    Breadcrumb Widget
    ============================================ */

.plunksna-breadcrumb {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.plunksna-breadcrumb__item,
.plunksna-breadcrumb__separator {
    font-size: 20px;
    line-height: 1.2;
}

.plunksna-breadcrumb__item--link {
    color: #7f9bb2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.plunksna-breadcrumb__item--link:hover {
    color: #4f6b82;
    text-decoration: none;
}

.plunksna-breadcrumb__separator {
    color: #9fb2c2;
}

.plunksna-breadcrumb__item--current {
    color: #31424f;
}

/* ============================================
    Image Grid Widget
    ============================================ */

.plunksna-image-grid {
    --plunksna-grid-columns: 3;
    display: grid;
    grid-template-columns: repeat(var(--plunksna-grid-columns), minmax(0, 1fr));
    gap: 12px;
}

.plunksna-image-grid__item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.plunksna-image-grid__item:hover {
    text-decoration: none;
    color: inherit;
}

.plunksna-image-grid__image-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 2px;
}

.plunksna-image-grid__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.35s ease;
}

.plunksna-image-grid__item:hover .plunksna-image-grid__image {
    transform: scale(1.03);
}

.plunksna-image-grid__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    background: rgba(255, 255, 255, 0.65);
    color: #3f5565;
    text-align: center;
    padding: 6px 10px;
    font-size: 19px;
    line-height: 1.3;
    border-radius: 0;
}

@media (max-width: 1024px) {
    .plunksna-image-grid {
        --plunksna-grid-columns: 2;
    }
}

@media (max-width: 767px) {
    .plunksna-image-grid {
        --plunksna-grid-columns: 1;
    }
}
