/* Yelda engagement pages: ambassador programme and family circles */

.eng-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(197, 168, 105, 0.12), transparent 34%),
        linear-gradient(180deg, #F8F4EA 0%, #FDFCF8 100%);
    color: #142820;
}

.eng-shell {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.eng-header {
    background: #0E4D3A;
    color: #FFFFFF;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 6px 24px rgba(14, 77, 58, 0.16);
}

.eng-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.eng-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
}

.eng-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    padding: 3px;
    object-fit: contain;
}

.eng-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.eng-nav a {
    color: #E9F3EE;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 9px;
}

.eng-nav a:hover,
.eng-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.eng-nav a[hidden] {
    display: none !important;
}

.eng-nav .eng-nav__wa {
    background: #1E7A4C;
    color: #FFFFFF;
}

.eng-hero {
    padding: 64px 0 54px;
    background:
        linear-gradient(135deg, rgba(9, 52, 39, 0.94), rgba(14, 77, 58, 0.88)),
        url('../images/backgrounds/main-slider-bg-3-2.webp') center/cover no-repeat;
    color: #FFFFFF;
}

.eng-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(197, 168, 105, 0.18);
    border: 1px solid rgba(197, 168, 105, 0.6);
    color: #F6E7B8;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 16px;
}

.eng-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 14px;
}

.eng-hero p {
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.9;
    max-width: 760px;
    color: #E8F2EC;
    margin: 0;
}

.eng-main {
    padding: 46px 0 64px;
}

.eng-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 26px;
    align-items: start;
}

.eng-card {
    background: #FFFFFF;
    border: 1px solid #D9D2C3;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(20, 40, 32, 0.06);
}

.eng-card + .eng-card {
    margin-top: 18px;
}

.eng-card h2 {
    font-size: 21px;
    font-weight: 900;
    color: #0E4D3A;
    margin: 0 0 8px;
}

.eng-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0E4D3A;
    margin: 20px 0 8px;
}

.eng-card p,
.eng-card li {
    font-size: 14.5px;
    line-height: 1.9;
    color: #3F4A55;
}

.eng-card ul {
    padding-inline-start: 20px;
    margin: 8px 0 0;
}

.eng-card--notice {
    background: #FFF9E8;
    border-color: #E8C979;
}

.eng-card--notice h2,
.eng-card--notice h3 {
    color: #6B4A08;
}

.eng-card--notice p,
.eng-card--notice li {
    color: #6B4A08;
}

.eng-card--danger {
    background: #FFF6F5;
    border-color: #FCA5A5;
}

.eng-card--danger h2,
.eng-card--danger h3 {
    color: #8F1D14;
}

.eng-card--danger p,
.eng-card--danger li {
    color: #7A1C14;
}

.eng-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7A5A1E;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.eng-steps {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: eng-step;
}

.eng-steps li {
    position: relative;
    padding-inline-start: 40px;
    counter-increment: eng-step;
    font-size: 14px;
    line-height: 1.7;
    color: #3F4A55;
}

.eng-steps li::before {
    content: counter(eng-step);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0E4D3A;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eng-form {
    display: grid;
    gap: 14px;
}

.eng-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.eng-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eng-field--full {
    grid-column: 1 / -1;
}

.eng-field label {
    font-size: 13.5px;
    font-weight: 800;
    color: #1F2937;
}

.eng-field .req {
    color: #B42318;
}

.eng-field input,
.eng-field select,
.eng-field textarea {
    width: 100%;
    border: 1.5px solid #D9D2C3;
    border-radius: 10px;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 14.5px;
    color: #142820;
    background: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.eng-field input:focus,
.eng-field select:focus,
.eng-field textarea:focus {
    outline: none;
    border-color: #0E4D3A;
    box-shadow: 0 0 0 3px rgba(14, 77, 58, 0.14);
}

.eng-field input[aria-invalid="true"],
.eng-field select[aria-invalid="true"],
.eng-field textarea[aria-invalid="true"] {
    border-color: #B42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.eng-field textarea {
    min-height: 110px;
    resize: vertical;
}

.eng-help {
    font-size: 12.5px;
    color: #5B6675;
}

.eng-error-msg {
    color: #B42318;
    font-size: 12.5px;
    font-weight: 700;
}

.eng-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FBFAF7;
    border: 1px solid #D9D2C3;
    border-radius: 12px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
    color: #3F4A55;
}

.eng-consent input {
    margin-top: 4px;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    accent-color: #0E4D3A;
}

.eng-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0E4D3A;
    color: #FFFFFF;
    border: 0;
    border-radius: 14px;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.eng-submit:hover {
    background: #093427;
}

.eng-submit:disabled {
    opacity: 0.68;
    cursor: wait;
}

.eng-alert {
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.7;
    border: 1px solid transparent;
}

.eng-alert--error {
    background: #FEE4E2;
    color: #8F1D14;
    border-color: #FCA5A5;
}

.eng-alert--warning {
    background: #FFF4D6;
    color: #6B4A08;
    border-color: #E8C979;
}

.eng-alert--success {
    background: #E8F3EC;
    color: #145C36;
    border-color: #86C79D;
}

.eng-success {
    text-align: center;
    padding: 30px 22px;
}

.eng-success__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #E8F3EC;
    color: #1E7A4C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 14px;
}

