/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/* Custom Block Styles */

/* Fact Boxes */

/* Blue Default */

.wp-block-group.is-style-blue-fact-left, 
.wp-block-group.is-style-blue-fact-right, 
.wp-block-group.is-style-blue-fact-full,
.factbox.blue /* Legacy Style */
{
	background: #385988;
	border-radius: 3px;
	color: white;
	padding: 20px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.is-style-blue-fact-left h2, 
.is-style-blue-fact-left h3, 
.is-style-blue-fact-left h4, 
.is-style-blue-fact-left h5, 
.is-style-blue-fact-left a,
.is-style-blue-fact-right h2, 
.is-style-blue-fact-right h3, 
.is-style-blue-fact-right h4, 
.is-style-blue-fact-right h5,
.is-style-blue-fact-right a,
.is-style-blue-fact-full h2, 
.is-style-blue-fact-full h3, 
.is-style-blue-fact-full h4, 
.is-style-blue-fact-full h5,
.factbox.blue h2, /* Legacy Style */
.factbox.blue h3, /* Legacy Style */
.factbox.blue h4 /* Legacy Style */
{
	color: white;
}

.is-style-blue-fact-full a,
.is-style-blue-fact-left a,
.is-style-blue-fact-right a,
.is-style-blue-fact-full li a,
.is-style-blue-fact-left li a,
.is-style-blue-fact-right li a,
.factbox.blue a, /* Legacy Style */
.factbox.blue li a /* Legacy Style */
{
  color: white;
  text-decoration: underline;
}

/* Green Default */

.wp-block-group.is-style-green-fact-left, 
.wp-block-group.is-style-green-fact-right, 
.wp-block-group.is-style-green-fact-full
{
	background: #e2fae1;
	border-radius: 3px;
	color: #266d51;
	padding: 20px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.is-style-green-fact-left h2, 
.is-style-green-fact-left h3, 
.is-style-green-fact-left h4, 
.is-style-green-fact-left h5, 
.is-style-green-fact-left a,
.is-style-green-fact-right h2, 
.is-style-green-fact-right h3, 
.is-style-green-fact-right h4, 
.is-style-green-fact-right h5,
.is-style-green-fact-right a,
.is-style-green-fact-full h2, 
.is-style-green-fact-full h3, 
.is-style-green-fact-full h4, 
.is-style-green-fact-full h5
{
	color: #266d51;
}

.is-style-green-fact-full a,
.is-style-green-fact-left a,
.is-style-green-fact-right a,
.is-style-green-fact-full li a,
.is-style-green-fact-left li a,
.is-style-green-fact-right li a
{
  color: #266d51;
  text-decoration: underline;
}

/* Yellow Default */

.wp-block-group.is-style-yellow-fact-left, 
.wp-block-group.is-style-yellow-fact-right, 
.wp-block-group.is-style-yellow-fact-full,
.factbox.yellow /* Legacy Style */
{
	background: #fdcf41;
	border-radius: 3px;
	color: #333;
	padding: 20px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.is-style-yellow-fact-left h2, 
.is-style-yellow-fact-left h3, 
.is-style-yellow-fact-left h4, 
.is-style-yellow-fact-left h5, 
.is-style-yellow-fact-left a,
.is-style-yellow-fact-right h2, 
.is-style-yellow-fact-right h3, 
.is-style-yellow-fact-right h4, 
.is-style-yellow-fact-right h5,
.is-style-yellow-fact-right a,
.is-style-yellow-fact-full h2, 
.is-style-yellow-fact-full h3, 
.is-style-yellow-fact-full h4, 
.is-style-yellow-fact-full h5,
.is-style-yellow-fact-full a 
{
	color: #333;
}


/* Left */
.wp-block-group.is-style-blue-fact-left, 
.wp-block-group.is-style-yellow-fact-left,
.wp-block-group.is-style-green-fact-left,
.factbox.left /* Legacy Style */
{
	float: left;
	margin: 10px 15px 15px 0 !important;
	width: 50%;
}

/* Right */
.wp-block-group.is-style-blue-fact-right, 
.wp-block-group.is-style-yellow-fact-right,
.wp-block-group.is-style-green-fact-right,
.factbox.right /* Legacy Style */
{
	float: right;
	margin: 10px 0 15px 15px !important;
	width: 50%;
}

/* Full */
.wp-block-group.is-style-blue-fact-full, 
.wp-block-group.is-style-yellow-fact-full,
.wp-block-group.is-style-green-fact-full 
{
	float: none;
	width: 100%;
}


.is-style-yellow-fact-full a,
.is-style-yellow-fact-left a,
.is-style-yellow-fact-right a,
.is-style-yellow-fact-full li a,
.is-style-yellow-fact-left li a,
.is-style-yellow-fact-right li a,
.factbox.yellow a, /* Legacy Style */
.factbox.yellow li a /* Legacy Style */
{
  color: #333;
  text-decoration: underline;
}
/* Legacy Factbox Styling */

/* Content fact boxes */
.factbox {
  width: 100%;
  padding: 20px;
  border-radius: 3px;
  margin: 10px 0 15px 0;
}

section.factbox ul,
section.factbox ol {
  padding-left: 30px !important;
  padding-bottom: 0 !important;
  margin: 15px 0;
}

/* Images */

.wp-block-image img {
  width: 100%;
}

/* Caption general styling */
figcaption.wp-element-caption {
  margin-top: 0;
  background: #eee;
  text-align: left;
  padding: 10px;
  font-size: 14px;
  color: #333;
  font-style: italic;
}
/* Image Full */

.is-style-image-full img {
  width: 100%;
}
.is-style-image-full img,
.is-style-image-left img,
.is-style-image-right img 
{
  border-radius: 3px;
}
.is-style-image-full-caption img,
.is-style-image-left-caption img,
.is-style-image-right-caption img
{
  border-radius: 3px 3px 0 0;
}
.is-style-image-full-caption figcaption.wp-element-caption
{
  border-radius: 0 0 3px 3px !important;
}

.is-style-image-left,
.is-style-image-left-caption
{
  width: 50%;
  float: left;
  margin: 0 15px 0 0;
}

.wp-block-image.is-style-image-right-caption
{
  width: 50%;
  float: right;
  margin: 0 0 0 15px;
}

.is-style-image-left-caption figcaption.wp-element-caption,
.is-style-image-right-caption figcaption.wp-element-caption 
{
  margin: 0;
  border-radius: 0 0 3px 3px;
}

/* Blockquotes */
blockquote.wp-block-quote {
  border-color: #006eb6;
  border-left-width: 5px;
  padding-left: 20px;
}

blockquote.cite, blockquote.wp-block-quote p {
  font-weight: bold;
}

blockquote.cite cite, blockquote.wp-block-quote cite {
  font-weight: normal;
  font-size: 14px;
  font-style: italic;
}
/* Blockquotes */

/* Tables Default */

.wp-block-table thead {
  border: 1px solid lightgrey;
}
.text-content table,
.is-style-stripes table
{
  color: #333;
  border: 1px solid grey;
  border-collapse: collapse;
  margin-bottom: 20px;
  width: 100%;
}
.text-content table thead th,
.text-content table tfoot th,
.text-content .is-style-stripes table thead th,
.text-content .is-style-stripes table tfoot th
{
  color: #fff;
  background: #385988;
  text-align: left;
}

.text-content .is-style-stripes table th,
.text-content .is-style-stripes table td,
.text-content .is-style-stripes table th,
.text-content .is-style-stripes table td,
.text-content .is-style-regular table th,
.text-content .is-style-regular table td,
.text-content .is-style-regular table th,
.text-content .is-style-regular table td

{
  padding: 0.5em;
  border: 1px solid lightgrey;
}
.text-content table.stripes tbody tr:nth-of-type(odd),
.text-content .is-style-stripes table tbody tr:nth-of-type(odd)
{
  background: #ecedee !important;
}


/* Buttons */
.button-in-content,
.is-style-nvl-primary-btn .wp-element-button 
{
  font-size: 18px;
  border: 1px solid #006eb6;
  background-color: #006eb6;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: background-color 0.2s ease; 
  margin: 20px 0;
  display: inline-block;
  line-height: 1.6em;
  
}

.button-in-content:hover, 
.is-style-nvl-primary-btn .wp-element-button:hover 
{
  background-color: transparent;
  color: #006eb6;
  text-decoration: none !important;
}

/* Custom Block Styles Mobile */
@media all and (max-width: 980px) {
	
	/* Fact Boxes Default Full */
	.wp-block-group.is-style-blue-fact-left, 
	.wp-block-group.is-style-blue-fact-right, 
	.wp-block-group.is-style-yellow-fact-left, 
	.wp-block-group.is-style-yellow-fact-right,
  .factbox.left, /* legcy style */
  .factbox.right /* legcy style */
	{
		float: none;
		margin: 0 0 15px 0 !important;
		width: 100%;
	}


  /* Images default styles mobile */
  .is-style-image-left,
  .is-style-image-left-caption,
  .is-style-image-right,
  .is-style-image-right-caption 
  {
    float: none;
    margin: 0 0 15px 0;
    width: 100%;
  }
	
	/* Images full width too */ 
	.is-style-image-left img,
	.is-style-image-left-caption img,
	.is-style-image-right img,
	.is-style-image-right-caption img
	{
		width: 100%;
	}
}




@media (max-width: 1024px) {
  .et_monarch
    .et_social_mobile_button.et_social_active_button
    + .et_social_mobile
    .et_social_heading {
    display: none;
  }
}

.one_half,
.one_third,
.two_third,
.one_fourth,
.three_fourth {
  margin-right: 2% !important;
}
.one_third {
  width: 32% !important;
}
.one_half {
  width: 49% !important;
}

@media only screen and (max-width: 980px) {
  .one_half,
  .two_half,
  .one_third,
  .two_third,
  .one_fourth,
  .two_fourth,
  .three_fourth {
    width: 100% !important;
  }
}





/* Text links: hover state only */
.brxe-text a:not(.bricks-button):not(.brxe-button):hover,
.brxe-text-basic a:not(.bricks-button):not(.brxe-button):hover,
.brxe-post-content:not([data-source="bricks"]) a:not(.bricks-button):not(.brxe-button):hover,
.brxe-post-comments .comment-content a:not(.bricks-button):not(.brxe-button):hover,
a.brxe-text:not(.bricks-button):not(.brxe-button):hover,
a.brxe-text-basic:not(.bricks-button):not(.brxe-button):hover,
a.brxe-text-link:not(.bricks-button):not(.brxe-button):hover {
  text-decoration-line: underline;
}