﻿:root {
    --bio-green: #0b3d36;
    --bio-green-deep: #062821;
    --bio-green-soft: #1f6f5b;
    --bio-gold: #C8A24A;
    --bio-gold-soft: #aa8a3f;
    --bio-cream: #f7f6ef;
    --bio-ink: #16231f;
    --bio-mist: #e8f5f2;
    --bio-sky: #dceff4;
    --bio-coral: #c95f45;
}

body {
    color: var(--bio-ink);
    background: linear-gradient(180deg, #f8fbfa 0%, #eef8f6 46%, #e8f5ef 100%);
}

a {
    color: var(--bio-green-soft);
}

a:hover,
a:focus {
    color: var(--bio-green);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--bio-green-deep);
}

.navbar-inverse,
.navbar-inverse .container,
footer {
    background-color: var(--bio-green-deep) !important;
}

.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
    background-color: var(--bio-green) !important;
    border-color: var(--bio-green) !important;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus,
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: var(--bio-green-soft) !important;
    color: #fff !important;
}

.btn-primary,
#ApplyMobile {
    background: var(--bio-gold);
    border-color: var(--bio-gold);
    color: var(--bio-green-deep) !important;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus,
#ApplyMobile:hover,
#ApplyMobile:focus {
    background: var(--bio-gold-soft);
    border-color: var(--bio-gold-soft);
    color: var(--bio-green-deep) !important;
}

li.Apply a {
    font-weight: 800;
    margin-right: 5px;
    margin-top: 8px;
    padding: 7px;
    width: 110px;
}

#ApplyMobile {
    font-weight: 800;
}

@media (max-width: 1189px) {
    #ApplyMobile {
        display: inline-block !important;
        float: right;
        padding: 5px 10px;
    }

    li.Apply {
        display: none;
    }
}

.page-header,
hr,
hr.footer {
    border-color: var(--bio-gold) !important;
    color: var(--bio-gold) !important;
}

mark,
.mark {
    background-color: var(--bio-gold) !important;
    color: var(--bio-green-deep) !important;
}

.text-warning,
a.text-warning:hover,
.has-warning .help-block,
.has-warning .control-label,
.has-warning .radio,
.has-warning .checkbox,
.has-warning .radio-inline,
.has-warning .checkbox-inline,
.has-warning.radio label,
.has-warning.checkbox label,
.has-warning.radio-inline label,
.has-warning.checkbox-inline label,
.has-warning .form-control-feedback,
.has-warning .input-group-addon,
.alert-warning,
.alert-warning .alert-link,
.list-group-item-warning,
a.list-group-item-warning,
a.list-group-item-warning .list-group-item-heading,
a.list-group-item-warning:hover,
a.list-group-item-warning:focus {
    color: #6f4f12 !important;
}

.bg-warning,
a.bg-warning:hover,
.table > thead > tr > td.warning,
.table > tbody > tr > td.warning,
.table > tfoot > tr > td.warning,
.table > thead > tr > th.warning,
.table > tbody > tr > th.warning,
.table > tfoot > tr > th.warning,
.table > thead > tr.warning > td,
.table > tbody > tr.warning > td,
.table > tfoot > tr.warning > td,
.table > thead > tr.warning > th,
.table > tbody > tr.warning > th,
.table > tfoot > tr.warning > th,
.table-hover > tbody > tr > td.warning:hover,
.table-hover > tbody > tr > th.warning:hover,
.table-hover > tbody > tr.warning:hover > td,
.table-hover > tbody > tr:hover > .warning,
.table-hover > tbody > tr.warning:hover > th,
.has-warning .input-group-addon,
.alert-warning,
.list-group-item-warning {
    background-color: #ead7ae !important;
}

.has-warning .form-control,
.has-warning .input-group-addon,
.alert-warning,
.alert-warning hr,
.panel-warning,
.panel-warning > .panel-heading,
.panel-warning > .panel-heading + .panel-collapse > .panel-body,
.panel-warning > .panel-footer + .panel-collapse > .panel-body {
    border-color: var(--bio-gold) !important;
}

.btn-warning,
.label-warning,
.progress-bar-warning,
.panel-warning > .panel-heading,
.panel-warning > .panel-heading .badge,
a.list-group-item-warning.active,
a.list-group-item-warning.active:hover,
a.list-group-item-warning.active:focus {
    background-color: var(--bio-gold) !important;
}

.btn-warning,
.btn-warning.disabled,
.btn-warning[disabled],
fieldset[disabled] .btn-warning,
.btn-warning.disabled:hover,
.btn-warning[disabled]:hover,
fieldset[disabled] .btn-warning:hover,
.btn-warning.disabled:focus,
.btn-warning[disabled]:focus,
fieldset[disabled] .btn-warning:focus,
.btn-warning.disabled.focus,
.btn-warning[disabled].focus,
fieldset[disabled] .btn-warning.focus,
.btn-warning.disabled:active,
.btn-warning[disabled]:active,
fieldset[disabled] .btn-warning:active,
.btn-warning.disabled.active,
.btn-warning[disabled].active,
fieldset[disabled] .btn-warning.active {
    border-color: #b88722 !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning.focus,
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning,
.label-warning[href]:hover,
.label-warning[href]:focus {
    background-color: var(--bio-gold-soft) !important;
    border-color: #8f6518 !important;
}

.btn-warning .badge,
.panel-warning > .panel-heading .badge {
    color: var(--bio-gold) !important;
}

.text-primary,
a.text-primary,
.homepagecontentbox a,
.well a,
.panel a {
    color: var(--bio-green-soft) !important;
}

a.text-primary:hover,
.homepagecontentbox a:hover,
.well a:hover,
.panel a:hover {
    color: var(--bio-green) !important;
}

.bg-primary,
.label-primary,
.panel-primary > .panel-heading,
.panel-info > .panel-heading,
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus,
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus,
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: var(--bio-green) !important;
    border-color: var(--bio-green) !important;
    color: #fff !important;
}

.panel-primary,
.panel-info,
.pagination > .active > a,
.pagination > .active > span {
    border-color: var(--bio-green) !important;
}

.panel-primary > .panel-heading .badge,
.panel-info > .panel-heading .badge,
.label-primary[href]:hover,
.label-primary[href]:focus {
    background-color: var(--bio-gold) !important;
    color: var(--bio-green-deep) !important;
}

.navbar-inverse .navbar-nav > li.Apply > a.btn-primary,
.navbar-inverse .navbar-nav > li.Apply > a.btn-primary:hover,
.navbar-inverse .navbar-nav > li.Apply > a.btn-primary:focus,
.navbar-inverse .navbar-nav > li > a#ApplyMobile,
.navbar-inverse .navbar-nav > li > a#ApplyMobile:hover,
.navbar-inverse .navbar-nav > li > a#ApplyMobile:focus,
.navbar-header > a#ApplyMobile,
.navbar-header > a#ApplyMobile:hover,
.navbar-header > a#ApplyMobile:focus {
    background: var(--bio-gold) !important;
    background-image: none !important;
    border-color: rgba(13, 59, 42, 0.18) !important;
    color: var(--bio-green-deep) !important;
}

.navbar-inverse .navbar-nav > li.Apply > a.btn-primary:hover,
.navbar-inverse .navbar-nav > li.Apply > a.btn-primary:focus,
.navbar-inverse .navbar-nav > li > a#ApplyMobile:hover,
.navbar-inverse .navbar-nav > li > a#ApplyMobile:focus,
.navbar-header > a#ApplyMobile:hover,
.navbar-header > a#ApplyMobile:focus {
    background: var(--bio-gold-soft) !important;
    border-color: #aa8a3f !important;
}

.btn-default,
.panel,
.well,
.thumbnail {
    border-color: rgba(13, 59, 42, 0.16);
}

.well,
.thumbnail {
    background: rgba(255, 255, 255, 0.88);
}

.dropdown-menu {
    border-color: rgba(13, 59, 42, 0.16);
}

.dropdown-menu > li > a {
    color: var(--bio-green-deep);
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background-color: var(--bio-green) !important;
}

.btn-primary .badge,
.navbar-inverse .badge,
.list-group-item.active > .badge {
    background: #fff !important;
    color: var(--bio-green) !important;
}

.biomissions-brand {
    align-items: flex-start;
    color: #fff !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    margin: 5px 0 0 6px;
    text-decoration: none !important;
}

.biomissions-wordmark {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.biomissions-tagline {
    color: var(--bio-gold-soft);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    margin-top: 0.15rem;
    text-transform: uppercase;
}

.biomissions-intro {
    margin-top: 50px;
    padding: 0;
    text-align: center;
}

.biomissions-hero-img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: min(100%, 1320px);
    width: 100%;
}

