/* =========================================================
   OAB/MS — Chamada da Biblioteca Virtual
   Variação com fundo branco e aparência full horizontal
   Namespace exclusivo: .bv-oabms-home
   ========================================================= */

.bv-oabms-home,
.bv-oabms-home * {
    box-sizing: border-box;
}

.bv-oabms-home {
    position: relative;
    width: 100%;
    min-height: 330px;
    margin: 0;
    padding: 0;
    overflow: visible;
    font-family: "Poppins", Arial, sans-serif;
    background: transparent;
    isolation: isolate;
}

/* Fundo branco full horizontal */
.bv-oabms-home:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 0;
    width: 100vw;
    height: 100%;
    margin-left: -50vw;
    background: #ffffff;
    border-top: 4px solid #e13024;
    border-bottom: 1px solid #edf0f5;
}

/* Faixa suave institucional no lado esquerdo */
.bv-oabms-home:after {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    z-index: 0;
    width: 100vw;
    height: calc(100% - 4px);
    margin-left: -50vw;
    background: linear-gradient(
        90deg,
        rgba(36, 44, 68, 0.045) 0%,
        rgba(36, 44, 68, 0.018) 26%,
        rgba(36, 44, 68, 0) 60%
    );
    pointer-events: none;
}

.bv-oabms-home .bv-oabms-inner {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1180px;
    min-height: 330px;
    margin: 0 auto;
    padding: 35px 32px;
}

.bv-oabms-home .bv-oabms-content {
    width: 58%;
    padding-right: 28px;
    animation: bvOabmsContentReveal 0.8s ease both;
}

.bv-oabms-home .bv-oabms-kicker {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #e13024;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.bv-oabms-home .bv-oabms-kicker-line {
    display: inline-block;
    width: 30px;
    height: 3px;
    margin-right: 11px;
    background: #e13024;
}

.bv-oabms-home h2 {
    margin: 0 0 9px 0;
    padding: 0;
    color: #242c44;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1.1px;
}

.bv-oabms-home h2 strong {
    color: #e13024;
    font-weight: 700;
}

.bv-oabms-home .bv-oabms-description {
    max-width: 590px;
    margin: 0 0 14px 0;
    padding: 0;
    color: #596274;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
}

.bv-oabms-home .bv-oabms-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 18px 0;
}

.bv-oabms-home .bv-oabms-tags > span {
    display: inline-flex;
    align-items: center;
    margin: 0 17px 5px 0;
    color: #40495c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.bv-oabms-home .bv-oabms-tags svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    fill: none;
    stroke: #e13024;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bv-oabms-home .bv-oabms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px 11px 21px;
    overflow: hidden;
    color: #ffffff;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    background: #242c44;
    border: 1px solid #242c44;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(36, 44, 68, 0.16);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.bv-oabms-home .bv-oabms-button span {
    position: relative;
    z-index: 2;
}

.bv-oabms-home .bv-oabms-button svg {
    position: relative;
    z-index: 2;
    width: 19px;
    height: 19px;
    margin-left: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.bv-oabms-home .bv-oabms-button:hover,
.bv-oabms-home .bv-oabms-button:focus {
    color: #ffffff;
    text-decoration: none;
    background: #e13024;
    border-color: #e13024;
    box-shadow: 0 13px 28px rgba(225, 48, 36, 0.23);
    transform: translateY(-2px);
}

.bv-oabms-home .bv-oabms-button:hover svg,
.bv-oabms-home .bv-oabms-button:focus svg {
    transform: translateX(4px);
}

.bv-oabms-home .bv-oabms-button:focus {
    outline: 3px solid rgba(225, 48, 36, 0.22);
    outline-offset: 3px;
}

.bv-oabms-home .bv-oabms-visual {
    position: relative;
    width: 36%;
    height: 265px;
    transform: translate3d(0, 0, 0);
    transition: transform 0.45s ease-out;
    animation: bvOabmsVisualReveal 0.9s ease both;
}

.bv-oabms-home .bv-oabms-main-card {
    position: absolute;
    top: 7px;
    left: 50%;
    z-index: 4;
    width: 224px;
    height: 250px;
    margin-left: -112px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(36, 44, 68, 0.11);
    border-radius: 15px;
    box-shadow: 0 19px 46px rgba(36, 44, 68, 0.17);
    animation: bvOabmsMainCardFloat 5s ease-in-out infinite;
}

.bv-oabms-home .bv-oabms-main-card:after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -31px;
    width: 92px;
    height: 92px;
    background: rgba(225, 48, 36, 0.07);
    border-radius: 50%;
}

