/* =========================================
   SOLUTIONS.CSS
========================================= */

.solutions-container {
    padding: 120px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Headings & Common --- */
.section-title {
    font-size: 2.5rem;
    color: #f0f0f0;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #00d65b;
    margin: 15px auto 0;
}

.highlight {
    color: #00d65b;
}

/* --- Hero Section --- */
.solutions-hero {
    text-align: center;
    padding: 60px 0 100px;
    animation: fadeIn 1s ease-out;
}

.solutions-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #c0c0d0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Core Solutions --- */
.core-solutions {
    margin-bottom: 120px;
    scroll-margin-top: 100px;
}

.core-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.core-card {
    background: rgba(20, 25, 45, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 214, 91, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 120px; 
}

.core-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #00d65b;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.core-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.agent-tag {
    display: inline-block;
    background: rgba(0, 214, 91, 0.15);
    color: #00d65b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    align-self: flex-start;
}

.core-description {
    font-size: 1.1rem;
    color: #d0d0e0;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1; 
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.benefits-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #e0e0e0;
}

.benefits-list li::before {
    content: '✓';
    color: #00d65b;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* === UPDATED BUTTON STYLES === */
.cta-button {
    display: inline-block; /* Ensures it doesn't take full width unless forced */
    text-align: center;
    background: #00d65b;
    color: #050510;
    /* Reduced padding from 15px 30px to 12px 24px for a smaller look */
    padding: 12px 24px; 
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    /* Reduced font size from 1.1rem to 1rem */
    font-size: 1rem;
    transition: all 0.3s ease;
    width: fit-content; /* Explicitly tells the button only to be as wide as its text */
    margin-top: 20px;
}

.cta-button:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 214, 91, 0.5);
    transform: scale(1.02);
}

/* Optional modifier for even smaller buttons in pipeline cards */
.cta-button.small-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    width: 100%; /* Optional: make pipeline buttons full width if preferred, remove if not */
    margin-top: 25px;
}

/* --- Innovation Pipeline --- */
.pipeline-solutions {
    margin-bottom: 80px;
}

.section-subtitle {
    text-align: center;
    color: #a0a0b0;
    font-size: 1.2rem;
    margin-top: -30px;
    margin-bottom: 60px;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.pipeline-card {
    background: rgba(30, 35, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.pipeline-card:hover {
    border-color: rgba(0, 214, 91, 0.5);
    transform: translateY(-5px);
}

.video-wrapper {
    width: 100%;
    height: 220px;
    background: #000;
    position: relative;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pipeline-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pipeline-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.brief {
    color: #c0c0d0;
    margin-bottom: 20px;
    line-height: 1.5;
}

.pipeline-content h4 {
    color: #00d65b;
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pipeline-benefits {
    list-style: none;
    padding-left: 0;
    flex-grow: 1; /* Pushes the button to the bottom of the card */
}

.pipeline-benefits li {
    margin-bottom: 8px;
    color: #d0d0d0;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.pipeline-benefits li::before {
    content: '•';
    color: #00d65b;
    font-size: 1.5rem;
    line-height: 1rem;
    margin-right: 10px;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .core-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    .solutions-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .pipeline-grid {
        grid-template-columns: 1fr;
    }
    .core-card {
        padding: 35px 25px;
    }
}