/*
Theme Name: ASIC Child (Hello Elementor)
Theme URI: https://asic.org/
Description: Hello Elementor child theme for the American Society of Irrigation Consultants. Carries forward the legacy ACF-aware search and member-listing helpers from the original asic theme.
Author: ASIC
Author URI: https://asic.org/
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asic-child
*/

/* -----------------------------------------------------------------------
 * Global Elementor link colors (brand blue + green hover).
 * Scoped so it applies inside any Elementor-rendered text/widget but does
 * NOT clobber buttons, navigation, or social icons (those carry their
 * own background-color or button classes).
 * --------------------------------------------------------------------- */
.elementor-widget-text-editor a:not(.elementor-button),
.elementor-widget-heading a:not(.elementor-button),
.elementor-widget-html a:not(.elementor-button),
.elementor-widget-shortcode a:not(.elementor-button),
.elementor-widget-icon-box a:not(.elementor-button),
.elementor-widget-icon-list a:not(.elementor-button) {
    color: #4189DB;
    transition: color .25s ease;
    text-decoration: none;
    border-bottom: 1px solid rgba(65, 137, 219, 0.3);
}

.elementor-widget-text-editor a:not(.elementor-button):hover,
.elementor-widget-heading a:not(.elementor-button):hover,
.elementor-widget-html a:not(.elementor-button):hover,
.elementor-widget-shortcode a:not(.elementor-button):hover,
.elementor-widget-icon-box a:not(.elementor-button):hover,
.elementor-widget-icon-list a:not(.elementor-button):hover {
    color: #56BC5B;
    border-bottom-color: rgba(86, 188, 91, 0.6);
}

/* Defensive: any Elementor section/container should not horizontally overflow */
.elementor .e-con,
.elementor .e-con-inner,
.elementor .elementor-widget-wrap {
    max-width: 100%;
}
.elementor section,
.elementor .e-con {
    overflow-x: clip;
}

/* -----------------------------------------------------------------------
 * Responsive heading clamps — consistency pass across every Elementor page.
 * The kit hero H1s are all set to 56–64px with NO mobile variant, which
 * renders gigantic on phones. Clamp them globally without touching per-page
 * Elementor data. Uses `clamp(min, fluid, max)` so the value scales with
 * viewport width and never wraps unreadably.
 *
 * Targets: hero H1s (font-size >= 48px in source), section H2s, and Hello
 * Elementor's default <h1.entry-title>.
 * --------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .elementor-widget-heading h1.elementor-heading-title,
    .elementor-widget-heading .elementor-heading-title h1 {
        font-size: clamp(34px, 5.8vw, 52px) !important;
        line-height: 1.15 !important;
    }
    .elementor-widget-heading h2.elementor-heading-title,
    .elementor-widget-heading .elementor-heading-title h2 {
        font-size: clamp(26px, 4.6vw, 40px) !important;
        line-height: 1.2 !important;
    }
    .elementor-widget-heading h3.elementor-heading-title,
    .elementor-widget-heading .elementor-heading-title h3 {
        font-size: clamp(20px, 3.4vw, 30px) !important;
        line-height: 1.25 !important;
    }
}
@media (max-width: 767px) {
    .elementor-widget-heading h1.elementor-heading-title,
    .elementor-widget-heading .elementor-heading-title h1 {
        font-size: clamp(28px, 7.5vw, 38px) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.5px;
    }
    .elementor-widget-heading h2.elementor-heading-title,
    .elementor-widget-heading .elementor-heading-title h2 {
        font-size: clamp(22px, 6vw, 30px) !important;
        line-height: 1.2 !important;
    }
    .elementor-widget-heading h3.elementor-heading-title,
    .elementor-widget-heading .elementor-heading-title h3 {
        font-size: clamp(18px, 5vw, 24px) !important;
    }
    /* Hello Elementor + BuddyPress page titles (non-Elementor pages too). */
    .page .entry-title,
    .page h1.entry-title,
    body.buddypress h1.entry-title {
        font-size: clamp(28px, 7.5vw, 38px) !important;
        line-height: 1.15 !important;
    }
}

/* -----------------------------------------------------------------------
 * BUDDYPRESS — sitewide layout constraints
 * Match the header/footer container width (1240px) and tame the default
 * Hello-Elementor giant page title. Applies to every BP page (members,
 * groups, activity, single profile, etc.) so the layout reads as one site.
 * --------------------------------------------------------------------- */
/* Single sitewide container, ALIGNED with header content edge.
   Header math: max-width:1240 + padding 0 32 \u2192 content area is 1176px centered.
   Gutter = max(32px, (viewport - 1176px) / 2). Apply to the outermost BP
   wrapper available on each page type so dir + user + entry views all align. */
body.buddypress .entry-content,
body.buddypress .page-content,
body.buddypress .buddypress-wrap {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: max(32px, calc((100% - 1176px) / 2));
    padding-right: max(32px, calc((100% - 1176px) / 2));
    box-sizing: border-box;
}
body.buddypress #buddypress,
body.buddypress .page-header,
body.buddypress .entry-header,
body.buddypress header.page-header {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}
body.buddypress .page-header,
body.buddypress .entry-header,
body.buddypress header.page-header {
    padding-top: clamp(32px, 5vw, 56px);
    padding-bottom: clamp(12px, 2vw, 20px);
    margin-bottom: 0;
    text-align: left;
    background: transparent;
}
body.buddypress .entry-title,
body.buddypress h1.entry-title,
body.buddypress .page-header h1 {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: clamp(32px, 5.6vw, 56px) !important;
    line-height: 1.1 !important;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    color: #1A2B3F;
    text-wrap: balance;
}
@media (max-width: 1024px) {
    body.buddypress .entry-content,
    body.buddypress .page-content,
    body.buddypress .buddypress-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* -----------------------------------------------------------------------
 * MEMBERS DIRECTORY (BuddyPress /members/) — facelift to match new brand.
 * Pure CSS, no Elementor. Brand: navy #1A2B3F, blue #4189DB, green #56BC5B,
 * Poppins headings, white cards on a soft-tinted page background.
 * --------------------------------------------------------------------- */

/* Headline/subhead injected by functions.php (B12).
 * Full-bleed hero with AI-generated background, navy overlay, white text —
 * matches the look of /awards-scholarships/ and other top-level pages. */
body.directory.members .asic-members-intro {
    position: relative;
    /* Break out of the 1240px BP container so the hero spans the viewport.
     * -48px top negates .asic-single-article--wide's top padding. */
    margin: -48px calc(50% - 50vw) 48px calc(50% - 50vw);
    padding: 120px 40px 110px 40px;
    background-color: #0E2A47;
    background-image:
        linear-gradient(rgba(8, 24, 42, 0.78), rgba(8, 24, 42, 0.78)),
        url("https://stg-asicorg-stage.kinsta.cloud/wp-content/uploads/asic-generated/directory-hero.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    text-align: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}
body.directory.members .asic-members-intro > * {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
body.directory.members .asic-members-intro__eyebrow {
    display: inline-block;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0.85;
    margin: 0 0 14px 0;
}
body.directory.members .asic-members-intro__title {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 5.2vw, 64px);
    line-height: 1.15;
    color: #FFFFFF;
    margin: 0 auto 18px auto;
    letter-spacing: -0.01em;
    text-align: center;
}
body.directory.members .asic-members-intro__sub,
body.directory.members .asic-members-intro__eyebrow {
    text-align: center;
}
body.directory.members .asic-members-intro__title-accent {
    background: linear-gradient(to right, #4189DB, #56BC5B);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
body.directory.members .asic-members-intro__rule {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #4189DB, #56BC5B);
    margin: 0 auto 18px auto;
}
body.directory.members .asic-members-intro__sub {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(17px, 1.6vw, 22px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
    opacity: 0.92;
    margin: 0 auto;
    max-width: 720px;
}
body.directory.members .asic-members-intro__stats {
    list-style: none;
    margin: 36px auto 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 36px;
    align-items: stretch;
}
body.directory.members .asic-members-intro__stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    padding: 0 28px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}
body.directory.members .asic-members-intro__stats li:last-child {
    border-right: 0;
    padding-right: 0;
}
body.directory.members .asic-members-intro__stats strong {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}
body.directory.members .asic-members-intro__stats span {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0.8;
    margin-top: 6px;
}
/* Longer stat value ("Nationwide & Down Under") — size down + wrap to two lines
   so it stays balanced next to the short "83+" / "CPIC" values. */
body.directory.members .asic-members-intro__stats .asic-stat--wide strong {
    font-size: 19px;
    line-height: 1.2;
    max-width: 8.5em;
    text-align: center;
}
@media (max-width: 600px) {
    body.directory.members .asic-members-intro {
        padding: 80px 22px 72px 22px;
        margin-bottom: 32px;
    }
    body.directory.members .asic-members-intro__stats {
        gap: 14px 22px;
    }
    body.directory.members .asic-members-intro__stats li {
        padding-right: 18px;
    }
}
body.directory.members {
    background: #F4F7FB;
}

/* Center the directory inside the brand container width (1240px sitewide
 * BP override above already supplies width/padding). */
body.directory.members #buddypress {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #1A2B3F;
    padding-bottom: 80px;
}

/* Top nav tabs (All Members / etc.) — pill style. */
body.directory.members #buddypress .item-list-tabs ul,
body.directory.members #buddypress .members-nav,
body.directory.members #buddypress .component-navigation,
body.directory.members #buddypress nav.bp-navs,
body.directory.members #buddypress nav.dir-navs,
body.directory.members #buddypress nav.members-type-navs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 24px 0;
    list-style: none;
    border: 0 !important;
    background: transparent !important;
}
body.directory.members #buddypress nav.bp-navs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    border: 0 !important;
    background: transparent !important;
}
body.directory.members #buddypress .component-navigation li {
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    float: none;
}
body.directory.members #buddypress .component-navigation li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    color: #5A6573;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
}
body.directory.members #buddypress .component-navigation li a:hover {
    color: #1A2B3F;
    border-color: #4189DB;
}
body.directory.members #buddypress .component-navigation li.selected a,
body.directory.members #buddypress .component-navigation li.current a {
    background: #1A2B3F;
    color: #fff;
    border-color: #1A2B3F;
}
body.directory.members #buddypress .component-navigation li .count {
    background: rgba(255,255,255,.25);
    color: inherit;
    border: 0;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
}
body.directory.members #buddypress .component-navigation li:not(.selected):not(.current) .count {
    background: #EEF3FA;
    color: #4189DB;
}

/* Search + sort toolbar — clean horizontal row directly on page bg, no card.
 * BP-nouveau wraps the search and the order-select in separate intermediate
 * divs inside #subnav-filters, so we flex the real common ancestor and
 * neutralise the in-between wrappers (display: contents).
 * Also kill the nouveau clearfix ::before/::after on #subnav-filters which
 * would otherwise be picked up as a phantom flex item and shove the
 * search bar ~32px to the right. */
