/*
 Theme Name:     Divi NSO
 Theme URI:      https://nso.spc.int
 Description:    Divi Child Theme for National Statistics Office
 Author:         SDD Pacific Community
 Author URI:     https://sdd.spc.int
 Template:       Divi
 Version:        1.2.7
*/


/* Theme customization starts here
------------------------------------------------------- */

#left-area .et_pb_row {width: 100%;}

figure {
	margin: 0
}

#left-area ul,
.comment-content ul,
.entry-content ul,
.et-l--body ul,
.et-l--footer ul,
.et-l--header ul,
body.et-pb-preview #main-content .container ul {
	padding-left: 1.25em;
}

.has-medium-font-size {
    line-height: 1.45em;
}

.wp-block-separator {
  border: 0 none;
  border-bottom: 1px solid transparent;
  margin: 1.25rem auto;
}
.wp-block-separator.is-style-default {
  width: 25%;
  border-bottom-color: #ccc;
}
.wp-block-separator.is-style-wide {
  width: 100%;
  margin: 2rem 0;
  border-bottom-color: #ccc;
}
.wp-block-separator.is-dots {
  background: none;
  border: none;
  text-align: center;
  max-width: none;
  line-height: 1;
  height: auto;
  margin: 1rem 0 2rem;
}
.wp-block-separator.is-style-dots:before {
  content: "\00b7 \00b7 \00b7";
  color: #999;
  font-size: 20px;
  letter-spacing: 1em;
  padding-left: 2em;
  font-family: serif;
}

h1 a.btn-admin {
  font-size: 40%;
  padding: 1px 5px;
  font-weight: normal;
  border: 1px solid #c00;
  background-color: #c33;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .5;
  float: right;
  line-height: normal;
  margin-top: .3rem;
}
h1 a.btn-admin:hover {
  opacity: 1;
}

.nso-blog-aside {
  padding: 20px 0 40px;
}

img.nso-thumbnail {
  border: 1px solid #e3e3e3;
  border-bottom: 0;
  margin: 0 auto;
  display: block;
}

body.category .et_pb_tabs {
	border: 0 none;
}
body.category ul.et_pb_tabs_controls {
	background-color: transparent;
}
body.category .et_pb_tabs_controls li {
	border-top: 4px solid #ccc;
  margin: 0 4px 0 0;
  border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9 !important;
}
body.category .et_pb_tabs_controls li:first-child {
	margin-left: 1rem;
}
body.category .et_pb_tabs_controls li.et_pb_tab_active {
	border-top: 4px solid #369;
	background-color: #fff;
}
body.category .et_pb_tabs_controls li a {
	padding: 8px 30px 8px;
	font-size: 110%;
	color: #999;
}
body.category .et_pb_tabs_controls li a:hover {
	color: #666;
}
body.category .et_pb_all_tabs {
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: 0 none;
}
body.category .et_pb_all_tabs .wpfd-content-tree {
  margin-top: 0;
}
.et_pb_widget.widget_recent_entries li {
  border-bottom: 1px solid #eee;
  padding: 6px 0;
  margin: 0;
}

.et_pb_widget.widget_recent_entries li .post-date {
  font-size: smaller;
  display: block;
}

.nso-categories {

}
.nso-categories h3 a {
	font-size: 1.15rem;
	color: #333 !important;
}

.nso-cat-title {
	margin: 0 0 1.5rem;
}

/* NSO Block and Padding */
.nso-block {
	background-color: #f9f9f9;
  border: 1px solid #eee;
}
.nso-padding {
  padding: 1em 20px 1.5em;
}
@media only screen and (max-width: 600px) {
  .advgb-recent-posts-block.list-view .advgb-recent-posts .advgb-recent-post {
    display: block;
  }
  .advgb-recent-posts .advgb-recent-post .advgb-post-thumbnail a {
    width: 100%;
  }
  .advgb-recent-posts .advgb-recent-post .advgb-post-thumbnail img {
    width: 100%;
    margin-bottom: 1em;
  }
}
.nso-block .advgb-recent-posts-block.grid-view.columns-1 .advgb-recent-posts .advgb-recent-post,
.nso-block .advgb-recent-posts-block.list-view .advgb-recent-posts .advgb-recent-post {
  border: 1px solid #d6d6d6;
  background-color: #fff;
  padding: 20px;
}
.nso-block .advgb-post-wrapper > .advgb-post-info {
  margin: -2px 0 -6px;
  font-size: .8rem;
  opacity: .8;
}