.biomissions-actions {
    background: #fff;
    border-bottom: 2px solid rgba(11, 61, 54, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1.4rem 2rem;
}

.biomissions-actions .btn {
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
}

.biomissions-actions .btn-default {
    background: transparent;
    border: 2px solid rgba(13, 42, 20, 0.55);
    color: #0d2a14;
}

.homepagecontentbox,
.homepagebutton {
    box-shadow: 0 20px 45px rgba(22, 32, 25, 0.12);
}

.homepagebutton h2,
.homepagecontentbox h2 {
    color: var(--bio-green-deep);
}

.homepagebutton > div {
    background: linear-gradient(180deg, rgba(8, 38, 27, 0.1), rgba(8, 38, 27, 0.42));
}

.homepagebutton h2 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ================================================
   FOOTER - shared refresh for every exported page
   ================================================ */

hr.footer {
    background: linear-gradient(90deg, var(--bio-gold), #f1d690 48%, var(--bio-gold-soft)) !important;
    border: none !important;
    clear: both !important;
    height: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
}

footer {
    background:
        radial-gradient(circle at 14% 0%, rgba(200, 162, 74, 0.16), transparent 29rem),
        linear-gradient(135deg, #041f1b 0%, #0b3d36 58%, #14332b 100%) !important;
    color: #f7f4e9 !important;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 1rem !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

footer > div {
    align-items: center !important;
    box-sizing: border-box !important;
    column-count: unset !important;
    display: grid !important;
    gap: 2rem !important;
    grid-template-columns: minmax(260px, 1fr) auto !important;
    margin: 0 auto !important;
    max-width: 1180px !important;
    padding: 2.6rem 2rem 2.25rem !important;
    width: 100% !important;
}

footer > div > br,
footer > div > div > br {
    display: none !important;
}

footer > div > div {
    break-inside: unset !important;
    display: flex !important;
    gap: 0.75rem !important;
    text-align: left !important;
}

footer > div > div:first-of-type {
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

footer > div > div:last-child {
    align-items: flex-end !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    justify-self: end !important;
    text-align: right !important;
}

footer > div > div > .glyphicon {
    color: var(--bio-gold) !important;
    font-size: 1.15rem !important;
    padding-right: 0.35rem !important;
}

footer > div a {
    color: rgba(247, 244, 233, 0.84) !important;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

footer > div > div:first-of-type a {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    padding: 0.62rem 0.95rem !important;
}

footer > div > div:last-child a {
    display: inline-flex !important;
}

footer > div a:visited {
    color: rgba(247, 244, 233, 0.84) !important;
}

footer > div a:hover,
footer > div a:focus,
footer > div a:active {
    color: #fff8dc !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

footer > div > div:first-of-type a:hover,
footer > div > div:first-of-type a:focus,
footer > div > div:first-of-type a:active {
    background: rgba(200, 162, 74, 0.2) !important;
    border-color: rgba(241, 214, 144, 0.55) !important;
}

footer img {
    height: auto !important;
    max-height: 3.35rem !important;
    max-width: min(16rem, 72vw) !important;
    object-fit: contain !important;
}

footer a[href="/media/index.html"] img,
footer a[href="/media/home.php"] img {
    max-height: 2.95rem !important;
}

.biomissions-footer-brand {
    color: #fff8dc !important;
    display: inline-flex !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    margin-top: 0.2rem !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.biomissions-footer-brand:hover,
.biomissions-footer-brand:focus {
    color: var(--bio-gold) !important;
}

footer > p:last-child {
    background: rgba(2, 18, 15, 0.38) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
    color: rgba(247, 244, 233, 0.68) !important;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0.8rem 1.5rem !important;
    text-align: center !important;
}

@media (max-width: 760px) {
    footer > div {
        gap: 1.6rem !important;
        grid-template-columns: 1fr !important;
        padding: 2.15rem 1.25rem 1.9rem !important;
        text-align: center !important;
    }

    footer > div > div,
    footer > div > div:first-of-type,
    footer > div > div:last-child {
        align-items: center !important;
        justify-content: center !important;
        justify-self: center !important;
        text-align: center !important;
        width: 100% !important;
    }
}

@media (max-width: 420px) {
    footer > div > div:first-of-type {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    footer > div > div:first-of-type a {
        justify-content: center !important;
        width: 100% !important;
    }
}

body.bio-refresh {
    background: linear-gradient(180deg, #f8faf7 0%, #eef4f0 52%, #edf6f1 100%);
}

body.bio-refresh .navbar-inverse {
    box-shadow: 0 8px 24px rgba(8, 38, 27, 0.18);
}

.bio-page-main {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 15px 34px;
}

.bio-compact-hero {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f6f8f4 58%, #edf4ef 100%);
    border: 1px solid rgba(13, 59, 42, 0.13);
    border-left: 6px solid var(--bio-gold);
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(22, 32, 25, 0.11);
    display: grid;
    gap: 18px;
    grid-template-columns: auto 1fr;
    margin: 18px auto 22px;
    min-height: 136px;
    padding: 18px 22px;
}

.bio-compact-hero__media {
    background: #fff;
    border: 1px solid rgba(13, 59, 42, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(22, 32, 25, 0.12);
    height: 112px;
    object-fit: contain;
    padding: 8px;
    width: 112px;
}

.bio-compact-hero--home .bio-compact-hero__media {
    height: 92px;
    object-fit: contain;
    padding: 12px;
    width: 188px;
}

.bio-compact-hero__eyebrow {
    color: var(--bio-green-soft);
    display: block;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.bio-compact-hero h1 {
    color: var(--bio-green-deep);
    font-size: clamp(2.25rem, 3vw, 3.7rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
}

.bio-compact-hero p {
    color: #34463a;
    font-size: 1.38rem;
    line-height: 1.45;
    margin: 9px 0 0;
    max-width: 760px;
}

.bio-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 13px;
}

.bio-hero-actions .btn {
    border-radius: 8px;
    padding: 8px 13px;
}

.bio-card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 20px 0 30px;
}

.bio-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(13, 59, 42, 0.13);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(22, 32, 25, 0.08);
    min-height: 150px;
    padding: 22px;
}

.bio-card h2,
.bio-card h3 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 0 0 10px;
}

.bio-card p {
    color: #415045;
    font-size: 1.52rem;
    line-height: 1.55;
    margin: 0 0 14px;
}

.bio-stat-strip {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto 22px;
}

.bio-stat {
    background: var(--bio-green);
    border-radius: 8px;
    color: #fff;
    padding: 16px 18px;
}

.bio-stat strong {
    color: var(--bio-gold-soft);
    display: block;
    font-size: 2.1rem;
    line-height: 1.1;
}

.bio-stat span {
    display: block;
    line-height: 1.4;
    margin-top: 5px;
}

.bio-action-card {
    align-items: flex-end;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(22, 32, 25, 0.13);
    color: #fff !important;
    display: flex;
    min-height: 210px;
    overflow: hidden;
    position: relative;
    text-decoration: none !important;
}

.bio-action-card::before {
    background: linear-gradient(180deg, rgba(8, 38, 27, 0.06), rgba(8, 38, 27, 0.78));
    content: "";
    inset: 0;
    position: absolute;
}

.bio-action-card__body {
    padding: 22px;
    position: relative;
    z-index: 1;
}

.bio-action-card h2,
.bio-action-card h3 {
    color: #fff;
    font-size: 2.2rem;
    line-height: 1.16;
    margin: 0 0 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.bio-action-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.bio-feature-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.bio-content-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(13, 59, 42, 0.13);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(22, 32, 25, 0.08);
    padding: 26px;
}

.bio-content-panel p {
    color: #34463a;
    font-size: 1.62rem;
    line-height: 1.65;
}

.bio-content-panel p:last-child {
    margin-bottom: 0;
}

.bio-content-panel .page-header,
body.bio-refresh .page-header {
    border-bottom-width: 3px !important;
    font-size: 3rem;
    line-height: 1.14;
    margin-top: 0;
    padding-bottom: 10px;
}

.bio-bullet-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.bio-bullet-grid li {
    background: #f4f7f3;
    border: 1px solid rgba(13, 59, 42, 0.1);
    border-radius: 8px;
    color: #24372c;
    padding: 11px 13px;
}

.bio-side-stack {
    display: grid;
    gap: 16px;
}

body.bio-refresh .well,
body.bio-refresh .panel {
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(22, 32, 25, 0.08);
}

body.bio-refresh .well h2 {
    font-size: 2rem;
    margin-top: 0;
}

body.bio-refresh .well img {
    border-radius: 8px;
}

body.bio-refresh > header:first-of-type {
    display: none;
}

body.bio-refresh #myCarousel {
    margin: 0 auto 24px;
    max-width: 1180px;
    overflow: hidden;
}

body.bio-refresh #myCarousel .carousel-inner {
    border-radius: 8px !important;
    box-shadow: 0 18px 36px rgba(22, 32, 25, 0.12);
    height: 280px !important;
    min-height: 260px !important;
}

body.bio-refresh #myCarousel hr {
    display: none;
}

body.bio-home #myCarousel .item img {
    display: none !important;
}

body.bio-home #home0 {
    background-image: url("/gfx/miBibleProjects.jpg") !important;
}

body.bio-home #home1 {
    background-image: url("/gfx/sitetheme/bio-hero-banner-extended.png") !important;
    background-position: center !important;
}

body.bio-home #home3 {
    background-image: url("/gfx/abLocation.jpg") !important;
    background-position: center !important;
}

body.bio-home #home4 {
    background-image: url("/gfx/miCRL.jpg") !important;
    background-position: center !important;
}

body.bio-home #btn0 {
    background-image: url("/gfx/abLocation.jpg") !important;
}

body.bio-home #btn1 {
    background-image: url("/gfx/sitetheme/bio-hero-banner-extended.png") !important;
}

body.bio-home #btn2 {
    background-image: url("/connect/connectLogo23.jpg") !important;
}

body.bio-home #btn3 {
    background-image: url("/gfx/miBibleProjects.jpg") !important;
}

body.bio-home #btn4 {
    background-image: url("/gfx/miCRL.jpg") !important;
}

body.bio-home #btn5 {
    background-image: url("/gfx/miOrphanage.jpg") !important;
}

body.bio-home #SPOTLIGHT .bioimage {
    background-image: url("/gfx/hmPNGsmall.jpg") !important;
}

body.bio-refresh #homepagebuttoncontainer {
    gap: 18px;
    margin-bottom: 18px;
}

body.bio-refresh .homepagecolumnblock {
    border-radius: 8px !important;
    margin: 0 !important;
    min-height: 220px !important;
    width: calc(33.333333% - 12px) !important;
}

body.bio-refresh .homepagecontentbox,
body.bio-refresh .homepagebutton {
    border: 1px solid rgba(13, 59, 42, 0.14) !important;
    box-shadow: 0 14px 30px rgba(22, 32, 25, 0.11);
    max-height: none !important;
}

body.bio-refresh .homepagebutton {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

body.bio-refresh .homepagebutton > div {
    inset: 0;
    position: absolute;
}

body.bio-refresh .homepagebutton h2 {
    font-size: 2.15rem;
    line-height: 1.16;
    position: relative !important;
    top: auto !important;
    z-index: 1;
}

body.bio-refresh .homepagecontentbox {
    background: rgba(255, 255, 255, 0.94);
    overflow: hidden !important;
}

body.bio-refresh .homepagecontentbox .btn {
    border-radius: 8px;
    margin: 3px;
}

.bio-section-title {
    color: var(--bio-green-deep);
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 8px 0 16px;
    text-align: center;
}

@media (max-width: 990px) {
    .bio-card-grid,
    .bio-stat-strip,
    .bio-feature-layout {
        grid-template-columns: 1fr;
    }

    body.bio-refresh .homepagecolumnblock {
        width: calc(50% - 9px) !important;
    }
}

@media (max-width: 650px) {
    body {
        overflow-x: hidden;
    }

    .biomissions-intro {
        max-width: 100vw;
        overflow: hidden;
        width: 100vw;
    }

    .biomissions-hero-img {
        max-width: 100vw;
        width: 100vw;
    }

    .biomissions-actions {
        gap: 8px;
        padding: 10px 12px;
    }

    .biomissions-actions .btn {
        flex: 1 1 100%;
        max-width: 260px;
        padding: 0.6rem 1rem;
        white-space: normal;
    }

    .bio-compact-hero {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 12px 15px 16px;
        padding: 14px;
        text-align: left;
    }

    .bio-compact-hero__media,
    .bio-compact-hero--home .bio-compact-hero__media {
        height: auto;
        max-height: 78px;
        max-width: 100%;
        width: min(148px, 100%);
    }

    .bio-compact-hero__eyebrow {
        font-size: 0.92rem;
        line-height: 1.25;
        margin-bottom: 4px;
    }

    .bio-compact-hero h1 {
        font-size: 2.05rem;
        line-height: 1.08;
    }

    .bio-compact-hero p {
        font-size: 1.08rem;
        line-height: 1.38;
    }

    .bio-hero-actions {
        gap: 8px;
        margin-top: 10px;
    }

    .bio-hero-actions .btn {
        padding: 7px 12px;
    }

    .bio-content-panel {
        padding: 20px;
    }

    .bio-content-panel p {
        font-size: 1.42rem;
    }

    .bio-content-panel .page-header,
    body.bio-refresh .page-header {
        font-size: 2.35rem;
    }

    .bio-bullet-grid {
        grid-template-columns: 1fr;
    }

    body.bio-refresh #myCarousel .carousel-inner {
        height: 58vw !important;
        min-height: 230px !important;
    }

    body.bio-refresh .homepagecolumnblock {
        width: 100% !important;
    }
}

