.post-carousel-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 40px;
}

.post-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 90px;
}

.view-services-link {
    color: #F78F20;
    text-decoration: none;
    border-bottom: 1px solid #F78F20;
    padding-bottom: 5px;
    transition: opacity 0.3s ease;
}

.view-services-link:hover {
    color: #10712c;
    border-bottom: 1px solid #10712c;
    transition: opacity 0.3s ease;
}

.carousel-nav {
    display: flex;
    gap: 15px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F78F20;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.carousel-btn:hover:not(:disabled) {
    background: #e67f10;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.post-carousel-container {
    overflow: visible;
    width: 100%;
}

.post-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    cursor: grab;
    user-select: none;
}

.post-carousel-track:active {
    cursor: grabbing;
}

.carousel-item {
    flex: 0 0 400px;
    min-width: 400px;
    max-width: 400px;
    position: relative;
}

.carousel-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.carousel-item-inner {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    cursor: pointer;
}

.carousel-item-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0F712C;
    padding: 20px;
    margin: 15px;
    border-radius: 16px;
    transition: opacity 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.carousel-item-title {
    color: #F8F9EF;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.carousel-item-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #F78F20;
    padding: 20px;
    margin: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 16px;
    z-index: 3;
    max-height: 60%;
}

.carousel-item-inner:hover .carousel-item-hover {
    opacity: 1;
}

.carousel-item-inner:hover .carousel-item-content {
    opacity: 0;
}

.carousel-item-title-hover {
    color: #F8F9EF;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.carousel-item-excerpt {
    color: #F8F9EF;
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.carousel-progress-bar {
    height: 100%;
    background: #F78F20;
    width: 0%;
    transition: all 0.5s ease;
    min-width: 15%;
}

/* Edge decoration (optional - adds the orange corners) */
.carousel-item-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: #F78F20;
    border-radius: 15px 0 15px 0;
}

.carousel-item-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: #0F712C;
    border-radius: 15px 0 15px 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel-item {
        flex: 0 0 350px;
        min-width: 350px;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .post-carousel-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .carousel-item {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
    }
    
    .carousel-item-title,
    .carousel-item-title-hover {
        font-size: 20px;
    }
    
    .carousel-item-excerpt {
        font-size: 16px;
    }
    
    .carousel-item-content {
        padding: 20px;
        min-height: 100px;
    }
    
    .carousel-item-hover {
        padding: 20px;
        max-height: 50%;
    }
}