/***************************
      POST FEED MODULE
 ***************************/

/* General styling for the post-feed row */
.post-feed-row {
    gap: 20px;
    padding: 20px;
}

/* Grid layout */
.post-feed-row.postdisplay_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .post-feed-row.postdisplay_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .post-feed-row.postdisplay_grid {
        grid-template-columns: 1fr;
    }
}

/* List layout */
.post-feed-row.postdisplay_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Slide layout */
.post-feed-row.postdisplay_slide {
    display: grid;

    gap: 30px;
    overflow: hidden;
    position: relative;
    padding: 0 4rem;
}

.post-feed-row.postdisplay_slide {
    margin: 0 20px; 
}

.post-feed-row.postdisplay_slide .post-feed-item {
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.post-feed-row.postdisplay_slide .post-feed-item:hover {
    transform: translateY(-5px);
}



/* Thumbnail styling */
.post-thumbnail {
    width: 100%;
    height: 225px; 
    overflow: hidden;
    border-radius: 5px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    display: block;
}

/* Title styling */
.post-title {
    font-size: 1.5em;
    margin: 10px 0;
    font-weight: bold;
}

/* Excerpt styling */
.post-excerpt {
    font-size: 1em;
    color: #666;
    margin: 10px 0;
}

/* Read More link styling */
.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0073aa;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Slick arrow styling */
.slick-prev, .slick-next {
    font-size: 2em;
    color: #666;
    border: 2px solid #666;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 6px 8px 8px 8px;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

.slick-prev:hover, .slick-next:hover {
    color: #111;
    background: rgba(255, 255, 255, 1);
}
