* {
    --back-primary: #3399dd;
    --back-secondary: #de9833;
    --text-primary: #113355;
    --text-secondary: #DEDC33;
    --text-footer: #d9eee7;
    --font-size-a: 1.1em;
    --font-size-span: 1.3em;
    --font-size-p2: 1.7em;
    --font-size-p: 1.72em;
    --font-size-h2: 2.3em;
    --font-size-h1: 4.6em;
    --font-size-h0: 5.7em;
    --font-size-item-header: 1.72em;
    --margin-5: 5px;
    --margin-10: 10px;
    --margin-20: 20px;
    --margin-30: 30px;
    --margin-50: 50px;
}

p {
    font-size: var(--font-size-p);
}

a:focus {
    text-decoration: none !important;
    color: var(--text-footer);
}

@font-face {
    font-family: 'Ebrima';
    font-weight: normal;
    src: url("../fonts/ebrima/ebrima.ttf");
}

@font-face {
    font-family: 'Ebrima';
    font-weight: bold;
    src: url("../fonts/ebrima/ebrimabd.ttf");
}

@font-face {
    font-family: 'Engravers Gothic';
    font-weight: normal;
    src: url("../fonts/engravers-gothic/engravers-gothic.ttf");
}

@font-face {
    font-family: 'Engravers Gothic';
    font-weight: bold;
    src: url("../fonts/engravers-gothic/engravers-gothic-bold.ttf");
}

body {
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a, p, h2, div, .login-box input::placeholder, #nav a {
    font-family: 'Ebrima', sans-serif !important;
}

#menu {
    position: fixed;
    top: 55px;
    z-index: 10;
    width: 100%;
}

#menu .navbar-default {
    height: 70px;
}

#menu .navbar-header {
    width: 30%;
}

#menu .navbar-brand {
    max-width: 217px;
    position: relative;
    z-index: 11;
}

#nav, #login {
    margin-top: 7px;
}

#nav a {
    font-size: var(--font-size-item-header);
}

#nav li.active {
    background: transparent;
}

#nav li.active a {
    background: transparent;
    border-bottom: 5px solid var(--back-primary);
    box-shadow: none;
}

.title-section, #btn-login, #btn-matricula, #btn-matricula2, #btn-matricula3, #banner h1, #banner-footer h1, #infos article h2, .list-cursos .card .card-container p, .btn-saiba-mais,
#infos2 article h2, #landing h1, #pills-cursos a, #pills-legislacao a, #btn-enviar, figcaption, .btn-secondary, #contract h1, #contract p, #contract ol li {
    font-family: 'Engravers Gothic', sans-serif !important;
}

.title-section, #contract h1 {
    font-weight: bold;
    font-size: var(--font-size-h1);
    color: var(--text-primary);
}

.hr-section, #contract hr {
    background: var(--back-primary);
    width: 10%;
    height: 2px;
}

#contract hr {
    display: block !important;
}

#contract ol li {
    font-size: var(--font-size-p);
}

#btn-login, #btn-matricula, #btn-matricula2, #btn-matricula3, #btn-enviar, .btn-secondary, .btn-saiba-mais {
    font-size: var(--font-size-p);
    font-weight: normal;
    background-color: var(--back-secondary);
    color: #fff !important;
    border: none;
}

#btn-login {
    margin-top: 7px;
    padding: 7px 15px;
}

#btn-matricula, #btn-matricula2, #btn-matricula3 {
    position: relative;
    z-index: 3;
    padding: 10px;
}

#btn-matricula, #btn-matricula2 {
    max-width: 304px;
}

#btn-matricula {
    float: right;
}

#btn-matricula3 {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

#menu .navbar-default .navbar-nav>.active>a, #menu .navbar-nav>.active>a:hover, #menu .navbar-default .navbar-nav>.open>a,
#menu .navbar-default .navbar-nav > li > a:hover, #menu .navbar-default .navbar-nav > li > a:focus,
#menu .navbar-default .navbar-nav > li > a, #contract a, #contract a:hover, #contract a:focus {
    color: var(--text-primary);
}

