/* Slick Slider Portfolio Styles */
.portfolio-slick-wrapper {
    position: relative;
    padding: 0 50px;
    margin: 0 auto;
}

.portfolio-slick-slider {
    width: 100%;
}

.portfolio-slick-slide {
    padding: 0 10px;
}

.slick-slide-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 220px;
    transition: all 0.3s ease;
    margin: 4px;
}

.slick-slide-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.slick-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-slick-slide:hover .slick-slide-image {
    transform: scale(1.08);
}

.slick-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-slick-slide:hover .slick-slide-overlay {
    opacity: 1;
}

.slick-slide-content {
    color: white;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.portfolio-slick-slide:hover .slick-slide-content {
    transform: translateY(0);
}

.slick-slide-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.slick-slide-description {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slick Slider Arrow Styles */
.slick-prev, .slick-next {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 10;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.slick-prev:hover, .slick-next:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 20px rgba(255, 107, 147, 0.3) !important;
}

.slick-prev:before, .slick-next:before {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--dark-color);
    opacity: 1;
    transition: color 0.3s ease;
}

.slick-prev:before {
    content: '\f053' !important; /* fa-chevron-left */
}

.slick-next:before {
    content: '\f054' !important; /* fa-chevron-right */
}

.slick-prev:hover:before, .slick-next:hover:before {
    color: white !important;
}

.slick-prev {
    left: -45px !important;
}

.slick-next {
    right: -45px !important;
}

/* Slick Dots Styles */
.slick-dots {
    bottom: -40px !important;
}

.slick-dots li {
    margin: 0 3px;
}

.slick-dots li button:before {
    font-size: 8px;
    color: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.slick-dots li.slick-active button:before {
    color: var(--primary-color);
    font-size: 10px;
}

/* Category Sections */
.category-section {
    margin-bottom: 40px;
    padding: 0 20px;
}

.category-section:first-child {
    margin-top: 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.category-count {
    font-size: 0.85rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .portfolio-slick-wrapper {
        padding: 0 40px;
    }

    .portfolio-slick-slide {
        padding: 0 8px;
    }

    .slick-slide-image-container {
        height: 180px;
        border-radius: 12px;
        margin: 3px;
    }

    .slick-slide-overlay {
        padding: 15px;
        opacity: 1; /* Always visible on mobile */
        background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    }

    .slick-slide-content {
        transform: translateY(0);
    }

    .slick-slide-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .slick-slide-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .slick-prev, .slick-next {
        width: 32px;
        height: 32px;
    }

    .slick-prev {
        left: -35px !important;
    }

    .slick-next {
        right: -35px !important;
    }

    .category-section {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .category-header {
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .category-count {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* Tablet Optimizations */
@media (min-width: 577px) and (max-width: 768px) {
    .slick-slide-image-container {
        height: 200px;
    }

    .portfolio-slick-slide {
        padding: 0 12px;
    }
}

/* Desktop Enhancements */
@media (min-width: 769px) {
    .slick-slide-image-container {
        height: 240px;
    }

    .portfolio-slick-wrapper {
        padding: 0 60px;
    }
}

/* EMERGENCY FALLBACK - If sliders don't work */
.portfolio-slick-slider:not(.slick-initialized) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.portfolio-slick-slider:not(.slick-initialized) .portfolio-slick-slide {
    display: block !important;
    opacity: 1 !important;
}

/* Hide slick arrows if not initialized */
.portfolio-slick-wrapper .slick-arrow {
    display: none !important;
}

.portfolio-slick-slider.slick-initialized .slick-arrow {
    display: block !important;
}