.doctrine-hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    color: #fff;
    background: #031433;
    isolation: isolate;
}

.doctrine-menu-bars,
.doctrine-menu-bars::before,
.doctrine-menu-bars::after {
    width: 25px;
    height: 3px;
    display: block;
    background: #061a42;
    border-radius: 999px;
    content: "";
}

.doctrine-menu-bars {
    position: relative;
}

.doctrine-menu-bars::before {
    position: absolute;
    top: -8px;
    left: 0;
}

.doctrine-menu-bars::after {
    position: absolute;
    top: 8px;
    left: 0;
}

.doctrine-hero__backdrop {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 20, 51, 0.99) 0%, rgba(3, 25, 62, 0.94) 48%, rgba(3, 23, 56, 0.8) 100%),
        url("../images/desing-photos/members-inside.jpeg") center 43% / cover no-repeat;
}

.doctrine-hero__backdrop::after {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 44%, rgba(20, 149, 255, 0.1), transparent 34%),
        linear-gradient(90deg, rgba(2, 16, 43, 0.34), rgba(2, 16, 43, 0.58)),
        linear-gradient(0deg, rgba(2, 14, 38, 0.58), transparent 58%);
    content: "";
}

.doctrine-hero__speaker {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 8%;
    bottom: -72px;
    width: min(56%, 820px);
    background: url("../images/desing-photos/bishop.jpeg") 52% 30% / cover no-repeat;
    filter: brightness(0.5) contrast(0.85) saturate(0.74);
    opacity: 0.78;
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.82) 20%, #000 58%, rgba(0, 0, 0, 0.72) 86%, transparent 100%),
        linear-gradient(0deg, #000 0%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.82) 20%, #000 58%, rgba(0, 0, 0, 0.72) 86%, transparent 100%),
        linear-gradient(0deg, #000 0%, #000 82%, transparent 100%);
    mask-composite: intersect;
}

.doctrine-hero__inner {
    position: relative;
    z-index: 2;
    min-height: 420px;
    padding-block: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doctrine-hero .breadcrumbs {
    margin-bottom: 16px;
}

.doctrine-hero__eyebrow,
.section-kicker {
    margin: 0 0 8px;
    color: #1595ff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.doctrine-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 5vw, 70px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.doctrine-hero h1 span {
    color: #1595ff;
}

.doctrine-hero__lead {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 1.55vw, 21px);
}

.doctrine-hero__summary {
    position: absolute;
    right: 5%;
    bottom: 26px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(4, 28, 70, 0.76);
    border: 1px solid rgba(38, 153, 255, 0.5);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 11, 34, 0.3);
    backdrop-filter: blur(8px);
}

.doctrine-hero__summary strong {
    color: #1595ff;
    font-size: 44px;
    line-height: 1;
}

.doctrine-hero__summary span {
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
}

.doctrine-content {
    padding: 72px 0 90px;
    background:
        radial-gradient(circle at 50% 0%, rgba(21, 149, 255, 0.08), transparent 30%),
        #f7f9fc;
}

.doctrine-intro {
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(500px, 1.3fr);
    gap: clamp(40px, 7vw, 100px);
    align-items: start;
}

.doctrine-intro h2 {
    margin: 0;
    color: #071a42;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.doctrine-intro__copy {
    color: #46516a;
    font-size: 16px;
    line-height: 1.8;
}

.doctrine-intro__copy p {
    margin: 0 0 12px;
}

.doctrine-toolbar {
    margin: 36px 0 24px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(8, 32, 73, 0.08);
}

.doctrine-search {
    position: relative;
    width: min(100%, 560px);
}

.doctrine-search i {
    position: absolute;
    top: 50%;
    left: 18px;
    color: #061a42;
    transform: translateY(-50%);
}

.doctrine-search input {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 50px;
    color: #101b38;
    background: #fff;
    border: 1px solid #d4dce8;
    border-radius: 9px;
    outline: none;
}

.doctrine-search input:focus {
    border-color: #0868e8;
    box-shadow: 0 0 0 3px rgba(8, 104, 232, 0.12);
}

.doctrine-toolbar > p {
    margin: 0;
    color: #5d667b;
    font-size: 14px;
}

