/*
Theme Name: TCWD Framework 2024
Description: A minimalistic WordPress theme for custom designed sites.
Version: 1.0
Author: Greg Provians
Author URI: www.tropicalcoastwebdesign.com.au
*/

/******************************* LOAD FONTS *******************************/

@font-face {
	font-family: Poppins-Regular;
	font-weight: 400;
	font-style: normal;
	src:url("fonts/Poppins/Poppins-Regular.ttf");
}

@font-face {
	font-family: Poppins-SemiBold;
	font-weight: 400;
	font-style: normal;
	src:url("fonts/Poppins/Poppins-SemiBold.ttf");
}

@font-face {
	font-family: Muli-Regular;
	font-weight: 400;
	font-style: normal;
	src: url("fonts/muli/Muli-Regular.ttf");
}

@font-face {
	font-family: Kanit-Regular;
	font-weight: 400;
	font-style: normal;
	src: url("fonts/Kanit/Kanit-Regular.ttf");
}

@font-face {
	font-family: Kanit-SemiBold;
	font-weight: 400;
	font-style: normal;
	src: url("fonts/Kanit/Kanit-SemiBold.ttf");
}

body {
    font-family: Poppins-Regular, Arial, sans-serif;
    margin: 0;
    padding: 0;
	font-size: 20px;
}

html {

	/* Apply border-box across the entire page. */
	box-sizing: border-box;
	font-family: var(--global--font-secondary);
	line-height: var(--global--line-height-body);
}

/**
 * Relax the definition a bit, to allow components to override it manually.
 */

*,
*::before,
*::after {
	box-sizing: inherit;
}

/******************************* HEADING STYLES *******************************/

h1 {
	font-family: Poppins-SemiBold, Helvetica, Arial, "sans-serif";
	font-size: 2em;
	line-height: 1.2em;
	margin: 0 0 24px 0;
	color: #001040;	
}

h1.hide-title {
	font-family: Montserrat-SemiBold, Arial, "sans-serif";
	font-weight: normal;
	font-size: .1em;
	line-height: .1em;
	color: #fff;
	padding: 0px;
	margin-bottom: 0px;
	width: 100%;
}

h2 {
	font-family: Kanit-SemiBold, Poppins-Regular, Helvetica, Arial, "sans-serif";
	font-size: 2.1em;
	line-height: 1.2em;
	margin: 0 0 24px 0;
	color: #135E98;	
	font-weight: normal;
	padding-right: 30px;
	padding-bottom: 8px;
	background-image: url("../../../template-images/title-wave.png");
	background-repeat: no-repeat;
	background-position: bottom right;
	display: inline-block;
}

h2 span {
	font-family: Poppins-Regular;
	color: #145E98;
	text-transform: uppercase;
	font-size: 18px;
	line-height: 1em;
	display: block;
	margin-bottom: 0;
}

.blue-block h2 {
	color: #fff;
	background-image: none;
}


h2.no-wave {
	padding-right: 0;
	padding-bottom: 0;
	background-image: none;
	display: block;
}

h3 {
	font-family: Kanit-Regular, Poppins-Regular, Helvetica, Arial, "sans-serif";
	font-size: 1.2em;
	line-height: 1.2em;
	margin: 0 0 24px 0;
	color: #135E98;	
	font-weight: normal;
}

h5 {
	font-family: Kanit-Regular, Poppins-Regular, Helvetica, Arial, "sans-serif";
	font-size: 1em;
	line-height: 1.2em;
	margin: 0 0 24px 0;
	color: #135E98;	
	font-weight: normal;
}

/* HEADER - FEATURED IMAGE BACKGROUND
-------------------------------------------------------------------------------*/


.header-wrap {
  text-align: left;
	width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
	min-height: 300px;
	margin-top: -28px;
	margin-bottom: 100px;
	display: flex;
flex-direction: column;
justify-content: center;
}

.header-wrap-contents {
	width: 100%;
	max-width: 1400px;
	text-align: center;
	height: 100%;
	line-height: 100%;
	vertical-align: middle;
	margin: 0 auto;
	padding: 0 30px;
}

.header-wrap h1.entry-title {
  text-shadow: 1px 1px 2px black;
	color: #fff;
}


/******************************* GENERAL STYLING *******************************/

ul, ol {
	margin: 0 0 24px;
	line-height: 1.714285714;
	padding: 0;
}

ul {
	list-style: disc outside;
}

ol {
	list-style: decimal outside;
}

ul ul, ol ol, ul ol, ol ul {
	margin-bottom: 0;
}

li {
	margin: 0 0 0 24px;
}

table td {
    
}

td, th {
	padding: 5px;
}

#content a:link, #content a:visited {
	text-decoration: none;
	color: #155E98;
}

#content a:hover {
	text-decoration: underline;
	color: #1F87DC;
}

/* TEXT ELEMENTS - Alignment -------------------------*/

.alignleft {
	display: inline;
	float: left;
	margin: 12px 24px 12px 0;
	margin: 0.857142857rem 1.714285714rem 0.857142857rem 0;
}

.alignright {
	display: inline;
	float: right;
	margin: 12px 0 12px 24px;
	margin: 0.857142857rem 0 0.857142857rem 1.714285714rem;
}

.aligncenter {
	clear: both;
	display: block;
	margin: 12px auto;
}

/******************************* GUTENBERG *******************************/

