/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/**
 * Typography.
 */
 
.allg-h2,
.allg-h2 h1,
.allg-h2 h2,
.allg-h2 h3,
.allg-h2 h4,
.allg-h2 h5,
.allg-h2 h6 {
	font-size: 55px !important;
	line-height: 65px !important;
}

.allg-h3,
.allg-h3 h1,
.allg-h3 h2,
.allg-h3 h3,
.allg-h3 h4,
.allg-h3 h5,
.allg-h3 h6,
.allg-h3 p {
	font-size: 26px !important;
	line-height: 30px !important;
}

.allg-p,
.allg-p p {
	font-size: 18px !important;
	line-height: 25px !important;
}

@media (max-width: 768px) {
	.allg-h2,
	.allg-h2 h1,
	.allg-h2 h2,
	.allg-h2 h3,
	.allg-h2 h4,
	.allg-h2 h5,
	.allg-h2 h6 {
		font-size: 30px !important;
		line-height: 35px !important;
	}

	.allg-h3,
	.allg-h3 h1,
	.allg-h3 h2,
	.allg-h3 h3,
	.allg-h3 h4,
	.allg-h3 h5,
	.allg-h3 h6,
	.allg-h3 p {
		font-size: 20px !important;
		line-height: 26px !important;
	}

	.allg-p,
	.allg-p p {
		font-size: 14px !important;
		line-height: 18px !important;
	}
}

/* 
 * Uitlity classes.
 */
.m-x-auto {
	margin-left: auto !important;
	margin-right: auto !important;
}

.allg-full-container {
	margin: 0 5px!important;
}


/**
 * Mega menu.
 */

.allg-mega-menu {

}

.allg-mega-menu > ul {
	width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    position: fixed !important;
    margin-top: 25px !important;
    left: 0 !important;
    right: 0 !important;
    top: 82px !important;
    z-index: 999999 !important;
	padding: 40px !important;

	/* Grid of 3 columns */
	display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
}

.allg-mega-menu > ul > li {
	padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 10px !important;
}

.allg-mega-menu__item {

}

.allg-mega-menu__item img {

}

.allg-mega-menu__item span {

}



/**
 * AllG Accordion.
 */
.allg-accordion {
    --text: #464fa1;
    --bg-color: #E8ECFE;
    --bg-color-active: #B7C2FB;
    --border-radius: 10px;

	max-width: 620px;
	color: var(--accordion-text)!important;
}

.allg-accordion__item {
	margin-bottom: 10px;
    background: var(--bg-color);
    border-radius: 10px;
}

.allg-accordion__item input[type="radio"] {
	display: none;
}
  
.allg-accordion__item input[type="radio"]:checked + .allg-accordion__header {
	background: var(--bg-color-active);
	border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.allg-accordion__item input[type="radio"]:checked + .allg-accordion__header::after {
	content: "×"; /* close icon */
	font-size: 40px;
	font-weight:200 !important;
	font-family: 'Outfit';
}

.allg-accordion__item input[type="radio"]:checked + .allg-accordion__header + .allg-accordion__body {
	max-height: 200px; /* adjust if you need taller panels */
	padding-top: 0;
	padding-bottom: 18px;
}

.allg-accordion__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	background: var(--bg-color);
	border-radius: var(--border-radius);
	cursor: pointer;
	font-size: 26px;
	font-weight: 400;
	position: relative;
	transition: background 0.2s ease, border-radius 0.2s ease;
	color: var(--accordion-text)!important;
}

.allg-accordion__header::after {
	content: "+";
	font-size: 40px;
	line-height: 1;
	margin-left: 16px;
	color: var(--text);
	font-weight:200 !important;
	font-family: 'Outfit';
}

.allg-accordion__body {
	max-height: 0;
	overflow: hidden;
	padding: 0 20px;
	background: var(--bg-color-active);
	border-radius: 0 0 var(--border-radius) var(--border-radius);
	transition: max-height 0.25s ease, padding-top 0.25s ease, padding-bottom 0.25s ease;
	color: var(--accordion-text);
}

.allg-accordion__body p {
	margin: 0 !important;
	line-height: 1.25;
	padding-right: 4em;
}

@media (max-width: 768px) {
	.allg-accordion__header {
		font-size: 18px;
		padding: 6px 12px;
	}

	.allg-accordion__body {
		padding-left: 12px;
		padding-right: 12px;
	}
	.allg-accordion__body p {
		margin: 0 0 10px;
		line-height: 1.25;
		padding-right: 10px;
		font-size: 14px;
	}
}

/**
 * AllG FAQs.
 */
