/* Banking, Finance and Insurance Page Styles */

/* 6% horizontal padding on all sections (match home); container has no side padding */
.banking-finance-insurance .banking-framework-section .container,
.banking-finance-insurance .financial-vertical-section .container,
.banking-finance-insurance .testimonials-section .container,
.banking-finance-insurance .wizetrace-security-section .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hero Section */
.healthcare-hero-wrapper {
    position: relative;
    width: 100%;
    height: 446px; /* Matches other hero sections */
    overflow: hidden;
}

/* Banner Image */
.healthcare-banner-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}

.healthcare-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Overlay & Content */
.healthcare-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* #00000099 from Figma */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 6%;
    box-sizing: border-box;
}

.healthcare-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    color: #ffffff;
    gap: 28px; /* row-gap from Figma */
}

.healthcare-title {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 48px;
    letter-spacing: 0;
    text-align: center;
    max-width: 1200px; /* Constrain width if needed */
}

.healthcare-desc {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9); /* #ffffffe5 */
    line-height: 24px;
    letter-spacing: -0.31px;
    text-align: center;
    max-width: 686px; /* From Figma */
}

.healthcare-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
}

.healthcare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #ffffff;
    border-radius: 6px;
    padding: 0 31px;
    height: 48px;
    background-color: transparent;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 20px;
    letter-spacing: -0.15px;
}

.healthcare-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}

.healthcare-btn-icon {
    width: 16px;
    height: 16px;
    transition: filter 0.3s ease;
}

.healthcare-btn:hover .healthcare-btn-icon {
    filter: none;
}

/* Btract AI Banking Framework Section */
.banking-framework-section {
    background-color: #09090b;
    padding: 80px 6%;
    color: #ffffff;
    box-sizing: border-box;
}

.framework-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.framework-title {
    font-size: 49px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: 0.36px;
}

.framework-subtitle {
    font-size: 18px;
    color: #9f9fa9;
    line-height: 1.6;
    letter-spacing: -0.44px;
    max-width: 715px;
    margin: 0 auto;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.framework-card {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.framework-card:hover {
    transform: translateY(-5px);
    border-color: #e85c29;
}

.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.bg-orange-dark {
    background-color: rgba(232, 92, 41, 0.1); /* #e85c2919 */
}

.card-icon {
    width: 24px;
    height: 24px;
    display: block;
    margin: auto;
    object-fit: contain;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: -0.45px;
}

.card-desc {
    font-size: 14px;
    color: #9f9fa9;
    line-height: 1.5;
    letter-spacing: -0.15px;
    max-width: 340px;
}

/* CTA Card Specifics */
.cta-card {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px; /* Adjusted for better centering */
}

.cta-text {
    font-size: 16px;
    color: #9f9fa9;
    font-style: italic;
    margin-bottom: 24px;
    letter-spacing: -0.32px;
}

.framework-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: -0.32px;
}

.framework-cta-link:hover {
    color: #e85c29;
}

.cta-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.framework-cta-link:hover .cta-icon {
    transform: translateX(4px);
}

/* Financial Vertical Section (Light UI) */
.financial-vertical-section {
    background-color: #f9fafb;
    padding: 80px 6%;
    color: #0a0a0a;
    box-sizing: border-box;
}

.vertical-header {
    text-align: center;
    margin-bottom: 48px;
}

.vertical-title {
    font-size: 38px;
    font-weight: 600;
    color: #0a0a0a;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: 0;
}

.vertical-subtitle {
    font-size: 16px;
    color: #4a5565;
    line-height: 1.5;
    letter-spacing: -0.32px;
    max-width: 600px;
    margin: 0 auto;
}

/* Tabs */
.vertical-tabs {
    display: flex;
    justify-content: center;
    gap: 16px; /* Spacing between tabs */
    margin-bottom: 48px;
    background: #ffffff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    display: inline-flex; /* Shrink to fit content */
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}

.vertical-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #364153;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.vertical-tab.active, .vertical-tab:hover {
    background-color: #e85c29;
    color: #ffffff;
}

/* Tab panels wrapper */
.vertical-content-panels {
    position: relative;
}