.doctrine-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.doctrine-point {
    padding: 24px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    align-items: start;
    background: #fff;
    border: 1px solid #e2e8f1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(8, 32, 73, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.doctrine-point:hover {
    border-color: rgba(8, 104, 232, 0.35);
    box-shadow: 0 14px 32px rgba(8, 32, 73, 0.1);
    transform: translateY(-2px);
}

.doctrine-point__number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #1187ff, #0751c9);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(8, 104, 232, 0.22);
    font-size: 18px;
    font-weight: 800;
}

.doctrine-point h3 {
    margin: 1px 0 7px;
    color: #071a42;
    font-size: 16px;
}

.doctrine-point p {
    margin: 0;
    color: #46516a;
    font-size: 14px;
    line-height: 1.75;
}

.scripture-reference {
    position: relative;
    margin: 0 1px;
    padding: 0 2px;
    display: inline;
    color: #075dcc;
    background: linear-gradient(180deg, transparent 60%, rgba(21, 149, 255, 0.18) 60%);
    border: 0;
    border-bottom: 1px dashed rgba(7, 93, 204, 0.72);
    border-radius: 2px;
    font: inherit;
    font-weight: 700;
    line-height: inherit;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.scripture-reference:hover,
.scripture-reference:focus-visible,
.scripture-reference[aria-expanded="true"] {
    color: #fff;
    background: #075dcc;
    outline: none;
}

.scripture-reference:focus-visible {
    box-shadow: 0 0 0 3px rgba(7, 93, 204, 0.22);
}

.scripture-tooltip {
    position: fixed;
    z-index: 1200;
    width: min(390px, calc(100vw - 32px));
    padding: 20px;
    color: #25334f;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(7, 93, 204, 0.2);
    border-radius: 15px;
    box-shadow: 0 22px 60px rgba(3, 20, 51, 0.25);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 140ms ease, transform 140ms ease;
    backdrop-filter: blur(14px);
}

.scripture-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scripture-tooltip__heading {
    padding-bottom: 13px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e6ebf3;
}

.scripture-tooltip__label {
    display: block;
    color: #0875e5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scripture-tooltip__label i {
    margin-right: 5px;
}

.scripture-tooltip h2 {
    margin: 3px 0 0;
    color: #061a42;
    font-size: 21px;
    line-height: 1.25;
}

.scripture-tooltip__close {
    width: 34px;
    height: 34px;
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    color: #526079;
    background: #f1f5fb;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.scripture-tooltip__close:hover,
.scripture-tooltip__close:focus-visible {
    color: #fff;
    background: #075dcc;
    outline: none;
}

.scripture-tooltip__content {
    min-height: 74px;
    padding: 15px 0 8px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.scripture-tooltip__content p {
    margin: 0;
    color: #34415b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.65;
}

.scripture-tooltip__content .scripture-tooltip__error {
    color: #a12d2d;
    font-family: inherit;
    font-size: 14px;
}

.scripture-tooltip__loader {
    width: 19px;
    height: 19px;
    margin-top: 4px;
    flex: 0 0 19px;
    border: 2px solid #d9e8fb;
    border-top-color: #0875e5;
    border-radius: 50%;
    animation: scripture-loader 700ms linear infinite;
}

.scripture-tooltip__translation {
    margin: 0;
    color: #788398;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
}

.scripture-tooltip__translation a {
    color: #075dcc;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@keyframes scripture-loader {
    to {
        transform: rotate(360deg);
    }
}

.doctrine-empty {
    padding: 60px 20px;
    color: #5d667b;
    text-align: center;
}

.doctrine-empty i {
    color: #0868e8;
    font-size: 38px;
}

.doctrine-empty h3 {
    margin: 12px 0 4px;
    color: #061a42;
}

.doctrine-empty p {
    margin: 0 0 18px;
}

.doctrine-empty button {
    padding: 10px 18px;
    color: #fff;
    background: #0868e8;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .doctrine-hero__summary {
        right: 24px;
        bottom: 30px;
    }

    .doctrine-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .doctrine-page .main-nav__actions {
        margin-left: auto;
        display: flex;
    }

    .doctrine-page .menu-toggle {
        display: inline-grid;
        flex: 0 0 42px;
        place-items: center;
    }

    .doctrine-hero,
    .doctrine-hero__inner {
        min-height: 500px;
    }

    .doctrine-hero__inner {
        padding: 24px 0 108px;
        justify-content: flex-start;
    }

    .doctrine-hero__backdrop {
        background:
            linear-gradient(90deg, rgba(3, 20, 51, 0.99) 0%, rgba(3, 25, 62, 0.95) 54%, rgba(3, 23, 56, 0.84) 100%),
            url("../images/desing-photos/members-inside.jpeg") 48% center / cover no-repeat;
    }

    .doctrine-hero__speaker {
        top: 142px;
        right: -20%;
        bottom: -52px;
        width: 102%;
        background-position: 48% 26%;
        filter: brightness(0.46) contrast(0.82) saturate(0.7);
        opacity: 0.76;
        -webkit-mask-image:
            linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 18%, #000 62%, rgba(0, 0, 0, 0.7) 100%),
            linear-gradient(0deg, #000 0%, #000 78%, transparent 100%);
        mask-image:
            linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 18%, #000 62%, rgba(0, 0, 0, 0.7) 100%),
            linear-gradient(0deg, #000 0%, #000 78%, transparent 100%);
    }

    .doctrine-hero .breadcrumbs {
        margin-bottom: 16px;
        gap: 11px;
        font-size: 14px;
    }

    .doctrine-hero__eyebrow {
        margin-bottom: 6px;
        font-size: 12px;
        letter-spacing: 0.16em;
    }

    .doctrine-hero h1 {
        max-width: 100%;
        font-size: clamp(42px, 11.5vw, 50px);
        line-height: 0.96;
    }

    .doctrine-hero h1 span {
        display: block;
        max-width: 100%;
        white-space: nowrap;
    }

    .doctrine-hero .title-rule {
        margin: 11px 0;
    }

    .doctrine-hero__lead {
        position: relative;
        z-index: 2;
        max-width: min(100%, 350px);
        font-size: 15px;
        line-height: 1.55;
    }

    .doctrine-hero__summary {
        right: 14px;
        bottom: 16px;
        left: 14px;
        width: auto;
        min-height: 76px;
        margin: 0;
        padding: 12px 20px;
        justify-content: center;
        gap: 22px;
        border-radius: 14px;
    }

    .doctrine-hero__summary strong {
        padding-right: 22px;
        border-right: 1px solid rgba(255, 255, 255, 0.28);
        font-size: 44px;
    }

    .doctrine-hero__summary span {
        font-size: 14px;
    }

    .doctrine-content {
        padding: 36px 0 60px;
    }

    .doctrine-intro {
        text-align: center;
    }

    .doctrine-intro h2 {
        font-size: clamp(32px, 10vw, 44px);
    }

    .doctrine-intro__copy {
        text-align: left;
    }

    .doctrine-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .doctrine-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .scripture-tooltip {
        top: auto !important;
        right: 10px;
        bottom: 10px;
        left: 10px !important;
        width: auto;
        padding: 18px;
        border-radius: 18px;
        box-shadow: 0 18px 55px rgba(3, 20, 51, 0.32);
        transform: translateY(16px);
    }

    .scripture-tooltip.is-visible {
        transform: translateY(0);
    }

    .scripture-tooltip__content p {
        font-size: 16px;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scripture-tooltip,
    .scripture-reference {
        transition: none;
    }

    .scripture-tooltip__loader {
        animation-duration: 1.4s;
    }
}

@media (max-width: 480px) {
    .doctrine-hero,
    .doctrine-hero__inner {
        min-height: 490px;
    }

    .doctrine-hero__inner {
        padding-bottom: 102px;
    }

    .doctrine-hero__speaker {
        top: 148px;
        right: -24%;
        bottom: -58px;
        width: 108%;
    }

    .doctrine-hero h1 {
        font-size: clamp(39px, 11.2vw, 46px);
    }

    .doctrine-hero__lead {
        max-width: 100%;
        font-size: 14px;
    }

    .doctrine-hero__summary {
        bottom: 14px;
        min-height: 72px;
        padding: 10px 18px;
        gap: 16px;
    }

    .doctrine-hero__summary strong {
        padding-right: 16px;
        font-size: 40px;
    }

    .doctrine-hero__summary span {
        font-size: 13px;
    }

    .doctrine-point {
        padding: 19px;
        grid-template-columns: 46px 1fr;
        gap: 14px;
    }

    .doctrine-point__number {
        width: 46px;
        height: 46px;
        border-radius: 10px;
        font-size: 16px;
    }
}
