/*
 Theme Name:   Computer Society Zimbabwe
 Theme URI:    http://webdev.co.zw
 Description:  Divi Child theme for computer society Zimbabwe
 Author:       Webdev Online Solutions
 Author URI:   http://webdev.co.zw
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  csz
*/

@import url('https://fonts.googleapis.com/css?family=Barlow');


body {
  font-size: 18px;
}

*{
  font-family: 'Barlow', sans-serif!important;
}

.csz-social-feed{
    max-height: 450px;
    overflow-y: scroll!important;
}
.csz.hero{
    width: 100%;
    min-height: 350px;
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    display: block;
    padding-top: 54px;
}
.csz-main-navigation{
    background-color: #cf4644;
    box-shadow: 0 5px 3px rgba(0,0,0,0.4);

    display: none;
}
.csz-main-navigation a {
    color: white;
}
.csz-main-navigation .container .menu-main-menu-container ul.menu{
    list-style: none;
    /* min-height: 66px; */
}

.csz-main-navigation .container .menu-main-menu-container .menu .menu-item{
    display: inline!important;
    line-height: 66px;
    padding: 0 0.375em;
}

.csz article.category-news {
  /* background-color: #3d4664;
  background-color: #6d748b; */

  background-color: #eeefee;
  border-radius: 5px;

  /* METHOD 2 MASONRY */
  /* 
  column-count:         2;
  column-gap:           0;  
  column-width: 50%; */
}

.csz article.category-news a.entry-featured-image-url {
  display: block;
  margin-bottom: 0;
  width: 40%;
  float: left;
  /* box-sizing: border-box; */
}
.csz article.category-news a.entry-featured-image-url img{
  width: 100%;
  height: auto;
}

.csz article.category-news div.post-content{
  padding-bottom: 30px;
}
.csz article.category-news div.post-content,
.csz article.category-news p.post-meta,
.csz article.category-news h4{
  padding-left: 30px; 
  padding-right: 30px; 
  float: left;
  width: 60%;
}

.csz article.category-news h4{
  padding-top: 30px; 
}

.csz article.category-news div.post-content,
.csz article.category-news h4
{
  height: auto;
  color: #404040!important;
}
.csz 
/* .csz .menu-main-menu-container */

* { box-sizing:border-box }
*:before, *:after { box-sizing:inherit }

/* Basic styles */
/* html {
  font-size: 62.5%;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  font-family: @font-family-base;
} */

/* body {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    line-height: 1.42857143;
    color: #555;
    background-color: #f7f7f7;
} */

/* @charset "UTF-8"; */
.navigation {
  /* min-height: 90px; */
  background: #cf4644;
  padding: 20px 0;
}

.cleafix::after {
  content: "";
  clear: both;
  display: table;
}

.brand {
  position: absolute;
  height: 100%;
  /* padding-left: 20px; */
  /* float: left; */
  /* height: 80px; */
  /* text-transform: uppercase; */
  /* font-size: 1.4em; */
}
.brand a{
  display: block;
}
.brand a,
.brand a:visited {
  color: #ffffff;
  text-decoration: none;
}
.brand a img {
  height: 100%;
  /* padding: .25em 0; */
  display: block;
}
.nav-list li a{
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9em;
}

.membership .et_pb_portfolio_grid_items{
  display: flex!important;
  flex-wrap: wrap;
  /* justify-content: space-between; */
}
.membership .et_pb_grid_item{
  width: 16.666666667%!important;
  margin: 0!important;
}

.membership .et_pb_button_module_wrapper  {
  display: inline;
}
.membership .et_pb_button {
padding: .25 1em!important;
font-size: 1em;
margin: 0 1em 1em 0;
}
/* .nav-container {
  max-width: 1000px;
  margin: 0 auto;
} */

nav {
  float: right;
}
nav #menu-main-menu{
  padding-left: 175px;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 100px;
}
nav ul li {
  float: left;
  position: relative;
}
nav ul li a,
nav ul li a:visited {
  display: block;
  /* padding: 0 20px; */
  padding: 0 0.5em;
  /* line-height: 90px; */
  background: #cf4644;
  color: #0c193c;
  text-decoration: none;
}
nav ul li a:hover,
nav ul li a:visited:hover {
  background: #d96b69;
  color: #0c193c;
}
nav ul li a:not(:only-child):after,
nav ul li a:visited:not(:only-child):after {
  padding-left: 4px;
  content: " ▾";
}
nav ul li ul li {
  min-width: 190px;
}
nav ul li ul li a {
  padding: 15px;
  line-height: 20px;
}

