/*
 Theme Name:   Hello Elementor Child
 Theme URI:    http://fotonika.sk/
 Description:  Дочерняя тема для Hello Elementor с блогом
 Author:       Fotonika Digital
 Author URI:   http://fotonika.sk/
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/


/* =============================
   H1 как в статье
============================= */
.blog-archive h1 {
    font-family: 'Public Sans', sans-serif !important;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
}

/* =============================
   Фильтр
============================= */
.blog-filter {
    margin-bottom: 30px;
}

/* форма — убираем лишнее поведение */
.blog-filter form {
    position: relative;
    display: inline-block;
}

/* сам select */
.blog-filter select {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    background-color: #fff;
    color: #333;
    cursor: pointer;

    width: auto;        /* НЕ растягивается */
    min-width: 200px;   /* аккуратная ширина */
    max-width: 260px;

    appearance: none;   /* убираем дефолтный стиль */
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* стрелка кастомная */
.blog-filter {
    position: relative;
}

.blog-filter::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #3F577C;
}

/* hover / focus */
.blog-filter select:hover,
.blog-filter select:focus {
    border-color: #3F577C;
    outline: none;
}


/* ************************
Блог
*********************** */

.blog-archive,
.single-blog-post {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-blog-post header {
    display: none;
}

.single-blog-post h1 {
    font-family: 'Public Sans', sans-serif;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
}

.single-blog-post h2 {
    font-family: 'Public Sans', sans-serif !important;
    font-size: 40px !important;
    font-weight: 800 !important;
    color: #3F577C;
    line-height: 1.3 !important;
    margin-top: 50px !important;
    margin-bottom: 20px !important;
}

.single-blog-post h3 {
    font-family: 'Public Sans', sans-serif !important;;
    font-size: 35px !important;
    font-weight: 800 !important;
    color: #000 !important;
    line-height: 1.3 !important;
    margin-top: 35px !important;
    margin-bottom: 15px !important;
}

.single-blog-post p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #7A7A7A;
    line-height: 1.7;
    margin-bottom: 18px;
}

.single-blog-post img {
    float: right;
    max-width: 55%;
    margin: 10px 0 20px 30px;
    border-radius: 8px;
}

.single-blog-post .wp-block-image {
    float: none;
    margin: 20px 0;
}

.single-blog-post .wp-block-image img {
    max-width: 100%;
    height: auto;
}

.single-blog-post::after {
    content: "";
    display: block;
    clear: both;
}

.single-blog-post p:last-of-type {
    margin-top: 20px; /* можешь подкорректировать */
    color: #7A7A7A; /* если хочешь, чтобы цвет был как у текста */
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.single-blog-post a {
    color: #3F577C;
    text-decoration: none;
    border-bottom: 1px solid rgba(63,87,124,0.3);
}

.single-blog-post a:hover {
    border-bottom: 1px solid #3F577C;
}

.single-blog-post ul {
    margin: 20px 0;
    padding-left: 20px;
}

.single-blog-post li {
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    color: #7A7A7A;
}

.single-blog-post .wp-block-button__link {
    background-color: #3F577C;
    border-radius:5px;
    color: #fff !important;
}


/* *************************
 стили для Архива блога
************************* */

/* Контейнер */
/* .blog-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
} */

/* Сетка карточек */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Горизонтальная карточка */
.blog-card {
    display: flex;
    flex-direction: row;
    align-items: stretch; /* растягиваем дочерние элементы по высоте карточки */
    gap: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Изображение слева */
.blog-card-img {
	width: 100%;
    flex: 0 0 450px;   /* фиксированная ширина */
    display: flex;     /* flex для растягивания img */
    flex-direction: column;
}

/* Картинка */
.blog-card-img img {
    flex: 1;           /* растягиваем по высоте родителя */
    width: 100%;       /* ширина под контейнер */
    object-fit: cover; /* обрезка по необходимости */
    display: block;    /* убираем нижние пробелы */
}

/* Контент справа */
.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Заголовок H2 */
.blog-card-content h2 {
    font-family: 'Public Sans', sans-serif;
    font-weight: 800;
    font-size: 35px;
    color: #3F577C;
    margin: 0 0 15px;
}

/* Текст */
.blog-card-content p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #7A7A7A;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Кнопка */
.blog-card-content .wp-block-button__link {
    background-color: #3F577C;
    color: #fff !important;
    height:50px;
    font-family: 'Public Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
    width: fit-content;
    transition: 0.3s;
}

.blog-card-content .wp-block-button__link:hover {
    background-color: #2e3f5a;
}


/* Мобильная версия */
@media (max-width: 768px) {
    .single-blog-post img {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }

    .single-blog-post h1 {
        font-size: 32px !important;
    }

    .single-blog-post h2 {
        font-size: 26px !important;
    }

    .single-blog-post h3 {
        font-size: 26px !important;
    }




    .blog-card {
        flex-direction: column; /* вертикально */
    }

    .blog-card-img img {
        width: 100%;
        height: auto;
    }

    .blog-card-content h2 {
        font-size: 24px;
    }

    .blog-card-content p {
        font-size: 15px;
    }

    .blog-card-content .wp-block-button__link {
        width: 100%;
        text-align: center;
        font-size: 16px;
    }




    .blog-archive h1 {
        font-size: 32px;
    }

    .blog-filter select {
        width: 100%;      /* на мобиле удобно */
        max-width: 100%;
    }
}