/* Content Card – hidden by default, visible when .active */
.vertical-content-card {
    display: none;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    padding: 48px;
    gap: 48px;
    align-items: center;
}

.vertical-content-card.active {
    display: flex;
}

.content-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.content-title {
    font-size: 30px;
    font-weight: 600;
    color: #0a0a0a;
    line-height: 1.2;
    margin-bottom: 24px;
}

.content-desc {
    font-size: 14px;
    color: #4a5565;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #101828;
    line-height: 1.5;
}

.feature-icon {
    width: 20px; /* Adjusted size */
    height: 20px;
}

.vertical-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background-color: #e85d2a;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.vertical-cta-btn:hover {
    background-color: #d64d1f;
}

.content-image-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.content-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f7f7f7;
    padding: 80px 6%;
    color: #000000;
    box-sizing: border-box;
}

.testimonials-title {
    font-size: 54px;
    font-weight: 500;
    color: #000000;
    text-align: center;
    margin-bottom: 64px;
    letter-spacing: 0.59px;
}

.testimonial-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    position: relative;
}

.slider-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.slider-arrow:hover {
    transform: scale(1.1);
}

.arrow-icon {
    width: 51px;
    height: 51px;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
}

.testimonial-avatar-box {
    margin-bottom: 32px;
}

.testimonial-avatar {
    width: 129px;
    height: 129px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff; /* Optional white border */
}

.testimonial-quote {
    font-size: 29px;
    line-height: 1.6;
    color: #000000;
    opacity: 0.8;
    margin: 0 0 32px;
    letter-spacing: -0.71px;
    font-family: 'Inter', sans-serif;
}

.testimonial-author {
    font-size: 22px;
    color: #838383;
    letter-spacing: -0.24px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #364153; /* Active color logic reversed in screenshot, using grey for inactive */
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.dot.active {
    background-color: #99a1af; /* Lighter grey for active based on screenshot style */
    opacity: 1;
}

/* Security & Compliance Section (Matches Wizetrace) */
.wizetrace-security-section {
    background-color: #ffffff;
    padding: 100px 6%;
    box-sizing: border-box;
}

.security-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

.security-header {
    flex: 0 0 350px; /* Reduced width to force wrapping */
}

.security-title {
    font-size: 42px;
    font-weight: 700;
    color: #101828;
    line-height: 1.3;
    margin-bottom: 0; /* Remove bottom margin, use desc top margin */
    letter-spacing: 0.36px;
    max-width: 300px; /* Force wrapping as per image */
}

.security-desc {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    letter-spacing: 0.36px;
    max-width: 250px; /* Force wrapping as per image */
    margin-top: 60px; /* Large gap as per design */
}

.security-faq-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Slightly larger gap */
}

.security-faq-item {
    display: flex;
    flex-direction: column;
    background-color: #f9fafb;
    border-radius: 10px;
    padding: 24px 32px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.security-faq-item:hover {
    background-color: #f0f2f5;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.faq-text {
    font-size: 18px;
    font-weight: 500;
    color: #1e2939;
    padding-right: 20px;
    letter-spacing: -0.44px;
}

.faq-icon-wrapper {
    width: 32px;
    height: 32px;
    background-color: #e85d29;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease;
    opacity: 0;
}

.faq-answer p {
    font-size: 16px;
    color: #4a5565;
    line-height: 1.6;
    margin: 0;
}

/* Active State */
.security-faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    margin-top: 16px;
}

.security-faq-item.active .faq-icon-wrapper {
    background-color: #101828;
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 992px) {
    .banking-finance-insurance .healthcare-hero-overlay,
    .banking-framework-section,
    .financial-vertical-section,
    .testimonials-section,
    .wizetrace-security-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .security-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .security-header {
        flex: 1;
        max-width: 100%;
        text-align: center;
    }
    
    .security-desc {
        margin: 0 auto;
        max-width: 500px;
    }
    
    .security-faq-list {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .banking-finance-insurance .healthcare-hero-overlay,
    .banking-framework-section,
    .financial-vertical-section,
    .testimonials-section,
    .wizetrace-security-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .security-title {
        font-size: 32px;
    }
    
    .security-desc, .faq-text {
        font-size: 16px;
    }
}
