/*!
Theme Name: NTBG-theme
Theme URI:
Author: Allwp
Author URI: https://allwp.dev/
Description: NTBG custom theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ntbg-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* MG -- Tabs Fix -- Feb 29 2024 */
div.tabs {
	clear:both;
}

/* THEI -- Hero Layout Changes 20 Dec 2022 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@700&display=swap');

/*    keeping height full calc minus top and menu*/
.events-template-default .hero, .post-template-default .hero, .page-template-default .hero {
    z-index: 2;
   min-height: calc(87vh - 202px) !important; 
	
}

body.logged-in.admin-bar.events-template-default .hero,, body.logged-in.admin-bar.post-template-default .hero, body.logged-in.admin-bar.page-template-default .hero {
   min-height: calc(87vh - 234px) !important; 
	
}

.events-template-default .hero-inner, .post-template-default .hero-inner, .page-template-default .hero-inner {
    text-align: left;
    margin-left: auto;
    width: 1290px;
    padding-left: 176px;
    display: block;
}

.events-template-default .hero-inner h1, .post-template-default .hero-inner h1, .page-template-default .hero-inner h1 {
    text-align: left;
    max-width: 400px;
    color: #98b523;
    line-height: 120%;
	/*font-family: 'Cormorant Infant', serif;*/
}

.events-template-default .hero-inner .desc, .post-template-default .hero-inner .desc,.page-template-default .hero-inner .desc {
    max-width: 400px !important;
    margin: 0px !important;
    font-size: 29px !important;
    line-height: 29px !important;
}

.events-template-default .hero:after, .post-template-default .hero:after, .page-template-default .hero:after {
    width: 50%;
    background: rgb(34 54 29 / 80%);
}

@media only screen and (max-width: 820px) {
    .events-template-default .hero:after,.post-template-default .hero:after,.page-template-default .hero:after {
        display: none;
    }

    .events-template-default .hero-inner,.post-template-default .hero-inner,.page-template-default .hero-inner {
        padding: 30px 40px 40px;
        width: 100%;
        background: rgb(34 54 29);
    }
    .events-template-default .hero,.post-template-default .hero,.page-template-default .hero {
        align-items: flex-start;
    }
    .events-template-default .hero-inner .desc,
    .events-template-default .hero-inner h1,
	.post-template-default .hero-inner .desc,
    .post-template-default .hero-inner h1,
	.page-template-default .hero-inner .desc,
    .page-template-default .hero-inner h1{
        width: 100%;
        max-width: 400px;
    }
	
    .events-template-default .hero,
    body.logged-in.admin-bar.events-template-default .hero
	.post-template-default .hero,
    body.logged-in.admin-bar.post-template-default .hero,
	.page-template-default .hero,
    body.logged-in.admin-bar.page-template-default .hero {
        min-height: 200px !important;
		padding-bottom: 300px;
    }
}


/*https://dev.ntbg.org/science/collections/herbarium/ RESPONSIVE FIX*/

@media only screen and (max-width: 970px) {
    .page-id-5306 .conservation-block-inner .side-bar{
        display: block;
    }
}
    
@media only screen and (max-width: 768px) {
    .page-id-5306 .conservation-block-inner .side-bar,
    .page-id-5306 .conservation-block{
        display: none;
    }        
    .page-id-5306 .ugb-4ec1f95.ugb-container{
        margin-right: 0px !important;
        margin-left: 0px !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-id-5306 .ugb-91bc215.ugb-column{
        margin-top: 0px !important;
    }
    .page-id-5306 .ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{
        grid-gap: 0px;
    }
    .page-id-5306 .ugb-container.ugb-container--v2.ugb-container--design-plain>.ugb-inner-block>.ugb-block-content>.ugb-container__wrapper{
        padding-top: 0px;
    }
    .page-id-5306 .ugb-card__description a{
        word-break: break-all;
        display: block;
    }
}

/* THEI -- New changes 5 Oct 2023 */
body a.button-cta-new{
	background: #98b523;
    padding: 12px 40px;
    font-weight: bold;
    font-size: 23px;
    border-radius: 4px;
    margin-top: 0px;
    display: inline-block;
    color: #FFF;
}
body a.button-cta-new:hover{
	background:#7f9b0d;
}
