/* ==========================================================================
   Conversion Path CTAs — Nav button, Sidebar card, Mobile CTA
   ========================================================================== */

/* --- Desktop Nav CTA Button --- */
.desktop-nav-group {
    display: none; /* hidden on mobile, shown at 768px */
    align-items: baseline;
    gap: 2rem;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background-color: var(--hero-btn-color, #0085ff);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-cta-btn:hover {
    background-color: var(--hero-btn-hover, #0057a7);
    color: #fff;
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .desktop-nav-group {
        display: flex;
    }

}

/* --- Mobile CTA (top of mobile menu) --- */
.mobile-cta-wrapper {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--hero-btn-color, #0085ff);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.mobile-cta-btn:hover {
    background-color: var(--hero-btn-hover, #0057a7);
    color: #fff;
}

/* --- Sidebar CTA Card (blog posts) --- */
.sidebar-cta-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.10) 0%, rgba(139, 92, 246, 0.12) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.sidebar-cta-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 133, 255, 0.9);
    background-color: rgba(0, 133, 255, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.sidebar-cta-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.sidebar-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: var(--hero-btn-color, #0085ff);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-bottom: 0.5rem;
}

.sidebar-cta-primary:hover {
    background-color: var(--hero-btn-hover, #0057a7);
    color: #fff;
}

.sidebar-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.sidebar-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Hide sidebar CTA on mobile (contact section at bottom handles it) */
@media (max-width: 767px) {
    .sidebar-cta-card {
        display: none;
    }
}

/* --- Related Posts CTA Card (in related articles grid) --- */
.related-cta-card {
    height: 100%;
}

.related-cta-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
}

.related-cta-accent {
    height: 3px;
    background: linear-gradient(90deg, #0085ff 0%, #6366f1 50%, #8b5cf6 100%);
}

.related-cta-content {
    flex: 1;
    padding: 1.5rem 1.5rem 0;
}

.related-cta-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    margin-bottom: 0.875rem;
}

.related-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-cta-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.related-cta-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.5rem;
}

.related-cta-proof-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.related-cta-proof-number {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.related-cta-proof-label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.related-cta-proof-divider {
    width: 1px;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.related-cta-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #0085ff 0%, #6366f1 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.related-cta-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.related-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.related-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
