/**
 * EBA About Page — modern widgets for the About Us page.
 * Each widget uses the .eba-abp wrapper class.
 */

.eba-wrapper.eba-abp {
    background: var(--eba-ivory);
}

/* ============================================================
 * 1. HERO  — reference: emotionalacademy.vercel.app /about hero
 * No !important. Compound selectors win over Hello theme.
 * ============================================================ */
.eba-abp__hero {
    position: relative;
    min-height: 500px;
    background-color: #0f1729;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    overflow: hidden;
    padding: 96px 24px;
}

.eba-abp__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 41, 0.7) 0%, rgba(15, 23, 41, 0.5) 100%);
    z-index: 0;
}

/* Boxed container — max-width:1280px, holds the content block. */
.eba-abp__hero-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    width: 100%;
    min-height: inherit;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.eba-abp__hero-inner {
    max-width: 760px;
    width: 100%;
}

.eba-abp__hero-inner > * { max-width: 100%; }

/* When text-align is center/right, also center/right-align block-level children */
.eba-abp__hero-inner[style*="text-align: center"] .eba-abp__hero-desc,
.eba-abp__hero-inner[style*="text-align:center"] .eba-abp__hero-desc {
    margin-left: auto;
    margin-right: auto;
}

.eba-abp__hero-inner[style*="text-align: right"] .eba-abp__hero-desc,
.eba-abp__hero-inner[style*="text-align:right"] .eba-abp__hero-desc {
    margin-left: auto;
    margin-right: 0;
}

.eba-wrapper.eba-abp .eba-abp__hero-title,
.eba-wrapper.eba-abp h1.eba-abp__hero-title,
.eba-abp .eba-abp__hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
    text-shadow: none;
}

.eba-wrapper.eba-abp .eba-abp__hero-accent,
.eba-abp .eba-abp__hero-accent {
    color: #ddab2c;
    font-family: inherit;
    font-weight: inherit;
}

.eba-wrapper.eba-abp .eba-abp__hero-desc,
.eba-abp .eba-abp__hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(248, 246, 241, 0.85);
    max-width: 600px;
    margin: 0;
}

/* ============================================================
 * 2. STORY (split layout) — reference: emotionalacademy.vercel.app /about
 * No !important. Compound selectors beat Hello theme.
 * ============================================================ */
.eba-abp__story {
    padding: 80px 24px;
    background: #ffffff;
}

.eba-abp__story .eba-container {
    max-width: 1280px;
    margin: 0 auto;
}

.eba-abp__story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.eba-abp__story-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

/* Badge respects parent text-align via align-self */
.eba-abp__story-content .eba-abp__badge {
    align-self: flex-start;
}
.eba-abp__story-content[style*="text-align: center"] .eba-abp__badge,
.eba-abp__story-content[style*="text-align:center"] .eba-abp__badge {
    align-self: center;
}
.eba-abp__story-content[style*="text-align: right"] .eba-abp__badge,
.eba-abp__story-content[style*="text-align:right"] .eba-abp__badge {
    align-self: flex-end;
}

.eba-abp__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(221, 171, 44, 0.15);
    color: #c89821;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 24px;
}

.eba-abp__badge svg { color: inherit; flex-shrink: 0; }

.eba-wrapper.eba-abp .eba-abp__story-title,
.eba-wrapper.eba-abp h2.eba-abp__story-title,
.eba-abp .eba-abp__story-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f1729;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
    text-shadow: none;
}

.eba-wrapper.eba-abp .eba-abp__story-text p,
.eba-abp .eba-abp__story-text p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: #525e7a;
    margin: 0 0 20px;
}

.eba-wrapper.eba-abp .eba-abp__story-text p:last-child,
.eba-abp .eba-abp__story-text p:last-child { margin-bottom: 0; }

.eba-abp__story-image {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: var(--eba-ivory-dark);
    box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.3);
}

.eba-abp__story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
 * 3. PHILOSOPHY (3 numbered circles) — reference: vercel.app /about
 * No !important. Compound selectors beat Hello theme.
 * ============================================================ */
.eba-abp__philosophy {
    padding: 80px 24px;
    background: #ffffff;
}

.eba-abp__philosophy .eba-container {
    max-width: 1280px;
    margin: 0 auto;
}

.eba-abp__philosophy-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.eba-wrapper.eba-abp .eba-abp__section-title,
.eba-wrapper.eba-abp h2.eba-abp__section-title,
.eba-abp .eba-abp__section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f1729;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    text-shadow: none;
}

.eba-wrapper.eba-abp .eba-abp__section-desc,
.eba-abp .eba-abp__section-desc {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: #525e7a;
    margin: 0 auto;
    max-width: 720px;
}

.eba-abp__principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 0;
}

