/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Child theme for Hello Elementor.
Author: Zero Two Digital
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Add custom CSS below */

.lbu-testimonial blockquote.elementor-blockquote {padding: 20px 40px 40px 40px!important;}


.elementor-location-footer a{
	text-decoration:none!important;
}

.grecaptcha-badge {
    z-index: 12!important;
}

.green-bullets li::marker {
	color: #63b52d;
	font-size: 1.2em;
}

.green-bullets li {
	margin-bottom: 6px;
}

.green-bullets li:not(:last-child) {
	margin-bottom: 8px;
}

.copyright .elementor-shortcode {
	color: #fff;
	font-size: 14px;
}

@media (max-width: 767px) {
    .copyright .elementor-shortcode {
        text-align: center;
    }
}

.no-decoration a {
	text-decoration:none!important;
}

.lbu-banner .elementor-slide-heading {
    text-shadow: -3px 3px 1px rgba(0, 0, 0, 0.5);
}

.elementor-element .swiper .swiper-horizontal>.swiper-pagination-bullets, .elementor-element .swiper .swiper-pagination-bullets.swiper-pagination-horizontal, .elementor-element .swiper .swiper-pagination-custom, .elementor-element .swiper .swiper-pagination-fraction, .elementor-element .swiper~.swiper-pagination-bullets.swiper-pagination-horizontal, .elementor-element .swiper~.swiper-pagination-custom, .elementor-element .swiper~.swiper-pagination-fraction, .elementor-lightbox .swiper .swiper-horizontal>.swiper-pagination-bullets, .elementor-lightbox .swiper .swiper-pagination-bullets.swiper-pagination-horizontal, .elementor-lightbox .swiper .swiper-pagination-custom, .elementor-lightbox .swiper .swiper-pagination-fraction, .elementor-lightbox .swiper~.swiper-pagination-bullets.swiper-pagination-horizontal, .elementor-lightbox .swiper~.swiper-pagination-custom, .elementor-lightbox .swiper~.swiper-pagination-fraction {
    bottom: 20px!important;
}

.elementor-7 .elementor-element.elementor-element-4047fa7 .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
    background-color: #FFFFFF00!important;
	border: 1px solid #fff;
    opacity: 1;
}

/* Table wrapper: allow horizontal scrolling on mobile */
.lbu-cover-table {
	overflow-x: auto;
}

/* Table layout */
.lbu-cover-table table {
	width: 100%;
	min-width: 700px;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	border: 1px solid #25292c;
	color: #25292c;
}

/* All cells */
.lbu-cover-table table th,
.lbu-cover-table table td {
	padding: 4px 10px;
	border: 1px solid #25292c;
	text-align: center;
	vertical-align: middle;
	line-height: 1.5;
}

/* Description column */
.lbu-cover-table table tr > :first-child {
	width: 46%;
	text-align: left;
	background: #fff;
}

/* Silver */
.lbu-cover-table table tr > :nth-child(2) {
	width: 18%;
	background: #e2e2e2;
}

/* Gold */
.lbu-cover-table table tr > :nth-child(3) {
	width: 18%;
	background: #fff0c2;
}

/* Platinum */
.lbu-cover-table table tr > :nth-child(4) {
	width: 18%;
	background: #f5f5f5;
}

/* Heading row */
.lbu-cover-table table tr:first-child > * {
	font-size: 18px;
}

.lbu-cover-table table tr:first-child > :nth-child(2) {
	background: #adadad;
}

.lbu-cover-table table tr:first-child > :nth-child(3) {
	background: #ffbf00;
}

.lbu-cover-table table tr:first-child > :nth-child(4) {
	background: #ccc;
}

/* Remove paragraph spacing inside cells */
.lbu-cover-table table p {
	margin: 0;
}

/* Blog breadcrumbs */

.blog-breadcrumbs #breadcrumbs a {
	color: #002471;
	transition: opacity 0.2s ease;
}

.blog-breadcrumbs #breadcrumbs a:hover {
	opacity: 0.6;
}