.alignfull {
margin-left : calc( -100vw / 2 + 100% / 2 );
margin-right : calc( -100vw / 2 + 100% / 2 );
max-width : 100vw;
}

.alignwide {
margin-left : calc( -80vw / 2 + 100% / 2 );
margin-right : calc( -80vw / 2 + 100% / 2 );
max-width : 80vw;
}

.aligncenter {
	max-width: 1400px;
	margin: 0 auto;
}

.wp-block-image.alignfull, .wp-block-image.alignwide {
    max-width: none;
}

/******************************* HEADER *******************************/

#header {
	width: 100%;
	height: auto;
	position: relative;
	background-color: #fff;
}

#header-contact {
	width: 100%;
	height: 46px;
	background-color: #155E98;
	color: #000;
}

#header-contact-contents {
	width: 100%;
	height: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

#header-contact-contents-right {
	width: 45%;
	height: 100%;
	float: right;
	text-align: right;
	margin-right: 30px;
}

#header-contact-contents-right img {
	margin-bottom: 0;
	margin-right: 15px;
}

#header-main-contents {
	width: 100%;
	height: 133px;
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
}

#header-main-logo {
	float: left;
	position: absolute;
	top: -26px;
	left: 30px;
	width: 300px;
	height: auto;
	z-index: 9999;
}

#header-main-address {
	float: right;
	position: absolute;
	top: 30px;
	right: 30px;
	width: 50%;
	height: auto;
	text-align: right;
	line-height: 46px;
	vertical-align: middle;
	color: #fff;
	text-transform: uppercase;
}

#header-main-menu {
	float: right;
	position: absolute;
	bottom: 20px;
	right: 35px;
	width: 54%;
	height: 46px;
	color: #000;
}

#header-waves {
	width: 100%;
	height: 28px;
	background-image: url("../../../template-images/header-waves.png");
	background-size: 100% 28px;
	background-position: center top;
	position: relative;
	z-index: 9998;
}

/******************************* MENU STYLING *******************************/

	#cssmenu,
	#cssmenu ul,
	#cssmenu li,
	#cssmenu a {
		border: none;
		margin: 0;
		padding: 0;
		line-height: 1;
		-webkit-box-sizing: content-box;
		-moz-box-sizing: content-box;
		box-sizing: content-box;
	}

	#cssmenu {
		display: block;
		padding: 0;
		margin: 0;
		width: auto;
		border-color: #080808;
	}

/*--- MENU - List Styles ---*/

	#cssmenu,
	#cssmenu > ul > li > ul > li a:hover {

	}

#cssmenu > ul {
    display: flex;
    align-items: stretch; /* Default */
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
}

#cssmenu > ul > li {
	position: relative;
	display: block;
    flex: 0 1 auto; /* Default */
    list-style-type: none;
}

#cssmenu > ul > li {
	position: relative;
	display: inline-block;
    flex: 0 1 auto; /* Default */
    list-style-type: none;
}

#header #cssmenu > ul > li:after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: transparent;
    transition: width .5s ease, background-color .5s ease;
 }

#header #cssmenu > ul > li:hover:after {
    width: 100%;
    background: #EFAF43;
 }


/*--- Individual Button Styles Go Here ---*/

	#cssmenu > ul > li > a {
		outline: none;
		display: block;
		position: relative;
		padding: 22px 15px 7px;
		text-align: center;
		text-decoration: none;
		font-weight: bold;
		text-transform: uppercase;
		font-size: .7em;
		font-family: Muli-Regular;
		color: #155E98;
	}

	#cssmenu li:first-child a {
		border-left: 0 none;
	}

/*--- Individual Button HOVER Styles Go Here ---*/

	#cssmenu > ul > li > a:hover {
		color: #EFAF43;
	}

	#cssmenu ul li.has-sub:hover > a:after {
		top: 0;
		bottom: 0;
	}

/*--- Sub Menu Dropdown Arrow ---*/

	#cssmenu > ul > li.has-sub {
		padding-right: 10px;  /*--- Extra room for arrow ---*/
	}

	#cssmenu > ul > li.has-sub > a:before {
		content: '';
		position: absolute;
		top: 25px;
		right: 0px;
		border: 5px solid transparent;
		border-top: 5px solid;
	}

/*--- Main Navigation Item with Drop Down Menu Underneath ---*/

	#cssmenu ul li.has-sub:hover > a {
		color: #EFAF43;
		top: 0px;
		z-index: 999;
	}

	#cssmenu ul li.has-sub:hover > ul,
	#cssmenu ul li.has-sub:hover > div {
		display: block;
	}

/*--- Drop Down Sub Menu Position & Width ---*/

	#cssmenu ul li > ul,
	#cssmenu ul li > div {
		display: none;
		position: absolute;
		top: 45px;
		left: 0px;
		padding: 0;
		z-index: 99999;
		border-top: 10px solid rgba(0,0,0,0.00);
	}

	#cssmenu ul li > ul {
		min-width: 200px;

	}

	#cssmenu li ul li a { 
		width: auto; white-space: nowrap;
	}

	#cssmenu ul li > ul li {
		list-style: inside none;
		padding: 0;
		margin: 0;
		position: relative;
	}

