/* ===================================
   Step SF 2025 Blog CSS - WP Coder Compatible
   Based on Bloom Bento Box Design System
   =================================== */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');

/* CSS Variables - Global */
:root {
    --primary-green: #299b8e;
    --primary-green-dark: #237a70;
    --primary-green-light: #3fb5a8;
    --primary-lighter: #e6f5f3;
    --secondary-yellow: #f7b801;
    --secondary-yellow-light: #ffd43b;
    --secondary-orange: #d8a442;
    --text-dark: #293340;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-lighter: #ffffff;
    --border-light: #e5e7eb;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Container */
.step-sf-blog {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Typography */
.step-sf-blog h1,
.step-sf-blog h2,
.step-sf-blog h3,
.step-sf-blog h4,
.step-sf-blog h5,
.step-sf-blog h6 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0;
    position: relative;
    z-index: 10; /* Ensure headings stay above pseudo-elements */
}

.step-sf-blog h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
}

.step-sf-blog h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.step-sf-blog h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.step-sf-blog h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-sf-blog p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 5; /* Ensure paragraphs stay above pseudo-elements */
}

/* Hero Section */
.step-sf-blog .hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: var(--radius-xl);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.step-sf-blog .hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none; /* FIXED: Allow clicks/selection through this element */
    z-index: 1; /* FIXED: Keep behind content */
}

.step-sf-blog .hero-section h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10; /* FIXED: Increased z-index */
}

.step-sf-blog .hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-weight: 400;
    position: relative;
    z-index: 10; /* FIXED: Increased z-index */
}

/* Discount Banner */
.step-sf-blog .discount-banner {
    background: linear-gradient(135deg, var(--secondary-yellow) 0%, var(--secondary-orange) 100%);
    color: var(--text-dark);
    padding: 3rem;
    border-radius: var(--radius-xl);
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.step-sf-blog .discount-banner::before {
    content: '🎟️';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 3rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
    pointer-events: none; /* FIXED: Allow clicks through this element */
    z-index: 1; /* FIXED: Keep behind content */
}

/* FIXED: Ensure banner content has proper z-index */
.step-sf-blog .discount-banner > * {
    position: relative;
    z-index: 10;
}

.step-sf-blog .discount-code {
    background: var(--bg-lighter);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    display: inline-block;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 3px dashed var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 15; /* FIXED: Highest z-index for interactive element */
}

.step-sf-blog .discount-code:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Bento Box Components */
.step-sf-blog .bento-box {
    background: var(--bg-lighter);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    margin: 3rem 0;
    transition: all 0.3s ease;
}

.step-sf-blog .bento-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Quick Info Section */
.step-sf-blog .quick-info-section {
    margin: 3rem 0;
}

.step-sf-blog .info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-sf-blog .info-card {
    background: var(--bg-lighter);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-sf-blog .info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(41, 155, 142, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none; /* FIXED: Allow clicks through this element */
    z-index: 1; /* FIXED: Keep behind content */
}

.step-sf-blog .info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.step-sf-blog .info-card:hover::before {
    left: 100%;
}

/* FIXED: Ensure card content has proper z-index */
.step-sf-blog .info-card > * {
    position: relative;
    z-index: 10;
}

.step-sf-blog .info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.step-sf-blog .info-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.step-sf-blog .info-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* Speaker Showcase */
.step-sf-blog .speaker-showcase {
    background: var(--bg-lighter);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.step-sf-blog .speaker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step-sf-blog .speaker-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-lighter) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-green);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-sf-blog .speaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(41, 155, 142, 0.05) 100%);
    transition: all 0.3s ease;
    pointer-events: none; /* FIXED: Allow clicks through this element */
    z-index: 1; /* FIXED: Keep behind content */
}

.step-sf-blog .speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.step-sf-blog .speaker-card:hover::before {
    background: linear-gradient(135deg, transparent 0%, rgba(41, 155, 142, 0.1) 100%);
}

.step-sf-blog .speaker-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10; /* FIXED: Increased z-index */
}

.step-sf-blog .speaker-company {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10; /* FIXED: Increased z-index */
}

.step-sf-blog .speaker-company:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}

/* Feature Highlights */
.step-sf-blog .feature-highlights {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg-lighter) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin: 3rem 0;
    border: 2px solid var(--primary-green-light);
}

.step-sf-blog .highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step-sf-blog .highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-lighter);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.step-sf-blog .highlight-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.step-sf-blog .highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-sf-blog .highlight-text h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-sf-blog .highlight-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Event Details Grid */
.step-sf-blog .event-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.step-sf-blog .detail-card {
    background: var(--bg-lighter);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-align: center;
}

