/* Styles for AI Agent Implementation Service Page */
.ai-hero {
    background: linear-gradient(135deg, rgba(0, 25, 50, 0.90), rgba(0, 60, 113, 0.85)), url('../images/ai-agent.jpg') center center no-repeat;
    background-size: cover;
    color: #ffffff;
    padding: 65px 0 55px 0;
    margin-top: 50px;
    margin-bottom: 30px;
    border-bottom: 3px solid #003c71;
}

.ai-hero h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
    color: #ffffff !important;
}

.ai-hero p.lead {
    font-size: 17px;
    line-height: 1.75;
    color: #d8e8f8;
    margin-bottom: 25px;
}

.ai-featured-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 4px solid #003c71;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 43, 73, 0.06);
    padding: 30px;
    margin-bottom: 35px;
    position: relative;
}

.ai-featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #003c71;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 18px;
    border-bottom-left-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ai-spec-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.ai-spec-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0071c5;
    padding: 10px 14px;
    border-radius: 0 4px 4px 0;
}

.ai-spec-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}

.ai-spec-desc {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}

/* Equal Height Flexbox Grid (fixes Bootstrap 3 float misalignment) */
.ai-tool-grid,
.ai-strength-grid {
    display: flex;
    flex-wrap: wrap;
}

.ai-tool-grid:before,
.ai-tool-grid:after,
.ai-strength-grid:before,
.ai-strength-grid:after {
    display: none !important;
    content: none !important;
}

.ai-tool-grid > [class*='col-'] {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.ai-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 22px 20px;
    transition: all 0.2s ease-in-out;
    height: 100%;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.ai-tool-card p {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.75;
    color: #475569;
}

.ai-card-footer {
    margin-top: auto;
    font-size: 12px;
    color: #003c71;
    font-weight: 600;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-card-footer .footer-tag {
    display: inline-flex;
    align-items: center;
    color: #334155;
    font-size: 11.5px;
}

.ai-card-footer .footer-links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 60, 113, 0.08);
    border-color: #0071c5;
}

.ai-tool-card .badge-type {
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
    display: inline-block;
    border-radius: 3px;
}

.ai-strength-grid > [class*='col-'] {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.ai-strength-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #003c71;
    padding: 22px 20px;
    border-radius: 0 6px 6px 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ai-flow-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.ai-flow-step h4 {
    font-size: 16px;
    font-weight: bold;
    color: #003c71;
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ai-flow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #003c71;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.ai-flow-step p {
    font-size: 14px;
    color: #555;
    margin-left: 36px;
    margin-bottom: 0;
    line-height: 1.6;
}

.ai-cta-section {
    background: linear-gradient(135deg, #002b49 0%, #004b87 100%);
    color: #ffffff;
    border-radius: 8px;
    padding: 42px 28px;
    margin: 40px 0;
    text-align: center;
}

.ai-cta-section h2 {
    color: #ffffff;
    margin-top: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
}

.ai-cta-section p {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.75;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ai-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.ai-cta-buttons .btn {
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cta-btn-primary {
    background: #d97706;
    border-color: #b45309;
    color: #ffffff !important;
}

.cta-btn-primary:hover {
    background: #b45309;
    border-color: #92400e;
}

.cta-btn-secondary {
    background: #ffffff;
    color: #003c71 !important;
    border-color: #ffffff;
}

.cta-btn-secondary:hover {
    background: #f1f5f9;
    color: #002244 !important;
}

@media (max-width: 767px) {
    .ai-hero {
        padding: 40px 0 35px 0;
        margin-bottom: 25px;
    }
    .ai-hero h1 {
        font-size: 22px;
        line-height: 1.4;
    }
    .ai-hero p.lead {
        font-size: 14.5px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    .ai-featured-box {
        padding: 22px 16px;
        margin-bottom: 25px;
    }
    .ai-featured-badge {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
        border-radius: 4px;
        padding: 4px 10px;
        font-size: 11px;
    }
    .ai-featured-box h2 {
        font-size: 18px !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
    }
    .ai-featured-box p {
        font-size: 13.5px !important;
        line-height: 1.75 !important;
    }
    .ai-cta-section {
        padding: 30px 16px;
        margin: 30px 0;
    }
    .ai-cta-section h2 {
        font-size: 19px;
        line-height: 1.45;
    }
    .ai-cta-section p {
        font-size: 13.5px;
        line-height: 1.7;
    }
    .ai-cta-buttons {
        flex-direction: column;
        max-width: 320px;
        margin: 20px auto 0;
        gap: 12px;
    }
    .ai-cta-buttons .btn {
        width: 100%;
        margin: 0 !important;
        text-align: center;
    }
    .ai-flow-step {
        padding: 16px 10px;
        margin-bottom: 12px;
    }
    .ai-flow-step h4 {
        font-size: clamp(13.5px, 3.8vw, 15px);
        white-space: nowrap;
        letter-spacing: -0.35px;
        margin-top: 0;
        margin-bottom: 8px;
    }
    .ai-flow-number {
        width: 23px;
        height: 23px;
        font-size: 12.5px;
        margin-right: 6px;
    }
    .ai-flow-step p {
        font-size: 13.5px;
        margin-left: 29px;
        line-height: 1.65;
    }
}

@media (max-width: 360px) {
    .ai-flow-step {
        padding: 14px 8px;
    }
    .ai-flow-step h4 {
        font-size: 12.5px;
        letter-spacing: -0.5px;
    }
    .ai-flow-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
        margin-right: 5px;
    }
    .ai-flow-step p {
        font-size: 12.5px;
        margin-left: 25px;
    }
}


