/*
Theme Name: Didactic Media theme
Author: Serghei Rubailo
Description: This is a custom theme built for WordPress.
Version: 0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: didactic-media
Tags: responsive, custom-background, custom-logo, flexible-header, translation-ready
*/

.page-container {
    margin: 0 auto;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #222F36;
}

h2 {
    font-size: 2.5rem; /* Размер заголовка */
    font-weight: bold;
    margin-bottom: 2.5rem; /* Отступ снизу */
}

header {
    max-width: 85rem; /* 1440px */
    margin: 1.5rem auto 0 auto;
}

body.front-page .header-container, body.blog .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 4.3rem 2rem 4.3rem; /* Внутренний отступ */
    background-color: #FF6A0F15; /* Цвет фона */
    border-radius: 2rem 2rem 0 0; /* Закругление верхних углов */
}

body.single .header-container, body.archive .header-container, body.page .header-container {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 4.3rem 2rem 4.3rem; /* Внутренний отступ */
    border-radius: 2rem 2rem 0 0; /* Закругление верхних углов */
}


.site-branding {
    display: flex;
    align-items: center;
}

.site-branding a {
    font-family: 'Poppins', sans-serif;
    font-weight: bolder;
    font-size: 1.25rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.site-logo {
    margin-right: 0.625rem;
}


.main-navigation {
    display: flex;
    flex: 1;
    justify-content: center;
    margin-left: 3.75rem; /* 60px */
    z-index: 2;
}

.main-navigation ul {
    display: flex;
    gap: 2.75rem;
    flex-wrap: wrap; /* Перенос меню на следующую строку */
    justify-content: space-between; /* Равномерное распределение пунктов меню */
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: inherit;
}

.main-navigation a:hover {
    color: #0073aa; /* Цвет при наведении */
}


/* Hero секция */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    max-width: 85rem; /* 1440px */
    background-color: #FF6A0F15; /* Цвет фона */
    border-radius: 0 0 2rem 2rem; /* Закругление верхних углов */
    margin: 0 auto;

    background-image:
            url('images/Lightning1.png'),
            url('images/SoftStar.png'),
            url('images/RhodeIsland.png'),
            url('images/Ellipse34.png');
    background-position:
            50% 10%,
            45% 35%,
            53% 95%,
            43% 85%;
    background-repeat: no-repeat;
}

.colored-dot {
    color: #FDC830;
}


/* Стили для контейнера */
.container {
    width: 90%;
    max-width: 85rem;
    margin: 0 auto;
    display: flex; /* Добавляем Flexbox */
    align-items: center; /* Выравниваем по центру вертикально */
    justify-content: space-between; /* Пространство между элементами */
    padding: 0.5rem;
}


.hero-content, .hero-image {
    flex: 1; /* Равное распределение ширины */
}

.hero-content {
    max-width: 45rem; /* Максимальная ширина для контента */
    vertical-align: top;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0 0 20px;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
}

.cta-buttons {
    margin: 20px 0;
}

.cta-button {
    background-color: #524FD5;
    color: #fff;
    padding: 1rem 2rem 1rem 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 73px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.cta-button .icon-phone, .cta-button .icon-email {
    margin: 0.35rem 1rem 0.35rem 0.35rem;
}

.cta-button:hover {
    background-color: #5545d8;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    font-size: 3rem;
}


/* Стили для иконок в белом круге */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem; /* Ширина и высота круга */
    height: 3rem; /* Ширина и высота круга */
    background-color: #ffffff; /* Белый фон */
    border-radius: 50%; /* Делаем круг */
    text-decoration: none; /* Убираем подчеркивание */
}


.icon-facebook {
    color: #1877F2;
}

.icon-instagram {
    color: #cd486b;
}

.icon-whatsapp {
    color: #00E510;
}

.icon-telegram {
    color: #00B0F2;
}

.icon-linkedin {
    color: blue;
}

.hero-image {
    max-width: 45rem;
    overflow: hidden;
    border-radius: 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
}


/* Стили для about секции */
.about {
    text-align: center; /* Выравнивание текста по центру */
    max-width: 85rem; /* 1440px */
    margin: 0 auto; /* Центрирование контейнера */
    margin-top: 5rem;
}

