/*
 Theme Name:   Divi Child
 Theme URI:    mediagb.org
 Description:  Divi Child Theme
 Author:       Pomegranite
 Author URI:   https://www.pomegranite.co.za
 Template:     Divi
 Version:      1.3.2
 Text Domain:  divi-child
*/

/* Custom styles below */





/* Typography
 * -------------------------------------------------------------  */

.entry-content h2 {
	font-size: 40px;
	line-height: 1.2;
}
.entry-content h3 {
	font-size: 24px; 
	line-height: 1.3;
}
.entry-content h4 {
	font-weight: 800; 
	font-size: 20px; 
	line-height: 1.3;
}
.large-highlight, .large-highlight p {
	font-weight: 400; 
	font-size: 24px; 
	line-height: 1.3; 
}
.legal h3 strong, .legal h3 b {
    font-weight: 700;
}




/* Other / General 
 * -------------------------------------------------------------  */

.entry-content a:hover, #footer-bottom a:hover, .disclaimer a:hover, .subscribe-form a:hover {
    color: #003399;
    text-decoration: underline;
	opacity:1; 
}
.bg-column {
	display: block !important; 
	min-height: 320px !important; 
}

.media-actor a {
	text-decoration: underline;
	font-family: 'Montserrat', sans-serif; 
}
.media-actor a:hover {
	text-decoration: underline;
	color: #003399;
}
.media-actor {
    display: flex;
    flex-direction: column;
}
.media-actor .et_pb_module:last-child {
    margin-top: auto;
}
.et_pb_text_inner ul li, .et_pb_text_inner ol li {
    line-height: 1.3;
    margin-bottom: 16px;
}
.supported a {
	text-decoration: underline;
}
.supported a:hover {
	color: #fff;
	text-decoration: none;
}
.board-member img {
	max-width: 356px;
}
.board-member {
	max-width: 356px;
}

.focus-areas .et_pb_image .et_pb_image_wrap img[src*=".svg"], .focus-areas img {
	max-width: 100px !important; 
	width: 100px !important; 
}
	.profile-card-row img, .media-actor img, .media-actor .et_pb_image .et_pb_image_wrap img[src*=".svg"] {
	max-width: 120px !important; 
	width: 120px !important;  
}

/* Header
 * -------------------------------------------------------------  */
.et-fixed-header #top-menu li.current-menu-ancestor>a, .et-fixed-header #top-menu li.current-menu-item>a, .et-fixed-header #top-menu li.current_page_item>a {
    color: #e30613 !important;
    font-weight: 700 !important;
}
#top-menu li.current-menu-ancestor>a, #top-menu li.current-menu-item>a, #top-menu li.current_page_item>a {
	font-weight: 700;
}
#top-menu li a:hover {
    font-size: 18px;
    color: #e30613;
    opacity: 1 !important; 
	background: none; 
}
.et_pb_menu_visible #et_search_icon {
    transform: scaleX(-1);
}



/* Resources
 * -------------------------------------------------------------  */

.resource-image img {
	border-radius: 32px !important; 
}



/* Page Headers (Hero / Sliders)
 * -------------------------------------------------------------  */

#page-header {
	min-height: 720px;
    display: flex;
    align-items: center;
}

/* Gridbuilder */
.wpgb-facet .wpgb-facet-title {
    font-size: 19px !important;
    margin: 0 0 8px !important;
    font-weight: 700 !important;
}
.wpgb-grid-3 .wpgb-area-top-1 {
    background: #f7f7f7;
    padding: 32px;
    border-radius: 32px;
}
.wpgb-facet-9 {
    display: flex;
    justify-content: center;
    align-items: center;
}



/* Homepage
 * -------------------------------------------------------------  */

