/*
 * Theme Name:		GWT-Wordpress 27.0.0
 * Theme URI:		https://bit.ly/gwtversions
 * Description:		Custom WordPress theme based on the draft Unified Web Content Policy 
 *					prepared by the PCDSPO, DOST-ASTI, and DOST-ICTO. Theme is built on 
 *					HTML5 responsive WordPress framework based on ZURB's Foundation.
 * Version:			27.0.0
 * Author:			J.K. | R.N. | GWHS Team
 * Author URI:		https://github.com/GOSD-DICT
 * License:			MIT License
 * License URI:		http://www.opensource.org/licenses/mit-license.php
 * Tags: 			theme-options, rtl-language-support, featured-images, editor-style, custom-menu, 
 *					responsive-layout, right-sidebar, left-sidebar, one-column, two-columns, three-columns
 */


/*--- PRESETS **/ 

.display-flex {display: flex;}
.hidden {display: none !important;}
.disabled-link {pointer-events: none;}
small {line-height: normal;}



/*--- THEME and CANVASS Overrides **/ 

.page-template-default .row, 
.search-results .row, 
.luzon-region-template-default .row, 
.mindanao-region-template-default .row, 
.visayas-region-template-default .row, 
.post-template-default .row, 
.resource-template-default .row {
    max-width: 86rem !important;
}

	@media screen and (min-width: 1920px) {
		.off-canvas-wrapper .row {
			max-width: 100rem;
		}
	}



/* HEADER MASTHEAD Overrides */

	@media screen and (min-width: 1024px) {
		header.container-masthead .large-3.columns, 
		header.container-masthead .large-6.columns, 
		header.container-masthead .large-9.columns {
			width: auto;
		}
	}

span.agency-name {
    font-size: 24px;
    font-weight: 600;
}

img#tp-seal {
    width: 82px;
}
img#foi-logo {
    width: 84px;
}
img#bp-logo {
    width: 94px;
} 
.logo, .ear-content {
    margin: 10px 0px !important;
}
	/*@media screen and (max-width: 1024px) {
		.logo, .ear-content {margin: 20px 0px;}
	}*/

.ear-content.widget.anchor.widget_block img {
    width: 78px;
    padding: 2px;
}
.ear-content.widget.anchor.widget_block #pst-container {
    text-align: center;
}




/* LOGO */

h1.logo img {
    font-size: 1rem;
    height: 100px;
    object-fit: contain;
}

h1.logo {margin: 14px 0 !important;}

    @media only screen and (max-width: 430px) {
        h1.logo {margin: 8px auto 0;}
    }

h1.logo img {
    display: block;
	margin: inherit;
}

.logo-text-block {
    margin-top: 1.8rem;
	font-size: 14px;
}
    @media only screen and (max-width: 1024px) {
        h1.logo img {
			display: block;
			margin: auto;
        }
		.logo-text-block {text-align: center;}
    }


/*--- BANNER overrides ---*/ 

.container-banner.banner-pads {
    /*padding: 0 0 15px !important;*/
	padding: 0 0 0px !important;
}





/*--- MAIN NAV - TOP BAR overrides ---*/ 


#main-nav li.current-menu-item:not(.has-form) a:not(.button), 
#main-nav ul li:hover:not(.has-form) > a, 
#main-nav .dropdown li:not(.has-form) a:not(.button):hover, 
#main-nav .dropdown li:not(.has-form):hover > a:not(.button) {
	font-weight: initial;
	font-size: 0.88rem;
}

#main-nav ul li:hover:not(.has-form) > a, #main-nav .dropdown li:not(.has-form) a:not(.button):hover, #main-nav .dropdown li:not(.has-form):hover > a:not(.button), #aux-main ul li:hover:not(.has-form) > a, #aux-main .dropdown li:not(.has-form) a:not(.button):hover, #aux-main .dropdown li:not(.has-form):hover > a:not(.button) {
	font-weight: initial;
	font-size: 0.88rem;
}

#offCanvasRight li a {
	font-weight: initial;
	font-size: 0.88rem;
}

#main-nav li.current-menu-item:not(.has-form) a:not(.button), #aux-main li.current-menu-item:not(.has-form) a:not(.button), #offCanvasRight li.current-menu-item:not(.has-form) > a:not(.button) {
	font-weight: initial;
	font-size: 0.88rem;
}

