/* Style dla wtyczki Metamorfozy - Spójne z paletą kliniki (granat/biel) */
.km-grid-wrapper {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}
.km-cols-1 { grid-template-columns: 1fr; max-width: 420px;}
.km-cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px;}
.km-cols-3 { grid-template-columns: repeat(3, 1fr); }
.km-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media(max-width: 992px) {
    .km-cols-3, .km-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
    .km-cols-1, .km-cols-2, .km-cols-3, .km-cols-4 { grid-template-columns: 1fr; }
}

.km-item-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(10, 34, 64, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
    width: 100%;
}
.km-item-card:hover {
    transform: translateY(-5px);
}

.km-image-container {
    position: relative;
    width: 100%;
    background: #0b132b;
    overflow: hidden;
    aspect-ratio: 4 / 5; /* Zapewnia równe proporcje zdjęć */
}
.km-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.km-testimonial {
    margin: 15px 0 0 0;
    padding: 12px 15px;
    background: #f8fafc;
    border-left: 3px solid #c5a059;
    font-style: italic;
    font-size: 13px;
    color: #4a5568;
    border-radius: 0 4px 4px 0;
}
/* Nakładki Przed / Po */
.km-badge {
    position: absolute;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.km-badge-before {
    background: #112240;
    color: #ffffff;
}
.km-badge-after {
    background: #c5a059; /* Złoty akcent medyczny */
    color: #ffffff;
}

.km-content-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.km-title {
    font-size: 18px;
    color: #112240;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.km-meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #4a5568;
}
.km-meta-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.km-meta-list .dashicons {
    margin-right: 8px;
    color: #c5a059;
}
.km-meta-list a {
    color: #112240;
    text-decoration: none;
}
.km-meta-list a:hover {
    text-decoration: underline;
}

.km-testimonial {
    margin: 10px 0 0 0;
    padding: 10px 15px;
    background: #f8fafc;
    border-left: 3px solid #c5a059;
    font-style: italic;
    font-size: 13px;
    color: #4a5568;
    border-radius: 0 4px 4px 0;
}

/* Karuzela */
.km-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}
.km-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}
.km-carousel-slide {
    min-width: calc(33.333% - 14px);
    box-sizing: border-box;
}
@media(max-width: 992px) {
    .km-carousel-slide { min-width: calc(50% - 10px); }
}
@media(max-width: 768px) {
    .km-carousel-slide { min-width: 100%; }
}

.km-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}
.km-carousel-nav button {
    background: #112240;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.km-carousel-nav button:hover {
    background: #c5a059;
}
.km-oferta-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}