/*
 * WordPress integration layer.
 *
 * The five campaign stylesheets are kept byte-identical to the original build so
 * they can be re-exported from the design source at any time. Everything needed
 * to make that CSS work inside WordPress lives here instead.
 *
 * This file loads last. Where a rule must NOT beat the campaign CSS it is
 * wrapped in :where(), which contributes zero specificity.
 */

/* ---------------------------------------------------------------------------
   1. Card triggers
   The static build used <div onclick="…">. The theme uses real buttons, so the
   browser's default button styling has to be neutralised - but only where the
   campaign CSS does not already set a value, hence :where().
--------------------------------------------------------------------------- */
:where( button.ijh-video-trigger ) {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	font: inherit;
	color: inherit;
	text-align: inherit;
	cursor: pointer;
}

button.ijh-video-trigger {
	cursor: pointer;
}

/* Buttons must not clip the absolutely positioned play badge. */
button.video-card,
button.video-card-box,
button.expert-opinion-card {
	position: relative;
}

/* The strip play badge was a <div>; as a <span> it needs the flex context back. */
.video-card .play-btn {
	display: flex;
}

/* Card titles become links; keep the original colour and weight. */
.blog-card .blog-content h3 a,
.lastes-blog-section-card .blog-content h3 a,
.blog-content-box .blog-content h3 a {
	color: inherit;
	text-decoration: none;
}

.blog-card .blog-content h3 a:hover,
.blog-card .blog-content h3 a:focus-visible,
.lastes-blog-section-card .blog-content h3 a:hover,
.lastes-blog-section-card .blog-content h3 a:focus-visible {
	text-decoration: underline;
}

/* The featured-video play badge wraps a real link for no-JS users. */
.lastes-blog-section-video-card .play-btn a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* The thumbnail wrapper links must not change the original box model.
   .blog-img is a fixed-height box, so the link fills it. */
.blog-img > a {
	display: block;
	width: 100%;
	height: 100%;
}

/* .lastes-blog-section-card is a flex row whose image is a fixed 240px square:
   the link must size to the image, never stretch, or it would push the text
   column out of the card. */
.lastes-blog-section-card > a {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

/* ---------------------------------------------------------------------------
   2. Navigation
--------------------------------------------------------------------------- */
.header-menu-list {
	list-style: none;
	margin: 0;
	padding-top: 19px;
}

.header-menu-link[aria-current="page"] {
	background: #32ad49;
}

.header-sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	background: rgba(0, 0, 0, 0.35);
}

.header-sub-menu .header-menu-link,
.header-sub-menu a {
	padding-left: 45px;
	font-size: 18px;
}

.header-menu-empty {
	padding: 13px 25px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 17px;
}

.footer-menu-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.footer-menu-list a {
	color: #fff;
	font-size: 15px;
	text-decoration: none;
}

.footer-menu-list a:hover {
	text-decoration: underline;
}

/* Custom logo keeps the height of the original <img>. */
.logo-area .custom-logo-link {
	display: block;
}

.logo-area .custom-logo {
	height: 50px;
	width: auto;
}

@media (max-width: 991px) {

	.logo-area .custom-logo {
		height: 40px;
	}
}

/* ---------------------------------------------------------------------------
   3. Video dialog
--------------------------------------------------------------------------- */
.ijh-video-modal .ijh-video-frame {
	position: relative;
	width: 100%;
}

.ijh-video-modal .ijh-video-iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	background: #000;
}

@supports not (aspect-ratio: 16 / 9) {

	.ijh-video-modal .ijh-video-iframe {
		height: 500px;
	}
}

.ijh-video-modal .close {
	border: 2px solid #fff;
	padding: 0;
	line-height: 1;
}

.ijh-video-modal .ijh-video-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
}

.ijh-video-modal .ijh-video-nav:hover {
	background: #f4b400;
}

.ijh-video-modal .ijh-video-prev {
	left: -60px;
}

.ijh-video-modal .ijh-video-next {
	right: -60px;
}

@media (max-width: 991px) {

	.ijh-video-modal .ijh-video-prev {
		left: 6px;
	}

	.ijh-video-modal .ijh-video-next {
		right: 6px;
	}
}

.ijh-video-modal .ijh-video-caption {
	margin: 12px 0 0;
	color: #fff;
	font-size: 17px;
	line-height: 1.5;
	text-align: center;
}

.ijh-modal-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
   4. Pagination
--------------------------------------------------------------------------- */
.pagination-container {
	grid-column: 1 / -1;
	margin-top: 45px;
	display: flex;
	justify-content: end;
}

.pagination-container ul,
.pagination-container .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: end !important;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: none !important;
}

