@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

@layer base {
  body {
    @apply bg-gray-50 text-gray-900;
  }
}

@layer components {
  .btn-primary {
    @apply bg-blue-700 hover:bg-blue-800 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2;
  }
  
  .btn-secondary {
    @apply bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium py-2 px-4 rounded-lg transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2;
  }
  
  .card {
    @apply bg-white rounded-xl shadow-sm border border-gray-200 hover:shadow-md transition-shadow duration-200;
  }
  
  .form-input {
    @apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent;
  }
  
  .form-textarea {
    @apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-vertical;
  }
  
  .badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
  }
  
  .badge-blue {
    @apply bg-blue-100 text-blue-800;
  }
  
  .badge-green {
    @apply bg-green-100 text-green-800;
  }
  
  .badge-yellow {
    @apply bg-yellow-100 text-yellow-800;
  }
  
  .badge-purple {
    @apply bg-purple-100 text-purple-800;
  }
}

/* ZBA Academy Courses - Professional Frontend Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Hero Section */
.zba_kurse_hero {
    padding: 120px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.pexels.com/photos/1427541/pexels-photo-1427541.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center top;
    text-align: center;
    color: white;
}

.zba_kurse_hero_container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.zba_kurse_hero_pretitle {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.zba_kurse_hero_title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.zba_kurse_highlight {
    color: #FF4500;
}

.zba_kurse_hero_subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Advanced Filter Section */
.zba_filter_section {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.zba_filter_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CRITICAL: Mobile Filter Toggle - ALWAYS HIDDEN ON DESKTOP */
.zba_mobile_filter_toggle {
    display: none; /* Hidden by default */
    margin-bottom: 20px;
}

.zba_mobile_toggle_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: white;
    color: #333;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.zba_mobile_toggle_btn:hover {
    border-color: #FF4500;
    color: #FF4500;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* FIXED: Better toggle button active state */
.zba_mobile_toggle_btn.active {
    background: #FF4500 !important;
    color: white !important;
    border-color: #FF4500 !important;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3) !important;
}

.zba_filter_chevron {
    transition: transform 0.3s ease;
}

.zba_filter_chevron.rotated {
    transform: rotate(180deg);
}

/* Filter Form */
.zba_filter_form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.zba_filter_row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.zba_filter_item {
    display: flex;
    flex-direction: column;
}

.zba_filter_item label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.zba_filter_item input,
.zba_filter_item select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.zba_filter_item input:focus,
.zba_filter_item select:focus {
    outline: none;
    border-color: #FF4500;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.zba_filter_checkboxes {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.zba_checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.zba_checkbox input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #FF4500;
}

.zba_filter_actions {
    display: flex;
    gap: 15px;
}

.zba_btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zba_btn_primary {
    background: #FF4500;
    color: white;
}

.zba_btn_primary:hover {
    background: #E53E00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.zba_btn_secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.zba_btn_secondary:hover {
    border-color: #FF4500;
    color: #FF4500;
    transform: translateY(-2px);
}

/* CRITICAL: Mobile Responsive Styles - FORCE HIDE FILTERS ON MOBILE */
@media screen and (max-width: 768px) {
    /* FORCE SHOW mobile toggle button */
    .zba_mobile_filter_toggle {
        display: block !important;
    }
    
    /* FORCE HIDE filter content by default on mobile */
    .zba_filter_content {
        display: none !important;
        opacity: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: all 0.4s ease !important;
    }
    
    /* FORCE SHOW filter content when active */
    .zba_filter_content.zba_show_filters {
        display: block !important;
        opacity: 1 !important;
        max-height: 2000px !important;
        margin-top: 20px !important;
        animation: zbaSlideDown 0.4s ease !important;
    }
    
    /* Mobile filter layout adjustments */
    .zba_filter_row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .zba_filter_checkboxes {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .zba_filter_actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .zba_filter_actions .zba_btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 0.9rem !important;
    }
    
    /* Adjust filter section padding on mobile */
    .zba_filter_section {
        padding: 30px 0 !important;
    }
    
    .zba_filter_container {
        padding: 0 15px !important;
    }
}

@keyframes zbaSlideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
    }
}