.blog-breadcrumbs #breadcrumbs > span > span {
	display: inline-block;
	margin: 0 8px;
}

.blog-breadcrumbs #breadcrumbs > span > span:first-child {
	margin-left: 0;
}

.blog-breadcrumbs #breadcrumbs > span > span:last-child {
	margin-right: 0;
}

.blog-breadcrumbs #breadcrumbs a,
.blog-breadcrumbs #breadcrumbs a:hover {
	text-decoration: none !important;
}

/* Form focus */

#lbu-quote-form {
    position: relative;
    top: 0;
    scroll-margin-top: 120px;
    transition: top 350ms ease, box-shadow 350ms ease;
}

#lbu-quote-form.is-highlighted {
    top: -8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    #lbu-quote-form {
        transition: none;
    }

    #lbu-quote-form.is-highlighted {
        top: 0;
    }
}

/* Banner logo additions */

.lbu-banner .swiper-slide {
    position: relative;
}

.lbu-banner .swiper-slide::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 150px;
    height: 68px;
    background-color: #fff;
    background-image: var(--insurer-logo);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-origin: content-box;
    padding: 18px 22px;
    box-sizing: border-box;
    z-index: 3;
    pointer-events: none;
}

/* Slide 1 — Aviva */
.lbu-banner .swiper-slide[data-swiper-slide-index="0"],
.lbu-banner .swiper-slide:not([data-swiper-slide-index]):nth-child(1) {
    --insurer-logo: url("https://www.lbunderwriters.co.uk/wp-content/uploads/2026/11/aviva-logo-thumb.png");
}

/* Slide 2 — AXA */
.lbu-banner .swiper-slide[data-swiper-slide-index="1"],
.lbu-banner .swiper-slide:not([data-swiper-slide-index]):nth-child(2) {
    --insurer-logo: url("https://www.lbunderwriters.co.uk/wp-content/uploads/2026/11/axa-logo-thumb.png");
}

/* Slide 3 — MS Amlin */
.lbu-banner .swiper-slide[data-swiper-slide-index="2"],
.lbu-banner .swiper-slide:not([data-swiper-slide-index]):nth-child(3) {
    --insurer-logo: url("https://www.lbunderwriters.co.uk/wp-content/uploads/2026/11/as-amlin-logo-thumb.png");
}

/* Square panel for AXA */
.lbu-banner .swiper-slide[data-swiper-slide-index="1"]::after,
.lbu-banner .swiper-slide:not([data-swiper-slide-index]):nth-child(2)::after {
    width: 100px;
    height: 100px;
}

/* Smaller panels on mobile */
@media (max-width: 767px) {
    .lbu-banner .swiper-slide::after {
        right: 12px;
        bottom: 12px;
        width: 110px;
        height: 50px;
        padding: 12px 16px;
    }

    .lbu-banner .swiper-slide[data-swiper-slide-index="1"]::after,
    .lbu-banner .swiper-slide:not([data-swiper-slide-index]):nth-child(2)::after {
        width: 70px;
        height: 70px;
    }
}

/* Random highlight text style */

::selection {
	background: #84c35d;
	color: #fff;
}

::-moz-selection {
	background: #84c35d;
	color: #fff;
}

/* LBU feature card styles */

/* Hide the icon sitting above the heading */
.lbu-feature-card .elementor-cta__icon {
    display: none !important;
}

/* Add a chevron immediately after the heading text */
.lbu-feature-card .elementor-cta__title::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    vertical-align: 0.12em;
}

/* Keep the animated line inside the image area */
.lbu-feature-card .elementor-cta__bg-wrapper {
    position: relative;
    overflow: hidden;
}

/* Green line — initially hidden */
.lbu-feature-card .elementor-cta__bg-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background-color: #63B52D;
    z-index: 2;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 2000ms ease;
}