.eba-abp__principle {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.eba-wrapper.eba-abp .eba-abp__principle-num,
.eba-abp .eba-abp__principle-num {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(221, 171, 44, 0.15);
    color: #c89821;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.eba-wrapper.eba-abp .eba-abp__principle-title,
.eba-wrapper.eba-abp h3.eba-abp__principle-title,
.eba-abp .eba-abp__principle-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f1729;
    margin: 0 0 12px;
    text-shadow: none;
}

.eba-wrapper.eba-abp .eba-abp__principle-text,
.eba-abp .eba-abp__principle-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    color: #525e7a;
    margin: 0 auto;
    max-width: 100%;
}

/* ============================================================
 * 4. CORE VALUES (4 cards grid) — reference: vercel.app /about
 * No !important. Compound selectors beat Hello theme.
 * ============================================================ */
.eba-abp__values {
    padding: 80px 24px;
    background: #f1ede8;
}

.eba-abp__values .eba-container {
    max-width: 1280px;
    margin: 0 auto;
}

.eba-abp__values-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.eba-abp__values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.eba-wrapper.eba-abp .eba-abp__value-card,
.eba-abp .eba-abp__value-card {
    background: #ffffff;
    border: 1px solid #e7e2d3;
    border-radius: 12px;
    padding: 32px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.eba-wrapper.eba-abp .eba-abp__value-card:hover,
.eba-abp .eba-abp__value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 41, 0.12);
    border-color: rgba(221, 171, 44, 0.4);
}

.eba-wrapper.eba-abp .eba-abp__value-icon,
.eba-abp .eba-abp__value-icon {
    width: 48px;
    height: 48px;
    background: rgba(221, 171, 44, 0.1);
    color: #ddab2c;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.eba-wrapper.eba-abp .eba-abp__value-icon svg,
.eba-abp .eba-abp__value-icon svg {
    width: 22px;
    height: 22px;
    color: inherit;
    fill: currentColor;
}

.eba-wrapper.eba-abp .eba-abp__value-icon svg path,
.eba-abp .eba-abp__value-icon svg path {
    fill: currentColor;
}

.eba-wrapper.eba-abp .eba-abp__value-icon i,
.eba-abp .eba-abp__value-icon i {
    font-size: 22px;
    color: inherit;
}

.eba-wrapper.eba-abp .eba-abp__value-title,
.eba-wrapper.eba-abp h3.eba-abp__value-title,
.eba-abp .eba-abp__value-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f1729;
    margin: 0 0 8px;
    text-shadow: none;
}

.eba-wrapper.eba-abp .eba-abp__value-text,
.eba-abp .eba-abp__value-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #525e7a;
    margin: 0;
}

/* ============================================================
 * 5. FAQ (card stack) — reference: vercel.app /about "Common Questions"
 * No !important. Compound selectors beat Hello theme.
 * ============================================================ */
.eba-abp__faq {
    padding: 80px 24px;
    background: #f1ede8;
}

.eba-abp__faq .eba-container {
    max-width: 1280px;
    margin: 0 auto;
}

.eba-abp__faq-head {
    text-align: center;
    margin-bottom: 0;
}

.eba-abp__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eba-wrapper.eba-abp .eba-abp__faq-item,
.eba-abp .eba-abp__faq-item {
    background: #ffffff;
    border: 1px solid #e7e2d3;
    border-radius: 12px;
    padding: 24px 28px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eba-wrapper.eba-abp .eba-abp__faq-item:hover,
.eba-abp .eba-abp__faq-item:hover {
    border-color: rgba(221, 171, 44, 0.4);
    box-shadow: 0 6px 18px -10px rgba(221, 171, 44, 0.25);
}

.eba-wrapper.eba-abp .eba-abp__faq-q,
.eba-wrapper.eba-abp h3.eba-abp__faq-q,
.eba-abp .eba-abp__faq-q {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #0f1729;
    margin: 0 0 8px;
    text-shadow: none;
}

.eba-wrapper.eba-abp .eba-abp__faq-a,
.eba-abp .eba-abp__faq-a {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: #525e7a;
    margin: 0;
}

/* ============================================================
 * 6. CTA (final call to action)
 * Reference: emotionalacademy.vercel.app "Ready to Begin Your Journey?"
 * No !important — compound selectors win over Hello theme.
 * ============================================================ */
.eba-abp__cta {
    padding: 80px 16px;
    background: #f1ede8;
    text-align: center;
}

.eba-abp__cta .eba-container,
.eba-abp__cta .eba-container--narrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.eba-wrapper.eba-abp .eba-abp__cta-title,
.eba-wrapper.eba-abp h2.eba-abp__cta-title,
.eba-abp .eba-abp__cta-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f1729;
    margin: 0 auto 16px;
    letter-spacing: -0.01em;
    text-shadow: none;
}

.eba-wrapper.eba-abp .eba-abp__cta-desc,
.eba-abp .eba-abp__cta-desc {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #525e7a;
    margin: 0 auto 32px;
    max-width: 576px;
}

