/*
Theme Name: WPCommunity Child
Theme URI: https://wpshop.ru/themes/wpcommunity
Author: WPShop.ru
Author URI: http://wpshop.ru/
Template: wpcommunity
Version: 1.0.0
Text Domain: wpcommunity
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

body.single-post .post-card__image {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

 .post-card__header .post-card__meta .post-meta__author, .post-cards .post-meta__date, .post-cards .post-meta__category {
    display: none !important;
}

body.single-post.post-cards .post-card__content, body.single-post .post-card__footer, body.single-post .post-card__header {
    width: 100%!important;
    max-width: 100%!important;
    left: 0!important;
    position: relative;
}
body.single-post .post-card__image {
    display: none !important;
}
.single-post .entry-content p {
    width: 100%;
    max-width: 100%;
}
 .post-card {
    display: flex;

}
.single-post .post-meta__views, .single-post .post-meta__date {
	display: none !important;
}

.post-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;

}
 .post-cards .post-card__image {
    width: 100%;
    max-width: 80px;
    height: 80px;
    order: 1;
    position: absolute;
    left: 50px;
    top: 0;
    overflow: hidden;
    border-radius: 5px;
}
 .post-card {
    padding: 7px 20px 15px 45px;
}
 .post-cards .post-card__image img {
    width: 100%;
    max-width: 80px;
}
.post-cards .post-card__content {
    display: none !important;
}
 .post-cards .post-card__content,  .post-card__footer,  .post-card__header {
    width: 100%;
    max-width: 80%;
    left: 80px;
    position: relative;
}
div#block-2 > p {
    display: none;
}
.badge {
    display: inline-block;
    padding: 3px 8px;
    background-color: #4CAF50;
    color: white;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 10px;
    vertical-align: middle;
}

/* Стили для бейджика "Скоро" */
.upcoming-events .post-card__title::after {
    content: "Скоро";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    margin-left: 10px;
    padding: 2px 8px;
    background-color: #4CAF50;
    color: white;
    border-radius: 3px;
    font-size: 16px;
    vertical-align: middle;
    position: absolute;
    left: 25%;
    top: 1px;
    font-weight: 400;
}
.breadcrumbs-container {
    display: none !important;
}
.post-cards .post-meta__views {
    display: none !important;
}

/* Отступы между секциями */
.events-section-title {
    margin-top: 40px;
    margin-bottom: 20px;
}

.past-events {
    opacity: 0.8;
}
.video_front {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 15px;
}

.video_front video {
    width: 100%;
    max-width: 100%;
    height: auto;
}
.post-cards > article {
    width: 100%;
    max-width: 48%;
}
.post-card__title a {
    font-size: 16px;
}
.banner_front {
    width: 100%;
    margin: 25px auto;
    overflow: hidden;
    border-radius: 15px;
}
.banner_front img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.event-date {
    position: absolute;
    left: 12px;
    bottom: 10px;
    font-size: 12px;
    text-align: center;
}

section.practice-section, section.webinars-section, section.events-section {
    margin-bottom: 20px;
}

.front-page .event-date {
    position: absolute;
    left: 20px;
    bottom: 8px;
    font-size: 10px;
    text-align: center;
}
.section-title-faq {
    text-align: center;
    margin-bottom: 20px;
}
.faq-accordion {
    width: 100%;
    max-width: 80%;
    margin: 20px auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    padding: 18px 25px;
    text-align: left;
    background: #f8f8f8;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: white;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 20px 25px;
    max-height: 500px;
    color: #000;
}

.faq-icon {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.chat-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 30px;
    align-items: center;
}

.chat-block {
    flex: 1;
}

.chat-text {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

.chat-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    height: 406px;
}

.chat-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.chat-image:hover {
    transform: scale(1.03);
}

.page-id-22 aside.widget-area.widget-area--one .widget-area-inner, .page-id-17 aside.widget-area.widget-area--one .widget-area-inner {
    display: none;
}


.page-id-22 .post-card , .page-id-17 .post-card {
    padding: 24px 32px;
}
/* Адаптивность */
@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        gap: 20px;
    }

    .chat-block {
        width: 100%;
    }
}
@media (max-width: 1010px) {
    .post-cards > article {
        width: 100%;
        max-width: 100%;
    }
}

