/**
 * BW Blocks Frontend Styles
 * 100% Matching wireframe design from 01-homepage.html
 */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Exact from wireframe */
:root {
    --bw-primary: #667eea;
    --bw-secondary: #764ba2;
    --bw-accent: #00d4aa;
    --bw-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bw-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bw-gradient-accent: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    --bw-gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --bw-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Global Block Styles */
.bw-badge,
.bw-hero-h1,
.bw-btn,
.bw-program-card {
    font-family: var(--bw-font-family) !important;
}

/* ===== BW Badge Styles - Exact from wireframe ===== */
.bw-badge-wrapper {
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 30px;
}

.bw-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    font-family: var(--bw-font-family);
}

.bw-badge.bw-animated {
    animation: bwFadeInDown 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bw-badge-icon {
    width: 20px;
    height: 20px;
    background: var(--bw-gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    animation: bwPulse 2s infinite;
}

@keyframes bwPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); 
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 0 10px rgba(0, 212, 170, 0); 
    }
}

@keyframes bwFadeInDown {
    0% { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ===== BW Hero H1 Styles - Exact from wireframe ===== */
.bw-hero-h1 {
    font-size: 72px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    margin-bottom: 40px;
    font-family: var(--bw-font-family) !important;
    transition: all 0.3s;
    color: white !important;
    letter-spacing: -0.02em;
}

.bw-hero-h1.bw-gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.85) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: bwFadeInUp 1s ease-out 0.3s both;
}

/* Subtle glitch effect on hover - exact from wireframe */
.bw-hero-h1.bw-glitch-hover:hover {
    animation: bwSubtleGlitch 0.3s ease-in-out;
}

@keyframes bwSubtleGlitch {
    0%, 100% { 
        text-shadow: 
            0.02em 0 0 rgba(102, 126, 234, 0.5),
            -0.02em -0 0 rgba(0, 212, 170, 0.5),
            0.02em 0 0 rgba(102, 126, 234, 0.5);
    }
    50% { 
        text-shadow: 
            0.02em 0 0 rgba(102, 126, 234, 0.8),
            -0.03em -0 0 rgba(0, 212, 170, 0.8),
            0 0 0 rgba(102, 126, 234, 0.8);
    }
}

@keyframes bwFadeInUp {
    0% { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ===== BW Buttons Styles - Exact from wireframe ===== */
.bw-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: bwFadeInUp 1s ease-out 0.6s both;
    margin: 30px 0;
}

.bw-btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    font-family: var(--bw-font-family);
    box-sizing: border-box;
}

/* Primary Button - Exact from wireframe */
.bw-btn-primary {
    background: var(--bw-gradient-primary);
    color: white !important;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.35);
    border: none;
}

.bw-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.bw-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.45);
    color: white !important;
}

.bw-btn-primary:hover::before {
    left: 100%;
}

/* Secondary Button - Exact from wireframe */
.bw-btn-secondary {
    background: transparent;
    color: var(--bw-primary) !important;
    border: 2px solid var(--bw-primary);
    position: relative;
    z-index: 1;
}

.bw-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bw-primary);
    transition: width 0.3s;
    z-index: -1;
    border-radius: 50px;
}

.bw-btn-secondary:hover {
    background: var(--bw-primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: var(--bw-primary);
}

.bw-btn-secondary:hover::before {
    width: 100%;
}

/* Dark background variations */
.has-black-background-color .bw-btn-secondary,
.has-dark-gray-background-color .bw-btn-secondary,
.kt-row-has-bg-color .bw-btn-secondary,
[style*="background"] .bw-btn-secondary {
    color: white !important;
    border-color: white;
}

.has-black-background-color .bw-btn-secondary:hover,
.has-dark-gray-background-color .bw-btn-secondary:hover,
.kt-row-has-bg-color .bw-btn-secondary:hover,
[style*="background"] .bw-btn-secondary:hover {
    background: white;
    color: #1a1a2e !important;
    border-color: white;
}

/* ===== BW Program Card Styles - Exact from wireframe ===== */
.bw-program-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    max-width: 100%;
    margin-bottom: 30px;
    font-family: var(--bw-font-family);
}

.bw-program-card:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Program Header */
.bw-program-header {
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.bw-program-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: bwRotate 20s linear infinite;
}

@keyframes bwRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bw-program-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.bw-program-header h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    position: relative;
    z-index: 1;
    color: white !important;
}

/* Color Schemes - Exact from wireframe */
.bw-program-flagship .bw-program-header {
    background: var(--bw-gradient-primary);
}

.bw-program-agency .bw-program-header {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
}

.bw-program-self .bw-program-header {
    background: var(--bw-gradient-warm);
}

