/*!
 * Theme Name: Blog do Otto
 * Description: Estilos CSS do Otto finanças
 * Version: 1.6.2
 * Author: Alessandro Costa
 * Template: src
 */

:root {
    --blue: #508efc;
    --bg-blue: #4a86fa;
    --lighter-blue: #f9fcff;
    --orange: #fb6437;
    --red: #f51231;
    --green: #00be59;
    --gray: #6e6e6e;
    --black: #2d2d2d;
}

* {
    font-family: "Poppins", sans-serif !important;
}

:focus {
    outline: none;
}

/* TAGS */

body {
    overflow-x: hidden;
}

section {
    padding: 2em 1.5em !important;
}

button {
    background: var(--orange);
    color: white;
    border-radius: 25px;
    height: 50px;
    width: 150px;
    text-align: center;
    border: none;
    letter-spacing: 0;
    font-size: 20px;
    font-weight: 300;
}

button:hover {
    cursor: pointer;
    background-color: #fc3b00;
}

input,
textarea {
    color: var(--gray);
    padding: 5px 15px;
    font-size: 15px;
}

input:focus,
textarea:focus,
button:focus {
    outline: none;
}

input:focus,
textarea:focus {
    border: 1px solid var(--blue) !important;
}

.menu {
    display: none;
}

@media screen and (min-width: 768px) {
    .menu {
        display: flex;
        align-items: center;
    }
}

ul {
    list-style: none !important;
    color: var(--black);
    margin-bottom: 50px;
}

ul:last-child {
    margin-bottom: 0;
}

ul > li {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 20px;
    margin-right: 20px;
    margin-left: 20px;
}

ul > li > a {
    color: var(--bg-blue);
}

.menu-item a {
    font-size: 16px;
}

/* BULMA CUSTOMIZATIONS */

.content h2 {
    color: var(--blue);
    font-size: 60px;
    font-weight: 600;
    letter-spacing: -2px;
}

.content h2.post-card-title {
    margin: 6px 0 0;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: normal;
}

.content h2.post-card-title a {
    color: var(--blue);
    border-bottom: 0;
    float: none;
}

.content h3 {
    color: var(--blue);
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 0;
}

.section.main-header {
    padding: 10px 0;
    box-shadow: 0 0 7px rgb(0 0 0 / 30%);
}

.section.email {
    background: var(--lighter-blue);
}

.section.post {
    padding-top: 0 !important;
}

.section.form {
    background: transparent url("img/forma-2.svg") no-repeat;
    background-size: cover;
    position: relative;
    z-index: 2;
}

.section.form::before,
.section.form::after {
    content: " ";
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.section.form::before {
    background: transparent url("img/form-bg.svg") no-repeat;
    background-size: auto;
    background-position-x: center;
    background-position-y: bottom;
}

.section.form::after {
    background: transparent url("img/balao-ottinho.svg") no-repeat;
    background-size: 100px;
    background-position-x: center;
    background-position-y: 600px;
    margin-left: 450px;
}

h4 {
    font-size: 20px !important;
    letter-spacing: 0;
    font-weight: bold !important;
    margin-bottom: 30px !important;
}

strong {
    color: var(--blue);
}

footer {
    background: var(--bg-blue) !important;
    padding-bottom: 2em !important;
}

/* MAILPOET */

.mailpoet_form_popup_overlay {
    display: none;
}

.mailpoet_message > p {
    font-size: 16px !important;
}

.parsley-errors-list {
    position: absolute;
    top: 57px;
    margin: 0 !important;
}

#parsley-id-multiple-datacf_1 {
    top: 12px;
}

.parsley-errors-list li {
    font-size: 12px;
}

/* LOADER */

.custom-loader,
.custom-loader:before,
.custom-loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: load7 1.8s infinite ease-in-out;
    animation: load7 1.8s infinite ease-in-out;
}
.custom-loader {
    color: var(--orange);
    font-size: 10px;
    margin: 130px auto;
    position: relative;
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}
.custom-loader:before,
.custom-loader:after {
    content: "";
    position: absolute;
    top: 0;
}
.custom-loader:before {
    left: -3.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}
