/* **********************************************************
 * BLOG
 * ******************************************************** */

/* Blog Heading Sizes */
.elementor-kit-7.single-post .jupiterx-post-body h1 {
	font-size: clamp(51px, calc(51px + (60 - 51) * ((100vw - 320px) / (1920 - 320)) + max(0px, ((100vw - 1920px) * 0.025))), 100vw);
}
.elementor-kit-7.single-post .jupiterx-post-body h2 {
	font-size: clamp(41px, calc(41px + (48 - 41) * ((100vw - 320px) / (1920 - 320)) + max(0px, ((100vw - 1920px) * 0.025))), 100vw);	
}
.elementor-kit-7.single-post .jupiterx-post-body h3 {
	font-size: clamp(36px, calc(36px + (42 - 36) * ((100vw - 320px) / (1920 - 320)) + max(0px, ((100vw - 1920px) * 0.025))), 100vw);	
}
.elementor-kit-7.single-post .jupiterx-post-body h4 {
	font-size: clamp(31px, calc(31px + (36 - 31) * ((100vw - 320px) / (1920 - 320)) + max(0px, ((100vw - 1920px) * 0.025))), 100vw);	
}
.elementor-kit-7.single-post .jupiterx-post-body h5 {
	font-size: clamp(26px, calc(26px + (30 - 26) * ((100vw - 320px) / (1920 - 320)) + max(0px, ((100vw - 1920px) * 0.025))), 100vw);	
}
.elementor-kit-7.single-post .jupiterx-post-body h6 {
	font-size: clamp(22px, calc(22px + (26 - 22) * ((100vw - 320px) / (1920 - 320)) + max(0px, ((100vw - 1920px) * 0.025))), 100vw);	
}

/* Blog Buttons */
/* a.raven-post-button {
    padding: ;	
} */


/* *****************************
 * BLOG LANDING & ARCHIVE 
 * *************************** */
/* Blog Search Box - Use code if need to adjust focus state of blog search field 
.elementor-search-form--skin-minimal:focus-within {
    outline-width: 0 !important;
    outline-style: unset !important;
}

*/


/* *****************************
 * ELEMENTOR POSTS GRID ALTERNATING HORIZONTAL LAYOUT
 * *************************** */
.elementor-post__card {
 border-radius: 2rem 0rem 0 0 !important;	
  position: relative !important;
  width: 95% !important;
  margin-left: auto !important;
  min-height: 350px !important;
  opacity: 0 !important;
  transition: opacity 1s ease !important;
}
.elementor-post__card.layout-ready {
  opacity: 1 !important;
  transition: opacity 1s ease !important;	
}
.elementor-post__thumbnail__link {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 40% !important;
  height: 100% !important;
}
.elementor-post__thumbnail {
  height: 100% !important;
  width: 100% !important;
}
.elementor-post__thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.elementor-post__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: fit-content;
}
.wst-post-content-col {
  width: 60% !important;
  margin-left: 40% !important;
  box-sizing: border-box !important;
}
.elementor-post__text {
  margin: 0 !important;
  padding: 4rem !important;	
}
.elementor-post__meta-data {
	padding-left: 4rem !important;	
}

