.gform-theme--foundation .gform_fields {
    grid-row-gap: 20px !important;
}
div.gform_wrapper {
    margin-bottom: 10px !important;
}
#get_in_touch h3 {
    margin-bottom: 0.5em;
}
#resource-carousel .nectar-flickity.nectar-carousel.nectar-carousel:not(.masonry) .flickity-viewport {
    margin: 0 0 70px 0 !important;
}
#resource-carousel .flickity-page-dots {
	bottom: -90px !important;
}
#resource-carousel .featured-tag {
	padding: 6px 18px;
	border-radius: 100px;
	background: #EDE9FC;
	color: #5E2EE5;
}
#resource-carousel .learn-more-cta .text {
	font-family: Inter;
	font-size: 16px;
	font-weight: 400;
}
#resource-carousel .learn-more-cta .text::after {
    content: url(/wp-content/themes/pharmx-child/assets/svg/pharmx-icon-next.svg);
    display: inline-block;
    width: 15px;
    z-index: 1;
    position: relative;
    margin-left: 10px;
    transform: rotate(315deg);
		top: 2px;
    transition: .3s ease all;
}
#resource-carousel .learn-more-cta:hover .text::after {
    transform: rotate(360deg);
}
.resource-tabs-nav {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid #BFB3FF;
/* 	overflow-x: scroll !important;
	overflow-y: hidden !important;
	white-space: nowrap !important;
	scrollbar-width: none;  */
}
/* .resource-tabs-nav::-webkit-scrollbar {
  display: none;

.resource-tabs-nav .tab-item {
  flex-shrink: 0;
  margin-right: 20px;
}

.resource-tabs-nav .tab-item a {
	display: inline-block;
	padding: 5px 17px;
	line-height: 32px;
	color: #000;
	white-space: nowrap;
} */
.resource-tabs-nav li {
	list-style: none;
}
.resource-tabs-nav li a {
	display: block;
	padding: 5px 17px;
	line-height: 32px;
	color: #000;
}
.resource-tabs-nav .active {
	color: #5E2EE5;
    background: #EDE9FC;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.resource-tabs-nav .active a {
	color: #5E2EE5;
}
.resource-tab-content {
	display: none;
}
.resource-tab-content.active {
	display: block;
}
.resource-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 50px;
}
.resource-item {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	height: 100%;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.resource-thumb {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
}
.resource-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 8px 8px 0 0;
	transition: transform 1s ease;
}
.resource-item:hover img {
	transform: scale(1.1);
}
.resource-info {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    height: 100%;
}
.resource-info h4.resource-title {
	color: #000;
	font-family: Inter;
	font-size: 23px;
	font-style: normal;
	font-weight: 500;
	line-height: 28px; 
}
.resource-desc p {
	font-size: 14px;
	color: #000;
}
.resource-btn {
	display: inline-block;
	margin-top: 30px;
	font-size: 16px;
	color: #13402A;
	text-decoration: none;
}
.resource-btn::after {
    content: url(/wp-content/themes/pharmx-child/assets/svg/pharmx-icon-next.svg);
    display: inline-block;
    width: 15px;
    z-index: 1;
    position: relative;
    margin-left: 10px;
		top: 2px;
    transform: rotate(315deg);
    transition: .3s ease all;
}
.resource-item:hover .resource-btn::after {
    transform: rotate(360deg);
}
.resource-load-more {
	margin-top: 50px;
	text-align: center;
}
.load-more-resources {
	display: none;
	font-family: 'Inter';
	font-size: 18px;
	background: #13402a;
	border: 2px solid #13402a;
    padding: 0.8em 2.2em;
    border-radius: 200px;
    color: #FFF !important;
    margin: 0;
    border: 2px solid #13402a;
    transition: opacity .45scubic-bezier(0.25,1,0.33,1), transform .45scubic-bezier(0.25,1,0.33,1), border-color .45scubic-bezier(0.25,1,0.33,1), color .45scubic-bezier(0.25,1,0.33,1), background-color .45scubic-bezier(0.25,1,0.33,1), box-shadow .45scubic-bezier(0.25,1,0.33,1) !important;
    -webkit-transition: opacity .45scubic-bezier(0.25,1,0.33,1), transform .45scubic-bezier(0.25,1,0.33,1), border-color .45scubic-bezier(0.25,1,0.33,1), color .45scubic-bezier(0.25,1,0.33,1), background-color .45scubic-bezier(0.25,1,0.33,1), box-shadow .45scubic-bezier(0.25,1,0.33,1) !important;
}
.load-more-resources.loading {
	opacity: 0.6;
	pointer-events: none;
}
.load-more-resources:hover {
	background: #fff;
	color: #13402a !important;
	cursor: pointer;
}
.loading-message {
    text-align: center;
    padding: 15px;
    font-style: italic;
    color: #666;
}
.resource-tabs-dropdown {
	display: none;
	width: 100%;
	appearance: none; 
	-webkit-appearance: none;
	-moz-appearance: none;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='9' viewBox='0 0 16 9' fill='none'><path d='M0.5 1.3805L8 8.5L15.5 1.3805L14.5592 0.5L8 6.72642L1.44081 0.5L0.5 1.3805Z' fill='%235E2EE5'/></svg>") no-repeat right 55px center;
	background-size: 16px 16px;
	margin-bottom: 30px;
	border-radius: 100px;
	background-color: #EDE9FC;
	color: #5E2EE5;
	text-align: center;
}
#get_in_touch .gform-body select,
#get_in_touch .gform-body input {
    background-color: #F6F6F6;
    border: 1px solid #F6F6F6;
    box-shadow: none;
    min-height: 3.5em;
    border-radius: 20px;
	place-items: center;
}
#gform_submit_button_3:hover,
#gform_submit_button_4:hover {
    color: #13402a !important;
    background: #FFF !important;
}