/* CRITICAL: Desktop - FORCE SHOW filters, FORCE HIDE toggle */
@media screen and (min-width: 769px) {
    .zba_mobile_filter_toggle {
        display: none !important;
    }
    
    .zba_filter_content {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Kurse Grid Section */
.zba_kurse_section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.zba_kurse_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zba_results_info {
    margin-bottom: 30px;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.zba_kurse_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* IMPROVED COURSE CARD DESIGN - SMALLER SIZE */
.zba_kurs_card_improved {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zba_kurs_card_improved:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 69, 0, 0.2);
}

/* IMPROVED IMAGE SECTION - SMALLER HEIGHT */
.zba_kurs_image_improved {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.zba_kurs_image_overlay_improved {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.zba_kurs_card_improved:hover .zba_kurs_image_overlay_improved {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

/* TOP BADGES - BETTER POSITIONING - FLAT DESIGN */
.zba_kurs_top_badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.zba_kurs_badge_top {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* FLAT DESIGN - NO 3D EFFECTS */
    box-shadow: none;
    backdrop-filter: none;
}

.zba_kurs_badge_blue {
    background: #3b82f6;
    color: white;
    border-color: #1e40af;
}

.zba_kurs_badge_green {
    background: #10b981;
    color: white;
    border-color: #059669;
}

.zba_kurs_badge_orange {
    background: #f59e0b;
    color: white;
    border-color: #d97706;
}

.zba_kurs_badge_red {
    background: #ef4444;
    color: white;
    border-color: #dc2626;
}

.zba_kurs_badge_purple {
    background: #8b5cf6;
    color: white;
    border-color: #7c3aed;
}

.zba_kurs_badge_funding {
    background: #FF4500;
    color: white;
    border-color: #E53E00;
}

/* IMPROVED CONTENT SECTION - SMALLER PADDING */
.zba_kurs_content_improved {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* IMPROVED PILLS ROW - ALL IN ONE LINE - FLAT DESIGN */
.zba_kurs_pills_row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
    min-height: 28px;
    align-items: flex-start;
}

.zba_kurs_pill {
    padding: 3px 8px;
    border-radius: 4px; /* FLAT - NO ROUNDED PILLS */
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid;
    transition: all 0.2s ease;
    /* FLAT DESIGN - NO GRADIENTS OR 3D EFFECTS */
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
    box-shadow: none;
}

.zba_kurs_pill_ue {
    background: #3b82f6;
    color: white;
    border-color: #1e40af;
}

.zba_kurs_pill_date {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

.zba_kurs_pill_format {
    background: #fbbf24;
    color: #92400e;
    border-color: #f59e0b;
}

/* IMPROVED TITLE - SMALLER */
.zba_kurs_title_improved {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

/* IMPROVED DESCRIPTION - SMALLER */
.zba_kurs_description_improved {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* IMPROVED DETAILS - SMALLER */
.zba_kurs_details_improved {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0;
}

.zba_kurs_detail_improved {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #6b7280;
    gap: 6px;
}

.zba_kurs_detail_icon_improved {
    color: #FF4500;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* IMPROVED CTA BUTTON - SMALLER */
.zba_kurs_actions_improved {
    margin-top: auto;
    padding-top: 6px;
}

.zba_kurs_btn_improved {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FF4500, #E53E00);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
}

.zba_kurs_btn_improved:hover {
    background: linear-gradient(135deg, #E53E00, #CC3700);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
    color: white;
    text-decoration: none;
}

.zba_kurs_btn_improved svg {
    transition: transform 0.2s ease;
}

.zba_kurs_btn_improved:hover svg {
    transform: translateX(2px);
}

/* LEGACY SUPPORT - Keep old classes working */
.zba_kurs_card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.zba_kurs_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.zba_kurs_image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.zba_kurs_image_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.zba_kurs_content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Badges UNDER the image in content box - HORIZONTAL */
.zba_kurs_badges_content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    min-height: 32px; /* Ensure consistent spacing */
}

.zba_kurs_badge {
    background: #f8f9fa;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e9ecef;
    white-space: nowrap;
    flex-shrink: 0;
}

.zba_kurs_badge_ue {
    background: #007BFF;
    color: white;
    border-color: #007BFF;
}

.zba_kurs_badge_special {
    background: #FF4500;
    color: white;
    border-color: #FF4500;
}

.zba_kurs_title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: auto; /* Remove fixed height */
}

.zba_kurs_description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1; /* Take available space */
    /* Remove text truncation - show full text */
}

.zba_kurs_details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.zba_kurs_detail {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
}

.zba_kurs_detail_icon {
    margin-right: 8px;
    color: #FF4500;
    width: 16px;
    flex-shrink: 0;
}

.zba_kurs_actions {
    margin-top: auto; /* Push to bottom */
}

.zba_kurs_btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    border: none;
    cursor: pointer;
    display: block;
}

.zba_kurs_btn_primary {
    background: #FF4500;
    color: white;
}

.zba_kurs_btn_primary:hover {
    background: #E53E00;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.zba_kurs_btn_secondary {
    background: white;
    color: #333;
    border: 2px solid #e9ecef;
}

.zba_kurs_btn_secondary:hover {
    border-color: #007BFF;
    color: #007BFF;
    transform: translateY(-2px);
    text-decoration: none;
}

/* WooCommerce Integration */
.zba_woo_price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FF4500;
    margin-bottom: 15px;
}

.zba_add_to_cart {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
}

.zba_add_to_cart:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* WooCommerce Add to Cart Section for Detail Page - FIXED WIDTH */
.zba_woo_add_to_cart_section {
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%; /* FIXED: Prevent width changes */
    min-width: 320px; /* FIXED: Minimum width to prevent jumping */
}

.zba_quantity_section {
    margin-bottom: 25px;
}

.zba_quantity_label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: center;
}

/* ELEGANT QUANTITY SLIDER - NO DOUBLE ARROWS */
.zba_quantity_slider_container {
    max-width: 300px;
    margin: 0 auto 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.zba_quantity_display {
    text-align: center;
    margin-bottom: 15px;
}

.zba_quantity_number {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    display: block;
}

.zba_quantity_text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.zba_quantity_slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zba_quantity_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FF4500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
    transition: all 0.3s ease;
}

.zba_quantity_slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.5);
}

.zba_quantity_slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FF4500;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
    transition: all 0.3s ease;
}

.zba_quantity_slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.5);
}

