/*
 Theme Name: Divi Child Schools
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme for Schools
 Author: Elegant Themes
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */







/*Float featured news image to left on front page - class added to block*/
@media only screen and (min-width: 1080px) {
    .asdn-ft-news .et_pb_post.has-post-thumbnail .entry-featured-image-url {
        float: left;
        width: 28%;
        margin-right: 4%;
    }
    .asdn-ft-news .et_pb_post.has-post-thumbnail:not(.format-gallery) > .post-content {
        padding-left: 32%;
    }
}

/*----------------------------------*/ 




/*Shift the menus to left justified*/
#top-menu, .et-menu, nav#top-menu-nav, nav.et-menu-nav {
    /* float: none!important;  this messes up search icon needed? */
    text-align: left;
}
#et-top-navigation {
    width: 100%;
}

#et-secondary-menu {
float: left;
padding-left: 40px;
}

/*----------------------------------*/ 





/*Ensures that front page news columns have same height regardless of content size. The asdnfrontnews class is added in the divi blocks*/
.asdnfrontnews .category-news {
	min-height:430px;
}

/*----------------------------------*/ 





/*Sidebar adjustments*/
/*Put dates of sidebar news on their own lines*/
.wp-block-latest-posts__post-date {
	display:block;
}


/*Bold titles of news items on sidebar*/
.wp-block-latest-posts__post-title {
font-weight: bold;
}

/*Reduce space between Latest News title and the news list on sidebar*/
#block-2.et_pb_widget.widget_block {
	margin-bottom: 10px;
}

/*Match style of events sidebar widget to recent news widget*/
h2.tribe-events-widget-events-list__header-title {
	font-size: 23px!important;
	font-family: DM Sans, sans-serif!important;
	font-weight: 500!important;
}
/*----------------------------------*/ 






/*Remove featured images from seaarch results*/
/*In future should try and display just smaller*/
.search .entry-featured-image-url {
 display: none;
}

/*----------------------------------*/ 





/*Teacher posts-pages adjustments*/
/*Change tag color so more noticeable on teacher posts/pages*/
/*The asdntag is applied via plugin for author pages and via Divi template for posts*/
.asdntag a {
	color: #00cc00 !important;
}
.asdntag:link {
	color: #00cc00 !important;
}

.asdntag:visited {
	color: #00cc00 !important;
}


/*Change author color on teacher posts so more noticeable as a link*/
/*The asdntpauthor class is applied via the template for posts in teacher category*/
.asdntpauthor a {
	color: #1e73be !important;
}
.asdntpauthor:link {
	color: #1e73be !important;
}

.asdntpauthor:visited {
	color: #1e73be3 !important;
}


/*Styling for custom search box on teacher page landing page */

.tsearchform {
line-height: 1;
  position: relative;
  padding: 0 !important;
}

.tsearchbox {
background-image: none !important;
  color: #333;
  padding: 0 0px;
  margin: 0;
  outline: 0 !important;
  font-size: 14px !important;
  height: 36px;
  width: 300px;
  min-height: 0;
  line-height: 1;
}

.tsearchbutton {
font-family: 'ETMODULES';	
    font-size: 34px;
	padding-left: 0px;
	margin-left: 0px;
	border: none;
	position: absolute;
	left: 264px;
}

/*----------------------------------*/ 






/*------Replace the Divi Search Button with an icon------*/ 
/* asdn-icon-search css class added to Divi search module */
    
    /*Hide the search button*/
    .asdn-icon-search input.et_pb_searchsubmit,
    .widget_search input#searchsubmit {
        background: transparent;
        color: transparent;
        border: none;
        width: 55px;
        z-index: 2;
    }
    /*Add padding to the search input field*/
    .asdn-icon-search input.et_pb_s,
    .widget_search input#s {
        padding-right: 55px !important;
    }
    /*Add the icon*/
    .asdn-icon-search .et_pb_searchform:before,
    .widget_search::before {
        content: '\55';
        position: absolute;
        font-family: 'ETModules';
        z-index: 1;
        right: 0;
        font-size: 20px;
        padding: 8px 20px;
    }

/*---------------------------------------------------------------*/



/*Make mobile menu collapsable and collapsed by default*/

/*change hamburger icon to x when mobile menu is open*/

#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
	content: '\4d';
}

/*adjust the new toggle element which is added via jQuery*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
	width: 44px;
	height: 100%;
	padding: 0px !important;
	max-height: 44px;
	border: none;
	position: absolute;
	right: 0px;
	top: 0px;
	z-index: 999;
	background-color: transparent;
}

/*some code to keep everyting positioned properly*/

ul.et_mobile_menu>li.menu-item-has-children,
ul.et_mobile_menu>li.page_item_has_children,
ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.page_item_has_children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children {
	position: relative;
}

/*remove default background color from menu items that have children*/

.et_mobile_menu .menu-item-has-children>a,
.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children>a {
	background-color: transparent;
}

/*hide the submenu by default*/

ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
	display: none !important;
	visibility: hidden !important;
}


/*show the submenu when toggled open*/

ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
	display: block !important;
	visibility: visible !important;
}

/*adjust the toggle icon position and transparency*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
	text-align: center;
	opacity: 1;
}

/*submenu toggle icon when closed*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
	top: 10px;
	position: relative;
	font-family: "ETModules";
	content: '\33';
	color: #00d263;
	background: #f0f3f6;
	border-radius: 50%;
	padding: 3px;
}

/*submenu toggle icon when open*/

ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after {
	content: '\32';
}


/*add point on top of the menu submenu dropdown*/

.et_pb_menu_0.et_pb_menu .et_mobile_menu:after {
	position: absolute;
	right: 5%;
	margin-left: -20px;
	top: -14px;
	width: 0;
	height: 0;
	content: '';
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-bottom: 20px solid #ffffff;
}

/*adjust the position of the hamburger menu*/

.mobile_menu_bar {
	position: relative;
	display: block;
	bottom: 10px;
	line-height: 0;
}


/*force the background color and add a rounded border*/

.et_pb_menu_0.et_pb_menu .et_mobile_menu,
.et_pb_menu_0.et_pb_menu .et_mobile_menu ul {
	background-color: #ffffff!important;
	border-radius: 10px;
}


/*---------------------------------------------------------------*/





/*** Change Number of Mobile Columns By DiviMundo.com ***/
/* 2 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .two-col-mob .et_pb_column {
        width:47.25% !important;
    }
    
html .et-db .two-col-mob .et_pb_column:nth-last-child(-n+2) {
        margin-bottom:0;
    }
    html .et-db .two-col-mob .et_pb_column:not(:nth-child(2n)) {
            margin-right:5.5% !important;
    }
}
/*---------------------------------------------------------------*/