/* @media only screen and (max-width: 767px) {

}
*/

/* Header styling */

.menu-item:hover .menu-link.nsi-welcome-link {
	color: rgba(255, 255, 255, 0.75);
}

body.nsi-styles .ast-above-header-bar.ast-above-header {
	border: 0;
}

/* Background image (header graphic) */
body.nsi-styles .ast-primary-header-bar.ast-primary-header {
	background-color: transparent;
	background-image: url('/wp-content/uploads/2025/06/header-wrapper-red-bg-5.png');
	background-position: center top;
	background-repeat: no-repeat;
	height: 100px;
}

/* Background gradient layer */
body.nsi-styles .main-header-bar-wrap {
	background-image: linear-gradient(
			to bottom,
			#9e1d16 0%, /* 1px */ #941a12 5%, /* 5px */ #8b160e 10%, /* 10px */ #84140c 15%, /* 15px */ #7f130b 20%, /* 20px */ #701209 40%, /* 40px */ #631309 60%, /* 60px */ #581108 80%, /* 80px */ #491105 100% /* 100px (bottom) */
	);
	height: 100px;
}

body.nsi-styles .ast-mobile-popup-drawer.active .menu-toggle-close:focus {
	border: none !important;
}

/* Increase SVG size */
body.nsi-styles .menu-toggle-close svg {
	height: 36px;
	width: 36px;
}


/* Make only the *inner* container transparent, NOT the one with the image */
body.nsi-styles .site-primary-header-wrap {
	background: transparent !important;
}

body.nsi-styles.ast-desktop .ast-menu-hover-style-underline > .menu-item {
	position: relative;
}

body.nsi-styles.ast-desktop .ast-menu-hover-style-underline > .menu-item::before {
	background-color: #a71e14;
	bottom: 0;
	content: "";
	height: 5px;
	left: 0;
	position: absolute;
	right: 0;
	transform: scaleX(0);
	transform-origin: center center; /* changed to center for middle-to-sides animation */
	transition: transform 0.3s ease-in-out;
	z-index: 10;
}

body.nsi-styles.ast-desktop .main-header-menu .menu-text {
	text-shadow: 1px 1px 2px rgba(167, 30, 20, 0.6);
}

body.nsi-styles.ast-desktop .ast-menu-hover-style-underline > .menu-item > .menu-link::before {
	content: none !important;
}

body.nsi-styles.ast-desktop .ast-menu-hover-style-underline > .menu-item.current-menu-item::before,
body.nsi-styles.ast-desktop .ast-menu-hover-style-underline > .menu-item.current-page-item::before,
body.nsi-styles.ast-desktop .site-primary-header-wrap .ast-menu-hover-style-underline > .menu-item:hover::before {
	transform: scaleX(1);
}

body.nsi-styles .ast-site-identity {
	padding: 0;
}

body.nsi-styles.ast-desktop .site-primary-header-wrap .main-navigation ul {
	align-items: stretch;
	height: 100%;
}

body.nsi-styles.ast-desktop .site-primary-header-wrap .main-navigation li {
	align-items: center; /* vertical center content */
	display: flex;
	height: 100%;
	padding-bottom: 0; /* Remove any bottom padding */
}

@media (min-width: 922px) and (max-width: 999px) {

	body.nsi-styles header .site-branding img {
		max-width: 250px;
	}

	body.nsi-styles .ast-primary-header .menu-link .menu-text {
		font-size: 18px;
	}

	body.nsi-styles .ast-above-header .menu-link {
		font-size: 16px;
	}
}

@media (min-width: 1000px) and (max-width: 1099px) {

	body.nsi-styles header .site-branding img {
		max-width: 300px;
	}

	body.nsi-styles .ast-primary-header .menu-link .menu-text {
		font-size: 19px;
	}

	body.nsi-styles .ast-above-header .menu-link {
		font-size: 17px;
	}
}


/* End Header styling */

/* page styling */

svg.nsi-icon-red-50 {
	display: block;
	height: 50px;
	margin-left: auto;
	margin-right: auto;
}