/* Grow the line when hovering anywhere over the card */
.lbu-feature-card:hover .elementor-cta__bg-wrapper::after,
.lbu-feature-card:focus-within .elementor-cta__bg-wrapper::after {
    transform: scaleX(1);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .lbu-feature-card .elementor-cta__bg-wrapper::after {
        transition: none;
    }
}

/* Gravity forms styles */

p.gform_required_legend {
    display: none;
}

.gform-theme--foundation .gform_fields{
	grid-row-gap:20px!important;
	row-gap:20px!important;
}

label.gfield_label.gform-field-label {
    font-family: "Open Sans";
    font-weight: 200;
}

span.gfield_required {
    color: #989898;
}
fieldset#field_1_7,
fieldset#field_2_7 {
	background-color: #f5f5f5;
	border: 2px solid #e5e5e5;
	padding: 0 20px 20px;
}

fieldset#field_1_7 legend,
fieldset#field_2_7 legend {
	font-size: 16px!important;
	font-weight: 500!important;
	color: var(--e-global-color-primary);
	float: left;
	margin: 12px 0 10px;
	padding: 0;
}

fieldset#field_1_7 label,
fieldset#field_2_7 label {
	font-size: 13px;
	font-weight: 300;
}

fieldset#field_1_7 .ginput_container,
fieldset#field_2_7 .ginput_container {
	clear: both;
}

input.gform_button, button.gform_button {
    background-color: #63b52d !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    padding: 14px 30px !important;
    font-size: 18px !important;
    font-weight: 300 !important;
}

.gform-datepicker {
    width: 100%!important;
}

.gform-theme--foundation input[type="text"],
.gform-theme--foundation input[type="email"],
.gform-theme--foundation input[type="tel"],
.gform-theme--foundation input[type="number"],
.gform-theme--foundation input[type="url"],
.gform-theme--foundation input[type="date"],
.gform-theme--foundation input.datepicker,
.gform-theme--foundation textarea,
.gform-theme--foundation select {
	border: 1px solid #ced4da!important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.search-no-results {
	padding: 30px 0;
}

.search-no-results h3 {
	margin: 0 0 10px;
	font-weight: 300;
}

.search-no-results p {
	margin: 0;
}

/* Individual blog card */
.blog-archive .elementor-post {
	position: relative;
	border: 1px solid #ebebeb;
	background: #fff;
}

/* Position the line at the bottom of the image */
.blog-archive .elementor-post__thumbnail__link {
	position: relative;
}

.blog-archive .elementor-post__thumbnail__link::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #63b52d;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 2s ease;
	z-index: 2;
	pointer-events: none;
}

.blog-archive .elementor-post:hover .elementor-post__thumbnail__link::after {
	transform: scaleX(1);
}

/* Text area beneath the image */
.blog-archive .elementor-post__text {
	padding: 8px 25px 20px;
}

/* Blog title */
.blog-archive .elementor-post__title {
	margin: 0 0 26px;
	padding-left: 0;
}

/* Title link */
.blog-archive .elementor-post__title a,
.blog-archive .elementor-post__title a:hover {
	color: #002471;
	text-decoration: none;
}

/* Excerpt */
.blog-archive .elementor-post__excerpt,
.blog-archive .elementor-post__excerpt p {
	margin: 0;
}

/* Homepage variation */
.blog-archive-home .elementor-post {
	border: 0;
	background: transparent;
}


/* F&G STYLES BELOW NEED TO BE CHECKED */

/* Gallery styles */

.gallery-style .e-gallery-item {
	position: relative;
}

.gallery-style .e-gallery-item::before {
	content: "+";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #343434;
	border-radius: 50%;
	color: #343434;
	font-family: Arial, sans-serif;
	font-size: 28px;
	padding-top: 2px;
	font-weight: 300;
	line-height: 1;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.85);
	transition:
		opacity 800ms ease,
		transform 800ms ease;
	z-index: 3;
	pointer-events: none;
}

