/* Custom Development Page Specific Styles */

/* =============================================== */
/* Hero Section                                    */
/* =============================================== */

/* Testing Services Page Styles */

/* Hero Section */
.services-page .hero-custom-development {
    background-image: url('../../images/services/testing-services-hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 60px;
    min-height: 500px;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
}

.services-page .hero-custom-development::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #FFFFFF 35%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.services-page .hero-text-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 100px 60px 100px 120px;
    box-sizing: border-box;
}

.services-page .hero-text-content h1 {
    font-family: 'Geist', sans-serif;
    font-size: 56px;
    font-weight: 500;
    line-height: 1.2;
}

/* =============================================== */
/* Why Work with BitsFlow Section                  */
/* =============================================== */

.why-work-with-bitsflow {
    background: #FFFFFF;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-work-with-bitsflow .section-header {
    margin-bottom: 80px;
}

.why-work-with-bitsflow .section-header h2 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.2;
    color: #252525;
    margin-bottom: 16px;
}

.why-work-with-bitsflow .section-header {
    text-align: left;
    margin-bottom: 40px; /* 1. Reduced gap */
}

.why-work-with-bitsflow .section-header p {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #797979;
    max-width: 800px;
    margin: 0; /* 2. For left-align */
}

.features-wrapper {
    position: relative;
    padding: 60px 0 0;
    margin-bottom: 0;
}

.features-background {
    position: absolute;
    width: 1000px;
    height: 500px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-image: url('../../images/stats_background.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

.features-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 50px 80px; /* 2. Kept same gap */
    max-width: 1060px; /* 2. Adjusted for wider items */
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 1. Left-align icon and text */
    width: 320px; /* 2. Increased item width */
    gap: 0px; /* Reduced gap */
    background: transparent; /* 3. Ensure transparent background */
    border: none;
}

.feature-icon img {
    width: 54px;
    height: 54px;
}

.feature-title {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: #1E1E1E;
    text-align: left; /* 1. Left-align title text */
}

.services-page .hero-text-content .highlight-text {
    color: #168CE0;
    white-space: nowrap;
}

.services-page .hero-text-content .normal-text {
    display: block;
}

.services-page .hero-text-content p {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 32px;
    max-width: 550px;
}

.services-page .hero-text-content .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 4px 4px 4px 24px;
    gap: 12px;
    height: 54px;
    background: #168CE0;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    color: #FFFFFF;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.services-page .hero-text-content .btn-primary:hover {
    background-color: #0D47A1;
}

.services-page .hero-text-content .btn-primary span {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
}

.services-page .hero-text-content .btn-primary .arrow-container {
    width: 46px;
    height: 46px;
    background: #5BB0EC;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-page .hero-text-content .btn-primary .arrow-right {
    width: 12px;
    height: 12px;
    border-top: 3px solid #FFFFFF;
    border-right: 3px solid #FFFFFF;
    transform: rotate(45deg);
}

/* What We Offer Section */
.what-we-offer-section {
    background-color: #168ce0;
    background-image: url('../../images/services/grid-pattern.svg');
    background-repeat: repeat;
    background-size: 30px;
    padding: 50px 20px 100px;
    position: relative;
    overflow: hidden;
    margin-top: -20px;
}

.what-we-offer-header {
    text-align: center;
    margin-bottom: 50px;
}

.what-we-offer-title {
    font-family: 'Geist', sans-serif;
    font-size: 42px;
    font-weight: 600;
    color: #FFFFFF; /* White text on blue background */
    margin-bottom: 10px;
}

.what-we-offer-subtitle {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.9;
}

/* New layout with columns */
.what-we-offer-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    padding: 0;
    gap: 20px;
}