#bs-example-navbar-collapse-1 .navbar-nav.navbar-right .navbar-form select {
    width: 100%;
}

#bs-example-navbar-collapse-1 {
    background: #fff;
    position: relative;
}

#login li {
    min-width: 192px;
}

#login li a {
    font-size: var(--font-size-p2);
}

#btnLoginMobile {
    float: right;
    margin-right: 15px;
}

.navbar-default .navbar-toggle {
    border-color: transparent;
}

main {
    flex: 1;
}

#banner figure, #auth figure, .breadcrumb {
    background-image: url('../images/banners/edirigir-ead-desktop.webp')
}

#banner figure, #auth figure, #banner-footer figure, .breadcrumb {
    background-size: cover;
    background-position: center;
    width: 100%;
}

#banner figure, #auth figure {
    background-attachment: fixed;
    background-clip: content-box;
    -webkit-background-clip: content-box;
    overflow: hidden;
    height: 1081px;
}

#banner h1, #banner h2, #banner-footer h1, #banner-footer h2 {
    text-align: right;
    position: relative;
    z-index: 3;
}

#banner h1, #banner-footer h1, #landing h1 {
    color: var(--text-primary);
    font-size: var(--font-size-h0);
    font-weight: bold;
}

#banner h1 {
    margin-top: 150px;
}

#banner h2, #banner-footer h2, #landing h2 {
    color: var(--text-secondary);
    font-size: var(--font-size-h2);
    line-height: 1.3;
}

#banner figure:after, #banner-footer:after, #auth figure:after, .breadcrumb:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 100%;
}

#banner figure:after, .breadcrumb:after {
    background: transparent linear-gradient(269deg, var(--back-primary) 0%, #FFFFFF00 100%) 0% 0% no-repeat padding-box;
    height: 1081px;
    opacity: 1;
}

#banner .navbar-form {
    border: none !important;
    box-shadow: none !important;
}

#banner .content-banner .form-group,
#banner .content-banner .navbar-form {
    width: 100%;
    padding: 0;
}

#banner .content-banner select {
    width: 220px;
    transform: scale(1.3);
    background-color: var(--back-secondary);
    border-color: var(--back-secondary);
    border-radius: 0;
    color: #fff;
    margin-top: 50px;
    margin-left: 35px;
    font-weight: bold;
}

#banner-footer {
    position: relative;
    background-image: url('../images/banners/imagem-dispositivos-desktop.webp');
    background-repeat: no-repeat;
    margin-bottom: -2px;
}

#banner-footer:after, #auth figure:after {
    background: transparent linear-gradient(90deg, #3399DDB3 0%, var(--back-primary) 100%) 0% 0% no-repeat padding-box;
    height: 496px;
    z-index: 1;
}

#banner-footer figure {
    height: 496px;
}

#banner-footer h1, #banner-footer h2 {
    width: 50%;
    float: right;
}

#banner-footer h1 {
    font-size: var(--font-size-h1);
}

#banner-footer h2 {
    font-size: var(--font-size-h2);
}

#infos article, #infos2 article {
    height: 360px;
}

#infos img, #infos2 img {
    min-height: 100px;
    margin: 0 auto;
}

#infos h2, #infos2 h2 {
    font-size: var(--font-size-h2);
    font-weight: bold;
    color: var(--text-primary);
}

#about-box, #prova-box, #cursos-box,
#funciona-box, #matricula-box, #contact {
    background: #fff;
}

#about-box .col-md-4:first-child,
#cursos-box .col-md-4:first-child,
#contact .col-md-4:first-child {
    border-right: 2px solid var(--text-footer);
}

#about-box .col-md-4:last-child,
#cursos-box .col-md-4:last-child,
#contact .col-md-4:last-child {
    border-left: 2px solid var(--text-primary);
}

#formContact .form-group, #formRegistration .form-group {
    width: 100% !important;
}

#contact .form-control:not(textarea), #formRegistration input:not([type="checkbox"]),
#formRegistration select {
    height: 60px;
}