.eba-abp__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.eba-wrapper.eba-abp .eba-abp__btn,
.eba-wrapper.eba-abp a.eba-abp__btn,
.eba-abp a.eba-abp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 32px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.eba-wrapper.eba-abp .eba-abp__btn--primary,
.eba-wrapper.eba-abp a.eba-abp__btn--primary,
.eba-abp a.eba-abp__btn--primary {
    background: #ddab2c;
    background-image: none;
    color: #000000;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.eba-wrapper.eba-abp .eba-abp__btn--primary:hover,
.eba-wrapper.eba-abp a.eba-abp__btn--primary:hover,
.eba-abp a.eba-abp__btn--primary:hover {
    background: #c89821;
    background-image: none;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(221, 171, 44, 0.4);
}

.eba-wrapper.eba-abp .eba-abp__btn--outline,
.eba-wrapper.eba-abp a.eba-abp__btn--outline,
.eba-abp a.eba-abp__btn--outline {
    background: transparent;
    color: #0f1729;
    border: 1px solid #0f1729;
}

.eba-wrapper.eba-abp .eba-abp__btn--outline:hover,
.eba-wrapper.eba-abp a.eba-abp__btn--outline:hover,
.eba-abp a.eba-abp__btn--outline:hover {
    background: #0f1729;
    color: #ffffff;
    border-color: #0f1729;
    transform: translateY(-1px);
}

.eba-abp__btn svg { transition: transform 0.2s ease; flex-shrink: 0; }
.eba-abp__btn--primary:hover svg { transform: translateX(3px); }

/* ============================================================
 * RESPONSIVE
 * ============================================================ */
@media (max-width: 1024px) {
    /* Force single column on mobile — !important needed to beat Elementor's
       responsive-control-generated rule which ties on specificity. */
    .eba-wrapper.eba-abp .eba-abp__story-grid,
    .eba-abp .eba-abp__story-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        direction: ltr !important;
        display: flex !important;
        flex-direction: column;
    }
    .eba-wrapper.eba-abp .eba-abp__story-image,
    .eba-abp .eba-abp__story-image {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }
    .eba-wrapper.eba-abp .eba-abp__story-content,
    .eba-abp .eba-abp__story-content {
        max-width: 100% !important;
        width: 100%;
    }

    /* Image position on mobile (top by default, bottom optional) */
    .eba-abp__story-grid--m-image-top .eba-abp__story-image    { order: 0; }
    .eba-abp__story-grid--m-image-top .eba-abp__story-content  { order: 1; }
    .eba-abp__story-grid--m-image-bottom .eba-abp__story-image   { order: 1; }
    .eba-abp__story-grid--m-image-bottom .eba-abp__story-content { order: 0; }

    .eba-wrapper.eba-abp .eba-abp__principles,
    .eba-abp .eba-abp__principles           { grid-template-columns: repeat(3, 1fr); }
    .eba-wrapper.eba-abp .eba-abp__values-grid,
    .eba-abp .eba-abp__values-grid          { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .eba-abp__hero          { min-height: 380px; padding: 48px 16px; }
    .eba-wrapper.eba-abp .eba-abp__principles,
    .eba-abp .eba-abp__principles           { grid-template-columns: 1fr; gap: 32px; }
    .eba-wrapper.eba-abp .eba-abp__values-grid,
    .eba-abp .eba-abp__values-grid          { grid-template-columns: 1fr; }
    .eba-wrapper.eba-abp .eba-abp__hero-title,
    .eba-abp .eba-abp__hero-title                { font-size: 36px; }
    .eba-wrapper.eba-abp .eba-abp__hero-desc,
    .eba-abp .eba-abp__hero-desc                 { font-size: 16px; }
    .eba-wrapper.eba-abp .eba-abp__story-title,
    .eba-wrapper.eba-abp .eba-abp__section-title,
    .eba-wrapper.eba-abp .eba-abp__cta-title,
    .eba-abp .eba-abp__story-title,
    .eba-abp .eba-abp__section-title             { font-size: 28px; }
    .eba-wrapper.eba-abp .eba-abp__story-text p,
    .eba-abp .eba-abp__story-text p              { font-size: 15px; }
    .eba-abp__value-card    { padding: 1.5rem; }
    .eba-abp__faq-item      { padding: 20px; }
    .eba-wrapper.eba-abp .eba-abp__faq-q,
    .eba-abp .eba-abp__faq-q             { font-size: 16px; }
    .eba-wrapper.eba-abp .eba-abp__faq-a,
    .eba-abp .eba-abp__faq-a             { font-size: 14px; }
    .eba-abp__cta-buttons   { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin: 0 auto; }
    .eba-wrapper.eba-abp .eba-abp__btn,
    .eba-wrapper.eba-abp a.eba-abp__btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .eba-abp__value-card,
    .eba-abp__btn,
    .eba-abp__faq-item { transition: none !important; }
}