#offCanvasRight li .is-drilldown-submenu a {
	font-weight: initial;
	font-size: 0.88rem;
}



/* SLIDESHOWS, SLIDER */

div#n2-ss-3 .n2-ss-slide-backgrounds {
    z-index: 999999 !important;
}
div#n2-ss-2 .nextend-bullet-bar .n2-bullet.n2-active {
    background: #488631;
}

/* MAIN CONTENT overrides */

.home #main-content {padding: 0 0 2rem;}




/*--- TITLE overrides ---*/ 

.large-9.columns.container-main {
    width: 100%;
}

h1.entry-title {
    margin: 48px 0 28px;
	font-size: 2rem;
}




/*--- HEADINGS overrides ---*/ 

h1, h2, h3, h4, h5, h6 {
    text-transform: inherit; 
	margin-top: 0;
    margin-bottom: 2.5rem;
}

/*.home h1.entry-title {
    margin: 2rem 0 .25rem;
    font-size: 2rem;
    text-align: center;
}*/
.home h1.entry-title {
    display: none;
}

h1.wp-block-heading, 
h2.wp-block-post-title {
    /* font-weight: 600; */
    text-transform: inherit;
    line-height: 1.20;
	margin-bottom: 1em;
}

h2.wp-block-heading {
    line-height: 1.28;
	margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

h1.has-background, h2.has-background, h3.has-background, h4.has-background, h5.has-background, h6.has-background {
    padding: .8em 1em !important;
}


/*--- ALIGNMENTS overrides ---*/ 

.text-center, .text-center a {
    text-align: center !important;
}
.margin-auto {
    display: block;
    margin: auto;
}


/*--- HYPERLINKS overrides ---*/ 

a {
    color: #2e661a;
}

a:focus, a:hover {
    color: #488631;
}



/*--- LISTS, UL and OL custom and overrides ---*/ 

.entry-content ul.wp-block-list {margin-bottom: 2.25rem;}



/*--- WP BLOCK overrides ---*/ 


.wp-block-post-template {
    margin-left: 0;
}

.wp-block-group {
    padding: 0 2px 18px !important;
}

.wp-block-separator {
    border-top: 1px solid;
    color: #c0c0c0;
	max-width: 100%; 
	margin: 2rem 0;
}

.wp-block-post-comments-link, .wp-block-post-date, 
.wp-block-latest-posts__post-author, .wp-block-latest-posts__post-date, 
.wp-block-post-terms {
    margin: 12px 0;
	font-size: 14px;
    color: #545454;
}

.wp-block-post-excerpt__more-text {
    margin: 12px 0;
	font-size: 14px;
}

figure.wp-block-image.size-full {margin: 1em 40px 2em;}
.entry-content figure.wp-block-image.size-full {margin: 0;}


figure.wp-block-image.size-large {
    width: 100%;
    margin: auto;
}


.widget .widget_block .widget_recent_entries, 
div#block-39 {
    clear: both;
    display: block;
    position: relative;
}
.wp-block-latest-posts.wp-block-latest-posts__list li {
    clear: both;
    overflow-wrap: break-word;
    margin: .5rem 0;
    float: left;
}

.wp-block-latest-posts__list.wp-block-latest-posts {
    margin-left: 0;
}

.wp-block-post-featured-image :where(img) {
    box-sizing: border-box;
    height: 450px;
    max-width: 100%;
    vertical-align: bottom;
    width: 100%;
}

.wp-block-group.group-home-posts-regional li.wp-block-post {
    margin: 2em 0;
}
.wp-block-group.group-home-posts-regional figure.wp-block-post-featured-image {
    margin: 0 0;
}
.wp-block-group.group-home-posts-regional img.attachment-post-thumbnail.wp-post-image {
    height: 188px;
    width: 100%;
}

.wp-block-latest-posts__featured-image img, 
.wp-block-latest-posts__featured-image a {
    height: auto;
    width: 100%;
}
	
#content .wp-post-image {
    border: solid thin #e3e3e3;
}
	@media only screen and (max-width: 480px) {
		#content .wp-post-image {
			object-fit: none;
			height: auto;
			border: solid thin #e3e3e3;
		}
	}
	
a.wp-block-read-more, 
.entry-content .wp-block-buttons {
	margin: 2em 0 4em;
}
	
	
	

/*--- INLINE IMAGES, TABLES, custom and overrides ---*/ 