body.directory.members #buddypress #subnav-filters {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 0 18px 0;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}
body.directory.members #buddypress #subnav-filters::before,
body.directory.members #buddypress #subnav-filters::after,
.subnav-search.clearfix::before,
.subnav-search.clearfix::after {
    content: none !important;
    display: none !important;
}
body.directory.members #buddypress #subnav-filters > .subnav-search,
body.directory.members #buddypress #subnav-filters > .subnav-search > .dir-search,
body.directory.members #buddypress #subnav-filters > #dir-filters,
body.directory.members #buddypress #subnav-filters > .component-filters {
    display: contents;
}
body.directory.members #buddypress .dir-search,
body.directory.members #buddypress #subnav,
body.directory.members #buddypress .subnav-filters {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    float: none;
    box-sizing: border-box;
}
/* Kill the stock BP top/bottom borders on the select wrapper — they read as
 * stray dividers hugging the toolbar. (The search form keeps its own border
 * defined below.) */
body.directory.members #buddypress .select-wrap {
    border: 0 !important;
    background: transparent !important;
}
body.directory.members #buddypress #members-dir-list .dir-search,
body.directory.members #buddypress .dir-search {
    float: none !important;
}
/* Search form: input + button as one connected control. Left-aligned;
 * the order-by select is pushed to the right by the parent's space-between. */
body.directory.members #buddypress .dir-search form,
body.directory.members #buddypress .bp-dir-search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1 1 320px;
    max-width: 420px;
    margin: 0;
    background: #fff;
    border: 1px solid #D6DEEA;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
body.directory.members #buddypress .dir-search form:focus-within,
body.directory.members #buddypress .bp-dir-search-form:focus-within {
    border-color: #4189DB;
    box-shadow: 0 0 0 3px rgba(65, 137, 219, .15);
}
body.directory.members #buddypress .dir-search input[type="search"],
body.directory.members #buddypress .dir-search input[type="text"] {
    flex: 1 1 auto;
    padding: 10px 14px;
    border: 0;
    border-radius: 0;
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: #1A2B3F;
    min-width: 0;
}
body.directory.members #buddypress .dir-search input:focus {
    outline: none;
    background: #fff;
    box-shadow: none;
}
body.directory.members #buddypress .dir-search button,
body.directory.members #buddypress button.nouveau-search-submit {
    padding: 0 16px;
    background: #4189DB;
    color: #fff;
    border: 0;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}
body.directory.members #buddypress .dir-search button:hover,
body.directory.members #buddypress button.nouveau-search-submit:hover {
    background: #1A2B3F;
}
/* Hide the default search icon font and use an inline SVG so the button
 * always shows a crisp magnifier regardless of theme icon font availability. */
body.directory.members #buddypress .dir-search button > * {
    display: none;
}
body.directory.members #buddypress .dir-search button::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='7' cy='7' r='5'/><path d='M11 11l4 4'/></svg>") center/contain no-repeat;
}
/* Order-by select — right-aligned with custom caret. Label stays sr-only. */
body.directory.members #buddypress #members-order-select,
body.directory.members #buddypress .last.filter {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    float: none;
}
body.directory.members #buddypress .select-wrap {
    position: relative;
    display: inline-block;
}
body.directory.members #buddypress .select-wrap .select-arrow {
    display: none !important;
}
body.directory.members #buddypress select,
body.directory.members #buddypress #members-order-by,
body.directory.members #buddypress select[id$="-order-by"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 9px 34px 9px 14px;
    border: 1px solid #D6DEEA;
    border-radius: 8px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%231A2B3F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 7px;
    color: #1A2B3F;
    font: inherit;
    font-size: 14px;
    min-width: 170px;
    cursor: pointer;
}
body.directory.members #buddypress #members-order-by:focus {
    outline: none;
    border-color: #4189DB;
    box-shadow: 0 0 0 3px rgba(65, 137, 219, .15);
}

/* The members grid itself. */
body.directory.members #buddypress #members-dir-list,
body.directory.members #buddypress .members.dir-list {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}
/* Top + bottom pagination rows — flex, never floated into the grid. */
body.directory.members #buddypress .bp-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 14px 0;
    clear: both;
}
body.directory.members #buddypress .bp-pagination.bottom {
    margin: 20px 0 0 0;
}
body.directory.members #buddypress .bp-pagination .pag-count,
body.directory.members #buddypress .bp-pagination .pagination-links {
    float: none !important;
    margin: 0;
}
body.directory.members #buddypress ul#members-list,
body.directory.members #buddypress ul.members-list,
body.directory.members #buddypress .members-list,
body.directory.members #buddypress #members-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    grid-auto-flow: row dense;
}
/* Anything that isn't a real member <li> shouldn't claim a grid cell
 * (BP injects ajax loaders, feedback messages, hidden helpers). */
body.directory.members #buddypress ul#members-list > :not(li),
body.directory.members #buddypress ul#members-list > li:empty,
body.directory.members #buddypress ul#members-list > li.bp-feedback,
body.directory.members #buddypress ul#members-list > li.empty {
    display: none !important;
}
/* bp-nouveau ships a clearfix `::before { content:" "; display:table }` on
 * `.item-list` which a CSS Grid container treats as a phantom grid item —
 * it was stealing column 1 of row 1. Kill the pseudos on our grid. */
body.directory.members #buddypress ul#members-list::before,
body.directory.members #buddypress ul#members-list::after {
    display: none !important;
    content: none !important;
}
body.directory.members #buddypress ul#members-list > li,
body.directory.members #buddypress .members-list > li,
body.directory.members #buddypress #members-list > li {
    background: #fff;
    border: 1px solid #E5ECF3;
    border-radius: 16px;
    padding: 24px 18px 20px;
    margin: 0;
    list-style: none;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 30, 60, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}
body.directory.members #buddypress ul#members-list > li::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #4189DB 0%, #56BC5B 100%);
    opacity: 0;
    transition: opacity .2s ease;
}
body.directory.members #buddypress ul#members-list > li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 30, 60, .08);
    border-color: #C9D8EC;
}
body.directory.members #buddypress ul#members-list > li:hover::before {
    opacity: 1;
}
/* Avatars are 150x150 native. Render at native size on a 160px halo ring
 * so the image stays pixel-sharp (no up/down scaling) and the card has
 * visual weight instead of a small puck floating in whitespace. */
body.directory.members #buddypress ul#members-list > li .item-avatar {
    margin: 0 auto 14px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 25%, #F3F8FF 0%, #E7F0FB 60%, #DCE8F7 100%);
    box-shadow:
        inset 0 0 0 1px #DDE6F2,
        0 6px 14px rgba(15, 30, 60, .06);
}
body.directory.members #buddypress ul#members-list > li .item-avatar img.avatar,
body.directory.members #buddypress ul#members-list > li img.avatar {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(26, 43, 63, .08);
    image-rendering: auto;
}
body.directory.members #buddypress ul#members-list > li .item-title,
body.directory.members #buddypress ul#members-list > li h2,
body.directory.members #buddypress ul#members-list > li .list-title,
body.directory.members #buddypress ul#members-list > li .member-name,
body.directory.members #buddypress ul#members-list > li .item .item-name {
    font-family: "Poppins", system-ui, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 4px !important;
    color: #1A2B3F !important;
    text-align: center;
}
body.directory.members #buddypress ul#members-list > li .item-title a,
body.directory.members #buddypress ul#members-list > li .list-title a,
body.directory.members #buddypress ul#members-list > li .member-name a,
body.directory.members #buddypress ul#members-list > li h2 a,
body.directory.members #buddypress ul#members-list > li a.user-link {
    color: #1A2B3F !important;
    text-decoration: none !important;
    background: none !important;
    background-image: none !important;
    -webkit-text-fill-color: #1A2B3F !important;
}
body.directory.members #buddypress ul#members-list > li .item-title a:hover,
body.directory.members #buddypress ul#members-list > li .list-title a:hover,
body.directory.members #buddypress ul#members-list > li .member-name a:hover,
body.directory.members #buddypress ul#members-list > li h2 a:hover {
    color: #4189DB !important;
    -webkit-text-fill-color: #4189DB !important;
}

/* Hide the bp-nouveau .item wrapper's default left-aligned layout — we want
 * everything centered within the card. */
body.directory.members #buddypress ul#members-list > li .list-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
body.directory.members #buddypress ul#members-list > li .item {
    width: 100%;
    text-align: center;
}
body.directory.members #buddypress ul#members-list > li .item-block {
    width: 100%;
}
body.directory.members #buddypress ul#members-list > li .item-meta,
body.directory.members #buddypress ul#members-list > li .last-activity,
body.directory.members #buddypress ul#members-list > li p.item-meta,
body.directory.members #buddypress ul#members-list > li .item-desc,
body.directory.members #buddypress ul#members-list > li .activity {
    font-size: 13px !important;
    color: #5A6573 !important;
    margin: 0 0 12px !important;
    line-height: 1.4 !important;
    text-align: center;
}
body.directory.members #buddypress ul#members-list > li .action,
body.directory.members #buddypress ul#members-list > li .action .generic-button a {
    display: inline-block;
    padding: 8px 16px;
    background: #EEF3FA;
    color: #4189DB;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .2s ease;
}
body.directory.members #buddypress ul#members-list > li .action a:hover {
    background: #4189DB;
    color: #fff;
}

/* Pagination — BP-nouveau markup is:
 *   .bp-pagination > .bp-pagination-links > p.pag-data > a.page-numbers
 * (plus a separate .pag-count text). Selectors below cover both that and the
 * older .pagination/.pagination-links variants. */
body.directory.members #buddypress .pagination,
body.directory.members #buddypress .bp-pagination-links,
body.directory.members #buddypress .pag-data,
body.directory.members #buddypress .pag-count,
body.directory.members #buddypress .pagination-links {
    background: transparent;
    border: 0;
    color: #5A6573;
    font-size: 14px;
    margin-top: 0;
}
body.directory.members #buddypress .pagination-links a,
body.directory.members #buddypress .pagination-links span,
body.directory.members #buddypress .pag-data a.page-numbers,
body.directory.members #buddypress .pag-data span.page-numbers {
    display: inline-block;
    min-width: 36px;
    padding: 6px 10px;
    margin: 0 2px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #E2E8F0;
    color: #1A2B3F;
    text-align: center;
    text-decoration: none;
    transition: all .15s ease;
}
body.directory.members #buddypress .pagination-links a:hover,
body.directory.members #buddypress .pag-data a.page-numbers:hover {
    border-color: #4189DB;
    color: #4189DB;
}
body.directory.members #buddypress .pagination-links span.current,
body.directory.members #buddypress .pagination-links .current,
body.directory.members #buddypress .pag-data span.page-numbers.current,
body.directory.members #buddypress .pag-data .current {
    background: #1A2B3F;
    color: #fff !important;
    border-color: #1A2B3F;
}
/* Kill the inherited theme red link colour on every pagination link variant. */
body.directory.members #buddypress .pagination a,
body.directory.members #buddypress .pagination-links a,
body.directory.members #buddypress .bp-pagination-links a,
body.directory.members #buddypress .pag-data a,
body.directory.members #buddypress .pag-data a.page-numbers,
body.directory.members #buddypress .pag-data a:visited,
body.directory.members #buddypress .pag-data a.next,
body.directory.members #buddypress .pag-data a.prev {
    color: #1A2B3F !important;
    text-decoration: none !important;
}
body.directory.members #buddypress .pagination a:hover,
body.directory.members #buddypress .pag-data a:hover {
    color: #4189DB !important;
}
body.directory.members #buddypress .pag-count {
    color: #5A6573 !important;
    float: none;
}

