/* ==============================================
   bimmain.css (ОЧИЩЕННЫЙ)
   Уникальные стили для главной страницы (bim-main.php)
   ============================================== */

@media (max-width:1024px) {
	.one-height {
		align-items: stretch;
		padding: 0px;
		width: 100%; 
	}
	ul.large-list {
		font-size: 14px;
		font-weight: 400;
		line-height: 1.6em;
	}
	.stm_lms_courses__single__inner {
		padding-top: 0px;
		margin-bottom: 20px;
	}
	/* h2 в common-styles имеет padding-top: 60px, это уникальное переопределение для мобильных */
	.h2,h2{
		padding-top: 20px;
		/* Остальные свойства (font, weight, etc) - дубликаты, удалены */
	}
	.stm_lms_courses__single__inner {
		margin: 0 !important
	}
	.elementor-column-gap-default>.elementor-column-case>.elementor-element-populated {
		padding: 0px;
	}
}

@media (min-width:1024px) {
	.main-list-courses {
		min-height:380px
	}
	
	.main-list-courses>div>div>.stm_lms_courses__single--title a h5 {
		min-height: 80px;
	}
	
	.main-list-courses .stm_lms_courses__single__inner {
		min-height: 360px
	}
	
	.one-height {
		width: 100%;
		align-items: stretch;
		padding: 50px 0 50px 0;
	}
	ul.large-list{
		font-size:16px;
		font-weight:400;
		line-height:1.8em
	}
	.elementor-column-gap-default>.elementor-column-case>.elementor-element-populated {
		padding: 10px;
	}
}
		
/* --- Уникальные классы-хелперы --- */

.li-links a {
	font-weight:600;
}
/* common-styles имеет align-items: flex-start, это переопределение */
.container-flex{
	align-items: stretch;
}
.flex-end{
	align-content:flex-end;
	align-items:flex-end;
	text-align:right
}
/* common-styles P не имеет text-align: justify */
p{
	text-align:justify
}

.flex-column {
    margin: 0 20px;
}

/* --- Стили для "Плитки" (Grid) --- */

.main-title{
	padding:5px 5px 5px 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:.8em
}
.main-title a{
	text-decoration:none;
	color:#fff
}
.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
}
.main-block{
	display:grid;
	grid-template-columns:repeat(4,1fr);
	grid-template-rows:repeat(4,1fr);
	grid-column-gap:0;
	grid-row-gap:0
}
.block-highlight{
	background:#def1f3;
	padding:50px
}
.biruza-back{
	width:100%;
	background:#0090a3
}

.grid-1 {
	grid-area:1/1/3/3;
	display:flex;
	align-items:flex-end;
	background:#42a7b9;
	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;
	--e-column-margin-right:0px;
	--e-column-margin-left:0px;
	padding:0
}