/*--- Drop Down Menu Items Styling ---*/

	#cssmenu ul li > ul li a {
		outline: none;
		display:block;
		position: relative;
		margin: 0;
		padding: 20px 15px 18px;
		text-transform: uppercase;
		font-size: .7em;
		font-family: Muli-Regular;
		font-weight: normal;
		color: #FFFFFF;
		text-decoration: none;
		text-align: left;
		background-color: #155E98;
		z-index: 99999;
	}

	#cssmenu ul li > ul li:first-child a {
		border-top-right-radius: 10px;
	}

/*--- Drop Down Menu Items HOVER effect ---*/

	#cssmenu ul ul a:hover {
		color: #ffff00;
		background-color: #114A79; /*--- Hover colour of dropdown menu items ---*/
	}

/*--- Sub-Sub Menu Dropdown Arrow ---*/

	#cssmenu > ul > li.has-sub {
		padding-right: 10px;  /*--- Extra room for arrow ---*/
	}

	#cssmenu ul li > ul li.has-sub > a:before {
		content: '';
		position: absolute;
		top: 23px;
		right: 5px;
		border: 5px solid transparent;
		border-left: 5px solid;
	}

	#cssmenu ul ul ul li a {
		outline: none;
		display:block;
		position: relative;
		margin: 0;
		padding: 20px 25px 18px;
		text-transform: uppercase;
		color: #fff;
		text-decoration: none;
		text-align: left;
		border-bottom: 1px dashed #266F41 !important;
		background-color: #001555; 
	}

	#cssmenu ul ul ul li:last-child a {
		border-bottom: none !important;
	}

	#cssmenu ul li > ul li > ul {
		display: none;
		position: absolute;
		top: 0px;
		left: 216px;
		padding: 0;
		z-index: 999;
		border-left: 10px solid rgba(0,0,0,0.00);
		background-color: rgba(0,0,0,0.00);
	}


/* MOBILE MENU - Styles ---------------------*/

/* Hide the mobile menu checkbox */
.mobile-menu-toggle {
    display: none;
}

/* Style the mobile menu toggle button */

.toggle-menu {
    display: block;
    cursor: pointer;
    z-index: 999999; /* Ensure toggle button appears above content */
    position: absolute;
    top: 0px;
    left: 0px;
	color: #fff;
	padding: 7px 18px;
	font-size: 1.2em;
}

/* Style the mobile menu */

.mobile-menu {
    display: none;
    position: absolute;
    top: 70px; /* Adjust as needed */
    left: 18px; /* Adjust as needed */
    background-color: #FFF;
    padding: 0 10px 0;
    z-index: 999999; /* Ensure mobile menu appears above content */
    animation-duration: 0.3s; /* Duration of the animation */
    animation-fill-mode: both; /* Retains the final state of the animation */
	width: 80%;
	max-width: 400px;
	font-size: .8em;
	border: 2px solid #155E98;
}

/* Define the animation for sliding */

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Show the menu when the checkbox is checked */

.mobile-menu-toggle:checked + .toggle-menu + .mobile-menu {
    display: block;
    animation-name: slideIn; /* Use slideIn animation when menu is opened */
}

/* Hide the menu when unchecked */

.mobile-menu-toggle:not(:checked) + .toggle-menu + .mobile-menu {
    animation-name: slideOut; /* Use slideOut animation when menu is closed */
}

/* Additional styling for the mobile menu */

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 5px 0;
}

.mobile-menu li {
	margin: 0 0 0 0;
	color: #155E98;
	font-family: Muli-Regular, Helvetica, Arial, "sans-serif";
	font-weight: bold;
    padding: 10px 10px 8px 20px;
	border-bottom: 1px solid #ccc;
}

.mobile-menu li:last-child {
	margin: 0 0 0 0;
	color: #155E98;
	font-family: Poppins-Regular, Helvetica, Arial, "sans-serif";
    padding: 10px 10px 8px 20px;
	border-bottom: 0px solid #ccc;
}

.mobile-menu li a {
    text-decoration: none;
    color: #444;
}

.mobile-menu li a:hover {
    color: #016BB5;
	font-weight: bold;
}

.mobile-menu ul.sub-menu {
    text-align: left;
	margin: 0 0;
}

.mobile-menu ul.sub-menu li {
    padding: 10px 0px 0px;
	margin-left: 25px;
	list-style: disc;
}

/* Closing button style */

.close-menu {
    position: absolute;
    top: 5px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #016BB5;
}

/* Parent items with sub-menus */
.mobile-menu li.menu-item-has-children > a {
    position: relative; /* Allow the arrow to be positioned absolutely */
    padding-right: 20px; /* Space for the arrow */
}

/* Arrow indicator styling */
.mobile-menu li.menu-item-has-children > a::after {
    content: '\2304'; /* Unicode character for down arrow */
    position: absolute;
    right: 0px; /* Position it to the right */
    top: 7px;
    transform: translateY(-50%); /* Center the arrow vertically */
    font-size: 0.8em;
    color: #444; /* Arrow color */
}

/* Sub-menu styling */
.mobile-menu ul.sub-menu {
    display: none; /* Hide sub-menu by default */
    position: relative; /* Position relative to the parent */
    left: 0;
    top: 0;
    padding: 0;
    margin: 0;
    z-index: 9999;
    width: 100%;
    animation-duration: 1s; /* Duration of the animation */
    animation-fill-mode: both; /* Retains the final state of the animation */
    max-height: 0; /* Initially collapsed */
    overflow: hidden; /* Hide overflow content */
}