/* Loading state */
body.directory.members #buddypress #members-dir-list > p {
    text-align: center;
    color: #5A6573;
    padding: 48px 16px;
    background: #fff;
    border: 1px dashed #D6DEEA;
    border-radius: 14px;
}

/* Tablet/mobile tweaks for the directory grid. */
@media (max-width: 767px) {
    body.directory.members #buddypress ul#members-list,
    body.directory.members #buddypress .members-list,
    body.directory.members #buddypress #members-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
    body.directory.members #buddypress ul#members-list > li {
        padding: 18px 12px 16px;
        border-radius: 12px;
    }
    body.directory.members #buddypress ul#members-list > li .item-avatar,
    body.directory.members #buddypress ul#members-list > li img.avatar {
        width: 72px !important;
        height: 72px !important;
    }
    body.directory.members #buddypress .dir-search,
    body.directory.members #buddypress #subnav,
    body.directory.members #buddypress .subnav-filters {
        flex-direction: column;
        align-items: stretch;
    }
    /* Mobile search form: tight 44px row, full-width, no stretching to
     * match tall sibling flex items. */
    body.directory.members #buddypress .dir-search,
    body.directory.members #buddypress .dir-search form,
    body.directory.members #buddypress .bp-dir-search-form {
        max-width: 100%;
        width: 100%;
        flex: 0 0 auto;
        align-self: stretch;
        height: 46px;
        min-height: 0;
    }
    body.directory.members #buddypress .dir-search input[type="search"],
    body.directory.members #buddypress .dir-search input[type="text"] {
        height: 44px;
        padding: 8px 12px;
        font-size: 16px; /* prevents iOS zoom on focus */
    }
    body.directory.members #buddypress .dir-search button,
    body.directory.members #buddypress button.nouveau-search-submit {
        width: 52px;
        min-width: 52px;
        padding: 0;
        flex: 0 0 52px;
    }
    /* Order-by select: full-width row below search. */
    body.directory.members #buddypress #members-order-select,
    body.directory.members #buddypress .last.filter {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    body.directory.members #buddypress .select-wrap,
    body.directory.members #buddypress .select-wrap select {
        width: 100%;
    }
    /* Members loop meta: tighter, neutral color (no longer alarming). */
    body.directory.members #buddypress ul#members-list > li .item-meta {
        font-size: 12px;
        color: #5A6573;
        margin-top: 4px;
    }
    /* Pagination row: wrap and center on small screens. */
    body.directory.members #buddypress .bp-pagination,
    body.directory.members #buddypress .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
}

/* -----------------------------------------------------------------------
 * COOKIE NOTICE — Cookie Notice & Compliance plugin (cookie-notice 3.x).
 * Container #cookie-notice.cookie-notice-container; buttons .cn-button
 * (#cn-accept-cookie, #cn-refuse-cookie). The plugin ships inline styles
 * and high-specificity rules, so we lead with `html body` selectors.
 * --------------------------------------------------------------------- */
html body #cookie-notice.cookie-notice-container,
html body div#cookie-notice {
    position: fixed;
    background: #1A2B3F !important;
    background-color: #1A2B3F !important;
    color: #F1F5FA !important;
    border-top: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 0 -12px 32px rgba(10, 26, 42, .35) !important;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    padding: 0 !important;
    z-index: 100000;
}
/* The actual inner wrapper holds the text + buttons row. Scoped with
   :not(.cookie-notice-hidden) so the plugin can still hide the banner
   after Accept/Deny — otherwise our display:flex !important wins over
   the plugin's display:none rule and the banner never goes away. */
html body #cookie-notice:not(.cookie-notice-hidden) .cookie-notice-container,
html body #cookie-notice:not(.cookie-notice-hidden) #cn-notice-wrapper {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px clamp(20px, 4vw, 40px) !important;
    background: transparent !important;
    color: inherit !important;
    text-align: left;
}
/* Belt + suspenders: ensure a dismissed banner stays gone even if some
   later rule re-enables display. */
html body #cookie-notice.cookie-notice-hidden,
html body #cookie-notice.cookie-notice-hidden .cookie-notice-container,
html body #cookie-notice.cookie-notice-hidden #cn-notice-wrapper {
    display: none !important;
}
html body #cookie-notice #cn-notice-text {
    flex: 1 1 420px;
    display: block;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: #F1F5FA !important;
    margin: 0;
    padding: 0;
}
html body #cookie-notice #cn-notice-buttons,
html body #cookie-notice .cn-buttons-container {
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 !important;
    flex: 0 0 auto;
}
/* Policy / inline links inside the notice. */
html body #cookie-notice a:not(.cn-button):not(#cn-close-notice) {
    color: #8FB8E8 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none !important;
}
html body #cookie-notice a:not(.cn-button):not(#cn-close-notice):hover {
    color: #fff !important;
}
/* Buttons — base. */
html body #cookie-notice .cn-button,
html body #cookie-notice a.cn-button,
html body #cookie-notice button.cn-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 22px !important;
    min-height: 40px;
    background: #fff !important;
    color: #1A2B3F !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    letter-spacing: .2px;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: background .15s ease, color .15s ease, transform .15s ease;
    cursor: pointer;
}
html body #cookie-notice .cn-button:hover {
    transform: translateY(-1px);
}
/* Accept = solid brand blue. */
html body #cookie-notice #cn-accept-cookie,
html body #cookie-notice a#cn-accept-cookie,
html body #cookie-notice button#cn-accept-cookie {
    background: #4189DB !important;
    color: #fff !important;
}
html body #cookie-notice #cn-accept-cookie:hover {
    background: #2F73C2 !important;
}
/* Refuse = subtle outline on dark. */
html body #cookie-notice #cn-refuse-cookie,
html body #cookie-notice a#cn-refuse-cookie,
html body #cookie-notice button#cn-refuse-cookie {
    background: transparent !important;
    color: #F1F5FA !important;
    border: 1px solid rgba(255, 255, 255, .35) !important;
    padding: 9px 22px !important;
}
html body #cookie-notice #cn-refuse-cookie:hover {
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .55) !important;
}
/* Close icon (small × in the corner) — CSS-drawn X for crisp rendering. */
html body #cookie-notice #cn-close-notice.cn-close-icon,
html body #cookie-notice .cn-close-icon {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%);
    width: 30px !important;
    height: 30px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 50% !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    cursor: pointer;
    box-shadow: none !important;
    opacity: 1 !important;
    overflow: hidden;
}
/* Two 12px bars rotated to form a clean X, perfectly centered. */
html body #cookie-notice #cn-close-notice.cn-close-icon::before,
html body #cookie-notice #cn-close-notice.cn-close-icon::after,
html body #cookie-notice .cn-close-icon::before,
html body #cookie-notice .cn-close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    background: #F1F5FA;
    border-radius: 1px;
    transform-origin: center;
}
html body #cookie-notice #cn-close-notice.cn-close-icon::before,
html body #cookie-notice .cn-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
html body #cookie-notice #cn-close-notice.cn-close-icon::after,
html body #cookie-notice .cn-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
html body #cookie-notice .cn-close-icon:hover {
    background: rgba(255, 255, 255, .18) !important;
    border-color: rgba(255, 255, 255, .4) !important;
}
/* Revoke (sticky tab on policy pages) — small floating pill. */
html body .cookie-revoke-container#cookie-revoke {
    background: rgba(26, 43, 63, .92) !important;
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 8px 12px !important;
}
html body .cookie-revoke-container .cn-revoke-cookie {
    background: #fff !important;
    color: #1A2B3F !important;
    border-radius: 999px !important;
    padding: 7px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid #E2E8F0 !important;
}
/* Mobile: stack text above buttons, keep close button in the corner. */
@media (max-width: 640px) {
    html body #cookie-notice .cookie-notice-container,
    html body #cookie-notice #cn-notice-wrapper {
        padding: 14px 44px 14px 16px !important;
        gap: 10px;
    }
    html body #cookie-notice #cn-notice-text {
        flex: 1 1 100%;
    }
    html body #cookie-notice #cn-notice-buttons,
    html body #cookie-notice .cn-buttons-container {
        flex: 1 1 100%;
        width: 100%;
    }
    html body #cookie-notice .cn-button {
        flex: 1 1 auto;
    }
    html body #cookie-notice .cn-close-icon {
        top: 14px !important;
        transform: none !important;
    }
}

/* =======================================================================
 * BUDDYPRESS MEMBER PROFILE (single user)
 * Body class: body.bp-user (also .xprofile.profile.public)
 * Markup:
 *   #buddypress
 *     #item-header.users-header.single-headers
 *       #item-header-avatar > a > img
 *       #item-header-content > .item-meta > .activity
 *     .bp-wrap
 *       nav#object-nav.bp-navs ul#member-primary-nav > li > a
 *       #item-body
 *         nav#subnav.bp-navs.bp-subnavs ul#member-secondary-nav > li > a
 *         .profile.public
 *           h2.screen-heading
 *           .bp-widget.<group> > h3.screen-heading + table.profile-fields
 * ===================================================================== */

/* Page wrap — inherits sitewide container from .entry-content. */
body.bp-user #buddypress {
    max-width: none;
    margin: 0;
    padding: 24px 0 48px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1A2B3F;
}

/* --- Header banner ----------------------------------------------------- */
body.bp-user #buddypress #item-header.users-header {
    background: linear-gradient(135deg, #1A2B3F 0%, #2A3F5F 100%);
    color: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
body.bp-user #buddypress #item-header::before,
body.bp-user #buddypress #item-header::after {
    content: none !important;
    display: none !important;
}
body.bp-user #buddypress #item-header-avatar {
    flex: 0 0 auto;
    margin: 0;
}
/* Member avatars are 150x150 native. Render at native size (no scaling)
 * inside a slightly larger decorative ring so the banner has presence
 * without ever stretching or blurring the source image. */
body.bp-user #buddypress #item-header-avatar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    padding: 8px;
    border-radius: 50%;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .25),
        0 8px 24px rgba(0, 0, 0, .25);
    box-sizing: content-box;
}
body.bp-user #buddypress #item-header-avatar img {
    display: block;
    width: 150px !important;
    height: 150px !important;
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
body.bp-user #buddypress #item-header-content {
    flex: 1 1 280px;
    min-width: 0;
}
/* Hide the duplicate WP entry title on single member pages; the name is
   already shown inside the blue profile header card. */
body.bp-user .page-header,
body.bp-user .entry-header,
body.bp-user h1.entry-title,
body.bp-user h1.page-title {
    display: none !important;
}
body.bp-user #buddypress #item-header-content .asic-member-name {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.15;
}
body.bp-user #buddypress #item-header-content .item-meta {
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
}
body.bp-user #buddypress #item-header-content .item-meta .activity {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    font-weight: 500;
}

/* --- Primary nav (Profile / etc) — pill tabs, same as directory -------- */
body.bp-user #buddypress nav#object-nav {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 16px 0;
}
body.bp-user #buddypress nav#object-nav::before,
body.bp-user #buddypress nav#object-nav::after {
    content: none !important;
    display: none !important;
}
body.bp-user #buddypress nav#object-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 12px;
}
body.bp-user #buddypress nav#object-nav li {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    float: none;
}
body.bp-user #buddypress nav#object-nav li a {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #D6DEEA;
    border-radius: 999px;
    color: #1A2B3F !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all .15s ease;
}
body.bp-user #buddypress nav#object-nav li a:hover {
    border-color: #4189DB;
    color: #4189DB !important;
}
body.bp-user #buddypress nav#object-nav li.current a,
body.bp-user #buddypress nav#object-nav li.selected a {
    background: #1A2B3F;
    border-color: #1A2B3F;
    color: #fff !important;
}

