/*
Theme Name: Divi Child
Theme URI: https://Strategy7.com
Version: 1.0
Description: A Child Theme for Divi that enables Divi Builder for Custom Post Types
Author: Nagdy @ WPColt.com
Author URI: http://wpcolt.com
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: Divi
*/

h1 { font-size: 30pt; width: 100%; text-align: center; color:#213a70 }
h2 { font-size: 26pt; width: 100%; text-align: center; }
h3 { font-size: 24pt; width: 100%; text-align: left; }
h4 { font-size: 18pt; width: 100%; text-align: left; }
h5 { font-size: 14pt; width: 100%; text-align: left; font-weight: bold;}
h6 { font-size: 15pt; width: 100%; text-align: center; }
h7 { font-size: 13pt; width: 100%; text-align: left; text-decoration: underline;}

#top-menu-nav #top-menu .current-menu-item a,
#mobile_menu_slide .current-menu-item a { 
    color: #c9b144 !important; 
    opacity:1 !important;
}

#top-menu-nav #top-menu a,
#mobile_menu_slide a { 
    color: #213a70 !important; 
    opacity:1 !important;
}

#top-menu-nav #top-menu .sub-menu a,
#mobile_menu_slide .sub-menu a { 
    color: #f1ebbd !important; 
    opacity:1 !important;
}

#top-menu-nav #top-menu a:hover,
#mobile_menu_slide a:hover { 
    color: #c9b144 !important; 
    opacity:1 !important;
}

#top-menu li ul { width:320px; }
#top-menu li li a { width: 280px; }

.dwd-map-content h3 {font-size: 13px; font-weight: bold; }

#home .qem-icon { display: none; } 
#home .qem-medium { margin-left: 0; }

/* align thumbnails with post listing */
.display-posts-listing .listing-item { clear: both; padding-bottom: 20px; }
.display-posts-listing img { float: left;  padding-right: 20px; padding-bottom: 20px; }
.display-posts-listing h3 span { font-size: 16px; }
.display-posts-listing .excerpt-dash { display: none; }
.display-posts-listing a { color: #cc8100; }
.display-posts-listing a:hover { color: #333; }



/* mobile styles */
/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  body { width: 100%; }
}

@media only screen and ( min-width:981px ) {
    /* Set the slider height */
    .student_slider, .student_slider .et_pb_container { 
        height: 500px !important; 
    }
    .student_slider, .student_slider .et_pb_slide { 
        max-height: 500px; 
    }
    .student_slider .et_pb_slide_description { 
        position: relative; 
        top: 25%; 
        padding-top: 0 !important; 
        padding-bottom:0 !important; 
        height:auto !important; 
    }
}

/* --------- iPads (Portrait) ---------- */
@media only screen and (max-width: 980px) {
  .laptops {margin-top: -190px;}
  .et_pb_column_4_4 .et_pb_portfolio_grid .project {clear: none !important; margin: 0 40px 42px 0 !important;width: 27% !important;}
  #main-header div.logo_container:after { font-size: 30px; font-weight: normal; left: 0px; }
  #main-header #logo { margin-top: -5px; }
  h1 { font-size: 18pt; }
  h2 { font-size: 17pt; }
}
 
/* iPhone5 (landscape) -- */
@media only screen and (max-width: 767px) {
  .laptops {margin-top: -150px;}
  .et_pb_column_4_4 .et_pb_portfolio_grid .project { margin: 0 40px 42px 0 !important; width: 100% !important;}
  .portfolio-section .et_overlay {width: 101%;}
  .display-posts-listing img { float: none; padding-right: 0px; padding-bottom: 20px; display: block; margin: 0 auto; }
  #main-header div.logo_container:after { display: block; top: 0px; }
  #main-header #logo { float: none; margin-bottom: 5px; margin-top: 5px; }
}

/* iPhone5 (portrait) -- */
@media only screen and (max-width: 479px){
  .laptops {margin-top: -120px;}
  .portfolio-section img {max-width: 100%;}
  .display-posts-listing img { float: none;  padding-right: 0px; padding-bottom: 20px; }
}

/* Smartphones -- */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  body {
  padding: 0;
	margin: 0;
	width: 100%; 
  }
}

