/* Header component - only for navigation header */
header[role="banner"],
nav header,
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

/* Professional button components */
.btn-primary {
    background: linear-gradient(135deg, #FF9900 0%, #f59e0b 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -3px rgba(255, 153, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -3px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
    border: 2px solid #1e40af;
    color: #1e40af;
    background: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -3px rgba(30, 64, 175, 0.3);
}

.btn-large {
    background: linear-gradient(135deg, #FF9900 0%, #f59e0b 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px -3px rgba(255, 153, 0, 0.4);
}

.btn-large:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -3px rgba(255, 153, 0, 0.5);
}

/* Professional card components */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

/* Section heading styles - override any card inheritance */
section header h2,
section h2:not(.card h2):not(.module-card h2):not(.module-card-square h2) {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 0 1rem 0 !important;
}

/* Ensure section headers are clean - but exclude nav header */
section header,
section header h2,
section .text-center h2 {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Override nav header styles for section headers */
section header:not(nav header) {
    background: transparent !important;
    border-bottom: none !important;
    position: static !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Additional specificity for dark sections */
.gradient-who-section .text-center,
.section-dark-pattern .text-center,
.gradient-who-section header,
.section-dark-pattern header {
    background: none !important;
    padding: 0 !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Ensure dark section text remains white */
.gradient-who-section h2,
.section-dark-pattern h2,
.gradient-who-section p,
.section-dark-pattern p {
    background: transparent !important;
    color: inherit !important;
}

/* Direct fix for the "Who Should Attend" section */
#target-audience-heading,
.gradient-who-section .text-center {
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 0 !important;
}

.gradient-who-section .text-center h2,
.gradient-who-section .text-center p {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.card-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 35px -5px rgba(30, 64, 175, 0.25), 0 10px 10px -5px rgba(30, 64, 175, 0.1);
    position: relative;
    transform: scale(1.02);
    border: 2px solid rgba(255, 153, 0, 0.2);
}

.card-featured {
    background: linear-gradient(135deg, #FF9900 0%, #f59e0b 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 35px -5px rgba(255, 153, 0, 0.3), 0 10px 10px -5px rgba(255, 153, 0, 0.1);
    transform: scale(1.05);
    position: relative;
}

/* Professional module cards */
.module-card {
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Hover effect removed - these are not interactive elements */

.module-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
}

.module-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.module-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-color: #FF9900;
}

.module-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #8b5cf6;
}

.module-cyan {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border-color: #06b6d4;
}

.module-pink {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-color: #ec4899;
}

.module-indigo {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #6366f1;
}

.module-teal {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-color: #14b8a6;
}

.module-gray {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-color: #6b7280;
}

/* Professional module number badges */
.module-badge {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.2);
}

.badge-blue { 
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}
.badge-green { 
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
.badge-orange { 
    background: linear-gradient(135deg, #FF9900 0%, #f59e0b 100%);
}
.badge-purple { 
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.badge-cyan { 
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}
.badge-pink { 
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}
.badge-indigo { 
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}
.badge-teal { 
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}
.badge-gray { 
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* Professional icon containers */
.icon-container {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1);
}

.icon-blue { 
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #3b82f6;
}
.icon-green { 
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #22c55e;
}
.icon-orange { 
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border: 1px solid #FF9900;
}

/* Floating elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.floating-element-1 {
    top: 5rem;
    left: 2.5rem;
    width: 5rem;
    height: 5rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.floating-element-2 {
    top: 10rem;
    right: 5rem;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 153, 0, 0.2);
    animation-delay: -2s;
}

.floating-element-3 {
    bottom: 5rem;
    left: 25%;
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    animation-delay: -4s;
}

/* Square module cards for grid layout */
.module-card-square {
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 15px -3px rgba(0, 0, 0, 0.05);
    height: 380px; /* Zwiększona wysokość */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

/* Hover effect removed - these are not interactive elements */

.module-card-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover effect removed - these are not interactive elements */

.module-card-square .module-badge {
    width: auto;
    min-width: 6rem;
    height: 3rem;
    padding: 0 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    align-self: center;
    box-shadow: 0 6px 20px -3px rgba(0, 0, 0, 0.25);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0; /* Nie pozwala się skurczyć */
}

.module-card-square h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
    color: #1e293b;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Nie pozwala się skurczyć */
}

/* Kontener na przewijalną treść */
.module-card-square .module-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
}

/* Stylowanie scrollbara */
.module-card-square .module-content::-webkit-scrollbar {
    width: 6px;
}

.module-card-square .module-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.module-card-square .module-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.module-card-square .module-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.module-card-square p,
.module-card-square ul {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    margin: 0; /* Usuń domyślne marginesy */
}

.module-card-square .text-left p,
.module-card-square .text-left ul {
    text-align: left;
}

.module-card-square ul {
    list-style: none;
    padding: 0;
}

.module-card-square li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
    text-align: left;
}

.module-card-square li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #64748b;
    font-weight: bold;
}

/* Button for showing more modules */
.show-more-btn {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -3px rgba(30, 64, 175, 0.3);
    border: none;
    cursor: pointer;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -3px rgba(30, 64, 175, 0.4);
}

/* Benefits Carousel Styles */
.benefits-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.benefits-carousel-track {
    display: flex;
    /* Width will be dynamically calculated based on total cards including clones */
    transition: transform 0.5s ease-in-out;
}

.benefit-slide {
    /* Flex basis will be dynamically calculated based on total cards */
    padding: 0 0.75rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.benefit-slide .text-center {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Carousel indicators */
.carousel-indicator {
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    transform: scale(1.2);
}

.carousel-indicator:focus {
    outline: 2px solid #FF9900;
    outline-offset: 2px;
}

/* FAQ Section Styles */
.faq-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-item:hover {
    border-color: rgba(255, 153, 0, 0.2);
    box-shadow: 0 4px 15px -3px rgba(255, 153, 0, 0.1);
}

.faq-question {
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: #FF9900;
}

.faq-question i {
    font-size: 0.875rem;
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-question:hover i {
    color: #FF9900;
}

.faq-answer {
    transition: all 0.3s ease;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

/* FAQ Animation for smooth reveal */
.faq-answer:not(.hidden) {
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive carousel adjustments */
@media (max-width: 768px) {
    .benefits-carousel-track {
        transition: transform 0.5s ease-in-out;
    }
    
    .benefit-slide {
        min-width: 0;
    }
}
