/* Custom Responsive Dynamic Categories Slider Stylesheet */

.paktrees-slider-outer-container {
    width: 100%;
    margin: 30px auto;
    position: relative;
    font-family: sans-serif;
}

/* RTL Layout Direction Support */
.paktrees-slider-outer-container.pm-rtl {
    direction: rtl;
    text-align: right;
}

.paktrees-slider-main-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.pm-slider-view-window {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.pm-slider-pages-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

/* Dynamic Grid Layout */
.pm-slider-page-view {
    display: grid;
    width: 100%;
    flex-shrink: 0;
    column-gap: 15px;
    row-gap: 25px;
    justify-content: center;
    box-sizing: border-box;
    padding: 5px 10px;
}

/* Category Card Styling */
.pm-slider-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 15px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.pm-slider-item-card:hover {
    transform: translateY(-5px);
    border-color: #28a745;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.12);
}

/* 🖼️ Image Wrapper - Crops the bottom 25% to completely hide embedded text */
.pm-cat-slide-img-box {
    width: 90px;
    height: 70px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

/* Crops out the bottom text by scaling and shifting up */
.pm-cat-slide-img-box img {
    width: 100%;
    height: 128%;
    object-fit: contain;
    object-position: top center;
    transform: scale(1.28);
    transform-origin: top center;
    transition: transform 0.3s ease;
}

.pm-slider-item-card:hover .pm-cat-slide-img-box img {
    transform: scale(1.35);
}

/* Localized & Translated Text Title styling */
.pm-cat-slide-title {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-top: 12px;
    text-align: center;
    display: block;
    line-height: 1.3;
    transition: color 0.3s ease;
    word-break: keep-all;
}

.pm-slider-item-card:hover .pm-cat-slide-title {
    color: #28a745;
}

/* Navigation Arrow Buttons */
.pm-slider-arrow {
    background: #ffffff;
    border: 2px solid #28a745;
    color: #28a745;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0 10px;
}

.pm-slider-arrow:hover {
    background: #28a745;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

.pm-slider-arrow:active {
    transform: scale(0.95);
}

.arrow-icon {
    font-size: 16px;
    font-weight: bold;
}

/* Indicators Navigation Dots */
.pm-slider-dots-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pm-slider-nav-dot {
    width: 10px;
    height: 10px;
    background: #cccccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pm-slider-nav-dot.active {
    background: #28a745;
    width: 24px;
    border-radius: 6px;
}

/* Mobile & Tablet Optimizations */
@media (max-width: 768px) {
    .pm-slider-arrow {
        display: none; /* Hide arrows on touch screens, rely on swipe gestures */
    }
    
    .pm-slider-item-card {
        padding: 10px 5px;
        border-radius: 10px;
    }

    .pm-cat-slide-img-box {
        width: 70px;
        height: 54px;
    }

    .pm-cat-slide-title {
        font-size: 11px;
        margin-top: 8px;
    }
}
