/* Custom CSS for ITC Swiper components */
/* Essential Swiper CSS to ensure proper horizontal display */
.swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
}

/* Override any conflicting styles and ensure proper Swiper behavior */
.swiper {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    display: block;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;  /* Changed from 100% to auto to allow aspect-ratio to work */
    position: relative;
    transition-property: transform;
    display: block;
}

/* Override height for template-itc specifically where 100% height is needed */
.template-itc .swiper-slide {
    height: 100%;
}

/* Specific styles for cards component - but exclude cards component from this rule */
.template-itc .swiper-slide .aspect-w-1 {
    width: 100%;
    height: 100%;
}

/* Note: Removed the generic .swiper-slide .aspect-w-1 rule as it interferes with cards component aspect-ratio */

.template-itc .swiper-slide {
    width: auto;
    margin-right: 26px;
}

.template-itc .swiper {
    overflow: visible;
}

/* Force horizontal layout for all swiper instances */
.swiper-horizontal > .swiper-wrapper {
    flex-direction: row !important;
}

/* Ensure slides don't stack vertically */
.swiper-slide {
    display: block !important;
    flex-shrink: 0 !important;
}

/* Override any conflicting flexbox styles */
.swiper[style*="overflow: visible"] {
    overflow: visible !important;
}

.swiper[style*="overflow: visible"] .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

/* Alpine.js draggable scroll wrapper */
.scroll-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Background color utility */
.bg-background {
    background-color: #f8f9fa;
}

/* Image text blocks styling */
.image-text-blocks .prose h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
}

.image-text-blocks .prose p {
    margin-bottom: 1rem;
    color: #6b7280;
}

/* Responsive adjustments for image text blocks */
@media (min-width: 1024px) {
    .image-text-blocks .flex-1 {
        display: flex;
        align-items: center;
    }
}

/* Additional styling for content blocks */
.content-blocks .rounded-2xl {
    border-radius: 1rem;
}

.content-blocks .min-h-300 {
    min-height: 300px;
}

/* Course category buttons */
.btn.before\:border-current::before {
    border: 1px solid currentColor;
}