svg.nsi-icon-red-50 path {
	color: #e46e6e;
	fill: #e46e6e;
}

/* End About page styling */

/* Page template styling */

body.nsi-styles .nsi-pricing-card {
	border-radius: 30px 30px 30px 30px;
	border-style: none;
	box-shadow: 20px 20px 40px 0 rgba(0, 0, 1, 0.08);
	padding: 20px 20px 20px 20px;
}

body.nsi-styles .nsi-pricing-card li {
	background: url('data:image/svg+xml;utf8,<svg fill="%23ff415c" height="22" viewBox="0 0 16 16" width="22" xmlns="http://www.w3.org/2000/svg"><path d="M6 10.793L3.354 8.146l-1.708 1.708L6 14.207l9-9-1.707-1.707z"/></svg>') no-repeat left top;
	background-size: 22px 22px;
	line-height: 1.5; /* adjust line height if needed */
	list-style: none;
	margin-bottom: 0.5em; /* optional spacing between items */
	padding-left: 30px;
}


body.nsi-styles.nsi-styles.nsi-styles.nsi-styles .nsi-pricing-card .wp-block-button:hover a {
	background-color: #6722b5;
	color: white !important;
}

body.nsi-styles.ast-right-sidebar #primary,
body.nsi-styles.ast-right-sidebar #secondary {
	border: 0;
}

body.nsi-styles.ast-modern-woo-account-page .entry-content {
	margin: 0 auto !important;
}

body.nsi-styles.ast-modern-woo-account-page .woocommerce {
	width: 100%;
}

body.nsi-styles.single-sfwd-course #primary,
body.nsi-styles.single-sfwd-lessons #primary,
body.nsi-styles.single-sfwd-topic #primary,
body.nsi-styles.single-sfwd-quiz #primary {
	margin-top: 40px;
}


body.nsi-styles.single-sfwd-quiz .learndash-wrapper .ld-tabs {
	margin: 0;
}

@media (max-width: 899px) {
	body.nsi-styles.home .wp-block-button a {
		font-size: 16px !important;
		white-space: nowrap;
	}
}

/* Flex layout applies at wider screens (1100px and up) */
@media screen and (min-width: 1100px) {
	body.nsi-styles #ast-cart-wrapper {
		align-items: flex-start;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	body.nsi-styles #ast-cart-wrapper .ast-cart-non-sticky {
		width: 68%;
	}

	body.nsi-styles #ast-cart-wrapper .cart-collaterals {
		width: 30%;
	}

	body.nsi-styles #ast-cart-wrapper .cart-collaterals .cart_totals {
		width: 100%;
	}
}

/* Stack below 1100px */
@media screen and (max-width: 1099px) {
	body.nsi-styles #ast-cart-wrapper {
		display: block;
	}

	body.nsi-styles #ast-cart-wrapper .ast-cart-non-sticky,
	body.nsi-styles #ast-cart-wrapper .cart-collaterals {
		margin-bottom: 30px; /* optional spacing */
		width: 100% !important;
	}
}


/* End Page template styling */


/* LearnDash styling */

body.nsi-styles {
	--ld-color-brand-primary: #a71e14; /* Your red base color */
	--ld-color-system-dark: #61120c; /* deep crimson */
}

body.nsi-styles .ld-course-list-items.row {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
}

@media (min-width: 1240px) {
	body.nsi-styles .ld-course-list-items.row {
		margin-left: -15px;
		margin-right: -15px;
	}
}

body.nsi-styles .ld_course_grid {
	display: flex;
	flex: 1 0 25%; /* 4 items per row; adjust if needed */
	height: 370px;
}

body.nsi-styles .ld_course_grid article.course {
	display: flex;
	flex-direction: column;
	width: 100%;
}

body.nsi-styles .ld-course-list-items .ld_course_grid .thumbnail.course img {
	height: 150px;
	object-fit: cover;
	width: 100%;
}

body.nsi-styles .ld-course-list-items .ld_course_grid .thumbnail.course {
	display: flex;
	flex-direction: column;
}