/* --- Secondary subnav (View / Edit / Change Profile Photo / …) -------
 * Force a clean underline-tab look; explicitly neutralise any background,
 * border, or padding inherited from the generic BP button rules above. */
body.bp-user #buddypress #item-body nav#subnav {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 20px 0;
}
body.bp-user #buddypress #item-body nav#subnav::before,
body.bp-user #buddypress #item-body nav#subnav::after {
    content: none !important;
    display: none !important;
}
body.bp-user #buddypress #item-body nav#subnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #E2E8F0;
}
body.bp-user #buddypress #item-body nav#subnav li,
body.bp-user #buddypress #item-body nav#subnav li.edit,
body.bp-user #buddypress #item-body nav#subnav li.change-avatar,
body.bp-user #buddypress #item-body nav#subnav li.change-cover-image {
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    float: none;
    list-style: none;
}
body.bp-user #buddypress #item-body nav#subnav li a,
body.bp-user #buddypress #item-body nav#subnav li.edit a,
body.bp-user #buddypress #item-body nav#subnav li.change-avatar a,
body.bp-user #buddypress #item-body nav#subnav li.change-cover-image a {
    display: inline-block;
    padding: 10px 18px !important;
    background: transparent !important;
    color: #5A6573 !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    margin-bottom: -1px;
    transition: color .15s ease, border-color .15s ease;
}
body.bp-user #buddypress #item-body nav#subnav li a:hover {
    color: #1A2B3F !important;
    border-bottom-color: #D6DEEA !important;
}
body.bp-user #buddypress #item-body nav#subnav li.current a,
body.bp-user #buddypress #item-body nav#subnav li.selected a {
    color: #1A2B3F !important;
    border-bottom-color: #4189DB !important;
}

/* --- Profile-group selector (General / Specialties / Biography / Company)
 * BP-nouveau renders this as `<nav class="bp-navs ..." id="profile-subnav-edit">`
 * or sometimes inside `<ul class="profile-edit">`. Style as compact pill
 * tabs that align with the look of the rest of the directory. */
body.bp-user #buddypress nav.bp-subnavs[id^="profile-subnav"],
body.bp-user #buddypress nav#profile-subnav,
body.bp-user #buddypress nav#profile-subnav-edit,
body.bp-user #buddypress .profile-subnav,
body.bp-user #buddypress ul.profile-edit {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 18px 0;
}
body.bp-user #buddypress nav.bp-subnavs[id^="profile-subnav"]::before,
body.bp-user #buddypress nav.bp-subnavs[id^="profile-subnav"]::after,
body.bp-user #buddypress .profile-subnav::before,
body.bp-user #buddypress .profile-subnav::after,
body.bp-user #buddypress ul.profile-edit::before,
body.bp-user #buddypress ul.profile-edit::after {
    content: none !important;
    display: none !important;
}
body.bp-user #buddypress nav.bp-subnavs[id^="profile-subnav"] ul,
body.bp-user #buddypress .profile-subnav ul,
body.bp-user #buddypress ul.profile-edit {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
body.bp-user #buddypress nav.bp-subnavs[id^="profile-subnav"] li,
body.bp-user #buddypress .profile-subnav li,
body.bp-user #buddypress ul.profile-edit > li {
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    float: none;
    list-style: none;
}
body.bp-user #buddypress nav.bp-subnavs[id^="profile-subnav"] li a,
body.bp-user #buddypress .profile-subnav li a,
body.bp-user #buddypress ul.profile-edit > li a {
    display: inline-block;
    padding: 7px 14px !important;
    background: #fff !important;
    color: #1A2B3F !important;
    border: 1px solid #D6DEEA !important;
    border-radius: 999px !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    transition: all .15s ease;
}
body.bp-user #buddypress nav.bp-subnavs[id^="profile-subnav"] li a:hover,
body.bp-user #buddypress .profile-subnav li a:hover,
body.bp-user #buddypress ul.profile-edit > li a:hover {
    border-color: #4189DB !important;
    color: #4189DB !important;
}
body.bp-user #buddypress nav.bp-subnavs[id^="profile-subnav"] li.current a,
body.bp-user #buddypress nav.bp-subnavs[id^="profile-subnav"] li.selected a,
body.bp-user #buddypress .profile-subnav li.current a,
body.bp-user #buddypress .profile-subnav li.selected a,
body.bp-user #buddypress ul.profile-edit > li.current a,
body.bp-user #buddypress ul.profile-edit > li.selected a {
    background: #1A2B3F !important;
    border-color: #1A2B3F !important;
    color: #fff !important;
}

/* --- Profile fields card --------------------------------------------- */
body.bp-user #buddypress .profile.public,
body.bp-user #buddypress .profile.edit {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 28px 32px;
}
body.bp-user #buddypress .profile h2.screen-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1A2B3F;
    margin: 0 0 20px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #E2E8F0;
}
body.bp-user #buddypress .profile .bp-widget {
    margin: 0 0 28px 0;
}
body.bp-user #buddypress .profile .bp-widget:last-child {
    margin-bottom: 0;
}
body.bp-user #buddypress .profile .bp-widget h3.screen-heading,
body.bp-user #buddypress .profile .bp-widget h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #4189DB;
    margin: 0 0 12px 0;
    padding: 0;
    border: 0;
}

/* Field rows — use the table but visually present as a clean key/value list */
body.bp-user #buddypress table.profile-fields {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
}
body.bp-user #buddypress table.profile-fields tr {
    background: transparent !important;
}
body.bp-user #buddypress table.profile-fields tr + tr td {
    border-top: 1px solid #F0F3F8;
}
body.bp-user #buddypress table.profile-fields td {
    padding: 12px 0;
    vertical-align: top;
    border: 0;
    background: transparent;
    font-size: 15px;
    line-height: 1.5;
}
body.bp-user #buddypress table.profile-fields td.label {
    width: 220px;
    color: #5A6573;
    font-weight: 600;
    padding-right: 24px;
}
body.bp-user #buddypress table.profile-fields td.data {
    color: #1A2B3F;
}
body.bp-user #buddypress table.profile-fields td.data p {
    margin: 0;
}
body.bp-user #buddypress table.profile-fields td.data a {
    color: #4189DB !important;
    text-decoration: none;
}
body.bp-user #buddypress table.profile-fields td.data a:hover {
    color: #1A2B3F !important;
    text-decoration: underline;
}

/* Empty states / messages inside the profile body */
body.bp-user #buddypress #item-body > p,
body.bp-user #buddypress #item-body .bp-feedback {
    background: #F4F7FB;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 20px;
    color: #5A6573;
}

/* --- Edit form controls (when on /profile/edit/) ---------------------- */
body.bp-user #buddypress .profile.edit input[type="text"],
body.bp-user #buddypress .profile.edit input[type="email"],
body.bp-user #buddypress .profile.edit input[type="url"],
body.bp-user #buddypress .profile.edit input[type="tel"],
body.bp-user #buddypress .profile.edit textarea,
body.bp-user #buddypress .profile.edit select {
    width: 100%;
    max-width: 480px;
    padding: 10px 14px;
    border: 1px solid #D6DEEA;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: #1A2B3F;
}
body.bp-user #buddypress .profile.edit input:focus,
body.bp-user #buddypress .profile.edit textarea:focus,
body.bp-user #buddypress .profile.edit select:focus {
    outline: none;
    border-color: #4189DB;
    box-shadow: 0 0 0 3px rgba(65, 137, 219, .15);
}
body.bp-user #buddypress .profile.edit .submit input[type="submit"],
body.bp-user #buddypress .profile.edit button[type="submit"] {
    background: #4189DB;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
body.bp-user #buddypress .profile.edit .submit input[type="submit"]:hover,
body.bp-user #buddypress .profile.edit button[type="submit"]:hover {
    background: #1A2B3F;
}

/* --- Mobile / tablet --------------------------------------------------- */
@media (max-width: 991px) {
    body.bp-user #buddypress {
        padding: 12px 12px 32px;
    }
    body.bp-user #buddypress #item-header.users-header {
        padding: 18px 16px;
        text-align: center;
        flex-direction: column;
        gap: 10px;
        border-radius: 12px;
        margin-bottom: 16px;
        min-height: 0;
        align-items: center;
        justify-content: flex-start;
    }
    /* Defensive: override the Elementor kit h1 (40px @ <=1024) so the name
       never balloons inside the small profile card and stretches it tall. */
    body.bp-user #buddypress #item-header-content .asic-member-name,
    body.elementor-kit-233055.bp-user #item-header-content .asic-member-name {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin: 0 0 6px 0 !important;
    }
    body.bp-user #buddypress #item-header-content {
        min-height: 0;
        padding-bottom: 4px;
    }
    body.bp-user #buddypress #item-header-avatar a {
        width: 90px;
        height: 90px;
    }
    body.bp-user #buddypress #item-header-avatar img {
        width: 90px;
        height: 90px;
    }
    body.bp-user #buddypress #item-header-content .asic-member-name {
        font-size: 22px;
        margin: 0 0 6px 0;
    }
    body.bp-user #buddypress #item-header-content .item-meta {
        font-size: 13px;
    }
    body.bp-user #buddypress #item-header-content .item-meta .activity {
        padding: 3px 10px;
    }
    body.bp-user #buddypress .profile.public,
    body.bp-user #buddypress .profile.edit {
        padding: 20px;
    }
    body.bp-user #buddypress table.profile-fields,
    body.bp-user #buddypress table.profile-fields tbody,
    body.bp-user #buddypress table.profile-fields tr,
    body.bp-user #buddypress table.profile-fields td {
        display: block;
        width: 100%;
    }
    body.bp-user #buddypress table.profile-fields td.label {
        padding: 12px 0 2px 0;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .05em;
    }
    body.bp-user #buddypress table.profile-fields td.data {
        padding: 0 0 8px 0;
    }
    body.bp-user #buddypress table.profile-fields tr + tr td.label {
        border-top: 1px solid #F0F3F8;
    }
    body.bp-user #buddypress table.profile-fields tr + tr td.data {
        border-top: 0;
    }
}

/* =======================================================================
 * BUDDYPRESS GLOBAL OVERRIDES
 * Apply across every BP screen (directory + single user + group + edit
 * screens) to neutralise the Elementor kit's red link colour and to give
 * every "Edit"/action button a consistent on-brand pill style. Scoped to
 * #buddypress so it never bleeds into Elementor sections of the site.
 * ===================================================================== */

/* Default link colour inside any BP screen. */
#buddypress a,
#buddypress a:visited {
    color: #4189DB;
    text-decoration: none;
}
#buddypress a:hover,
#buddypress a:focus {
    color: #1A2B3F;
    text-decoration: underline;
}