.about .container-about {
    margin: 0 auto; /* Центрирование контейнера */
}

.features {
    display: flex; /* Используем Flexbox для горизонтального расположения */
    justify-content: space-around; /* Равномерное распределение */
    align-items: flex-start; /* Выравнивание по верхнему краю */
    gap: 1.25rem; /* Отступы между элементами */
    flex-wrap: wrap; /* Разрешаем перенос строк для мобильных устройств */
}

.feature {
    max-width: 19rem; /* Ограничение ширины каждого блока */
    text-align: center; /* Центрирование текста внутри блока */
    padding: 1.25rem;
}

.feature img {
    width: 5.5rem; /* Размер иконки */
    height: auto;
    margin-bottom: 1.25rem; /* Отступ снизу */
}

.feature h3 {
    font-size: 1.25rem; /* Размер текста */
    font-weight: bold;
    margin-bottom: 1.25rem; /* Отступ снизу */
}

.feature p {
    font-size: 1rem; /* Размер текста */
    line-height: 1.6;
}


.courses {
    padding: 2rem 0;
    text-align: center;
    max-width: 85rem; /* 1440px */
    margin: 0 auto; /* Центрирование контейнера */

    background-image:
            url('images/Lightning1.png'),
            url('images/SoftStar.png'),
            url('images/RhodeIsland.png'),
            url('images/Ellipse34.png');
    background-position:
            85% 65%,
            10% 20%,
            80% 30%,
            16% 42%;
    background-repeat: no-repeat;
}

.courses-container {
    max-width: 90%; /* Ограничение ширины для удобочитаемости */
    margin: 0 auto; /* Центрирование контейнера */
}

.course-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.course-item {
    background-color: #ECECFF;
    width: 22rem;
    height: 16rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0.9rem;
    gap: 2rem;
}

.course-item span {
    font-size: 2rem;
    font-weight: bold;

}


/* Стили для секции Services */
.services {
    padding: 2rem 0;
    text-align: center;
    max-width: 85rem; /* 1440px */
    margin: 0 auto; /* Центрирование контейнера */
}

.container-services {
    margin: 0 auto; /* Центрирование контейнера */
}

.services-list {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem; /* Расстояние между блоками */
}

.service-item {
    flex: 1;
    max-width: 25rem; /* Максимальная ширина для каждого блока */
    background-color: transparent; /* Прозрачный фон */
    text-align: center;
    padding: 1.25rem;
}