.btn-primary, .btn-primary:hover, .btn-default {
    background: var(--back-secondary);
    border-radius: 0;
    border-color: var(--back-secondary);
    font-size: var(--font-size-a);
    font-weight: bold;
    margin-top: 15px;
}

.btn-default {
    background: #fff;
    border: 1px solid var(--back-secondary);
    width: 100%;
}

#about-box h4 {
    font-weight: bold;
}

#about-box a.link-faq, #about-box a.link-legislacao {
    white-space: initial !important;
    text-align: left;
}

#about-box img {
    margin: 0 auto;
}

#about-box figcaption {
    font-size: var(--font-size-span);
    color: var(--text-primary);
}

#about-box .col-md-3:not(.detalhe):last-child {
    border: none;
}

#about-box figure.col-md-3 img {
    margin: 0 auto;
}

#btn-matricula, #btn-matricula3 {
    width: 100%;
    text-align: center;
}

#about hr {
    border-bottom: 2px solid var(--back-secondary);
    width: 75%;
    margin-left: 0;
}

#about figure {
    background-size: cover;
    background-position: center;
}

.fig-about {
    height: 150px;
    position: relative;
}

.fig-about img:first-child {
    height: 92px;
}

#landing {
    background: var(--back-primary);
    position: relative;
}

#landing h1 {
    font-size: var(--font-size-h1);
}

#landing h1 strong {
    color: #DE3433;
}

#landing img {
    position: absolute;
    top: 221px;
}

.title-box {
    color: var(--back-secondary) !important;
    font-weight: bold;
}

.owl-nav {
    position: relative;
}

.owl-item .author {
    text-align: right !important;
}

.owl-next, .owl-prev {
    width: 30px;
    height: 30px;
    background: var(--back-secondary) !important;
    border-color: var(--back-secondary) !important;
    border-radius: 50%;
    box-shadow: none;
    color: #fff !important;
    position: absolute;
    bottom: 180px;
    z-index: 10;
}

.owl-prev {
    transform: rotate(300deg);
    left: 20%;
    content: "";
}

.owl-next {
    right: 20%;
    content: "";
}

.breadcrumb {
    background-position: initial;
    height: 203px;
    margin-bottom: 0;
}

.breadcrumb:after {
    height: 203px;
}

.nav-pills {
    width: 100%;
}

#pills-cursos,
#pills-legislacao {
    margin-top: 30px;
}

#pills-legislacao li {
    width: 50%;
    margin-left: 0 !important;
}

#pills-legislacao li.items-3x {
    width: 33.3333333%;
}

#pills-legislacao li a,
#pills-cursos li a {
    font-size: var(--font-size-h2) !important;
    text-align: center;
}

#pills-cursos li a {
    font-size: var(--font-size-p) !important;
}

#portaria p, #resolucoes p {
    font-size: var(--font-size-span);
}

#pills-cursos li {
    width: 25%;
    margin-left: 0 !important;
}

#pills-cursos li:first-child {
    width: 20%;
    margin-right: 5%;
}

#pills-cursos button {
    width: 100%;
    padding: 10px 10px 10px 20px;
    border: none;
    background: var(--back-secondary);
    box-shadow: none;
    text-align: left;
}

#pills-cursos button a {
    background: none !important;
    color: #fff;
    text-decoration: none;
}

#pills-cursos li ul {
    width: 100%;
    margin-top: 0;
    padding: 0;
}

#pills-cursos .dropdown-menu a {
    background: none !important;
    padding: 5px 20px;
}

#pills-cursos .dropdown-menu li.active a {
    color: var(--back-secondary) !important;
}

.list-cursos {
    padding: 0 30px 0 0;
}

.list-cursos .card {
    padding: 15px;
    height: 200px;
    border: none !important;
}

.list-cursos .card:nth-child(3n+1) {
    padding-left: 0;
}

.list-cursos .card:nth-child(3n) {
    padding-right: 0;
}

.list-cursos .card .card-container {
    background-color: #dddddd;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
    padding: 10px;
}

.list-cursos .card .card-container div.image-card {
    display: flex;
    width: 45%;
    height: 100%;
    align-items: center;
}