/* Category page columns */
body.category .nso-column.one-third {
  width: 100%;
  margin: 2em 0;
}
body.category .nso-column.two-third {
  width: 100%;
  margin: 2em 0;
}

@media all and (min-width: 981px) {
  .nso-column {
    min-height: 250px;
  }
  body.category .nso-column.one-third {
    width: 33%;
    margin: 0 0 0 67%;
  }
  body.category .nso-column.two-third {
    float: left;
    width: 60%;
    margin: 0;
  }
}

.nso-column > h1, .nso-column > h2, .nso-column > h3,
h2.nso-section-title {
	color: #555;
  font-size: 22px;
	font-weight: 400;
	margin: 0 0 .75em;
  padding: .25em 0;
  border-bottom: 1px solid #666;
}

body.category .nso-column > h2, body.category .nso-column > h3 {
  margin-bottom: .5em;
}

.nso-column article.et_pb_post {
	border-top: 1px solid #eee;
  padding-top: 20px;
  margin-bottom: 20px;
}
.nso-column article.et_pb_post:first-of-type {
  border-top: 0 none;
  padding-top: 10px;
}
.nso-column article.et_pb_post .entry-featured-image-url {
  margin: -20px -20px 15px;
}
.nso-column article.et_pb_post .post-meta {
  font-size: .8rem !important;
  opacity: .8;
  padding-bottom: 0 !important;
}
body.category article.et_pb_post .entry-content {
  padding-top: 0;
}
.wpfd-content, .wpfd-content .wpfd-container {
  margin-top: 0 !important;
}
.nso-column .wpfd-content {
  clear: none;
}
/*
.nso-column .wpfd-content .wpfd-container {
  margin-top: 15px !important;
}
*/
.wpfd-content-tree ul li.ext {
  padding-left: 0 !important;
  margin-bottom: 6px !important;
  display: flex !important;
}
.wpfd-content-tree ul .wpfd-file.ext {
  flex: 0 0 20px;
}
.wpfd-content-tree ul li.ext a {
  padding-top: 4px;
  flex: 1 1 auto;
}
.wpfd-content-tree li.directory ul li.ext {
  padding-left: 34px !important;
}
.has-drop-cap:not(:focus):first-letter {
    float: left;
    font-size: 5em;
    line-height: 0.5;
    font-weight: 300;
    margin: 20px 10px 10px 0;
    text-transform: uppercase;
    font-style: normal;
    font-family: "Times New Roman", Times, serif;
}
.wp-block-media-text {
	margin-bottom: 1em;
}
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
	padding-left: 0;
}

.supsystic-tables-wrap {
	margin: 1.5rem 0;
}

/* Blog (Divi module) Left align thumbnail */
@media only screen and (min-width: 768px) {
  .blog-thumb-left article a.entry-featured-image-url {
		float: left;
		max-width: 240px;
  }
	.blog-thumb-left article a.entry-featured-image-url img {
		width: 100%;
	}
	.blog-thumb-left article > h2, .blog-thumb-left article p.post-meta, .blog-thumb-left article .post-content {
		margin-left: 260px;
	}
}

#footer-widgets .footer-widget h4.cat-parent a {
	color: #2ea3f2;
}


#myprefix-widget-area-wrap { 
  display: none;
}
@media only screen and ( min-width: 769px ) {
  #myprefix-widget-area-wrap { 
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    max-width: 100px;
    z-index:99999;
  }
  body.admin-bar #myprefix-widget-area-wrap {
    top: 40px;
  }
  #myprefix-widget-area-wrap .et_pb_widget { margin-right:0px }
  #myprefix-widget-area-wrap .et_pb_widget:last-child { margin-bottom: 18px; }
  .et-fixed-header #myprefix-widget-area-wrap .et_pb_widget:last-child { margin-bottom: 10px; }
}
@media only screen and ( max-width: 980px ) { 
  #myprefix-widget-area-wrap .et_pb_widget:last-child { margin-bottom: 0px; }
}
@media only screen and ( min-width: 1100px ) {
  body.et_fixed_nav #myprefix-widget-area-wrap {
    position: fixed;
  }
}