#gform_submit_button_3,
#gform_submit_button_4 {
    font-size: 18px;
    font-weight: normal !important;
    padding: 0.8em 2em !important;
    text-align: center;
    display: flex;
    background: #13402a !important;
    color: #FFF !important;
    transition: .3sease all;
    border: 2px solid #13402a !important;
    font-weight: 300;
    min-height: auto !important;
}
#get_in_touch > .row-bg-wrap .row-bg {
    border-bottom-left-radius: 5em;
    border-bottom-right-radius: 5em;
    position: static;
    z-index: 0;
}
#get_in_touch > .row-bg-wrap .row-bg::before {
    content: '';
    background-color: #0a2f1d;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    position: relative;
}
form#gform_3 label {
    margin-top: 0px !important;
}
form#gform_4 {
    place-items: center;
}
body.single-resource div#contact_form_section {
    display: none;
}
body.single-resource .container-wrap,
body.single-resource .container-wrap .nectar-global-section {
	padding-top: 0px !important;
}
body.single-resource .single-resource-thumbnail {
	width: 100% !important;
	height: 60vh !important;
	object-fit: cover;
	border-radius: 14px;
	margin-bottom: 20px;
	display: block;
	box-shadow: 0px 3px 20px 0px #BFB3FF;
}
body.single-resource .resource-content {
	color: #231F20;
}
body.single-resource .resource-content img {
	margin-top: 15px;
	border-radius: 14px;
	box-shadow: 0px 3px 20px 0px #BFB3FF;
}
body.single-resource .resource-content a {
	color: #231F20;
}
body.single-resource .resource-content a:hover {
	color: #5E2EE5;
}
body.single-resource .resource-title {
	margin-bottom: 23px;
}

body.single-resource .resource-meta-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	margin-bottom: 23px;
	gap: 20px;
}

body.single-resource .resource-meta-left {
	display: flex;
	gap: 12px;
	align-items: center;
}

