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

/* =============================================================================
   Global — all home page sections match hero width (80px each side)
   ============================================================================= */

/* Remove max-width constraint on projects section title */
.project-area .section-title {
    max-width: none !important;
}

/* Push arrows to far right — was 3-col grid, middle text removed */
.project-area .section-header {
    grid-template-columns: 1fr auto !important;
}

/* FAQ — move sidebar text below questions on mobile, match width */
@media only screen and (max-width: 767px) {
    .faq-area .section-content {
        display: flex !important;
        flex-direction: column !important;
    }
    .faq-area .section-content .content-last {
        order: 1;
        width: 100%;
    }
    .faq-area .section-content .btn-wrapper {
        order: 2;
        width: 100%;
        margin-inline-start: 0 !important;
    }
    .faq-area .section-content .text-wrapper {
        margin-inline-start: 0 !important;
    }
    /* Full width button so separator line matches accordion width */
    .faq-area .section-content .wc-btn-underline {
        max-width: none !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }
}

/* Mobile — reduce large section-spacing-top gaps */
@media only screen and (max-width: 767px) {
    .project-area .project-area-inner,
    .report-area .report-area-inner,
    .counter-area .counter-area-inner,
    .testimonial-area .testimonial-area-inner,
    .blog-area .blog-area-inner {
        padding-top: 48px !important;
    }
}

/* Fix project/testimonial slider nav hover — black on black bug */
.slider-nav .nav-icon:hover,
.testimonial-area .slider-nav [role=button]:hover,
.nav-icon:hover {
    background-color: #c2f971 !important;
    border-color: #c2f971 !important;
    color: #121212 !important;
}

.body-seo-agency .container {
    max-width: 1280px;
}

/* =============================================================================
   Features — hide duplicate sub-title rendered by base theme CSS
   ============================================================================= */

.features-area .feature-box .sub-title,
.features-area .feature-box .content .sub-title {
    display: none;
}

/* 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 — floating card shape */
.service-area {
    border-radius: 40px;
    margin: 60px 20px;
}

@media only screen and (max-width: 767px) {
    .service-area {
        border-radius: 24px;
        margin: 40px 12px;
    }
}

.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;
}

.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;
}

/* ── Mobile optimizations ── */
@media only screen and (max-width: 767px) {
    .service-area .service-area-inner {
        padding-top: 30px;
    }

    .service-area .section-title {
        font-size: 28px;
    }

    .service-area .section-subtitle {
        font-size: 13px;
    }

    .service-area .section-header .text {
        font-size: 14px;
    }

    .service-area .services-wrapper-box {
        margin-top: 20px;
    }

    .service-area .services-prev,
    .service-area .services-next {
        display: none;
    }

    .od-srv-card {
        min-height: 260px;
    }

    .od-srv-card > a {
        min-height: 260px;
        padding: 24px 20px 20px;
    }

    .od-srv-title {
        font-size: 18px;
    }

    .od-srv-text {
        font-size: 13px;
        margin-top: 10px;
    }

    .od-srv-link {
        margin-top: 16px;
        font-size: 13px;
    }
}

/* =============================================================================
   Features Section — floating card matching gl-section / ss-highlights style
   ============================================================================= */

.features-area {
    background-color: #f3ffe0;
    border-radius: 40px;
    margin: 80px 20px 60px;
}

/* Override the large section-spacing-top padding */
.features-area .features-area-inner {
    padding-top: 36px !important;
    padding-bottom: 40px !important;
}

.features-area .section-header {
    display: flex !important;
    align-items: center !important;
    gap: 40px;
    margin-bottom: 24px !important;
}

.features-area .section-title-wrapper {
    flex: 1;
}

/* Fixed-height animation box — controls section-header height without overflow */
.features-area .features-team-img-wrapper {
    flex-shrink: 0;
    width: 320px;
    height: 220px;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-area .features-wrapper-box {
    margin-top: 117px !important;
    padding-top: 0 !important;
}

.features-area .features-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.features-area .feature-box {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(18, 18, 18, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.features-area .feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(18, 18, 18, 0.1);
}

.features-area .feature-box .thumb img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.features-area .feature-box .content .title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.features-area .feature-box .content .text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--secondary);
    margin: 0;
}

@media only screen and (max-width: 991px) {
    .features-area .features-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 767px) {
    .features-area {
        border-radius: 24px;
        margin: 40px 12px;
    }

    .features-area .features-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .features-area .feature-box {
        padding: 24px 20px;
    }
}
