/* ==============================================
   bimaboutedu.css (ОЧИЩЕННЫЙ)
   Уникальные стили для шаблона Учебного центра (bim-educenter.php)
   ============================================== */

@media (max-width:1024px) {
	.strong-view.wpmtst-default .wpmtst-testimonial-inner {
		border: 1px solid #FFFFFF;
		padding: 0px !important;
		text-align: left;
	}
	
	.wpmtst-testimonial-content.testimonial-content p {
		font-size: 12px !important;
	}
}

/* Уникальный отступ для этого colorstrip */
#colorstrip-100 {
    width: 100%; height: 5px;
    background: #55c4d5;
	margin-top: -30px;
}

#colorstrip-100-smalltext{
    width: 100%; height: 5px;
    background: #55c4d5;
	margin-top: 0px;
	margin-bottom: 20px;
}

/* Блок счетчика */
.inner-width {
    display: flex;
}

.inner-width .col {
	width: 25%;
}

.num {
    font-size: 40px;
    text-align: center;
}

.desc {
    text-align: center;
    font-family: 'Roboto';
    font-size: 20px;
}

/* ==============================================
== СТИЛИ ДЛЯ БЛОКА "ПЛИТКИ" (GRID)
============================================== */

.main-aboutedu {
    background-color: #0090A31A;
    height: 420px;
    display: block;
    position: relative;
    padding-top: 0px;
    padding-bottom: 0px;
}

.main-title{
    padding:30px 30px 15px 30px;
}

.main-title h2{
    color:#fff;
    letter-spacing:0;
    text-transform:none;
    font-size:32px;
    text-shadow:0 0 10px rgb(0 0 0 / 50%);
    line-height:1em;
    margin-bottom: 0 !important; /* Убираем отступ */
}

.main-title a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
}

.main-title a:hover {
    color: #fff !important;
}

.main-subtitle{
    text-align:left;
    color:#fff;
    font-weight:400;
    letter-spacing:0;
    text-shadow:0 0 15px rgb(0 0 0 / 50%);
    width:100%;
    max-width:100%;
    align-self:flex-end
}

.edu-mainblock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    height: 359px;
}

.grid-1 {grid-area: 1 / 1 / 3 / 3;
    display: flex;
    align-items: flex-end;
    background: #278798;
    border-style: solid;
    height: 334px;
    border-width: 5px 5px 5px 5px;
    border-color: #fff;
    transition: background .2s,border .3s,border-radius .3s,box-shadow .3s;
    margin: 0;
    padding: 0;
}
.grid-2 { grid-area: 1 / 3 / 2 / 4;
    display: flex;
    align-items: flex-end;
    background: #444b91;
    border-style: solid;
    height: 167px;;
    border-width: 5px 5px 5px 5px;
    border-color: #fff;
    transition: background .2s,border .3s,border-radius .3s,box-shadow .3s;
    margin: 0;
    padding: 0;
}
.grid-3 { grid-area: 1 / 4 / 2 / 5; 
      display: flex;
    align-items: flex-end;
    background: #b5894a;
    border-style: solid;
    height: 167px;
    border-width: 5px 5px 5px 5px;
    border-color: #fff;
    transition: background .2s,border .3s,border-radius .3s,box-shadow .3s;
    margin: 0;
    padding: 0;
}
.grid-4 { grid-area: 2 / 3 / 3 / 5;
    display: flex;
    align-items: flex-end;
    background: #6394c6;
    border-style: solid;
    height: 167px;
    border-width: 5px 5px 5px 5px;
    border-color: #fff;
    transition: background .2s,border .3s,border-radius .3s,box-shadow .3s;
    margin: 0;
    padding: 0;
}

.grid-1:hover{
    background:linear-gradient(#00000014,#00000042),url("http://test.bim2b.ru/wp-content/uploads/2023/03/m-01.jpg");
    background-size: cover;
}
.grid-2:hover{
    background:linear-gradient(#00000014,#00000042),url(http://test.bim2b.ru/wp-content/uploads/2023/03/m-02.jpg);
    background-size: cover;
}
.grid-3:hover{
    background:linear-gradient(#00000014,#00000042),url(http://test.bim2b.ru/wp-content/uploads/2023/03/m-03.jpg);
    background-size: cover;
}
.grid-4:hover{
    background:linear-gradient(#00000014,#00000042),url(http://test.bim2b.ru/wp-content/uploads/2023/03/m-04.jpg);
    background-size: cover;
}

/* Адаптация для плитки */
@media screen and (max-width: 480px) {
    .main-aboutedu {
        height: unset;
        padding-top: 0px;
        padding-bottom: 0px;
    }
    
    .edu-mainblock {
        height: unset;
        display: flex;
        flex-direction:column;
    }
    
    .grid-1, .grid-2, .grid-3, .grid-4 {
        height: 167px; 
    }
}