/*
Theme Name:   Betterminds
Description:  Child theme of Ascend holding the Betterminds customisations: the course, pathway, article and about/contact templates, the custom footer, the home page banner and the site CSS. Keeps them safe when Ascend is updated. The banner replaces the old Slider Revolution header.
Template:     ascend
Version:      1.0.0
Text Domain:  betterminds
*/

/* ---------- Formerly in the Custom CSS Pro plugin ---------- */
.filter-btns{
    padding-left:10%;
    padding-right:10%;
    margin-bottom:50px;
}

.filter-btn{
    border-style:none;
    opacity:.5;
}

.filter-active{
    opacity:1;
}

.list-section-container{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    width:100%;
}

.list-view-container{
    padding-left:10%;
    padding-right:10%;
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
}

.single-list-container h3{
    font-size:15px;
}


.list-view-container p{
    grid-column: 1 / -1;
}

.section-list{
    margin:20px;
}


.single-post-container{
    display:grid;
    grid-template-columns:1fr 2fr;
    margin:20px;
}

.single-post-content{
    padding-top:100px;
    padding-bottom:100px;
    padding-left:20px;
    padding-right:20px;
    background-color:rgba(0,0,0,.1);
}

@media(max-width:1200px){
    .list-view-container,
    .course-col-2,
    .single-post-container{
        grid-template-columns:1fr!important;
    }
    
    
    
    .filter-btns{
        display:flex;
        flex-direction:column;
    }
    
    
    #bmcontainer{
        margin:0px!important;
        margin-top:150px!important;
    }
}

.single-post-image{
    background-size:cover;
    background-position:center;
}

#footercontainer{
    padding-left:15%;
    padding-right:15%;
}

/* ---------- Home banner (replaces the Slider Revolution "Home" header) ---------- */
.bm-home-banner {
	position: relative;
	height: 568px;
	background-color: #000;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: hidden;
}
.bm-home-banner__inner {
	position: relative;
	width: 1240px;
	max-width: 100%;
	height: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}
.bm-home-banner__logo {
	position: absolute;
	left: -9px;
	top: 42px;
	width: 500px;
	height: 249px;
}
.bm-l {
	position: absolute;
	width: 500px;
	max-width: none;
	height: auto;
}
.bm-l--brain  { left: 0;     top: 0; }
.bm-l--text   { left: -1px;  top: 14px; }
.bm-l--top    { left: -3px;  top: 12px; }
.bm-l--bottom { left: 0;     top: 11px; }
.bm-home-banner__caption {
	position: absolute;
	left: 0;
	top: 297px;
	width: 620px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 20px;
	background: rgba(255, 255, 255, 0.55);
	color: #0a0a0a;
	font-family: Lato, sans-serif;
	font-size: 17px;
	line-height: 22px;
	font-weight: 300;
}
.bm-home-banner__button,
.bm-home-banner__button:visited {
	position: absolute;
	left: 0;
	top: 381px;
	width: 620px;
	max-width: 100%;
	height: 40px;
	box-sizing: border-box;
	padding: 13px 35px;
	background: rgba(53, 150, 255, 0.75);
	color: #fff;
	font-family: Lato, sans-serif;
	font-size: 14px;
	line-height: 14px;
	font-weight: 300;
	text-align: center;
	text-decoration: none;
}
.bm-home-banner__button:hover,
.bm-home-banner__button:focus {
	background: rgba(53, 150, 255, 0.95);
	color: #fff;
	text-decoration: none;
}
@media (max-width: 1259px) {
	.bm-home-banner__inner { padding: 0 20px; }
	.bm-home-banner__logo { left: 11px; }
	.bm-home-banner__caption, .bm-home-banner__button { left: 20px; }
}
/* Phones and small tablets: logo centred and scaled, caption and button full width. */
@media (max-width: 777px) {
	.bm-home-banner { height: 563px; }
	.bm-home-banner__inner { padding: 0; }
	.bm-home-banner__logo {
		left: 50%;
		top: 14px;
		width: 90vw;
		max-width: 500px;
		height: auto;
		aspect-ratio: 500 / 249;
		transform: translateX(-50%);
	}
	.bm-l { width: 100%; }
	.bm-l--text   { left: -0.2%; top: 5.6%; }
	.bm-l--top    { left: -0.6%; top: 4.8%; }
	.bm-l--bottom { left: 0;     top: 4.4%; }
	.bm-home-banner__caption, .bm-home-banner__button { left: 0; width: 100%; }
	.bm-home-banner__caption { top: 284px; }
	.bm-home-banner__button { top: 390px; }
}

/* ---------- Contact forms (Contact Form 7, replaces Caldera Forms) ---------- */
.bm-cf7 { margin: 0 0 30px; }
.bm-cf7 label { display: block; font-weight: 600; margin-bottom: 4px; }
.bm-cf7-row { display: flex; gap: 20px; }
.bm-cf7-col { flex: 1 1 0; min-width: 0; }
.bm-cf7-col, .bm-cf7-field { margin-bottom: 16px; }
.bm-cf7 input[type="text"], .bm-cf7 input[type="tel"], .bm-cf7 input[type="email"], .bm-cf7 textarea {
	width: 100%; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; padding: 8px 10px; font-weight: 400;
}
.bm-cf7 input[type="submit"] {
	background: rgba(53, 150, 255, 0.75); border: 0; border-radius: 0; padding: 10px 35px; color: #fff; cursor: pointer;
}
.bm-cf7 input[type="submit"]:hover { background: rgba(53, 150, 255, 0.95); }
.bm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .bm-cf7-row { display: block; } }
