/*
Theme Name: GWM Institution Theme
Theme URI: https:godswillmisssion.org/
Author: God's Will Mission Inc
Author URI: https://warrionline.com/
Description: Mobile-first institutional WordPress theme for God's Will Mission Inc.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gwm-institution-theme
Tags: custom-logo, custom-menu, featured-images, translation-ready, blog, education, church
*/

/*
 * Main compiled styling will be generated in later phases.
 * This file intentionally remains valid for WordPress theme detection.
 */

:root {
    --gwm-color-primary: #143d2b;
    --gwm-color-secondary: #b8872f;
    --gwm-color-text: #1f2933;
    --gwm-color-muted: #667085;
    --gwm-color-bg: #ffffff;
    --gwm-color-soft: #f7f3ea;
    --gwm-container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--gwm-color-text);
    background: var(--gwm-color-bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--gwm-color-primary);
}

.gwm-container {
    width: min(100% - 32px, var(--gwm-container));
    margin-inline: auto;
}

.gwm-site-header,
.gwm-site-footer {
    background: #ffffff;
}

.gwm-site-header {
    border-bottom: 1px solid rgba(20, 61, 43, 0.12);
}

.gwm-site-footer {
    border-top: 1px solid rgba(20, 61, 43, 0.12);
    padding: 42px 0;
    margin-top: 64px;
}

.gwm-header-inner,
.gwm-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.gwm-site-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.gwm-site-title a {
    text-decoration: none;
}

.gwm-main {
    min-height: 60vh;
    padding: 48px 0;
}

.gwm-entry {
    max-width: 820px;
}

.gwm-entry-title {
    margin-top: 0;
    line-height: 1.15;
}

.gwm-screen-reader-text,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* GWM Footer Developer Credit */
.gwm-footer-developer-credit {
    width: 100%;
    padding: 14px 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,.82);
    border-top: 1px solid rgba(255,255,255,.14);
}

.gwm-footer-developer-credit span {
    opacity: .78;
    margin-right: 4px;
}

.gwm-footer-developer-credit a,
.gwm-footer-developer-credit strong {
    color: #f1f0ed;
    font-weight: 400;
    text-decoration: none;
}

.gwm-footer-developer-credit a:hover {
    text-decoration: underline;
}


/* === GWM_SIMPLE_SEARCH_BAR_V1 START === */

/*
Purpose:
- Hide the distracting gold breadcrumb/local search bar.
- Keep the cleaner search experience available elsewhere.
- Use neutral styling for visible search forms.
- Admin/debug safe. Frontend only.
*/

/* Remove the gold breadcrumb/local search bar only. */
.gwm-breadcrumb-search,
.gwm-breadcrumb-search-form,
.gwm-institutional-breadcrumb .gwm-breadcrumb-search,
.gwm-institutional-breadcrumb .gwm-breadcrumb-search-form,
.gwm-institutional-local-breadcrumb + .gwm-breadcrumb-search,
.gwm-institutional-local-breadcrumb + .gwm-breadcrumb-search-form {
    display: none !important;
}

/* Remove extra spacing left behind by the hidden search block. */
.gwm-institutional-breadcrumb__inner {
    gap: 12px;
}

.gwm-institutional-breadcrumb {
    overflow: visible;
}

/* Keep remaining search bars simple, clean, and readable. */
.search-form,
.gwm-search-form,
.gwm-site-search,
.gwm-header-search,
.gwm-sermon-search,
.gwm-simple-search {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 8px;
}

/* Search inputs should be calm, not gold-heavy. */
.search-form input[type="search"],
.gwm-search-form input[type="search"],
.gwm-site-search input[type="search"],
.gwm-header-search input[type="search"],
.gwm-sermon-search input[type="search"],
.gwm-simple-search input[type="search"] {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 13px;
    outline: none;
}