.pagination-container .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 6px;
	background: #fff;
	color: #222;
	font-size: 18px;
	text-decoration: none;
	transition: 0.3s;
	border: 1px solid;
}

.pagination-container .page-numbers:hover,
.pagination-container .page-numbers:focus-visible {
}

.pagination-container .page-numbers.current {
	background: #549707;
	border-color: #549707;
	color: #fff;
}

.pagination-container .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* ---------------------------------------------------------------------------
   5. Page and entry content
--------------------------------------------------------------------------- */
.ijh-page-section {
	padding: 60px 0;
}

/*
 * The content area a template renders only for the page builder. It is never
 * output on the public site, so this just gives the editor a target big enough
 * to drop an element into.
 */
.ijh-page-section--empty {
	padding: 30px 0;
	min-height: 90px;
}

.ijh-entry-content {
	font-size: 19px;
	line-height: 1.9;
	color: #444;
}

.ijh-entry-content > * + * {
	margin-top: 1.1em;
}

.ijh-entry-content h2,
.ijh-entry-content h3,
.ijh-entry-content h4 {
	color: #111;
	line-height: 1.3;
}

.ijh-entry-content h2 {
	font-size: 34px;
}

.ijh-entry-content h3 {
	font-size: 27px;
}

.ijh-entry-content h4 {
	font-size: 22px;
}

.ijh-entry-content ul,
.ijh-entry-content ol {
	padding-left: 1.4em;
}

.ijh-entry-content ul {
	list-style: disc;
}

.ijh-entry-content ol {
	list-style: decimal;
}

.ijh-entry-content li + li {
	margin-top: 0.4em;
}

.ijh-entry-content blockquote {
	margin: 1.4em 0;
	padding: 6px 0 6px 24px;
	border-left: 4px solid #79be2d;
	font-size: 21px;
}

.ijh-entry-content a {
	text-decoration: underline;
}

.ijh-entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.ijh-entry-content th,
.ijh-entry-content td {
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	text-align: left;
}

.ijh-entry-content pre {
	overflow-x: auto;
	padding: 18px;
	background: #f4f5f7;
	border-radius: 8px;
}

.ijh-entry-thumbnail {
	margin: 0 0 30px;
}

.ijh-entry-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.ijh-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-bottom: 24px;
	color: #666;
	font-size: 17px;
}

.ijh-entry-meta i {
	margin-right: 6px;
	color: #79be2d;
}

.ijh-entry-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 5px 14px;
	border-radius: 30px;
	background: rgba(121, 190, 45, 0.14);
	color: #4d7a1a;
	font-size: 16px;
	text-decoration: none;
}

.ijh-post-navigation {
	margin-top: 45px;
	padding-top: 25px;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.ijh-post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-between;
}

.ijh-post-navigation .nav-subtitle {
	display: block;
	color: #79be2d;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.ijh-post-navigation .nav-title {
	font-size: 20px;
}

.ijh-post-navigation a {
	color: #222;
	text-decoration: none;
}

.ijh-post-navigation a:hover .nav-title {
	text-decoration: underline;
}

.ijh-page-links {
	margin-top: 25px;
	font-size: 18px;
}

.ijh-page-links a,
.ijh-page-links > span {
	display: inline-block;
	min-width: 34px;
	margin-right: 6px;
	padding: 4px 8px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 5px;
	text-align: center;
	text-decoration: none;
}

.ijh-edit-link {
	margin-top: 20px;
	font-size: 16px;
}

.ijh-no-results,
.ijh-empty {
	grid-column: 1 / -1;
	padding: 40px 0;
	text-align: center;
	font-size: 19px;
	color: #555;
}

.ijh-no-results h2 {
	margin-bottom: 12px;
	font-size: 30px;
	color: #111;
}

.ijh-search-summary {
	font-size: 19px;
}

.ijh-home-content {
	padding: 40px 0 70px;
}

/* ---------------------------------------------------------------------------
   6. Search form
--------------------------------------------------------------------------- */
.ijh-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.ijh-search-field {
	flex: 1 1 220px;
	height: 46px;
	padding: 0 16px;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	font-family: inherit;
	font-size: 17px;
}

.ijh-search-submit {
	height: 46px;
	padding: 0 26px;
	border: 0;
	border-radius: 6px;
	background: #76bc21;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	cursor: pointer;
}

.ijh-search-submit:hover {
	background: #5f9e18;
}

/* ---------------------------------------------------------------------------
   7. Forms
--------------------------------------------------------------------------- */
.ijh-form-status,
.ijh-form-response {
	margin: 14px 0 0;
	padding: 0;
	font-size: 17px;
	line-height: 1.6;
}