@media (max-width: 520px) {
    .biomissions-wordmark {
        font-size: 1.4rem;
    }

    .biomissions-tagline {
        font-size: 0.62rem;
    }
}

/* ================================================
   HOMEPAGE — clean layout, carousel removed
   ================================================ */

/* Hide carousel and its container row entirely */
#myCarousel {
    display: none !important;
}

body:not(.bio-refresh) .container > .row > .portfolio-item {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide trailing empty Bootstrap column */
body:not(.bio-refresh) .col-md-4:empty {
    display: none !important;
}

/* Cards grid */
body:not(.bio-refresh) #homepagebuttoncontainer {
    align-items: stretch;
    box-sizing: border-box;
    display: grid !important;
    gap: 2rem;
    grid-auto-flow: row;
    grid-auto-rows: minmax(245px, 1fr);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 36px auto 52px;
    max-width: 1220px;
    padding: 0 20px;
}

body:not(.bio-refresh) #homepagebuttoncontainer::before,
body:not(.bio-refresh) #homepagebuttoncontainer::after {
    content: none !important;
    display: none !important;
}

body:not(.bio-refresh) #homepagebuttoncontainer .homepagecolumnblock {
    align-self: stretch;
    float: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
    height: 100% !important;
    margin: 0 !important;
    max-height: none !important;
    min-height: 0 !important;
    width: 100% !important;
}

/* Shared card shell */
body:not(.bio-refresh) #homepagebuttoncontainer .homepagecontentbox,
body:not(.bio-refresh) #homepagebuttoncontainer .homepagebutton {
    border: 1px solid rgba(11, 61, 54, 0.11) !important;
    border-radius: 8px !important;
    box-shadow: 0 24px 50px rgba(22, 32, 25, 0.1);
    box-sizing: border-box;
    height: 100%;
    min-width: 0;
    overflow: hidden !important;
}

/* Content boxes (SPOTLIGHT, Prayer Focus, JOSHUA) */
body:not(.bio-refresh) #homepagebuttoncontainer .homepagecontentbox {
    background: #fff !important;
    color: var(--bio-ink);
    display: flex;
    flex-direction: column;
    line-height: 1.55;
    padding: 2.15rem !important;
}

body:not(.bio-refresh) #homepagebuttoncontainer .homepagecontentbox h2 {
    color: var(--bio-green-deep);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px;
    padding: 0;
}

body:not(.bio-refresh) #homepagebuttoncontainer .homepagecontentbox p {
    color: #405149;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

body:not(.bio-refresh) #homepagebuttoncontainer .homepagecontentbox .btn {
    border-radius: 8px;
    box-shadow: none;
    margin: 2px 3px 2px 0;
}

/* Navigation button tiles */
body:not(.bio-refresh) #homepagebuttoncontainer .homepagebutton {
    background: #fff !important;
    color: var(--bio-green-deep) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.15rem !important;
    position: relative;
    text-align: left;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: normal;
    transition: box-shadow 160ms ease, transform 160ms ease;
    word-break: normal;
}

body:not(.bio-refresh) #homepagebuttoncontainer .homepagebutton:hover,
body:not(.bio-refresh) #homepagebuttoncontainer .homepagebutton:focus {
    border-color: var(--bio-green-soft) !important;
    box-shadow: 0 18px 40px rgba(22, 32, 25, 0.15);
    color: var(--bio-green-deep) !important;
    outline: none;
    transform: translateY(-2px);
}

body:not(.bio-refresh) #homepagebuttoncontainer .homepagebutton > div {
    display: none;
}

body:not(.bio-refresh) #homepagebuttoncontainer .homepagebutton::before {
    align-items: center;
    background: #edf5f1;
    border: 1px solid rgba(13, 59, 42, 0.14);
    border-radius: 999px;
    color: var(--bio-green-soft);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 2.2rem;
    justify-content: center;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    width: 2.2rem;
}

body:not(.bio-refresh) #homepagebuttoncontainer .homepagebutton::after {
    color: #415149;
    display: block;
    font-size: 1.05rem;
    line-height: 1.55;
    margin-top: 1rem;
    max-width: 100%;
    overflow-wrap: normal;
    white-space: normal;
    word-break: normal;
}

body:not(.bio-refresh) #homepagebuttoncontainer .homepagebutton h2 {
    color: var(--bio-green-deep) !important;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    max-width: 100%;
    overflow-wrap: normal;
    padding: 0;
    position: relative !important;
    text-shadow: none !important;
    top: auto !important;
    white-space: normal;
    word-break: normal;
}

body:not(.bio-refresh) #homepagebuttoncontainer .homepagebutton h2::after {
    content: none;
    display: none;
}

/* Per-tile accent colors */
#btn0 { --tile-accent: var(--bio-green-soft); --tile-bg: #eaf4ef; }
#btn1 { --tile-accent: var(--bio-gold);       --tile-bg: #ead7ae; }
#btn2 { --tile-accent: #3f7fa4;               --tile-bg: #e8f4fa; }
#btn3 { --tile-accent: #6c8f3d;               --tile-bg: #eef7e8; }
#btn4 { --tile-accent: #7b6fcb;               --tile-bg: #f0effb; }
#btn5 { --tile-accent: var(--bio-coral);      --tile-bg: #fff0eb; }

/* Meetings announcement tile — spans full width, sits under About BIO */
#btnMeetings {
    --tile-accent: var(--bio-gold);
    --tile-bg: #ead7ae;
}

/* Desktop grid ordering */
@media (min-width: 991px) {
    #btn0        { grid-column: 1; grid-row: 1; }
    #btn1        { grid-column: 2; grid-row: 1; }
    #btn2        { grid-column: 3; grid-row: 1; }
    #btnMeetings { grid-column: 1; grid-row: 2; }
    body:not(.bio-refresh) #homepagebuttoncontainer > .homepagecontentbox:not(#SPOTLIGHT):not(#JOSHUA) {
        grid-column: 2;
        grid-row: 2;
    }
    #JOSHUA    { grid-column: 3; grid-row: 2; }
    #SPOTLIGHT { grid-column: 1; grid-row: 3; }
    #btn3      { grid-column: 2; grid-row: 3; }
    #btn4      { grid-column: 3; grid-row: 3; }
    #btn5      { grid-column: 1 / span 3; grid-row: 4; }
}

body:not(.bio-refresh) #homepagebuttoncontainer #btn0::before { content: "01"; }
body:not(.bio-refresh) #homepagebuttoncontainer #btnMeetings::before { content: "02"; }
body:not(.bio-refresh) #homepagebuttoncontainer #btn1::before { content: "03"; }
body:not(.bio-refresh) #homepagebuttoncontainer #btn2::before { content: "04"; }
body:not(.bio-refresh) #homepagebuttoncontainer #btn3::before { content: "05"; }
body:not(.bio-refresh) #homepagebuttoncontainer #btn4::before { content: "06"; }
body:not(.bio-refresh) #homepagebuttoncontainer #btn5::before { content: "07"; }

body:not(.bio-refresh) #homepagebuttoncontainer #btn0::after { content: "Learn how BIO helps churches send, support, and strengthen missionaries."; }
body:not(.bio-refresh) #homepagebuttoncontainer #btnMeetings::after { content: "See upcoming BIO meetings and ministry gatherings."; }
body:not(.bio-refresh) #homepagebuttoncontainer #btn1::after { content: "Choose a practical next step to serve, support, learn, give, or connect."; }
body:not(.bio-refresh) #homepagebuttoncontainer #btn2::after { content: "Explore short-term missions through Baptist International Outreach Connect."; }
body:not(.bio-refresh) #homepagebuttoncontainer #btn3::after { content: "Support Bible distribution projects around the world."; }
body:not(.bio-refresh) #homepagebuttoncontainer #btn4::after { content: "Listen to missions-focused media, updates, and missionary stories."; }
body:not(.bio-refresh) #homepagebuttoncontainer #btn5::after { content: "Help with urgent relief efforts and recovery needs."; }

/* SPOTLIGHT: hide broken image, unpin action buttons */
#SPOTLIGHT .bioimage {
    display: none !important;
}

#SPOTLIGHT > div[style*="bottom"] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    position: static !important;
    text-align: left !important;
    width: auto !important;
}

#SPOTLIGHT .btn,
body:not(.bio-refresh) #homepagebuttoncontainer .homepagecontentbox .btn {
    border-radius: 8px;
    box-shadow: none;
    margin: 3px 4px 3px 0;
}

#JOSHUA {
    background: #fff;
    display: block !important;
    padding: 0 !important;
}

@media (max-width: 990px) {
    body:not(.bio-refresh) #homepagebuttoncontainer {
        grid-auto-rows: minmax(225px, 1fr);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    body:not(.bio-refresh) #homepagebuttoncontainer {
        gap: 14px;
        grid-auto-rows: auto;
        grid-template-columns: 1fr;
        margin: 24px auto 36px;
        padding: 0 12px;
    }

    body:not(.bio-refresh) #homepagebuttoncontainer .homepagecolumnblock {
        min-height: 0 !important;
    }

    body:not(.bio-refresh) #homepagebuttoncontainer .homepagecontentbox,
    body:not(.bio-refresh) #homepagebuttoncontainer .homepagebutton {
        padding: 18px !important;
    }

    body:not(.bio-refresh) #homepagebuttoncontainer .homepagebutton h2,
    body:not(.bio-refresh) #homepagebuttoncontainer .homepagecontentbox h2 {
        font-size: 1.75rem;
    }
}

/* ================================================
   ENLIST PAGES
   ================================================ */

