/* 
Theme Name: IONYX Digital - Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: WordPress theme by IONYX Digital. Based on the Hello Elementor Child theme. 
Author: IONYX Digital, Elementor Team
Author URI: https://ionyxdigital.com.au/
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
*/

/**
* BASE STYLES
*/

/* Variables */
:root {
	--theme-primary-colour: #043355; /* dark blue */
	--theme-secondary-colour: #205B7F; /* deep blue */
	--theme-text-colour: #4E4F4F; /* dark grey */
	--theme-accent-colour: #1D8AB9; /* blue */
	--theme-light-grey-colour: #F2F2F3; /* light platinum */
	--theme-grey-colour: #D3D5D7; /* platinum */
	--theme-dark-colour: #312E38; /* raisen black */
	--theme-border-radius: 4px; 
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
    -webkit-margin-before: 1rem;
    margin-block-start: 1rem;
	-webkit-margin-after: 1rem;
    margin-block-end: 1rem;
}
/* Remove top margin from first heading in container */
h1:first-child, .elementor-widget-heading h1, 
h2:first-child, .elementor-widget-heading h2, 
h3:first-child, .elementor-widget-heading h3, 
h4:first-child, .elementor-widget-heading h4, 
h5:first-child, .elementor-widget-heading h5, 
h6:first-child,  .elementor-widget-heading h6 {
    -webkit-margin-before: 0rem;
    margin-block-start: 0rem;
}

/* Lists */
ul, ol {
	margin: 30px 0;
}
	ul li, ol li {
		margin: 0 0 5px 0;
	}

/* Tables */
table td, table th {
	border: 1px solid var(--theme-light-grey-colour);
}
table tbody tr:hover>td, table tbody tr:hover>th {
	background-color: unset;
}

table caption+thead tr:first-child td, table caption+thead tr:first-child th, 
table colgroup+thead tr:first-child td, table colgroup+thead tr:first-child th, 
table thead:first-child tr:first-child td, table thead:first-child tr:first-child th {
	-webkit-border-before: 0;
	border-block-start: 0;
}

/* Odd table rows */
table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
	background-color: transparent;
}


/**
* HEADER
*/

/* @media (min-width: 881px) {
	#header {
		max-height: 180px;
	}
	#header-nav {
		max-height: 130px;
	}
} */

/* #header-nav.elementor-sticky--active {
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.05);
} */

.elementor-nav-menu .menu-item .sub-arrow {
	padding: 0 0 0 5px;
}

#header-top a {
	color: inherit;
	text-decoration: inherit;
	transition: color 0.3s;
}
	#header-top a:hover {
		color: var(--e-global-color-primary);
	}


/**
* FOOTER
*/

#footer-cols a {
	color: inherit;
	text-decoration: inherit;
	transition: color 0.3s;
}
	#footer-cols a:hover {
		color: var(--e-global-color-primary);
	}


/**
* ELEMENTOR BLOCKS
*/

/* Inherit color and text decoration for column links */
a.e-con {
	color: inherit;
	text-decoration: inherit;
}

/* Heading with link - inherit parent text decoration */
.elementor-widget-heading .elementor-heading-title a {
	text-decoration: inherit;
}

/* Text editor - Read more expand */
.text-box-read-more.elementor-widget-text-editor {
	transition: max-height .6s ease-out;
    max-height: 200px;
	padding-bottom: 30px;
    overflow: hidden;
}
	.text-box-read-more.expanded.elementor-widget-text-editor {
		max-height: 2000px;
	}
	.text-box-read-more.elementor-widget-text-editor::before {
		position: absolute;
		content: '';
		bottom: 0;
		width: 100%;
		height: 70px;
		background: rgb(247,248,249);
		background: -moz-linear-gradient(180deg, rgba(247,248,249,0) 0%, rgba(247,248,249,1) 50%);
		background: -webkit-linear-gradient(180deg, rgba(247,248,249,0) 0%, rgba(247,248,249,1) 50%);
		background: linear-gradient(180deg, rgba(247,248,249,0) 0%, rgba(247,248,249,1) 50%);
		opacity: 1;
		transition: opacity 0.3 ease-out;
	}
		.text-box-read-more.expanded.elementor-widget-text-editor::before {
			opacity: 0;
		}
	.text-box-read-more.elementor-widget-text-editor::after {
		position: absolute;
		bottom: 4px;
		content: 'Read more';
		font-size: 14px;
	}
		.text-box-read-more.expanded.elementor-widget-text-editor::after {
			content: 'Read less';
		}

/* Icon list */
.elementor-widget .elementor-icon-list-item a {
	text-decoration: none;
}

/* Flip box */
.elementor-widget-flip-box .elementor-flip-box__layer {
	text-decoration: inherit;
}
.elementor-widget-flip-box.elementor-flip-box--effect-fade .elementor-flip-box__layer {
	transition: all .3s ease-in-out;
}

/* Image Carousel - adjust nav arrow spacing */
.elementor-element.elementor-arrows-position-outside .swiper, 
.elementor-element.elementor-arrows-position-outside .swiper-container,
.elementor-lightbox.elementor-arrows-position-outside .swiper,
.elementor-lightbox.elementor-arrows-position-outside .swiper-container {
	width: calc(100% - 140px);
}

