/**
 * EBA Insights — Hero, Grid + Filters, Newsletter CTA.
 * Reference: emotionalacademy.vercel.app /insights.
 * No !important except where required to beat Elementor specificity ties.
 */

/* ============================================================
 * HERO (eba-ih)
 * Charcoal gradient overlay: from-charcoal/95 via-charcoal/80 to-transparent.
 * ============================================================ */
.eba-wrapper.eba-ih-wrap { display: block; }

.eba-wrapper.eba-ih-wrap .eba-ih {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0f1729;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
}

.eba-wrapper.eba-ih-wrap .eba-ih__overlay {
    --ih-grad-from: rgba(15, 23, 41, 0.95);
    --ih-grad-via:  rgba(15, 23, 41, 0.80);
    --ih-grad-to:   rgba(15, 23, 41, 0);
    --ih-grad-dir:  to right;
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--ih-grad-dir),
        var(--ih-grad-from) 0%,
        var(--ih-grad-via) 50%,
        var(--ih-grad-to) 100%);
    z-index: 1;
    pointer-events: none;
}

.eba-wrapper.eba-ih-wrap .eba-ih__container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
}

.eba-wrapper.eba-ih-wrap .eba-ih__inner {
    width: 100%;
}

.eba-wrapper.eba-ih-wrap .eba-ih__inner--align-left   { margin-right: auto; text-align: left; }
.eba-wrapper.eba-ih-wrap .eba-ih__inner--align-center { margin-left: auto; margin-right: auto; text-align: center; }
.eba-wrapper.eba-ih-wrap .eba-ih__inner--align-right  { margin-left: auto; text-align: right; }

.eba-wrapper.eba-ih-wrap .eba-ih__inner--align-center .eba-ih__sub,
.eba-wrapper.eba-ih-wrap .eba-ih__inner--align-center .eba-ih__title { margin-left: auto; margin-right: auto; }
.eba-wrapper.eba-ih-wrap .eba-ih__inner--align-right  .eba-ih__sub,
.eba-wrapper.eba-ih-wrap .eba-ih__inner--align-right  .eba-ih__title { margin-left: auto; }

.eba-wrapper.eba-ih-wrap .eba-ih__title {
    margin: 0 0 20px;
    color: #fff;
    letter-spacing: -0.01em;
}

.eba-wrapper.eba-ih-wrap .eba-ih__sub {
    margin: 0;
    color: rgba(248, 246, 241, 0.85);
}

@media (max-width: 600px) {
    .eba-wrapper.eba-ih-wrap .eba-ih__container { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
 * INSIGHT GRID + FILTERS (eba-ig)
 * ============================================================ */
.eba-wrapper.eba-ig {
    padding: 48px 0 80px;
    background: #f8f6f1;
    font-family: 'Inter', system-ui, sans-serif;
}
.eba-wrapper.eba-ig .eba-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Filter pills */
.eba-wrapper.eba-ig .eba-ig__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee9df;
}
.eba-wrapper.eba-ig .eba-ig__filter {
    background: #fff;
    border: 1px solid #ddd4c6;
    border-radius: 999px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    background-image: none;
    text-shadow: none;
}
.eba-wrapper.eba-ig .eba-ig__filter:hover {
    border-color: #d4a24c;
    color: #d4a24c;
    background: #fff;
}
.eba-wrapper.eba-ig .eba-ig__filter.is-active {
    background: linear-gradient(135deg, #d4a24c, #e0b96b);
    border-color: #d4a24c;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(212, 162, 76, 0.3);
}

/* Grid */
.eba-wrapper.eba-ig .eba-ig__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.eba-wrapper.eba-ig .eba-ig__empty,
.eba-wrapper.eba-ig .eba-ig__no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    padding: 48px 0;
    margin: 0;
}

/* Card */
.eba-wrapper.eba-ig .eba-ig__card {
    background: #fff;
    border: 1px solid #eee9df;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.eba-wrapper.eba-ig .eba-ig__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    border-color: #d4a24c;
}
.eba-wrapper.eba-ig .eba-ig__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.eba-wrapper.eba-ig .eba-ig__card-thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #eee9df;
    background-image: linear-gradient(135deg, #eee9df, #f5e6c8);
    position: relative;
    overflow: hidden;
}
.eba-wrapper.eba-ig .eba-ig__card-thumb-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.125rem;
    color: rgba(212, 162, 76, 0.7);
    text-align: center;
    line-height: 1.3;
}
.eba-wrapper.eba-ig .eba-ig__card-body {
    padding: 18px 20px 20px;
}
.eba-wrapper.eba-ig .eba-ig__card-cat {
    display: inline-block;
    background: rgba(212, 162, 76, 0.12);
    color: #b58834;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}
.eba-wrapper.eba-ig .eba-ig__card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #d4a24c;
    margin: 0 0 8px;
    letter-spacing: -0.005em;
}
.eba-wrapper.eba-ig .eba-ig__card-excerpt {
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 14px;
}
.eba-wrapper.eba-ig .eba-ig__card-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f0eadf;
    font-size: 11.5px;
    color: #94a3b8;
}
.eba-wrapper.eba-ig .eba-ig__card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.eba-wrapper.eba-ig .eba-ig__card-meta svg {
    color: #d4a24c;
    flex-shrink: 0;
}

.eba-wrapper.eba-ig .eba-ig__card.is-hidden { display: none; }