.small-text { font-size: 0.5em; font-weight: light; }

/* Header/Titles for Accordion Toggle */
.et_pb_toggle_title {font-weight: bold; font-style: italic; font-size: 1.1em;}

/* Close icon for Accordion Toggle */
.et_pb_toggle_open .et_pb_toggle_title:before {
  display: block !important;
  content: "\e04f";
}

/* 
** Posts with Thumbnail list
*/
ul.s7-posts-list { list-style: none; }
ul.s7-posts-list li { padding-bottom: 2em; }
ul.s7-posts-list li img { float: left; padding-right: 2em; }

/* Material elements for image/button/text combo on home page 
* https://www.elegantthemes.com/blog/divi-resources/adding-material-design-to-your-website-with-divi
*/
.material .et_pb_image{overflow:hidden}
.material .et_pb_column img{vertical-align:top;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}
.material .et_pb_column:hover img{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}
.material .et_pb_button_module_wrapper{margin-top:-26px;margin-bottom:10px !important}
.material .et_pb_button{box-shadow:0 3px 10px rgba(0,0,0,.23),0 3px 10px rgba(0,0,0,.16)}
.material .et_pb_button:hover{box-shadow:0 25px 55px 0 rgba(0,0,0,.21),0 16px 28px 0 rgba(0,0,0,.22);margin-top:-5px;margin-bottom:5px !important}
.material .et_pb_button:hover:after{line-height:1.7em;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}
.material.et_pb_row{padding:27px 15px}
.material .et_pb_column{box-shadow:0 3px 10px rgba(0,0,0,.23),0 3px 10px rgba(0,0,0,.16);-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}
.material .et_pb_column:hover{box-shadow:0 6px 20px rgba(0,0,0,.23),0 6px 20px rgba(0,0,0,.16)}

/* Add 'X' to close mobile menu */
.mobile_nav.opened .mobile_menu_bar:before { content: "\4d"; }

/* Mobile menu styles */
ul#mobile_menu { top: 40px; border: 1px #cc902a solid; background-color: #eee; }
ul#mobile_menu li a { color: #666; }
ul#mobile_menu li a:active { font-weight: bold; }

select.post-listing {
  background-color: #ffffff;
  border-color: #66afe9;
  border-radius: 4px;
  width: 100%;
  height: 38px;
  line-height: 1.3;
  font-size: 16px;
  padding: 6px 10px;
}

/* w4 post list styles */
.list-for-print tr:nth-child(n+2):nth-child(even) { background-color: #f1ebbd; }
.list-for-print th { font-size:1.15em; front-weight: bold }
.list-for-print td { vertical-align:top; font-size: 1em; }
.list-for-print td h4 {font-size: 1.1em; font-weight: bold; color: #4b7ec0;}
.list-for-print td.event-date { width: 17%;}
.list-for-print td.event-desc1 { width: 30%; }
.list-for-print td.event-desc2 { width: 36%; }
.list-for-print td.event-image { width: 17%}
.list-for-print.img-med {}
.w4pl-image {float:right;}

@media print {
  body, #page-container, table { width: 100%; margin: 0; padding: 0; color: #000; background: #fff; }
  .list-for-print table { border-collapse: collapse; }
  .list-for-print td, .list-for-print th { border: 1px #000 solid; }
  #main-header, #main-footer, .notranslate { display:none; }
  .list-for-print td.event-date { white-space: wrap; }
  .list-for-print td.event-desc { width: 47%; }
  .list-for-print tr { page-break-inside: avoid; }
  .list-noprint {display: none; }
  .list-for-print td.event-image {display: none; }

}