#hero-slider h1 {
	font-size: 56px;
	line-height: 1.1; 
	margin-bottom: 8px;
}
.et-pb-controllers a {
    background-color: #ccc;
    border-radius: 32px;
    width: 16px;
    height: 16px;
    margin-right: 8px;
}
.et-pb-controllers .et-pb-active-control {
    background-color: #C7A008;
}
.et_pb_slide_description .et_pb_slide_title {
	text-shadow: none; 
}
.et_pb_slide_title h1 a:hover, .et_pb_slide_title a:hover {
	color: #fff!important; 
	text-decoration: none !important; 
	pointer-events:none!important; 
}
.custom-sidebar .et-pb-post, .custom-sidebar article {
	margin-bottom: 0 !important; 
}




/* Footer 
 * -------------------------------------------------------------  */

#footer-bottom {
    background-color: #F7F7F7 !important;
	display: none; 
}



/* Forms, Buttons & WPGridbuilder
 * -------------------------------------------------------------  */

.wpgb-facet ul .wpgb-button {
    border-radius: 32px !important;
    padding: 16px 32px !important; 
    position: relative;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
    font-size: 19px !important;
    font-weight: bold !important;
}
.wpgb-facet .wpgb-button-label {
    font-size: 19px !important; 
    font-weight: bold !important; 
    font-family: 'Montserrat', sans-serif;
}
.wpgb-facet button.wpgb-button {
    font-size: 19px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: bold !important;
    border-radius: 32px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}
.wpgb-facet button.wpgb-button:hover {
 background-color: #003399 !important; 
}
button.wpgb-reset {
	font-size: 16px !important; 
	padding-top: 10px !important; 
	padding-bottom: 10px !important; 
}
body .et_pb_button {
	min-width: 220px;
	text-align: center; 
}
body .et_pb_button:hover {
	text-decoration: none; 
}
.gform_wrapper .gform_page_footer input[type=submit], .gform_footer input[type="submit"].gform_button {
    display: inline-block;
    background-color: #e30613 !important;
    color: #ffffff;
    padding: 22px 30px !important;
    font-size: 19px !important;
    font-weight: 500;
    line-height: 1.7em;
    border-radius: 32px !important;
    cursor: pointer;
    transition: all 300ms ease 0ms;
    appearance: none;
    min-width: 220px !important;
    font-weight: bold !important;
    font-family: 'Montserrat', sans-serif !important;
}
.gform-theme--foundation .gfield .ginput_password.large, .gform-theme--foundation .gfield input.large, .gform-theme--foundation .gfield select.large, .gform-theme--foundation .gfield textarea.medium {
    background: #F7F7F7;
    border: none;
    border-radius: 30px;
    color: #4D4D4F;
    min-height: 56px;
    font-size: 19px;
    padding-left: 20px;
}

.gform_wrapper .gform_footer input[type=submit]:hover,
.gform_wrapper .gform_page_footer input[type=submit]:hover {
    background-color: #003399!important;
    color: #fff;
}
.gform_required_legend {
	display: none; 
}

/* increase tickbox font size - Contact page form */
#label_2_6_1 {
    font-size: 19px;
    color: #4d4d4f;
}
#choice_2_6_1 {
	top: 4px;
    display: block;
    position: relative;
}
span.nav-previous a, span.nav-next a {
	background: #e30613; 
	padding: 16px 24px !important; 
	border-radius: 32px; 
}
span.nav-previous a:hover, span.nav-next a:hover {
	background: #003399; 
}
/* WPML
 * -------------------------------------------------------------  */

.wpml-ls-native {
    font-size: 16px;
    background: #003399;
    color: #fff !important;
    padding: 8px !important;
    border-radius: 24px;
    padding-left: 12px !important;
    padding-right: 12px !important;
}
.wpml-ls-native:hover {
    background: #e30613;
}
.otgs-development-site-front-end, .wpml-ls-statics-footer {
	display: none; 
}

html[lang="pt-PT"] .wpgb-facet-2 .wpgb-button input[name="resource_category_filters"][value=""] + .wpgb-button-label {
    font-size: 0 !important;
    height: 26px;
}

html[lang="pt-PT"] .wpgb-facet-2 .wpgb-button input[name="resource_category_filters"][value=""] + .wpgb-button-label::after {
    content: "Todos";
    font-size: 19px;
}


