/* ==========================================================
   Services Widget – rpl-svc
   ========================================================== */

.rpl-svc {
    position: relative;
}

/* Grid layout */
.rpl-svc__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Single item */
.rpl-svc__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border-radius: 8px;
    transition: all 300ms ease;
}

/* ── Icon / Media ── */
.rpl-svc__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    line-height: 1;
}

.rpl-svc__icon i {
    display: inline-block;
    line-height: 1;
}

.rpl-svc__icon svg {
    display: inline-block;
}

.rpl-svc__icon img {
    display: block;
    max-width: 100%;
    height: auto;
}

.rpl-svc__icon-text {
    font-weight: 700;
    line-height: 1;
}

/* ── Title ── */
.rpl-svc__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

/* ── Description ── */
.rpl-svc__desc {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.rpl-svc__desc p:last-child {
    margin-bottom: 0;
}

/* ── Button ── */
.rpl-svc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 300ms ease;
    margin-top: auto;
}

.rpl-svc__btn:hover {
    text-decoration: none;
}

.rpl-svc__btn-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.rpl-svc__btn-ico svg {
    width: 1em;
    height: 1em;
}

/* ==========================================================
   Slider mode
   ========================================================== */

.rpl-svc-swiper {
    overflow: hidden;
}

.rpl-svc-swiper .swiper-slide {
    height: auto;
}

.rpl-svc-swiper .swiper-slide > .rpl-svc__item {
    height: 100%;
}

/* ── Footer: [prev] [dots] [next] ── */
.rpl-svc-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* ── Navigation Arrows ── */
.rpl-svc-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #ccc;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    color: inherit;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rpl-svc-nav__btn:hover {
    background: #f0f0f0;
}

.rpl-svc-nav__btn svg {
    width: 1em;
    height: 1em;
}

/* ── Pagination Dots ── */
.rpl-svc-footer .rpl-svc-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: static;
    width: auto;
    flex-shrink: 0;
}

.rpl-svc-footer .rpl-svc-dots .swiper-pagination-bullet {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    opacity: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rpl-svc-footer .rpl-svc-dots .swiper-pagination-bullet-active {
    background: #333;
    transform: scale(1.25);
}

/* ── Progress Bar ── */
.rpl-svc-progress {
    position: relative;
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    margin-top: 16px;
    border-radius: 2px;
    overflow: hidden;
}

.rpl-svc-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #333;
    border-radius: 2px;
    transition: width 0.3s ease;
}
