/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Stars rating field (Elementor radio group) */
h1,h2,h3,h4,h5,h6 {
	overflow-wrap: break-word;
}
.elementor-field-group-stars .elementor-field-subgroup {
	display: inline-flex !important;
	gap: 4px;
	align-items: center;
	flex-direction: row;
	flex-wrap: nowrap;
}

.elementor-field-group-stars .elementor-field-option {
	position: relative;
	display: inline-flex;
}

/* Visually hide radio inputs but keep them accessible */
.elementor-field-group-stars .elementor-field-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

/* Style the labels as stars */
.elementor-field-group-stars .elementor-field-option label {
	font-size: 0; /* Hide the text '1', '2', etc. */
	cursor: pointer;
	padding: 0 2px;
	transition: transform 0.15s ease, color 0.15s ease;
}

.elementor-field-group-stars .elementor-field-option label::before {
	content: '★';
	font-size: 32px;
	color: #e0e0e0; /* Default empty star color */
}

.elementor-field-group-stars .elementor-field-option label.is-on::before {
	color: #FFD700; /* Gold/Yellow color */
}

.elementor-field-group-stars .elementor-field-option label:hover {
	transform: scale(1.05);
}

.elementor-field-group-stars .elementor-field-option input[type="radio"]:focus + label {
	text-shadow: 0 4px 8px #b59902;
}

/* Loop grid filter UI */
.loop-grid-filter {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas:
		"search"
		"terms"
		"count";
	gap: 12px;
	align-items: end;
	margin-bottom: 16px;
}

.loop-grid-filter__search,
.loop-grid-filter__terms {
	display: block;
	position: relative;
}
label.loop-grid-filter__search svg {
	position: absolute;
	right: 16px;
	top: 20px;
}
.loop-grid-filter__search {
	grid-area: search;
	position: relative;
}

.loop-grid-filter__terms {
	grid-area: terms;
	position: relative;
}

.loop-grid-filter__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.loop-grid-filter__icon {
	position: absolute;
	display: block;
	width: 16px;
	height: 16px;
	pointer-events: none;
	z-index: 2;
	top: 17px;
	left: 16px;
}
span.loop-grid-filter__arrow {
	position: absolute;
	display: block;
	right: 16px;
	top: 16px;
}
.loop-grid-filter__input:hover,
.loop-grid-filter__input:focus,
.loop-grid-filter__dropdown-toggle:hover,
.loop-grid-filter__dropdown-toggle:focus {
	border-color: var(--e-global-color-primary)!important;
	font-weight: 500!important;
	background-color: transparent!important;
	color: black!important;
}

.loop-grid-filter__dropdown {
	position: relative;
}

.loop-grid-filter__dropdown-toggle {
	text-align: left;
	cursor: pointer;
	appearance: none;
}

.loop-grid-filter__dropdown-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	display: none;
	padding: 6px;
	border: 0.5px solid #706F6F;
	border-radius: 8px;
	background-color: #fff;
	z-index: 20;
	max-height: 280px;
	overflow-y: auto;
}

.loop-grid-filter__dropdown.is-open .loop-grid-filter__dropdown-menu {
	display: block;
}

.loop-grid-filter__option {
	display: block;
	width: 100%;
	padding: 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-align: left;
	font: inherit;
	cursor: pointer;
}

.loop-grid-filter__option.is-selected {
	background: var(--e-global-color-eb3a00d);
}

.loop-grid-filter__dropdown.is-placeholder .loop-grid-filter__dropdown-toggle {
	color: #706F6F;
}