.gallery-style .e-gallery-item::after {
	content: "";
	position: absolute;
	top: calc(50% + 12px);
	left: calc(50% + 16px);
	width: 16px;
	height: 3px;
	background: #343434;
	border-radius: 2px;
	opacity: 0;
	transform:
		translate(-50%, -50%)
		rotate(45deg)
		scaleX(0.85);
	transform-origin: left center;
	transition:
		opacity 800ms ease,
		transform 800ms ease;
	z-index: 3;
	pointer-events: none;
}

.gallery-style .e-gallery-item:hover::before {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.gallery-style .e-gallery-item:hover::after {
	opacity: 1;
	transform:
		translate(-50%, -50%)
		rotate(45deg)
		scaleX(1);
}

.elementor-element .swiper .elementor-swiper-button svg, .elementor-element .swiper~.elementor-swiper-button svg, .elementor-lightbox .swiper .elementor-swiper-button svg, .elementor-lightbox .swiper~.elementor-swiper-button svg {color:#363636!important;fill:#363636!important;}

/* end of gallery */

.green-accent {
	position: relative;
	padding-left: 1.1rem;
}

.green-accent::before {
	background-color: #c3d734;
	content: "";
	height: 90%;
	left: 0;
	position: absolute;
	top: 5%;
	width: 0.2em;
}

.grey-accent {
	position: relative;
	padding-left: 1.1rem;
}

.grey-accent::before {
	background-color: #363636;
	content: "";
	height: 90%;
	left: 0;
	position: absolute;
	top: 5%;
	width: 0.2em;
}

.heading-last-word {
	white-space: nowrap;
}

.heading-last-word sup {
	font-size: 0.4em;
	line-height: 0;
	vertical-align: super;
	margin-left: 0.12em;
}

.association-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.association-logo img {
	display: block;
	width: 100px;
	height: auto;
	margin: 0;
}

/* Main CTA tile */
.product-tile .elementor-cta {
	position: relative;
	overflow: visible;
}

/* Create space between the image and the text content */
.product-tile .elementor-cta__content {
	padding: 18px 0 0!important;
}

/* Accent line beside the title */
.product-tile .elementor-cta__title {
	position: relative;
	padding-left: 20px;
	margin: 0 0 24px;
}

.product-tile .elementor-cta__title::before {
	content: "";
	position: absolute;
	top: 4%;
	left: 0;
	width: 2px;
	height: 92%;
	background: #c3d734;
}

/* Paragraph spacing */
.product-tile .elementor-cta__description {
	margin: 0;
}

/* Green hover box */
.product-tile .elementor-cta::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
	background: #c3d734;
	z-index: 5;
	opacity: 0;
	transform: translateY(-8px);
	transition:
		opacity 500ms ease,
		transform 500ms ease;
	pointer-events: none;
}

/* Arrow inside the green box */
.product-tile .elementor-cta::after {
	content: "";
	position: absolute;
	top: 16px;
	right: 18px;
	width: 10px;
	height: 10px;
	border-top: 1px solid #292929;
	border-right: 1px solid #292929;
	transform: translateY(-8px) rotate(45deg);
	z-index: 6;
	opacity: 0;
	transition:
		opacity 500ms ease,
		transform 500ms ease;
	pointer-events: none;
}

/* Reveal the box and arrow on rollover */
.product-tile .elementor-cta:hover::before {
	opacity: 1;
	transform: translateY(0);
}

.product-tile .elementor-cta:hover::after {
	opacity: 1;
	transform: translateY(0) rotate(45deg);
}

/* Remove Elementor card spacing/shadow if present */
.blog-archive-home .elementor-post__card {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

/* Text directly beneath the image */
.blog-archive-home .elementor-post__text {
	padding: 10px 0 0;
}

/* Blog title */
.blog-archive-home .elementor-post__title {
	position: relative;
	margin: 0 0 14px;
	padding-left: 22px;
}

/* Green accent line */
.blog-archive-home .elementor-post__title::before {
	content: "";
	position: absolute;
	top: 3%;
	left: 0;
	width: 2px;
	height: 94%;
	background-color: #c3d734;
}

/* Title links */
.blog-archive-home .elementor-post__title a {
	color: inherit;
	text-decoration: none;
}

/* Excerpt */
.blog-archive-home .elementor-post__excerpt {
	margin: 0;
}

.blog-archive-home .elementor-post__excerpt p {
	margin: 0;
}

/* Homepage blog post hover effects */
.blog-archive-home .elementor-post {
	position: relative;
	overflow: hidden;
}

/* Thumbnail wrapper */
.blog-archive-home .elementor-post__thumbnail__link {
	position: relative;
	display: block;
	overflow: hidden;
}

/* Semi-transparent black overlay */
.blog-archive-home .elementor-post__thumbnail__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.28);
	opacity: 0;
	transition: opacity 500ms ease;
	pointer-events: none;
	z-index: 2;
}