/* Define the animation for expanding sub-menu */
@keyframes expandDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px; /* Set a max-height large enough to fit your content */
        opacity: 1;
    }
}

@keyframes collapseUp {
    from {
        max-height: 500px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

/* Show sub-menu on hover */
.mobile-menu li:hover > ul.sub-menu {
    display: block;
    animation-name: expandDown; /* Use expandDown animation when sub-menu is opened */
}



/* Hide sub-menu when not hovered */
.mobile-menu li > ul.sub-menu {
    display: none;
    animation-name: collapseUp; /* Use collapseUp animation when sub-menu is closed */
}

/* Parent menu item hover state */
.mobile-menu li:hover > ul.sub-menu {
    display: block;
    animation-name: expandDown; /* Use expandDown animation when sub-menu is opened */
}

/* Show the parent menu item and its sub-menu when the parent menu item is focused (for keyboard navigation) */
.mobile-menu li:focus-within > ul.sub-menu {
    display: block;
    animation-name: expandDown;
}

/* Hide the sub-menu when not hovered or focused */
.mobile-menu li > ul.sub-menu {
    display: none;
}

.mobile-menu li ul li {
	border-bottom: 0px solid #ccc;
	font-size: .9em;
}

/* FOOTER MENU - Styles ---------------------*/

	#footer #cssmenu,
	#footer #cssmenu ul,
	#footer #cssmenu li,
	#footer #cssmenu a {
		border: none;
		margin: 0;
		padding: 0;
		box-sizing: content-box;
		list-style: none;
		text-transform: none;
		text-align: left;
		line-height: 32px;
		vertical-align: middle;
		background-color: rgba(0,0,0,0.00);
	display: list-item;
	}

	#footer #cssmenu {
		height: auto;
		display: block;
		padding: 0;
		margin: 0;
		width: auto;
		border-color: #080808;
	}

/*--- MENU - List Styles ---*/

	#cssmenu,
	#cssmenu > ul > li > ul > li a:hover {

	}

#footer #cssmenu > ul {
    display: block;
    align-items: baseline;
    justify-content: center;
    width: 100%;
    margin: 0 0 0 0;
    padding: 0;
	
}

#footer #cssmenu > ul > li {
	position: relative;
	display: inline-block;
    flex: none; /* Default */
    list-style-type: none;
	width: 43%;
	margin-left: 20px;
}

#footer #cssmenu > ul > li::before {
  content: ">";
  position: absolute;
  left: -20px;
  top: 3px;
  line-height: 1.2;   /* adjust if needed to align nicely */
  color: #fff;
  font-weight: normal;
}

#footer #cssmenu > ul > li > a {
		font-weight: normal;
		text-transform: none;
		font-size: .7em;
		font-family: Poppins-Regular;
		color: #fff;
	}

#footer #cssmenu > ul > li > a {
		font-weight: normal;
		text-transform: none;
		font-size: .7em;
		font-family: Poppins-Regular;
		color: #fff;
	}

#footer #cssmenu > ul > li > a:hover {
		color: #EFAF43;
	}

/******************************* SLIDESHOW *******************************/

#slideshow-image {
	width: 100%;
	height: auto;
	margin-top: -28px;
	position: relative;
}


/******************************* MAIN BODY *******************************/

/* CONTENT / BODY
-------------------------------------------------------------------------------*/

#wrapper {
	width: 100%;
	height: auto;
	margin: 0px auto;
	display: block;
	}

	#main {
		width: 100%;
		height: auto;
		position: relative;
	}

		#content {
			box-sizing: border-box;
			padding: 0 30px 20px;
			width: 100%;
			max-width: 1400px;
			margin: 0 auto;
		}

	#content p {
		font-size: .8em;
		margin-bottom: 24px;
		color: #666666;
	}

/******************************* FOOTER *******************************/

#footer-wave {
	width: 100%;
	height: 96px;
	background-image: url("../../../template-images/footer-wave-1920.png");
	background-size: 100% 96px;
	background-position: center top;
	background-repeat: no-repeat
}

#footer {
	width: 100%;
	height: auto;
	padding: 80px 30px;
	background-color: #155E98;
}

#footer a:link, #footer a:visited {
	color: #fff;
	text-decoration: none;
}

#footer a:hover {
	color: #EFAF43;
}

#footer h5 {
	color: #fff;
}

#footer-contents {
	width: 100%;
	max-width: 1340px;
	height: auto;
	color: #fff;
	margin: 0 auto;
	overflow: hidden;
	clear: both;
}

#footer-left {
	width: 30%;
	height: auto;
	float: left;
	margin-right: 5%;
	text-align: center;
}

#footer-center {
	width: 30%;
	height: auto;
	float: left;
}

#footer-center p {
	font-size: .7em;
	margin-bottom: 30px;
	line-height: 32px;
	vertical-align: middle;
}

#footer-center img {
	line-height: 32px;
	vertical-align: middle;
	margin-right: 15px;
	margin-bottom: 3px;
}

#footer-right {
	width: 30%;
	height: auto;
	float: right;
}

#footer #footer-right h5 {
	margin-bottom: 20px;
}

/******************************* COPYRIGHT / LOGIN / T&Cs *******************************/

#notice_footer {
	width: 100%;
	height: auto;
	min-height: 60px;
	background-color: #155E98;
	display: block;
	overflow: hidden;
	padding: 0 30px;
}

