
/*
Theme Name: Custom Theme
Theme URI: https://www.zatheo.co.uk
Description: Child Theme For Divi
Author: Mike Dunkling
Author URI: https://www.zatheo.co.uk
Version: 1.0.0
Template: Divi-4
*/
label {
	color: #000 !important;
}

#hidden_dipi_popup_id_2595 {
	display: none;
}

/* Force menu to be full width from the first render */
#main-header .container {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
}

#main-header .logo_container {
	order: 0 !important;
}

#main-header #et-top-navigation {
	order: 1 !important;
	margin-left: auto !important;
}

/* Disable Divi top animations */
.et-waypoint.et_pb_animation_top.et-animated, .et_pb_animation_top.et-animated {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
	transition: none !important;
}

.quiz-header {
	font-family: "Instrument Sans", Helvetica, Arial, Lucida, sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 130%;
}

/* Ensure #mobile-nav is scrollable */
#mobile-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	background-color: white;
	transition: opacity .5s ease-out, visibility .5s ease-out;
	opacity: 0;
	visibility: hidden;
}

#mobile-nav {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: white;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-30px);
	transition: all .3s ease-in-out;
	z-index: 9999;
	pointer-events: none;
}

#mobile-nav.nav-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

#main-header {
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease-in-out;
}

ul.nav-menu-items {
	display: flex;
	align-content: center;
	gap: 40px;
}

ul.nav-menu-items li {
	list-style: none;
}

body.et_pb_page_loaded #main-header {
	opacity: 1;
	visibility: visible;
}

.footer-terms {
	margin-right: 32px;
}

.anchor-fix {
	scroll-margin-top: 180px;
}

.centralise {
	margin: auto;
}

.mobile-nav-row {
	display: block;
}

.small-grey-box h4.et_pb_module_header {
	min-height: 80px;
}

.gradient-header {
	-webkit-text-fill-color: transparent !important;
	background: linear-gradient(45deg, #5e5bf9 0%, #f0aefd 100%) !important;
	-webkit-background-clip: text !important;
}

/* -------------------------------------------
   MEGA MENU STYLES
---------------------------------------------- */

/* Hide mega menus by default */
.mega-menu-products, .mega-menu-resources {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
	background: #fff;
	box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
}

/* Show when visible */
.mega-menu-visible {
	display: block !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.mobile-nav {
	display: block;
}

/* Optional content styling inside mega menus */
.mega-menu-products .et_pb_row, .mega-menu-resources .et_pb_row {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 20px;
}

.featured-blog article {
	display: flex;
	flex-direction: column;
}

.featured-blog article p.post-meta {
	order: 3;
}

/* Hide on smaller screens if needed */
@media only screen and (max-width: 980px) {
	.mega-menu-products, .mega-menu-resources {
		display: none !important;
	}
}

/* Responsive nav visibility */
@media only screen and (min-width: 768px) {
	.mobile-nav-row {
		display: none;
	}
	
	.mobile-nav {
		display: none;
	}
	
	.mobile-nav-hide-desktop {
		display: none;
	}
}

.featured-blog .et_pb_blog_grid .et_pb_post {
	background: none;
}

.et_pb_blog_grid .et_pb_post {
	border: none;
}

.et_pb_gutters3 .et_pb_column_1_2 .et_pb_blog_grid .column.size-1of1 .et_pb_post, .et_pb_gutters3.et_pb_row .et_pb_column_1_2 .et_pb_blog_grid .column.size-1of1 .et_pb_post, .et_pb_gutters3 .et_pb_column_1_3 .et_pb_blog_grid .column.size-1of1 .et_pb_post {
	margin-bottom: 0px;
}

/* Custom button styling */
button.nav-button {
	background: linear-gradient(290deg, #60c, #25004a);
	color: #fff;
	font-size: 16px;
	padding: 8px 8px;
	border: none;
	margin-left: 16px;
	border-radius: 4px;
}

/* Globe icon size */
i.fas.fa-globe {
	font-size: 20px;
}

/* Form field padding */
input#email-6df5f97b-af6d-4996-b6c8-3ed5043e7755 {
	padding: 18px;
}

/* Flex layout for patent form */
form#patentForm {
	display: flex;
}

#hsForm_42e1aa9e-0bae-4d48-8d38-2afa9768abd4 {
	margin: 0 auto !important;
}

form#hsForm_42e1aa9e-0bae-4d48-8d38-2afa9768abd4 {
	margin: 0 auto !important;
}
