/**
 * Completed Works — Reusable Card & Layout Styles
 * File: lawnella-child/css/completed-works-cards.css
 *
 */

/* =========================================================
   CARD
   ========================================================= */

.cw-card {
    height: 100%;
    padding: 0 2px;
}

.cw-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.cw-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.cw-card-inner {
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    background: #fff;
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cw-card-inner:hover {
    box-shadow: 0 8px 28px rgba(0, 72, 61, 0.20);
    transform: translateY(-5px);
}

.cw-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #e5f0ee;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.cw-card-image img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cw-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cw-card-image-placeholder .icon-leaf {
    font-size: 3rem;
    color: #00483d;
    opacity: 0.3;
}

.cw-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cw-card-title {
    font-size: 1rem;
    margin: 0 0 8px;
    color: #1a2e2a;
    line-height: 1.4;
    font-weight: 600 !important;
}

.cw-card-excerpt {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
}

.cw-card-readmore {
    font-size: 0.82rem;
    color: #00483d;
    font-weight: 600;
    margin-top: auto;
}

/* =========================================================
   CAROUSEL (Owl) — /atlikti-darbai/ archive
   ========================================================= */

.cw-carousel-wrapper {
    position: relative;
    padding: 10px 6px 6px;
    margin: 0 -6px;
    clip-path: inset(0 -100px -40px -100px);
}

.cw-carousel.owl-carousel .owl-stage-outer {
    overflow: visible !important;
}

.cw-carousel .owl-item {
    display: flex;
}

.cw-carousel .owl-item > .cw-card {
    width: 100%;
}

.cw-carousel-wrapper .owl-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.cw-carousel-wrapper .owl-nav button.owl-prev,
.cw-carousel-wrapper .owl-nav button.owl-next {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: #00483d !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
}

.cw-carousel-wrapper .owl-nav button.owl-prev:hover,
.cw-carousel-wrapper .owl-nav button.owl-next:hover {
    background: #002e27 !important;
}

.cw-carousel-wrapper .owl-nav button.disabled {
    opacity: 0.3 !important;
    cursor: default;
}

/* =========================================================
   GRID — taxonomy archive & other listing pages
   ========================================================= */

.cw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 10px 6px 6px;
}

@media (max-width: 991px) {
    .cw-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .cw-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SHARED HEADING / INTRO
   ========================================================= */

.cw-section-title {
    font-size: 1.75rem;
	font-weight: 700;
    color: #00483d;
    border-left: 4px solid #00483d;
    padding-left: 15px;
    margin-bottom: 8px;
    margin-top: 10px;
}

.cw-section-description {
    color: #555;
    margin-bottom: 16px;
    padding-left: 19px;
}

.cw-intro-text {
    font-size: 1.1rem;
    color: #333;
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.cw-see-all {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.cw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 48px 0 24px;
    flex-wrap: wrap;
}

.cw-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    background: #f0f5f4;
    color: #00483d;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cw-pagination .page-numbers:hover,
.cw-pagination .page-numbers.current {
    background: #00483d;
    color: #fff;
}

.cw-pagination .page-numbers.dots {
    background: transparent;
    pointer-events: none;
}