/*
 Theme Name:   CGIC
 Description:  CGIC child theme
 Author:       2 Dogs Media
 Author URI:   https://2dogs.media
 Template:     generatepress
 Version:      0.1
*/

.wp-block-list li {font-size:18px}

/*---blog styling ----*/
.archive.category .page-hero,
body.single-post .page-hero{
    margin-bottom:20px
}
.archive.category h2{
    margin-top:20px;
    font-size:24px
}
.archive.category .entry-summary{
    margin-top:.5em
}
body.single-post h1{
    font-size:32px
}
body.single-post .entry-content {
    padding-bottom:40px
}


/*---remove white space above footer ----*/
#page .inside-article {
    padding-bottom:0;margin-bottom:0
}

.content p a{font-style:bold}

.post-date {margin-top:-6px}


/*===== iqp fees popup table =====*/
.iqp-fees .wp-block-table td {
    border:#c8c8c8 1px solid !important;
    font-size:14px;
    padding:8px
}
.iqp-fees .wp-block-table td {
    width:12%;
   text-align:center
}
.iqp-fees .wp-block-table td:first-of-type {
    width:40%;
   text-align:left
}

/*===== post news loop grid =====*/
.wp-block-query {
    margin-bottom:40px
}
.news-item ul li.wp-block-post .wp-block-group {
    border: 1px solid #888;
    border-radius:12px;
    padding:0 !important;
    min-height:100%;
}

/*===== tabs block =====*/
.gb-tabs {margin-bottom:40px;}
.gb-tabs .gb-tabs__menu .gb-tabs__menu-item {
    color:#fff !important;
    font-size:15px;
    padding:8px 12px;
    background-color: #999;
    margin-right:10px
}
.gb-tabs .gb-block-is-current,
.gb-tabs .gb-tabs__menu .gb-tabs__menu-item:hover{
    background-color: #33bbff !important;      
}
.gb-tabs .gb-tabs__item-open {
    border: 2px solid  #33bbff
}

/*===== accordion/detail block =====*/
.wp-block-details {
    margin-bottom:15px;
}
.wp-block-details summary{
    font-weight:bold;
    font-size:20px;
    padding-bottom:10px
}
.wp-block-details p{
    padding:0 12px
}

.wp-block-details summary::marker {
  color:#ff8601;
  fill: #ff8601;
}

.wp-block-details[open] summary::marker {
  color:#33bbff;
  fill: #33bbff;
}

/*=====custom buttons =====*/
.button-orange {
    font-weight:bold;
    font-size:16px;
	color:#fff !important;
}
.button-orange:hover {
    background-color: #33bbff !important;
}

/*=====toggle blocks =====*/
.toggles .wp-block-details summary {
    padding-bottom:15px;
    font-weight:bold;
    font-size:22px !important
}
.toggles .wp-block-details p {
    font-size:18px !important;
    line-height:1.8em
}

/*===regional branch block=====*/
.branch-item {
    filter: grayscale(100%);
}
.branch-item a {
    text-decoration:none
}
.branch-item:hover {
     filter: grayscale(0%);
    color:orange;
}

/*======== footer ====*/
.footer a{
    text-decoration:none
}


/*======== mobile only styling ====*/
@media screen and (max-width: 1023px) {
 .news-item ul li.wp-block-post .wp-block-group {
    padding:12px 0 !important;
}
}
	
@media (max-width: 768px) {
  .gb-grid-wrapper img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .gb-grid-column {
    min-height: unset !important;
  }

/*----change format of tables on mobile ----*/
.wp-block-table table {
    border-left:0px !important
}
  .wp-block-table tr:first-of-type {
    display: none !important;
  }
  .wp-block-table  tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
  }
  .wp-block-table  td {
    display: block;
    text-align: right;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .wp-block-table  td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    color: #333;
  }
}

