/**
 * Services Slider Styles
 * This file is loaded only on the homepage
 * Works with existing Woodmart carousel structure
 */

/* ==========================================================================
   SERVICES SLIDER AREA (ROW CONTAINER)
   ========================================================================== */

/**
 * Main container for the services slider section
 * Provides the dark green background and overall layout structure
 */
.services-slider-area {
    background: var(--new-green, #0F3F36);
    position: relative;
    overflow: hidden;
    padding-top: 3%;
    padding-bottom: 3%;
    padding-left: 60px;
    border-radius: var(--radius-16);
    margin-bottom: 2%;
}

@media (max-width: 1024px) {
    .services-slider-area {
        padding-left: 0px;
        padding-bottom: 24px;
    }
}

/* ==========================================================================
   SERVICES SLIDER CONTENT STRUCTURE
   ========================================================================== */

/**
 * Text column wrapper for the heading
 * Matches WPBakery page builder structure
 */
.services-slider-area .wpb_text_column.wpb_content_element {
    max-width: 1600px;
    margin: 0 auto 48px auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Services slider heading styling */
.services-slider-area h2 {
    color: var(--power-lime, #ADFF60);
    font-family: var(--font-primary, 'Biryani', sans-serif);
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 900;
    line-height: 110%;
    margin: 0;
    text-align: left;
    text-wrap: balance;
}

/* ==========================================================================
   WOODMART CAROUSEL INTEGRATION
   ========================================================================== */

/**
 * Woodmart carousel container within services slider area
 */
.services-slider-area .wd-carousel-container {
    position: relative;
    z-index: 2;
}
.services-slider-area .wd-hide-md-sm {
    display: block!important;
}

.services-slider-area .banner-title {
    color: var(--power-lime, #ADFF60);
    font-family: var(--font-primary, 'Biryani', sans-serif);
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 800;
    line-height: 110%;
    margin: 0 0 16px 0;
    text-transform: capitalize;
}

/**
 * Banner button styling
 */
.services-slider-area .btn {
    background: var(--power-lime, #ADFF60) !important;
    color: var(--new-green, #0F3F36) !important;
    border: none !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-primary, 'Biryani', sans-serif) !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: background-color, transform;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/**
 * Button hover state - enhanced with smooth effects
 */
.services-slider-area .btn:hover {
    background: #ffffff !important;
    color: var(--new-green, #0F3F36) !important;
    transform: translateY(0px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/**
 * Button focus state for accessibility
 */
.services-slider-area .btn:focus {
    outline: 2px solid var(--power-lime, #ADFF60);
    outline-offset: 2px;
    background: #ffffff !important;
    color: var(--new-green, #0F3F36) !important;
}

/**
 * Button active state for click feedback
 */
.services-slider-area .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/**
 * Banner image styling
 */
.services-slider-area .banner-image.wd-bg-position-center img {
    border-radius: 8px;
}

/**
 * Gradient overlay on banner images
 * ::before is always visible, ::after appears on hover
 */
.services-slider-area .banner-image.wd-bg-position-center {
    position: relative;
}

.services-slider-area .banner-image.wd-bg-position-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #858c7d42 40%, #113F36 150%);
    border-radius: 8px;
    z-index: 1;
}

.services-slider-area .banner-image.wd-bg-position-center img {
    position: relative;
    z-index: 0;
}

.services-slider-area .banner-image.wd-bg-position-center::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #858c7d00 66%, #00000063 130%);
    border-radius: 8px;
    z-index: 1;
    opacity: 0;
    will-change: opacity, transform;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-slider-area .promo-banner:hover .banner-image.wd-bg-position-center::after {
    opacity: 1;
}

/**
 * Content banner styling
 */

 .services-slider-area .content-banner {
    margin: 30px;
    position: relative;
    z-index: 2;
 }

/**
 * Force content banner to bottom positioning
 * Overrides Woodmart's flex positioning for this specific section
 */
.services-slider-area .wrapper-content-banner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

/* Additional override to ensure content stays at bottom */
.services-slider-area .promo-banner .wrapper-content-banner.wd-fill.wd-items-bottom.wd-justify-left {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
}
/* ==========================================================================
   WOODMART CAROUSEL NAVIGATION
   ========================================================================== */

/**
 * Navigation arrows styling for Woodmart carousel
 */
.services-slider-area .wd-nav-arrows {
    position: relative;
    z-index: 3;
}

.services-slider-area .wd-btn-arrow {
    border: 2px solid var(--power-lime, #ADFF60);
    background: transparent;
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

/**
 * Pagination dots styling
 */
.services-slider-area .wd-nav-pagin-item {
    background: rgba(173, 255, 96, 0.3);
}

.services-slider-area .wd-nav-pagin-item.wd-active {
    background: var(--power-lime, #ADFF60);
}