.eng-success h2 {
    margin-bottom: 8px;
}

.eng-success__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.eng-btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1E7A4C;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 800;
}

.eng-btn-wa:hover {
    background: #16603B;
    color: #FFFFFF;
}

.eng-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F1F5F9;
    color: #1F2937;
    text-decoration: none;
    border: 1px solid #D9D2C3;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 800;
}

.eng-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.eng-project {
    background: #FBFAF7;
    border: 1px solid #D9D2C3;
    border-radius: 14px;
    padding: 18px;
}

.eng-project h3 {
    margin: 0 0 6px;
    font-size: 15.5px;
}

.eng-project p {
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

.eng-project__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    color: #7A5A1E;
    background: #FDF9F0;
    border: 1px solid #E8D9B5;
    border-radius: 999px;
    padding: 3px 9px;
    margin-bottom: 8px;
}

.eng-footer {
    background: #0B2E23;
    color: #C9D8D0;
    padding: 28px 0;
    font-size: 13px;
}

.eng-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.eng-footer a {
    color: #F6E7B8;
    text-decoration: none;
    font-weight: 700;
}

.eng-disabled {
    text-align: center;
    padding: 70px 20px;
}

.eng-disabled h1 {
    font-size: 26px;
    color: #0E4D3A;
    margin-bottom: 10px;
}

.eng-disabled p {
    color: #4A5568;
    font-size: 15px;
    line-height: 1.9;
}

@media (max-width: 900px) {
    .eng-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .eng-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .eng-nav {
        width: 100%;
    }
    .eng-grid-2 {
        grid-template-columns: 1fr;
    }
    .eng-hero {
        padding: 44px 0 38px;
    }
    .eng-card {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eng-page *,
    .eng-page *::before,
    .eng-page *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

.eng-project__project {
    color: #7A5A1E !important;
    font-weight: 800;
    margin-bottom: 8px !important;
}

.eng-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #E5E7EB;
    overflow: hidden;
    margin: 8px 0 6px;
}

.eng-progress span {
    display: block;
    height: 100%;
    background: #1E7A4C;
    border-radius: 999px;
}

.eng-project__totals {
    font-weight: 800;
    color: #145C36 !important;
    margin-bottom: 2px !important;
}

.eng-project__meta {
    font-size: 12px !important;
    color: #5B6675 !important;
}

#circleProjects .eng-help {
    grid-column: 1 / -1;
    background: #FBFAF7;
    border: 1px dashed #D9D2C3;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.eng-teaser {
    padding: 54px 0;
    background: linear-gradient(180deg, #F8F4EA 0%, #FFFFFF 100%);
    border-top: 1px solid #E7DECC;
}

.eng-teaser h2 {
    font-size: clamp(24px, 3vw, 32px);
    color: #0E4D3A;
    font-weight: 900;
    margin-bottom: 8px;
}

.eng-teaser p.eng-help {
    font-size: 14px;
    color: #4A5568;
    margin-bottom: 0;
}

.eng-teaser__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.eng-teaser__card {
    background: #FFFFFF;
    border: 1px solid #D9D2C3;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(20, 40, 32, 0.05);
}

.eng-teaser__card h3 {
    font-size: 18px;
    font-weight: 900;
    color: #0E4D3A;
    margin-bottom: 6px;
}

.eng-teaser__card p {
    font-size: 13.5px;
    line-height: 1.8;
    color: #3F4A55;
    margin-bottom: 14px;
}

.eng-teaser__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7A5A1E;
    font-weight: 800;
    font-size: 13.5px;
    text-decoration: none;
}

.eng-teaser__link:hover {
    color: #0E4D3A;
    text-decoration: underline;
}