#notice_footer a:link, #notice_footer a:visited{
	color: #fff;
	text-decoration: none;
}

#notice_footer a:hover {
	color: #EFAF43 !important;
	text-decoration:underline;
}

#notice_footer_content {
	width: 100%;
	max-width: 1400px;
	height: auto;
	margin: 0 auto;
	padding: 20px 0px;
	color: #fff;
	text-align: center;
	vertical-align: middle;
	line-height: 24px; 
	font-size: 14px;
	overflow: hidden;
	clear: both;
	border-top: 1px solid #5AC0EF;
}

#notice_footer_mobile {
	width: 100%;
	max-width: none;
	height: auto;
	color: #fff;
	text-align: center;
	vertical-align: middle;
	line-height: 26px; 
	font-size: 14px;
	display: block;
	overflow: hidden;
	padding: 20px 0;
	border-top: 1px solid #5AC0EF;
}

#notice_footer_left {
	width: 45%;
	max-width: 560px;
	height: auto;
	float: left;
	text-align: left;
	vertical-align: middle;
}

#notice_footer_right {
	width: 45%;
	max-width: 560px;
	height: auto;
	float: right;
	text-align: right;
	vertical-align: middle;
}

/******************************* CONTACT FORM 7 STYLES *******************************/

.wpcf7-form{
	border: none;
	padding:0;
	-webkit-border-radius: 10px;   
    border-radius: 10px;
	width: 100%;
	margin-bottom:21px;
}

.email_terms {
	font-size:13px !important;
	color: #444 !important;
}
	

#two-column{
	width: 100%;
}

#two-column input::placeholder{
	color: #999;
	font-family: Poppins-Regular;
}

#two-column #left{
	width: 48%;
	float: left;
}

#two-column #left p {
    line-height: 25px !important;
}

#two-column #right{
	width: 48%;
	float: right;
}
#two-column p{
margin: 0px !important;
}

#two-column input[type="text"]{
	border:none;
	border:1px solid #DDD;
	font-size : .9em;
	border-radius: 5px;
	padding: 10px 15px;
	margin-bottom:15px;
	width: 100%;
}

#two-column input[type="email"]{
	border:none;
	border:1px solid #DDD;
	font-size: .9em;
	border-radius: 5px;
	padding: 10px 15px;
	margin-bottom:15px;
	width: 100%;
}

#two-column textarea {
    position: relative;
    padding: 10px 15px;
    border:1px solid #DDD;
    border-radius: 5px;
	width: 100%;
	margin-bottom: 15px;
	font-size: .9em;
	font-family: Poppins-Regular;
}

#two-column textarea::placeholder {
    color: #999;
}


#two-column select {
    border: 1px solid #DDD;
    border-radius: 5px;
    padding: 10px 15px 10px 10px;
    margin-bottom: 15px;
    width: 100%;
    color: #999; /* Initial color for placeholder */
    font-size: .9em;
	font-family: Poppins-Regular;
}

/* Ensure the placeholder option stays gray */
#two-column select option[value=""] {
    color: #999 !important;
}

/* Change the color when a valid option is selected */
#two-column select:valid {
    color: #333;
}

.wpcf7 select[name="select-an-option"] { color:#aaa; font-size: .9em;}

.wpcf7 select[name="select-an-option"] option { color:#000 !important; font-size: .9em; }


#two-column input[type="submit"]{
	padding:11px 25px 9px;
	background-color: #155E98;
	border: 1px solid #155E98;
	width: 100%;
	color: #fff;
	text-transform: uppercase;
	float:right;
	border-radius: 5px;
	margin:5px 0px 0px 0px;
    font-size: .9em;
}

#two-column input[type="text"]:focus, #two-column textarea:focus, #two-column input[type="email"]:focus{
	background: #F1F1F1;
}

#two-column input[type="submit"]:hover{
	background: #1B75BE;
	color: #fff;
}

#content .wpcf7-not-valid-tip {
    font-size: .8em;
	margin-bottom: 10px;
	margin-top: -15px;
	text-align: right;
}

#content .wpcf7 form.invalid .wpcf7-response-output {
    border-color: #ff0000;
}

#content .wpcf7 form .wpcf7-response-output {
    padding: 0.5em 1em;
    border: 2px solid #008C00;
	font-size: .8em;
	margin: 40px 0px 10px;
}

/******************************* SMART PHONES  UNDER 800 PIXELS *******************************/

@media (max-width: 799px) {
	
#header-main-menu {
    display: none;
}
	
#header-contact-contents-right {
    width: 100%;
	margin-right: 24px;
}
	
	#header-contact-contents-right a.members {
		display: none;
	}
	
#header-main-contents {
	height: 128px;
	clear: both;
	padding: 0;
	text-align: center;
}
	
#header-contact-contents-right {
    margin-right: 3px;
}
	
#header-main-logo {
    width: 100%;
	text-align: center;
	float: none;
	left: 0;
}
	
#header-main-logo img{
    width: 90%;
	height: auto;
	max-width: 200px;
}
	
#header-waves {
    width: 100%;
    height: 28px;
    background-image: url("../../../template-images/header-waves-mobile.png");
    background-size: 800px 28px;
    background-position: center top;
    position: relative;
    z-index: 9998;
}
	