/* Blog content default title spacing */
.single-post:not(.et_pb_pagebuilder_layout) article .entry-content h2,
.single-post:not(.et_pb_pagebuilder_layout) article .entry-content h3,
.single-post:not(.et_pb_pagebuilder_layout) article .entry-content h4,
.single-post:not(.et_pb_pagebuilder_layout) article .entry-content h5,
.single-post:not(.et_pb_pagebuilder_layout) article .entry-content h6
{
  line-height: 1.4em;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  padding-bottom: 0;
}

/* Google Custom Search Form (since 1.2.6) */
/*
.et_search_form_container .gcse-wrapper {
  position: absolute;
  top: 0;
  right: 30px;
  z-index: 1000;
  width: 70%;
  max-width: 400px;

}
.et_search_form_container .gsc-control-cse {
  border: 0 none !important;
  background-color: transparent !important;
}
.et_search_form_container .gsc-control-cse input {
  position: absolute;
  width: 90%;
  top: 0;
  bottom: 0;
  right: 30px;
  margin: auto;
}
*/
/* Google Search form */
.et_search_form_container .gcse-wrapper {
  position: absolute;
  right: 60px;
  width: 80%;
  padding-top: 16px;
}
@media only screen and ( min-width: 979px ) { 
  .et_search_form_container .gcse-wrapper {
    max-width: 600px;
    padding-top: 36px;
  }
  .et-fixed-header .et_search_form_container .gcse-wrapper {
    padding-top: 8px;
  }
}
.et_search_form_container .gcse-wrapper .gsc-control-cse {
  padding: 0 1.5em 1em 0 !important;
  border: 0 none !important;
  background-color: transparent !important;
}
.et_search_form_container .gcse-wrapper form.gsc-search-box {
  border: 1px solid #36c;
  border-radius: 3px;
  margin: 0 0 0 20% !important;
  max-width: 80% !important;
}
.et_search_form_container .gcse-wrapper form.gsc-search-box table {
  margin: 0 !important;
}
.et_search_form_container .gcse-wrapper table.gsc-search-box td.gsc-input,
.et_search_form_container .gcse-wrapper table.gsc-search-box td.gsc-search-button,
.et_search_form_container .gcse-wrapper table.gsc-search-box td.gsc-clear-button,
.et_search_form_container .gcse-wrapper table.gsc-search-box td.gsc-input td.gsib_b {
  /* padding: 0 !important; */
  padding: 0 1px 0 0 !important;
}
.et_search_form_container .gcse-wrapper .gsib_a {
  padding: 0 !important;
  text-align: center;
}
.et_search_form_container .gcse-wrapper table.gsc-input {
  margin-bottom: 0 !important;
}
.et_search_form_container .gcse-wrapper .gsc-input-box {
  border: 0 !important;
}
.et_search_form_container .gcse-wrapper input.gsc-input {
    width: 95% !important;
    padding: 8px 0 !important;
    border: 0 none !important;
    margin: 0 auto !important;
    background-blend-mode: hard-light;
/* background-image: none !important; */
}
.et_search_form_container .gcse-wrapper .gsc-search-button {
  margin-left: 0 !important;
}
.et_search_form_container .gcse-wrapper .gsc-search-button-v2,
.et_search_form_container .gcse-wrapper .gsc-search-button-v2:hover,
.et_search_form_container .gcse-wrapper .gsc-search-button-v2:focus {
  border: 0 none !important;
  padding: 11px !important;
}
.et_search_form_container .gcse-wrapper form.gsearch input {
    padding: 6px 4px;
    margin: 0 0 1.5rem;
    border: 1px solid #4d90fe;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    width: 70%;
    line-height: 1;
}
.et_search_form_container .gcse-wrapper form.gsearch button {
  border: 1px solid #4D90FE;
    background-color: #4D90FE;
    padding: 6px 8px;
    margin: 0;
    fill: #fff;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    line-height: 1;
    border-bottom-width: 2px;
}
.et_search_form_container .gcse-wrapper .gsc-selected-option-container {
  min-width: 100px !important;
}