/* ==========================================================================
   HYT Classes CPT Slider Stylesheet
   ========================================================================== */

/* Outer Container */
.hyt-classes-container {
    width: 100%;
    box-sizing: border-box;
    
    /* Margin positioning for container alignment */
    margin-left: var(--hyt-classes-margin-left, 0);
    margin-right: var(--hyt-classes-margin-right, auto);
}

/* Slider Wrap */
.classes-carousel {
    position: relative;
    width: 100%;
    margin-top: 1.5rem;
    box-sizing: border-box;
}

/* Viewport (Hides overflowing cards) */
.classes-viewport {
    overflow: hidden;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
}

/* Slider Track */
.classes-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Slide Cards (Each takes full width of viewport) */
.classes-track .class-card {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Individual Class Card */
.class-card {
    background: #111111;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    padding: 2.4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

/* Highlighted Border Left on Hover */
.class-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #ff0033;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
    box-sizing: border-box;
}

/* Hover Lift Effect */
.class-card:hover {
    transform: translateY(-6px);
}

.class-card:hover::before {
    transform: scaleY(1);
}

/* Category / Label */
.class-card .clabel {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ff0033;
    font-weight: 700;
    margin-bottom: 0.9rem;
    box-sizing: border-box;
}

/* Class Title */
.class-card h3 {
    text-transform: uppercase;
    font-size: 1.9rem;
    margin-top: 0;
    margin-bottom: 0.7rem;
    line-height: 1;
    font-weight: 800;
    box-sizing: border-box;
}

/* Class Description */
.class-card p,
.class-card-desc p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.96rem;
    margin-top: 0;
    margin-bottom: 1.6rem;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Meta Data Row */
.class-meta {
    display: flex;
    gap: 1.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.2rem;
    box-sizing: border-box;
}

.class-meta span {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

.class-meta b {
    color: #ffffff;
    font-weight: 700;
}

/* Slide Navigation Buttons (Arrows) */
.cls-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    box-sizing: border-box;
}

.cls-btn:hover {
    background-color: #ff0033;
    border-color: #ff0033;
}

.cls-btn.prev {
    left: 12px;
}

.cls-btn.next {
    right: 12px;
}

/* Base style for icons inside buttons */
.cls-btn i {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Center SVGs inside arrow buttons */
.cls-btn svg {
    display: block;
    transition: transform 0.2s ease;
    /* Default size if not overridden by Elementor controls */
    width: 22px;
    height: 22px;
}

/* Specifically style our default outline chevron fallback */
.cls-btn svg.hyt-default-chevron {
    fill: none !important;
    stroke: currentColor;
    stroke-width: 2.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Slide Spacing Micro-Animations on Hover */
.cls-btn.prev:hover svg,
.cls-btn.prev:hover i {
    transform: translateX(-2px);
}

.cls-btn.next:hover svg,
.cls-btn.next:hover i {
    transform: translateX(2px);
}

/* Pagination Dots */
.cls-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 1.6rem;
    box-sizing: border-box;
    width: 100%;
}

.cls-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.cls-dots button.active {
    background-color: #ff0033;
    width: 22px;
    border-radius: 4px;
}