.zba_quantity_slider:focus {
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.2);
}

/* MINIMAL DISCOUNT INFO - ONLY SMALL PILL */
.zba_discount_info {
    text-align: center;
    margin-top: 15px;
    width: 100%;
    min-height: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: min-height 0.3s ease;
}

/* BRIGHT GREEN DISCOUNT PILL - MUCH BETTER READABILITY */
.zba_discount_notice {
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
    width: auto;
    min-height: auto;
    box-sizing: border-box;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* PROFESSIONAL BLACK ADD TO CART BUTTON - PREVENT TEXT CUTOFF */
.zba_add_to_cart_detailed {
    background: #000000;
    color: white;
    border: none;
    padding: 20px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    min-height: 85px;
    box-sizing: border-box;
}

.zba_add_to_cart_detailed:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #333;
}

.zba_add_to_cart_detailed:active {
    transform: translateY(0);
}

.zba_cart_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    line-height: 1.3;
}

.zba_cart_main_text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
}

.zba_cart_total_text {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

/* Loading and success states - FIXED: NO GREEN SUCCESS STATE */
.zba_add_to_cart_detailed.loading {
    background: #666666;
    cursor: not-allowed;
    border-color: transparent;
}

.zba_add_to_cart_detailed.success {
    background: #000000; /* KEEP BLACK, NOT GREEN */
    border-color: #333;
}

/* Single Course Hero */
.zba_course_hero {
    padding: 120px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.pexels.com/photos/1427541/pexels-photo-1427541.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.zba_course_hero.has-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--course-image);
}