/* "Generic" / action buttons. BP renders these as either a real
 * <button>, <input type=submit|button>, or an <a class="button"> (also
 * sometimes a.bp-primary-action). Style them all as pills.
 * NOTE: we intentionally do NOT match `.edit a` here — BP also uses
 * <li class="edit"> inside the profile subnav for the "Edit" tab, and we
 * don't want that to look like a button. */
#buddypress .generic-button a,
#buddypress a.button,
#buddypress a.bp-primary-action,
#buddypress a.bp-secondary-action,
#buddypress .item-button,
#buddypress input[type="button"],
#buddypress input[type="submit"],
#buddypress input[type="reset"],
#buddypress button.submit,
#buddypress button.button {
    display: inline-block;
    padding: 9px 20px;
    background: #4189DB;
    color: #fff !important;
    border: 1px solid #4189DB;
    border-radius: 999px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
#buddypress .generic-button a:hover,
#buddypress a.button:hover,
#buddypress a.bp-primary-action:hover,
#buddypress a.bp-secondary-action:hover,
#buddypress .item-button:hover,
#buddypress input[type="button"]:hover,
#buddypress input[type="submit"]:hover,
#buddypress input[type="reset"]:hover,
#buddypress button.submit:hover,
#buddypress button.button:hover {
    background: #1A2B3F;
    border-color: #1A2B3F;
    color: #fff !important;
}

/* Secondary / "Cancel" buttons — outline navy. */
#buddypress a.bp-secondary-action,
#buddypress input[type="reset"],
#buddypress a.cancel,
#buddypress .standard-form input[type="reset"] {
    background: transparent;
    color: #1A2B3F !important;
    border-color: #D6DEEA;
}
#buddypress a.bp-secondary-action:hover,
#buddypress input[type="reset"]:hover,
#buddypress a.cancel:hover {
    background: #1A2B3F;
    border-color: #1A2B3F;
    color: #fff !important;
}

/* BP standard form fields (member edit, group create, settings, etc) */
#buddypress .standard-form input[type="text"],
#buddypress .standard-form input[type="email"],
#buddypress .standard-form input[type="url"],
#buddypress .standard-form input[type="tel"],
#buddypress .standard-form input[type="password"],
#buddypress .standard-form input[type="number"],
#buddypress .standard-form input[type="search"],
#buddypress .standard-form input[type="date"],
#buddypress .standard-form textarea,
#buddypress .standard-form select,
#buddypress .editfield input[type="text"],
#buddypress .editfield input[type="email"],
#buddypress .editfield input[type="url"],
#buddypress .editfield textarea,
#buddypress .editfield select {
    width: 100%;
    max-width: 520px;
    padding: 10px 14px;
    border: 1px solid #D6DEEA;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: #1A2B3F;
    box-shadow: none;
}
#buddypress .standard-form textarea,
#buddypress .editfield textarea {
    min-height: 110px;
}
#buddypress .standard-form input:focus,
#buddypress .standard-form textarea:focus,
#buddypress .standard-form select:focus,
#buddypress .editfield input:focus,
#buddypress .editfield textarea:focus,
#buddypress .editfield select:focus {
    outline: none;
    border-color: #4189DB;
    box-shadow: 0 0 0 3px rgba(65, 137, 219, .15);
}
#buddypress .standard-form label,
#buddypress .editfield label,
#buddypress .standard-form legend {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1A2B3F;
    margin: 0 0 6px 0;
}
#buddypress .standard-form .description,
#buddypress .editfield .description {
    color: #5A6573;
    font-size: 13px;
    margin: 4px 0 0 0;
}
#buddypress .standard-form > p,
#buddypress .editfield {
    margin: 0 0 18px 0;
}

/* Field visibility / radio rows on the profile edit screen. */
#buddypress .field-visibility-settings,
#buddypress .field-visibility-settings-toggle,
#buddypress .field-visibility-settings-notoggle {
    background: #F4F7FB;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 8px;
    color: #5A6573;
    font-size: 13px;
}
#buddypress .field-visibility-settings legend {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #5A6573;
}

/* Avatar / cover image upload screens often use these toolbars. */
#buddypress .bp-avatar-nav,
#buddypress .bp-cover-image-nav {
    margin-bottom: 16px;
}

/* BuddyPress flash messages */
#buddypress div.bp-feedback {
    border-radius: 10px;
    border: 1px solid #E2E8F0;
}
#buddypress div.bp-feedback.error,
#buddypress div.bp-feedback.warning {
    border-color: #f0c4c4;
    background: #fff5f5;
    color: #8a2929;
}
#buddypress div.bp-feedback.success,
#buddypress div.bp-feedback.updated {
    border-color: #c4e6c6;
    background: #f3fbf3;
    color: #2b6a30;
}
#buddypress div.bp-feedback.info {
    border-color: #c8def5;
    background: #f0f6fd;
    color: #1A2B3F;
}

/* Top-of-page user actions (e.g., friendship/messaging buttons) on the
 * single user header — keep them readable on the navy banner. */
body.bp-user #buddypress #item-header .generic-button a,
body.bp-user #buddypress #item-header a.button,
body.bp-user #buddypress #item-header .item-button {
    background: #fff;
    color: #1A2B3F !important;
    border-color: #fff;
}
body.bp-user #buddypress #item-header .generic-button a:hover,
body.bp-user #buddypress #item-header a.button:hover,
body.bp-user #buddypress #item-header .item-button:hover {
    background: #4189DB;
    border-color: #4189DB;
    color: #fff !important;
}



/* -----------------------------------------------------------------------
 * Footer link polish: remove the global brand-blue underline border that
 * the Elementor link rule (line ~25) applies to icon-list anchors, and
 * shrink overall footer text size for a tighter look.
 * --------------------------------------------------------------------- */
.elementor-location-footer .elementor-widget-icon-list a:not(.elementor-button),
.elementor-location-footer .elementor-widget-text-editor a:not(.elementor-button),
.elementor-location-footer .elementor-widget-heading a:not(.elementor-button),
.elementor-location-footer .elementor-widget-html a:not(.elementor-button) {
    border-bottom: 0 !important;
    color: inherit;
}
.elementor-location-footer .elementor-widget-icon-list a:not(.elementor-button):hover,
.elementor-location-footer .elementor-widget-text-editor a:not(.elementor-button):hover {
    border-bottom: 0 !important;
    color: #4189DB;
}

/* Smaller footer typography across all widgets. */
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-text,
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-item > a,
.elementor-location-footer .elementor-widget-text-editor,
.elementor-location-footer .elementor-widget-text-editor p,
.elementor-location-footer .elementor-widget-heading .elementor-heading-title {
    font-size: 12px !important;
    line-height: 1.55 !important;
}
.elementor-location-footer .elementor-widget-heading .elementor-heading-title {
    font-size: 13px !important;
    letter-spacing: 0.04em;
}
/* Tighten the vertical rhythm between Quick Links items. */
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child) {
    padding-block-end: 4px !important;
}
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:first-child) {
    margin-block-start: 4px !important;
}
@media (max-width: 767px) {
  .elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-text,
  .elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-item > a,
  .elementor-location-footer .elementor-widget-text-editor,
  .elementor-location-footer .elementor-widget-text-editor p {
      font-size: 11px !important;
  }
}

/* Tighter top/bottom padding on the footer sections. Override Elementor's
 * per-element padding by setting the CSS custom properties it consumes. */
.elementor-location-footer .e-con.e-parent {
    --padding-block-start: 28px !important;
    --padding-block-end: 20px !important;
    padding-top: 28px !important;
    padding-bottom: 20px !important;
}
.elementor-location-footer .e-con.e-parent > .e-con-inner {
    --padding-block-start: 0px !important;
    --padding-block-end: 0px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
@media (max-width: 767px) {
  .elementor-location-footer .e-con.e-parent {
      --padding-block-start: 22px !important;
      --padding-block-end: 16px !important;
      padding-top: 22px !important;
      padding-bottom: 16px !important;
  }
}

/* -----------------------------------------------------------------------
 * BuddyPress pages: push content below the fixed site header so the nav
 * bar stops overlapping the profile card / directory header.
 * --------------------------------------------------------------------- */
body.buddypress main.site-main,
body.bp-user main.site-main,
body.directory main.site-main {
    padding-top: 110px;
}
@media (max-width: 767px) {
  body.buddypress main.site-main,
  body.bp-user main.site-main,
  body.directory main.site-main {
      padding-top: 90px;
  }
}

/* -----------------------------------------------------------------------
 * Mobile vertical rhythm for Elementor sections.
 * Source pages were authored with desktop spacing (80px section padding,
 * 30px inner padding, 18px divider margins) which feels cavernous on
 * phones. Tighten the gap between a section heading, its divider, and
 * the content block that follows it. Sitewide, mobile only.
 * --------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Top-level section padding + inter-section gap */
    .elementor .e-con.e-parent {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
        gap: 12px !important;
    }
    /* Inner container of a section (often carries an extra 30px bottom) */
    .elementor .e-con > .e-con-inner {
        padding-top: 0 !important;
        padding-bottom: 12px !important;
    }
    /* Divider widget margins */
    .elementor .elementor-widget-divider {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
    /* Heading widget bottom margin when it precedes a divider/content */
    .elementor .elementor-widget-heading {
        margin-bottom: 4px !important;
    }
}

/* -----------------------------------------------------------------------
 * Avoid widows on H1 headings on desktop. `text-wrap: balance` evenly
 * distributes words across lines so we never leave a single lonely word
 * trailing on its own line. Scoped to desktop (>=1025px) since narrow
 * viewports usually wrap headings tightly already.
 * --------------------------------------------------------------------- */
@media (min-width: 1025px) {
    h1,
    .elementor h1,
    .elementor-widget-heading h1.elementor-heading-title {
        text-wrap: balance;
    }
}

/* -----------------------------------------------------------------------
 * Partners page — logo grid (per tier)
 * --------------------------------------------------------------------- */
.asic-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 40px;
    align-items: center;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
}
.asic-partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    min-height: 120px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #E5EAF0;
    border-radius: 12px;
    box-shadow: 0 4px 16px -10px rgba(26, 43, 63, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* For logos that are white/light-on-transparent — give them a dark card */
.asic-partner-logo.is-on-dark {
    background: #1A2B3F;
    border-color: #1A2B3F;
}
.asic-partner-logo img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
a.asic-partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(26, 43, 63, 0.35);
}
a.asic-partner-logo:hover img {
    transform: scale(1.03);
}
@media (max-width: 1024px) {
    .asic-partner-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .asic-partner-logo { min-height: 110px; max-width: 200px; padding: 18px 20px; }
    .asic-partner-logo img { max-height: 60px; }
}
@media (max-width: 600px) {
    .asic-partner-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .asic-partner-logo { min-height: 96px; max-width: 170px; padding: 14px 16px; border-radius: 10px; }
    .asic-partner-logo img { max-height: 52px; }
}

/* Partners: all logo tiles on a white background (per request); logo links to the
   company homepage; hovering reveals a popover with the partner's rep contact links. */
