/* Header Section */
.cedar-sports-carousel {
    width: 100%;
}
.cedar-carousel-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 40px;
    margin-top: -87px;
}

.cedar-carousel-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Navigation Buttons */
.cedar-carousel-navigation {
    display: flex;
    gap: 8px;
}
.cedar-carousel-navigation.mobile{
	display: none;
}
.cedar-carousel-prev,
.cedar-carousel-next {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    border: 1.5px solid #D5D7DA;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #717680;
}

.cedar-carousel-prev:hover,
.cedar-carousel-next:hover {
    /*background: #f5f5f5;*/
    border-color: #000000;
    color: #1a1a1a;
}

.cedar-carousel-prev.swiper-button-disabled,
.cedar-carousel-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cedar-carousel-prev.swiper-button-disabled:hover,
.cedar-carousel-next.swiper-button-disabled:hover {
    background: #fff;
    border-color: #e5e5e5;
}

/* Post Card Styles */
.cedar-post-card {
    border-radius: 12px;
    height: auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
/* Post Thumbnail */
.cedar-post-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 422 / 222;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.cedar-post-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Post Icon */
.cedar-post-title img.emoji{
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    vertical-align: middle !important;
}
/* Post Title */
.cedar-post-title {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cedar-post-title h5 {
    width: 85%;
    color: #000000;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}
.cedar-post-card:hover .cedar-post-title h5{
    color: #F1B92E;
}
/* Post Excerpt */
.cedar-post-excerpt {
    font-family: var(--fb-global-body--font-family);
    font-weight: var(--fb-global-body--font-weight);
    font-size: var(--fb-global-body--font-size);
    line-height: var(--fb-global-body--line-height);
    color: #717680;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cedar-post-excerpt p {
    margin: 0;
}

/* Post Meta */
.cedar-post-meta {
    font-family: var(--fb-global-fb_customtypo_e3ser--font-family);
    font-size: var(--fb-global-fb_customtypo_e3ser--font-size);
    font-weight: var(--fb-global-fb_customtypo_e3ser--font-weight);
    line-height: var(--fb-global-fb_customtypo_e3ser--font-line-height);
    color: #717680;
    display: flex;
	flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
	row-gap: 8px;
}

.cedar-post-badge {
    font-weight: 700;
    margin: 0px 0px 0px 0px;
    border: none;
    transition: all .3s ease-in-out;
}

.meta-divider {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D5D7DA;
}

/* Swiper Overrides */
.cedar-sports-carousel {
    overflow: visible;
}

.cedar-sports-carousel .swiper-slide {
    height: auto;
}

/* Editor Preview Styles */
.cedar-editor-preview .cedar-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .cedar-post-meta {
        column-gap: 8px;
    }
}

@media (max-width: 1024px) {
    .cedar-carousel-header {
		margin-top: -80px;
	}
}
@media (max-width: 768px) {
	.cedar-sports-carousel-wrapper {
		display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 16px;
	}
    .cedar-carousel-header {
		margin-top: 0;
		margin-bottom: 0;
		position: relative;
		justify-content: center;
		text-align: center;
	}

    .cedar-carousel-title {
        font-size: 24px;
    }
	.cedar-carousel-navigation.desktop{
		display: none;
	}
	.cedar-carousel-navigation.mobile{
		display: flex;
		margin-top: 16px;
		align-items: center;
		justify-content: center;
	}
}