.custom-loader:after {
    left: 3.5em;
}
@-webkit-keyframes load7 {
    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }
    40% {
        box-shadow: 0 2.5em 0 0;
    }
}
@keyframes load7 {
    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }
    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

/* SEÇÔES */

#top {
    height: unset !important;
    position: relative;
}

#top .header,
#footer .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0 20px;
}

#top .text-box {
    margin: 40px 0 0 45%;
}

#top img,
#footer img {
    width: 120px;
}

#top h2 > span,
#footer h2 > span {
    display: block;
    font-size: 11px;
    letter-spacing: 6px;
    font-weight: 300;
    position: relative;
    top: -4px;
    left: 4px;
}

#top p {
    font-size: 45px;
    width: 487px;
    margin-bottom: 15px;
}

#searchform input {
    width: 300px !important;
}

@media (max-width: 767.98px) {
    #searchform input {
        width: 100% !important;
    }

    .nav-items {
        padding: 1em !important;
    }
}

.header #searchform {
    margin-bottom: 0;
    padding: 2px;
    border: none;
}
#searchInput {
    padding: 6px 10px;
    visibility: hidden;
}
#searchBtn,
#submitBtn {
    background: none;
    top: 4px;
    right: 4px;
    height: auto;
    width: auto;
}
#searchform #submitBtn {
    display: none;
}
.header #searchform.visible {
    border: 1px solid #d9d9d9;
}
#searchform.visible #searchInput {
    visibility: visible;
}
#searchform.visible #searchBtn {
    display: none;
}
#searchform.visible #submitBtn {
    display: block;
}

#posts {
    width: 1000px;
}

#posts .posts {
    margin-top: 0 !important;
    display: flex;
}

#posts .left-col {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 0 !important;
    border-right: none !important;
    width: 100% !important;
}

#posts .right-col {
    padding-left: 20px;
    flex: 1;
}

#email-news {
    height: 220px;
    background: url("img/coins-2.svg") no-repeat;
}

#email-news p {
    font-size: 30px;
    width: 450px;
    margin-right: 100px;
}

#more-posts {
    display: flex;
    justify-content: center;
}

#more-posts .right-col {
    padding-left: 40px;
}

#more-posts > .right-col img {
    height: 400px;
}

#even-more-posts > .content {
    width: 100%;
}

#even-more-posts > .content > h3 {
    margin: 30px 0 50px;
}

#even-more-posts,
.last-posts {
    display: flex;
    flex-wrap: wrap;
    align-items: normal !important;
    justify-content: space-evenly !important;
    padding-top: 0 !important;
}

#post {
    font-size: 30px;
    color: var(--black);
}

#post .social-media {
    font-size: 15px;
    float: right;
    margin-bottom: 24px;
}

#post .post-image {
    text-align: center;
    clear: both;
}

#post .post-image img {
    width: 100%;
    height: 550px !important;
    border-radius: 10px;
    object-fit: cover;
}

#post .post-date {
    margin-top: 10px;
    font-size: 20px;
    text-align: left !important;
    padding-right: 40px;
}

.post-title h2 {
    margin: 30px 0 20px !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    line-height: 1.2;
    color: var(--blue);
}

footer.footer {
    padding: 2rem;
}

/* OUTROS */

.links > a {
    padding: 35px;
    font-size: 20px;
    font-weight: 300;
}

.wp-block-image figcaption {
    font-size: 1rem;
}

/* POST CARD */

.post-card {
    display: block !important;
    width: 30% !important;
    height: initial !important;
    margin-bottom: 20px !important;
    background: var(--lighter-blue);
    border-radius: 10px;
    font-size: 20px;
    color: var(--gray);
    overflow: hidden;
}

.post-card:last-child {
    margin-bottom: 0;
}

.post-card:nth-child() {
    height: 100%;
}

.post-card .img-container {
    width: 100% !important;
    height: 180px;
}

.post-card img,
.post-card .wp-post-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
}