.eng-page a:focus-visible,
.eng-page button:focus-visible,
.eng-page input:focus-visible,
.eng-page select:focus-visible,
.eng-page textarea:focus-visible {
    outline: 3px solid #7A5A1E;
    outline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * Family Giving & Noble Competition Components
 * ------------------------------------------------------------------------- */
.family-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.family-stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.family-stat-val {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: #F6E7B8;
    line-height: 1.1;
    margin-bottom: 4px;
}

.family-stat-lbl {
    font-size: 13px;
    font-weight: 700;
    color: #E2ECE6;
}

.family-nav-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #E5DFD3;
}

.family-tab-btn {
    background: #FFFFFF;
    border: 1px solid #D5CEBF;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 800;
    color: #142820;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.family-tab-btn:hover {
    background: #F4EFE6;
    border-color: #B89635;
    color: #0E4D3A;
}

.family-tab-btn.active {
    background: #0E4D3A;
    border-color: #0E4D3A;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(14, 77, 58, 0.25);
}

.family-tab-btn.active i {
    color: #F6E7B8;
}

.family-honor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.family-honor-card {
    background: #FFFFFF;
    border: 1px solid #D9D2C3;
    border-radius: 16px;
    padding: 22px;
    position: relative;
    box-shadow: 0 8px 24px rgba(20, 40, 32, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.family-honor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(14, 77, 58, 0.1);
    border-color: #B89635;
}

.family-honor-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.family-honor-card__rank {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F4EFE6;
    color: #7A5A1E;
    font-weight: 900;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #D5CEBF;
}

.family-honor-card__rank--1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #4A3000;
    border-color: #FFDF00;
}

.family-honor-card__rank--2 {
    background: linear-gradient(135deg, #E0E0E0, #BDBDBD);
    color: #333333;
    border-color: #EEEEEE;
}

.family-honor-card__rank--3 {
    background: linear-gradient(135deg, #D7A15C, #A76B29);
    color: #FFFFFF;
    border-color: #E6BC86;
}

.family-honor-card__title {
    font-size: 20px;
    font-weight: 900;
    color: #0E4D3A;
    margin: 0;
    flex-grow: 1;
}

.family-honor-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.family-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: #F0ECE1;
    color: #33443C;
}

.family-pill--diaspora {
    background: #E8F2FC;
    color: #1A5490;
    border: 1px solid #BCD7F5;
}

.family-pill--tier {
    background: rgba(184, 150, 53, 0.12);
    color: #8C6D1F;
    border: 1px solid rgba(184, 150, 53, 0.4);
    font-weight: 800;
}

.family-honor-card__impact {
    background: #F8F6F0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: auto;
    border: 1px solid #EAE4D5;
}

.family-honor-card__impact-lbl {
    font-size: 11.5px;
    font-weight: 700;
    color: #6C7A72;
    margin-bottom: 4px;
}

.family-honor-card__impact-val {
    font-size: 14px;
    font-weight: 800;
    color: #0E4D3A;
}

.neighborhood-challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.neighborhood-card {
    background: #FFFFFF;
    border: 1px solid #D9D2C3;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(20, 40, 32, 0.04);
}

.neighborhood-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.neighborhood-card__title {
    font-size: 18px;
    font-weight: 900;
    color: #0E4D3A;
    margin: 0;
}

.neighborhood-card__families {
    font-size: 13px;
    font-weight: 800;
    color: #7A5A1E;
}

.neighborhood-card__progress-wrap {
    margin: 12px 0 16px;
}

.neighborhood-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #0E4D3A;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.neighborhood-card__btn:hover {
    gap: 9px;
    text-decoration: underline;
}

.memorial-box {
    background: #FFFFFF;
    border: 1px solid #D9D2C3;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 10px 26px rgba(20, 40, 32, 0.05);
}

.memorial-preview-card {
    background:
        radial-gradient(circle at 10% 10%, rgba(197, 168, 105, 0.15), transparent 40%),
        linear-gradient(135deg, #FCFAF6 0%, #F5EFE3 100%);
    border: 2px solid #C5A869;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin: 20px 0;
    box-shadow: inset 0 0 20px rgba(197, 168, 105, 0.1);
}

.memorial-preview-card__badge {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 800;
    color: #7A5A1E;
    background: rgba(197, 168, 105, 0.2);
    border: 1px solid #C5A869;
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 12px;
}

.memorial-preview-card__name {
    font-size: 24px;
    font-weight: 900;
    color: #0E4D3A;
    margin: 0 0 6px;
}

.memorial-preview-card__family {
    font-size: 16px;
    font-weight: 800;
    color: #7A5A1E;
    margin-bottom: 14px;
}

.memorial-preview-card__purpose {
    font-size: 14px;
    line-height: 1.8;
    color: #33443C;
    max-width: 500px;
    margin: 0 auto;
}