.asic-partner-logo,
.asic-partner-logo.is-on-dark {
    background: #ffffff;
    border-color: #E5EAF0;
    position: relative;
    z-index: 1;
}
.asic-partner-logo__link,
.asic-partner-logo__link:hover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-bottom: 0 !important;
}
.asic-partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(26, 43, 63, 0.35);
}
/* Raise the hovered card (and its popover) above neighboring cards. */
.asic-partner-logo:hover,
.asic-partner-logo:focus-within {
    z-index: 60;
}
.asic-partner-pop {
    position: absolute;
    left: 50%;
    top: calc(100% - 6px);
    transform: translateX(-50%) translateY(6px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: max-content;
    min-width: 170px;
    max-width: 360px;
    padding: 12px 16px;
    background: #1A2B3F;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(14, 42, 71, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 61;
    text-align: center;
}
.asic-partner-pop::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top: 0;
    border-bottom: 6px solid #1A2B3F;
}
.asic-partner-logo:hover .asic-partner-pop,
.asic-partner-logo:focus-within .asic-partner-pop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.asic-partner-pop__label {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8FD49A;
    margin-bottom: 2px;
}
.asic-partner-pop__rep {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.45;
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 0 !important;
    white-space: nowrap;
    padding: 3px 4px;
    border-radius: 5px;
}
.asic-partner-pop__rep:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

/* =========================================================
   ELEMENTOR PRO FORM — polished styling
   ========================================================= */
/* Remove the dashed container around the contact form */
.elementor-element.elementor-element-cedb08f3 {
    border: 0 !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 40px -20px rgba(26, 43, 63, 0.18), 0 2px 6px rgba(26, 43, 63, 0.04) !important;
    padding: 48px 48px !important;
}
@media (max-width: 768px) {
    .elementor-element.elementor-element-cedb08f3 {
        padding: 28px 22px !important;
        border-radius: 12px !important;
    }
}

/* Form fields */
.elementor-form .elementor-field-group { margin-bottom: 4px; }
.elementor-form .elementor-field-type-text input,
.elementor-form .elementor-field-type-email input,
.elementor-form .elementor-field-type-tel input,
.elementor-form .elementor-field-type-url input,
.elementor-form .elementor-field-type-number input,
.elementor-form .elementor-field-type-textarea textarea,
.elementor-form .elementor-field-textual {
    background: #F7F9FB !important;
    border: 1px solid #E1E7EE !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    font-family: 'Inter', sans-serif !important;
    color: #1A2B3F !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.elementor-form .elementor-field-type-textarea textarea {
    min-height: 140px;
    resize: vertical;
}
.elementor-form .elementor-field-textual::placeholder {
    color: #8A98A8 !important;
    opacity: 1;
}
.elementor-form .elementor-field-textual:focus,
.elementor-form .elementor-field-textual:focus-visible {
    outline: none !important;
    border-color: #2E7DD7 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(46, 125, 215, 0.12) !important;
}

/* Submit button */
.elementor-form .elementor-button,
.elementor-form button[type="submit"] {
    background: linear-gradient(135deg, #2E7DD7 0%, #1F5FB0 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 14px 38px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.2px;
    font-family: 'Poppins', sans-serif !important;
    box-shadow: 0 8px 22px -8px rgba(46, 125, 215, 0.55) !important;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
    cursor: pointer;
}
.elementor-form .elementor-button:hover,
.elementor-form button[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px -8px rgba(46, 125, 215, 0.65) !important;
}
.elementor-form .elementor-button:active {
    transform: translateY(0);
}

/* Field labels (if shown) */
.elementor-form .elementor-field-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1A2B3F !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.2px;
}

/* The form on /contact/ is placeholder-only (no visible labels). Elementor
 * renders the required asterisk via a ::after pseudo on .elementor-mark-required
 * labels, which leaks through as a stray red dot above each required field
 * when the label text itself is hidden. Visually hide the labels (still
 * accessible to screen readers) and kill the asterisk. */
body.page-id-234094 .elementor-form .elementor-field-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
body.page-id-234094 .elementor-form .elementor-mark-required .elementor-field-label::after,
body.page-id-234094 .elementor-form .elementor-field-label .elementor-required,
body.page-id-234094 .elementor-form .elementor-mark-required .elementor-required {
    display: none !important;
    content: none !important;
}

/* Tighten/balance the white form container on /contact/. The Elementor
 * column has zero top padding by default, so the asterisks/first row sit
 * flush against the top edge. Give the form some breathing room. */
body.page-id-234094 .elementor-widget-form .elementor-form {
    padding: 36px 40px 40px;
}
@media (max-width: 640px) {
    body.page-id-234094 .elementor-widget-form .elementor-form {
        padding: 24px 18px 28px;
    }
}

/* Success / error messages */
.elementor-message.elementor-message-success {
    color: #1E8E5A !important;
    font-weight: 500;
}
.elementor-message.elementor-message-danger {
    color: #C0392B !important;
    font-weight: 500;
}

/* =======================================================================
 * Single post template (asic-child/single.php)
 * Brand-consistent, responsive, readable typography.
 * ===================================================================== */
.asic-single-main {
    background: #fff;
    color: #1A2B3F;
}
.asic-single-hero {
    background: linear-gradient(135deg, #0E2236 0%, #1F4F84 100%);
    color: #fff;
    padding: 56px 24px 48px;
}
.asic-single-hero__inner {
    max-width: 1240px;
    margin: 0 auto;
}
.asic-single-hero__crumbs a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s;
}
.asic-single-hero__crumbs a:hover { color: #fff; }
.asic-single-hero__eyebrow {
    margin: 18px 0 8px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}
.asic-single-hero__eyebrow a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.asic-single-hero__eyebrow a:hover { border-bottom-color: rgba(255,255,255,0.6); }
.asic-single-hero__title {
    font-size: clamp(28px, 4.4vw, 46px);
    line-height: 1.15;
    margin: 0 0 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.asic-single-hero__meta {
    margin: 0;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
}
.asic-single-hero__sep { margin: 0 8px; opacity: 0.6; }

/* Featured image — contained to reading column so amateur uploads don't dominate the page */
.asic-single-featured {
    margin: 36px auto 0;
    padding: 0 24px;
    max-width: 768px; /* 720 content + 24px padding each side */
    background: transparent;
}
.asic-single-featured__img,
.asic-single-featured img {
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(14,34,54,0.12);
    background: #f3f5f8;
}
.asic-single-article { padding-top: 28px; }
.asic-single-main:not(.asic-single-main--wide) .asic-single-article { padding-top: 28px; }

/* Article body */
.asic-single-article {
    padding: 48px 24px 32px;
}
.asic-single-article__inner {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.75;
    color: #2B3A4F;
}
.asic-single-article__inner p {
    margin: 0 0 1.25em;
}
.asic-single-article__inner h2 {
    margin: 2em 0 0.6em;
    font-size: clamp(24px, 2.6vw, 30px);
    line-height: 1.25;
    color: #1A2B3F;
    font-weight: 700;
    letter-spacing: -0.005em;
}
.asic-single-article__inner h3 {
    margin: 1.8em 0 0.5em;
    font-size: clamp(20px, 2.1vw, 24px);
    line-height: 1.3;
    color: #1A2B3F;
    font-weight: 700;
}
.asic-single-article__inner h4,
.asic-single-article__inner h5,
.asic-single-article__inner h6 {
    margin: 1.6em 0 0.4em;
    color: #1A2B3F;
    font-weight: 700;
}
.asic-single-article__inner a {
    color: #1F4F84;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.asic-single-article__inner a:hover { color: #2E7D32; }
.asic-single-article__inner strong,
.asic-single-article__inner b { color: #1A2B3F; }
.asic-single-article__inner ul,
.asic-single-article__inner ol {
    margin: 0 0 1.5em 1.4em;
    padding: 0;
}
.asic-single-article__inner li { margin: 0 0 0.4em; }
.asic-single-article__inner blockquote {
    margin: 1.8em 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid #1F4F84;
    color: #44546A;
    font-style: italic;
    font-size: 1.05em;
}
.asic-single-article__inner figure,
.asic-single-article__inner .wp-block-image {
    margin: 1.8em 0;
}
.asic-single-article__inner figure img,
.asic-single-article__inner .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(14,34,54,0.08);
}
.asic-single-article__inner figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #6B7889;
    text-align: center;
}
.asic-single-article__inner iframe {
    max-width: 100%;
    border: 0;
}

/* Gallery: responsive grid — overrides WP's default flex layout */
.asic-single-article__inner .wp-block-gallery.has-nested-images,
.asic-single-article__inner .wp-block-gallery.has-nested-images.is-layout-flex,
.asic-single-article__inner .wp-block-gallery.has-nested-images.wp-block-gallery-is-layout-flex {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 2em 0;
    align-items: stretch;
    justify-content: stretch;
}
.asic-single-article__inner .wp-block-gallery.has-nested-images > figure.wp-block-image {
    width: auto !important;
    flex: unset !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    box-shadow: none;
}
.asic-single-article__inner .wp-block-gallery.has-nested-images > figure.wp-block-image > a,
.asic-single-article__inner .wp-block-gallery.has-nested-images > figure.wp-block-image {
    display: block;
    height: 100%;
}
.asic-single-article__inner .wp-block-gallery.has-nested-images > figure.wp-block-image img {
    display: block;
    width: 100% !important;
    height: 240px !important;
    max-width: none !important;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(14,34,54,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: #f3f5f8;
}
.asic-single-article__inner .wp-block-gallery.has-nested-images > figure.wp-block-image:hover img {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(14,34,54,0.18);
}
.asic-single-article__inner .wp-block-gallery.has-nested-images figcaption {
    margin-top: 6px;
    font-size: 13px;
    color: #6B7889;
}
@media (max-width: 768px) {
    .asic-single-article__inner .wp-block-gallery.has-nested-images,
    .asic-single-article__inner .wp-block-gallery.has-nested-images.is-layout-flex,
    .asic-single-article__inner .wp-block-gallery.has-nested-images.wp-block-gallery-is-layout-flex {
        grid-template-columns: repeat(2, 1fr);
    }
    .asic-single-article__inner .wp-block-gallery.has-nested-images > figure.wp-block-image img {
        height: 200px !important;
    }
}
@media (max-width: 480px) {
    .asic-single-article__inner .wp-block-gallery.has-nested-images,
    .asic-single-article__inner .wp-block-gallery.has-nested-images.is-layout-flex,
    .asic-single-article__inner .wp-block-gallery.has-nested-images.wp-block-gallery-is-layout-flex {
        grid-template-columns: 1fr;
    }
    .asic-single-article__inner .wp-block-gallery.has-nested-images > figure.wp-block-image img {
        height: 260px !important;
    }
}

/* Auto-converted bullet lists from pasted Word/PDF text (• prefixed lines).
   functions.php turns those into <ul class="asic-auto-bullets">.  */
.asic-single-article__inner ul.asic-auto-bullets {
    list-style: none;
    margin: 1em 0 1.5em;
    padding: 0;
}
.asic-single-article__inner ul.asic-auto-bullets li {
    position: relative;
    margin: 0 0 0.55em;
    padding-left: 1.4em;
    line-height: 1.65;
}
.asic-single-article__inner ul.asic-auto-bullets li::before {
    content: "";
    position: absolute;
    left: 0.25em;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4189DB;
}

/* Make the section sub-headings (e.g. PROJECT OVERVIEW, ROLE OF THE …) read as section labels */
.asic-single-article__inner p > strong:only-child,
.asic-single-article__inner p > b:only-child {
    display: inline-block;
    margin-top: 0.4em;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4189DB;
    font-weight: 700;
}
.asic-single-article__inner p:has(> strong:only-child),
.asic-single-article__inner p:has(> b:only-child) {
    margin-top: 1.8em;
    margin-bottom: 0.4em;
}

/* Gutenberg button block inside post body — readable brand-blue pill */
.asic-single-article__inner .wp-block-buttons {
    margin: 1.2em 0 1.6em;
    gap: 10px;
}
.asic-single-article__inner .wp-block-button__link.wp-element-button,
.asic-single-article__inner .wp-block-button__link {
    background: #4189DB !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 26px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(65, 137, 219, 0.25);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.asic-single-article__inner .wp-block-button__link:hover,
.asic-single-article__inner .wp-block-button__link.wp-element-button:hover {
    background: #1F4F84 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(31, 79, 132, 0.3);
}
.asic-single-article__inner .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: #1F4F84 !important;
    border: 2px solid #1F4F84 !important;
    box-shadow: none;
}
.asic-single-article__inner .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #1F4F84 !important;
    color: #fff !important;
}

/* Tags */
.asic-single-tags {
    max-width: 720px;
    margin: 32px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.asic-single-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #EEF3F9;
    color: #1F4F84;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.asic-single-tag:hover {
    background: #1F4F84;
    color: #fff;
}

/* Article footer back-link */
.asic-single-footer {
    max-width: 720px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid #E4E9F0;
}
.asic-single-back {
    display: inline-block;
    color: #1F4F84;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}
.asic-single-back:hover { color: #2E7D32; }

/* Prev / next pager */
.asic-single-pager {
    background: #F6F8FB;
    padding: 40px 24px 56px;
    margin-top: 48px;
}
.asic-single-pager__inner {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.asic-single-pager__link {
    display: block;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #E4E9F0;
    border-radius: 6px;
    text-decoration: none;
    color: #1A2B3F;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.asic-single-pager__link:hover {
    border-color: #1F4F84;
    box-shadow: 0 6px 18px rgba(14,34,54,0.08);
    transform: translateY(-1px);
}
.asic-single-pager__next { text-align: right; }
.asic-single-pager__label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6B7889;
    margin-bottom: 6px;
    font-weight: 600;
}
.asic-single-pager__title {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    color: #1A2B3F;
    font-weight: 600;
}
@media (max-width: 640px) {
    .asic-single-pager__inner { grid-template-columns: 1fr; }
    .asic-single-pager__next { text-align: left; }
}

/* Responsive tweaks for hero */
@media (max-width: 640px) {
    .asic-single-hero { padding: 40px 20px 36px; }
    .asic-single-article { padding: 36px 20px 24px; }
    .asic-single-article__inner { font-size: 16px; }
}

/* =======================================================================
 * Wide rail — BuddyPress directories & non-post singulars
 * single.php detects $wide ($is_bp || !$is_post) and emits these
 * modifiers so plugin grids (members/groups/activity) get more room than
 * the 720px blog reading column.
 * ===================================================================== */
.asic-single-article--wide {
    padding-left: 0;
    padding-right: 0;
}
.asic-single-article__inner--wide {
    max-width: 1240px;
    padding: 0 32px;
    font-size: 16px;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .asic-single-article__inner--wide {
        padding: 0 20px;
    }
}

/* BuddyPress wrapper inside our wide rail */
.asic-single-article__inner--wide #buddypress {
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.asic-single-article__inner--wide #buddypress .bp-navs,
.asic-single-article__inner--wide #buddypress .dir-navs,
.asic-single-article__inner--wide #buddypress .dir-search,
.asic-single-article__inner--wide #buddypress .item-list-tabs,
.asic-single-article__inner--wide #buddypress .subnav-filters {
    max-width: 100%;
}

/* Member directory grid: snappier on wide screens */
#buddypress.buddypress-wrap .members.dir-list ul#members-list,
#buddypress.buddypress-wrap ul.item-list.members-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}
@media (max-width: 1100px) {
    #buddypress.buddypress-wrap .members.dir-list ul#members-list,
    #buddypress.buddypress-wrap ul.item-list.members-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 780px) {
    #buddypress.buddypress-wrap .members.dir-list ul#members-list,
    #buddypress.buddypress-wrap ul.item-list.members-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}
@media (max-width: 480px) {
    #buddypress.buddypress-wrap .members.dir-list ul#members-list,
    #buddypress.buddypress-wrap ul.item-list.members-list {
        grid-template-columns: 1fr;
    }
}
#buddypress.buddypress-wrap .members.dir-list ul#members-list li,
#buddypress.buddypress-wrap ul.item-list.members-list li {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 22px 18px !important;
    background: #fff;
    border: 1px solid #E4E9F0;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 3px rgba(14,34,54,0.04);
}
#buddypress.buddypress-wrap .members.dir-list ul#members-list li:hover,
#buddypress.buddypress-wrap ul.item-list.members-list li:hover {
    border-color: #1F4F84;
    box-shadow: 0 8px 22px rgba(14,34,54,0.10);
    transform: translateY(-2px);
}

/* Pagination + search row spacing */
.asic-single-article__inner--wide #buddypress .dir-search,
.asic-single-article__inner--wide #buddypress .subnav-filters {
    margin: 16px 0;
}