.allg-faq {
	--faq-bg: #f8fafc;
	--faq-card-bg: #ffffff;
	--faq-text-primary: #3d4694;
	--faq-text-secondary: #5a65a3;
	--faq-border-radius: 8px;
	--faq-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	--faq-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Hidden checkbox for state management */
.allg-faq__state {
	display: none;
}

.allg-faq__item {
	background-color: var(--faq-card-bg);
	border-radius: var(--faq-border-radius);
	box-shadow: var(--faq-shadow);
	overflow: hidden;
	transition: var(--faq-transition);
}

.allg-faq__header {
	width: 100%;
	padding: 24px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	text-align: left;
	user-select: none;
	box-sizing: border-box;
}

.allg-faq__title {
	margin: 0;
	font-weight: 500 !important;
	color: var(--faq-text-primary);
	padding-right: 20px;
}

/* Icon Container */
.allg-faq__icon {
	position: relative;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	display: block;
}

/* Common styles for the plus/minus bars */
.allg-faq__icon::before,
.allg-faq__icon::after {
	content: '';
	position: absolute;
	background-color: var(--faq-text-primary);
	transition: var(--faq-transition);
}

/* Horizontal bar (always visible) */
.allg-faq__icon::before {
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	transform: translateY(-50%);
}

/* Vertical bar (makes it a plus, disappears on check) */
.allg-faq__icon::after {
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	transform: translateX(-50%);
}

.allg-faq__content {
	max-height: 0;
	overflow: hidden;
	transition: var(--faq-transition);
	padding: 0 32px;
}

.allg-faq__text-wrapper {
	padding-bottom: 32px;
	color: var(--faq-text-secondary);
	line-height: 1.6;
	font-size: 1rem;
}

.allg-faq__paragraph {
	font-size: 18px !important;
	margin-bottom: 16px;
}

.allg-faq__paragraph:last-child {
	margin-bottom: 0;
}

/* CSS Logic: Open content when checkbox is checked */
.allg-faq__state:checked ~ .allg-faq__content {
	max-height: 800px; /* Increased to accommodate content */
}

/* CSS Logic: Turn Plus into Minus when checkbox is checked */
.allg-faq__state:checked ~ .allg-faq__header .allg-faq__icon::after {
	transform: translateX(-50%) rotate(90deg);
	opacity: 0;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
	.allg-faq__header {
		padding: 20px;
	}
	.allg-faq__content {
		padding: 0 20px;
	}
	.allg-faq__title {
		font-size: 20px !important;
	}

	.allg-faq__paragraph {
		font-size: 14px !important;
	}
}

/**
 *AllG Features Slider
 */
/* Main Container */
.allg-feature {
	--allg-primary: #8a99e1;
	--allg-dark: #4a58a0;
	--allg-bg: #1a224f;
	--allg-text-light: #ffffff;
	--allg-text-dark: #464FA1;

	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;

	background-color: #fff;
	border-radius: 12px;
	overflow: hidden;
}

/* Element: Visual Container (Replaces absolute background) */
.allg-feature__visual {
	display: grid;
	grid-template-areas: "stack";
	width: 100%;
	height: 480px;
	border-radius: 12px;
	background-color: var(--allg-bg);
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Element: Background Image (Stacked using Grid) */
.allg-feature__bg {
	grid-area: stack;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
	position: relative;
	overflow: hidden;
}

/* Overlay */
.allg-feature__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(26, 34, 79, 0.4);
}

/* Element: Navigation Container */
.allg-feature__nav-wrapper {
	grid-area: stack;
	align-self: end;
	display: flex;
	justify-content: center;
	z-index: 5;
	margin-bottom: -3%;
}

.allg-feature__nav {
	background-color: var(--allg-dark);
	display: flex;
	border-radius: 10px;
	padding: 4px;
	width: 720px;

	background-image: url(https://www.allg.com/newsroom/img-2tgertergerg.png);
	background-size: cover;
	background-repeat: no-repeat;
}

.allg-feature__label {
	flex: 1;
	padding: 20px 15px;
	color: var(--allg-text-light);
	text-align: center;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.3s;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1.2;
}

/* Element: Text Area (Responsive naturally) */
.allg-feature__content {
	display: grid;
	grid-template-areas: "text-stack";
	width: 80%;
    margin: 70px auto 70px auto;
	min-height: 120px;
	padding: 0;	
}

.allg-feature__text {
	grid-area: text-stack;
	opacity: 0;
	visibility: hidden;
	text-align: center;
	color: var(--allg-text-dark);
	transition: opacity 0.5s ease, transform 0.5s ease;
	transform: translateY(10px);
	margin: 0 !important;
	font-family: 'Outfit';
	font-size: 26px;
	font-weight: 500;
	line-height: 1.4;
}

/* Logic: Checked States */
.allg-feature__input { display: none; }

#tab1-232:checked ~ .allg-feature__visual .allg-feature__bg--1,
#tab2-342:checked ~ .allg-feature__visual .allg-feature__bg--2,
#tab3-453:checked ~ .allg-feature__visual .allg-feature__bg--3,
#tab4-564:checked ~ .allg-feature__visual .allg-feature__bg--4 {
	opacity: 1;
}

#tab1-232:checked ~ .allg-feature__visual .allg-feature__nav [for="tab1-232"],
#tab2-342:checked ~ .allg-feature__visual .allg-feature__nav [for="tab2-342"],
#tab3-453:checked ~ .allg-feature__visual .allg-feature__nav [for="tab3-453"],
#tab4-564:checked ~ .allg-feature__visual .allg-feature__nav [for="tab4-564"] {
	background-color: var(--allg-primary);
}

