/* Service V2 Template - Feature Card Grid Styling */

.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0 2rem 0;
    width: 100%;
    max-width: 100%;
}

/* Override narrow column layout for bottom sections - match hero title width */
.services-section-main .services-grid-content {
    display: block !important;
    width: 100%;
    max-width: 1200px;
    margin: 0;
}

/* Side-by-side image and text layout */
.services-section-main .services-grid-content.with-image {
    display: grid !important;
    grid-template-columns: 500px 1fr;
    gap: 4rem;
    align-items: center;
}

.services-section-main .section-image-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-section-main .section-image {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Text content in image layout - reset widths */
.services-section-main .services-grid-content.with-image .services-body {
    max-width: 100%;
}

.services-section-main
    .services-grid-content.with-image
    .services-inner-content {
    max-width: 100%;
}

.services-section-main .services-grid-content.with-image .services-para {
    max-width: 100%;
}

.services-section-main
    .services-grid-content.with-image
    .services-content-title {
    max-width: 100%;
    text-align: left;
}

/* Responsive: stack on tablet and mobile */
@media (max-width: 991px) {
    .services-section-main .services-grid-content.with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-section-main .section-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

.services-section-main .services-body {
    width: 100%;
    max-width: 1200px;
    margin: 0;
}

.services-section-main .services-inner-content {
    width: 100%;
    max-width: 1200px;
}

.services-section-main .services-content-title {
    text-align: left;
    margin-bottom: 1.5rem;
    max-width: 1200px;
}

.services-section-main .services-para {
    max-width: 1200px;
    margin: 0;
}

/* Font styling for service-v2 paragraphs */
.services-section-main .services-para,
.services-section-main .services-para p {
    font-family: Effra, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 170%;
    opacity: 0.7;
    color: #fff;
}

/* Also fix the main CTA section to match */
.services-section-main .services-main-content {
    max-width: 1200px;
}

.services-section-main .services-main-content .services-body {
    max-width: 1200px;
}

.services-section-main .services-main-content .services-inner-content {
    max-width: 1200px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    font-family: 'effra', sans-serif !important;
}

.feature-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.feature-card-image-wrapper {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 0.5rem;
}

.feature-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
}

.feature-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.4;
    font-family: 'effra', sans-serif !important;
}

.feature-card-description {
    font-family: Effra, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 170%;
    opacity: 0.7;
    color: #fff;
    flex-grow: 1;
}

.feature-card-description p,
.feature-card-description strong,
.feature-card-description em,
.feature-card-description a {
    font-family: 'effra', sans-serif !important;
}

/* Phase Cards - Horizontal Layout */
.phase-cards-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.phase-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    font-family: 'effra', sans-serif !important;
}

.phase-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.phase-card-icon {
    display: none;
}

.phase-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #7dc144;
    margin-bottom: 0.5rem;
    font-family: 'effra', sans-serif !important;
}

.phase-card-description {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'effra', sans-serif !important;
}

@media (max-width: 991px) {
    .phase-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .phase-cards-container {
        grid-template-columns: 1fr;
    }
}

/* Secondary CTA Section (Main CTA when used at bottom) */
.secondary-cta-section {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 4rem;
    margin: 4rem auto 2rem auto;
    max-width: 1050px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.secondary-cta-content {
    max-width: 100%;
    text-align: left;
}

.secondary-cta-title {
    margin-bottom: 1rem;
    color: #ffffff;
}

.secondary-cta-description {
    font-family: Effra, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 170%;
    opacity: 0.7;
    color: #fff !important;
    margin-bottom: 2rem;
}

.secondary-cta-description p {
    font-family: Effra, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 170%;
    opacity: 0.7;
    color: #fff !important;
    margin-bottom: 1rem;
}

.secondary-cta-description strong {
    color: #ffffff !important;
    font-weight: 700;
    opacity: 1;
}

.secondary-cta-description * {
    font-family: Effra, sans-serif;
}

.secondary-cta-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 1.25rem 3rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.secondary-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Trust Section */
.trust-section {
    padding: 4rem 0;
    margin: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trust-title {
    margin-bottom: 1rem;
    color: #ffffff;
}

.trust-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-weight: 600;
}

.trust-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    align-items: center;
    justify-items: center;
}

.trust-logo-wrapper {
    width: 100%;
    max-width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.trust-logo-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.trust-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9) grayscale(0.3);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.trust-logo-wrapper:hover .trust-logo {
    filter: brightness(1) grayscale(0);
    opacity: 1;
}

.trust-testimonial {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid rgba(59, 130, 246, 0.5);
    border-radius: 8px;
}

.testimonial-quote {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: block;
    font-size: 1rem;
    color: rgba(59, 130, 246, 0.9);
    font-weight: 600;
    font-style: normal;
}

/* Responsive Design */
@media (max-width: 991px) {
    .feature-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-card-image-wrapper {
        height: 180px;
    }

    .feature-card-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 767px) {
    .feature-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0 1.5rem 0;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card-image-wrapper {
        height: 160px;
    }

    .feature-card-title {
        font-size: 1.25rem;
    }

    .feature-card-description {
        font-size: 0.95rem;
    }

    /* Secondary CTA mobile */
    .secondary-cta-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .secondary-cta-description {
        font-size: 1rem;
    }

    /* Trust section mobile */
    .trust-section {
        padding: 2rem 0;
        margin: 2rem 0;
    }

    .trust-logos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }
}

@media (max-width: 479px) {
    .feature-card-grid {
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card-image-wrapper {
        height: 140px;
        padding: 1rem;
    }

    /* Sticky CTA on small mobile */
    .secondary-cta-section {
        position: sticky;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        margin: 0 -1rem;
        z-index: 100;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
        border-radius: 0;
    }

    .secondary-cta-content {
        padding: 0;
    }

    .secondary-cta-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .secondary-cta-description {
        display: none; /* Hide description on sticky CTA to save space */
    }

    .secondary-cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    /* Default CTA styling for pages without secondaryCTA */
    .services-main-content {
        position: sticky;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        margin: 0 -1rem;
        z-index: 100;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    }

    .services-main-content .services-inner-content {
        padding: 0;
    }

    .services-main-content .services-content-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .services-main-content .services-para {
        display: none;
    }
}
