/* Related Blog Post Styling - Clean Layout */

/* Image Styling */
#main-content .dps-layout-blog-related .image-wrapper {
    position: relative;
    margin-bottom: 20px;
}

#main-content .dps-layout-blog-related .image-wrapper .wp-post-image {
    border-radius: 16px;
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* Content Container */

/* Category Badge */
#main-content .dps-layout-blog-related .category-wrapper {
    padding: 5px 10px;
    margin-bottom: 10px;
    background-color: #B91C5C;
    border-radius: 20px;
    display: inline-block;
    transition: background 0.2s ease;
}
#main-content .dps-layout-blog-related .category-wrapper h3,
#main-content .dps-layout-blog-related .title-wrapper h4 {
    padding: 0;
    margin: 0;
    font-size: inherit;
    line-height: 0;
}

#main-content .dps-layout-blog-related .category-wrapper a {
    font-family: var(--common-font-sans) !important;
    font-size: .85rem;
    color: #fff !important;
    line-height: 1;
    font-weight: normal;
    text-decoration: none;
    border: none !important;
}


/* Title Styling */
#main-content .dps-layout-blog-related .title-wrapper {
    margin-bottom: 16px;
}

#main-content .dps-layout-blog-related .entry-title a {
    font-family: var(--common-font-serif) !important;
    font-size: 1.375rem;
    font-weight: normal;
    border: none !important;
    line-height: 120%;
    margin: 0;
}
#main-content .dps-layout-blog-related .post-meta-wrapper { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


/* Author and Date Container */
#main-content .dps-layout-blog-related .author-wrapper {
    display: flex;
    align-items: center;
}

#main-content .dps-layout-blog-related .author-wrapper a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-weight: normal;
    font-size: 0.75rem;
    line-height: 1rem;
    border: none !important;
    transition: color 0.2s ease;
}

/* Author Profile Image */
#main-content .dps-layout-blog-related .author-profile-image {
	/* width: 77%; */
	/* height: auto; */
	/* object-fit: cover; */
	/* margin-right: 8px; */
	border: none !important;
}
#main-content .dps-layout-blog-related .author-profile-image-wrapper {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	overflow: hidden;
	padding: 5px;
	margin-right: 5px;
}
/* Date Styling */
#main-content .dps-layout-blog-related .date-wrapper {
    color: #666;
    font-size: 0.75rem;
    font-weight: normal;
    line-height: 1rem;
}

/* 
    Add the WordPress calendar icon to the date wrapper.
    Use https://developer.wordpress.org/resource/dashicons/
*/
#main-content .dps-layout-blog-related .date-wrapper::before {
    content: "\f508"; /* calendar-alt */
    font-family: Dashicons;
    font-size: 16px;
    margin-right: 4px;
    vertical-align: bottom;
}

#main-content .dps-layout-blog-related .image-wrapper .post-image-placeholder {
	background-color: #fff;
	border-radius: 10px;
    max-height: 240px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* #main-content .dps-layout-blog-related .image-wrapper .wp-post-image {
        height: 200px;
    }
    
    #main-content .dps-layout-blog-related .entry-title {
        font-size: 1.25rem;
    } */
}

/** START: Blog Posts (not a slider)**/
#main-content .noom-posts {
    display: grid;
     grid-template-columns: repeat(3, 1fr);
      /* Creates 3 rows, each taking up 1 fractional unit of available space */
      gap: 50px;
}
#main-content .noom-posts .noom-post-meta * {
    color: inherit !important;
    border: none !important;
}

#main-content .noom-posts .title-wrapper h3 {
    padding: 0;
    margin: 0;
}
#main-content .noom-posts .title-wrapper h3 a {
    font-size: 1.625rem;
    line-height: 110%;
    padding: 0;
}

#main-content .noom-posts .post-meta-wrapper {
    align-items: center;
    justify-content: unset !important;
}

@media (max-width: 768px) {
    #main-content .noom-posts {
        grid-template-columns: repeat(1, 1fr);
    }

    #main-content .noom-posts .title-wrapper h3 a {
        font-size: 1.375rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #main-content .noom-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}
/** END: Blog Posts (not a slider)**/