.bw-program-legal .bw-program-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Program Body */
.bw-program-body {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.bw-program-description {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

/* Features */
.bw-program-features {
    margin-bottom: 30px;
    flex: 1;
}

.bw-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 16px;
}

.bw-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--bw-gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.bw-feature-text {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

/* Program Footer */
.bw-program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: auto;
    border-top: 1px solid #eee;
}

.bw-price-section {
    display: flex;
    flex-direction: column;
}

.bw-price {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.bw-price-note {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

/* Program button specific styles */
.bw-program-footer .bw-btn {
    padding: 14px 28px;
    font-size: 14px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    .bw-hero-h1 {
        font-size: 48px !important;
    }
    
    .bw-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bw-btn {
        width: 100%;
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .bw-program-header {
        padding: 30px;
    }
    
    .bw-program-body {
        padding: 30px;
    }
    
    .bw-program-footer {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .bw-program-footer .bw-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .bw-hero-h1 {
        font-size: 36px !important;
    }
}

/* ===== Grid Layouts ===== */
.bw-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

/* ===== Alignment Utilities ===== */
.bw-buttons[style*="text-align: left"] {
    justify-content: flex-start;
}

.bw-buttons[style*="text-align: center"] {
    justify-content: center;
}

.bw-buttons[style*="text-align: right"] {
    justify-content: flex-end;
}

/* ===== Editor Specific ===== */
.block-editor .bw-badge,
.block-editor .bw-hero-h1,
.block-editor .bw-buttons,
.block-editor .bw-program-card {
    margin: 20px 0;
}

/* ===== Accessibility ===== */
.bw-btn:focus {
    outline: 2px solid var(--bw-primary);
    outline-offset: 2px;
}

.bw-badge:focus-within {
    outline: 2px solid var(--bw-accent);
    outline-offset: 2px;
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    .bw-badge {
        border-width: 2px;
    }
    
    .bw-btn {
        border-width: 3px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .bw-badge,
    .bw-hero-h1,
    .bw-buttons,
    .bw-program-card,
    .bw-badge-icon {
        animation: none !important;
    }
    
    .bw-btn,
    .bw-program-card {
        transition: none !important;
    }
}

/* ===== Print Styles ===== */
@media print {
    .bw-badge,
    .bw-hero-h1,
    .bw-buttons,
    .bw-program-card {
        animation: none !important;
    }
    
    .bw-btn {
        box-shadow: none !important;
    }
    
    .bw-program-card {
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}

/* ===== BW Gallery Grid Styles ===== */
.bw-gallery-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.75fr 0.75fr;
    grid-template-rows: repeat(2, 280px);
    gap: 16px;
    margin: 40px 0;
    position: relative;
    max-width: 1200px;
}

/* First image - large, spans 2 rows on left */
.bw-gallery-item:first-child {
    grid-row: 1 / 3;
    grid-column: 1;
}

/* Second and third images - top row right */
.bw-gallery-item:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
}

.bw-gallery-item:nth-child(3) {
    grid-row: 1;
    grid-column: 3;
}

/* Fourth and fifth images - bottom row right */
.bw-gallery-item:nth-child(4) {
    grid-row: 2;
    grid-column: 2;
}

.bw-gallery-item:nth-child(5) {
    grid-row: 2;
    grid-column: 3;
}

.bw-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bw-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bw-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.bw-gallery-item:hover img {
    transform: scale(1.1);
}

/* Remove masonry sizes - using fixed layout instead */

/* Gallery overlay with title and description */
.bw-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.8) 50%, transparent 100%);
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bw-gallery-item:hover .bw-gallery-overlay {
    transform: translateY(0);
}

.bw-gallery-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    color: white !important;
    line-height: 1.2 !important;
    font-family: var(--bw-font-family) !important;
}

.bw-gallery-description {
    font-size: 14px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.5 !important;
    font-family: var(--bw-font-family) !important;
}

/* Gallery Controls (hidden on desktop) */
.bw-gallery-controls {
    display: none;
    position: relative;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.bw-gallery-prev,
.bw-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bw-gallery-prev {
    left: 10px;
}

.bw-gallery-next {
    right: 10px;
}

.bw-gallery-prev:hover,
.bw-gallery-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Dots navigation */
.bw-gallery-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 10px 0;
}

.bw-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bw-gallery-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--bw-primary);
}

/* Mobile Carousel Mode */
@media (max-width: 768px) {
    .bw-gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 15px;
        padding: 0 15px;
        margin: 20px -15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .bw-gallery-grid::-webkit-scrollbar {
        display: none;
    }
    
    .bw-gallery-item {
        flex: 0 0 calc(100vw - 40px);
        scroll-snap-align: center;
        height: 300px;
    }
    
    /* Reset grid layout for mobile */
    .bw-gallery-item:first-child,
    .bw-gallery-item:nth-child(2),
    .bw-gallery-item:nth-child(3),
    .bw-gallery-item:nth-child(4),
    .bw-gallery-item:nth-child(5) {
        grid-row: unset;
        grid-column: unset;
    }
    
    .bw-gallery-controls {
        display: flex;
        position: relative;
    }
    
    /* Hide arrows on very small screens */
    @media (max-width: 480px) {
        .bw-gallery-prev,
        .bw-gallery-next {
            display: none;
        }
    }
}

