/* ======================= */
/*     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;
    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;
}


/* ======================= */
/*         КУРСЫ           */
/* ======================= */

.afa-encuestas-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.afa-encuesta-item {
    background: #f4f7fb;
    padding: 2.5rem 1.5rem;
}

.afa-encuesta-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
}

.afa-top-buttons {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.afa-bottom-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.afa-btn-primary {
    background: #d83832;
    color: #fff;
    padding: 0.9rem 1.6rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.15s;
}

.afa-btn-primary:hover {
    background: #b72d28;
}

.afa-btn-outline {
    background: transparent;
    color: #d83832;
    border: 2px solid #d83832;
    padding: 0.9rem 1.6rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.15s;
}

.afa-btn-outline:hover {
    background: #d83832;
    color: #fff;
}

.afa-divider {
    margin-top: 1.8rem;
    height: 1px;
    background: #dcdcdc;
}

@media (max-width: 700px) {
    .afa-top-buttons,
    .afa-bottom-buttons {
        justify-content: flex-start;
        flex-direction: column;
    }

    .afa-btn-primary,
    .afa-btn-outline {
        width: 100%;
        text-align: center;
    }
}