/* Search buttons should be simple and readable. */
.search-form button,
.search-form input[type="submit"],
.gwm-search-form button,
.gwm-site-search button,
.gwm-header-search button,
.gwm-sermon-search button,
.gwm-simple-search button {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

/* Accessible hover/focus without returning to gold blocks. */
.search-form button:hover,
.search-form input[type="submit"]:hover,
.gwm-search-form button:hover,
.gwm-site-search button:hover,
.gwm-header-search button:hover,
.gwm-sermon-search button:hover,
.gwm-simple-search button:hover,
.search-form button:focus,
.search-form input[type="submit"]:focus,
.gwm-search-form button:focus,
.gwm-site-search button:focus,
.gwm-header-search button:focus,
.gwm-sermon-search button:focus,
.gwm-simple-search button:focus {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    outline: 2px solid rgba(15, 23, 42, 0.18);
    outline-offset: 2px;
}

/* Mobile: avoid oversized search blocks. */
@media (max-width: 768px) {
    .search-form,
    .gwm-search-form,
    .gwm-site-search,
    .gwm-header-search,
    .gwm-sermon-search,
    .gwm-simple-search {
        padding: 6px;
        border-radius: 10px;
    }
}

/* === GWM_SIMPLE_SEARCH_BAR_V1 END === */


/* === GWM_BREADCRUMB_RIGHT_SEARCH_RESTORE_V1 START === */

/*
Purpose:
- Restore breadcrumb visibility.
- Keep breadcrumb on the left.
- Restore the search form on the right.
- Remove the heavy gold treatment.
- Use a simple polished white search pill.
*/

/* Breadcrumb row layout */
.gwm-institutional-breadcrumb {
    display: block !important;
    background: #f8fafc !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
    overflow: visible !important;
}

.gwm-institutional-breadcrumb__inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
}

/* Restore breadcrumb trail */
.gwm-institutional-local-breadcrumb,
.gwm-institutional-breadcrumb .gwm-institutional-local-breadcrumb,
.gwm-breadcrumb {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    color: #334155 !important;
    font-size: 14px;
    line-height: 1.4;
}

.gwm-institutional-local-breadcrumb a,
.gwm-breadcrumb a {
    color: #475569 !important;
    text-decoration: none;
    font-weight: 600;
}

.gwm-institutional-local-breadcrumb a:hover,
.gwm-breadcrumb a:hover {
    color: #0f172a !important;
    text-decoration: underline;
}

.gwm-institutional-local-breadcrumb span,
.gwm-breadcrumb span {
    color: #64748b !important;
}

/* Restore the search on the right, overriding the previous hide rule. */
.gwm-breadcrumb-search,
.gwm-breadcrumb-search-form,
.gwm-institutional-breadcrumb .gwm-breadcrumb-search,
.gwm-institutional-breadcrumb .gwm-breadcrumb-search-form,
.gwm-institutional-local-breadcrumb + .gwm-breadcrumb-search,
.gwm-institutional-local-breadcrumb + .gwm-breadcrumb-search-form {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex: 0 0 min(360px, 42vw);
    max-width: 360px;
}

/* Polished right-side search form */
.gwm-breadcrumb-search form,
.gwm-breadcrumb-search-form,
.gwm-institutional-breadcrumb form.gwm-breadcrumb-search-form {
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 6px;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: 999px !important;
    padding: 5px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
}

/* Search input */
.gwm-breadcrumb-search input[type="search"],
.gwm-breadcrumb-search-form input[type="search"],
.gwm-institutional-breadcrumb input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 38px;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #0f172a !important;
    padding: 8px 12px !important;
    font-size: 14px;
    outline: none !important;
    box-shadow: none !important;
}

.gwm-breadcrumb-search input[type="search"]::placeholder,
.gwm-breadcrumb-search-form input[type="search"]::placeholder,
.gwm-institutional-breadcrumb input[type="search"]::placeholder {
    color: #94a3b8 !important;
}

/* Search button - simple, readable, not gold-heavy */
.gwm-breadcrumb-search button,
.gwm-breadcrumb-search input[type="submit"],
.gwm-breadcrumb-search-form button,
.gwm-breadcrumb-search-form input[type="submit"],
.gwm-institutional-breadcrumb form button,
.gwm-institutional-breadcrumb form input[type="submit"] {
    flex: 0 0 auto;
    min-height: 38px;
    border: 0 !important;
    border-radius: 999px !important;
    background: #111827 !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none !important;
}