.what-we-offer-column {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.what-we-offer-center-image {
    width: 36%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.what-we-offer-center-image img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* Floating code elements (CSS, HTML, PHP) */
.code-badge {
    position: absolute;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    padding: 4px 8px;
    font-size: 14px;
    font-family: 'Geist', sans-serif;
    z-index: 2;
}

.css-badge {
    top: 40%;
    left: -15%;
    background-color: #0c99e6;
}

.html-badge {
    top: 25%;
    right: -15%;
    background-color: #e65c0c;
}

.php-badge {
    bottom: 30%;
    right: 25%;
    background-color: #7e0ce6;
}

.brackets-badge {
    bottom: 10%;
    left: 0%;
    background-color: transparent;
    color: white;
    font-weight: bold;
    font-size: 24px;
}

/* Card styling */
.what-we-offer-card {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 5px;
    height: auto;
    min-height: 175px;
    text-align: left;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.what-we-offer-card:hover {
    transform: translateY(-3px);
}

.what-we-offer-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #168ce0;
    margin-bottom: 16px;
    box-shadow: none;
}

.what-we-offer-icon img {
    width: 50px;
    height: 50px;
}

.what-we-offer-content {
    flex: 1;
}

.what-we-offer-card h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #004993;
    margin: 0;
    line-height: 1.5;
}

/* Navigation controls */
.what-we-offer-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    margin-top: 20px;
}

.nav-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.nav-button-icon {
    width: 10px;
    height: 10px;
    border-top: 2px solid #FFFFFF;
    border-right: 2px solid #FFFFFF;
    transform: rotate(45deg); /* Right arrow */
}

.nav-button-icon.prev {
    transform: rotate(-135deg); /* Left arrow */
}

/* Responsive adjustments for What We Offer Section */
@media (max-width: 1024px) {
    .what-we-offer-layout {
        flex-direction: column;
    }
    
    .what-we-offer-column,
    .what-we-offer-center-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto 30px;
    }
    
    .what-we-offer-center-image {
        order: -1; /* Show the center image first on smaller screens */
    }
    
    .what-we-offer-navigation {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .what-we-offer-title {
        font-size: 36px;
    }

    .what-we-offer-subtitle {
        font-size: 16px;
    }
    
    .what-we-offer-card {
        padding: 20px 16px;
    }
    
    .what-we-offer-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }
    
    .what-we-offer-icon img {
        width: 24px;
        height: 24px;
    }
    
    .what-we-offer-content h3 {
        font-size: 14px;
    }
}


/* Why Work with BitsFlow Section */
.why-work-with-bitsflow {
    padding: 80px 120px;
    text-align: center;
    background-color: #FFFFFF;
}

.why-work-with-bitsflow h2 {
    font-family: 'Geist', sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #1E1E1E;
    margin-bottom: 8px;
}

.why-work-with-bitsflow .subtitle {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 18px;
    color: #4F4F4F;
    margin-bottom: 48px;
}

.features-container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.feature-item {
    width: 220px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.feature-item .feature-icon {
    height: 48px;
    width: 48px;
    margin-bottom: 16px;
}

.feature-item h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5; /* 24px */
    color: #1E1E1E;
}

/* What We Offer Section */
.what-we-offer {
    padding: 80px 120px;
    background-color: #F5F8FF; /* Light Blue Background */
    text-align: center;
}

.what-we-offer h2 {
    font-family: 'Geist', sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #1E1E1E;
    margin-bottom: 8px;
}

.what-we-offer .subtitle {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 18px;
    color: #4F4F4F;
    margin-bottom: 48px;
}

.offer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.offer-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.offer-card {
    width: 384px;
    height: 112px;
    padding: 24px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5; /* 27px */
    color: #1E1E1E;
    text-align: left;
    display: flex;
    align-items: center;
}