#footer-wave {
	background-image: url("../../../template-images/footer-wave-800.png");
	background-size: 800px 96px;
}
	
#footer {
    padding: 80px 20px;
}
	
#footer p {
    font-size: .7em;
    line-height: 2em;
}
	
	#footer h5 {
		text-align: center;
	}
	
#footer-left, #footer-center {
    width: 100%;
    margin-right: 0;
	float: none;
	margin-bottom: 50px;
}
	
#footer-right {
    width: 100%;
    margin-right: 0;
	float: none;
	margin-bottom: 0px;
}
	
	#footer-center {
		text-align: center;
	}
	
	#footer-center .footericon {
		display: none;
	}
	
	#footer-center img {
		margin: 0 10px;
	}
	
#footer #cssmenu > ul > li > a {
    font-size: .7em;
	border-bottom: 1px solid #1769AC;
}
	
#footer #cssmenu > ul > li:first-child > a {
	border-top: 1px solid #1769AC;
}
	
	
#footer #cssmenu > ul > li {
    width: 100%;
	margin-left: 0;
	text-align: center;
}
	
#footer #cssmenu > ul > li::before {
    display: none;
}
	
#footer #cssmenu, #footer #cssmenu ul, #footer #cssmenu li, #footer #cssmenu a {
    text-align: center;
}
	
#notice_footer_content {
    display: none;
}
	
#smallgoogle {
    text-align: left;
    padding: 0 0px 10px;
}
	
#notice_footer_left, #notice_footer_right {
    width: 100%;
    max-width: none;
    float: none;
    text-align: center;
}
	
.four-panels {
	margin-bottom: 40px !important;
}

}

/******************************* TABLETS BETWEEN 800 & 1200 PIXELS *******************************/

@media screen and (min-width: 800px) and (max-width: 1199px) { 
	
#header-contact-contents-left {
    display: none;
}
	
#header-main-menu {
    display: none;
}
	
#header-main-contents {
	height: 128px;
}
	
#header-contact-contents-right {
    margin-right: 3px;
}
	
#header-main-logo {
    width: 100%;
	text-align: center;
	left: 0px;
}
	
#header-waves {
    background-size: 1200px 28px;
}
	
#footer-wave {
    background-size: 1200px 96px;
}
	
#footer-left {
    width: 100%;
    margin-right: 0;
	float: none;
	margin-bottom: 60px;
}
	
#footer-center {
    width: 47%;
    float: left;
}
	
#footer-right {
    width: 47%;
    float: right;
}
	
#notice_footer_content {
    display: none;
}

}

@media screen and (min-width: 1200px) and (max-width: 1399px) { 

#header-main-menu {
	float: right;
	position: absolute;
	bottom: 15px;
	right: 35px;
	width: 60%;
	height: 46px;
	color: #000;
}
	
}

/******************************* DESKTOPS AND NOTEBOOKS OVER 1200 PIXELS *******************************/

@media (min-width: 1200px) {
	
.toggle-menu, .mobile-menu {
        display: none;
}
	
#notice_footer_mobile {
    display: none;
}

}

.slider-border {
	border-left: 4px solid #EDB64B;
}

/******************************* CUSTOM PAGE CSS *******************************/

.four-panels {
	padding: 30px 30px 47px; 
	border-top: 5px solid #145E98;
	margin-bottom: 17px;
	background-image: url("../../../template-images/bent-shadow.png");
	background-repeat: no-repeat;
	background-size: 100% 17px;
	background-position: bottom center;
	margin-top: -48px;
	background-color: #fff;
}

#content .four-panels p {
	font-size: .7em;
}

/* let the offset box show if anything upstream clips */
.wp-block-kadence-column .kt-inside-inner-col { overflow: visible !important; }

/* your image block with the custom class */
.wp-block-image.image-underlay {
  display: inline-block;         /* shrink-wrap to the figure */
  overflow: visible;             /* belt & braces */
}

/* the figure is our positioning context */
.wp-block-image.image-underlay figure {
  position: relative;
  display: inline-block;
  margin: 0;                     /* kill theme margins that cause “padding” look */
  line-height: 0;                /* remove baseline gap */
}

/* keep the image above the border */
.wp-block-image.image-underlay figure > img,
.wp-block-image.image-underlay figure > a > img {
  display: block;
  position: relative;
  z-index: 1;
  margin: 0;
  height: auto;
  width: 100%;
}

/* the underlay box */
.wp-block-image.image-underlay figure::after {
  content: "";
  position: absolute;
  top: 0; left: 0;               /* match the figure/image box */
  width: 100%;
  height: 100%;
  border: 4px solid #D3EAFA;
  box-sizing: border-box;
  transform: translate(30px, 30px);  /* 30px right & down */
  pointer-events: none;
  z-index: 0;                    /* sits under the image */
}

/******************************* EVENT CALENDAR *******************************/

/* Grid */
.ecs-event-list {
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0 0 60px;
  width: 100%;
}

/* Card */
.ecs-event-list li {
  position: relative;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

/* Image + hover */
.ecs-event-list li img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ecs-event-list li:hover img { transform: scale(1.05); }

/* Bottom gradient overlay */
.ecs-event-list li::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  z-index: 1;
  pointer-events: none;
}

/* Overlay text positioning */
.ecs-event-list li h4,
.ecs-event-list > li > span.duration.time {
  position: absolute;
  left: 20px;
  right: 20px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin: 0;
  padding: 0;
}

