/* ==========================================================================
   WE SEKARIANS — PUBLIC COMMUNITY SEARCH
   ========================================================================== */

.community-search-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 82px;
    color: #fff;
    background: linear-gradient(115deg, #430813 0%, #650d1b 55%, #8b2635 100%);
}

.community-search-hero::after {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    right: -100px;
    top: -170px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255,255,255,.035), 0 0 0 90px rgba(255,255,255,.025);
}

.community-search-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.community-search-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #f2c66d;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.community-search-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
}

.community-search-hero h1 span {
    color: #f2c66d;
}

.community-search-hero p {
    max-width: 650px;
    margin: 0 0 28px;
    color: rgba(255,255,255,.82);
    font-size: 1.08rem;
    line-height: 1.75;
}

.community-search-hero__button,
.community-search-submit {
    padding: 12px 22px;
    border: 1px solid #f2c66d;
    border-radius: 7px;
    color: #321018;
    background: #f2c66d;
    font-weight: 700;
}

.community-search-hero__button:hover,
.community-search-submit:hover {
    border-color: #ffda8a;
    color: #321018;
    background: #ffda8a;
}

.community-search-section {
    padding: 70px 0 55px;
    background: var(--surface-light, #fff);
}

.community-search-heading {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.community-search-eyebrow--dark {
    color: var(--brand-primary, #650d1b);
}

.community-search-heading h2,
.community-results-heading h2 {
    margin: 0 0 12px;
    color: var(--text-primary, #252525);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 750;
}

.community-search-heading p,
.community-results-heading p {
    margin: 0;
    color: var(--text-secondary, #666);
    line-height: 1.7;
}

.community-search-panel {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--border-color, #dedede);
    border-radius: 14px;
    background: var(--surface-light, #fff);
    box-shadow: 0 12px 35px rgba(30,20,20,.07);
}

.community-search-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.community-search-field--wide {
    grid-column: 1 / -1;
}

.community-search-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary, #292929);
    font-size: .9rem;
    font-weight: 650;
}

.community-search-input-wrap {
    position: relative;
}

.community-search-input-wrap > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    color: var(--text-secondary, #777);
    transform: translateY(-50%);
}

.community-search-input-wrap .form-control {
    min-height: 48px;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--border-color, #d8d8d8);
    border-radius: 7px;
    color: var(--text-primary, #252525);
    background: var(--surface-light, #fff);
}

.community-search-input-wrap .form-control:focus {
    border-color: var(--brand-primary, #650d1b);
    box-shadow: 0 0 0 3px rgba(101,13,27,.12);
}

.community-search-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color, #dedede);
}

.community-search-reset {
    padding: 11px 18px;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 7px;
    color: var(--text-primary, #333);
    background: transparent;
    font-weight: 600;
}

.community-search-reset:hover {
    border-color: var(--brand-primary, #650d1b);
    color: var(--brand-primary, #650d1b);
}

.community-search-hint {
    margin: 16px 0 0;
    color: var(--text-secondary, #777);
    font-size: .84rem;
}

.community-search-status {
    margin-top: 18px;
    padding: 12px 15px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 7px;
    color: var(--text-primary, #333);
    background: var(--surface-muted, #f5f5f5);
    font-size: .9rem;
}

.community-results-section {
    padding: 55px 0 75px;
    background: var(--surface-muted, #f7f6f5);
}

.community-results-heading {
    margin-bottom: 26px;
}

.community-results-heading .community-search-eyebrow {
    margin-bottom: 10px;
}

.community-results-empty {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 12px;
    background: var(--surface-light, #fff);
    text-align: center;
}

.community-results-empty__icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid rgba(101,13,27,.2);
    border-radius: 50%;
    color: var(--brand-primary, #650d1b);
    background: rgba(101,13,27,.06);
    font-size: 1.7rem;
}

.community-results-empty h3 {
    margin: 0 0 10px;
    color: var(--text-primary, #252525);
    font-size: 1.3rem;
    font-weight: 700;
}

.community-results-empty p {
    max-width: 520px;
    margin: 0 0 12px;
    color: var(--text-secondary, #666);
    line-height: 1.65;
}

.community-results-empty__note {
    color: var(--text-secondary, #888);
    font-size: .82rem;
}

.community-search-cta {
    padding: 55px 0;
    background: var(--surface-light, #fff);
}

.community-search-cta__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 38px 42px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(110deg, #430813, #650d1b 70%, #812333);
}

.community-search-eyebrow--light {
    color: #f2c66d;
}

.community-search-cta__panel h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 750;
}

.community-search-cta__panel p {
    margin: 0;
    color: rgba(255,255,255,.8);
    line-height: 1.6;
}

.community-search-cta__button {
    flex-shrink: 0;
    padding: 12px 20px;
    border: 1px solid #f2c66d;
    border-radius: 7px;
    color: #321018;
    background: #f2c66d;
    font-weight: 700;
}

.community-search-cta__button:hover {
    border-color: #ffda8a;
    color: #321018;
    background: #ffda8a;
}

@media (max-width: 767.98px) {
    .community-search-hero {
        padding: 65px 0;
    }

    .community-search-panel {
        padding: 22px 18px;
    }

    .community-search-fields {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .community-search-field--wide {
        grid-column: auto;
    }

    .community-search-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .community-search-actions .btn {
        width: 100%;
    }

    .community-search-cta__panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 30px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-search-page *,
    .community-search-page *::before,
    .community-search-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}