.carousel-nav {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 13px;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 22px;
    border: 1px solid #4F4F4F;
    background: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow img {
    width: 21px;
    height: 21px;
}

.nav-arrow.disabled {
    border-color: #B2B2B2;
    opacity: 0.4;
    cursor: not-allowed;
}

/* Customer Success Section */
.customer-success {
    padding: 80px 120px;
    text-align: center;
}

.customer-success h2 {
    font-family: 'Geist', sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #1E1E1E;
    margin-bottom: 48px;
}

.success-story-card {
    display: flex;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    margin-bottom: 40px;
}

.success-story-content {
    padding: 40px;
    width: 50%;
    position: relative;
}

.success-story-content h3 {
    font-family: 'Geist', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3; /* 36.4px */
    color: #1E1E1E;
    margin-bottom: 16px;
}

.success-story-content .tag {
    display: inline-block;
    background: #E9F3FF;
    color: #1C64F2;
    border-radius: 16px;
    padding: 4px 12px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.success-story-content .timeline, .success-story-content .delivery-details {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    color: #4F4F4F;
    margin-bottom: 8px;
}

.success-story-content .btn-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1C64F2;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: absolute;
    bottom: 40px;
    right: 40px;
    transition: background-color 0.3s;
}

.success-story-content .btn-arrow:hover {
    background-color: #0D47A1;
}

.success-story-image {
    width: 50%;
}

.success-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Our Clients Section */
.our-clients {
    padding: 80px 120px;
    background: #F5F8FF;
    text-align: center;
}

.our-clients h2 {
    font-family: 'Geist', sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #1E1E1E;
    margin-bottom: 8px;
}

.our-clients .subtitle {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 18px;
    color: #4F4F4F;
    margin-bottom: 48px;
}

.client-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-logos img {
    max-height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-logos img:hover {
    opacity: 1;
}

/* Section Spacer */
.section-spacer {
    height: 40px;
    display: block;
    width: 100%;
    clear: both;
}

/* --- FAQ Section: custom development (Figma Aligned) --- */
.product-faq-service {
    margin-top: 50px;
    background-color: #FFFFFF;
    padding: 60px clamp(20px, 7vw, 100px); /* Responsive padding L/R */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content on page */
    gap: 40px; /* Gap between title and accordion */
}

/* Container for FAQ title and accordion, to control max-width */
.product-faq-service .container {
    max-width: 1235px; /* Figma's overall content width */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-faq-service .section-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.27; /* 61px/48px */
    color: #252525;
    text-align: center;
    margin-bottom: 20px; /* Part of overall section gap */
}

.faq-accordion {
    max-width: 1030px; /* Figma's width for the accordion items */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0; /* Individual items will have bottom border */
}

.faq-item {
    border: none;
    border-bottom: 1px dashed #8E8E8E;
    border-radius: 0;
    overflow: visible; /* Ensure no clipping */
    width: 100%;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0; /* Vertical padding, horizontal handled by parent */
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 34px;
    color: #252525;
}

.faq-toggle-icon {
    width: 43px;
    height: 43px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* For pseudo-elements */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0; /* Light border for visibility on white */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: '';
    position: absolute;
    background-color: #2C2A2A; /* Plus icon parts color */
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.faq-toggle-icon::before { /* Vertical bar of plus */
    width: 2.8px;
    height: 16px;
}

.faq-toggle-icon::after { /* Horizontal bar of plus */
    width: 16px;
    height: 2.8px;
}

/* Active state for icon (minus) */
.faq-item.active .faq-toggle-icon {
    background-color: #61B5F1;
    border-color: #61B5F1;
}

.faq-item.active .faq-toggle-icon::before { /* Becomes the minus bar */
    width: 16px;
    height: 2.8px;
    background-color: #FFFFFF; /* Minus line color */
    transform: rotate(0deg); /* Ensure it's horizontal */
}

.faq-item.active .faq-toggle-icon::after { /* Hide this bar for minus */
    transform: scaleX(0);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
    background-color: #ffffff;
    font-family: 'Geist', sans-serif;
    font-weight: 100;
    font-size: 11px; /* Reduced from 16px */
    line-height: 1.4; /* Adjusted for 14px font */
    color: #797979;
    padding-left: 0; /* Align with question text */
    padding-right: 0; /* Align with question text */
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Increased to prevent cutting off content */
    padding-top: 2px; /* Reduced gap between question and answer */
    padding-bottom: 24px; /* Match question's top padding for symmetry */
}

.faq-answer p {
    padding: 0;
    margin: 0;
}

/* Hide old icon if styles somehow persist or are global */
.faq-arrow, .faq-icon {
    display: none !important;
}