/* Green hover box */
.blog-archive-home .elementor-post::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
	background: #c3d734;
	z-index: 5;
	opacity: 0;
	transform: translateY(-8px);
	transition:
		opacity 500ms ease,
		transform 500ms ease;
	pointer-events: none;
}

/* Arrow inside the green box */
.blog-archive-home .elementor-post::after {
	content: "";
	position: absolute;
	top: 14px;
	right: 16px;
	width: 10px;
	height: 10px;
	border-top: 1px solid #292929;
	border-right: 1px solid #292929;
	transform: translateY(-8px) rotate(45deg);
	z-index: 6;
	opacity: 0;
	transition:
		opacity 500ms ease,
		transform 500ms ease;
	pointer-events: none;
}

/* Reveal image overlay */
.blog-archive-home .elementor-post:hover .elementor-post__thumbnail__link::after {
	opacity: 1;
}

/* Reveal green box */
.blog-archive-home .elementor-post:hover::before {
	opacity: 1;
	transform: translateY(0);
}

/* Reveal arrow */
.blog-archive-home .elementor-post:hover::after {
	opacity: 1;
	transform: translateY(0) rotate(45deg);
}

/* Flyout menu styles */

/* Main flyout menu links */
.header-flyout
.elementor-nav-menu--dropdown
> .elementor-nav-menu
> li
> a.elementor-item {
	line-height: 1.4 !important;
}

/* Dropdown arrow default */
.header-flyout a.elementor-item .sub-arrow {
	color: #000;
	transition: color 200ms ease;
}

/* Dropdown arrow hover */
.header-flyout a.elementor-item:hover .sub-arrow svg,
.header-flyout li.menu-item-has-children:hover > a.elementor-item .sub-arrow svg,
.header-flyout a.elementor-item:hover .sub-arrow svg path,
.header-flyout li.menu-item-has-children:hover > a.elementor-item .sub-arrow svg path {
	fill: #838383 !important;
}

/* Indent the submenu as a whole */
.header-flyout ul.sub-menu {
	padding-left: 30px !important;
	padding:0 0 10px 0;
}

/* Smaller submenu links */
.header-flyout ul.sub-menu a.elementor-sub-item {
	font-size: 16px !important;
	line-height: 1.25 !important;
	padding-top: 7px !important;
	padding-right: 0 !important;
	padding-bottom: 7px !important;
	padding-left: 0 !important;
	background: transparent !important;
}

/* Prepare submenu links for the hover arrow */
.header-flyout ul.sub-menu a.elementor-sub-item {
	position: relative;
	padding-left: 15px !important;
}

/* Hidden arrow */
.header-flyout ul.sub-menu a.elementor-sub-item::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 8px;
	height: 8px;
	border-top: 2px solid #666;
	border-right: 2px solid #666;
	opacity: 0;
	transform: translate(-10px, -50%) rotate(45deg);
	transition:
		opacity 250ms ease,
		transform 250ms ease;
}

/* Arrow flies into position */
.header-flyout ul.sub-menu a.elementor-sub-item:hover::before {
	opacity: 1;
	transform: translate(0, -50%) rotate(45deg);
}