.page-template-default div#content article .entry-content p img, 
.page-template-default div#content article .entry-content span img, 
.page-template-default div#content article .entry-content img {
    margin-right: 18px !important;
    width: 100%;
    margin-bottom: 2em !important;
}

div#content article .entry-content p img, 
div#content article .entry-content span img, 
div#content article .entry-content img {
    margin-right: 18px !important;
    width: auto;
    margin-bottom: 2em !important;
}


div#content article .entry-content table {
    width: 100% !important;
    margin: 2em 0;
}






/*--- RECENT POSTS overrides ---*/ 

.rpwe-title {
    margin-bottom: inherit;
    margin-top: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
}



/*--- SIDEBAR custom and overrides ---*/ 

.callout {
    margin: 0 0 1rem;
    padding: initial;
    border-radius: 0;
}
.callout figure {
    margin: auto;
}

aside#sidebar-right {
    padding-top: 1.25em;
}

aside#sidebar-right .wp-block-button {
    width: 100%;
}

a.wp-block-button__link.wp-element-button {
    font-size: inherit !important;
    text-align: left;
    padding: calc(0.667em + 2px) calc(1.88em + 2px);
    border-radius: 0;
    background-color: #2e661a;
    margin: 0;
    width: 100%;
}

aside#sidebar-right .wp-block-button__link.wp-element-button {
    font-size: inherit !important;
    text-align: left;
    padding: calc(0.667em + 2px) calc(1.88em + 2px);
    border-radius: 0;
    background-color: #2e661a;
    margin: -3px;
}
aside#sidebar-right .wp-block-button__link.wp-element-button:hover {
    background: #488631;
    color: #FFC107;
}

a.wp-block-button__link.wp-element-button:hover {
    background: #488631;
    color: #FFC107;
}

.sidebar-post-list-news, 
.sidebar-post-list-directors-corner {
    margin-top: 1em;
}


/*--- SEARCH, SEARCH Results overrides ---*/ 

.search.search-results article {
    border: none;
    background: none;
}



/*--- Add to Any overrides ---*/ 

.addtoany_content {
    margin: 4em auto !important; 
}

.addtoany_list.a2a_kit_size_32 a:not(.addtoany_special_service)>span {
    height: 40px !important;
    line-height: 40px !important;
    width: 40px !important;
}

.addtoany_list a:not(.addtoany_special_service)>span {
    border-radius: 0 !important; 
	background-color: #808080 !important; 
}



/*--- PANEL BOTTOM custom and overrides ---*/ 

.wp-block-group.panel-bottom-banner-block h3 {
    height: 1em;
}
.wp-block-group.panel-bottom-banner-block figure {
    padding: 0 !important;
    margin: 0;
}



/*--- FOOTER custom and overrides ---*/ 

#footer {
	background: #FFFFFF; 
	/*background: url(/wp-content/uploads/NNC-mirror-background-building-facade.jpg); 
    background-repeat: no-repeat;
    background-size: cover;
    height: 32em;
    background-position: center 68%;*/
	
	/*background: url(/wp-content/uploads/NNC-mirror-background-building-facade.jpg); 
    background-size: cover;
    background-repeat: no-repeat;
        height: auto;*/
}

.blank-text, 
.blank-element {
	display: none;
}

div#standard-footer {
    padding: 2rem 1.25rem;
}

div#standard-footer img {
	display: block !important;
    margin: auto !important;
}
	@media only screen and (max-width: 430px) {
		.mobile-text-center {
			text-align: center;
		}
	}

.footer-agencies {
    padding: 4rem 0;
	text-align: center;
	/*max-width: 68rem !important;*/
    margin: auto;
}


.footer-agencies img.thumbnail {
    border: inherit;
    box-shadow: inherit; 
	margin-bottom: 0;
}

	@media only screen and (max-width: 1024px) {
		.footer-governing-bodies .display-flex {
			display: flow;
		}
	}


.footer-governing-bodies .column.column-block {padding-bottom: 1rem;}

.footer-governing-bodies {
    max-width: 100%;
    display: block;
    margin: 2em auto 4em;
}

.footer-partners {
    max-width: 28rem;
    display: block;
    margin: 2em auto;
}

.footer-partners img.thumbnail {
    /* width: 114px !important; 
    max-width: 6em;*/
}


.social-follow-us {
    margin: auto;
    padding: 4rem 0 10rem;
    border-top: 1px solid #f2f2f2;
}