.gwm-breadcrumb-search button:hover,
.gwm-breadcrumb-search input[type="submit"]:hover,
.gwm-breadcrumb-search-form button:hover,
.gwm-breadcrumb-search-form input[type="submit"]:hover,
.gwm-institutional-breadcrumb form button:hover,
.gwm-institutional-breadcrumb form input[type="submit"]:hover {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* Focus state */
.gwm-breadcrumb-search form:focus-within,
.gwm-breadcrumb-search-form:focus-within,
.gwm-institutional-breadcrumb form.gwm-breadcrumb-search-form:focus-within {
    border-color: rgba(15, 23, 42, 0.28) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.11) !important;
}

/* Mobile: breadcrumb first, search below but still compact. */
@media (max-width: 768px) {
    .gwm-institutional-breadcrumb__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .gwm-institutional-local-breadcrumb,
    .gwm-institutional-breadcrumb .gwm-institutional-local-breadcrumb,
    .gwm-breadcrumb {
        width: 100%;
        font-size: 13px;
    }

    .gwm-breadcrumb-search,
    .gwm-breadcrumb-search-form,
    .gwm-institutional-breadcrumb .gwm-breadcrumb-search,
    .gwm-institutional-breadcrumb .gwm-breadcrumb-search-form {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
        margin-left: 0;
    }
}

/* === GWM_BREADCRUMB_RIGHT_SEARCH_RESTORE_V1 END === */


/* === GWM_BREADCRUMB_HEADER_OVERLAP_FIX_V1 START === */

/*
Purpose:
- Prevent the breadcrumb + right-side search row from hiding behind the sticky/fixed header.
- Keep breadcrumb visible below the header.
- Preserve the polished right-side search layout.
*/

:root {
    --gwm-breadcrumb-header-clearance: 86px;
}

/* Put the header above normal content, but do not let it visually swallow the breadcrumb row. */
.gwm-site-header,
.gwm-institutional-header,
.site-header,
header.site-header {
    z-index: 9000;
}

/* Push breadcrumb/search row below the header overlap zone. */
.gwm-institutional-breadcrumb {
    position: relative !important;
    z-index: 100 !important;
    margin-top: var(--gwm-breadcrumb-header-clearance) !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Keep the restored breadcrumb/search row fully visible and clickable. */
.gwm-institutional-breadcrumb__inner,
.gwm-institutional-local-breadcrumb,
.gwm-breadcrumb,
.gwm-breadcrumb-search,
.gwm-breadcrumb-search-form {
    position: relative;
    z-index: 101;
}

/* Avoid hero sections climbing upward over the breadcrumb row. */
.gwm-hero,
.gwm-page-hero,
.gwm-institutional-hero,
.entry-hero,
.page-hero {
    position: relative;
    z-index: 1;
}

/* Mobile/admin-bar friendly adjustment. */
@media (max-width: 782px) {
    :root {
        --gwm-breadcrumb-header-clearance: 72px;
    }

    .gwm-institutional-breadcrumb {
        margin-top: var(--gwm-breadcrumb-header-clearance) !important;
    }
}

/* === GWM_BREADCRUMB_HEADER_OVERLAP_FIX_V1 END === */


/* === GWM_BREADCRUMB_SINGLE_SEARCH_POLISH_V1 START === */

/*
Purpose:
- Keep breadcrumb visible on the left.
- Add clean > separators between breadcrumb items.
- Make the current page label normal weight, not bold.
- Remove the duplicate second search bar.
- Keep one polished search bar on the right.
*/

/* Two-column breadcrumb/search row */
.gwm-institutional-breadcrumb__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) !important;
    align-items: center !important;
    column-gap: 22px !important;
}