.list-cursos .card .card-container div.image-card img {
    max-width: 100%;
    max-height: 100%;
}

.list-cursos .card .card-container div.content-card {
    color: var(--text-primary);
    width: 55%;
    height: 100%;
    padding-left: 15px;
    line-height: 1.1;
    font-weight: bolder;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.list-cursos .card .card-container div.content-card p {
    display: -webkit-box; /* Required for -webkit-line-clamp */
    -webkit-line-clamp: 3; /* Limits the text to 3 lines */
    -webkit-box-orient: vertical; /* Required for -webkit-line-clamp */
    overflow: hidden; /* Hides any overflowing content */
    text-overflow: ellipsis; /* Displays an ellipsis (...) for truncated text */
    white-space: normal;
}

.cursos-detalhes {
    margin-top: 35px;
    margin-bottom: 70px;
    display: flex;
    flex-wrap: wrap; /* permite quebrar linhas */
}
.cursos-detalhes * {
    text-align: center;
    font-family: 'Engravers Gothic', sans-serif !important;
    color: var(--text-primary);
}

.cursos-detalhes .detalhe {
    border-left: 1px solid #dddddd;
    float: none;        /* anula float do bootstrap */
    flex: 0 0 25%;      /* equivalente a col-md-3 */
    max-width: 25%;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cursos-detalhes .detalhe:first-child {
    border-left: none;
}

@media (max-width: 768px) {
    .cursos-detalhes .detalhe {
        flex: 0 0 50%;   /* equivalente a col-sm-6 */
        max-width: 50%;
        margin-bottom: 20px;
    }
    .cursos-detalhes .detalhe:nth-child(2n+1) {
        border-left: none;
    }
    .list-cursos .card {
        padding: 15px 0;
        height: 150px;
    }
    .list-cursos .card .card-container div.image-card {
        width: 35%;
    }
    .list-cursos .card .card-container div.content-card {
        width: 65%;
    }
}

.cursos-detalhes .topo-detalhes,
.cursos-detalhes .destaque-detalhes,
.cursos-detalhes .rodape-detalhes {
    font-weight: bold;
    display: block;
}

.cursos-detalhes .topo-detalhes {
    font-size: var(--font-size-p2);
}

.cursos-detalhes .destaque-detalhes {
    font-size: var(--font-size-h1);
}

.cursos-detalhes .rodape-detalhes {
    font-weight: normal;
    font-size: var(--font-size-a);
}

.cursos-detalhes img {
    width: 100%;
    height: auto;
}

.btn-passo-a-passo {
    font-size: var(--font-size-p);
    border: 1px solid var(--text-primary);
}

.nav-pills li a {
    border-radius: 0 !important;
    font-size: var(--font-size-a);
    font-weight: bold;
    border: 1px solid var(--back-secondary);
    color: var(--back-secondary);
}
.nav-pills li.active a,
.nav-pills li.active a:hover,
.nav-pills li.active a:focus {
    background: var(--back-secondary);
}

#accordion {
    border-top: 2px solid var(--text-primary);
    border-left: 2px solid var(--text-primary);
    border-right: 2px solid var(--text-primary);
}

#accordion .card {
    border-bottom: 1px solid var(--text-primary);
}

#accordion .card-header {
    border-bottom: 1px solid var(--text-primary);
}

#accordion button {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    width: 95%;
    text-align: left;
}

#accordion button:focus,
#accordion button:hover {
    border: none;
    outline: none !important;
    outline-offset: 0 !important;
}

#accordion i {
    padding-top: 10px;
    padding-right: 20px;
    color: var(--text-primary);
}

#accordion h5 {
    margin: 0 !important;
    padding: 10px 4px;
    position: relative;
    height: 54px;
}

#accordion a.link-faq {
    margin-top: 0;
    line-height: 10px;
    position: relative;
    z-index: 5;
}

#accordion i {
    position: absolute;
    right: 10px;
}

#accordion .card-body {
    padding: 10px 20px;
}

.box-curso {
    border: none !important;
}

.content-curso {
    height: 200px !important;
    padding: 15px;
    background: var(--text-footer);
    margin-bottom: 20px;
}