/* Title */
.ecs-event-list li h4 {
  bottom: 45px; /* gap above date */
  font-family: Poppins-Regular;
  font-size: 1em;
  line-height: 1.1;
}

/* Date */
.ecs-event-list > li > span.duration.time {
  bottom: 10px;
  font-size: 0.75em;
  text-transform: uppercase;
}

/* Optional venue (below image) */
.ecs-event-list > li > span.duration.venue {
  display: block;
  padding: 10px 20px;
  font-size: 0.9em;
  color: #333;
  background: #fff;
}

/* Tablet: 2 columns */
@media (min-width: 750px) {
  .ecs-event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Desktop: 4 columns */
@media (min-width: 1200px) {
  .ecs-event-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Narrower desktops: tweak spacing */
@media (max-width: 1390px) {
  .ecs-event-list > li > span.duration.time { font-size: 0.6em; }
  .ecs-event-list li h4 { bottom: 35px; }
}

/* Link states (scoped to beat global link styles) */
#content .ecs-event-list li h4 a:link,
#content .ecs-event-list li h4 a:visited {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: normal;
}
#content .ecs-event-list li h4 a:hover,
#content .ecs-event-list li h4 a:focus,
#content .ecs-event-list li h4 a:active {
  color: #ffff00;
  text-decoration: none;
}


/************************** HOME PAGE NEWS FEED CSS **************************/

/* Card shell */
#content .sp_wpspwpost_static.wpspw-design-1 .wpspw-post-grid-content {
  border: 0;
  position: relative;
  height: auto !important;         /* allow JS equaliser to read natural height */
  padding-bottom: 50px;            /* space for absolute read-more */
}

/* Image block with wave overlay */
.sp_wpspwpost_static.wpspw-design-1 .wpspw-medium-4 .wpspw-post-image-bg { height: 280px; margin-bottom: 0; }
.wpspw-post-image-bg { position: relative; overflow: hidden; margin-bottom: 20px; z-index: 0; }
.wpspw-post-image-bg img { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.wpspw-post-image-bg::after {
  content: "";
  position: absolute; left: 0; bottom: 0; width: 100%; height: 57px;
  background: url("../../../template-images/news-waves.png") center bottom;
  background-size: cover; z-index: 2; pointer-events: none;
}

/* Title */
#content .sp_wpspwpost_static.wpspw-design-1 .wpspw-post-grid-content h2 a {
  color: #135E98;
  font-family: Poppins-Regular;
  font-size: 20px !important;
  line-height: 1.1;
  display: block;
  margin: 0 !important;
}
#content .sp_wpspwpost_static h2,
#content .sp_wpspwpost_slider h2 { margin: 10px 15px 0 15px !important; }

/* Clamp title (max 3 lines) */
#content .sp_wpspwpost_static.wpspw-design-1 h2.wpspw-post-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25em;
}

/* Date */
.wpspw-post-date span { display: none; }
.wpspw-post-date { padding-bottom: 15px !important; margin-left: 15px !important; }

/* Excerpt */
#content .wpspw-post-content {
  font-size: .7em;
  line-height: 1.4em;
  font-family: Poppins-Regular;
  padding: 0 30px;
  color: #444;
}
#content .sp_wpspwpost_static.wpspw-design-1 .wpspw-post-content > div {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4em;
}

/* Read More button */
#content .sp_wpspwpost_static.wpspw-design-1 .wpspw-readmorebtn {
  position: absolute;
  right: 18px;
  bottom: 25px;
  margin: 0 !important;
  border: 0;
  border-radius: 5px;
  text-transform: lowercase;
  white-space: nowrap;
}
#content .sp_wpspwpost_static.wpspw-design-1 .wpspw-readmorebtn::after { content: " ..."; }
#content .sp_wpspwpost_static.wpspw-design-1 .wpspw-readmorebtn:hover {
  transition: 0.4s ease-in;
  background: transparent;
  color: #135E98 !important;
  border: 1px solid #135E98;
  border-radius: 5px;
}

/* Float grid gutters + clearfix */
#content .sp_wpspwpost_static { margin-left: -30px; margin-right: -30px; overflow: visible; }
#content .sp_wpspwpost_static .wpspw-column,
#content .sp_wpspwpost_static .wpspw-columns { padding-left: 30px; padding-right: 30px; box-sizing: border-box; }
#content .sp_wpspwpost_static::after { content: ""; display: block; clear: both; }

/* Misc */
#content .wpspw-post-grid { margin-bottom: 0; }
#content .wpspw-medium-4 { min-height: inherit; }

/* Breakpoints */

/* 0 - 800px: single column, tighter gutters, longer excerpts */
@media (max-width: 800px) {
  #content .sp_wpspwpost_static { margin-left: -12px; margin-right: -12px; }
  #content .sp_wpspwpost_static .wpspw-column,
  #content .sp_wpspwpost_static .wpspw-columns,
  #content .sp_wpspwpost_static .wpspw-post-grid {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    clear: both;
  }
  /* ensure the 3rd card is visible on mobile */
  #content .sp_wpspwpost_static .wpspw-column:nth-of-type(3),
  #content .sp_wpspwpost_static .wpspw-columns:nth-of-type(3),
  #content .sp_wpspwpost_static .wpspw-post-grid:nth-of-type(3) { display: block !important; }

  #content .sp_wpspwpost_static .wpspw-column,
  #content .sp_wpspwpost_static .wpspw-columns { padding-left: 10px; padding-right: 10px; }
  #content .sp_wpspwpost_static.wpspw-design-1 .wpspw-post-grid-content { margin-bottom: 40px; }

  #content .sp_wpspwpost_static.wpspw-design-1 .wpspw-post-content > div { -webkit-line-clamp: 8; min-height: calc(1.4em * 8); }
}