.service-item img {
    width: 3.5rem; /* Размер иконки */
    height: 3.5rem;
    margin-bottom: 1.25rem;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.service-item p {
    font-size: 1rem;
    line-height: 1.6;
}


/* Секция Teacher */
.teacher {
    background: linear-gradient(to top, #e0e4ff 15%, white 0%);
    text-align: center;
    margin: 0 auto; /* Центрирование контейнера */
}

.container-teacher {
    margin: 0 auto; /* Центрирование контейнера */
    max-width: 85rem; /* 1440px */
}

.teacher-profile {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 2rem;
}

.teacher-image img {
    max-width: 30rem;
    width: auto;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Добавляем тень */
}

.teacher-info {
    max-width: 50%;
    text-align: left;
}

.teacher-info h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.teacher-info p {
    font-size: 1.1rem;
    line-height: 1.6;
}


/* Секция testimonials */
.testimonials {
    text-align: center;
    margin: 0 auto;
}

.testimonials-block {
    margin: 0 auto; /* Центрирование контейнера */
    background-color: #e0e4ff;
}

.testimonials-container {
    background-color: #e0e4ff;
    max-width: 85rem; /* 1440px */
    padding-top: 2rem;
    margin: 0 auto; /* Центрирование контейнера */

}

.owl-carousel .item {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);*/
    border: 2px black solid;
    max-width: 62rem; /* 1440px */
    margin: 0 auto;
    text-align: left;
    position: relative; /* Важно для позиционирования стрелок */
}

.testimonial-content {
    display: flex; /* Flexbox для горизонтального расположения */
    align-items: center;

}

.testimonial-avatar {
    max-width: 8rem;
    max-height: 8rem;
    border-radius: 10%;
    margin-right: 20px; /* Отступ между изображением и текстом */

    /*max-width: 8rem;*/
}

.testimonials-blockquote {
    margin: 0;
}

.testimonials-p {
    margin: 0;
}

.owl-carousel blockquote {
    flex: 1; /* Занимаем оставшееся пространство */
}

.owl-carousel blockquote p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.owl-carousel blockquote footer {
    margin-top: 20px;
    font-style: italic;
    text-align: end;
}

.owl-carousel blockquote footer cite {
    font-size: 1rem;
}

/* Навигационные кнопки (стрелки) */
.owl-nav {
    position: absolute;
    top: 45%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Стрелки не мешают кликам по слайдам */
}

.owl-nav button {
    border: none;
    color: #524FD5 !important;
    font-size: xxx-large !important;
    line-height: 40px;
    text-align: center;
    pointer-events: auto; /* Стрелки кликабельны */
    cursor: pointer;
    background: 0 !important;
}

/* Стили для пагинации */
.owl-dots {
    margin-top: 30px;
    padding-bottom: 2rem;
}

.owl-dot span{
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: white !important;
    border-radius: 50%;
    margin: 0 5px;
    border: 2px black solid;
}

.owl-dot.active span {
    background-color: #524FD5 !important;
}

.see-all-button {
    display: inline-block;
    margin-top: -1.6rem;
    padding: 1rem 0 1rem 0;
    width: 256px;
    background-color: #524FD5;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.see-all-button:hover {
    background-color: #3f3cb3;
}


/* Бургер-меню по умолчанию скрыто на больших экранах */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu span {
    width: 2rem;
    height: 0.4rem;
    background-color: #333;
    margin: 0.125rem 0;
    transition: 0.4s;
}


.sub-menu {
    position: absolute;
    z-index: 10;
    background-color: #fff;
    border-radius: 0.3rem;
}

.pll-parent-menu-item > .sub-menu {
    display: block;
    visibility: hidden;
    z-index: 99;
}

.pll-parent-menu-item:hover .sub-menu {
    visibility: visible;
}

.lang-item {
    width: auto;
    background-color: white;
    z-index: 10;
    padding: 0;
    border-radius: 0.3rem;
}

.lang-item:hover {
    background-color: #f0f0f0;
    color: #0073aa;
}

.lang-item a img {
    margin-right: 0.5rem;
}

.lang-item a {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}


.resources {
    text-align: center;
    padding: 2.5rem 0;
    max-width: 95%;
    margin: 0 auto;
}

.resources .resources-container {
    max-width: 85rem; /* 1440px */
    margin: 0 auto;
}

.resources p {
    margin-bottom: 30px;
}

.resources-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
}

.resource-item {
    flex: 1;
    height: 24rem;
    background: #fff;
    border-radius: 10px;
    border: 2px black solid;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    max-width: 25rem;
}

body.archive .resource-item {
    flex: 1;
    height: 24rem;
    background: #fff;
    border-radius: 10px;
    border: 2px black solid;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 25rem;
}


.resource-image img {
    width: 100%;
    height: 13rem;
    border-radius: 10px;
    object-fit: cover;
}

.resource-content {
    padding: 10px 30px 0 30px;
    min-height: 5rem;
}

.resource-content h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.read-more-wrapper {
    padding: 0 30px 0 30px;
    margin-top: auto;
    display: flex;
    align-items: center;
    height: 100%; /* Занимает всю высоту доступного пространства */
}

.read-more {
    color: #FF6A0F;
    text-decoration: none;
}

.read-more i {
    margin-right: 5px; /* Отступ справа от иконки */
}

.see-all {
    display: inline-block;
    padding: 1rem 0 1rem 0;
    width: 256px;
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
}


.wrap {
    max-width: 85rem; /* 1440px */
    word-wrap: break-word;
    margin: 0 auto;
}

.contact-us-section {
    background-color: #FF6A0F15; /* Цвет фона */
    text-align: center; /* Центрирование заголовка по горизонтали */
}

.contact-header {
    width: 100%;
}

.contact-us-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    max-width: 85rem;
    width: 95%;
    margin: 0 auto;
}

.contact-form {
    flex: 1;
    max-width: 40%;
    margin-right: 20px;
}

