/* ==========================================================================
   LVMR Course Carousel Stylesheet
   ========================================================================== */

/* Scoped variables for responsive styling via Elementor */
.lvmr-cc-wrapper {
    --lvmr-cc-cols: 4;
    --lvmr-cc-gap: 24px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.lvmr-cc-wrapper *, 
.lvmr-cc-wrapper *::before, 
.lvmr-cc-wrapper *::after {
    box-sizing: border-box;
}

/* --- 1. FILTER TABS STYLING --- */
.lvmr-cc-tabs-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    display: flex;
    margin-bottom: 40px;
}

.lvmr-cc-tabs-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.lvmr-cc-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px;
    width: max-content; /* Ensure container expands for scrolling */
    transition: justify-content 0.3s ease;
}

.lvmr-cc-tab {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #4B5563;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 99px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.lvmr-cc-tab:hover {
    color: #1F2937;
}

.lvmr-cc-tab.lvmr-active {
    color: #1D4ED8;
    background-color: #FFFFFF;
    border-color: #E5E7EB;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* --- 2. CAROUSEL TRACK LAYOUT --- */
.lvmr-cc-carousel-outer {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.lvmr-cc-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 4px 0 16px 0; /* Extra bottom padding for card hover shadows */
}

.lvmr-cc-track {
    display: flex;
    gap: var(--lvmr-cc-gap);
    width: 100%;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: grab;
}

.lvmr-cc-track:active {
    cursor: grabbing;
}

.lvmr-cc-slide {
    flex: 0 0 calc((100% - (var(--lvmr-cc-gap) * (var(--lvmr-cc-cols) - 1))) / var(--lvmr-cc-cols));
    transition: opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
}

.lvmr-cc-slide.lvmr-hidden {
    display: none !important;
}

/* --- 3. PREMIUM CARD DESIGN --- */
.lvmr-cc-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #F3F4F6;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lvmr-cc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Card Image */
.lvmr-cc-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #F3F4F6;
}

.lvmr-cc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lvmr-cc-card:hover .lvmr-cc-card-image img {
    transform: scale(1.05);
}

/* Wishlist Button */
.lvmr-cc-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
    padding: 0;
}

.lvmr-cc-wishlist svg {
    width: 16px;
    height: 16px;
    color: #6B7280;
    fill: transparent;
    stroke-width: 2.2px;
    transition: all 0.25s ease;
}

.lvmr-cc-wishlist:hover {
    transform: scale(1.1);
}

.lvmr-cc-wishlist:hover svg, 
.lvmr-cc-wishlist.lvmr-active svg {
    color: #EF4444;
    fill: #EF4444;
}

/* Card Body */
.lvmr-cc-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Category Badge */
.lvmr-cc-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 99px;
    margin-bottom: 12px;
    white-space: nowrap;
}

/* Title */
.lvmr-cc-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50px; /* Aligns description boxes by capping title space */
}

/* Description */
.lvmr-cc-desc {
    font-size: 14px;
    color: #4B5563;
    margin: 0 0 16px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px; /* Aligns meta rows by capping description space */
}

/* Meta Info Row */
.lvmr-cc-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #F3F4F6;
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 20px;
}

.lvmr-cc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
}

.lvmr-cc-meta svg {
    width: 15px;
    height: 15px;
    color: #9CA3AF;
    stroke-width: 2.2px;
}

/* Footer Section (Price + CTA) */
.lvmr-cc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto; /* Push to the very bottom */
}

.lvmr-cc-price {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.lvmr-cc-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    background-color: #1D4ED8;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lvmr-cc-cta svg {
    width: 14px;
    height: 14px;
    stroke-width: 3px;
    transition: transform 0.25s ease;
}

.lvmr-cc-cta:hover {
    background-color: #1E40AF;
    box-shadow: 0 6px 10px -1px rgba(29, 78, 216, 0.2);
}

.lvmr-cc-cta:hover svg {
    transform: translateX(3px);
}

/* --- 4. NAVIGATION CONTROLS --- */
.lvmr-cc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
    padding: 0;
}

.lvmr-cc-arrow svg {
    width: 18px;
    height: 18px;
    color: #1F2937;
    stroke-width: 2.5px;
    transition: color 0.25s ease;
}

.lvmr-cc-prev {
    left: -22px;
}

.lvmr-cc-next {
    right: -22px;
}

.lvmr-cc-arrow:hover {
    background-color: #1D4ED8;
    border-color: #1D4ED8;
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
}

.lvmr-cc-arrow:hover svg {
    color: #FFFFFF;
}

.lvmr-cc-arrow.lvmr-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Pagination Dots */
.lvmr-cc-dots-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    width: 100%;
}

.lvmr-cc-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lvmr-cc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D1D5DB;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.lvmr-cc-dot.lvmr-active {
    background-color: #1D4ED8;
    transform: scale(1.2);
}

.lvmr-cc-dot:hover:not(.lvmr-active) {
    background-color: #9CA3AF;
}

/* --- 5. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .lvmr-cc-wrapper {
        --lvmr-cc-cols: 2; /* Fallback if not set by Elementor styles */
    }
    .lvmr-cc-arrow {
        width: 40px;
        height: 40px;
    }
    .lvmr-cc-prev {
        left: -10px;
    }
    .lvmr-cc-next {
        right: -10px;
    }
}

@media (max-width: 767px) {
    .lvmr-cc-wrapper {
        --lvmr-cc-cols: 1; /* Fallback if not set by Elementor styles */
    }
    .lvmr-cc-arrow {
        display: none !important; /* Hide arrows on mobile touch screens */
    }
    .lvmr-cc-tabs-wrapper {
        padding-left: 4px;
        padding-right: 4px;
        margin-bottom: 24px;
    }
    .lvmr-cc-tabs {
        gap: 10px;
    }
    .lvmr-cc-tab {
        font-size: 14px;
        padding: 8px 16px;
    }
    .lvmr-cc-card-image {
        height: 180px;
    }
    .lvmr-cc-card-body {
        padding: 20px;
    }
}