.zba_course_hero_container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.zba_breadcrumbs {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.zba_breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.zba_breadcrumbs a:hover {
    color: white;
}

.zba_breadcrumb_separator {
    margin: 0 10px;
}

.zba_course_title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.zba_course_subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.zba_course_meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Course Body */
.zba_course_body {
    padding: 60px 0;
    background: #f8f9fa;
}

.zba_course_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.zba_course_main {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.zba_course_sidebar {
    position: sticky;
    top: 30px;
    width: 100%;
    min-width: 320px;
}

.zba_course_info_box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.zba_course_info_box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.zba_info_item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.zba_info_item strong {
    color: #555;
    font-weight: 600;
    min-width: 90px;
    font-size: 0.9rem;
}

.zba_info_item span {
    text-align: right;
    flex: 1;
    color: #333;
    font-size: 0.9rem;
}

/* CLEAN PRICE DISPLAY - ONLY ONE MWST */
.zba_price_display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.zba_price_main {
    color: #FF4500;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.zba_price_tax {
    color: #666;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1;
}

/* Course Content Sections - NO ACCORDIONS */
.zba_course_content {
    margin-bottom: 30px;
}

.zba_content_section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.zba_content_section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.zba_section_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FF4500;
    display: inline-block;
}

.zba_section_content {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.zba_section_content h3 {
    color: #333;
    font-weight: 600;
    margin: 25px 0 15px 0;
    font-size: 1.2rem;
}

.zba_section_content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.zba_section_content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.zba_section_content p {
    margin-bottom: 15px;
}

/* Downloads */
.zba_course_downloads {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
}

.zba_course_downloads h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.zba_download_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zba_download_list li {
    margin-bottom: 8px;
}

.zba_download_link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FF4500;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.zba_download_link:hover {
    background-color: #fff5f0;
    border-color: #FF4500;
    transform: translateX(3px);
    text-decoration: none;
}

.zba_download_icon {
    font-size: 1rem;
}

/* CTA Button */
.zba_cta_button {
    background: linear-gradient(135deg, #FF4500, #E53E00);
    color: white;
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-bottom: 12px;
}

.zba_cta_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
    color: white;
    text-decoration: none;
}

.zba_group_hint {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-style: italic;
    margin-top: 10px;
}

/* Loading States */
.zba_loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.zba_spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF4500;
    border-radius: 50%;
    animation: zba-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes zba-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.zba_no_results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.zba_no_results h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .zba_kurse_hero {
        padding: 80px 0 60px;
    }
    
    .zba_kurse_hero_title {
        font-size: 2.5rem;
    }
    
    .zba_kurse_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .zba_kurs_card,
    .zba_kurs_card_improved {
        max-width: none;
    }
    
    .zba_kurs_content,
    .zba_kurs_content_improved {
        padding: 20px;
    }
    
    .zba_course_container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .zba_course_sidebar {
        position: static;
        order: -1;
        min-width: auto;
    }
    
    .zba_course_main {
        padding: 25px;
    }
    
    .zba_course_info_box {
        padding: 20px;
    }
    
    .zba_course_title {
        font-size: 2.2rem;
    }
    
    /* Mobile badges - stack vertically if needed */
    .zba_kurs_badges_content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .zba_woo_add_to_cart_section {
        padding: 20px;
        min-width: auto;
    }
    
    .zba_quantity_slider_container {
        max-width: 280px;
        padding: 18px;
    }
    
    .zba_quantity_number {
        font-size: 1.8rem;
    }
    
    .zba_add_to_cart_detailed {
        padding: 18px 20px;
        font-size: 0.85rem;
        min-height: 75px;
    }
    
    .zba_cart_main_text {
        font-size: 0.9rem;
    }
    
    .zba_cart_total_text {
        font-size: 0.75rem;
    }
    
    .zba_discount_info {
        min-height: 10px;
    }
    
    .zba_discount_notice {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

@media (max-width: 576px) {
    .zba_kurse_hero_title {
        font-size: 2rem;
    }
    
    .zba_kurse_hero_subtitle {
        font-size: 1.2rem;
    }
    
    .zba_kurs_content,
    .zba_kurs_content_improved {
        padding: 18px;
    }
    
    .zba_filter_container {
        padding: 0 15px;
    }
    
    .zba_course_title {
        font-size: 1.8rem;
    }
    
    .zba_course_subtitle {
        font-size: 1.1rem;
    }
    
    .zba_kurse_grid {
        grid-template-columns: 1fr;
    }
    
    .zba_woo_add_to_cart_section {
        padding: 18px;
    }
    
    .zba_quantity_slider_container {
        max-width: 260px;
        padding: 16px;
    }
    
    .zba_add_to_cart_detailed {
        padding: 16px 18px;
        font-size: 0.8rem;
        min-height: 70px;
    }
    
    .zba_cart_main_text {
        font-size: 0.85rem;
    }
    
    .zba_cart_total_text {
        font-size: 0.7rem;
    }
}

/* Desktop - ensure badges stay horizontal */
@media (min-width: 769px) {
    .zba_kurs_badges_content {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Print Styles */
@media print {
    .zba_filter_section,
    .zba_kurs_actions,
    .zba_kurs_actions_improved,
    .zba_cta_button,
    .zba_download_link,
    .zba_woo_add_to_cart_section {
        display: none;
    }
    
    .zba_course_container {
        grid-template-columns: 1fr;
    }
}