.step-sf-blog .detail-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.step-sf-blog .detail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.step-sf-blog .detail-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.step-sf-blog .detail-content {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Social Proof */
.step-sf-blog .social-proof {
    background: var(--bg-lighter);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.step-sf-blog .testimonial-card {
    background: var(--primary-lighter);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    border-left: 4px solid var(--primary-green);
    position: relative;
}

.step-sf-blog .testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-green);
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: Georgia, serif;
    pointer-events: none; /* FIXED: Allow clicks through this element */
    z-index: 1; /* FIXED: Keep behind content */
}

.step-sf-blog .testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    z-index: 10; /* FIXED: Added z-index */
}

.step-sf-blog .testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    padding-left: 2rem;
    position: relative;
    z-index: 10; /* FIXED: Added z-index */
}

/* Interactive CTA */
.step-sf-blog .interactive-cta {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1f2937 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: var(--radius-xl);
    margin: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.step-sf-blog .interactive-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(41, 155, 142, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 184, 1, 0.3) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none; /* FIXED: Allow clicks through this element */
    z-index: 1; /* FIXED: Keep behind content */
}

.step-sf-blog .interactive-cta h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10; /* FIXED: Increased z-index */
}

.step-sf-blog .interactive-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10; /* FIXED: Increased z-index */
    color: rgba(255,255,255,0.9);
}

.step-sf-blog .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10; /* FIXED: Increased z-index */
}

.step-sf-blog .primary-cta-btn {
    background: var(--secondary-yellow);
    color: var(--text-dark) !important;
    padding: 1.25rem 3rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 184, 1, 0.4);
    position: relative;
    overflow: hidden;
    display: inline-block;
    z-index: 15; /* FIXED: Highest z-index for interactive element */
}

.step-sf-blog .primary-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 184, 1, 0.6);
    color: var(--text-dark) !important;
    text-decoration: none;
}

.step-sf-blog .secondary-cta-btn {
    background: transparent;
    color: white !important;
    padding: 1.25rem 3rem;
    border: 2px solid white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 15; /* FIXED: Highest z-index for interactive element */
}

.step-sf-blog .secondary-cta-btn:hover {
    background: white;
    color: var(--text-dark) !important;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Button Styles */
.step-sf-blog .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--primary-green);
    color: white !important;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    z-index: 10; /* FIXED: Added z-index */
}

.step-sf-blog .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white !important;
    text-decoration: none;
}

/* Lists */
.step-sf-blog ul,
.step-sf-blog ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.step-sf-blog ul li,
.step-sf-blog ol li {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    position: relative;
    z-index: 5; /* FIXED: Ensure list items stay visible */
}

/* Links */
.step-sf-blog a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10; /* FIXED: Ensure links stay clickable */
}

.step-sf-blog a:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}

/* Strong text */
.step-sf-blog strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* FIXED: Add general text visibility rules */
.step-sf-blog * {
    position: relative;
}

.step-sf-blog > *:not(.hero-section):not(.interactive-cta):not(.discount-banner) {
    z-index: 5;
}

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(2deg); 
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-10px); 
    }
    60% { 
        transform: translateY(-5px); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-sf-blog {
        padding: 2rem 1rem;
    }
    
    .step-sf-blog .hero-section {
        padding: 3rem 2rem;
    }
    
    .step-sf-blog .discount-banner {
        padding: 2rem;
    }
    
    .step-sf-blog .discount-code {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }
    
    .step-sf-blog .speaker-grid {
        grid-template-columns: 1fr;
    }
    
    .step-sf-blog .event-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-sf-blog .highlight-grid {
        grid-template-columns: 1fr;
    }
    
    .step-sf-blog .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-sf-blog .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .step-sf-blog .primary-cta-btn,
    .step-sf-blog .secondary-cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .step-sf-blog .interactive-cta {
        padding: 3rem 2rem;
    }
    
    .step-sf-blog .bento-box,
    .step-sf-blog .speaker-showcase,
    .step-sf-blog .feature-highlights,
    .step-sf-blog .social-proof {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .step-sf-blog {
        padding: 1.5rem 0.75rem;
    }
    
    .step-sf-blog .hero-section {
        padding: 2rem 1.5rem;
    }
    
    .step-sf-blog .discount-banner {
        padding: 1.5rem;
    }
    
    .step-sf-blog .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .step-sf-blog .highlight-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-sf-blog .interactive-cta {
        padding: 2rem 1.5rem;
    }
    
    .step-sf-blog .interactive-cta h3 {
        font-size: 2rem;
    }
    
    .step-sf-blog .bento-box,
    .step-sf-blog .speaker-showcase,
    .step-sf-blog .feature-highlights,
    .step-sf-blog .social-proof {
        padding: 1.5rem;
    }
}

/* Focus States for Accessibility */
.step-sf-blog .speaker-company:focus,
.step-sf-blog .primary-cta-btn:focus,
.step-sf-blog .secondary-cta-btn:focus,
.step-sf-blog .detail-card:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}