body.bio-enlist-page {
    background:
        radial-gradient(circle at 8% 4%, rgba(220, 239, 244, 0.72) 0, rgba(220, 239, 244, 0) 28rem),
        linear-gradient(180deg, #f7faf8 0%, #eef4f0 48%, #edf6f1 100%);
}

body.bio-enlist-page > header:first-of-type {
    display: none;
}

.bio-enlist-main {
    margin: 0 auto;
    max-width: 1180px;
    padding: 82px 18px 46px;
}

.bio-enlist-hero {
    background-image:
        linear-gradient(135deg, rgba(6, 40, 33, 0.98) 0%, rgba(11, 61, 54, 0.90) 55%, rgba(8, 48, 40, 0.96) 100%);
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    box-shadow:
        0 4px 8px rgba(22, 32, 25, 0.06),
        0 18px 36px rgba(22, 32, 25, 0.18),
        0 32px 54px rgba(22, 32, 25, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: #fff;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 40px;
    min-height: 240px;
    overflow: hidden;
    padding: 32px 40px;
    position: relative;
}

.bio-enlist-hero::after {
    background: var(--bio-gold);
    bottom: 0;
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    right: 0;
}

.bio-enlist-eyebrow {
    color: var(--bio-gold);
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.bio-enlist-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0;
    max-width: 760px;
}

.bio-enlist-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
    line-height: 1.65;
    margin: 10px 0 0;
    max-width: 720px;
}

.bio-enlist-hero__badge {
    align-self: start;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #fff;
    min-width: 176px;
    padding: 18px;
}

.bio-enlist-hero__badge strong {
    color: var(--bio-gold);
    display: block;
    font-size: 2.45rem;
    line-height: 1;
}

.bio-enlist-hero__badge span {
    display: block;
    font-size: 1.22rem;
    line-height: 1.35;
    margin-top: 8px;
}

.bio-enlist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.bio-enlist-actions .btn {
    border-radius: 8px;
    box-shadow: none;
    padding: 10px 16px;
}

.bio-enlist-hero .bio-enlist-actions .btn-default {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.bio-enlist-hero .bio-enlist-actions .btn-default:hover,
.bio-enlist-hero .bio-enlist-actions .btn-default:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
}

.bio-enlist-article .btn-default,
.bio-login-panel .btn-default,
.bio-enlist-sidebar .btn-default {
    background: #fff;
    border-color: rgba(13, 59, 42, 0.22);
    color: var(--bio-green-deep);
}

.bio-enlist-article .btn-default:hover,
.bio-enlist-article .btn-default:focus,
.bio-login-panel .btn-default:hover,
.bio-login-panel .btn-default:focus,
.bio-enlist-sidebar .btn-default:hover,
.bio-enlist-sidebar .btn-default:focus {
    background: var(--bio-mist);
    border-color: rgba(13, 59, 42, 0.32);
    color: var(--bio-green-deep);
}

.bio-enlist-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    position: relative;
}

.bio-enlist-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(13, 59, 42, 0.13);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(22, 32, 25, 0.1);
}

.bio-enlist-article {
    align-items: start;
    background: transparent;
    border: none;
    box-shadow: none;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    padding: 0;
}

.bio-enlist-section {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(13, 59, 42, 0.11);
    border-radius: 10px;
    box-shadow:
        0 2px 4px rgba(22, 32, 25, 0.04),
        0 8px 18px rgba(22, 32, 25, 0.08),
        0 22px 38px rgba(22, 32, 25, 0.06);
    padding: 28px;
    position: relative;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.bio-enlist-article > .bio-enlist-section:first-child {
    grid-column: 1 / -1;
}

.bio-enlist-section:hover {
    box-shadow:
        0 4px 8px rgba(22, 32, 25, 0.06),
        0 16px 34px rgba(22, 32, 25, 0.14),
        0 32px 54px rgba(22, 32, 25, 0.08);
    transform: translateY(-4px);
}

.bio-enlist-section h2,
.bio-login-panel h2 {
    color: var(--bio-green-deep);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 14px;
}

.bio-enlist-section h3 {
    color: var(--bio-green);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 18px 0 8px;
}

.bio-enlist-article p,
.bio-login-panel p {
    color: #34463a;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 14px;
}

.bio-enlist-lead {
    border-left: 5px solid var(--bio-gold);
    color: #24372c !important;
    font-size: 1.18rem !important;
    line-height: 1.65 !important;
    margin-bottom: 18px !important;
    padding-left: 18px;
}

.bio-enlist-list,
.bio-enlist-checklist {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.bio-enlist-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bio-enlist-list li,
.bio-enlist-checklist li {
    background: #f5f8f5;
    border: 1px solid rgba(13, 59, 42, 0.1);
    border-radius: 8px;
    color: #24372c;
    font-size: 1.5rem;
    line-height: 1.45;
    padding: 13px 14px 13px 38px;
    position: relative;
}

.bio-enlist-list li::before,
.bio-enlist-checklist li::before {
    background: var(--bio-gold);
    border-radius: 50%;
    content: "";
    height: 10px;
    left: 16px;
    position: absolute;
    top: 19px;
    width: 10px;
}

.bio-enlist-steps {
    counter-reset: bio-step;
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.bio-enlist-steps li {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8f4 100%);
    border: 1px solid rgba(13, 59, 42, 0.12);
    border-radius: 8px;
    counter-increment: bio-step;
    padding: 18px 18px 18px 74px;
    position: relative;
}

.bio-enlist-steps li::before {
    background: var(--bio-green);
    border-radius: 8px;
    color: #fff;
    content: counter(bio-step);
    font-size: 1.7rem;
    font-weight: 800;
    height: 42px;
    left: 18px;
    line-height: 42px;
    position: absolute;
    text-align: center;
    top: 18px;
    width: 42px;
}

.bio-enlist-steps strong {
    color: var(--bio-green-deep);
    display: block;
    font-size: 1.72rem;
    margin-bottom: 5px;
}

.bio-enlist-callout {
    background: linear-gradient(135deg, #eef7f2 0%, #f3faf7 100%);
    border: 1px solid rgba(200, 162, 74, 0.34);
    border-left: 6px solid var(--bio-gold);
    border-radius: 8px;
    margin-top: 18px;
    padding: 20px 22px;
}

.bio-enlist-callout p {
    margin-bottom: 0;
}

.bio-enlist-sidebar {
    display: grid;
    gap: 18px;
    padding: 20px;
    position: sticky;
    top: 74px;
}

.bio-enlist-card {
    border-bottom: 1px solid rgba(13, 59, 42, 0.12);
    padding-bottom: 18px;
}

.bio-enlist-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.bio-enlist-card h2,
.bio-enlist-card h3 {
    color: var(--bio-green-deep);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
}

.bio-enlist-card p {
    color: #405044;
    font-size: 1.42rem;
    line-height: 1.55;
    margin: 0 0 12px;
}

.bio-enlist-nav {
    display: grid;
    gap: 8px;
}

.bio-enlist-nav a {
    align-items: center;
    background: #f5f8f5;
    border: 1px solid rgba(13, 59, 42, 0.11);
    border-radius: 8px;
    color: var(--bio-green-deep) !important;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    line-height: 1.25;
    padding: 11px 12px;
    text-decoration: none !important;
}

.bio-enlist-nav a::after {
    color: var(--bio-gold-soft);
    content: ">";
    font-weight: 800;
    margin-left: 12px;
}

.bio-enlist-nav a:hover,
.bio-enlist-nav a:focus {
    background: var(--bio-green);
    color: #fff !important;
}

.bio-enlist-nav a:hover::after,
.bio-enlist-nav a:focus::after {
    color: var(--bio-gold);
}

.bio-login-panel {
    align-items: stretch;
    background: transparent;
    border: none;
    box-shadow: none;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    position: relative;
}

.bio-login-panel .bio-enlist-section {
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 44px;
}

.bio-login-panel .bio-enlist-actions {
    margin-top: auto;
    padding-top: 24px;
}

.bio-login-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

.bio-login-option {
    background: #f5f8f5;
    border: 1px solid rgba(13, 59, 42, 0.11);
    border-radius: 8px;
    padding: 20px;
}

.bio-login-option h3 {
    color: var(--bio-green-deep);
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.bio-login-option .btn {
    border-radius: 8px;
    margin-top: 10px;
}

@media (max-width: 920px) {
    .bio-enlist-hero,
    .bio-enlist-layout,
    .bio-login-grid,
    .bio-enlist-article,
    .bio-login-panel {
        grid-template-columns: 1fr;
    }

    .bio-enlist-article > .bio-enlist-section:first-child {
        grid-column: auto;
    }

    .bio-enlist-hero__badge {
        max-width: 320px;
    }

    .bio-enlist-sidebar {
        position: static;
    }
}

@media (max-width: 650px) {
    .bio-enlist-main {
        padding: 72px 12px 32px;
    }

    .bio-enlist-hero {
        gap: 14px;
        min-height: 0;
        padding: 22px 20px 26px;
    }

    .bio-enlist-hero h1 {
        font-size: 2.2rem;
    }

    .bio-enlist-hero p {
        font-size: 1.08rem;
    }

    .bio-enlist-hero__badge {
        min-width: 0;
        width: 100%;
    }

    .bio-enlist-section {
        padding: 20px;
    }

    .bio-login-panel .bio-enlist-section {
        min-height: 0;
        padding: 24px;
    }

    .bio-enlist-section h2,
    .bio-login-panel h2 {
        font-size: 1.2rem;
    }

    .bio-enlist-article p,
    .bio-login-panel p,
    .bio-enlist-section p {
        font-size: 1rem;
    }

    .bio-enlist-checklist {
        grid-template-columns: 1fr;
    }

    .bio-enlist-steps li {
        padding: 72px 16px 16px;
    }

    .bio-enlist-steps li::before {
        left: 16px;
        top: 16px;
    }
}

@media (hover: none) {
    .bio-enlist-section:hover { transform: none; }
}

/* ================================================
   FIELD DIRECTORY PAGES
   ================================================ */

body.bio-field-page {
    background:
        linear-gradient(180deg, #f7fbf9 0%, #edf5f0 48%, #edf6f1 100%);
}

.bio-field-main {
    margin: 0 auto;
    max-width: 1320px;
    padding: 92px 22px 56px;
}

.bio-field-hero {
    align-content: stretch;
    align-items: stretch;
    background: var(--bio-green);
    border: 1px solid rgba(13, 59, 42, 0.12);
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(22, 32, 25, 0.14);
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
    grid-template-rows: minmax(390px, auto);
    min-height: 390px;
    overflow: hidden;
    padding: 0;
}

.bio-field-hero__copy {
    background:
        linear-gradient(135deg, rgba(6, 40, 33, 0.98), rgba(11, 61, 54, 0.94));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
}

.bio-field-eyebrow {
    color: var(--bio-gold);
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bio-field-hero h1 {
    color: #fff;
    font-size: 5.8rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.04;
    margin: 0;
}

.bio-field-hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.75rem;
    line-height: 1.6;
    margin: 18px 0 0;
    max-width: 720px;
}

.bio-field-hero__media {
    align-self: stretch;
    background: var(--bio-green);
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.2), rgba(6, 40, 33, 0.56));
    background-position: center;
    background-size: cover;
    height: 100%;
    min-height: 390px;
    position: relative;
}

.bio-field-hero__media::after {
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    content: "";
    inset: 18px;
    pointer-events: none;
    position: absolute;
}

.bio-field-hero__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body[data-field="africa"] .bio-field-hero__media {
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.16), rgba(6, 40, 33, 0.58)), url("/gfx/fiAfricaMapEast.jpg");
}

body[data-field="caribbean"] .bio-field-hero__media {
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.16), rgba(6, 40, 33, 0.58)), url("/flags/barbados.jpg");
}

