/* GP Recent Posts Slider Styles */

/* Main container */
.gprps-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* The height is now controlled by an inline style from the plugin settings */
}

/* The track that holds all slides and moves */
.gprps-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

/* Individual slide styling */
.gprps-slide {
    position: relative;
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
}

/* Featured image styling */
.gprps-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is key for responsiveness */
    display: block;
}

/* Dark overlay for text readability */
.gprps-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}

/* Content wrapper */
.gprps-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px 40px;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
}

/* Category styling */
.gprps-slide-category {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.gprps-slide-category:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Post title styling */
.gprps-slide-title {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.2;
}

.gprps-slide-title a {
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Navigation buttons (prev/next) */
.gprps-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: background-color 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gprps-nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.gprps-prev {
    left: 20px;
}

.gprps-next {
    right: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gprps-slide-content {
        padding: 20px;
    }

    .gprps-slide-title {
        font-size: 1.8rem;
    }
    
    .gprps-nav {
        width: 40px;
        height: 40px;
        padding: 10px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gprps-slide-title {
        font-size: 1.4rem;
    }
    .gprps-slide-category {
        font-size: 12px;
        padding: 4px 8px;
        margin-bottom: 10px;
    }
}