.bv-oabms-home .bv-oabms-main-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 37px;
    padding: 0 15px;
    color: #ffffff;
    background: #242c44;
}

.bv-oabms-home .bv-oabms-main-card-top span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.bv-oabms-home .bv-oabms-main-card-top i {
    display: block;
    width: 19px;
    height: 3px;
    background: #e13024;
}

.bv-oabms-home .bv-oabms-book {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 158px;
    padding: 8px 12px 0 12px;
}

.bv-oabms-home .bv-oabms-book svg {
    display: block;
    width: 100%;
    height: 100%;
}

.bv-oabms-home .bv-oabms-book-shadow {
    fill: #dce2ec;
}

.bv-oabms-home .bv-oabms-book-page {
    fill: #f8fafc;
    stroke: #242c44;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bv-oabms-home .bv-oabms-book-center {
    fill: none;
    stroke: #e13024;
    stroke-width: 3;
    stroke-linecap: round;
}

.bv-oabms-home .bv-oabms-book-line {
    fill: none;
    stroke: #9fa8b7;
    stroke-width: 2;
    stroke-linecap: round;
}

.bv-oabms-home .bv-oabms-main-card-footer {
    position: relative;
    z-index: 2;
    padding: 3px 17px 0 17px;
    color: #242c44;
    line-height: 1.2;
}

.bv-oabms-home .bv-oabms-main-card-footer span,
.bv-oabms-home .bv-oabms-main-card-footer strong {
    display: block;
}

.bv-oabms-home .bv-oabms-main-card-footer span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.bv-oabms-home .bv-oabms-main-card-footer strong {
    margin-top: 3px;
    font-size: 18px;
    font-weight: 700;
}

.bv-oabms-home .bv-oabms-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(36, 44, 68, 0.1);
    border-radius: 50%;
}

.bv-oabms-home .bv-oabms-orbit-one {
    top: -13px;
    left: 50%;
    width: 290px;
    height: 290px;
    margin-left: -145px;
    animation: bvOabmsOrbitRotate 20s linear infinite;
}

.bv-oabms-home .bv-oabms-orbit-one:after {
    content: "";
    position: absolute;
    top: 28px;
    left: 25px;
    width: 10px;
    height: 10px;
    background: #e13024;
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(225, 48, 36, 0.1);
}

.bv-oabms-home .bv-oabms-orbit-two {
    top: 27px;
    left: 50%;
    width: 210px;
    height: 210px;
    margin-left: -105px;
    border-color: rgba(225, 48, 36, 0.12);
    animation: bvOabmsOrbitRotateReverse 15s linear infinite;
}

.bv-oabms-home .bv-oabms-floating-card {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
    min-width: 113px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(36, 44, 68, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(36, 44, 68, 0.14);
}

.bv-oabms-home .bv-oabms-floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    margin-right: 8px;
    color: #ffffff;
    background: #242c44;
    border-radius: 6px;
}

.bv-oabms-home .bv-oabms-floating-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bv-oabms-home .bv-oabms-floating-card small,
.bv-oabms-home .bv-oabms-floating-card strong {
    display: block;
    line-height: 1.15;
}

.bv-oabms-home .bv-oabms-floating-card small {
    margin-bottom: 2px;
    color: #838b99;
    font-size: 8px;
    font-weight: 500;
    text-transform: uppercase;
}

.bv-oabms-home .bv-oabms-floating-card strong {
    color: #242c44;
    font-size: 11px;
    font-weight: 700;
}

.bv-oabms-home .bv-oabms-floating-pdf {
    top: 37px;
    left: -6px;
    animation: bvOabmsFloatOne 4.2s ease-in-out infinite;
}

.bv-oabms-home .bv-oabms-floating-pdf .bv-oabms-floating-icon {
    background: #e13024;
}

.bv-oabms-home .bv-oabms-floating-video {
    top: 112px;
    right: -5px;
    animation: bvOabmsFloatTwo 4.8s ease-in-out infinite;
}