/* Careers: Submit a Listing form (on dark navy CTA section) */
.asic-careers-form .elementor-field-label {
	color: #FFFFFF !important;
}
.asic-careers-form .elementor-field-group {
	margin-bottom: 4px;
}
.asic-careers-form .elementor-field-textual {
	min-height: 48px;
	padding: 12px 14px;
}
.asic-careers-form textarea.elementor-field-textual {
	min-height: 120px;
}
.asic-careers-form .elementor-field-textual::placeholder {
	color: #8A99AD;
	opacity: 1;
}
.asic-careers-form .elementor-field-textual:focus {
	border-color: #4189DB !important;
	box-shadow: 0 0 0 3px rgba(65,137,219,0.18);
	outline: none;
}
.asic-careers-form .elementor-message.elementor-message-success,
.asic-careers-form .elementor-message.elementor-message-danger {
	color: #FFFFFF;
	font-weight: 500;
	margin-top: 14px;
}

/* ---------------------------------------------------------------------
 * /committees/ — unify the three section dividers ("Advisory Action
 * Committees", "Operational Event Committees", "Nominating Committees")
 * into proper title-case section headers. Kit defaults render these as
 * tiny uppercase blue eyebrows; override to Poppins 700 navy, sentence
 * case, sized as a real section H2.
 * --------------------------------------------------------------------- */
.elementor-element-0f8f0ce9 .elementor-heading-title,
.elementor-element-b5868ba6 .elementor-heading-title,
.elementor-element-d15c1a21 .elementor-heading-title {
	font-family: 'Poppins', sans-serif !important;
	font-size: clamp(28px, 3.6vw, 40px) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #1A2B3F !important;
}
@media (max-width: 767px) {
	.elementor-element-0f8f0ce9 .elementor-heading-title,
	.elementor-element-b5868ba6 .elementor-heading-title,
	.elementor-element-d15c1a21 .elementor-heading-title {
		font-size: clamp(22px, 6vw, 28px) !important;
	}
}

/* -----------------------------------------------------------------------
 * Elementor button hover — unified brand-blue swap.
 *
 * Elementor core hard-codes `.elementor-button:hover { color:#fff }`, which
 * makes any white-background button (white bg + blue text) become invisible
 * on hover (white text on white bg). Per-widget styles set the normal
 * background but rarely a hover background, so we force a brand-blue fill
 * on hover sitewide. Outcome:
 *   • white-bg / blue-text buttons → blue bg, white text (clean color swap)
 *   • blue-bg / white-text buttons → slightly darker blue, white text
 * Use !important to beat per-widget Elementor selectors (specificity 0,3,1).
 * --------------------------------------------------------------------- */
.elementor-button:hover,
.elementor-button:focus,
.elementor-widget-button .elementor-button:hover,
.elementor-widget-button .elementor-button:focus {
	background-color: #2E6FBF !important;
	border-color: #2E6FBF !important;
	color: #ffffff !important;
}
.elementor-button:hover svg,
.elementor-button:focus svg,
.elementor-button:hover svg * ,
.elementor-button:focus svg * {
	fill: #ffffff !important;
}

/* -----------------------------------------------------------------------
 * /archives/ — three deep-link cards (Featured Partners / Past Conferences
 * / Resources Hub). Force a 3-column flex layout regardless of Elementor's
 * authored child widths, and clean up the image-box presentation so each
 * column reads as a tappable card.
 * --------------------------------------------------------------------- */
.elementor .elementor-element-4287040e > .e-con-inner > .asic-archive-card-col {
	flex: 1 1 calc((100% - 48px) / 3) !important;
	max-width: calc((100% - 48px) / 3);
	min-width: 260px;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.elementor .elementor-element-4287040e > .e-con-inner > .asic-archive-card-col:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(14, 42, 71, 0.14) !important;
}
.asic-archive-card .elementor-image-box-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.asic-archive-card .elementor-image-box-img {
	margin: 0 0 18px 0 !important;
	width: 100% !important;
}
.asic-archive-card .elementor-image-box-img a {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.asic-archive-card .elementor-image-box-img img {
	width: 100% !important;
	height: 100%;
	object-fit: cover;
	display: block;
}
.asic-archive-card .elementor-image-box-content {
	padding: 0 22px;
}
.asic-archive-card .elementor-image-box-title {
	margin: 0 0 6px 0;
}
.asic-archive-card .elementor-image-box-title a {
	color: #1A2B3F;
	text-decoration: none;
}
.asic-archive-card .elementor-image-box-title a:hover {
	color: #4189DB;
}
.asic-archive-card .elementor-image-box-description {
	margin: 0;
}
@media (max-width: 767px) {
	.elementor .elementor-element-4287040e > .e-con-inner > .asic-archive-card-col {
		flex-basis: 100% !important;
		max-width: 100%;
	}
}

/* Become a Member (page 234081): equal-height category cards with the
   "Apply Now" button row pinned to the bottom of each card so they line up. */
.page-id-234081 .elementor-element-e234b298 { align-items: stretch; }
.page-id-234081 .elementor-element-e0fe53a9,
.page-id-234081 .elementor-element-843405b1,
.page-id-234081 .elementor-element-4faff8e1,
.page-id-234081 .elementor-element-3051edb4,
.page-id-234081 .elementor-element-84e76083,
.page-id-234081 .elementor-element-29395755,
.page-id-234081 .elementor-element-e0cdf12a,
.page-id-234081 .elementor-element-acfcdfdc,
.page-id-234081 .elementor-element-2386d0c7 {
	display: flex;
	flex-direction: column;
}
.page-id-234081 .elementor-element-3d5be712,
.page-id-234081 .elementor-element-817d1f22,
.page-id-234081 .elementor-element-521c4cc9,
.page-id-234081 .elementor-element-fb43fda8,
.page-id-234081 .elementor-element-f976ac7b,
.page-id-234081 .elementor-element-0c667b78,
.page-id-234081 .elementor-element-7507c677,
.page-id-234081 .elementor-element-087c4095,
.page-id-234081 .elementor-element-6156600e {
	margin-top: auto;
}
.page-id-234081 .asic-tier-note {
	display: block;
	margin-top: 12px;
	font-size: 0.82em;
	line-height: 1.5;
	opacity: 0.85;
}

/* Awards & Scholarships (page 234084) */
/* Disabled "2026 Rules" buttons — visible but not clickable until 2027 info is ready. */
.elementor .asic-btn-disabled a.elementor-button,
.elementor .asic-btn-disabled .elementor-button {
	pointer-events: none;
	opacity: 0.5;
	cursor: default;
}
/* Honor Award cards: equal height. Pin the recipient box to the bottom of each
 * column so the recipient names (and the "Submit a Nomination" buttons below
 * them) line up in straight rows across all three, regardless of how long each
 * award's title / description runs. */
.page-id-234084 .elementor-element-beabda93 { align-items: stretch; }
.page-id-234084 .elementor-element-4a594172,
.page-id-234084 .elementor-element-558419d5,
.page-id-234084 .elementor-element-415e668b {
	display: flex;
	flex-direction: column;
}
.page-id-234084 .elementor-element-2013dcac,
.page-id-234084 .elementor-element-0ee18426,
.page-id-234084 .elementor-element-707379e1 {
	margin-top: auto;
}

/* Members directory faceted filter bar */
body.directory.members .asic-dir-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
	max-width: 1440px;
	margin: 0 auto 32px;
	padding: 20px 32px;
	background: #FFFFFF;
	border: 1px solid #E5EAF0;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(14, 42, 71, 0.06);
	box-sizing: border-box;
}
body.directory.members .asic-dir-filters__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 200px;
}
body.directory.members .asic-dir-filters__field label {
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #5A6573;
}
body.directory.members .asic-dir-filters__field select {
	width: 100%;
	padding: 11px 40px 11px 14px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #1A2B3F;
	background-color: #F7F9FC;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235A6573' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	border: 1px solid #D8E0EA;
	border-radius: 8px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}