.kali-form-field-row>div>label {
    text-align: left;
}

#first-name, #email, #message {
    border-radius: 30px;
    border: #000000 2px solid;
}

[id*="kaliforms-thank-you-message"] {
    font-size: 3rem;
}

#submit {
    padding: 1rem 0 1rem 0;
    width: 100%;
    background-color: #524FD5; /* Синий цвет кнопки */
    color: #fff;
    font-size: 1em;
    border: none;
    border-radius: 30px;
    cursor: pointer;

}

.contact-image {
    flex: 1;
    max-width: 500px;
    margin-top: 20px;
}

.image-wrapper {
    position: relative;
    /*transform: rotate(-5deg);*/
}

.image-wrapper img {
    width: 100%;
    border-radius: 15px;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.footer-section {
    color: #fff;
    padding: 80px 20px 0 20px;
    background: linear-gradient(to bottom, #FF6A0F15 32%, black 0%);
}

body.single .footer-section {
    background: linear-gradient(to bottom, white 32%, black 0%);
}

.single-page .footer-section {
    background: linear-gradient(to bottom, white 32%, black 0%);
}

body.archive .footer-section {
    background: linear-gradient(to bottom, white 28%, black 0%);
}


.contact-info {
    background-color: #fff;
    color: #000;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 2rem;
    border-radius: 15px;
    max-width: fit-content;
    margin: 0 auto 30px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border: black 2px solid;
    height: 10rem;
    box-sizing: border-box;
}

.contact-item-divider {
    width: 2px;
    height: 80%;
    background-color: #000; /* Цвет линии-разделителя */
    margin: 0 20px;
}

.contact-item i {
    background-color: #6c63ff; /* Цвет фона иконки */
    color: #fff;
    padding: 20px;
    border-radius: 50%;
    font-size: 1.5em;
}

.contact-item a {
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 85rem;
    margin: 0 auto;
    padding: 60px 0;
    gap: 10rem;
}

.footer-logo {
    flex: 1;
    text-align: left;
    order: 0;
}

.footer-logo img {
    max-width: 60px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 0.25rem rgb(255, 255, 255));
}

.footer-logo p {
    margin: 5px 0;
    color: #FFFFFF;
}

.footer-links {
    flex: 1;
    text-align: center;
    order: 1;
}


.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}


.social-icons {
    display: flex;
    justify-content: space-between; /* Равномерное распределение по ширине блока */
    align-items: center;
    max-width: 600px; /* Настройте ширину блока, чтобы адаптировать размещение */
    margin: 0 auto; /* Центрирование блока */
    flex: 1;
    order: 2;
}

.social-icons a {
    color: #fff;
    font-size: 1.5em;
    text-decoration: none;
}

.divider {
    width: 1px;
    height: 30px; /* Высота разделителя */
    background-color: #ccc; /* Цвет разделителя */
}



.footer-copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #FFFFFF;
    margin-top: 20px;
    font-size: 0.9em;
    color: #FFFFFF;
    max-width: 85rem;
    margin: 0 auto;
}

.footer-links {
    flex: 1;
    text-align: center;
    order: 2;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Два столбца одинаковой ширины */
    gap: 10px 30px; /* Вертикальный и горизонтальный отступ между элементами */
    justify-items: baseline; /* Центрирование элементов в каждом столбце */
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.post-container {
    background: linear-gradient(to bottom,
        white 0%, white 20%,   /* Первые 30% - белый */
        #FF6A0F15 20%, #FF6A0F15 90%,    /* С 30% до 60% - розовый */
        white 90%, white 100%  /* С 60% до конца - белый */
    );
}



.post-featured-image {
    max-width: 85rem;
    margin: 0 auto;
    border-radius: 16px; /* Скругление краёв контейнера */
}

.post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 30rem;
    object-fit: cover; /* Подгоняет изображение */
    border-radius: inherit; /* Наследует закругление от контейнера */
}

body.page .post-content {
    max-width: 82rem;
    margin: 0 auto;
    background-color: #fff;
    padding: 3rem 4rem;
    border: 2px black solid;
    border-radius: 16px;
    position: relative;
}