/* Image Carousel - Display caption over image  - add "caption-over-image" CSS class */
.caption-over-image.elementor-widget-image-carousel .elementor-image-carousel {
	align-items: center;
}
	.caption-over-image.elementor-widget-image-carousel .swiper-slide-inner {
		display: flex;
		position: relative;
		justify-content: center;
	}
	.caption-over-image.elementor-widget-image-carousel .swiper-slide-inner:after {
		content: '';
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		display: inline-block;
		background: rgb(5,5,23);
		background: -moz-linear-gradient(180deg, rgba(5,5,23,0.2) 50%, rgba(5,5,23,1) 100%);
		background: -webkit-linear-gradient(180deg, rgba(5,5,23,0.2) 50%, rgba(5,5,23,1) 100%);
		background: linear-gradient(180deg, rgba(5,5,23,0.2) 50%, rgba(5,5,23,1) 100%);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#050517",endColorstr="#050517",GradientType=1);
	}
	.caption-over-image.elementor-widget-image-carousel .elementor-image-carousel-caption {
		position: absolute;
		top: 80%;
		width: 100%;
		max-width: 250px;
		z-index: 1;
	}
	.caption-over-image.elementor-widget-image-carousel .swiper .elementor-swiper-button {
		top: 80%;
		margin-top: 10px;
	}
	.caption-over-image.elementor-widget-image-carousel .swiper .elementor-swiper-button-prev {
		left: 20px;
	}
	.caption-over-image.elementor-widget-image-carousel .swiper .elementor-swiper-button-next {
		right: 20px;
	}

/* Image Carousel -  verticle center and set max height on images - add "max-height" CSS class */
.max-height.elementor-widget-image-carousel .elementor-image-carousel {
	align-items: center;
}
	.max-height.elementor-widget-image-carousel .swiper-slide img {
		max-height: 130px;
	}


/* Popup close button */
.elementor-popup-modal .dialog-close-button {
    border-radius: 18px;
    padding: 10px 20px;
}
	.elementor-popup-modal .dialog-close-button::after {
		content: 'Close';
		margin-left: 5px;
		color: #fff;
		font-weight: 600;
	}
	

/* Offset anchor links to account for sticky header */
body:not(.elementor-editor-active) .elementor-menu-anchor {
	margin: -50px 0 0;
}

/* Add border to vertical menu - add "vertical-menu-dividers" CSS class */
.vertical-menu-dividers.elementor-widget-nav-menu li {
	border-top: 1px solid #F2F2F3;
}
	.vertical-menu-dividers.elementor-widget-nav-menu li:last-of-type {
		border-bottom: 1px solid #F2F2F3;
	}


/**
* RESPONSIVE READY CLASSES
*/

/* Show on Mobile Only */
@media (min-width: 881px) {
	.hidden-show-mobile-only {
		display: none!important;
	}
}


/**
* ANIMATIONS
*/
 
/* Adjust Elementor FadeInUp animation */
.fadeInUp {
    animation-name: fadeInUpShort!important;
}
@keyframes fadeInUpShort {
    from {
        opacity: 0;
        transform: translate3d(0,50px,0);
    }

    to {
        opacity: 1;
        transform: none
    }
}

.fadeInLeft {
    animation-name: fadeInLeftShort!important;
}

@keyframes fadeInLeftShort {
    from {
        opacity: 0;
        transform: translate3d(-50px,0,0);
    }

    to {
        opacity: 1;
        transform: none
    }
}

.fadeInRight {
    animation-name: fadeInRightShort!important;
}

@keyframes fadeInRightShort {
    from {
        opacity: 0;
        transform: translate3d(50px,0,0);
    }

    to {
        opacity: 1;
        transform: none
    }
}


/**
* GRID WITH HOVER STATE
*/

/* Show only on hover */
.grid-item-hover .show-on-hover {
	opacity: 0;
	transition: opacity .3;
}
.grid-item-hover:hover .show-on-hover {
	opacity: 1;
}


/**
* FORMS - Forminator
*/
.forminator-edit-module {
	display: none;
}
body .et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-grid=open] .forminator-col:not(:last-child), 
body .forminator-ui.forminator-custom-form[data-grid=open] .forminator-col:not(:last-child),
body .et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-grid=open] .forminator-row:not(:last-child), 
body .forminator-ui.forminator-custom-form[data-grid=open] .forminator-row:not(:last-child) {
	margin-bottom: 15px;
}
@media (min-width: 783px) {
	body .et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form:not(.forminator-size--small)[data-grid=open] .forminator-row:not(:last-child), 
	body .forminator-ui.forminator-custom-form:not(.forminator-size--small)[data-grid=open] .forminator-row:not(:last-child) {
		margin-bottom: 15px;
	}
	body .et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form:not(.forminator-size--small)[data-grid=open] .forminator-col, 
	body .forminator-ui.forminator-custom-form:not(.forminator-size--small)[data-grid=open] .forminator-col {
		padding: 0 7.5px;
	}
}

.white-response-text .forminator-response-message {
	color: #fff;
	font-weight: 600;
}

.forminator-ui .forminator-button-submit {
	font-size: 16px;
	background-color: transparent;
    color: #fff;
    min-width: 50%;
}
	.forminator-ui .forminator-button-submit:hover {
		background-color: var(--e-global-color-secondary);
		color: #fff;
	}