/* Gallery placeholder in editor */
.bw-gallery-grid-placeholder {
    padding: 40px;
    text-align: center;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #999;
    font-size: 16px;
}

/* Editor preview styles */
.bw-gallery-grid-editor {
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    min-height: 200px;
}

.bw-gallery-preview {
    margin-bottom: 20px;
}

.bw-gallery-preview-item {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    min-height: 150px;
}

/* ===== BW Value Grid Item Styles ===== */
.bw-value-grid-item {
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

/* Gradient background overlay */
.bw-value-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Color schemes */
.bw-value-purple::before {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.bw-value-green::before {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(0, 184, 148, 0.05) 100%);
}

.bw-value-blue::before {
    background: linear-gradient(135deg, rgba(77, 171, 255, 0.05) 0%, rgba(43, 130, 214, 0.05) 100%);
}

.bw-value-pink::before {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%);
}

/* Hover effects */
.bw-value-grid-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.bw-value-grid-item:hover::before {
    opacity: 1;
}

/* Icon styling */
.bw-value-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bw-value-grid-item:hover .bw-value-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Icon background circle */
.bw-value-icon::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.bw-value-purple .bw-value-icon::after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bw-value-green .bw-value-icon::after {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
}

.bw-value-blue .bw-value-icon::after {
    background: linear-gradient(135deg, #4dabff 0%, #2b82d6 100%);
}

.bw-value-pink .bw-value-icon::after {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Content container */
.bw-value-content {
    position: relative;
    z-index: 1;
}

/* Number styling */
.bw-value-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
    font-family: var(--bw-font-family);
    letter-spacing: -1px;
    transition: transform 0.3s ease;
}

.bw-value-purple .bw-value-number {
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bw-value-green .bw-value-number {
    color: #00d4aa;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bw-value-blue .bw-value-number {
    color: #4dabff;
    background: linear-gradient(135deg, #4dabff 0%, #2b82d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bw-value-pink .bw-value-number {
    color: #f093fb;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bw-value-grid-item:hover .bw-value-number {
    transform: scale(1.05);
}

/* Label styling */
.bw-value-label {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    font-family: var(--bw-font-family);
    line-height: 1.4;
    max-width: 200px;
    margin: 0 auto;
}

/* Animation for numbers */
@keyframes bwCountUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bw-value-grid-item.animated .bw-value-number {
    animation: bwCountUp 0.6s ease-out;
}

/* Grid container compatibility */
.wp-block-kadence-rowlayout .bw-value-grid-item {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bw-value-grid-item {
        padding: 30px 20px;
        min-height: 240px;
    }
    
    .bw-value-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .bw-value-icon::after {
        width: 80px;
        height: 80px;
    }
    
    .bw-value-number {
        font-size: 38px;
    }
    
    .bw-value-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bw-value-number {
        font-size: 32px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bw-value-grid-item,
    .bw-value-icon,
    .bw-value-number {
        transition: none !important;
        animation: none !important;
    }
    
    .bw-value-grid-item:hover {
        transform: none !important;
    }
}

/* ===== BW Value Card Styles - Text Info Boxes ===== */
.bw-value-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Gradient top border that expands on hover */
.bw-value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

/* Hover effects */
.bw-value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.bw-value-card:hover::before {
    transform: scaleX(1);
}

/* Scale on scroll animation */
@keyframes bwScrollScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bw-value-card.scroll-scale {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
}

.bw-value-card.scroll-scale.visible {
    animation: bwScrollScale 0.6s ease-out forwards;
}

/* Icon container - just the emoji */
.bw-value-card-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 30px;
    display: block;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Icon text/emoji */
.bw-value-card-icon span {
    display: block;
    filter: grayscale(0);
}

/* Hover effect on icon */
.bw-value-card:hover .bw-value-card-icon {
    transform: scale(1.15) rotate(3deg);
}

/* Title styling */
.bw-value-card-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.3 !important;
    font-family: var(--bw-font-family) !important;
    letter-spacing: -0.02em;
}

/* Description styling */
.bw-value-card-description {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    font-family: var(--bw-font-family) !important;
    max-width: 320px;
    margin: 0 auto !important;
}

/* Grid container support */
.wp-block-kadence-rowlayout .bw-value-card {
    margin: 0;
    height: 100%;
}

/* Make sure cards align properly in grid */
.kt-inside-inner-col > .bw-value-card {
    height: calc(100% - 40px);
    margin: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .bw-value-card {
        padding: 25px;
    }
    
    .bw-value-card-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .bw-value-card-title {
        font-size: 18px !important;
    }
    
    .bw-value-card-description {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .bw-value-card {
        padding: 20px;
    }
    
    .bw-value-card-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .bw-value-card-title {
        font-size: 17px !important;
    }
}

/* Ensure consistent card appearance */
.bw-value-card {
    background: white !important;
}

/* Print styles */
@media print {
    .bw-value-card {
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .bw-value-card::before {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bw-value-card {
        border: 2px solid currentColor;
    }
    
    .bw-value-card-icon {
        border: 2px solid currentColor;
    }
}

/* Reduced motion for value cards */
@media (prefers-reduced-motion: reduce) {
    .bw-value-card,
    .bw-value-card-icon,
    .bw-value-card::before {
        transition: none !important;
        animation: none !important;
    }
    
    .bw-value-card:hover {
        transform: none !important;
    }
    
    .bw-value-card:hover .bw-value-card-icon {
        transform: none !important;
    }
}

/* ===== BW Service Block Styles ===== */
.bw-service-detail {
    padding: 50px 60px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Top gradient border on hover */
.bw-service-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

/* Color scheme gradients for top border */
.bw-service-primary::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bw-service-accent::before {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
}

.bw-service-warm::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bw-service-dark::before {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Hover effects */
.bw-service-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.bw-service-detail:hover::before {
    transform: scaleX(1);
}

/* Service header grid layout */
.bw-service-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Icon area */
.bw-service-icon-area {
    display: flex;
    justify-content: center;
}

.bw-service-icon {
    width: 160px;
    height: 160px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

/* Icon background gradients */
.bw-service-primary .bw-service-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bw-service-accent .bw-service-icon {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
}

.bw-service-warm .bw-service-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bw-service-dark .bw-service-icon {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Icon hover effect */
.bw-service-detail:hover .bw-service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Animated gradient overlay on icon */
.bw-service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: bwRotate 15s linear infinite;
}

/* Service content */
.bw-service-content {
    flex: 1;
}

.bw-service-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.2 !important;
    font-family: var(--bw-font-family) !important;
}

.bw-service-description {
    font-size: 16px !important;
    color: #666 !important;
    line-height: 1.7 !important;
    margin: 0 0 24px 0 !important;
    font-family: var(--bw-font-family) !important;
}

/* Service meta section with background */
.bw-service-meta {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
    border-left: 4px solid;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.bw-service-meta .bw-service-meta-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

/* Meta border colors based on color scheme */
.bw-service-primary .bw-service-meta {
    background: rgba(102, 126, 234, 0.05);
    border-color: #667eea;
}

.bw-service-accent .bw-service-meta {
    background: rgba(0, 212, 170, 0.05);
    border-color: #00d4aa;
}

.bw-service-warm .bw-service-meta {
    background: rgba(240, 147, 251, 0.05);
    border-color: #f093fb;
}

.bw-service-dark .bw-service-meta {
    background: rgba(26, 26, 46, 0.05);
    border-color: #1a1a2e;
}

/* Features list */
.bw-service-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bw-service-features li {
    position: relative;
    padding: 12px 0 12px 32px !important;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    font-family: var(--bw-font-family);
}

.bw-service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Service button styling */
.bw-service-content .bw-btn {
    margin-top: 30px;
}

/* Service separator */
.bw-service-separator {
    margin: 50px 0 40px 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
    position: relative;
}

.bw-service-separator::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Service images grid */
.bw-service-images {
    padding: 0;
}

.bw-service-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bw-service-image-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 4/3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bw-service-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bw-service-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 46, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bw-service-image-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.bw-service-image-item:hover img {
    transform: scale(1.1);
}

.bw-service-image-item:hover .bw-service-image-overlay {
    opacity: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
    .bw-service-detail {
        padding: 40px 30px;
    }
    
    .bw-service-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .bw-service-icon {
        width: 120px;
        height: 120px;
        font-size: 56px;
    }
    
    .bw-service-title {
        font-size: 26px !important;
    }
    
    .bw-service-description {
        font-size: 15px !important;
    }
    
    .bw-service-images-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bw-service-separator {
        margin: 40px 0 30px 0;
    }
}

@media (max-width: 480px) {
    .bw-service-detail {
        padding: 30px 20px;
    }
    
    .bw-service-icon {
        width: 100px;
        height: 100px;
        font-size: 48px;
        border-radius: 20px;
    }
    
    .bw-service-title {
        font-size: 22px !important;
    }
    
    .bw-service-features li {
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .bw-service-detail {
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .bw-service-detail::before {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bw-service-detail {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bw-service-detail,
    .bw-service-icon,
    .bw-service-icon::before {
        animation: none !important;
        transition: none !important;
    }
    
    .bw-service-detail:hover {
        transform: none !important;
    }
    
    .bw-service-detail:hover .bw-service-icon {
        transform: none !important;
    }
}

/* ===== BW Horizontal Timeline Styles ===== */
.bw-process-timeline {
    display: flex;
    justify-content: space-between;
    margin: 80px 0;
    position: relative;
    padding: 0 20px;
}

/* Connecting line */
.bw-process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 3px;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

/* Color scheme gradients for connector */
.bw-timeline-primary::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.bw-timeline-accent::before {
    background: linear-gradient(90deg, #00d4aa 0%, #00b894 100%);
}

.bw-timeline-warm::before {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.bw-timeline-dark::before {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
}

/* Hide connector if disabled */
.bw-process-timeline.no-connector::before {
    display: none;
}

/* Process step */
.bw-process-step {
    text-align: center;
    flex: 1;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

/* Animation for steps when visible */
.bw-process-timeline.visible .bw-process-step {
    animation: bwFadeInUp 0.6s forwards;
}

.bw-process-timeline.visible .bw-process-step:nth-child(1) { animation-delay: 0.1s; }
.bw-process-timeline.visible .bw-process-step:nth-child(2) { animation-delay: 0.2s; }
.bw-process-timeline.visible .bw-process-step:nth-child(3) { animation-delay: 0.3s; }
.bw-process-timeline.visible .bw-process-step:nth-child(4) { animation-delay: 0.4s; }
.bw-process-timeline.visible .bw-process-step:nth-child(5) { animation-delay: 0.5s; }
.bw-process-timeline.visible .bw-process-step:nth-child(6) { animation-delay: 0.6s; }

/* Step number circle */
.bw-step-number {
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-weight: 700;
    font-size: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--bw-font-family);
}

/* Color scheme gradients for step numbers */
.bw-timeline-primary .bw-step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bw-timeline-accent .bw-step-number {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
}

.bw-timeline-warm .bw-step-number {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bw-timeline-dark .bw-step-number {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Hover effect on step number */
.bw-process-step:hover .bw-step-number {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Step title */
.bw-step-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
    font-family: var(--bw-font-family) !important;
    transition: color 0.3s ease;
}

/* Step description */
.bw-step-description {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    max-width: 200px;
    margin: 0 auto !important;
    font-family: var(--bw-font-family) !important;
}

/* Hover effect on step */
.bw-process-step:hover .bw-step-title {
    color: #667eea !important;
}

/* Animation visible state */
.bw-process-timeline.visible::before {
    opacity: 0.3;
}

/* Responsive styles */
@media (max-width: 991px) {
    .bw-process-timeline {
        flex-wrap: wrap;
        padding: 0;
    }
    
    .bw-process-timeline::before {
        display: none;
    }
    
    .bw-process-step {
        flex: 0 0 50%;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .bw-process-timeline {
        display: block;
        margin: 60px 0;
    }
    
    .bw-process-step {
        margin-bottom: 40px;
    }
    
    .bw-step-number {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .bw-step-title {
        font-size: 16px !important;
    }
    
    .bw-step-description {
        max-width: 280px;
    }
}

/* Print styles */
@media print {
    .bw-process-timeline {
        page-break-inside: avoid;
    }
    
    .bw-process-step {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bw-step-number {
        border: 2px solid currentColor;
    }
}

/* Reduced motion for timeline */
@media (prefers-reduced-motion: reduce) {
    .bw-process-step,
    .bw-step-number {
        animation: none !important;
        transition: none !important;
    }
    
    .bw-process-step:hover .bw-step-number {
        transform: none !important;
    }
    
    .bw-process-timeline.visible .bw-process-step {
        opacity: 1;
        transform: none;
    }
}

/* ===== BW Comparison Table Styles ===== */
.bw-comparison-table-wrapper {
    margin: 40px 0;
}

/* Desktop table styles */
.bw-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: var(--bw-font-family);
}

/* Table header */
.bw-comparison-table thead th {
    color: white;
    padding: 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

/* Color scheme gradients for header */
.bw-table-primary thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bw-table-accent thead th {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
}

.bw-table-warm thead th {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bw-table-dark thead th {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Table body */
.bw-comparison-table tbody td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
    font-size: 15px;
    color: #333;
}

.bw-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Hover effect on rows */
.bw-comparison-table tbody tr {
    transition: background-color 0.3s ease;
}

.bw-comparison-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.02);
}

/* First column bold */
.bw-comparison-table tbody td:first-child {
    font-weight: 600;
    color: #1a1a2e;
}

/* Table links */
.bw-table-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.bw-table-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Mobile cards view (hidden by default) */
.bw-comparison-cards {
    display: none;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    /* Hide desktop table */
    .bw-comparison-table-wrapper.mobile-cards .bw-comparison-table {
        display: none;
    }
    
    /* Show mobile cards */
    .bw-comparison-table-wrapper.mobile-cards .bw-comparison-cards {
        display: block;
    }
    
    /* Card styling */
    .bw-comparison-card {
        background: white;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        margin-bottom: 20px;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .bw-comparison-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }
    
    /* Card title with gradient background */
    .bw-card-title {
        margin: 0;
        padding: 20px;
        color: white;
        font-size: 18px !important;
        font-weight: 600 !important;
        font-family: var(--bw-font-family) !important;
    }
    
    /* Color schemes for card headers */
    .bw-card-primary .bw-card-title {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .bw-card-accent .bw-card-title {
        background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    }
    
    .bw-card-warm .bw-card-title {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    }
    
    .bw-card-dark .bw-card-title {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    /* Card content */
    .bw-comparison-card .bw-card-content {
        padding: 20px;
    }
    
    .bw-card-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .bw-card-row:last-child {
        margin-bottom: 0;
    }
    
    .bw-card-label {
        font-weight: 600;
        color: #666;
        margin-right: 10px;
    }
    
    .bw-card-row span:last-child {
        text-align: right;
        flex: 1;
        color: #333;
    }
    
    /* Card button */
    .bw-card-button {
        display: block;
        width: 100%;
        padding: 15px;
        text-align: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white !important;
        text-decoration: none !important;
        font-weight: 600;
        font-size: 15px;
        transition: all 0.3s ease;
        border-top: 1px solid #e8e8e8;
        font-family: var(--bw-font-family);
    }
    
    .bw-card-button:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        color: white !important;
    }
}

/* Fallback for non-card mobile view */
@media (max-width: 768px) {
    .bw-comparison-table-wrapper:not(.mobile-cards) .bw-comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .bw-comparison-table-wrapper:not(.mobile-cards) .bw-comparison-table {
        min-width: 600px;
    }
}

/* Print styles */
@media print {
    .bw-comparison-table-wrapper {
        page-break-inside: avoid;
    }
    
    .bw-comparison-cards {
        display: none !important;
    }
    
    .bw-comparison-table {
        display: table !important;
        box-shadow: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bw-comparison-table,
    .bw-comparison-card {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bw-comparison-table tbody tr,
    .bw-comparison-card,
    .bw-table-link {
        transition: none !important;
    }
    
    .bw-comparison-card:hover {
        transform: none !important;
    }
}

/* ===== BW Icon Card Styles ===== */
.bw-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Gradient top border that expands on hover */
.bw-icon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

/* Color scheme variations */
.bw-icon-card-primary::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bw-icon-card-pink::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bw-icon-card-teal::before {
    background: linear-gradient(135deg, #00d4aa 0%, #4facfe 100%);
}

/* Hover effects */
.bw-icon-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.bw-icon-card:hover::before {
    transform: scaleX(1);
}

/* Icon container with gradient background */
.bw-icon-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Color schemes for icon backgrounds */
.bw-icon-card-primary .bw-icon-card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bw-icon-card-pink .bw-icon-card-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bw-icon-card-teal .bw-icon-card-icon {
    background: linear-gradient(135deg, #00d4aa 0%, #4facfe 100%);
}

/* SVG icon styling */
.bw-icon-card-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

/* Hover effect on icon */
.bw-icon-card:hover .bw-icon-card-icon {
    transform: scale(1.1);
}

/* Title styling */
.bw-icon-card-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.3 !important;
    font-family: var(--bw-font-family) !important;
    letter-spacing: -0.02em;
}

/* Description styling */
.bw-icon-card-description {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    font-family: var(--bw-font-family) !important;
    max-width: 320px;
    margin: 0 auto !important;
}

/* Animation on scroll */
@keyframes bwIconCardScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bw-icon-card.scroll-scale {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
}

.bw-icon-card.scroll-scale.visible {
    animation: bwIconCardScale 0.6s ease-out forwards;
}

/* Grid container support */
.wp-block-kadence-rowlayout .bw-icon-card {
    margin: 0;
    height: 100%;
}

/* Make sure cards align properly in grid */
.kt-inside-inner-col > .bw-icon-card {
    height: calc(100% - 40px);
    margin: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .bw-icon-card {
        padding: 35px 25px;
    }
    
    .bw-icon-card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
    }
    
    .bw-icon-card-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .bw-icon-card-title {
        font-size: 20px !important;
    }
    
    .bw-icon-card-description {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .bw-icon-card {
        padding: 30px 20px;
    }
    
    .bw-icon-card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    .bw-icon-card-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .bw-icon-card-title {
        font-size: 18px !important;
    }
    
    .bw-icon-card-description {
        font-size: 14px !important;
    }
}

/* Ensure consistent card appearance */
.bw-icon-card {
    background: white !important;
}

/* Print styles */
@media print {
    .bw-icon-card {
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .bw-icon-card::before {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bw-icon-card {
        border: 2px solid currentColor;
    }
    
    .bw-icon-card-icon {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bw-icon-card,
    .bw-icon-card-icon,
    .bw-icon-card::before {
        transition: none !important;
        animation: none !important;
    }
    
    .bw-icon-card:hover {
        transform: none !important;
    }
    
    .bw-icon-card:hover .bw-icon-card-icon {
        transform: none !important;
    }
}

/* ===== BW Course Header Styles ===== */
.bw-course-header {
    /* Remove default background - let Kadence row handle it */
    padding: 0;
    color: inherit;
    position: relative;
}

/* When used inside Kadence row with custom class */
.kt-row-column-wrap .bw-course-header {
    color: white;
}

/* Background styles for Kadence row with .bw-course-header class */
.kt-row-layout-inner.bw-course-header-bg,
.kt-inside-inner-col > .bw-course-header {
    color: white;
}

/* Apply gradient background to Kadence row when it has the class */
.kt-row-has-bg .kt-row-layout-inner.bw-course-header-bg,
.kt-row-layout-inner.bw-course-header-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    background-size: 400% 400% !important;
    animation: bwGradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

/* Add rotating overlay to Kadence row with the class */
.kt-row-layout-inner.bw-course-header-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
    animation: bwRotate 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Ensure content stays above the animated background */
.kt-row-layout-inner.bw-course-header-bg > .kt-row-column-wrap {
    position: relative;
    z-index: 2;
}

.bw-course-header-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.bw-course-header.has-enrollment-card .bw-course-header-wrapper {
    justify-content: space-between;
}

.bw-course-header-content {
    flex: 1;
    max-width: 800px;
}

.bw-course-title {
    font-size: 48px !important;
    font-weight: 800 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.2 !important;
    color: white !important;
}

.bw-course-subtitle {
    font-size: 20px !important;
    margin: 0 0 30px 0 !important;
    opacity: 0.95;
    color: white !important;
    line-height: 1.5 !important;
}

.bw-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
}

.bw-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.bw-meta-item:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.bw-meta-item svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.bw-meta-item span {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.bw-course-cta {
    display: flex;
    align-items: center;
    gap: 30px;
}

.bw-course-price {
    font-size: 42px !important;
    font-weight: 800 !important;
    color: white !important;
}

.bw-btn-large {
    padding: 18px 40px !important;
    font-size: 18px !important;
}

/* Course Badge */
.bw-course-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 204, 0, 0.2);
    border-radius: 20px;
    margin: 20px 0;
    font-weight: 600;
    color: #ffd700;
}

.bw-badge-star {
    font-size: 18px;
}

/* Cohort Info */
.bw-course-cohort-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.bw-cohort-starts {
    font-size: 18px !important;
    margin: 0 0 8px 0 !important;
    color: white !important;
}

.bw-cohort-schedule {
    font-size: 16px !important;
    margin: 0 !important;
    opacity: 0.9;
    color: white !important;
}

/* Enrollment Card */
.bw-enrollment-card {
    width: 380px;
    flex-shrink: 0;
}

.bw-enrollment-card-inner {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: sticky;
    top: 100px;
}

.bw-enrollment-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 20px 0 !important;
    text-align: center;
}

.bw-enrollment-price {
    font-size: 48px !important;
    font-weight: 800 !important;
    color: #00d4aa !important;
    text-align: center;
    margin: 0 0 10px 0 !important;
}

.bw-enrollment-subtext {
    font-size: 14px !important;
    color: #666 !important;
    text-align: center;
    margin: 0 0 25px 0 !important;
}

.bw-enrollment-highlight {
    background: linear-gradient(135deg, rgba(0,212,170,0.1) 0%, rgba(102,126,234,0.1) 100%);
    border: 2px solid #00d4aa;
    border-radius: 12px;
    padding: 15px;
    margin: 0 0 25px 0;
}

.bw-enrollment-highlight p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #333 !important;
    text-align: center;
    font-weight: 500;
}

.bw-enrollment-features {
    list-style: none;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
}

.bw-enrollment-features li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.bw-enrollment-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    color: #00d4aa;
    font-weight: bold;
    font-size: 16px;
}

.bw-enrollment-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.bw-btn-block {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    padding: 14px 20px !important;
}

.bw-btn-outline {
    background: transparent !important;
    border: 2px solid #667eea !important;
    color: #667eea !important;
}

.bw-btn-outline:hover {
    background: #667eea !important;
    color: white !important;
}

.bw-enrollment-guarantee {
    text-align: center;
    font-size: 13px !important;
    color: #999 !important;
    margin: 0 !important;
}

/* ===== BW Course Curriculum Styles ===== */
.bw-course-curriculum {
    padding: 60px 0;
}

.bw-curriculum-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    margin: 0 0 40px 0 !important;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bw-curriculum-modules {
    max-width: 900px;
    margin: 0 auto;
}

.bw-curriculum-module {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bw-curriculum-module:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bw-curriculum-module.active {
    border-color: #667eea;
}

.bw-module-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    transition: all 0.3s ease;
}

.bw-module-header:hover {
    background: #f5f5f5;
}

.bw-curriculum-module.active .bw-module-header {
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
}

.bw-module-info h3 {
    margin: 0 0 5px 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.bw-module-duration {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.bw-module-toggle {
    width: 24px;
    height: 24px;
    stroke: #666;
    transition: transform 0.3s ease;
}

.bw-curriculum-module.active .bw-module-toggle {
    transform: rotate(180deg);
    stroke: #667eea;
}

.bw-module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.bw-module-lessons {
    padding: 25px 30px 30px;
    margin: 0;
    list-style: none;
}

.bw-module-lessons li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.bw-module-lessons li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ===== BW Course Instructor Styles ===== */
.bw-course-instructor {
    padding: 60px 0;
    background: #f8f9fa;
    border-radius: 24px;
}

.bw-instructor-card {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.bw-instructor-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f0f0f0;
}

.bw-instructor-info {
    flex: 1;
}

.bw-instructor-name {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    color: #333 !important;
}

.bw-instructor-title {
    font-size: 18px !important;
    color: #667eea !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
}

.bw-instructor-bio {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #555 !important;
    margin: 0 0 25px 0 !important;
}

.bw-instructor-credentials {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bw-instructor-credentials li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #666;
    font-size: 15px;
}

.bw-instructor-credentials li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 8px;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

/* ===== BW Course FAQ Styles ===== */
.bw-course-faq {
    padding: 60px 0;
}

.bw-faq-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    margin: 0 0 40px 0 !important;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bw-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.bw-faq-item {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bw-faq-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.bw-faq-item.active {
    border-color: #667eea;
}

.bw-faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.bw-faq-question:hover {
    background: #fafafa;
}

.bw-faq-question h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    flex: 1;
    padding-right: 20px;
}

.bw-faq-toggle {
    width: 24px;
    height: 24px;
    stroke: #666;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.bw-faq-item.active .bw-faq-toggle {
    transform: rotate(45deg);
    stroke: #667eea;
}

.bw-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bw-faq-answer p {
    padding: 0 25px 20px;
    margin: 0 !important;
    color: #555 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .bw-course-header-wrapper {
        flex-direction: column;
    }
    
    .bw-enrollment-card {
        width: 100%;
        max-width: 500px;
        margin: 40px auto 0;
    }
    
    .bw-enrollment-card-inner {
        position: static;
    }
}

@media (max-width: 768px) {
    .bw-course-header {
        padding: 40px 20px;
    }
    
    .bw-course-title {
        font-size: 32px !important;
    }
    
    .bw-course-subtitle {
        font-size: 18px !important;
    }
    
    .bw-course-meta {
        gap: 10px;
        flex-direction: column;
    }
    
    .bw-meta-item {
        padding: 8px 15px;
        width: fit-content;
    }
    
    .bw-course-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .bw-course-price {
        font-size: 32px !important;
    }
    
    .bw-course-badge {
        margin: 15px 0;
    }
    
    .bw-course-cohort-info {
        padding: 15px;
    }
    
    .bw-cohort-starts {
        font-size: 16px !important;
    }
    
    .bw-cohort-schedule {
        font-size: 14px !important;
    }
    
    .bw-enrollment-card {
        max-width: 100%;
    }
    
    .bw-enrollment-card-inner {
        padding: 25px 20px;
    }
    
    .bw-enrollment-price {
        font-size: 36px !important;
    }
    
    .bw-instructor-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .bw-instructor-image {
        margin: 0 auto;
        width: 150px;
        height: 150px;
    }
    
    .bw-module-header {
        padding: 20px;
    }
    
    .bw-module-info h3 {
        font-size: 18px !important;
    }
    
    .bw-faq-question {
        padding: 15px 20px;
    }
    
    .bw-faq-question h3 {
        font-size: 16px !important;
    }
}

/* Print Styles */
@media print {
    .bw-course-header {
        animation: none !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    .bw-course-header::before {
        display: none;
    }
    
    .bw-curriculum-module,
    .bw-faq-item {
        page-break-inside: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bw-curriculum-module,
    .bw-faq-item {
        border-width: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bw-course-header {
        animation: none !important;
    }
    
    .bw-course-header::before {
        animation: none !important;
    }
    
    .bw-module-content,
    .bw-faq-answer {
        transition: none !important;
    }
}