body.single-resource .author-avatar {
	border-radius: 50%;
	width: 48px;
	height: 48px;
	object-fit: cover;
	margin-bottom: 0px;
}

body.single-resource .author-info .author-name {
	margin: 0;
	font-weight: 700;
	padding-bottom: 0px;
}

body.single-resource .author-info .post-date {
	margin-top: 4px;
	color: #231F20;
}

body.single-resource .resource-meta-right {
	color: #5E2EE5;
	align-self: center;
}
.resource-social-share {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-top: 20px;
}

.resource-social-share .share-btn img,
.resource-social-share .share-btn svg {
	width: 24px;
	height: 24px;
	display: block;
	transition: transform 0.2s ease;
}

.resource-social-share .share-btn:hover svg,
.resource-social-share .share-btn:hover img {
	transform: scale(1.1);
}
.latest-resources-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	overflow: visible;
}
.carousel-pagination {
	text-align: center;
	margin-top: 10px;
	display: none;
}

.carousel-bullet {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #868D9A;
	margin: 0 5px;
	transition: background 0.3s;
}

.carousel-bullet.active {
	width: 15px;
	height: 15px;
	background: transparent;
	border: 1px solid #707070;
}


.fr-static .fr-item,
.fr-carousel .swiper-slide {
    display: flex;
    gap: 20px;
/*     margin-bottom: 50px; */
    align-items: stretch;
	padding-left: 50px;
	padding-right: 50px;
}


.fr-content,
.fr-thumbnail {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    box-sizing: border-box;
}

.fr-thumbnail {
    display: flex;
    align-items: stretch;
}

.fr-content .feature-param {
	margin-top: 5px;	
}

.fr-thumbnail img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
	border-radius: 24px;
	margin-bottom: 0px !important;
}

.fr-description {
    margin-bottom: 15px;
}

.fr-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.fr-btn:hover {
    background-color: #005f8d;
}

.fr-carousel {
    position: relative;
}

.fr-carousel span.swiper-pagination-bullet {
    background: #5A5A5A;
}

.fr-carousel span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #333;
	outline: 1px solid #000;
    outline-offset: 2px;
}

#resource-carousel .flickity-nav {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 20px;
}

#resource-carousel .flickity-nav button {
	font-size: 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 10px;
	transition: color 0.3s ease;
}

#resource-carousel .flickity-nav button:hover {
	color: #333;
}

#resource-carousel .flickity-prev img,
#resource-carousel .flickity-next img {
	width: 30px !important;
	height: 40px !important;
	margin-bottom: 0px;
}


#resource-carousel button.flickity-prev {
    position: absolute;
    top: 50%;
    left: 10px;
}

#resource-carousel button.flickity-next {
    position: absolute;
    top: 50%;
    right: 10px;
}

.page-id-3205 .container-wrap {
	padding-top: 0px !important;
}

.fr-carousel .swiper-button-prev,
.fr-carousel .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fr-carousel .swiper-button-prev {
    left: 0px; 
}