body.nsi-styles .ld-course-list-items .ld_course_grid .thumbnail.course .caption {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: space-between;
}

body.nsi-styles .ld-course-list-items .ld_course_grid .thumbnail.course .entry-title {
	margin-bottom: 1em; /* Optional: add space below title */
}

body.nsi-styles .ld-course-list-items .ld_course_grid .thumbnail.course .ld_course_grid_button {
	margin-top: auto;
}

body.nsi-styles #ld-tab-panel-materials p a {
	display: block;
	margin-bottom: 0.5em; /* optional spacing */
}

body.nsi-styles .ast-single-entry-banner {
	background: var(--ast-title-layout-bg);
	-js-display: flex;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	text-align: center;
}

body.nsi-styles .ast-single-entry-banner[data-post-type="sfwd-quiz"] {
	justify-content: center;
	min-height: 100px;
	padding-bottom: 1em;
	padding-top: 1em;
	width: 100%;
}

body.nsi-styles .ast-single-entry-banner[data-post-type="sfwd-quiz"] .ast-container > *:not(:last-child), .ast-single-entry-banner[data-post-type="sfwd-topic"] .read-more {
	margin-bottom: 10px;
}

body.nsi-styles .ast-single-entry-banner[data-post-type="sfwd-quiz"] .ast-container {
	width: 100%;
}

body.nsi-styles .ast-single-entry-banner[data-post-type="sfwd-quiz"] .entry-title {
	font-size: 32px;
	font-weight: 600;
}

body.nsi-styles .ast-single-entry-banner[data-post-type="sfwd-quiz"] > .entry-title {
	margin-bottom: 0;
}

body.nsi-styles .ast-single-entry-banner .read-more .ast-button {
	display: inline-block;
	margin-top: 0.5em;
}

body.nsi-styles .ast-single-entry-banner[data-post-type="sfwd-quiz"] .ast-container > *:last-child {
	margin-bottom: 0;
}

@media (min-width: 922px) {
	body.nsi-styles .ast-narrow-container .ast-single-entry-banner[data-post-type="sfwd-quiz"] .ast-container {
		max-width: 750px;
		padding-left: 0;
		padding-right: 0;
	}
}

@media (max-width: 921px) {
	body.nsi-styles .ast-single-entry-banner[data-post-type="sfwd-quiz"] .ast-container {
		padding-left: 0;
		padding-right: 0;
	}
}

body.nsi-styles .ld-quiz-status {
	display: none;
}

body.nsi-styles .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) label.is-selected, .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) label:focus-within {
	border-color: #a71e14
}

body.nsi-styles .wpProQuiz_questionInput[type="checkbox"]:checked,
body.nsi-styles .wpProQuiz_questionInput[type="radio"]:checked {
	accent-color: #a71e14; /* or any color you want */
}

body.nsi-styles #primary .wpProQuiz_content .wpProQuiz_time_limit:before {
	width: auto;
}

body.nsi-styles .wpProQuiz_question_text {
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3em;
}

body.nsi-styles #primary .wpProQuiz_content .wpProQuiz_questionList .wpProQuiz_questionListItem {
	padding: 0;
}

body.nsi-styles .wpProQuiz_content input[type="button"] {
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	padding: 10px 20px;
	transition: background-color 0.3s ease;
}

body.nsi-styles #primary .wpProQuiz_content .wpProQuiz_questionList .wpProQuiz_questionListItem input {
	margin-right: 5px;
}

body.nsi-styles #primary .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) label {
	align-items: center; /* vertically center input and text */
	display: flex;
	font-size: 18px;
	gap: 0.75em; /* space between input and text */
	line-height: 1.4;
}

body.nsi-styles #primary .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem input[type="radio"] {
	margin: 0;
	transform: translateY(0px); /* fine-tune alignment if needed */
}

body.nsi-styles #primary .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) label.is-selected {
	border-color: #a71e14;
}

body.nsi-styles #primary .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) label:focus-within {
	border-color: #a71e14;
}

