/* Knowledge Base Mid-Article CTA Boxes */

.kb-cta-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: linear-gradient(135deg, #f8fbfd 0%, #eef6fa 100%);
    border: 1px solid #d4e6f1;
    border-left: 4px solid var(--secondary-color, #3498db);
    border-radius: 8px;
    padding: 1.75rem;
    margin: 2.5rem 0;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
    transition: all 0.3s ease;
}

.kb-cta-box:hover {
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.15);
}

/* Alternate style for variety */
.kb-cta-box.alt {
    background: linear-gradient(135deg, #fdf8f3 0%, #faf3eb 100%);
    border-color: #f5d9c0;
    border-left-color: #e67e22;
}

.kb-cta-box.alt .kb-cta-icon {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.kb-cta-box.alt .kb-cta-button {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.kb-cta-box.alt .kb-cta-button:hover {
    background: linear-gradient(135deg, #d35400 0%, #c0392b 100%);
}

/* Success/green variant */
.kb-cta-box.success {
    background: linear-gradient(135deg, #f0faf5 0%, #e8f6ef 100%);
    border-color: #c3e6d1;
    border-left-color: #27ae60;
}

.kb-cta-box.success .kb-cta-icon {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.kb-cta-box.success .kb-cta-button {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.kb-cta-box.success .kb-cta-button:hover {
    background: linear-gradient(135deg, #1e8449 0%, #196f3d 100%);
}

/* Icon styling */
.kb-cta-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary-color, #3498db) 0%, #2980b9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

.kb-cta-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Content area */
.kb-cta-content {
    flex: 1;
    min-width: 0;
}

.kb-cta-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color, #2c3e50);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.kb-cta-content p {
    margin: 0 0 1rem 0;
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Button */
.kb-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: linear-gradient(135deg, var(--secondary-color, #3498db) 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.kb-cta-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6dad 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.kb-cta-button::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.kb-cta-button:hover::after {
    transform: translateX(3px);
}

/* Compact variant for inline use */
.kb-cta-box.compact {
    padding: 1.25rem;
    gap: 1rem;
}

.kb-cta-box.compact .kb-cta-icon {
    width: 44px;
    height: 44px;
}

.kb-cta-box.compact .kb-cta-icon i {
    font-size: 1.2rem;
}

.kb-cta-box.compact .kb-cta-content h4 {
    font-size: 1.05rem;
}

.kb-cta-box.compact .kb-cta-content p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Full-width banner variant */
.kb-cta-box.banner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color, #2c3e50) 0%, #1a252f 100%);
    border: none;
    border-left: none;
}

.kb-cta-box.banner .kb-cta-icon {
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.kb-cta-box.banner .kb-cta-content h4 {
    color: white;
    font-size: 1.4rem;
}

.kb-cta-box.banner .kb-cta-content p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.kb-cta-box.banner .kb-cta-button {
    background: white;
    color: var(--primary-color, #2c3e50);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.kb-cta-box.banner .kb-cta-button:hover {
    background: #f8f9fa;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .kb-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .kb-cta-icon {
        margin: 0 auto;
    }

    .kb-cta-content h4 {
        font-size: 1.1rem;
    }

    .kb-cta-content p {
        font-size: 0.9rem;
    }

    .kb-cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for scroll reveal (optional - requires JS) */
.kb-cta-box.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.kb-cta-box.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