.nav-dropdown {
  position: absolute;
  display: none;
  z-index: 1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile navigation */
.nav-mobile {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  background: #cf4644;
  height: 70px;
  width: 70px;
}

@media only screen and (max-width: 798px) {
  .nav-mobile {
    display: block;
  }

  nav #menu-main-menu{
    padding-left: 0;
    padding-top: 2em;
  }

  nav {
    width: 100%;
    padding: 70px 0 15px;
  }
  nav ul {
    display: none;
  }
  nav ul li {
    float: none;
  }
  nav ul li a {
    padding: 15px;
    line-height: 20px;
  }
  nav ul li ul li a {
    padding-left: 30px;
  }

  .nav-dropdown {
    position: static;
  }
}

.csz.container{
  max-width: 1280px;
}
@media screen and (min-width: 799px) {
  .nav-list {
    display: block !important;
  }
}
#nav-toggle {
  position: absolute;
  left: 18px;
  top: 22px;
  cursor: pointer;
  padding: 10px 35px 16px 0px;
}
#nav-toggle span,
#nav-toggle span:before,
#nav-toggle span:after {
  cursor: pointer;
  border-radius: 1px;
  height: 5px;
  width: 35px;
  background: #ffffff;
  position: absolute;
  display: block;
  content: "";
  transition: all 300ms ease-in-out;
}
#nav-toggle span:before {
  top: -10px;
}
#nav-toggle span:after {
  bottom: -10px;
}
#nav-toggle.active span {
  background-color: transparent;
}
#nav-toggle.active span:before, #nav-toggle.active span:after {
  top: 0;
}
#nav-toggle.active span:before {
  transform: rotate(45deg);
}
#nav-toggle.active span:after {
  transform: rotate(-45deg);
}
section.navigation{
    position: -webkit-sticky!important;
    position: sticky!important;
    /* top: 0; */
    z-index: 999;
}
section.navigation article {
  max-width: 1000px;
  margin: 0 auto;
  /* padding: 10px; */
}

div.events {
  display: flex;
  justify-content: start;
  /* min-height: 15rem; */
  flex-wrap: wrap;
  margin: 2em 0;
}
div.events .event{
  border-top: 4px solid #cf4644;
  width: 22%;
  background: #ffffff;
  border-radius: 5px;
  padding: 1rem 2rem;
  margin: 0 2em 1em 0;

  /* Add a shadow */
  /* ganked from voyager home page */
  box-shadow: 0 10px 27px 0 rgba(154,161,171,.18);
}

.upcoming.events .event {
  border-top: 4px solid #0c193c;
}
/* .single-event.content-area {
  width: 100%;
  margin: 0px;
  border: 0px;
  padding: 0px;
}

.single-event.content-area .site {
margin:0px;
} */
.single-event #main-content .container:before {background: none;}
.events h4{
  line-height: 1.4em;
}

.csz.featured-event{
  background: rgba(255,255,255, 0.9);
  border-radius: 5px;
  display: block;
  padding: .75em 1em;
  border-top: 4px solid #cf4644;
}
.container, .et_pb_row {
  max-width: 1280px!important;
}
.csz.twitter-feed{
  max-height: 100vh;
  display: block;
  overflow-y: scroll;
}
.home .csz.twitter-feed{
  max-height: auto;
  display: inherit;
  overflow-y: visible;
}
#advanced_filter{
  padding: 0.75em 0;
}
#advanced_filter select,
#advanced_filter input{
  padding: 0.5em;
  border-radius: 2px;
}

#advanced_filter label,
#advanced_filter .dtype,
#advanced_filter .dcategory{
  margin-right: 0.5em;

}
@media screen and (max-width: 980px){
  div.events .event{
    width: 45%;
  }
}
@media screen and (max-width: 800px){
  .csz article.category-news a.entry-featured-image-url,
  .csz article.category-news div.post-content,
  .csz article.category-news h4{
    width: 50%;
  }
}
@media screen and (max-width: 640px){
  .csz article.category-news a.entry-featured-image-url{
    padding-right: 0;
  }
  .csz article.category-news a.entry-featured-image-url,
  .csz article.category-news div.post-content,
  .csz article.category-news h4{
    width: 100%;
  }
  .csz article.category-news div.post-content,
  .csz article.category-news p.post-meta,
  .csz article.category-news h4{
    padding-left: 30px;
  }
  div.events .event{
    width: 100%;
  }
}