/* Alternate Layout for Every Other Post */
.elementor-post__card.alternate-layout {
  border-radius: 0rem 2rem 0 0 !important;	
  margin-left: 0 !important;
  margin-right: auto !important;
}
.elementor-post__card.alternate-layout .elementor-post__thumbnail__link {
  left: auto !important;
  right: 0 !important;
}
.elementor-post__card.alternate-layout .wst-post-content-col {
  margin-left: 0 !important;
  margin-right: 40% !important;
}
.elementor-post__card.alternate-layout .elementor-post__badge {
  left: auto;
  right: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .elementor-post__card, .elementor-post__card.alternate-layout {
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: auto !important;
  }
  .elementor-post__thumbnail__link {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 1rem !important;
  }
  .elementor-post__thumbnail img {
    height: auto !important;
  }
  .wst-post-content-col {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .elementor-post__card.alternate-layout .elementor-post__thumbnail__link {
    position: relative !important;
  }
  .elementor-post__card.alternate-layout .wst-post-content-col {
    margin-right: 0 !important;
  }
  .elementor-post__text {
	padding: 2rem !important;	
  }	
  .elementor-post__meta-data {
	padding-left: 2rem !important;	
  }	
  .elementor-post__card.alternate-layout .elementor-post__badge {
    left: 10px;
    right: auto;
  }	
}


/* *****************************
 * SEARCH RESULTS OVERRIDE FROM ELEMENTOR POSTS GRID ALTERNATING HORIZONTAL LAYOUT
 * *************************** */
.search-results .elementor-post__card.layout-ready {
    display: flex;
    flex-direction: column !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100%;
}
.search-results .elementor-post__thumbnail__link {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 50% !important;
    overflow: hidden !important;
}
.search-results .elementor-post__thumbnail {
	display: flex !important;
	padding-bottom: calc( 0.5 * 100% ) !important;
}
.search-results .elementor-post__text {
    display: flex !important;
    flex-grow: 0 !important;
    padding: 2rem !important;
    height: 50% !important;
}


/* *****************************
 * BLOG SELECT
 * *************************** */
.jet-select select {
	background: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;	
	position: relative;
}
.jet-select .jet-select__control {
    background: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
}
.jet-select:after {
	align-items: center;
	content: "\e909";
	display: flex;
	font-family: 'Happy Icons' !important;
	font-size: 16px;
	font-weight: 900;
	justify-content: flex-end;
	pointer-events: none;
	position: absolute;
	right: 1rem;
	top: calc(50% + 1px);
	color: #fff !important;
}
.jet-select:after {
    transform: translateY(-50%);	
}
.jet-filter {
    --tabindex-color: #ccc !important;
    --tabindex-shadow-color: transparent !important; 
}


/* *****************************
 * BLOG ARCHIVE
 * *************************** */
.btn-archive-view-all a {
    width: 100%;
}


/* *****************************
 * BLOG SINGLE
 * *************************** */
/* SOCIAL */
.single-post .jupiterx-social-share-link {
	color: #fff;
	margin: 2rem 1rem 1rem 0;
	border-radius: 0;
	width: auto !important;
}
.single-post .jupiterx-icon {
	opacity: 1 !important;
	padding: .5rem;
	width: auto !important;
}
.single-post .jupiterx-social-share-link:hover {
	color: #EEE;
}

/* BLOG SINGLE TEMPLATE IF USED - POST NAVIGATION */
.raven-post-navigation {
    display: flex !important;
}
.raven-post-navigation [rel="next"],
.raven-post-navigation [rel="prev"] {
    width: 50% !important;   
}
.raven-post-navigation .raven-post-navigation-title {
	margin-top: 0 !important;
}

@media (max-width: 767px) { 
    .raven-post-navigation {
        display: flex !important;
        flex-direction: column;
    }    
    .raven-post-navigation [rel="next"],
    .raven-post-navigation [rel="prev"] {
        padding-bottom: 2rem;
        width: 100% !important;   
    }
}
@media (max-width: 480px) {
    .elementor-widget-raven-post-navigation.raven-post-navigation-type-image-box .raven-post-navigation {
        grid-template-columns: 1fr
    }
    .raven-post-navigation {
        display: flex !important;
        flex-direction: column;
    }    
	.raven-post-navigation-content-wrapper {
        width: 100% !important;   		
    }	
	body .elementor-widget-raven-post-navigation.raven-post-navigation-type-standard .raven-post-navigation-next-previous-content {
		display: flex !important;
	}
    .raven-post-navigation [rel="next"],
    .raven-post-navigation [rel="prev"] {
		display: block !important;
        padding-bottom: 1rem;
        width: 100% !important; 	
    }
}


/* *****************************
 * RAVEN MATRIX NEWS LANDING LOOP TEMPLATE
 * *************************** */
.raven-posts.raven-posts-matrix .raven-sortable-items {
    background: var(--e-global-color-secondary);
    padding: 0.5rem;
    border: 1px solid var(--e-global-color-primary);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 767px) {
	.raven-posts.raven-posts-matrix .raven-posts-item.raven-matrix-item {
		width: 100% !important;
	}
}


/* *****************************
 * BLOG LOOP - ROW 1 One Post - ROW 2 Three Posts - ROW 3 One Post, etc
 * *************************** */
.posts-loop .elementor-posts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.posts-loop .elementor-posts-container .elementor-post {
  flex: 1 1 100%;
}
/* Full width for 1st and 5th posts */
.posts-loop .elementor-posts-container .elementor-post:nth-child(1),
.posts-loop .elementor-posts-container .elementor-post:nth-child(5) {
  flex: 1 1 100%; 
}
 /* Three posts per row */
.posts-loop .elementor-posts-container .elementor-post:nth-child(2),
.posts-loop .elementor-posts-container .elementor-post:nth-child(3),
.posts-loop .elementor-posts-container .elementor-post:nth-child(4),
.posts-loop .elementor-posts-container .elementor-post:nth-child(6),
.posts-loop .elementor-posts-container .elementor-post:nth-child(7),
.posts-loop .elementor-posts-container .elementor-post:nth-child(8) {
  flex: 1 1 calc(33.33% - 1.5rem);
}

@media (max-width: 1200px) and (min-width: 768px) {
  /* First row - 1 post */
  .posts-loop .elementor-posts-container .elementor-post:nth-child(1) {
    flex: 1 1 100%;
  }
  /* Alternating rows - 2 posts per row */
  .posts-loop .elementor-posts-container .elementor-post:nth-child(2),
  .posts-loop .elementor-posts-container .elementor-post:nth-child(3),
  .posts-loop .elementor-posts-container .elementor-post:nth-child(4),
  .posts-loop .elementor-posts-container .elementor-post:nth-child(5),
  .posts-loop .elementor-posts-container .elementor-post:nth-child(6),
  .posts-loop .elementor-posts-container .elementor-post:nth-child(7),
  .posts-loop .elementor-posts-container .elementor-post:nth-child(8) {
    flex: 1 1 calc(50% - 1.5rem); /* 2 posts per row */
  }
  /* Last post full width if needed */
  .posts-loop .elementor-posts-container .elementor-post:nth-child(odd):last-child {
    flex: 1 1 100%;
  }
}

@media (max-width: 767px) {
  /* All Rows Full Width */
  .posts-loop .elementor-posts-container .elementor-post {
    flex: 1 1 100% !important;
  }
}