/* Desktop only equal-height behaviour */
@media (min-width: 981px) {

  .gb-equal-slider-row {
    display: flex;
    align-items: stretch;
  }
  .gb-equal-slider-row > .et_pb_column {
    display: flex;
    flex-direction: column;
  }
  .gb-equal-slider-row .et_pb_column:last-child {
    flex: 1;
  }
  .gb-equal-slider-row .et_pb_slider {
    flex: 1;
    height: 100%;
  }
  .gb-equal-slider-row .et_pb_slides,
  .gb-equal-slider-row .et_pb_slide {
    height: 100%;
  }
}
/* RESPONSIVE 
 * -------------------------------------------------------------- */

/* Desktop only
 * -------------------------------------------------------------  */
@media only screen and (min-width: 1025px) {
	
}
/* Tablet / iPad
 * -------------------------------------------------------------  */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
	
.focus-areas .et_pb_image .et_pb_image_wrap img[src*=".svg"] {
	max-width: 100px; 
	width: 100px; 
}
.bg-column {
	display: block !important; 
	min-height: 480px !important; 
}
    .focus-areas .et_pb_row {
        display: flex;
        flex-wrap: wrap;
    }

    .focus-areas .et_pb_column_1_3 {
        width: 33.3333% !important;
        margin-right: 0 !important;
        margin-bottom: 30px;
        flex: 0 0 33.3333%;
    }

    .focus-areas .et_pb_image {
        text-align: center;
    }

    .focus-areas .et_pb_text {
        text-align: center;
    }
.focus-areas .et_pb_column_1_3 {
        padding:0 15px;
        box-sizing:border-box;
    }
	.focus-areas .et_pb_row {
		width: 96%; 
	}
.focus-areas .et_pb_column_1_3 p {
	text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
	}
	
.board-member img {
	max-width: 100%;
}
.board-member {
	max-width: 100%;
}

}
/* Smartphone/Mobile
 * -------------------------------------------------------------  */
@media only screen and (min-width: 300px) and (max-width: 767px) {

#hero-slider h1, #hero-slider h2 {
	font-size: 30px !important; 
	line-height: 1.1; 
	margin-bottom: 8px;
}
	#hero-slider .et_pb_slide_content, #hero-slider .et_pb_slide_content p {
		font-size: 20px !important; 
		line-height: 26px!important; 
	}
#page-header {
	min-height: 480px;
    display: flex;
    align-items: center;
}
.entry-content h2 {
    font-size: 32px;
}
.et_mobile_menu .menu-item-has-children>a {
    background-color: transparent;
}
.et_mobile_menu li a, .nav li li a {
    font-size: 18px;
}
.large-highlight, .large-highlight p {
    font-size: 22px;
}
.et_mobile_menu li a {
    border-bottom: none;
}
  #footer-bottom .et_pb_menu__menu {
    display: flex !important;
  }

  #footer-bottom .et_mobile_nav_menu {
    display: none !important;
  }
  #footer-bottom .et_pb_menu__menu {
    flex-wrap: wrap;
    justify-content: center;
  }
body .et_pb_button, .gform_wrapper .gform_page_footer input[type=submit], .gform_footer input[type="submit"].gform_button {
	min-width: 100% !important; 
	max-width: 100%; 
	width: 100% !important; 
}
.gform-theme--foundation #field_submit, .gform-theme--foundation .gform_footer, .gform-theme--foundation .gform_page_footer {
    display: block;
    width: 100%;
}
span.nav-previous a, span.nav-next a {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    min-width: 100%;
}
.nav-previous, .nav-next {
    float: none;
    width: 100%;
    display: block;
}
.wpgb-facet .wpgb-inline-list {
    display: block !important; 
    text-align: center !important; 
}
	
.focus-areas .et_pb_image .et_pb_image_wrap img[src*=".svg"], .focus-areas .et_pb_image img {
	max-width: 80px !important; 
	width: 80px !important;  
}
	.profile-card-row img {
	max-width: 120px !important; 
	width: 120px !important;  
}
}

/* End Responsive
 * -------------------------------------------------------------  */