/* Responsive grid */
@media (max-width: 980px) {
    .eba-wrapper.eba-ig .eba-ig__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .eba-wrapper.eba-ig { padding: 32px 0 56px; }
    .eba-wrapper.eba-ig .eba-container { padding: 0 16px; }
    .eba-wrapper.eba-ig .eba-ig__grid { grid-template-columns: 1fr; gap: 16px; }
    .eba-wrapper.eba-ig .eba-ig__filters { gap: 6px; margin-bottom: 24px; padding-bottom: 18px; }
    .eba-wrapper.eba-ig .eba-ig__filter { padding: 6px 12px; font-size: 12px; }
}

/* ============================================================
 * LOAD MORE BUTTON — outline → hover fill (reference style)
 * ============================================================ */
.eba-wrapper.eba-ig .eba-ig__load-more-wrap {
    text-align: center;
    margin-top: 48px;
}
.eba-wrapper.eba-ig .eba-ig__load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: transparent;
    background-image: none;
    color: #ddab2c;
    border: 1.5px solid #ddab2c;
    border-radius: 8px;
    font-family: 'Inter', inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-shadow: none;
    box-shadow: none;
}
.eba-wrapper.eba-ig .eba-ig__load-more:hover:not(:disabled),
.eba-wrapper.eba-ig button.eba-ig__load-more:hover:not(:disabled) {
    background: #ddab2c;
    background-image: none;
    color: #fff;
    border-color: #ddab2c;
}
.eba-wrapper.eba-ig .eba-ig__load-more:hover:not(:disabled) svg { color: #fff; }
.eba-wrapper.eba-ig .eba-ig__load-more:disabled { opacity: 0.7; cursor: wait; }
.eba-wrapper.eba-ig .eba-ig__lm-spinner { animation: ebaIgSpin 0.8s linear infinite; }
@keyframes ebaIgSpin { to { transform: rotate(360deg); } }

/* ============================================================
 * NEWSLETTER CTA (eba-nl)
 * ============================================================ */
.eba-wrapper.eba-nl-wrap { display: block; }

.eba-wrapper.eba-nl-wrap .eba-nl {
    background-color: #0f1729;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
}

.eba-wrapper.eba-nl-wrap .eba-nl__container {
    max-width: 720px;
    margin: 0 auto;
}

.eba-wrapper.eba-nl-wrap .eba-nl__inner--align-left   { text-align: left; }
.eba-wrapper.eba-nl-wrap .eba-nl__inner--align-center { text-align: center; }
.eba-wrapper.eba-nl-wrap .eba-nl__inner--align-right  { text-align: right; }

.eba-wrapper.eba-nl-wrap .eba-nl__inner--align-center .eba-nl__desc { margin-left: auto; margin-right: auto; }
.eba-wrapper.eba-nl-wrap .eba-nl__inner--align-center .eba-nl__form { margin-left: auto; margin-right: auto; }
.eba-wrapper.eba-nl-wrap .eba-nl__inner--align-right  .eba-nl__desc { margin-left: auto; }
.eba-wrapper.eba-nl-wrap .eba-nl__inner--align-right  .eba-nl__form { margin-left: auto; }

.eba-wrapper.eba-nl-wrap .eba-nl__title {
    margin: 0 0 14px;
    color: #fff;
    letter-spacing: -0.005em;
}

.eba-wrapper.eba-nl-wrap .eba-nl__desc {
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.72);
}

.eba-wrapper.eba-nl-wrap .eba-nl__form {
    display: flex;
    gap: 10px;
    max-width: 540px;
    width: 100%;
}

.eba-wrapper.eba-nl-wrap .eba-nl__field {
    flex: 1;
    display: flex;
    margin: 0;
}

.eba-wrapper.eba-nl-wrap .eba-nl__field input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(221, 171, 44, 0.25);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', inherit;
    font-size: 14px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.15s, background 0.15s;
}
.eba-wrapper.eba-nl-wrap .eba-nl__field input:focus {
    border-color: rgba(221, 171, 44, 0.65);
    background: rgba(255, 255, 255, 0.08);
}
.eba-wrapper.eba-nl-wrap .eba-nl__field input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.eba-wrapper.eba-nl-wrap .eba-nl__btn {
    background: #ddab2c;
    background-image: none;
    color: #0f1729;
    border: 0;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: 'Inter', inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.eba-wrapper.eba-nl-wrap .eba-nl__btn:hover:not(:disabled),
.eba-wrapper.eba-nl-wrap button.eba-nl__btn:hover:not(:disabled) {
    background: #c89821;
    background-image: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(221, 171, 44, 0.35);
}
.eba-wrapper.eba-nl-wrap .eba-nl__btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.eba-wrapper.eba-nl-wrap .eba-nl__btn-spinner { animation: ebaNlSpin 0.8s linear infinite; }

@keyframes ebaNlSpin {
    to { transform: rotate(360deg); }
}

.eba-wrapper.eba-nl-wrap .eba-nl__message {
    margin: 20px 0 0;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    display: inline-block;
}
.eba-wrapper.eba-nl-wrap .eba-nl__message--success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.eba-wrapper.eba-nl-wrap .eba-nl__message--error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 600px) {
    .eba-wrapper.eba-nl-wrap .eba-nl__container { padding-left: 16px; padding-right: 16px; }
    .eba-wrapper.eba-nl-wrap .eba-nl__form { flex-direction: column; gap: 10px; max-width: 100%; }
    .eba-wrapper.eba-nl-wrap .eba-nl__btn { width: 100%; justify-content: center; padding: 14px 24px; }
}

/* Screen-reader-only utility */
.eba-wrapper .screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}

/* Force 1 column on mobile by default (Elementor controls can override) */
@media (max-width: 600px) {
    .eba-wrapper.eba-ig .eba-ig__grid { grid-template-columns: 1fr; }
}