.post-card-info {
    width: 100% !important;
    padding: 10px !important;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.post-card-info .header {
    text-align: center;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.post-card-info .header a {
    background: var(--green) !important;
    color: white;
    font-size: 12px !important;
    font-weight: 600;
    padding: 2px 8px !important;
    border-radius: 20px;
    margin-bottom: 4px !important;
    text-overflow: ellipsis;
    border: unset;
    white-space: nowrap;
}

#footer {
    max-height: 280px;
}

@media (max-width: 767.98px) {
    #footer {
        height: unset;
        max-height: unset;
    }
}

#footer img {
    width: 150px !important;
}

.links a {
    font-size: 16px;
    padding: 10px;
}

.popular-posts {
    max-width: 1000px;
    margin: 0 auto;
}

.popular-posts h3 {
    color: var(--blue);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: left;
    margin-bottom: 30px;
}

.sticky-post-card {
    width: 100%;
    height: 500px;
    margin: 0 24px 20px;
    padding: 40px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.sticky-post-card .categories a {
    background-color: var(--green);
    color: white;
    border-radius: 50px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 600;
}

.content .sticky-post-card h2 {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 36px;
    letter-spacing: normal;
}

.content .sticky-post-card h2 a {
    color: white;
    text-shadow: 0 3px 6px rgb(0 0 0 / 60%);
}

ul.sub-menu {
    display: none !important;
    position: absolute;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
    margin: 0;
    width: 250px;
    padding-top: 10px;
}

.menu-item-has-children {
    position: relative;
    margin-right: 40px;
}

.menu-item-has-children:after {
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
    right: -20px;
    top: 10px;
    transform: rotateZ(45deg);
    border-right: solid 2px #4a86fa;
    border-bottom: solid 2px #4a86fa;
}

ul.sub-menu.opened {
    display: block !important;
}

.menu > .menu-item:last-child a {
    background-color: #ff6900;
    color: white;
    padding: 10px 16px;
    border-radius: 50px;
}

.text-box {
    margin-top: 30px !important;
}

.text-box p {
    margin-bottom: 22px !important;
    line-height: 1.5;
    font-size: 22px !important;
}

.text-box p:last-child {
    margin-bottom: 10px;
}

.post-card.other-model .post-card-info {
    text-align: left !important;
    overflow: hidden;
}

.other-model .post-card-info a {
    border-bottom: none;
}

.post-card-info a:hover {
    color: var(--blue);
}

.post-card.other-model .post-card-info > p {
    height: auto !important;
    margin-top: 10px;
}

.post-card.other-model {
    margin: 0 0 40px !important;
    width: 30% !important;
}

h3.widget-title {
    font-size: 28px;
    margin-bottom: 30px;
    margin-left: 20px;
}

.main-nav_wrapper {
    display: flex;
    align-items: center;
}

#search-results h2 {
    font-size: 25px;
    margin-bottom: 32px;
    color: var(--bg-blue);
}

.text-box blockquote {
    border-left: 6px solid var(--bg-blue);
    padding: 5px 20px;
    margin-left: 0.5em;
    font-weight: 600;
    background-color: rgba(249, 252, 255, 0.295);
}

@media screen and (max-width: 767px) {
    .sticky-post-card {
        margin: 0 0 20px;
        padding: 20px;
        height: 250px;
    }
    .content .sticky-post-card h2 {
        font-size: 20px;
    }
    .post-card {
        width: 100% !important;
    }
    .post-card-info a {
        font-size: 18px !important;
    }
    .text-box p {
        margin: 0 0.5em 20px !important;
    }
    .text-box p:nth-child(2),
    .text-box blockquote {
        border-left: 6px solid var(--bg-blue);
        padding: 5px 20px;
        margin-left: 0.5em;
        font-weight: 600;
        background-color: rgba(249, 252, 255, 0.295);
    }
    #post .post-image img {
        height: 250px !important;
    }
    .post-title h2 {
        font-size: 30px !important;
        margin-top: 0 !important;
    }
    .section.post {
        padding: 1.5em !important;
    }
    .post-card-info a {
        border-bottom: none !important;
    }
    .post-card:not(.other-model) .a-link {
        position: unset !important;
    }
    .section.posts,
    .section.more-posts,
    .section.even-more-posts,
    .footer,
    .section.last-posts,
    .section.search {
        padding: 1.5em !important;
    }
}