.loop-grid-filter__select {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

label.loop-grid-filter__terms button {
	font-family: var(--e-global-typography-914d921-font-family), Sans-serif;
	font-size: var(--e-global-typography-914d921-font-size);
	font-weight: var(--e-global-typography-914d921-font-weight);
	font-style: var(--e-global-typography-914d921-font-style);
	line-height: var(--e-global-typography-914d921-line-height);
	color: var(--e-global-color-text);
	accent-color: var(--e-global-color-accent);
	border: none;
	border-radius: 8px;
	padding: 10px;
	background-color: transparent;
	margin-bottom: 4px;
}
.loop-grid-filter__terms .loop-grid-filter__input,
.loop-grid-filter__terms .loop-grid-filter__dropdown-toggle {
	width: 100%;
	min-width: 0;
	padding: 16px 16px 16px 40px;
	border: 0.5px solid #706F6F;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: none;
	font-weight: 400;
	transition: border-color 0.2s ease, font-weight 0.2s ease;
	margin-bottom: 0;
}
.loop-grid-filter__count {
	grid-area: count;
	justify-self: start;
	font-size: 16px;
}

.loop-grid-filter__empty {
	padding: 16px;
	text-align: center;
	opacity: 0.7;
}

.loop-grid-filter.is-loading .loop-grid-filter__count::after {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 8px;
	border: 2px solid #999;
	border-top-color: transparent;
	border-radius: 50%;
	animation: loop-grid-filter-spin 0.7s linear infinite;
	vertical-align: middle;
}

.elementor-loop-container.is-loading {
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

@keyframes loop-grid-filter-spin {
	to {
		transform: rotate(360deg);
	}
}

/* WPML language switcher codes */
.wpml-ls-code {
	display: inline-block;
	font-size: 20px;
	font-weight: 400;
	line-height: 32px;
	text-transform: uppercase;
	color: var( --e-global-color-text )!important;
}
.article_important-brief ul,
.article_healthy ul,
.article_harmful ul {
	padding-left: 52px;
	list-style-type:none;
	display: flex;
    flex-direction: column;
    gap: 24px;
}
.article_facts ul,
.article_myths ul {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: 80px;
	row-gap: 24px;
	padding-left: 52px;
	list-style-type:none;
}
.article_important-brief li,
.article_facts li,
.article_myths li,
.article_healthy li,
.article_harmful li {
	position: relative;
	&::marker {
		content: none;
	}
}
.article_important-brief li::before,
.article_facts li::before,
.article_myths li::before,
.article_healthy li::before,
.article_harmful li::before
{
	content: '';
	width: 32px;
	height: 32px;
	background-size: contain!important;
	background: url(/wp-content/uploads/2026/02/Info.png) center;
	display: block;
	position: absolute;
	top: 2px;
	left: -52px;
}
.article_facts li::before,
.article_myths li::before {
	background: url(/wp-content/uploads/2026/02/LightbulbFilament.svg) center;
}
.article_healthy li::before {
	background: url(/wp-content/uploads/2026/02/CheckCircle.svg) center;
}
.article_harmful li::before {
	background: url(/wp-content/uploads/2026/02/XCircle.svg) center;
}
@media (max-width: 1024px) {
	#mainNavigation .elementor-nav-menu--dropdown.elementor-nav-menu__container {
		position: absolute;
		left: 0;
		width: 100%;
		top: 100px;
		border-radius: 16px;
	}
	#mainNavigation, .mainNavigationContainer {
		position: static;
	}
}
@media (min-width: 1025px) {
	.loop-grid-filter {
		grid-template-columns: 2fr 1fr;
		grid-template-areas:
			"search terms"
			"count count";
	}
	#ArticleRatingForm .elementor-field-group:not(.elementor-field-type-submit) {
		margin-bottom: 0;
	}
	.article_facts ul,
		.article_myths ul {
			grid-template-columns: 1fr 1fr;
		}
}

/* Print to PDF button */
.hello-print-pdf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border: 1px solid var(--e-global-color-primary);
	border-radius: 8px;
	background: var(--e-global-color-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hello-print-pdf-button:hover,
.hello-print-pdf-button:focus {
	background: transparent;
	color: var(--e-global-color-primary);
	outline: none;
}

@page {
	size: auto;
	margin: 14mm;
}

@media print {
	html,
	body {
		background: #fff !important;
		color: #000 !important;
		font-size: 11pt;
		line-height: 1.45;
	}

	.hello-print-pdf-button,
	[data-print-page],
	.no-print,
	.elementor-location-header,
	.elementor-location-footer,
	.site-header,
	.site-footer,
	header,
	footer,
	nav,
	aside,
	.loop-grid-filter,
	.wpml-ls {
		display: none !important;
	}

	#page,
	.site,
	#content,
	main,
	article,
	.elementor,
	.elementor-section,
	.elementor-container,
	.e-con,
	.e-con-inner {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		border: 0 !important;
	}

	img,
	svg,
	video {
		max-width: 100% !important;
		height: auto !important;
		break-inside: avoid;
		page-break-inside: avoid;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		color: #000 !important;
		break-after: avoid-page;
		page-break-after: avoid;
	}

	p,
	li,
	blockquote,
	table,
	pre,
	figure {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	a,
	a:visited {
		color: #000 !important;
		text-decoration: underline;
	}
}