body.nsi-styles #primary .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item).wpProQuiz_answerCorrect label {
	background: #eef7f1;
	border-color: #2f8351;
}

body.nsi-styles #primary .learndash-wrapper .wpProQuiz_content.ld-quiz-result-failed legend p {
	margin-bottom: 20px;
	margin-top: 40px;
}

body.nsi-styles #primary .ldgr-group-single .ldgr-top-banner {
	background-color: rgba(167, 30, 20, 0.04); /* Very subtle */
}

body.nsi-styles #primary .ldgr-lightbox .ldgr-popup {
	border-radius: 10px;
}

body.nsi-styles #primary .is-layout-constrained .ldgr-lightbox {
	margin-block-end: 0;
	margin-block-start: 0;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 100vw;
}


body.nsi-styles #primary .ldgr-group-single .ldgr-group-courses h3 {
	font-size: 24px;
}

body.nsi-styles #primary #tab-2 table.dataTable tr {
	line-height: 30px;
}

body.nsi-styles #primary table#wdm_ldgr_group_report th {
	background-color: rgba(167, 30, 20, 0.04);
}

body.nsi-styles #primary table#wdm_ldgr_group_report th.details-control {
	width: 5% !important;
}

body.nsi-styles #primary .ldgr-bg-color {
	background-color: #a71e14 !important;
}

body.nsi-styles #primary .ldgr-color,
body.nsi-styles #primary ul.tabs li.current a,
body.nsi-styles #primary .ldgr-tabs li.current {
	color: #a71e14 !important;
}

body.nsi-styles #primary #wdm_groups_tab .tabs .current a {
	border-bottom: 4px solid #a71e14
}

body.nsi-styles #primary .ldgr-tabs li.current {
	border-bottom: 3px solid #a71e14
}

body.nsi-styles #primary .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.nsi-styles #primary .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: #a71e14;
}

body.nsi-styles #primary .dataTables_wrapper .dataTables_paginate .paginate_button {
	line-height: 1;
	padding: 8px 11px;
}

body.nsi-styles #primary .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: none;
	border: 1px solid #a71e14;
	color: #333 !important;
}

body.nsi-styles #primary .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	color: #fff !important;
}

body.nsi-styles #primary table#wdm_group tr:hover,
body.nsi-styles #primary table#ldgr-group-code-table tr:hover,
body.nsi-styles .ldgr-group-listing .ldgr-group-subgroups {
	background-color: rgba(167, 30, 20, 0.04); /* Very subtle */
	border-left: 0;
	border-right: 0;
}

body.nsi-styles #primary #tab-2 table.dataTable tbody > tr.odd:hover,
body.nsi-styles #primary #tab-2 table.dataTable tbody > tr.even:hover {
	background-color: rgba(167, 30, 20, 0.04); /* Very subtle */
}

body.nsi-styles #primary #wdm_ldgr_group_report_wrapper select#wdm_ldgr_course_id {
	width: 400px;
}

body.nsi-styles #primary #wdm_group_wrapper #wdm_group_length select,
body.nsi-styles #primary #wdm_ldgr_group_report_wrapper .dataTables_length select {
	width: 70px;
}

body.nsi-styles #primary #wdm_groups_tab #tab-2 {
	padding: 0
}

body.nsi-styles .ldgr-actions a {
	align-items: center; /* aligns to the bottom of text */
	display: inline-flex;
	height: 20px;
}

body.nsi-styles .ldgr-group-listing .list .ldgr-main-group-content {
	padding-right: 0;
}

body.nsi-styles .ldgr-group-listing .list .ldgr-group-subgroups .ldgr-sub-group-item {
	width: auto;
	height: auto;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 15px;
	padding-bottom: 15px;
}

body.nsi-styles .ldgr-group-listing .list .gr-title {
	color: #000;
	font-size: 32px;
	font-weight: 400;
}