.grid-1.loaded {
  background: linear-gradient(#00000014, #00000042), url(/wp-content/uploads/pages/main/m-01.jpg);
}
.grid-1:hover { opacity: 0.8; }

.grid-2.loaded { background: linear-gradient(#00000014, #00000042), url(/wp-content/uploads/pages/main/m-02.jpg); }
.grid-2:hover { opacity: 0.8; }

.grid-3.loaded { background: linear-gradient(#00000014, #00000042), url(/wp-content/uploads/pages/main/m-03.jpg); }
.grid-3:hover { opacity: 0.8; }

.grid-4.loaded { background: linear-gradient(#00000014, #00000042), url(/wp-content/uploads/pages/main/m-04.jpg); }
.grid-4:hover { opacity: 0.8; }

.grid-5.loaded { background: linear-gradient(#00000014, #00000042), url(/wp-content/uploads/pages/main/m-05.jpg); }
.grid-5:hover { opacity: 0.8; }

.grid-6.loaded { background: linear-gradient(#00000014, #00000042), url(/wp-content/uploads/pages/main/m-06.jpg); }
.grid-6:hover { opacity: 0.8; }

.grid-7.loaded { background: linear-gradient(#00000014, #00000042), url(/wp-content/uploads/pages/main/m-07.jpg); }
.grid-7:hover { opacity: 0.8; }

.grid-8.loaded { background: linear-gradient(#00000014, #00000042), url(/wp-content/uploads/pages/main/m-08.jpg); }
.grid-8:hover { opacity: 0.8; }

.grid-9.loaded { background: linear-gradient(#00000014, #00000042), url(/wp-content/uploads/pages/main/m-09.jpg); }
.grid-9:hover { opacity: 0.8; }

.grid-2 {
	grid-area:1/3/2/4;
	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-2:hover {
	background:linear-gradient(#00000014,#00000042),url(/wp-content/uploads/pages/main/m-02.jpg)
}

.grid-3 {
	grid-area:1/4/2/5;
	display:flex;
	align-items:flex-end;
	background:#636cc6;
	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:hover{
	background:linear-gradient(#00000014,#00000042),url(/wp-content/uploads/pages/main/m-03.jpg)
}
.grid-4{
	grid-area:2/3/3/5;
	display:flex;
	align-items:flex-end;
	background:#21142b;
	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:hover{
	background:linear-gradient(#00000014,#00000042),url(/wp-content/uploads/pages/main/m-04.jpg)
}
.grid-5{
	grid-area:3/1/4/3;
	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-5:hover{
	background:linear-gradient(#00000014,#00000042),url(/wp-content/uploads/pages/main/m-05.jpg)
}
.grid-6{
	grid-area:4/1/5/3;
	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-6:hover{
	background:linear-gradient(#00000014,#00000042),url(/wp-content/uploads/pages/main/m-06.jpg)
}
.grid-7{
	grid-area:3/3/4/5;
	display:flex;
	align-items:flex-end;
	background:#316daa;
	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-7:hover{
	background:linear-gradient(#00000014,#00000042),url(/wp-content/uploads/pages/main/m-07.jpg)
}
.grid-8{
	grid-area:4/3/5/4;
	display:flex;
	align-items:flex-end;
	background:#279879;
	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-8:hover{
	background:linear-gradient(#00000014,#00000042),url(/wp-content/uploads/pages/main/m-08.jpg)
}
.grid-9{
	grid-area:4/4/5/5;
	display:flex;
	align-items:flex-end;
	background:#278798;
	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-9:hover{
	background:linear-gradient(#00000014,#00000042),url(/wp-content/uploads/pages/main/m-09.jpg)
}

.main-title-1st,.main-title-2nd{
	color:#000;
	font-size:50px;
	font-weight:600;
	text-transform:uppercase;
	letter-spacing:0;
	text-align:left;
	line-height:1
}
.main-title-1st::after{
	content:"";
	position:absolute;
	width:400px;
	height:6px;
	background-color:#55c4d5;
	top:116px;
	margin-left:20px
}

/* ==============================================
== "ЗАХАРДКОЖЕННЫЕ" КУРСЫ (УНИКАЛЬНЫЕ)
============================================== */

.clean-course-grid-wrapper {
    padding: 0 10px;
}
.clean-course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.clean-course-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    min-height: 360px;
}
.clean-course-image-link {
    position: relative;
    display: block;
    text-decoration: none;
}
.clean-course-image-link img {
    width: 100%;
    height: auto;
    display: block;
}
.clean-course-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #0090A3;
    color: #fff;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 400;
    border-radius: 3px;
}
.clean-course-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 20px;
}
.clean-course-title {
    margin: 0 0 15px 0;
    padding: 0 0 19px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    min-height: 80px;
}
.clean-course-title a {
    color: #212121;
    font-weight: 500;
    text-decoration: none;
}
.clean-course-title a:hover { color: #005A66; }
.clean-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
}
.clean-course-level { color: #43454b; }
.clean-course-price strong {
    font-weight: 600;
    font-size: 15px;
    color: #000;
}

@media (max-width: 1024px) {
    .clean-course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .clean-course-grid-wrapper {
         padding: 0 20px;
    }
    .clean-course-grid {
        grid-template-columns: 1fr;
    }
    .clean-course-card {
        min-height: auto;
        margin-bottom: 30px;
    }
}

/* ==============================================
== БЛОК "СВЕЖИЕ СТАТЬИ В БЛОГЕ" (УНИКАЛЬНЫЙ)
============================================== */

.four-posts {
	display: flex;
	max-width: 1200px;
	margin: 0 auto;
	justify-content: space-between;
	background: whitesmoke;
}
.entry-line {
    width: calc(25% - 10px);
    padding: 20px;
	text-align: center;
}
.entry-line a {
    text-decoration: none;
    font-weight: 500;
}
.entry-line a:hover h3 { color: #005A66; }
.entry-line h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: #000;
}
img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image {
    margin-bottom: 20px;
}

@media screen and (max-width: 780px) {
    .four-posts {
        flex-direction: column;
    }
	.entry-line {
        width: 100%;
        padding: 20px 0;
    }
}

/* ==============================================
== УНИКАЛЬНЫЕ МОБИЛЬНЫЕ АДАПТАЦИИ (Главная)
============================================== */

@media screen and (max-width: 780px) {
    .main-block {
        display: flex;
        flex-direction: column;
    }
    
    .main-block > div {
        height: 167px;
    }
    .grid-1 {
        height: 200px; /* .grid-1 был выше */
    }
    .main-title {
        padding: 15px 5px 5px 15px;
    }
    .main-title h2{
        font-size: 24px;
        line-height: 1.2em !important;
    }
    .main-title p{
        font-size: 14px;
    }
	
	/* Фикс горизонтального скролла */
    .cut-width {
        width: 100%;
    }
    .online-school {
        width: 100%;
    }
}