/* Services Page Styles */

/* General Layout */
.page-template-page-services .site-main {
    padding-top: 0;
}

/* -------------------------------------------------------------
   Intro Section (Left Aligned)
------------------------------------------------------------- */
.services__intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .services__intro {
        padding: 6rem 0;
    }
}

.services__intro h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.services__description {
    font-size: 1.25rem;
    text-wrap: balance;
}

/* -------------------------------------------------------------
   Services Grid Section (Copied/Adapted from Expertise)
------------------------------------------------------------- */
.services-list {
    padding: 0 1.5rem 4rem;
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-card__category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--service-category);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--headline-color, #1a1a1a);
}

.service-card__description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color, #4a4a4a);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Pushes the link to bottom */
}

.service-card__link,
.card-cta {
    font-weight: 600;
    color: var(--primary-blue, #3F18E2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
    cursor: pointer;
}

.service-card__link:hover,
.card-cta:hover {
    color: var(--primary-hoverblue, #8B74EF);
}

.card-cta span:after {
    font-family: 'Font Awesome 5 Pro';
    content: "\f054";
    font-size: 20px;
    position: relative;
    top: 1px;
    margin-left: 8px;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
}

.card-cta:hover span:after {
    margin-left: 11px;
}

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__intro h1 {
        font-size: 3.5rem;
    }
}


/* -------------------------------------------------------------
   Service Navigator Intro Section
------------------------------------------------------------- */


.service-navigator-intro-section {
    padding: 4rem 0;
}

.service-navigator-intro-section__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.service-navigator-intro-section__headline h2 {
    font-size: 2rem;
    line-height: 1.2;
    color: var(--headline-color, #1a1a1a);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-navigator-intro-section__text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-color, #4a4a4a);
}

@media (min-width: 768px) {
    .service-navigator-intro-section__container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .service-navigator-intro-section__headline h2 {
        font-size: 2.5rem;
    }
}

/* -------------------------------------------------------------
   Service Navigator Section
------------------------------------------------------------- */
.service-navigator {
    background: linear-gradient(135deg, #4c1fa3 0%, #3a158b 100%);
    padding: 5rem 0;
    color: #fff;
    border-radius: 8px;
    margin: 4rem 0;
}

.service-navigator__headline {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 700;
}

.service-navigator__intro {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.service-navigator__filters {
    margin-bottom: 4rem;
}

/* FacetWP Button Styling (Use Case) */
.facetwp-facet-use_case_buttons .facetwp-radio {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    margin: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.facetwp-facet-use_case_buttons .facetwp-radio:hover,
.facetwp-facet-use_case_buttons .facetwp-radio.checked {
    background: #fff;
    color: #4c1fa3;
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-navigator__solution-path {
    margin-bottom: 3rem;
}

.service-navigator__subheadline {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-navigator__subintro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* FacetWP Results Grid Styling */
.facetwp-template-service_offerings_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .facetwp-template-service_offerings_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 990px) {
    .facetwp-template-service_offerings_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Result Card Styling (Assuming rendered by FacetWP template) */
.service-navigator-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 8px;
    color: #fff;
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 240px;
}

.service-navigator-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.service-navigator-card h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-navigator-card__category {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.service-navigator-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.service-navigator-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* -------------------------------------------------------------
   CTA Section (Copied/Adapted from Expertise)
------------------------------------------------------------- */
.services-cta {
    padding: 0 1.5rem 4rem;
    margin: 0 auto;
}

.services-cta__container {
    border: 1px dashed var(--service-industry, #3F18E2);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
}

.services-cta__headline {
    color: var(--headline-color, #1a1a1a);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.services-cta__text {
    color: var(--text-color, #4a4a4a);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* -------------------------------------------------------------
   Slider Styles (Slick)
------------------------------------------------------------- */

/* Slider Container */
.service-navigator-slider-container {
    position: relative;
    padding-bottom: 60px;
    /* Space for controls */
}

/* Override grid styles for the active slider */
.service-navigator-slider.slick-initialized,
.service-navigator-slider {
    display: block;
    grid-template-columns: none;
    gap: 0;
    margin-left: -15px;
    /* Pull back to align first card's content */
    width: calc(100% + 15px);
    /* Compensate width */
}

/* Ensure slides have some spacing */
.service-navigator-slider .slick-slide {
    padding: 0 15px;
    height: auto;
    /* Allow flex height if needed */
    box-sizing: border-box;
}

/* Reset or remove negative margins from slick-list */
/* Reset or remove negative margins from slick-list */
.service-navigator-slider .slick-list {
    margin: 0;
}

/* Force Left Alignment on Track */
.service-navigator-slider .slick-track {
    margin-left: 0;
    margin-right: auto;
}

/* FOUC Prevention: Uninitialized State */
.service-navigator-slider:not(.slick-initialized) {
    display: flex !important;
    overflow: hidden !important;
    margin-left: -15px !important;
    width: calc(100% + 15px) !important;
}

.service-navigator-slider:not(.slick-initialized)>div {
    flex: 0 0 28.57%;
    /* 3.5 slides (100 / 3.5) */
    max-width: 28.57%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Responsive FOUC - Tablet */
@media (max-width: 992px) {
    .service-navigator-slider:not(.slick-initialized)>div {
        flex: 0 0 40%;
        /* 2.5 slides */
        max-width: 40%;
    }
}

/* Responsive FOUC - Mobile */
@media (max-width: 768px) {
    .service-navigator-slider:not(.slick-initialized)>div {
        flex: 0 0 66.666%;
        /* 1.5 slides */
        max-width: 66.666%;
    }
}

/* Loading State Opacity */
.service-navigator-slider-container {
    transition: opacity 0.2s ease;
}

.service-navigator-slider-container.is-updating {
    opacity: 0;
    pointer-events: none;
}

/* Controls Container */
.service-navigator-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-top: 2rem;
}

/* Slider Buttons */
.service-navigator-controls button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.service-navigator-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.service-navigator-controls button i {
    font-size: 1.2rem;
}

/* Ghosting for disabled buttons */
.service-navigator-controls button.slick-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.1);
}