/* Fixes */

h2.gsection_title {
  font-size: 24px !important;
}

.gform_page_fields > ul {
  padding-left: 0 !important;
}

ul.nav-list li .sub-menu {
  display: none!important;
}

ul.nav-list li:hover .sub-menu {
  display: block !important;
}

.sub-menu {
  /* position: absolute;
  min-width: 320px;
  background-color: #0d193e;
  padding: 20px; */

  position: absolute;
  min-width: 320px;
  background-color: #f3f3f3;
  padding: 20px;
  border: 1px solid#ccc1;
  z-index: 9;
}

/* Continue from here... */

#hero .header-content-container{
  width: 80%;
  position: relative;
}
#hero .et_pb_fullwidth_header_container.left{
  /* display: block; */
  min-height: 450px;
  width: 100%;
  max-width: 100%;
}

/* #hero {
  min-height: 450px;
} */

#hero .header-content{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#hero section {
  display: block !important;
}

/* posts and pages */
.single #page-container, .page #page-container { 
	padding-top:0 !important; 
}  

/* homepage */
.home #page-container { 
	padding-top:0 !important; 
} 

@media only screen and ( max-width:981px ) {
	
	/* mobile posts and pages */
	.single #page-container, .page #page-container { 
		padding-top:0 !important; 
	}  
	
	/* mobile homepage */
    .home #page-container { 
		padding-top:0 !important;
	} 
}

@media screen and (max-width: 480px) {
  #hero h1.et_pb_module_header{
    font-size: 3em!important;
  }
  #hero span.et_pb_fullwidth_header_subhead{
    font-size: 1.4em!important;
  }
}


.et_pb_pricing_content {
  display: none;
}

.et_pb_pricing_table {
  border: 1px solid #0d1a3d;
}

.et_pb_pricing_heading {
  background-color: #0d1a3d;
}

.et_pb_pricing_heading .et_pb_pricing_title, .et_pb_pricing_heading h2 {
  font-size: 28px !important;
}

.et_pb_sum {
  font-size: 50px;
  font-weight: 700;
  color: #0d1a3d;
}

.et_pb_team_member_image {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 30px #717171;
}

.et_pb_team_member_description {
  text-align: center !important;
}

.et_pb_pricing_content_top {
  border-bottom: none;
}

.et_pb_button:hover, .et_pb_button:focus {
  padding: 0.5rem 1.5rem !important;
}

.et_pb_button::after, .et_pb_button::before {
  display: none;
}

#main-content {
  background: transparent url("./images/csz-watermark.png") right top no-repeat;
}

.et_pb_section {
    background-color: transparent;
}


#hero h1.et_pb_module_header, #hero .et_pb_fullwidth_header_subhead {
  text-align: center;
}

#hero h1.et_pb_module_header {
  font-size: 1.5rem !important;
  font-weight: 300;
  letter-spacing: 1px;
}

#hero .et_pb_fullwidth_header_subhead {
  font-size: 2.7rem !important;
  font-weight: 600 !important;
  text-shadow: 0 0 20px rgba(0,0,0,0.5);
  max-width: 870px;
  margin: auto;
}

#hero .et_pb_button_one {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

#hero .et_pb_button_one:hover {
  background: #cd4444 !important;
}

.readmore-section {
  height: 450px;
  overflow: hidden;
}

.readmore-section::after {
  bottom: 0;
  content: '';
  display: block;
  height: 10rem;
  position: absolute;
  width: 100%;
  background: -webkit-linear-gradient(top,rgba(255,255,255,0) 0,rgba(255,255,255,0.7) 31%,white 100%);
  background: linear-gradient(to bottom,rgba(255,255,255,0) 0,rgba(255,255,255,0.7) 31%,white 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffffff',endColorstr='#ffffff',GradientType=0);
  visibility: visible;
  z-index: 9;
}

.readmore-section__button {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  display: table;
  z-index: 10;
}

.readmore-section__button:hover {
  background: #cd4444;
}