.ijh-form-response:empty {
	display: none;
}

.ijh-form-status.is-success,
.ijh-form-response.is-success {
	color: #2f8f34;
}

.ijh-form-status.is-error,
.ijh-form-response.is-error {
	color: #d24141;
}

.ijh-form-response.is-pending {
	color: #cfcfcf;
}

/* Inside the black form panels the success/error text needs more contrast. */
.form-container .ijh-form-status.is-success,
.form-container .ijh-form-response.is-success {
	color: #a8e063;
}

.form-container .ijh-form-status.is-error,
.form-container .ijh-form-response.is-error {
	color: #ffb0b0;
}

.footer-right .ijh-form-status,
.footer-right .ijh-form-response {
	margin-top: -30px;
	margin-bottom: 24px;
	color: #fff;
}

.ijh-form [type="submit"][disabled] {
	opacity: 0.6;
	cursor: progress;
}

.ijh-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
   8. Comments
--------------------------------------------------------------------------- */
.ijh-comments {
	margin-top: 55px;
	padding-top: 35px;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.ijh-comments-title {
	margin-bottom: 25px;
	font-size: 28px;
}

.ijh-comment-list,
.ijh-comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ijh-comment-list .children {
	margin-left: 28px;
	padding-left: 18px;
	border-left: 2px solid rgba(0, 0, 0, 0.08);
}

.ijh-comment-list li {
	margin-bottom: 26px;
}

.ijh-comment-list .comment-author img {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 10px;
}

.ijh-comment-list .comment-meta {
	margin-bottom: 8px;
	font-size: 16px;
	color: #666;
}

.comment-form p {
	margin-bottom: 16px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 17px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	font-family: inherit;
	font-size: 17px;
}

.comment-form .ijh-comment-submit,
.comment-form [type="submit"] {
	padding: 12px 34px;
	border: 0;
	border-radius: 5px;
	background: #76bc21;
	color: #fff;
	font-family: inherit;
	font-size: 20px;
	cursor: pointer;
}

.comment-form [type="submit"]:hover {
	background: #5f9e18;
}

/* ---------------------------------------------------------------------------
   9. Block editor output
--------------------------------------------------------------------------- */
.ijh-entry-content .alignwide {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.ijh-entry-content .alignfull {
	max-width: none;
}

.ijh-entry-content .wp-block-image img {
	height: auto;
	border-radius: 8px;
}

.ijh-entry-content .wp-block-button__link {
	display: inline-block;
	padding: 14px 34px;
	border-radius: 6px;
	background: #79be2d;
	color: #fff;
	font-size: 20px;
	text-decoration: none;
}

.ijh-entry-content .wp-block-embed iframe {
	max-width: 100%;
}

/* ---------------------------------------------------------------------------
   10. Focus visibility
--------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #f4b400;
	outline-offset: 2px;
}

.header-menu-wrapper a:focus-visible,
.social-icons a:focus-visible,
.footer-social a:focus-visible {
	outline-color: #fff;
}

/* ---------------------------------------------------------------------------
   11. Admin bar
   .header-area is sticky at top:0, which the admin bar would cover.
--------------------------------------------------------------------------- */
.admin-bar .header-area {
	top: 32px;
}

.admin-bar .header-menu-wrapper {
	top: 32px;
	height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {

	.admin-bar .header-area {
		top: 46px;
	}

	.admin-bar .header-menu-wrapper {
		top: 46px;
		height: calc(100vh - 46px);
	}
}

/* ---------------------------------------------------------------------------
   12. No-JavaScript and reduced-motion fallbacks
--------------------------------------------------------------------------- */
@media (scripting: none) {

	/* Tabs cannot switch without JS, so show every panel. */
	.video-tabs {
		display: none;
	}

	.tab-content {
		display: block;
	}

	/* Every FAQ answer is readable. */
	.faq-answer {
		max-height: none;
	}

	.faq-item .icon {
		display: none;
	}

	/* Only the first hero slide would ever be visible; keep it that way but
	   hide the controls that cannot work. */
	.hero-slider .prev,
	.hero-slider .next {
		display: none;
	}

	.reveal-text,
	.reveal-img {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.slide,
	.video-card img,
	.blog-image img,
	.blog-card,
	.image-box img,
	.read-btn,
	.footer-social a,
	.social-icons a,
	.pagination-container .page-numbers {
		transition: none !important;
	}

	.blog-card:hover,
	.footer-social a:hover,
	.social-icons a:hover {
		transform: none !important;
	}

	.video-card:hover img,
	.blog-card-wrapper:hover .blog-image img,
	.blog-card:hover img {
		transform: none !important;
	}

	.tab-content {
		animation: none !important;
	}
}