#tab1-232:checked ~ .allg-feature__content .allg-feature__text--1,
#tab2-342:checked ~ .allg-feature__content .allg-feature__text--2,
#tab3-453:checked ~ .allg-feature__content .allg-feature__text--3,
#tab4-564:checked ~ .allg-feature__content .allg-feature__text--4 {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
	.allg-feature__visual { height: 300px; }

	.allg-feature__nav-wrapper {
		margin-bottom: -30px;
	}
	
	.allg-feature__nav {
		width: 90%;
	}

	.allg-feature__label {
		font-size: 11px;
		padding: 10px 5px;
	}

	.allg-feature__text {
		font-size: 14px;
		line-height: 18px;
		text-align: center;
		padding: 0 10px;
	}

	.allg-feature__content {
		width: 94%;
    	margin: 40px auto 40px auto;
	}
}

/**
 * AllG Slider.
 */
.allg-slider {
	margin-left: -20px;
	width: 100vw;
}

.allg-slider__btns {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 30px;
	margin-left: 20px;
}

.allg-slider__prebtn,
.allg-slider__nextbtn {
	--box: 44px;
	width: var(--box);
	height: var(--box);
	border-radius: 999px;
	border: none;
	cursor: pointer;
	background: #464fa1;
	color: #fff;
}

.allg-slider__prebtn svg,
.allg-slider__nextbtn svg {
	--box: 20px;
    width: var(--box);
    height: var(--box);
}

@media (max-width: 768px) {
	.allg-slider {
		width: 100%;
		margin-left: -5px;
	}
	
	.allg-slider__prebtn,
	.allg-slider__nextbtn {
		--box: 33px;
	}

	.allg-slider__btns {
		gap: 10px;
		margin-top: 20px;
		margin-left: 0;
	}

	.allg-slider__prebtn svg,
	.allg-slider__nextbtn svg {
		--box: 16px;
		margin-top: 4px;
	}
}


/**
 * Lactoferrin slider.
 */
.lactoferrin-slider {
	width: 100vw;
}

.lactoferrin-slider__slide {
	background-color: #464FA1;
	border-radius: 10px;
	overflow: hidden;
	margin: 0 20px;
}

.lactoferrin-slider__image {
	width: 100%;
	height: 324px;
	width: 100%;
	object-fit: cover;
}

.lactoferrin-slider__content {
}

.lactoferrin-slider__content h3,
.lactoferrin-slider__content p {
	padding: 20px 30px;
	margin: 0;	
	color: #fff !important;
}

.lactoferrin-slider__content h3 {
	font-weight: 500;
	background-color: #5862B4;
}

.lactoferrin-slider__content p {
	font-size: 16px;
}

/* Ensure card fills the slide height for a uniform look */
.lactoferrin-slider .slick-track {
	display: flex !important;
}
.lactoferrin-slider .slick-slide {
	height: auto !important;
}
.lactoferrin-slider .slick-slide > div {
	height: 100%;
}

@media (max-width: 768px) {
	.lactoferrin-slider .slick-list {
		padding: 0 25% 0 0 !important;;
	}

	.lactoferrin-slider__slide {
		margin: 0 5px;
	}

	.lactoferrin-slider__image {
		width: 100%;
		height: 200px;
		width: 100%;
		object-fit: cover;
	}

	.lactoferrin-slider__content h3,
	.lactoferrin-slider__content p {
		padding: 10px 15px;
	}

	.lactoferrin-slider__content h3 {
		font-size: 16px !important;
	}

	.lactoferrin-slider__content p {
		font-size: 12px;
	}
}

/* All G References */
.allg-references {
	background-color: transparent;
}

.allg-references details {
	border: none;
}

.allg-references summary {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding-bottom: 12px;
	border-bottom: 1px solid #cbd5e0;
	list-style: none;
	transition: opacity 0.2s ease;
}

/* Hide default arrow markers */
.allg-references summary::-webkit-details-marker {
	display: none;
}

.allg-references summary:hover {
	opacity: 0.8;
}

.allg-references h2 {
	font-size: 18px !important;
	color: #464FA1;
	margin: 0;
	margin-right: 8px;
	padding: 0;
}

/* Icon logic using structural selectors */
.allg-references .icon-wrapper {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #464FA1;
}

.allg-references .icon--up {
	display: none;
}

.allg-references details[open] .icon--down {
	display: none;
}

.allg-references details[open] .icon--up {
	display: block;
}

.allg-references ol {
	margin-top: 24px;
	padding: 0;
	margin-left: 24px;
	list-style-type: none;
	counter-reset: reference-counter;
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

.allg-references li {
	position: relative;
	margin-bottom: 16px;
	font-size: 14px !important;
	color: #464FA1;
	align-items: flex-start;
}

.allg-references li::before {
	counter-increment: reference-counter;
	content: counter(reference-counter) ". ";
	margin-right: 8px;
	flex-shrink: 0;
	font-weight: 500;
	position: absolute;
    left: -24px;
}

.allg-references a {
	color: #464FA1;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.2s;
}

@media (max-width: 768px) {
	/* body { padding: 20px; } */
	.allg-references li { font-size: 0.8rem; }
}