.content-curso h4 {
    height: 80px;
}

.content-curso a {
    width: 100%;
}

#formMatricula .col-md-6,
#formMatricula .col-md-4,
#formMatricula .col-md-3 {
    border: none !important;
}

#formMatricula .col-md-6 {
    padding: 0 15px;
}

#formMatricula .col-md-6 a {
    margin-top: 0 !important;
    height: 34px;
    padding-top: 5px;
}

#formMatricula input,
#formMatricula select {
    border: 1px solid var(--back-secondary);
    border-left: 5px solid var(--back-secondary);
}

input.btn-primary,
input.btn-primary:hover {
    margin-top: 0;
    padding: 0;
}

.linha_ajuda_tipo_registro {
    display: none;
}

#contact .content-contact {
    margin-bottom: 50px;
    line-height: 3;
    border-bottom: none !important;
}

#contact a, #about-box a.link-faq, #about-box a.link-legislacao {
    width: 100%;
    text-decoration: none;
    color: #000;
}

#contact input, #contact textarea,
#contact select, #formRegistration input, #formRegistration select {
    border: 1px solid var(--text-primary);
    border-left: 5px solid var(--text-primary);
}

#contact img {
    margin-left: 15px;
}

#contact .content-contact p:first-child {
    line-height: 1.5;
    margin-top: -10px;
}

#btn-enviar {
    width: 192px;
}

footer {
    background: var(--text-primary);
    padding-top: 50px;
    padding-bottom: 50px;
}

footer ul {
    padding-left: 0;
}

footer h2, footer h4 {
    margin-top: 0;
    font-weight: bold;
}

footer h4 {
    font-size: 1.5em;
}

footer h2, footer h4, footer p, footer span, footer a,
footer a:hover, footer ul li a, footer ul li a:hover {
    color: var(--text-footer);
    text-decoration: none;
}

footer p, footer span, footer a {
    font-size: 14px;
}

footer ul li a {
    font-size: 14px;
}

footer img {
    height: 80px !important;
    margin-top: -10px;
}

footer ul li {
    list-style: none !important;
    line-height: 2;
}

.color-primary,
#about-box .nav-pills a {
    color: var(--back-secondary) !important;
    padding: 10px 0 !important;
}

.color-secondary,
#about-box .nav-pills .active a {
    color: #fff !important;
}

#auth figure:after {
    height: 1081px !important;
}

#auth figure {
    position: relative;
}

#auth figcaption {
    position: absolute;
    width: 640px !important;
    height: auto;
    left: calc(50% - 320px);
    top: 20vh;
    z-index: 3;
}

#auth hr {
    background-color: var(--back-primary);
    width: 192px;
    height: 2px;
}

#btn-matricula {
    width: 100%;
}

#courses .btn-secondary {
    width: 100%;
}

#formContact input::placeholder,
#formContact textarea::placeholder {
    font-size: var(--font-size-span);
}

.login-box {
    background: white;
    padding: 30px 114px;
    width: 100%;
    max-width: 640px;
}

.login-box img {
    max-width: 192px;
}

.login-box input {
    height: 48px;
}

.login-box input::placeholder {
    font-size: var(--font-size-p);
    text-align: center;
}

.login-box h3 {
    text-align: center;
    font-weight: bold;
}

#modalNotice .modal-title {
    display: inline-block;
}

#modalNotice .modal-content {
    padding: 10px 30px;
    margin: 0 auto;
}

#modalNotice img {
    margin: 0 auto;
}

#modalNotice hr {
    background: var(--back-secondary);
    height: 1px;
}

#modalNotice .btn-secondary {
    width: 100%;
    height: 50px;
}

#modalNotice small {
    margin-top: 10px;
}

.modal-open {
    padding-right: 0 !important;
}

input.is-invalid {
    border: 1px solid red !important;
    box-shadow: inset 0 1px 1px rgba(255, 0, 0, 0.075), 0 0 8px rgba(255, 0, 0, 0.6) !important;
}

#formRegistration small {
    color: red;
}