/* =============================================================================
   Home Services Section — startup-agency style
   Loaded after home.css — overrides old .service-area rules
   ============================================================================= */

/* Section subtitle with left line */
.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme);
    font-family: var(--font_dmsans);
    position: relative;
}

.dark .section-subtitle {
    color: var(--white);
}

.section-subtitle.has-left-line {
    padding-inline-start: 60px;
    display: inline-block;
}

.section-subtitle.has-left-line::before {
    position: absolute;
    content: "";
    width: 50px;
    height: 2px;
    background-color: currentColor;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* "Learn more →" button style */
.wc-btn-normal {
    display: inline-flex;
    position: relative;
    color: var(--primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    align-items: center;
    gap: 5px;
    transition: all 0.5s;
}

.wc-btn-normal:hover {
    color: #c2f971;
}

.wc-btn-normal i {
    font-size: 14px;
}

/* Section wrapper */
.service-area {
    background-color: #f3ffe0;
}

.dark .service-area {
    background-color: #1b1b1b;
}

.service-area .service-area-inner {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

@media only screen and (max-width: 1399px) {
    .service-area .service-area-inner {
        padding-top: 60px;
    }
}

@media only screen and (max-width: 1199px) {
    .service-area .service-area-inner {
        padding-top: 40px;
    }
}

/* Hide decorative shapes — don't suit light background */
.service-area .service-area-inner .shape-1,
.service-area .service-area-inner .shape-2,
.service-area .service-area-inner .shape-3,
.service-area .service-area-inner .shape-4 {
    display: none;
}

/* Decorative shapes */
.service-area .service-area-inner .shape-1 {
    position: absolute;
    top: 0;
    inset-inline-end: calc(100% - 77px);
    width: max-content;
    z-index: -1;
}

@media only screen and (max-width: 1399px) {
    .service-area .service-area-inner .shape-1 {
        inset-inline-end: 100%;
        width: 200px;
    }
}

@media only screen and (max-width: 991px) {
    .service-area .service-area-inner .shape-1 {
        display: none;
    }
}

.service-area .service-area-inner .shape-2 {
    position: absolute;
    top: 0;
    inset-inline-end: calc(100% - 115px);
    transform: translateY(-50%);
}

@media only screen and (max-width: 1399px) {
    .service-area .service-area-inner .shape-2 {
        inset-inline-end: calc(100% - 15px);
        width: 40px;
    }
}

@media only screen and (max-width: 991px) {
    .service-area .service-area-inner .shape-2 {
        display: none;
    }
}

.service-area .service-area-inner .shape-3 {
    position: absolute;
    bottom: 0;
    inset-inline-start: calc(100% + 87px);
    width: max-content;
}

@media only screen and (max-width: 1399px) {
    .service-area .service-area-inner .shape-3 {
        inset-inline-end: calc(100% + 57px);
        width: 100px;
    }
}

@media only screen and (max-width: 991px) {
    .service-area .service-area-inner .shape-3 {
        display: none;
    }
}

.service-area .service-area-inner .shape-4 {
    position: absolute;
    height: 100%;
    top: 0;
    z-index: -2;
    transform: translateX(-10%);
}

@media only screen and (max-width: 991px) {
    .service-area .service-area-inner .shape-4 {
        display: none;
    }
}

/* Section header: title left, body text right */
.service-area .section-header {
    display: flex;
    gap: 20px 60px;
    align-items: center;
    justify-content: space-between;
}

@media only screen and (max-width: 767px) {
    .service-area .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.service-area .section-header .text {
    max-width: 350px;
    color: var(--secondary);
}

.service-area .section-header .title-wrapper {
    margin-top: 17px;
}

.service-area .section-subtitle {
    color: var(--primary);
}

.service-area .section-title {
    max-width: 505px;
    color: var(--primary);
}

/* Cards grid */
.service-area .services-wrapper-box {
    position: relative;
    margin-top: 40px;
    padding-bottom: 40px;
}

@media only screen and (max-width: 1399px) {
    .service-area .services-wrapper-box {
        margin-top: 30px;
    }
}

@media only screen and (max-width: 1199px) {
    .service-area .services-wrapper-box {
        margin-top: 24px;
    }
}

.service-area .services-wrapper.swiper {
    overflow: visible;
}

.service-area .services-prev,
.service-area .services-next {
    position: absolute;
    /* Center on card area: 50% of total height minus half the 40px pagination padding */
    top: calc(50% - 20px);
    transform: translateY(-50%);
    z-index: 10;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(18, 18, 18, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.service-area .services-prev {
    left: -70px;
}

.service-area .services-next {
    right: -70px;
}

@media only screen and (max-width: 1500px) {
    .service-area .services-prev { left: -30px; }
    .service-area .services-next { right: -30px; }
}

@media only screen and (max-width: 1300px) {
    .service-area .services-prev { left: -20px; }
    .service-area .services-next { right: -20px; }
}

.service-area .services-prev:hover,
.service-area .services-next:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #f3ffe0;
}

.service-area .services-prev.swiper-button-disabled,
.service-area .services-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.service-area .services-pagination {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
}

.service-area .services-pagination .swiper-pagination-bullet {
    background-color: var(--primary);
    opacity: 0.25;
}

.service-area .services-pagination .swiper-pagination-bullet-active {
    background-color: #c2f971;
    opacity: 1;
}


/* ── Service Cards (clean isolated classes, no conflict with home.css) ── */

.od-srv-slide {
    height: auto;
}

/* Cycling pastel backgrounds */
.od-srv-slide:nth-child(5n+1) .od-srv-card { background-color: #fefce8; }
.od-srv-slide:nth-child(5n+2) .od-srv-card { background-color: #f0f5ff; }
.od-srv-slide:nth-child(5n+3) .od-srv-card { background-color: #fff4f0; }
.od-srv-slide:nth-child(5n+4) .od-srv-card { background-color: #f5f0ff; }
.od-srv-slide:nth-child(5n+5) .od-srv-card { background-color: #f0fff8; }

.od-srv-card {
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(18, 18, 18, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.od-srv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(18, 18, 18, 0.13);
}

.od-srv-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
    padding: 40px 28px 32px;
    text-decoration: none;
    text-align: left;
}

.od-srv-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin: 0;
    text-align: left;
}

.od-srv-text {
    flex: 1;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--secondary);
    text-align: left;
}

.od-srv-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    text-align: left;
    align-self: flex-start;
    transition: text-decoration-color 0.2s;
}

.od-srv-card:hover .od-srv-link {
    text-decoration-color: #c2f971;
}