/* 801 - 1199px: two equal columns, hide the 3rd card, medium gutters */
@media (min-width: 801px) and (max-width: 1199px) {
  #content .sp_wpspwpost_static { margin-left: -20px; margin-right: -20px; }

  #content .sp_wpspwpost_static .wpspw-column,
  #content .sp_wpspwpost_static .wpspw-columns,
  #content .sp_wpspwpost_static .wpspw-post-grid {
    float: left !important;
    width: 50% !important;
    max-width: none !important;
    box-sizing: border-box;
  }
  #content .sp_wpspwpost_static .wpspw-column:nth-of-type(odd),
  #content .sp_wpspwpost_static .wpspw-columns:nth-of-type(odd),
  #content .sp_wpspwpost_static .wpspw-post-grid:nth-of-type(odd) { clear: left; }

  /* hide the 3rd card */
  #content .sp_wpspwpost_static .wpspw-column:nth-of-type(3),
  #content .sp_wpspwpost_static .wpspw-columns:nth-of-type(3),
  #content .sp_wpspwpost_static .wpspw-post-grid:nth-of-type(3) { display: none !important; }

  #content .sp_wpspwpost_static.wpspw-design-1 .wpspw-post-content > div { -webkit-line-clamp: 7; min-height: calc(1.4em * 7); }
}

/* 1200px and above: desktop gutters, show all cards */
@media (min-width: 1200px) {
  #content .sp_wpspwpost_static { margin-left: -30px; margin-right: -30px; }

  /* show the 3rd card */
  #content .sp_wpspwpost_static .wpspw-column:nth-of-type(3),
  #content .sp_wpspwpost_static .wpspw-columns:nth-of-type(3),
  #content .sp_wpspwpost_static .wpspw-post-grid:nth-of-type(3) { display: block !important; }

  #content .sp_wpspwpost_static.wpspw-design-1 .wpspw-post-content > div { -webkit-line-clamp: 6; min-height: calc(1.4em * 6); }
}

/* Kadence - remove 15px edge padding for this full-width row */
.kb-row-layout-id11_e57a44-19.alignfull > .kt-row-column-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/******************************* TESTIMONIALS *******************************/

/* Grid behaviour fix: maintain spacing inside flex grid */
.strong-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;   /* prevent space-around squashing margins */
  align-content: flex-start;
  row-gap: 60px;                 /* adds 60px vertical spacing between rows */
  column-gap: 30px;              /* optional horizontal gap */
	margin-top: 40px;
}

/* Individual testimonial card */
.strong-grid .wpmtst-testimonial {
  margin-bottom: 60px !important;          /* fallback for older browsers */
  padding: 25px 30px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); /* soft glow shadow */
  transition: box-shadow 0.3s ease;
}

/* Optional subtle hover lift */
.strong-grid .wpmtst-testimonial:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* Top row layout */
.wpmtst-testimonial-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* Left block: name over company */
.wpmtst-testimonial-content .testimonial-textblock {
  order: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.wpmtst-testimonial-content .testimonial-name {
  font-weight: 700;
  font-size: 1.05em;
  margin: 0 0 2px 0;
}
.wpmtst-testimonial-content .testimonial-company {
  font-size: .7em;
  color: #666;
  margin: 0;
}

/* Right block: image */
.wpmtst-testimonial-content .wpmtst-testimonial-image {
  order: 2;
  margin-left: auto;
  text-align: right;
  float: none !important;
}
.wpmtst-testimonial-content .wpmtst-testimonial-image img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

/* Full-width paragraph below */
#content .wpmtst-testimonial-content p {
  order: 3;
  flex-basis: 100%;
  margin-top: 10px;
  text-align: left;
}

/* Remove legacy clearers */
.wpmtst-testimonial-content .maybe-clear {
  display: none;
}

/* 1 column on very small screens */
@media (max-width: 700px) {
  .strong-grid .wpmtst-testimonial {
    flex: 0 1 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    float: none !important;
  }
}

/* Exactly 2 columns between 480–935 px */
@media (min-width: 701px) and (max-width: 935px) {
  .strong-grid {
    justify-content: flex-start;     /* no space-around */
    column-gap: 30px;                 /* keep your 30 px horizontal gap */
    row-gap: 0px;                    /* keep your 60 px vertical gap */
  }
  .strong-grid .wpmtst-testimonial {
    flex: 0 1 calc(50% - 15px) !important;  /* 2 cols accounting for 30 px gap */
    max-width: calc(50% - 15px) !important;
    box-sizing: border-box;
    float: none !important;                 /* kill any legacy floats */
    margin-bottom: 60px;                    /* fallback for older Safari */
  }
}

#content p.contact-icons {
	line-height: 36px;
	vertical-align: middle;
}

#content p.contact-icons img {
	line-height: 36px;
	vertical-align: middle;
	margin-right: 15px;
}