body[data-field="centralamerica"] .bio-field-hero__media {
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.16), rgba(6, 40, 33, 0.58)), url("/flags/costaRica.jpg");
}

body[data-field="europe"] .bio-field-hero__media {
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.16), rgba(6, 40, 33, 0.58)), url("/flags/republicIreland.jpg");
}

body[data-field="fareast"] .bio-field-hero__media {
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.16), rgba(6, 40, 33, 0.58)), url("/flags/philippines.jpg");
}

body[data-field="farnorth"] .bio-field-hero__media {
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.16), rgba(6, 40, 33, 0.58)), url("/flags/canada.jpg");
}

body[data-field="middleeast"] .bio-field-hero__media {
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.16), rgba(6, 40, 33, 0.58)), url("/flags/egypt.jpg");
}

body[data-field="military"] .bio-field-hero__media {
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.16), rgba(6, 40, 33, 0.58)), url("/flags/military.jpg");
}

body[data-field="southamerica"] .bio-field-hero__media {
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.16), rgba(6, 40, 33, 0.58)), url("/flags/guyana.jpg");
}

body[data-field="southeastasia"] .bio-field-hero__media {
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.16), rgba(6, 40, 33, 0.58)), url("/flags/thailand.jpg");
}

body[data-field="usa"] .bio-field-hero__media {
    background-image: linear-gradient(135deg, rgba(6, 40, 33, 0.16), rgba(6, 40, 33, 0.58)), url("/flags/USA.jpg");
}

.bio-field-hero__label {
    background: rgba(6, 40, 33, 0.9);
    bottom: 30px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    left: 30px;
    letter-spacing: 0;
    padding: 11px 14px;
    position: absolute;
    text-transform: uppercase;
    z-index: 1;
}

.bio-field-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.bio-field-actions .btn {
    border-radius: 8px;
    font-weight: 800;
    padding: 11px 17px;
}

.bio-field-hero .bio-field-actions .btn-default {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
}

.bio-field-hero .bio-field-actions .btn-default:hover,
.bio-field-hero .bio-field-actions .btn-default:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.bio-field-tabs {
    display: flex;
    gap: 10px;
    margin: 22px 0;
    overflow-x: auto;
    padding: 2px 0 10px;
}

.bio-field-tabs a {
    background: #fff;
    border: 1px solid rgba(13, 59, 42, 0.14);
    border-radius: 8px;
    color: var(--bio-green-deep) !important;
    flex: 0 0 auto;
    font-size: 1.38rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 12px 15px;
    text-decoration: none !important;
}

.bio-field-tabs a:hover,
.bio-field-tabs a:focus,
.bio-field-tabs a.is-active {
    background: var(--bio-green);
    border-color: var(--bio-green);
    color: #fff !important;
}

.bio-field-summary {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 30px;
}