body.directory.members .asic-dir-filters__field select:focus {
	outline: none;
	border-color: #4189DB;
	background: #FFFFFF;
}
body.directory.members .asic-dir-filters__check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #1A2B3F;
	padding-bottom: 11px;
	white-space: nowrap;
}
body.directory.members .asic-dir-filters__check input {
	width: 17px;
	height: 17px;
	accent-color: #56BC5B;
}
body.directory.members .asic-dir-filters__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 1px;
}
body.directory.members .asic-dir-filters__apply {
	padding: 11px 28px;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #FFFFFF;
	background: linear-gradient(90deg, #4189DB 0%, #56BC5B 100%);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.directory.members .asic-dir-filters__apply:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(65, 137, 219, 0.35);
}
body.directory.members .asic-dir-filters__clear {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #5A6573;
	background: #F1F4F9;
	border: 1px solid #D8E0EA;
	border-radius: 8px;
	padding: 11px 22px;
	cursor: pointer;
	line-height: 1;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
body.directory.members .asic-dir-filters__clear:hover {
	background: #E6ECF4;
	color: #1A2B3F;
	border-color: #C2CEDE;
}
@media (max-width: 600px) {
	body.directory.members .asic-dir-filters { flex-direction: column; align-items: stretch; gap: 14px; }
	/* In a column layout the flex-basis becomes the item HEIGHT — reset so each
	   field is only as tall as its content (the 240px search basis was creating
	   a huge empty gap). */
	body.directory.members .asic-dir-filters__field,
	body.directory.members .asic-dir-filters__field--search {
		flex: 0 0 auto !important;
		width: 100% !important;
	}
}


/* ---- Directory: text search field in the filter bar (replaces BuddyPress's
   separate search box, which is hidden below) ---- */
body.directory.members .asic-dir-filters__field--search { flex: 1 1 240px; }
body.directory.members .asic-dir-filters__field--search input[type="search"] {
	width: 100%;
	padding: 11px 14px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #1A2B3F;
	background-color: #F7F9FC;
	border: 1px solid #D8E0EA;
	border-radius: 8px;
	-webkit-appearance: none;
	appearance: none;
}
body.directory.members .asic-dir-filters__field--search input[type="search"]:focus {
	outline: none;
	border-color: #4189DB;
	background: #FFFFFF;
}
/* Hide BuddyPress's built-in search box (our filter bar now owns search); keep Order By. */
body.directory.members .subnav-search { display: none; }

/* ---- Partner contact popover ----
   Opens on hover (desktop) OR when tapped open (touch, toggled via partners.js).
   On touch the grid stays clean — logos only — until a card is tapped. */
.asic-partner-logo.is-open { z-index: 60; }
.asic-partner-logo.is-open .asic-partner-pop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}
/* When JS has clamped the popover into the viewport it's no longer centered on
   the card, so the little pointer arrow would lie — hide it. */
.asic-partner-logo.is-shifted .asic-partner-pop::before { display: none; }
.asic-partner-logo.is-shifted .asic-partner-pop { transform: translateY(0); }
/* "Visit website" link injected at the top of the popover. */
.asic-partner-pop__site {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 2px auto 4px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .2px;
	color: #BFE6C6 !important;
	text-decoration: none;
	border-bottom: 0 !important;
	white-space: nowrap;
	padding: 4px 12px;
	border: 1px solid rgba(143, 212, 154, .35);
	border-radius: 999px;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.asic-partner-pop__site svg {
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
}
.asic-partner-pop__site:hover {
	background: rgba(143, 212, 154, .15);
	border-color: rgba(143, 212, 154, .6);
	color: #ffffff !important;
}
/* A subtle "tap for contact" cue on touch devices so people know to tap. */
.asic-partner-logo--has-contacts .asic-partner-cue {
	position: absolute;
	bottom: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #EEF3FA;
	color: #4189DB;
	font-size: 12px;
	line-height: 22px;
	text-align: center;
	pointer-events: none;
}
@media (hover: hover) {
	.asic-partner-cue { display: none; }
}
/* On small screens keep the popover from overflowing the viewport. */
@media (max-width: 600px) {
	.asic-partner-pop {
		max-width: 78vw;
		white-space: normal;
	}
	.asic-partner-pop__rep,
	.asic-partner-pop__site {
		white-space: normal;
		word-break: break-word;
	}
}

/* ---- Gold Partners: larger, more prominent presence ---- */
.asic-partner-grid--gold {
	grid-template-columns: repeat(3, 1fr);
	gap: 36px 44px;
	max-width: 1000px;
}
.asic-partner-grid--gold .asic-partner-logo {
	min-height: 170px;
	max-width: 320px;
	padding: 30px 34px;
}
.asic-partner-grid--gold .asic-partner-logo img { max-height: 100px; }
@media (max-width: 1024px) {
	.asic-partner-grid--gold { grid-template-columns: repeat(2, 1fr); }
	.asic-partner-grid--gold .asic-partner-logo { min-height: 140px; }
	.asic-partner-grid--gold .asic-partner-logo img { max-height: 80px; }
}
@media (max-width: 600px) {
	.asic-partner-grid--gold { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.asic-partner-grid--gold .asic-partner-logo { min-height: 110px; padding: 16px 18px; }
	.asic-partner-grid--gold .asic-partner-logo img { max-height: 60px; }
}

/* =====================================================================
   Custom member directory grid (replaces BuddyPress's slow AJAX list).
   Search / filter / sort / paginate happen client-side (assets/directory.js).
   BuddyPress profile pages are untouched.
   ===================================================================== */
/* Hide BuddyPress's native directory chrome — our grid + filter bar replace it. */
body.directory.members #buddypress .component-navigation,
body.directory.members #buddypress .subnav-filters,
body.directory.members #buddypress #members-dir-list {
	display: none !important;
}
.asic-dir {
	max-width: 1440px;
	margin: 0 auto 64px;
	padding: 0;
	box-sizing: border-box;
}
.asic-dir-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 22px;
}
.asic-dir-count {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	color: #1A2B3F;
	font-size: 15px;
}
.asic-dir-sort {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #5A6573;
	display: flex;
	align-items: center;
	gap: 8px;
}
.asic-dir-sort select {
	padding: 9px 34px 9px 12px;
	border: 1px solid #D8E0EA;
	border-radius: 8px;
	background-color: #F7F9FC;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235A6573' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #1A2B3F;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}
.asic-dir-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
}
.asic-dir-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border: 1px solid #E5ECF3;
	border-radius: 16px;
	padding: 24px 18px 20px;
	text-decoration: none !important;
	border-bottom: 1px solid #E5ECF3 !important;
	position: relative;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 30, 60, .04);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.asic-dir-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, #4189DB 0%, #56BC5B 100%);
	opacity: 0;
	transition: opacity .2s ease;
}
.asic-dir-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(15, 30, 60, .08);
	border-color: #C9D8EC !important;
}
.asic-dir-card:hover::before { opacity: 1; }
.asic-dir-card__avatar {
	width: 130px;
	height: 130px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 14px;
	background: #EEF2F8;
	box-shadow: inset 0 0 0 1px #DDE6F2, 0 6px 14px rgba(15, 30, 60, .06);
	flex: 0 0 auto;
}
.asic-dir-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.asic-dir-card__name {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: #1A2B3F;
	line-height: 1.3;
}
.asic-dir-card__company {
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	color: #5A6573;
	margin-top: 3px;
	line-height: 1.4;
}
.asic-dir-card__meta {
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	color: #8A93A0;
	margin-top: 6px;
}
.asic-dir-card__badge {
	margin-top: 12px;
	font-family: 'Poppins', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #2E8B57;
	background: #E7F6EC;
	border-radius: 999px;
	padding: 3px 10px;
}
.asic-dir-more {
	text-align: center;
	margin-top: 32px;
}
.asic-dir-more__btn {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #1A2B3F;
	background: #fff;
	border: 1px solid #C9D8EC;
	border-radius: 999px;
	padding: 12px 32px;
	cursor: pointer;
	transition: all .2s ease;
}
.asic-dir-more__btn:hover {
	background: #1A2B3F;
	color: #fff;
	border-color: #1A2B3F;
}
.asic-dir-empty {
	text-align: center;
	color: #5A6573;
	font-family: 'Inter', sans-serif;
	margin-top: 28px;
}
@media (max-width: 600px) {
	.asic-dir { padding: 0 14px; }
	.asic-dir-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.asic-dir-card { padding: 18px 10px 16px; border-radius: 12px; }
	.asic-dir-card__avatar { width: 92px; height: 92px; margin-bottom: 10px; }
	.asic-dir-card__name { font-size: 14px; }
	.asic-dir-card__company,
	.asic-dir-card__meta { font-size: 11.5px; }
}

/* Partner contact popovers must not be clipped by their Elementor wrappers
   (edge-column cards would otherwise get cut at the container's edge). */
body.page-id-234092 .asic-partner-grid,
body.page-id-234092 .elementor-widget-text-editor > .elementor-widget-container,
body.page-id-234092 .elementor-element-afb6a1a9,
body.page-id-234092 .elementor-element-ea0ede0e,
body.page-id-234092 .elementor-element-75648441,
body.page-id-234092 .elementor-element-4eee94c3,
body.page-id-234092 .elementor-element-089f7b7d,
body.page-id-234092 .elementor-element-169c36ec,
body.page-id-234092 .elementor-element-d889d5bd,
body.page-id-234092 .elementor-element-dd29eb5c {
	overflow: visible !important;
}