body.nsi-styles .ldgr-group-listing .list .gr-left,
body.nsi-styles .ldgr-group-listing .list .ldgr-group-subgroups .ldgr-sub-group-label,
body.nsi-styles .ldgr-group-listing .list .ldgr-group-subgroups .sub-group-u-left,
body.nsi-styles .ldgr-create-new-sg .ldgr-field label,
body.nsi-styles .ldgr-edit-sg .ldgr-field label,
body.nsi-styles .ldgr-group-code-setting .ldgr-field label,
body.nsi-styles .ldgr-cabgc .ldgr-field label {
	color: #444;
	font-size: 15px;
	font-weight: 700;
	flex: none;
}

body.nsi-styles .ldgr-field .cnsg-name,
body.nsi-styles .ldgr-field .ensg-name {
	width: auto;
}

body.nsi-styles .ldgr-search-list-wrap {
	max-width: none;
}

body.nsi-styles .list .ldgr-group-subgroups .ldgr-sub-group-item .sub-group-name {
	color: #444;
	font-size: 18px;
	flex: none;
}

body.nsi-styles #wdm_groups_tab ul.select2-selection__rendered {
	min-height: 100px;
	display: inline-block;
}

body.nsi-styles .select2-selection--multiple .select2-selection__choice {
	padding: 10px;
}

body.nsi-styles .ldgr-btn.edit-sub-group-submit,
body.nsi-styles .update-group-details,
body.nsi-styles .ldgr-btn {
	border-radius: 5px;
}

body.nsi-styles .ldgr-btn:focus {
	color: #a71e14;
}

#wdm_ldgr_group_report_processing {
	background: var(--wp--preset--gradient--nsi-gradient) !important;
	height: 80px;
}

body.nsi-styles .ldgr-edit-group {
	cursor: pointer;
}

body.nsi-styles #primary .uo_loginForm #ult-forgot-password-submit-btn,
body.nsi-styles #primary .uo_loginForm #ult-login-submit {
	background: #a71e14;
}

body.nsi-styles #primary .uo_loginForm .ult-form__footer a {
	color: #a71e14;
}

body.nsi-styles .review-top-section .review-top-col:nth-child(1) {
	padding-right: 10px;
}

body.nsi-styles .review-top-section .review-top-col:nth-child(2) {
	min-width: 150px;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 25px;
	padding-bottom: 25px;
}

/* END LearnDash styling */

/* Gravity Forms styling */

body.nsi-styles .gform_wrapper .gform_button.button {
	background-color: #a71e14 !important;
	border-color: #a71e14 !important;
	color: #fff !important;
}

/* Increase label font size */
body.nsi-styles .gform-theme .gfield_label {
	font-size: 1.1rem !important; /* Adjust as needed */
}

/* Increase input and textarea text */
body.nsi-styles .gform-theme input[type="text"],
body.nsi-styles .gform-theme input[type="email"],
body.nsi-styles .gform-theme input[type="tel"],
body.nsi-styles .gform-theme textarea {
	font-size: 1rem !important;
}

/* Increase description/help text */
body.nsi-styles .gform-theme .gfield_description {
	color: #555; /* Optional: make more readable */
	font-size: 0.95rem !important;
}

/* Increase error message font size */
body.nsi-styles .gform-theme .gform_validation_message,
body.nsi-styles .gform-theme .validation_message {
	color: #a71e14; /* Optional: match your brand red */
	font-size: 0.95rem !important;
}

/* Increase submit button font */
body.nsi-styles .gform-theme .gform_button {
	font-size: 1.1rem !important;
	padding: 0.75em 1.5em;
}

/* === Added: Increase validation error summary font sizes and styles === */
body.nsi-styles .gform-theme .gform_validation_errors {
	font-size: 1rem !important;
}

body.nsi-styles .gform-theme .gform_submission_error {
	font-size: 1.1rem !important;
	font-weight: 600 !important;
	margin-bottom: 0.5em !important;
}

body.nsi-styles .gform-theme .gform_validation_error_link {
	color: #a71e14 !important;
	font-size: 1rem !important;
	text-decoration: underline !important;
}


/* END Gravity Forms styling */