.bv-oabms-home .bv-oabms-floating-ebook {
    bottom: 11px;
    left: 5px;
    animation: bvOabmsFloatThree 5.2s ease-in-out infinite;
}

.bv-oabms-home .bv-oabms-background {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: 100vw;
    height: 100%;
    margin-left: -50vw;
    overflow: hidden;
    pointer-events: none;
}

.bv-oabms-home .bv-oabms-circle {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.bv-oabms-home .bv-oabms-circle-one {
    top: -145px;
    right: -105px;
    width: 370px;
    height: 370px;
    background: rgba(36, 44, 68, 0.03);
    animation: bvOabmsBackgroundPulse 8s ease-in-out infinite;
}

.bv-oabms-home .bv-oabms-circle-two {
    right: 18%;
    bottom: -138px;
    width: 270px;
    height: 270px;
    background: rgba(225, 48, 36, 0.03);
    animation: bvOabmsBackgroundPulse 10s ease-in-out infinite reverse;
}

.bv-oabms-home .bv-oabms-circle-three {
    top: 58px;
    left: 9%;
    width: 133px;
    height: 133px;
    border: 23px solid rgba(36, 44, 68, 0.02);
    animation: bvOabmsBackgroundMove 11s ease-in-out infinite;
}

.bv-oabms-home .bv-oabms-sheet {
    position: absolute;
    display: block;
    width: 51px;
    height: 65px;
    padding: 14px 8px 8px 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(36, 44, 68, 0.06);
    border-radius: 4px;
    transform: rotate(-10deg);
}

.bv-oabms-home .bv-oabms-sheet i {
    display: block;
    width: 100%;
    height: 2px;
    margin-bottom: 6px;
    background: rgba(36, 44, 68, 0.09);
}

.bv-oabms-home .bv-oabms-sheet-one {
    top: 27px;
    left: 8%;
    animation: bvOabmsSheetMoveOne 13s ease-in-out infinite;
}

.bv-oabms-home .bv-oabms-sheet-two {
    right: 6%;
    bottom: 17px;
    transform: rotate(11deg);
    animation: bvOabmsSheetMoveTwo 15s ease-in-out infinite;
}

.bv-oabms-home .bv-oabms-small-dot {
    position: absolute;
    display: block;
    width: 7px;
    height: 7px;
    background: rgba(36, 44, 68, 0.11);
    border-radius: 50%;
}

.bv-oabms-home .bv-oabms-dot-one {
    top: 25%;
    left: 31%;
    animation: bvOabmsDotFloat 6s ease-in-out infinite;
}

.bv-oabms-home .bv-oabms-dot-two {
    right: 33%;
    bottom: 18%;
    background: rgba(225, 48, 36, 0.18);
    animation: bvOabmsDotFloat 7s ease-in-out infinite reverse;
}

.bv-oabms-home .bv-oabms-dot-three {
    top: 18%;
    right: 15%;
    width: 5px;
    height: 5px;
    animation: bvOabmsDotFloat 8s ease-in-out infinite;
}

.bv-oabms-home .bv-oabms-dot-four {
    bottom: 13%;
    left: 17%;
    width: 10px;
    height: 10px;
    background: rgba(36, 44, 68, 0.06);
    animation: bvOabmsDotFloat 9s ease-in-out infinite reverse;
}

@keyframes bvOabmsContentReveal {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bvOabmsVisualReveal {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bvOabmsMainCardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes bvOabmsFloatOne {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-9px) rotate(1deg);
    }
}

@keyframes bvOabmsFloatTwo {
    0%, 100% {
        transform: translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(8px) rotate(-1deg);
    }
}

@keyframes bvOabmsFloatThree {
    0%, 100% {
        transform: translateY(0) rotate(1deg);
    }
    50% {
        transform: translateY(-7px) rotate(-2deg);
    }
}

@keyframes bvOabmsOrbitRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bvOabmsOrbitRotateReverse {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes bvOabmsBackgroundPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes bvOabmsBackgroundMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(17px, -11px);
    }
}

@keyframes bvOabmsSheetMoveOne {
    0%, 100% {
        transform: translate(0, 0) rotate(-10deg);
    }
    50% {
        transform: translate(20px, 10px) rotate(-4deg);
    }
}

@keyframes bvOabmsSheetMoveTwo {
    0%, 100% {
        transform: translate(0, 0) rotate(11deg);
    }
    50% {
        transform: translate(-18px, -12px) rotate(5deg);
    }
}

