/* Services Style One — Swiper layout fixes */
.services-style-one-swiper {
    overflow: hidden !important;
    position: relative !important;
    padding-bottom: 50px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.services-style-one-swiper .swiper-wrapper {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    -webkit-box-align: stretch !important;
    -ms-flex-align: stretch !important;
    align-items: stretch !important;
    box-sizing: content-box !important;
}

.services-style-one-swiper .swiper-slide {
    -webkit-box-flex: 0 !important;
    -ms-flex-positive: 0 !important;
    flex-shrink: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.services-style-one-swiper .services-style-two {
    height: 100% !important;
    overflow: hidden !important;
}

/* Arrows */
.s1-swiper-prev,
.s1-swiper-next {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: var(--color-primary) !important;
    top: 38% !important;
    margin-top: 0 !important;
}
.s1-swiper-prev::after,
.s1-swiper-next::after {
    font-size: 16px !important;
    color: #fff !important;
    font-weight: 700 !important;
}
.s1-swiper-prev:hover,
.s1-swiper-next:hover { background: var(--dark) !important; }
.s1-swiper-prev { left: 0 !important; }
.s1-swiper-next { right: 0 !important; }

/* Dots */
.s1-swiper-pagination { bottom: 12px !important; }
.s1-swiper-pagination .swiper-pagination-bullet {
    width: 10px !important; height: 10px !important;
    background: rgba(0,0,0,.2) !important;
    opacity: 1 !important;
}
.s1-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary) !important;
}


/* ============================================================
   Services Grid — [services_grid] shortcode
   3-column layout matching the existing .services-style-two card
============================================================ */

.s1sg-grid {
    display: grid;
    gap: 28px;
    padding: 8px 0 48px;
}

.s1sg-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.s1sg-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.s1sg-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Card ── */
.s1sg-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.s1sg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,.13);
}

/* ── Thumb ── */
.s1sg-card__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #1a3a1f;
}

.s1sg-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease, opacity .3s ease;
    opacity: .92;
}

.s1sg-card:hover .s1sg-card__thumb img {
    transform: scale(1.06);
    opacity: .75;
}

/* ── Overlay (replicates .title from original) ── */
.s1sg-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 22px;
    background: linear-gradient(to top, rgba(15,30,15,.92) 0%, rgba(15,30,15,.45) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.s1sg-card__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary, #18541f);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.s1sg-card__icon-wrap i {
    font-size: 26px;
    color: #fff;
}

.s1sg-card__icon-wrap img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.s1sg-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.s1sg-card__title a {
    color: #fff;
    text-decoration: none;
    transition: color .15s;
}

.s1sg-card__title a:hover {
    color: #c9a227;
    text-decoration: none;
}

/* ── Icon-only header (no image) ── */
.s1sg-card__icon-header {
    background: #18541f;
    padding: 28px 22px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.s1sg-card__icon-wrap--large {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,.15);
}

.s1sg-card__icon-wrap--large i {
    font-size: 30px;
}

.s1sg-card__title--dark {
    font-size: 17px;
    color: #fff;
}

.s1sg-card__title--dark a {
    color: #fff;
}

.s1sg-card__title--dark a:hover {
    color: #c9a227;
}

/* ── Body ── */
.s1sg-card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.s1sg-card__text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 20px;
    flex: 1;
}

/* ── Button (replicates .button + .devider from original) ── */
.s1sg-card__btn-wrap {
    margin-top: auto;
}

.s1sg-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #18541f;
    text-decoration: none;
    transition: color .15s, gap .2s;
}

.s1sg-card__btn:hover {
    color: #c9a227;
    gap: 16px;
    text-decoration: none;
}

.s1sg-card__btn-line {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: width .25s ease;
}

.s1sg-card__btn:hover .s1sg-card__btn-line {
    width: 48px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .s1sg-grid--cols-3,
    .s1sg-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .s1sg-grid--cols-2,
    .s1sg-grid--cols-3,
    .s1sg-grid--cols-4 { grid-template-columns: 1fr; }
    .s1sg-card__thumb { aspect-ratio: 4 / 3; }
}

/* ── Pagination ── */
.s1sg-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding: 8px 0 16px;
}

.s1sg-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
    line-height: 1;
}

.s1sg-page-btn:hover {
    border-color: #18541f;
    color: #18541f;
    background: #f0fdf4;
    text-decoration: none;
    transform: translateY(-1px);
}

.s1sg-page-btn--active {
    background: #18541f;
    border-color: #18541f;
    color: #fff !important;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(24,84,31,.3);
}

.s1sg-page-btn--prev,
.s1sg-page-btn--next {
    min-width: 40px;
    padding: 0 12px;
    color: #18541f;
    border-color: #18541f;
}

.s1sg-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 40px;
    color: #94a3b8;
    font-size: 15px;
    letter-spacing: 1px;
}

.s1sg-page-info {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .s1sg-page-btn { min-width: 36px; height: 36px; font-size: 13px; }
    .s1sg-page-info { font-size: 12px; }
}