body.single .post-content {
    max-width: 60rem;
    margin: 0 auto;
    background-color: #fff;
    padding: 3rem 4rem;
    border: 2px black solid;
    border-radius: 16px;
    position: relative;
    margin-top: -10rem;
}

.post-date {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 2em;
    margin: 10px 0 20px;
    font-weight: bold;
}

.post-body {
    line-height: 1.6;
    font-size: 1.1em;
    color: #333;
}




.blog-main {
    margin: 0 auto;
    background-image:
            url('images/Lightning1.png'),
            url('images/SoftStar.png'),
            url('images/RhodeIsland.png'),
            url('images/Ellipse34.png');
    background-position:
            75% 1%,
            65% 4%,
            80% 11%,
            70% 15%;
    background-repeat: no-repeat;
}

.blog-container {
    background: linear-gradient(to bottom, #FF6A0F15 40%, white 40% );
    margin: 0 auto;
}

.blog-header {
    text-align: left;
    margin: 0 auto;
    max-width: 76rem;
}

.blog-title {
    font-size: 3em;
    font-weight: bold;
    position: relative;
    margin-bottom: -0.5rem;
}

.blog-description {
    max-width: 76rem;
    margin: 0 auto;
}

.blog-description p {
    max-width: 50%;
    padding-top: 2rem;
    margin-bottom: 4rem;
    margin-top: 0;
}


.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25%, 25%));
    gap: 20px;
    justify-content: space-between;
    max-width: 76rem;
    margin: 0 auto;
}