/* Left breadcrumb area */
.gwm-institutional-local-breadcrumb,
.gwm-institutional-breadcrumb .gwm-institutional-local-breadcrumb,
.gwm-breadcrumb {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    min-width: 0 !important;
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Add breadcrumb separators where markup has none */
.gwm-institutional-local-breadcrumb > * + *::before,
.gwm-breadcrumb > * + *::before {
    content: ">" !important;
    display: inline-block !important;
    margin: 0 9px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

/* Breadcrumb links */
.gwm-institutional-local-breadcrumb a,
.gwm-breadcrumb a {
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.gwm-institutional-local-breadcrumb a:hover,
.gwm-breadcrumb a:hover {
    color: #0f172a !important;
    text-decoration: underline !important;
}

/* Current page should not shout */
.gwm-institutional-local-breadcrumb [aria-current="page"],
.gwm-breadcrumb [aria-current="page"],
.gwm-institutional-local-breadcrumb .current,
.gwm-breadcrumb .current,
.gwm-institutional-local-breadcrumb strong,
.gwm-breadcrumb strong,
.gwm-institutional-local-breadcrumb span:last-child,
.gwm-breadcrumb span:last-child {
    font-weight: 400 !important;
    color: #475569 !important;
}

/* Keep the polished search wrapper as the only search on the right */
.gwm-institutional-breadcrumb__inner > .gwm-breadcrumb-search {
    grid-column: 2 !important;
    justify-self: end !important;
    width: 100% !important;
    max-width: 380px !important;
    display: flex !important;
    align-items: center !important;
    margin-left: 0 !important;
    flex: none !important;
}

/*
Hide the duplicate standalone form only when the polished wrapper exists.
This prevents double search bars without killing the only search form on pages that have no wrapper.
*/
.gwm-institutional-breadcrumb__inner:has(.gwm-breadcrumb-search) > form.gwm-breadcrumb-search-form,
.gwm-institutional-breadcrumb__inner:has(.gwm-breadcrumb-search) > .gwm-breadcrumb-search-form:not(.gwm-breadcrumb-search .gwm-breadcrumb-search-form) {
    display: none !important;
}

/* Polished single search pill */
.gwm-breadcrumb-search form,
.gwm-breadcrumb-search .gwm-breadcrumb-search-form {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    border-radius: 999px !important;
    padding: 5px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
}

/* Search input */
.gwm-breadcrumb-search input[type="search"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 38px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #0f172a !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: none !important;
}

.gwm-breadcrumb-search input[type="search"]::placeholder {
    color: #94a3b8 !important;
}

/* Search button */
.gwm-breadcrumb-search button,
.gwm-breadcrumb-search input[type="submit"] {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #111827 !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.gwm-breadcrumb-search button:hover,
.gwm-breadcrumb-search input[type="submit"]:hover {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* Mobile: stack breadcrumb then one search */
@media (max-width: 768px) {
    .gwm-institutional-breadcrumb__inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .gwm-institutional-breadcrumb__inner > .gwm-breadcrumb-search {
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
    }

    .gwm-institutional-local-breadcrumb,
    .gwm-breadcrumb {
        width: 100% !important;
        font-size: 13px !important;
    }
}

/* === GWM_BREADCRUMB_SINGLE_SEARCH_POLISH_V1 END === */


/* === GWM_RESTORE_DESIRED_SEARCH_REMOVE_WRONG_SEARCH_V1 START === */

/*
Purpose:
- Remove the currently visible/wrong search bar.
- Restore the previously removed/desired search bar.
- Keep breadcrumb visible on the left.
- Remove stray > separator near the search bar.
- Style the desired search bar cleanly and simply.
*/

/* Main row: breadcrumb left, desired search right */
.gwm-institutional-breadcrumb__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px) !important;
    align-items: center !important;
    column-gap: 24px !important;
}

/* Breadcrumb stays on left */
.gwm-institutional-local-breadcrumb,
.gwm-institutional-breadcrumb .gwm-institutional-local-breadcrumb,
.gwm-breadcrumb {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Add separators only between breadcrumb text/link items */
.gwm-institutional-local-breadcrumb > a + a::before,
.gwm-institutional-local-breadcrumb > a + span::before,
.gwm-institutional-local-breadcrumb > span + a::before,
.gwm-institutional-local-breadcrumb > span + span::before,
.gwm-breadcrumb > a + a::before,
.gwm-breadcrumb > a + span::before,
.gwm-breadcrumb > span + a::before,
.gwm-breadcrumb > span + span::before {
    content: ">" !important;
    display: inline-block !important;
    margin: 0 9px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Never show a separator before any search element */
.gwm-breadcrumb-search::before,
.gwm-breadcrumb-search-form::before,
form.gwm-breadcrumb-search-form::before,
.gwm-institutional-local-breadcrumb > .gwm-breadcrumb-search::before,
.gwm-institutional-local-breadcrumb > .gwm-breadcrumb-search-form::before,
.gwm-breadcrumb > .gwm-breadcrumb-search::before,
.gwm-breadcrumb > .gwm-breadcrumb-search-form::before {
    content: none !important;
    display: none !important;
}

/* Breadcrumb typography */
.gwm-institutional-local-breadcrumb a,
.gwm-breadcrumb a {
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.gwm-institutional-local-breadcrumb a:hover,
.gwm-breadcrumb a:hover {
    color: #0f172a !important;
    text-decoration: underline !important;
}

.gwm-institutional-local-breadcrumb [aria-current="page"],
.gwm-breadcrumb [aria-current="page"],
.gwm-institutional-local-breadcrumb .current,
.gwm-breadcrumb .current,
.gwm-institutional-local-breadcrumb strong,
.gwm-breadcrumb strong,
.gwm-institutional-local-breadcrumb span:last-child,
.gwm-breadcrumb span:last-child {
    font-weight: 400 !important;
    color: #475569 !important;
}

/* Remove the wrong/current search bar: the wrapper pill search. */
.gwm-institutional-breadcrumb__inner > .gwm-breadcrumb-search,
.gwm-institutional-breadcrumb .gwm-breadcrumb-search:not(form),
.gwm-breadcrumb .gwm-breadcrumb-search:not(form) {
    display: none !important;
}

/* Restore the desired search bar: the direct standalone form. */
.gwm-institutional-breadcrumb__inner > form.gwm-breadcrumb-search-form,
.gwm-institutional-breadcrumb__inner > .gwm-breadcrumb-search-form,
.gwm-institutional-breadcrumb form.gwm-breadcrumb-search-form {
    grid-column: 2 !important;
    justify-self: end !important;
    width: 100% !important;
    max-width: 430px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Desired search input: simple, clean, beautiful */
.gwm-institutional-breadcrumb__inner > form.gwm-breadcrumb-search-form input[type="search"],
.gwm-institutional-breadcrumb__inner > .gwm-breadcrumb-search-form input[type="search"],
.gwm-institutional-breadcrumb form.gwm-breadcrumb-search-form input[type="search"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 42px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    border-radius: 7px !important;
    padding: 10px 13px !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: none !important;
}

.gwm-institutional-breadcrumb form.gwm-breadcrumb-search-form input[type="search"]::placeholder {
    color: #94a3b8 !important;
}

/* Desired search button */
.gwm-institutional-breadcrumb__inner > form.gwm-breadcrumb-search-form button,
.gwm-institutional-breadcrumb__inner > form.gwm-breadcrumb-search-form input[type="submit"],
.gwm-institutional-breadcrumb__inner > .gwm-breadcrumb-search-form button,
.gwm-institutional-breadcrumb__inner > .gwm-breadcrumb-search-form input[type="submit"],
.gwm-institutional-breadcrumb form.gwm-breadcrumb-search-form button,
.gwm-institutional-breadcrumb form.gwm-breadcrumb-search-form input[type="submit"] {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    background: #111827 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 7px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.gwm-institutional-breadcrumb form.gwm-breadcrumb-search-form button:hover,
.gwm-institutional-breadcrumb form.gwm-breadcrumb-search-form input[type="submit"]:hover {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* Mobile: breadcrumb first, desired search below */
@media (max-width: 768px) {
    .gwm-institutional-breadcrumb__inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .gwm-institutional-breadcrumb__inner > form.gwm-breadcrumb-search-form,
    .gwm-institutional-breadcrumb__inner > .gwm-breadcrumb-search-form,
    .gwm-institutional-breadcrumb form.gwm-breadcrumb-search-form {
        width: 100% !important;
        max-width: none !important;
    }

    .gwm-institutional-local-breadcrumb,
    .gwm-breadcrumb {
        width: 100% !important;
        font-size: 13px !important;
    }
}

/* === GWM_RESTORE_DESIRED_SEARCH_REMOVE_WRONG_SEARCH_V1 END === */


/* === GWM_KEEP_PILL_SEARCH_RIGHT_REMOVE_PLAIN_V1 START === */

/*
Purpose:
- Keep the polished pill-style search bar.
- Remove the plain/rectangular duplicate search form.
- Push the search bar to the far right of the breadcrumb row.
- Keep breadcrumb visible and properly separated.
*/

/* Full breadcrumb row layout */
.gwm-institutional-breadcrumb__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 28px !important;
    width: 100% !important;
}

/* Breadcrumb remains left */
.gwm-institutional-local-breadcrumb,
.gwm-institutional-breadcrumb .gwm-institutional-local-breadcrumb,
.gwm-breadcrumb {
    grid-column: 1 !important;
    justify-self: start !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    min-width: 0 !important;
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Breadcrumb separators only inside breadcrumb text items */
.gwm-institutional-local-breadcrumb > a + a::before,
.gwm-institutional-local-breadcrumb > a + span::before,
.gwm-institutional-local-breadcrumb > span + a::before,
.gwm-institutional-local-breadcrumb > span + span::before,
.gwm-breadcrumb > a + a::before,
.gwm-breadcrumb > a + span::before,
.gwm-breadcrumb > span + a::before,
.gwm-breadcrumb > span + span::before {
    content: ">" !important;
    display: inline-block !important;
    margin: 0 9px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Do not create any separator before/near search */
.gwm-breadcrumb-search::before,
.gwm-breadcrumb-search-form::before,
form.gwm-breadcrumb-search-form::before {
    content: none !important;
    display: none !important;
}

/* Breadcrumb typography */
.gwm-institutional-local-breadcrumb a,
.gwm-breadcrumb a {
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.gwm-institutional-local-breadcrumb [aria-current="page"],
.gwm-breadcrumb [aria-current="page"],
.gwm-institutional-local-breadcrumb .current,
.gwm-breadcrumb .current,
.gwm-institutional-local-breadcrumb strong,
.gwm-breadcrumb strong,
.gwm-institutional-local-breadcrumb span:last-child,
.gwm-breadcrumb span:last-child {
    color: #475569 !important;
    font-weight: 400 !important;
}

/* Remove the plain rectangular/direct duplicate search form */
.gwm-institutional-breadcrumb__inner > form.gwm-breadcrumb-search-form,
.gwm-institutional-breadcrumb__inner > .gwm-breadcrumb-search-form:not(.gwm-breadcrumb-search .gwm-breadcrumb-search-form),
.gwm-institutional-breadcrumb > form.gwm-breadcrumb-search-form {
    display: none !important;
}

/* Restore and keep the polished pill-style wrapper search */
.gwm-institutional-breadcrumb__inner > .gwm-breadcrumb-search,
.gwm-institutional-breadcrumb .gwm-breadcrumb-search {
    grid-column: 2 !important;
    justify-self: end !important;
    margin-left: auto !important;
    width: 420px !important;
    max-width: min(420px, 42vw) !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
}

/* Pill search form */
.gwm-breadcrumb-search form,
.gwm-breadcrumb-search .gwm-breadcrumb-search-form {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    border-radius: 999px !important;
    padding: 5px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
}

/* Pill input */
.gwm-breadcrumb-search input[type="search"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 38px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #0f172a !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: none !important;
}

.gwm-breadcrumb-search input[type="search"]::placeholder {
    color: #94a3b8 !important;
}

/* Pill button */
.gwm-breadcrumb-search button,
.gwm-breadcrumb-search input[type="submit"] {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #111827 !important;
    color: #ffffff !important;
    padding: 8px 15px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.gwm-breadcrumb-search button:hover,
.gwm-breadcrumb-search input[type="submit"]:hover {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* Mobile: stack breadcrumb then pill search */
@media (max-width: 768px) {
    .gwm-institutional-breadcrumb__inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .gwm-institutional-breadcrumb__inner > .gwm-breadcrumb-search,
    .gwm-institutional-breadcrumb .gwm-breadcrumb-search {
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
        margin-left: 0 !important;
    }

    .gwm-institutional-local-breadcrumb,
    .gwm-breadcrumb {
        width: 100% !important;
        font-size: 13px !important;
    }
}

/* === GWM_KEEP_PILL_SEARCH_RIGHT_REMOVE_PLAIN_V1 END === */