.bio-field-stat {
    background: linear-gradient(135deg, var(--bio-green) 0%, var(--bio-green-deep) 100%);
    border: 1px solid rgba(200, 162, 74, 0.28);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(8, 38, 27, 0.16);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.bio-field-stat::after {
    background: var(--bio-gold);
    bottom: 0;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
}

.bio-field-stat strong {
    color: #fff;
    display: block;
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1;
}

.bio-field-stat span {
    color: rgba(255, 255, 255, 0.82);
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 7px;
    text-transform: uppercase;
}

.bio-field-section {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    padding: 0;
}

.bio-field-section h2 {
    color: var(--bio-green-deep);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0 0 22px;
}

.bio-field-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.bio-person-card {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid rgba(13, 59, 42, 0.12);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(22, 32, 25, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    max-width: 100%;
}

.bio-person-card > div:last-child {
    align-self: stretch;
    min-width: 0;
    padding: 18px 18px 20px;
    text-align: center;
}

.bio-photo-holder {
    align-items: center;
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(160deg, rgba(6, 40, 33, 0.98), rgba(31, 111, 91, 0.84)),
        linear-gradient(45deg, rgba(200, 162, 74, 0.18) 25%, transparent 25%, transparent 50%, rgba(200, 162, 74, 0.18) 50%, rgba(200, 162, 74, 0.18) 75%, transparent 75%);
    background-size: auto, 34px 34px;
    border: 0;
    border-bottom: 4px solid var(--bio-gold);
    border-radius: 0;
    color: #fff;
    display: flex;
    font-size: 4.1rem;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0;
    overflow: hidden;
    width: 100%;
}

.bio-photo-holder img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.bio-person-card h3 {
    color: var(--bio-green-deep);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.16;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.bio-person-card p {
    color: #45564a;
    font-size: 1.38rem;
    line-height: 1.42;
    margin: 0;
}

.bio-person-card__note {
    color: var(--bio-gold-soft);
    display: inline-block;
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-top: 8px;
    text-transform: uppercase;
}

.bio-field-empty {
    background: #f8fbf8;
    border: 1px dashed rgba(13, 59, 42, 0.28);
    border-radius: 8px;
    color: #405044;
    font-size: 1.52rem;
    grid-column: 1 / -1;
    line-height: 1.6;
    padding: 28px;
}

.bio-field-empty strong {
    color: var(--bio-green-deep);
}

.bio-directors-section {
    display: none;
}

.bio-directors-section.is-visible {
    display: block;
}

@media (max-width: 980px) {
    .bio-field-hero,
    .bio-field-summary,
    .bio-field-grid {
        grid-template-columns: 1fr;
    }

    .bio-field-hero {
        grid-template-rows: auto minmax(300px, auto);
    }

    .bio-field-hero__media {
        height: auto;
        min-height: 300px;
    }
}

@media (max-width: 650px) {
    .bio-field-main {
        padding: 72px 12px 32px;
    }

    .bio-field-hero__copy {
        padding: 22px;
    }

    .bio-field-hero h1 {
        font-size: 3.25rem;
    }

    .bio-field-hero p {
        font-size: 1.42rem;
    }

    .bio-field-summary,
    .bio-field-grid {
        gap: 14px;
    }

    .bio-field-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .bio-person-card {
        max-width: 360px;
        width: 100%;
    }

    .bio-photo-holder {
        font-size: 3.2rem;
    }

    .bio-person-card h3 {
        font-size: 1.72rem;
    }
}

/* ================================================
   FIELD PAGES — enhanced shadows & depth effects
   ================================================ */

/* Body: subtle warm radial highlight behind hero */
body.bio-field-page {
    background:
        radial-gradient(ellipse at 50% -10%, rgba(200, 162, 74, 0.09) 0%, transparent 52%),
        linear-gradient(180deg, #f7fbf9 0%, #edf5f0 48%, #edf6f1 100%);
}

/* Hero: layered shadow with warm gold undertone glow */
.bio-field-hero {
    box-shadow:
        0 4px 8px rgba(22, 32, 25, 0.06),
        0 24px 54px rgba(22, 32, 25, 0.20),
        0 64px 96px rgba(22, 32, 25, 0.10),
        0 56px 88px rgba(200, 162, 74, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Hero copy panel: right-edge gold accent glow */
.bio-field-hero__copy {
    box-shadow: inset -3px 0 0 rgba(200, 162, 74, 0.28);
}

/* Hero copy: brighter gold eyebrow text */
.bio-field-eyebrow {
    text-shadow: 0 2px 10px rgba(200, 162, 74, 0.35);
}

/* Hero h1: subtle text shadow for depth */
.bio-field-hero h1 {
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* Hero media inner border: more visible, dual-layer */
.bio-field-hero__media::after {
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

/* Hero label badge: refined with blur, border, and shadow */
.bio-field-hero__label {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 162, 74, 0.42);
    border-radius: 6px;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    letter-spacing: 0.04em;
    padding: 11px 18px;
}

/* Stat cards: layered shadow + top-edge shine + hover lift */
.bio-field-stat {
    box-shadow:
        0 6px 12px rgba(8, 38, 27, 0.12),
        0 16px 34px rgba(8, 38, 27, 0.20),
        0 38px 58px rgba(8, 38, 27, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.bio-field-stat:hover {
    box-shadow:
        0 8px 18px rgba(8, 38, 27, 0.16),
        0 24px 48px rgba(8, 38, 27, 0.24),
        0 50px 72px rgba(8, 38, 27, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}


/* Person cards: layered triple shadow + hover lift */
.bio-person-card {
    box-shadow:
        0 2px 4px rgba(22, 32, 25, 0.04),
        0 8px 18px rgba(22, 32, 25, 0.08),
        0 22px 38px rgba(22, 32, 25, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.bio-person-card:hover {
    border-color: rgba(13, 59, 42, 0.22);
    box-shadow:
        0 6px 12px rgba(22, 32, 25, 0.08),
        0 18px 36px rgba(22, 32, 25, 0.14),
        0 36px 60px rgba(22, 32, 25, 0.08);
    transform: translateY(-5px);
}

/* Person card info area: subtle gradient background */
.bio-person-card > div:last-child {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9f6 100%);
}

/* Photo holder: richer gradient with gold shimmer */
.bio-photo-holder {
    background:
        linear-gradient(160deg, rgba(6, 40, 33, 0.97), rgba(15, 72, 58, 0.90)),
        repeating-linear-gradient(
            45deg,
            rgba(200, 162, 74, 0.10) 0px,
            rgba(200, 162, 74, 0.10) 1px,
            transparent 1px,
            transparent 18px
        );
    box-shadow: inset 0 -4px 0 rgba(200, 162, 74, 0.60);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

/* Action buttons in hero: subtle shadow */
.bio-field-actions .btn-primary {
    box-shadow: 0 4px 16px rgba(200, 162, 74, 0.38);
}

.bio-field-actions .btn-primary:hover,
.bio-field-actions .btn-primary:focus {
    box-shadow: 0 6px 22px rgba(200, 162, 74, 0.48);
}

/* Navbar: deeper shadow for the field pages */
body.bio-field-page .navbar-inverse {
    box-shadow: 0 4px 20px rgba(8, 38, 27, 0.28), 0 1px 0 rgba(200, 162, 74, 0.18);
}

/* Space above BIO Directors section */
.bio-directors-section.is-visible {
    margin-top: 44px;
}

/* MISSIONARY LIST PAGE */
body.bio-ms-page .bio-field-main {
    max-width: none;
    padding: 0;
}

/* Hero band: padding-top provides navbar clearance so green bg fills flush under nav */
.bio-ms-hero-band {
    background: linear-gradient(115deg, var(--bio-green-deep) 0%, var(--bio-green) 58%, #1d5c47 100%);
    border-bottom: 4px solid var(--bio-gold);
    color: #fff;
    overflow: hidden;
    padding-top: 50px;
}
.bio-ms-hero-band .container {
    max-width: 1200px;
}
.bio-ms-hero-content {
    max-width: 860px;
    padding: 1.5rem 0 1.6rem;
}
.bio-ms-eyebrow {
    color: var(--bio-gold-soft, #c8a24a);
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}
.bio-ms-hero-band h1 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 0.8rem;
}
.bio-ms-hero-band .lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
    max-width: 740px;
}
.bio-ms-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.bio-ms-hero-actions .btn {
    border-radius: 999px;
    font-size: 1rem;
    padding: 0.55rem 1.2rem;
}

/* Card content wrapper */
.bio-ms-content {
    margin: 0 auto;
    max-width: 1320px;
    padding: 32px 22px 56px;
}
body.bio-ms-page .bio-field-section {
    margin-top: 36px;
    padding-top: 0;
}
body.bio-ms-page .bio-field-section:first-child {
    margin-top: 0;
}
body.bio-ms-page .bio-field-section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

/* Card grid — wider columns for comfortable reading */
body.bio-ms-page .bio-field-grid {
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Scale rem sizes to match field pages; larger for wider cards */
body.bio-ms-page .bio-photo-holder {
    font-size: 3.2rem;
}
body.bio-ms-page .bio-person-card > div:last-child {
    padding: 16px 16px 20px;
}
body.bio-ms-page .bio-person-card h3 {
    font-size: 1.35rem;
    margin: 0 0 5px;
}
body.bio-ms-page .bio-person-card p {
    font-size: 0.95rem;
}
body.bio-ms-page .bio-person-card__note {
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Responsive: disable hover lifts on touch */
@media (hover: none) {
    .bio-person-card:hover,
    .bio-field-stat:hover {
        transform: none;
    }
}

/* RESOURCE AND EVENT PAGE REFRESH */
body.bio-refresh.bio-resources-hub,
body.bio-refresh.bio-resources,
body.bio-refresh.bio-events,
body.bio-refresh.bio-training {
    background: linear-gradient(180deg, #f7fbfa 0%, #eef7f5 38%, #edf6f1 100%);
    color: #1d2d28;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.bio-refresh.bio-resources-hub main,
body.bio-refresh.bio-resources main,
body.bio-refresh.bio-events main,
body.bio-refresh.bio-training main {
    letter-spacing: 0;
}

body.bio-refresh.bio-resources-hub .navbar-inverse,
body.bio-refresh.bio-resources .navbar-inverse,
body.bio-refresh.bio-events .navbar-inverse,
body.bio-refresh.bio-training .navbar-inverse {
    border: 0;
    box-shadow: 0 10px 28px rgba(6, 40, 33, 0.22);
}

body.bio-refresh.bio-resources-hub .rh-hero-band,
body.bio-refresh.bio-resources .res-hero-band,
body.bio-refresh.bio-events .evt-hero-band,
body.bio-refresh.bio-training .ts-hero-band {
    background:
        linear-gradient(115deg, rgba(6, 40, 33, 0.96) 0%, rgba(11, 61, 54, 0.96) 46%, rgba(31, 111, 91, 0.92) 100%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 22px);
    border-bottom: 5px solid var(--bio-gold);
    box-shadow: 0 18px 42px rgba(6, 40, 33, 0.18);
    position: relative;
}

body.bio-refresh.bio-resources-hub .rh-hero-band::after,
body.bio-refresh.bio-resources .res-hero-band::after,
body.bio-refresh.bio-events .evt-hero-band::after,
body.bio-refresh.bio-training .ts-hero-band::after {
    background: linear-gradient(90deg, var(--bio-gold) 0%, #e9cf8c 50%, #75a99a 100%);
    bottom: -5px;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
}

body.bio-refresh.bio-resources-hub .rh-hero-band .container,
body.bio-refresh.bio-resources .res-hero-band .container,
body.bio-refresh.bio-events .evt-hero-band .container,
body.bio-refresh.bio-training .ts-hero-band .container {
    max-width: 1160px;
    width: min(100% - 40px, 1160px);
}

body.bio-refresh.bio-resources-hub .rh-hero-content,
body.bio-refresh.bio-resources .res-hero-content,
body.bio-refresh.bio-events .evt-hero-content,
body.bio-refresh.bio-training .ts-hero-content {
    max-width: 840px;
    padding: 3.5rem 0 3.1rem;
}

body.bio-refresh.bio-resources-hub .rh-eyebrow,
body.bio-refresh.bio-resources .res-eyebrow,
body.bio-refresh.bio-events .evt-eyebrow,
body.bio-refresh.bio-training .ts-eyebrow,
body.bio-refresh.bio-training .ts-section-label,
body.bio-refresh.bio-resources .book-section-kicker,
body.bio-refresh.bio-resources .msg-card-kicker,
body.bio-refresh.bio-events .evt-card-kicker,
body.bio-refresh.bio-resources-hub .rh-card-kicker {
    letter-spacing: 0.08em;
}

body.bio-refresh.bio-resources-hub .rh-hero-content h1,
body.bio-refresh.bio-resources .res-hero-content h1,
body.bio-refresh.bio-events .evt-hero-content h1,
body.bio-refresh.bio-training .ts-hero-content h1 {
    color: #fff;
    font-size: 3.45rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.23);
}

body.bio-refresh.bio-resources-hub .rh-hero-content .lead,
body.bio-refresh.bio-resources .res-hero-content .lead,
body.bio-refresh.bio-events .evt-hero-content .lead,
body.bio-refresh.bio-training .ts-hero-content .lead {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.16rem;
    line-height: 1.72;
}

body.bio-refresh.bio-resources-hub .rh-page-main,
body.bio-refresh.bio-resources .res-page-main,
body.bio-refresh.bio-events .evt-page-main,
body.bio-refresh.bio-training .ts-page-main {
    max-width: 1160px;
    padding: 2.9rem 20px 5.25rem;
}

body.bio-refresh.bio-resources-hub .rh-card,
body.bio-refresh.bio-resources .res-intro-card,
body.bio-refresh.bio-resources .msg-card,
body.bio-refresh.bio-resources .book-section-card,
body.bio-refresh.bio-resources .book-entry,
body.bio-refresh.bio-events .evt-intro-card,
body.bio-refresh.bio-events .evt-card,
body.bio-refresh.bio-training .ts-intro,
body.bio-refresh.bio-training .ts-card,
body.bio-refresh.bio-training .ts-eligible {
    border-color: rgba(10, 54, 48, 0.13);
    border-radius: 8px;
    box-shadow:
        0 2px 4px rgba(22, 32, 25, 0.04),
        0 14px 30px rgba(22, 32, 25, 0.08),
        0 34px 58px rgba(22, 32, 25, 0.06);
}

body.bio-refresh.bio-resources-hub .rh-card,
body.bio-refresh.bio-resources .msg-card,
body.bio-refresh.bio-resources .book-section-card,
body.bio-refresh.bio-events .evt-card,
body.bio-refresh.bio-training .ts-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

body.bio-refresh.bio-resources-hub .rh-card:hover,
body.bio-refresh.bio-resources-hub .rh-card:focus,
body.bio-refresh.bio-resources .msg-card:hover,
body.bio-refresh.bio-resources .book-section-card:hover,
body.bio-refresh.bio-events .evt-card:hover,
body.bio-refresh.bio-training .ts-card:hover {
    border-color: rgba(10, 54, 48, 0.28);
    box-shadow:
        0 4px 10px rgba(22, 32, 25, 0.06),
        0 20px 42px rgba(22, 32, 25, 0.13),
        0 42px 72px rgba(22, 32, 25, 0.08);
    transform: translateY(-4px);
}

body.bio-refresh.bio-resources-hub .rh-card:focus-visible,
body.bio-refresh.bio-events .evt-card-link:focus-visible,
body.bio-refresh.bio-training .ts-contact a:focus-visible,
body.bio-refresh.bio-resources .order-note a:focus-visible {
    outline: 3px solid rgba(200, 162, 74, 0.62);
    outline-offset: 4px;
}

body.bio-refresh.bio-resources-hub .rh-card-body,
body.bio-refresh.bio-events .evt-card-body,
body.bio-refresh.bio-training .ts-card-body,
body.bio-refresh.bio-resources .msg-card,
body.bio-refresh.bio-resources .book-section-card {
    padding: 1.65rem;
}

body.bio-refresh.bio-resources-hub .rh-card-icon {
    background: linear-gradient(145deg, #edf7f4 0%, #ffffff 100%);
    border-color: rgba(10, 54, 48, 0.14);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 20px rgba(10, 54, 48, 0.08);
    color: var(--bio-green-deep);
    font-size: 1.35rem;
}

body.bio-refresh.bio-resources-hub .rh-card-icon .fa,
body.bio-refresh.bio-resources .msg-icon .fa,
body.bio-refresh.bio-events .evt-meta-icon .fa {
    line-height: 1;
}

body.bio-refresh.bio-resources-hub .rh-card-body h3,
body.bio-refresh.bio-resources .msg-card h3,
body.bio-refresh.bio-resources .book-section-card h3,
body.bio-refresh.bio-events .evt-card-top h3,
body.bio-refresh.bio-training .ts-card-head h3 {
    font-size: 1.38rem;
    letter-spacing: 0;
}

body.bio-refresh.bio-resources-hub .rh-card-body p,
body.bio-refresh.bio-resources .res-panel p,
body.bio-refresh.bio-resources .book-desc,
body.bio-refresh.bio-resources .msg-count-note,
body.bio-refresh.bio-events .evt-intro-card p,
body.bio-refresh.bio-events .evt-card-body p,
body.bio-refresh.bio-training .ts-intro p,
body.bio-refresh.bio-training .ts-card-body p,
body.bio-refresh.bio-training .ts-eligible p,
body.bio-refresh.bio-training .ts-topic-item {
    color: #33483f;
    font-size: 1rem;
    line-height: 1.72;
}

body.bio-refresh.bio-resources .res-panel .page-header,
body.bio-refresh.bio-events .evt-intro-card h2,
body.bio-refresh.bio-training .ts-intro h2 {
    font-size: 2.25rem;
    letter-spacing: 0;
    line-height: 1.14;
}

body.bio-refresh.bio-resources .res-intro-card,
body.bio-refresh.bio-events .evt-intro-card,
body.bio-refresh.bio-training .ts-intro,
body.bio-refresh.bio-training .ts-eligible {
    background: rgba(255, 255, 255, 0.96);
}

body.bio-refresh.bio-resources .res-note,
body.bio-refresh.bio-resources .order-note,
body.bio-refresh.bio-events .evt-contact-note,
body.bio-refresh.bio-training .ts-highlight {
    background: linear-gradient(135deg, #f4fbf8 0%, #f3faf7 100%);
    border-color: rgba(10, 54, 48, 0.12);
    border-left-color: var(--bio-gold);
    box-shadow: 0 10px 24px rgba(22, 32, 25, 0.07);
}

body.bio-refresh.bio-resources .msg-item,
body.bio-refresh.bio-resources .book-entry {
    background: #f3faf7;
    border-color: rgba(10, 54, 48, 0.1);
}

body.bio-refresh.bio-resources .msg-item:hover,
body.bio-refresh.bio-resources .book-entry:hover {
    background: #fffaf0;
    border-color: rgba(200, 162, 74, 0.46);
}

body.bio-refresh.bio-resources .msg-icon {
    background: linear-gradient(135deg, var(--bio-gold) 0%, #e7c878 100%);
    box-shadow: 0 5px 12px rgba(200, 162, 74, 0.28);
    font-size: 0.62rem;
}

body.bio-refresh.bio-events .evt-card-top,
body.bio-refresh.bio-training .ts-card-head {
    background:
        linear-gradient(135deg, rgba(6, 40, 33, 0.98) 0%, rgba(11, 61, 54, 0.98) 60%, rgba(31, 111, 91, 0.94) 100%);
}

body.bio-refresh.bio-events .evt-card-meta {
    gap: 0.6rem;
}

body.bio-refresh.bio-events .evt-card-meta > span {
    background: #eef8f4;
    border: 1px solid rgba(10, 54, 48, 0.1);
    border-radius: 999px;
    color: #17372f;
    padding: 0.36rem 0.68rem;
}

body.bio-refresh.bio-events .evt-meta-icon {
    color: var(--bio-gold-soft);
    min-width: 0.9rem;
}

body.bio-refresh.bio-events .evt-card-link,
body.bio-refresh.bio-resources-hub .rh-card-cta {
    border-radius: 999px;
    gap: 0.45rem;
}

body.bio-refresh.bio-events .evt-card-link {
    background: #ffffff;
    border-color: rgba(10, 54, 48, 0.18);
    box-shadow: 0 6px 14px rgba(22, 32, 25, 0.06);
    padding: 0.58rem 0.98rem;
}

body.bio-refresh.bio-events .evt-card-link:hover,
body.bio-refresh.bio-events .evt-card-link:focus {
    background: var(--bio-green-deep);
    border-color: var(--bio-green-deep);
    box-shadow: 0 10px 22px rgba(6, 40, 33, 0.18);
}

body.bio-refresh.bio-resources-hub .rh-card-cta .fa,
body.bio-refresh.bio-events .evt-card-link .fa,
body.bio-refresh.bio-training .ts-contact a .fa {
    transition: transform 180ms ease;
}

body.bio-refresh.bio-resources-hub .rh-card:hover .rh-card-cta .fa,
body.bio-refresh.bio-resources-hub .rh-card:focus .rh-card-cta .fa,
body.bio-refresh.bio-events .evt-card-link:hover .fa,
body.bio-refresh.bio-events .evt-card-link:focus .fa,
body.bio-refresh.bio-training .ts-contact a:hover .fa,
body.bio-refresh.bio-training .ts-contact a:focus .fa {
    transform: translateX(3px);
}

body.bio-refresh.bio-training .ts-card-num {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f1d690;
}

body.bio-refresh.bio-training .ts-topic-item::before {
    box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.14);
}

body.bio-refresh.bio-training .ts-contact {
    background: linear-gradient(135deg, #062821 0%, #0b3d36 62%, #1f6f5b 100%);
    border-radius: 8px;
    box-shadow:
        0 5px 14px rgba(6, 40, 33, 0.12),
        0 22px 48px rgba(6, 40, 33, 0.20);
}

@media (max-width: 1020px) {
    body.bio-refresh.bio-training .ts-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.bio-refresh.bio-resources-hub .rh-hero-content h1,
    body.bio-refresh.bio-resources .res-hero-content h1,
    body.bio-refresh.bio-events .evt-hero-content h1,
    body.bio-refresh.bio-training .ts-hero-content h1 {
        font-size: 2.45rem;
    }

    body.bio-refresh.bio-resources-hub .rh-hero-content .lead,
    body.bio-refresh.bio-resources .res-hero-content .lead,
    body.bio-refresh.bio-events .evt-hero-content .lead,
    body.bio-refresh.bio-training .ts-hero-content .lead {
        font-size: 1.04rem;
    }

    body.bio-refresh.bio-resources-hub .rh-card-body,
    body.bio-refresh.bio-events .evt-card-body,
    body.bio-refresh.bio-training .ts-card-body,
    body.bio-refresh.bio-resources .msg-card,
    body.bio-refresh.bio-resources .book-section-card {
        padding: 1.25rem;
    }

    body.bio-refresh.bio-training .ts-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    body.bio-refresh.bio-resources-hub .rh-hero-band .container,
    body.bio-refresh.bio-resources .res-hero-band .container,
    body.bio-refresh.bio-events .evt-hero-band .container,
    body.bio-refresh.bio-training .ts-hero-band .container {
        width: calc(100% - 28px);
    }

    body.bio-refresh.bio-resources-hub .rh-hero-content,
    body.bio-refresh.bio-resources .res-hero-content,
    body.bio-refresh.bio-events .evt-hero-content,
    body.bio-refresh.bio-training .ts-hero-content {
        padding: 2.35rem 0 2.15rem;
    }

    body.bio-refresh.bio-resources .res-panel .page-header,
    body.bio-refresh.bio-events .evt-intro-card h2,
    body.bio-refresh.bio-training .ts-intro h2 {
        font-size: 1.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.bio-refresh.bio-resources-hub .rh-card,
    body.bio-refresh.bio-resources .msg-card,
    body.bio-refresh.bio-resources .book-section-card,
    body.bio-refresh.bio-events .evt-card,
    body.bio-refresh.bio-training .ts-card,
    body.bio-refresh.bio-events .evt-card-link,
    body.bio-refresh.bio-resources-hub .rh-card-cta .fa,
    body.bio-refresh.bio-events .evt-card-link .fa,
    body.bio-refresh.bio-training .ts-contact a .fa {
        transition: none;
    }
}

/* ================================================
   REQUESTED PAGE POLISH - TARGET CONTENT PAGES
   ================================================ */

.about-page,
body.bio-doctrinal,
body.bio-message-page,
.media-page,
.contact-page,
body.bio-enlist-page {
    background:
        radial-gradient(circle at 8% 6%, rgba(220, 239, 244, 0.7) 0, rgba(220, 239, 244, 0) 28rem),
        radial-gradient(circle at 92% 18%, rgba(200, 162, 74, 0.16) 0, rgba(200, 162, 74, 0) 30rem),
        linear-gradient(180deg, #f7fbf9 0%, #edf6f2 46%, #fbf4e8 100%) !important;
}

.about-hero,
.doctrine-hero,
.media-hero-band,
.bio-enlist-hero {
    background:
        radial-gradient(circle at 84% 18%, rgba(241, 214, 144, 0.2) 0, rgba(241, 214, 144, 0) 24rem),
        linear-gradient(118deg, rgba(6, 40, 33, 0.99) 0%, rgba(11, 61, 54, 0.97) 54%, rgba(31, 111, 91, 0.94) 100%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 24px) !important;
    border-bottom: 5px solid var(--bio-gold) !important;
    box-shadow: 0 22px 56px rgba(6, 40, 33, 0.2) !important;
}

.about-hero .container,
.doctrine-hero .container,
.media-hero-band .container {
    max-width: 1180px !important;
    width: min(100% - 40px, 1180px) !important;
}

.about-hero-copy h1,
.doctrine-hero h1,
.media-hero h1,
.bio-enlist-hero h1 {
    letter-spacing: 0 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.26) !important;
}

.about-hero-copy p,
.doctrine-hero p,
.media-hero .lead,
.bio-enlist-hero p {
    color: rgba(255, 255, 255, 0.92) !important;
}

.about-main,
.about-panel,
.doctrine-intro,
.doctrine-nav a,
.doctrine-section,
.contact-card,
.media-card,
.media-contact-panel,
.bio-enlist-section,
.bio-enlist-sidebar,
.bio-login-option,
body.bio-message-page > .col-md-8,
body.bio-message-page .well {
    border: 1px solid rgba(10, 54, 48, 0.14) !important;
    border-radius: 8px !important;
    box-shadow:
        0 3px 8px rgba(22, 32, 25, 0.05),
        0 18px 42px rgba(22, 32, 25, 0.11),
        0 44px 76px rgba(22, 32, 25, 0.06) !important;
}

.about-main,
.about-panel,
.doctrine-section,
.contact-card,
.media-card,
.media-contact-panel,
.bio-enlist-section,
.bio-login-option,
body.bio-message-page > .col-md-8,
body.bio-message-page .well {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 248, 0.98) 100%) !important;
}

.doctrine-nav a,
.bio-enlist-list li,
.bio-enlist-checklist li,
.bio-enlist-steps li {
    background:
        linear-gradient(135deg, #f4fbf8 0%, #edf6f1 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

.about-panel,
.contact-card:nth-of-type(2n),
.media-card:nth-of-type(2n),
.bio-enlist-section:nth-child(2n),
body.bio-message-page .well:nth-of-type(2n) {
    background:
        linear-gradient(145deg, #f2faf6 0%, #ffffff 58%, #f3faf7 100%) !important;
}

.about-main blockquote,
.bio-enlist-callout,
.doctrine-intro {
    background:
        linear-gradient(135deg, #f4fbf8 0%, #f3faf7 100%) !important;
    border-left-color: var(--bio-gold) !important;
    box-shadow: 0 12px 28px rgba(22, 32, 25, 0.08) !important;
}

.doctrine-section,
.contact-card,
.media-card,
.bio-enlist-section,
body.bio-message-page .well {
    overflow: hidden !important;
    position: relative !important;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease !important;
}

.doctrine-section::before,
.contact-card::before,
.media-card::before,
.bio-enlist-section::before,
body.bio-message-page .well::before {
    background: linear-gradient(90deg, var(--bio-gold), #e9cf8c 48%, var(--bio-green-soft)) !important;
    content: "" !important;
    height: 5px !important;
    left: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
}

.doctrine-section:hover,
.contact-card:hover,
.media-card:hover,
.bio-enlist-section:hover,
body.bio-message-page .well:hover {
    border-color: rgba(10, 54, 48, 0.28) !important;
    box-shadow:
        0 6px 14px rgba(22, 32, 25, 0.07),
        0 24px 52px rgba(22, 32, 25, 0.15),
        0 50px 84px rgba(22, 32, 25, 0.08) !important;
    transform: translateY(-3px) !important;
}

/* Gradient card heads — applied via negative-margin h2/h3 inside cards */
.bio-enlist-section::before,
.doctrine-section::before,
.contact-card::before {
    display: none !important;
}

.bio-enlist-section > h2:first-child,
.bio-enlist-section > h3:first-child {
    background: linear-gradient(125deg, var(--bio-green-deep) 0%, var(--bio-green) 60%, #1f6f5b 100%) !important;
    border-bottom: 3px solid var(--bio-gold) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-size: 1.25rem !important;
    letter-spacing: 0.01em !important;
    margin: -28px -28px 18px !important;
    padding: 1rem 28px !important;
}

@media (max-width: 650px) {
    .bio-enlist-section > h2:first-child,
    .bio-enlist-section > h3:first-child {
        margin: -20px -20px 14px !important;
        padding: 0.85rem 20px !important;
    }
}

.about-layout {
    display: grid !important;
    gap: 32px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 900px !important;
    width: min(100% - 40px, 900px) !important;
}

.about-layout::before,
.about-layout::after,
.contact-page > .row::before,
.contact-page > .row::after {
    content: none !important;
    display: none !important;
}

.about-main {
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-width: none !important;
    padding: 3rem !important;
}

.about-sidebar {
    display: none !important;
}

.about-panel {
    padding: 1.65rem !important;
}

.about-panel img {
    aspect-ratio: 16 / 9 !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    width: 100% !important;
}

.about-table {
    border-collapse: separate !important;
    border-spacing: 10px !important;
}

.about-table td {
    background: linear-gradient(135deg, #f4fbf8 0%, #edf6f1 100%) !important;
    border: 1px solid rgba(10, 54, 48, 0.12) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.doctrine-main {
    max-width: 1180px !important;
}

.doctrine-panel .page-header {
    font-size: clamp(2.35rem, 4vw, 4rem) !important;
}

.doctrine-nav {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.doctrine-nav a {
    align-items: center !important;
    display: flex !important;
    min-height: 5.5rem !important;
    padding: 1.1rem 1.25rem !important;
}

.doctrine-section {
    border-top-width: 0 !important;
    padding: 2.2rem 2.4rem !important;
}

.contact-page {
    max-width: 1180px !important;
    padding: 1.75rem 15px 5rem !important;
}

.contact-page > .row {
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: 1fr !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.contact-page > .row + .row {
    margin-top: 24px !important;
}

.contact-page > .row > [class*="col-"] {
    float: none !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    width: auto !important;
}

.contact-page > .contact-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.contact-page > .row:not(.contact-info-grid):not(:first-child) {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr) !important;
}

.contact-page .page-header {
    background:
        radial-gradient(circle at 88% 18%, rgba(241, 214, 144, 0.2), transparent 18rem),
        linear-gradient(118deg, var(--bio-green-deep) 0%, var(--bio-green) 58%, var(--bio-green-soft) 100%) !important;
    border: 0 !important;
    border-bottom: 5px solid var(--bio-gold) !important;
    border-radius: 8px !important;
    box-shadow: 0 22px 52px rgba(6, 40, 33, 0.2) !important;
    color: #fff !important;
    font-size: clamp(2.2rem, 4vw, 3.8rem) !important;
    font-weight: 800 !important;
    margin: 0 0 0.4rem !important;
    padding: 2.4rem !important;
}

.contact-card {
    margin-bottom: 0 !important;
    padding: 2rem !important;
}

.contact-map-frame {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    padding-bottom: 0 !important;
}

.media-content {
    max-width: 1180px !important;
    padding: 3.4rem 20px 5.25rem !important;
}

.media-resource-grid {
    gap: 24px !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

.media-card:not(.meetings-speaker) {
    align-items: start !important;
    display: grid !important;
    gap: 0.8rem 1.25rem !important;
    grid-template-columns: 4.8rem minmax(0, 1fr) !important;
    min-height: 0 !important;
    padding: 2rem !important;
}

.media-card:not(.meetings-speaker) .media-icon {
    grid-row: 1 / span 3 !important;
    margin-top: 0.1rem !important;
}

.media-card:not(.meetings-speaker) h2,
.media-card:not(.meetings-speaker) p,
.media-card:not(.meetings-speaker) .media-button-row {
    grid-column: 2 !important;
}

.media-card:not(.meetings-speaker) h2 {
    margin-top: 0 !important;
}

.media-icon {
    background: linear-gradient(145deg, #eaf6f1 0%, #f3faf7 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 22px rgba(10, 54, 48, 0.09) !important;
}

.media-section-title {
    margin-top: 4.5rem !important;
}

.media-contact-panel {
    background:
        linear-gradient(135deg, #062821 0%, #0b3d36 60%, #1f6f5b 100%) !important;
    color: #fff !important;
}

.media-contact-panel h2,
.media-contact-panel p {
    color: #fff !important;
}

.bio-enlist-main {
    max-width: 1320px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
}

.bio-enlist-hero {
    border-radius: 8px !important;
    min-height: 270px !important;
    padding: 38px 44px !important;
}

.bio-enlist-hero__badge {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 34px rgba(0, 0, 0, 0.16) !important;
}

.bio-enlist-layout {
    gap: 30px !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
}

.bio-enlist-article {
    gap: 22px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.bio-enlist-article > .bio-enlist-section:first-child,
.bio-enlist-article > .bio-enlist-section:has(.bio-enlist-steps),
.bio-enlist-article > .bio-enlist-section:has(.bio-enlist-checklist),
.bio-enlist-article > .bio-enlist-section:has(.bio-enlist-callout) {
    grid-column: 1 / -1 !important;
}

.bio-enlist-section {
    padding: 2rem !important;
}

.bio-enlist-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.bio-enlist-steps li {
    min-height: 100% !important;
}

.bio-enlist-sidebar {
    align-content: start !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 250, 246, 0.98) 100%) !important;
    gap: 20px !important;
    padding: 22px !important;
}

.bio-enlist-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbf8 100%) !important;
    border: 1px solid rgba(10, 54, 48, 0.11) !important;
    border-radius: 8px !important;
    padding: 1.25rem !important;
}

.bio-login-panel {
    gap: 28px !important;
}

.bio-login-panel .bio-enlist-section {
    min-height: 0 !important;
}

body.bio-message-page {
    color: var(--bio-ink) !important;
}

body.bio-message-page > header:first-of-type {
    display: none !important;
}

body.bio-message-page > .col-md-8,
body.bio-message-page > .col-md-4 {
    margin-top: 34px !important;
}

body.bio-message-page > .col-md-8 {
    margin-left: max(20px, calc((100% - 1180px) / 2)) !important;
    margin-bottom: 5rem !important;
    padding: 2.6rem 3rem !important;
    width: min(760px, calc(100% - 460px)) !important;
}

body.bio-message-page > .col-md-4 {
    margin-left: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: min(360px, calc(100% - 40px)) !important;
}

body.bio-message-page .page-header {
    background:
        radial-gradient(circle at 88% 18%, rgba(241, 214, 144, 0.2), transparent 18rem),
        linear-gradient(118deg, var(--bio-green-deep) 0%, var(--bio-green) 62%, var(--bio-green-soft) 100%) !important;
    border: 0 !important;
    border-bottom: 5px solid var(--bio-gold) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: clamp(2.35rem, 4vw, 3.7rem) !important;
    font-weight: 800 !important;
    margin: 0 0 1.8rem !important;
    padding: 2.25rem !important;
}

body.bio-message-page > .col-md-8 {
    color: #34463a !important;
    font-size: 1.12rem !important;
    line-height: 1.82 !important;
}

body.bio-message-page > .col-md-8 strong {
    color: var(--bio-green-deep) !important;
}

body.bio-message-page > .col-md-8 em {
    background: linear-gradient(135deg, #f4fbf8 0%, #f3faf7 100%) !important;
    border-left: 4px solid var(--bio-gold) !important;
    border-radius: 0 8px 8px 0 !important;
    color: #24372c !important;
    display: block !important;
    line-height: 1.7 !important;
    margin: 0.45rem 0 1.25rem !important;
    padding: 1rem 1.15rem !important;
}

body.bio-message-page .well {
    margin-bottom: 24px !important;
    padding: 1.5rem !important;
}

body.bio-message-page .well img {
    aspect-ratio: 16 / 10 !important;
    border-radius: 8px !important;
    float: none !important;
    height: auto !important;
    margin: 0 0 1rem !important;
    object-fit: cover !important;
    width: 100% !important;
}

body.bio-message-page .well h2 {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
}

body.bio-message-page .well p {
    color: #405044 !important;
    font-size: 1rem !important;
    line-height: 1.62 !important;
}

body.bio-message-page .well .row,
body.bio-message-page .well [class*="col-"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: auto !important;
}

@media (max-width: 1080px) {
    .about-layout,
    .bio-enlist-layout,
    .bio-enlist-article,
    .contact-page > .contact-info-grid,
    .contact-page > .row:not(.contact-info-grid):not(:first-child),
    .bio-enlist-steps {
        grid-template-columns: 1fr !important;
    }

    .about-sidebar {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .bio-enlist-sidebar {
        position: static !important;
    }
}

@media (max-width: 991px) {
    body.bio-message-page > .col-md-8,
    body.bio-message-page > .col-md-4 {
        float: none !important;
        margin: 24px auto !important;
        width: min(100% - 32px, 760px) !important;
    }

    body.bio-message-page > .col-md-8 {
        padding: 2rem !important;
    }
}

@media (max-width: 760px) {
    .about-hero .container,
    .doctrine-hero .container,
    .media-hero-band .container,
    .about-layout {
        width: calc(100% - 28px) !important;
    }

    .about-main,
    .doctrine-section,
    .contact-card,
    .media-card:not(.meetings-speaker),
    .media-contact-panel,
    .bio-enlist-section,
    body.bio-message-page > .col-md-8 {
        padding: 1.45rem !important;
    }

    .media-card:not(.meetings-speaker) {
        grid-template-columns: 1fr !important;
    }

    .media-card:not(.meetings-speaker) .media-icon,
    .media-card:not(.meetings-speaker) h2,
    .media-card:not(.meetings-speaker) p,
    .media-card:not(.meetings-speaker) .media-button-row {
        grid-column: 1 !important;
    }

    .media-card:not(.meetings-speaker) .media-icon {
        grid-row: auto !important;
    }

    .bio-enlist-hero {
        padding: 24px 20px 30px !important;
    }
}

@media (hover: none) {
    .doctrine-section:hover,
    .contact-card:hover,
    .media-card:hover,
    .bio-enlist-section:hover,
    body.bio-message-page .well:hover {
        transform: none !important;
    }
}