.fr-carousel .swiper-button-next {
    right: 0px; 
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


@media (max-width: 768px) {
	#resource-carousel .nectar-flickity.nectar-carousel.nectar-carousel:not(.masonry) .flickity-viewport {
		margin: 0 0 50px 0 !important;
	}
	#resource-carousel .flickity-page-dots {
		bottom: -50px !important;
	}
	.resource-tabs-nav {
        display: block !important;
        position: absolute !important;
        width: 85%;
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3sease;
        background: #fff;
        position: relative;
        border-bottom: none !important;
        z-index: 99;
	}
	.resource-tabs-dropdown {
		display: block;
	}
	.latest-resources-row {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 26px;
		padding-bottom: 10px;
	}
	.latest-resources-row::-webkit-scrollbar {
		display: none;
	}
	.latest-resources-row {
		scrollbar-width: none; /* Firefox */
	}

	.latest-resources-row .resource-item {
		min-width: 100%;
		height: auto !important;
		scroll-snap-align: start;
	}
	body.single-resource .single-resource-thumbnail {
		height: auto !important;
	}
	form#gform_4 {
		place-items: normal;
	}
	form#gform_4 .gform_fields {
		row-gap: 20px !important;
	}
	#get_in_touch .gform-body input {
		width: 100%;
	}
	#get_in_touch > .row-bg-wrap .row-bg {
		border-bottom-left-radius: 30px;
		border-bottom-right-radius: 30px;
	}
	.carousel-pagination {
		display: flex !important;
		justify-content: center;
		align-items: center;
	}
	#single-resource-mobile .nectar-cta .link_wrap {
		width: 100%;
	}
	
	.fr-carousel .swiper-button-prev ,
	.fr-carousel .swiper-button-next {
		display: none
	}
	.fr-static .fr-item,
	.fr-carousel .swiper-slide {
		padding: 0px;
	}
	.fr-thumbnail {
		aspect-ratio: 1 / 1;
	}
}
@media (max-width: 1024px) {
	.resource-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	#resource-carousel button.flickity-prev {
		left: 0px !important;
	}

	#resource-carousel button.flickity-next {
		right: 0px !important;
	}
}

@media (max-width: 640px) {
/* 	#resource-header h2 {
		text-align: left !important;
	} */
	.resource-grid {
		grid-template-columns: 1fr; 
	}
	#gform_submit_button_3 {
		width: 100%;
	}
	#resource-carousel .flickity-nav button {
		display: none;
	}
}
@media (min-width: 640px) and (max-width: 1024px) {
    #get_in_touch .gform-theme--foundation .gfield--width-five-sixths {
        grid-column: span 8 !important;
    }
	#get_in_touch .gform-theme--foundation .gfield--width-one-sixth {
        grid-column: span 4 !important;
    }
}

/* Hide button on desktop */
.resource-tab-active-display {
  	display: none;
}

.resource-references p, 
.resource-references li{
	font-size: 15px;
	line-height: 20px;
}

/* Mobile styles only */
@media (max-width: 768px) {
	.resource-tab-active-display {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 6px;
		background-color: #EDE9FC;
		color: #5E2EE5;
		border: 1px solid #EDE9FC;
		padding: 16px 14px;
		width: 100%;
		text-align: center;
		cursor: pointer;
		font-size: 16px;
		position: relative;
		z-index: 100;
	}
	
	.resource-tabs-wrapper .resource-tab-active-display {
		border-radius: 10px !important;
	}
	
	.resource-tabs-wrapper .resource-tabs-nav {
		margin-top: 10px;
		border-radius: 10px !important;
	}
	
	.resource-tabs-wrapper.open .resource-tabs-nav {
		border: 2px solid #EDE9FC;
	}
	
	.tab-arrow-icon {
		width: 12px;
		height: 12px;
		margin-bottom: 0px !important;
	}

	.resource-tabs-nav {
		display: block !important;
		position: absolute !important;
		width: 100%;
		list-style: none;
		padding: 0;
		margin: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		background: #fff;
		position: relative;
		text-align: center;
		border-bottom: none !important;
		z-index: 99;
	}

	.open .resource-tabs-nav {
		max-height: 500px;
	}

	.resource-tabs-nav li a {
		display: block;
		padding: 10px 14px;
		color: #5E2EE5;
		text-decoration: none;
	}

	.resource-tabs-nav li {
		border-bottom: 2px solid #EDE9FC;
		justify-content: center;
	}

	.resource-tabs-nav li.active,
	.resource-tabs-nav li.active a {
		background: #EDE9FC !important;
	}
	
    .fr-static .fr-item,
    .fr-carousel .swiper-slide {
        flex-direction: column;
    }

    .fr-content,
    .fr-thumbnail {
        flex: 0 0 100%;
        max-width: 100%;
    }

}