@keyframes bvOabmsDotFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-13px);
    }
}

@media (max-width: 1024px) {
    .bv-oabms-home .bv-oabms-inner {
        padding-right: 24px;
        padding-left: 24px;
    }

    .bv-oabms-home .bv-oabms-content {
        width: 57%;
    }

    .bv-oabms-home .bv-oabms-visual {
        width: 40%;
        transform: scale(0.91);
    }

    .bv-oabms-home h2 {
        font-size: 37px;
    }

    .bv-oabms-home .bv-oabms-description {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .bv-oabms-home {
        min-height: 390px;
    }

    .bv-oabms-home .bv-oabms-inner {
        display: block;
        min-height: 390px;
        padding: 42px 22px 38px 22px;
    }

    .bv-oabms-home .bv-oabms-content {
        position: relative;
        z-index: 5;
        width: 100%;
        max-width: 570px;
        padding-right: 115px;
    }

    .bv-oabms-home h2 {
        font-size: 35px;
    }

    .bv-oabms-home .bv-oabms-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .bv-oabms-home .bv-oabms-visual {
        position: absolute;
        top: 50%;
        right: -85px;
        z-index: 2;
        width: 260px;
        height: 270px;
        margin-top: -135px;
        opacity: 0.2;
        transform: scale(0.9);
    }

    .bv-oabms-home .bv-oabms-floating-card {
        display: none;
    }

    .bv-oabms-home .bv-oabms-orbit-one,
    .bv-oabms-home .bv-oabms-orbit-two {
        display: none;
    }
}

@media (max-width: 560px) {
    .bv-oabms-home {
        min-height: 420px;
    }

    .bv-oabms-home .bv-oabms-inner {
        min-height: 420px;
        padding: 41px 20px 35px 20px;
    }

    .bv-oabms-home .bv-oabms-content {
        max-width: none;
        padding-right: 0;
        text-align: left;
    }

    .bv-oabms-home .bv-oabms-kicker {
        font-size: 10px;
        letter-spacing: 1.25px;
    }

    .bv-oabms-home h2 {
        max-width: 310px;
        font-size: 33px;
        line-height: 1.08;
    }

    .bv-oabms-home .bv-oabms-description {
        max-width: 390px;
        margin-bottom: 15px;
        padding-right: 10px;
    }

    .bv-oabms-home .bv-oabms-tags {
        max-width: 360px;
    }

    .bv-oabms-home .bv-oabms-tags > span {
        margin-right: 14px;
        font-size: 11px;
    }

    .bv-oabms-home .bv-oabms-button {
        width: 100%;
        max-width: 290px;
        min-height: 48px;
    }

    .bv-oabms-home .bv-oabms-visual {
        top: 45px;
        right: -118px;
        margin-top: 0;
        opacity: 0.085;
        transform: scale(0.8);
    }

    .bv-oabms-home .bv-oabms-sheet-one {
        left: 73%;
    }

    .bv-oabms-home .bv-oabms-dot-one {
        left: 85%;
    }
}

@media (max-width: 380px) {
    .bv-oabms-home {
        min-height: 440px;
    }

    .bv-oabms-home .bv-oabms-inner {
        min-height: 440px;
        padding-right: 17px;
        padding-left: 17px;
    }

    .bv-oabms-home h2 {
        font-size: 30px;
    }

    .bv-oabms-home .bv-oabms-description {
        font-size: 13px;
    }

    .bv-oabms-home .bv-oabms-tags > span {
        width: 44%;
        margin-right: 6%;
    }

    .bv-oabms-home .bv-oabms-button {
        max-width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bv-oabms-home .bv-oabms-content,
    .bv-oabms-home .bv-oabms-visual,
    .bv-oabms-home .bv-oabms-main-card,
    .bv-oabms-home .bv-oabms-floating-card,
    .bv-oabms-home .bv-oabms-orbit,
    .bv-oabms-home .bv-oabms-circle,
    .bv-oabms-home .bv-oabms-sheet,
    .bv-oabms-home .bv-oabms-small-dot {
        animation: none !important;
    }

    .bv-oabms-home .bv-oabms-button,
    .bv-oabms-home .bv-oabms-button svg,
    .bv-oabms-home .bv-oabms-visual {
        transition: none !important;
    }
}