pre {
    white-space: pre-wrap;       /* css-3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}


/* Медиазапросы для адаптации под мобильные устройства */
@media (max-width: 767px) {

    header {
        margin: 0 auto;
    }

    body.single .footer-section {
        background: linear-gradient(to bottom, white 17%, black 0%);
    }

    .single-page .footer-section {
        background: linear-gradient(to bottom, white 17%, black 0%);
    }

    body.archive .footer-section {
        background: linear-gradient(to bottom, white 16%, black 0%);
    }

    .header-container {
        padding: 9% !important;
        width: auto;
        /*margin: 0 auto;*/
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 24rem;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 98%;
        background-color: #fff;
        text-align: center;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        gap: 3rem;
    }


    .main-navigation ul.show {
        display: flex;
    }

    .burger-menu {
        display: flex;
        margin: 0 auto;
        cursor: pointer;
    }

    .burger-menu span {
        width: 2rem;
        height: 0.4rem;
        background-color: #333;
        margin: 0.125rem 0;
        transition: 0.4s;
    }

    /* Menu items styling */
    .main-navigation a {
        text-transform: uppercase;
        display: block;
        text-decoration: none;
    }

    .main-navigation ul.show {
        display: flex;
    }

    .hero {
        flex-direction: column;
        background-position:
                72% 2%,
                89% 35%,
                83% 65%,
                73% 55%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        max-width: 75%;
    }

    .hero-image {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .container-about {
        width: 95%;
    }


    .courses {
        background-image: none;
    }


    .features, .services-list, .course-list, .teacher-profile, .testimonial-content {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
    }

    .feature, .service-item {
        padding: 0;
    }

    .feature img, .service-item img {
        margin-bottom: 0;
    }

    .service-item, .course-item {
        max-width: 80%;
    }

    .teacher {
        background: linear-gradient(to top, white 15%, white 0%);
    }

    .teacher-info {
        text-align: center;
        max-width: 75%;
    }

    .teacher-image img {
        max-width: 75%;
    }

    .testimonials-p {
        font-size: 0.8rem !important;
    }

    .owl-carousel blockquote footer cite {
        font-size: 0.8rem !important;
    }

    .pll-parent-menu-item > .sub-menu {
        position: relative;
        top: 1.4rem;
        display: block;
        visibility: visible;
        padding: 0;
        border-radius: 0;
    }

    .pll-parent-menu-item a {
        margin: 10px;
    }

    .lang-item {
        width: 100%;
    }

    .lang-item a {
        display: block;
        padding: 0;
    }

    .lang-item a img {
        padding: 0;
        margin: 0;
    }

    .sub-menu {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.1) !important;
    }

    .sub-menu .current-lang {
        display: none;
    }

    .resources-grid {
        flex-direction: column;
        gap: 15px;
    }

    .resources-container p {
        width: 90%;
        margin: 20px auto;
    }

    .resource-item {
        max-width: 90%;
        min-width: 90%;
        min-height: 20rem;
        margin: 0 auto;
    }

    body.archive .resource-item {
        max-width: 100%;
        min-width: 100%;
    }

    .read-more-wrapper {
        padding: 0 30px 20px 30px;
    }

    .resource-content {
        padding: 0 30px 0 30px;
        min-height: 5rem;
    }


    .wrap {
        max-width: 90%; /* 1440px */
        word-wrap: break-word;
        margin: 0 auto;
    }

    .contact-image {
        display: none;
    }

    .contact-form {
        max-width: 90%;
    }


    .footer-section {
        background: linear-gradient(to bottom, #FF6A0F15 17%, black 0%);
        padding: 20px 10px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        height: fit-content;
        max-width: fit-content;
    }

    .contact-form {
        margin: 0 auto;
    }

    .contact-item a {
        flex-direction: column;
    }

    .contact-item i {
        background-color: #6c63ff; /* Цвет фона иконки */
        color: #fff;
        padding: 0.75rem;
        border-radius: 50%;
        font-size: 1rem;
    }

    .contact-item-divider {
        width: 30%; /* Делаем разделитель горизонтальным на всю ширину */
        height: 2px; /* Высота для горизонтального разделителя */
        margin: 20px 0; /* Отступы по вертикали */
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-logo {
        margin-bottom: 20px;
        order: 1;
    }

    .footer-links {
        order: 2;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: baseline;
        gap: 10px;
    }

    .social-icons {
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        gap: 20px;
        order: 1;
    }

    .social-icons a {
        position: relative;
    }

    .footer-logo img {
        max-width: 50px;
        margin-bottom: 10px;
    }

    .footer-logo h2 {
        font-size: 1.2em;
    }

    .footer-logo p {
        font-size: 0.9em;
        color: #FFFFFF;
    }

    .footer-copyright {
        font-size: 0.8em;
        margin-top: 20px;
    }

    .footer-links ul li {
        list-style: none;
    }

    .footer-links a {
        color: #FFFFFF;
        text-decoration: none;
    }

    .footer-links a:hover {
        text-decoration: underline;
    }

    .post-container {
        margin: 0 auto;
        background: #FFFFFF;
    }

    body.single .post-content {
        padding: 1rem;
        word-wrap: break-word;
        margin: -3rem 1rem 0 1rem;
    }

    body.page .post-content {
        padding: 1rem;
        word-wrap: break-word;
        margin: 0 1rem 0 1rem;
    }

    .post-featured-image {
        border-radius: 0;
        max-width: 100%;
    }

    .blog-main {
        /*background: linear-gradient(to bottom,*/
        /*white 0%, white 2%,   !* Первые 30% - белый *!*/
        /*#FF6A0F15 2%, #FF6A0F15 45%,    !* С 30% до 60% - розовый *!*/
        /*white 45%, white 100%  !* С 60% до конца - белый *!*/
        /*);*/
        background-image: none;
    }

    .blog-title {
        max-width: 90%;
        margin: 0 auto;
    }

    .blog-container {
        /*max-width: 90%;*/
        background: linear-gradient(to bottom, #FF6A0F15 25%, white 25% );
        margin: 0 auto;
    }

    .blog-description p {
        /*margin-bottom: 2rem;*/
        max-width: 90%;
        margin: -0.5rem auto 2rem auto;
    }

    .blog-posts {
        max-width: 90%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100%, 100%));
        gap: 20px;
        justify-content: space-between;
    }
}

/* Медиазапросы для адаптации под мобильные устройства */
@media (max-width: 1024px) {

    body.single .post-content {
        max-width: 82%;
    }

    .footer-bottom {
        gap: 5rem;
        max-width: 95%;
        margin: 0 auto;
    }

    .blog-title {
        max-width: 85%;
        margin: 0 auto;
    }

    .blog-description {
        max-width: 85%;
        margin: 0 auto;
    }

    .blog-posts {
        max-width: 85%;
        margin: 0 auto;
        grid-template-columns: repeat(auto-fit, minmax(25rem, 26rem));
        justify-content: center;
    }

}


