/* ======================= */
/*     FULL WIDTH BANNNER  */
/* ======================= */
/* Убираем пустое пространство над баннером */
.afa-encuestas-page #content,
.afa-encuestas-page .site-content,
.afa-encuestas-page .entry-content,
.afa-encuestas-page .content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* ======================= */
/*     FULL WIDTH BANNNER  */
/* ======================= */

.afa-banner {
    position: relative;
    left: 50%;
    right: 50%;
    margin-top: -50px !important;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 40px; /* ← добавили */
    width: 100vw;

    height: 320px; /* чуть выше */
    background: url('https://afaformacion.com/wp-content/uploads/2024/08/Encuestas.jpg') no-repeat;
    background-size: cover;
    background-position: right center;
    background-blend-mode: soft-light;
    background-color: rgba(0,0,0,0.42);

    display: flex;
    flex-direction: column;
    justify-content: center; /* <-- по центру вертикально */
    padding-left: 6rem;       /* <-- как у Divi */
}

.afa-banner-content h1 {
    font-size: 64px; /* больше */
    color: #fff;
    font-weight: 800;
    margin: 0 0 10px 18vw !important;
    line-height: 1.1;
}

.afa-breadcrumb {
    color: #e7e7e7;
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 10px 18vw !important;
}

/* Скрываем заголовок WordPress только на страницах с плагином */
.afa-encuestas-page .entry-title,
.afa-encuestas-page h1.entry-title {
    display: none !important;
}

/* Убираем сайдбар */
.afa-encuestas-page #secondary,
.afa-encuestas-page .sidebar,
.afa-encuestas-page .widget-area {
    display: none !important;
}

.afa-encuestas-page .content-area,
.afa-encuestas-page #primary {
    width: 100% !important;
    max-width: 100% !important;
}


/* ======================= */
/*         КУРСЫ           */
/* ======================= */

/* Контейнер на всю ширину как у Divi */


/* Фон секции на всю ширину */
.afa-encuestas-area {
    position: relative;
    left: 50%;
    right: 50%;
    margin-top: -50px !important;
    margin-left: -52vw;
    margin-right: -52vw;
    margin-bottom: 40px; /* ← добавили */
    width: 100vw;

    padding-top: 20px;
    padding-bottom: 40px;
   display: flex;
    flex-direction: column;
    justify-content: center; /* <-- по центру вертикально */
    padding-left: 6rem;       /* <-- как у Divi */

}

/* Контент как у Divi (max-width 1380px) */
.afa-encuestas-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px; /* как Divi */
}

/* Остальные стилевые блоки остаются */



/* Full-width секция как у Divi */
.afa-section {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Контейнер ширины как в Divi */
.afa-container {
    width: 100%;
    max-width: 1380px;      /* Divi обычно использует 1080–1380 */
    margin: 0 auto;         /* центрирование */
    padding: 0 20px;        /* как в Divi — боковые поля */
}

/* Отступ после баннера */
.afa-top-space {
    margin-top: 40px;
}

/* Блок одной анкеты */
.afa-encuesta-item {
    margin-bottom: 60px;
}

/* Заголовок */
.afa-encuesta-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Кнопка главного курса */
.afa-top-buttons {
    display: flex;
    justify-content: flex-end;     /* Выровнять как в шапке */
    margin-bottom: 10px;
}

/* Горизонтальная линия */
.afa-divider {
    width: 100%;
    height: 2px;
    background: #e2e2e2;
    margin: 25px 0 30px 0;          /* Отступы сверху/снизу */
}

/* Нижние кнопки */
.afa-bottom-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;     /* Выровнять одинаково */
    flex-wrap: wrap;
}

/* Кнопки */
.afa-btn-primary,
.afa-btn-outline {
    font-size: 16px !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    width: 240px; /* как кнопки в заголовке ~158px + padding → 240px красиво */
}

/* красная */
.afa-btn-primary {
    background: #dc3545;
    color: #fff;
    border: none;
}

.afa-btn-primary:hover {
    background: #f18a00;
}

/* белая */
.afa-btn-outline {
    background: #fff;
    border: 2px solid #dc3545;
    color: #dc3545;
}

.afa-btn-outline:hover {
    background: #f18a00;
    border-color: #f18a00;
    color: #fff;
}



@media (max-width: 100%) {
    .afa-top-buttons,
    .afa-bottom-buttons {
        justify-content: flex-start;
        flex-direction: column;
    }

    .afa-btn-primary,
    .afa-btn-outline {
        width: 100%;
        text-align: center;
    }
}
