/* =============================================================
   NIC.br — Estilos customizados do tema Moove
   ============================================================= */

/* ============================================================
   1. TIPOGRAFIA & CORPO
   ============================================================ */

body {
  font-family: "Roboto" !important;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: "Roboto" !important;
}

h2 {
  font-weight: 700;
  color: #3a3a3a;
}

ul {
  padding: 0;
  list-style: none;
}

/* ============================================================
   2. LAYOUT GERAL
   ============================================================ */

#page-wrapper {
  background-color: #f1f4f5;
}

#page,
#page.drawers {
  margin-top: 10rem;
}

body.has-secondarynavigation #page,
body.has-secondarynavigation #page.drawers {
  margin-top: 130px;
}

#page-header {
  margin: 1.25rem auto;
  padding: 0;
  margin-top: 4rem;
}

#page-header h1.h2 {
  margin-top: 1rem;
}

.page-header-image {
  display: inline-block;
  margin-top: -0.7rem;
}

.page-header-headings h2,
.h2 {
  font-size: 1.66rem;
}

.page-context-header {
  overflow: hidden;
  padding: 0.25rem 0;
  display: inline-flex;
  margin-top: 30px;
}

.activityiconcontainer {
  margin-top: 1rem;
}

.alert.alert-info {
  margin-top: 4rem;
}

.pagelayout-mydashboard .card {
  margin-left: 5px;
}

.card {
  border: none;
}

/* ============================================================
   3. FIRST LINE / NAVBAR
   ============================================================ */

.first-line {
  background: #232831;
  box-shadow: -1px -5px 30px 0px rgb(0 0 0 / 30%) !important;
  width: 100%;
  max-width: 100%;
  position: fixed;
  z-index: 9999;
}

.first-line .logos-top {
  padding: 10px;
}

.first-line .logos-top img {
  height: 27px;
}

.navbar.fixed-top {
  margin-top: 48px;
  background-color: #fff;
}

.navbar.fixed-top .primary-navigation .navigation .nav-link.active {
  font-weight: 700;
  border-bottom: 2px solid #000;
}

.langbutton {
  color: #171717;
}

.fa-language {
  color: #171717;
}

/* ============================================================
   4. NAVEGAÇÃO SECUNDÁRIA & DRAWERS
   ============================================================ */

.secondary-navigation {
  border: none;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
  z-index: 1021;
  background-color: #98bf0c;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
  position: fixed;
  top: 117px;
}

.drawer-left {
  margin-top: 3rem;
}

.drawer-toggles .drawer-toggler {
  position: fixed;
  top: 140px;
}

body.has-secondarynavigation .drawer-toggles .drawer-toggler {
  top: 200px;
}

.drawer-toggles .drawer-toggler .btn {
  margin-top: 3rem;
}

.drawer.drawer-right.show {
  margin-top: 3rem;
}

#nav-drawer,
#nav-drawer.closed {
  height: 100% !important;
}

#nav-drawer .list-group .list-group-item a {
  font-weight: 600;
}

#nav-drawer-footer,
#nav-drawer-footer.closed {
  display: none !important;
}

/* ============================================================
   5. BREADCRUMB
   ============================================================ */

.breadcrumb {
  margin-top: 20px;
}

#page-navbar .breadcrumb li {
  background-color: #f1f4f5;
  border: none;
  margin-top: 1rem;
  display: inline-block;
  text-align: right;
  margin-bottom: 0;
}

#page-navbar .breadcrumb-item a {
  background: #0f47ad;
  padding: 7px;
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  display: inline-block;
  margin-top: -13px;
}

/* ============================================================
   6. BANNER / CAROUSEL (#mooveslideshow)
   ============================================================ */

.carousel-indicators,
.carousel-indicators .active,
.carousel-control-prev,
.carousel-control-next {
  display: none;
}

#mooveslideshow .carousel-inner {
  overflow: auto;
}

@media (max-width: 430px) {
  #mooveslideshow .carousel-item.active {
    height: 80px !important;
  }
}

@media (max-width: 1024px) {
  #mooveslideshow .carousel-item.active {
    height: 161px !important;
  }
}

@media (min-width: 1900px) and (max-width: 2100px) {
  #mooveslideshow .carousel-item.active {
    height: 333px !important;
  }
}

@media (min-width: 2100px) {
  #mooveslideshow .carousel-item.active {
    height: 432px !important;
  }
}

/* ============================================================
   7. FRONTPAGE / LOGIN
   ============================================================ */

body.notloggedin #loginbox {
  opacity: 1 !important;
}

#page-site-index #frontpage-available-course-list h2 {
  font-weight: bold;
  margin-top: 1.2rem !important;
}

#page-site-index #frontpage-available-course-list h2::before,
#page-site-index #frontpage-available-course-list h2::after {
  display: none;
}

#page-site-index.notloggedin #mooveslideshow .carousel-caption {
  display: none;
  background-color: transparent;
}

#page-site-index #page-header #loginbox #intro {
  margin: 6rem auto 1rem;
  max-width: 745px;
}

#page-site-index #page-header #loginbox #intro h1 {
  font-size: calc(3vw + 1.5rem) !important;
  margin-bottom: 0 !important;
  letter-spacing: 0 !important;
  font-weight: bold !important;
  text-shadow: none !important;
  margin-top: 2rem !important;
}

#page-site-index #page-header #loginbox #intro h2 {
  font-size: calc(1.5vw + 0.8rem) !important;
  letter-spacing: 0 !important;
  font-weight: 500;
  text-shadow: none !important;
}

#page-site-index .frontpage-guest-header {
  min-height: 480px !important;
  background-size: cover !important;
  background-color: #232831;
  background-position: center !important;
}

@media (max-width: 991px) {
  #page-site-index .frontpage-guest-header {
    min-height: inherit !important;
    background-image: none !important;
    background-color: #232831 !important;
  }
}

#page-login-index.moove-login .loginpanel .card-block .instructions {
  min-height: 300px;
}

.singlebutton .btn {
  margin: 1rem 0 1rem 0.6rem;
}

/* ============================================================
   8. FORMAT TILES
   ============================================================ */

.format-tiles .course-content ul.tiles .tile:hover,
.format-tiles .course-content ul.tiles .tile_bar:hover {
  border-top-color: #fff101 !important;
}

.format-tiles .course-content ul.tiles .tile,
.format-tiles .course-content ul.tiles .tile_bar {
  border-top-color: #1e9e40 !important;
}

.format-tiles .sectiontitle::after,
.format-tiles .tag-info {
  background-color: #1e9e40 !important;
}

.format-tiles .course-content ul.tiles .tile.phototile .photo-tile-text h3 {
  background-color: transparent !important;
}

.format-tiles ul.tiles li.section .content {
  margin: 0 0 0 -15px !important;
}

#jump-to-activity.custom-select {
  display: none;
}

/* ============================================================
   9. GRID DE CURSOS (frontpage / categorias)
   ============================================================ */

#frontpage-available-course-list,
#frontpage-course-list {
  padding: 0;
}

#frontpage-available-course-list .courses.row,
#frontpage-course-list .courses.row,
.courses.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-top: 0;
}

/* Desktop: 3 colunas */
#frontpage-available-course-list .courses.row .col,
#frontpage-course-list .courses.row .col,
.courses.row .col {
  flex: 0 0 auto;
  width: 33.333%;
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-bottom: var(--bs-gutter-y);
  display: flex;
  min-width: 0;
}

@media (max-width: 991px) {

  #frontpage-available-course-list .courses.row .col,
  #frontpage-course-list .courses.row .col,
  .courses.row .col {
    width: 50%;
  }
}

@media (max-width: 575px) {

  #frontpage-available-course-list .courses.row .col,
  #frontpage-course-list .courses.row .col,
  .courses.row .col {
    width: 100%;
  }
}

/* ============================================================
   10. CARD DE CURSO
   ============================================================ */

.courses.row .col .dashboard-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #dee2e6 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background-color: #fff;
  color: #000;
}

.courses.row .col .dashboard-card .dashboard-card-img {
  height: 160px !important;
  min-height: unset !important;
  max-height: unset !important;
  background-position: center;
  background-size: cover;
  flex-shrink: 0;
  padding: 0 !important;
}

.dashboard-card .dashboard-card-img .course-category {
  display: inline;
  margin-left: 6px;
}

.courses.row .col .dashboard-card .course-info-container {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  padding: 0.8rem;
}

.courses.row .col .dashboard-card .course-info-container .coursename {
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.3;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1a1a1a !important;
  margin-bottom: 0.4rem !important;
  text-decoration: none;
}

.courses.row .col .dashboard-card .course-info-container .coursename:hover {
  color: #0f47ad !important;
  text-decoration: underline;
}

.courses.row .col .dashboard-card .course-info-container .customfields {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.4rem;
}

/* --- Descrição: leia mais / leia menos --- */
.courses.row .col .dashboard-card .course-info-container .course-summary {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
  flex: 1;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.courses.row .col .dashboard-card .course-info-container .course-summary .course-summary-text {
  word-break: break-word;
}

.courses.row .col .dashboard-card .course-info-container .course-summary .course-summary-text p {
  margin: 0 0 0.25rem;
}

.courses.row .col .dashboard-card .course-info-container .course-summary .course-summary-text * {
  font-size: inherit;
  line-height: inherit;
}

.courses.row .col .dashboard-card .course-info-container .course-summary .course-summary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f47ad;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.3rem;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  line-height: 1.4;
}

.courses.row .col .dashboard-card .course-info-container .course-summary .course-summary-toggle:hover {
  text-decoration: underline;
  color: #0a3080;
}

.courses.row .col .dashboard-card .course-info-container .course-summary .course-summary-toggle .fa {
  font-size: 0.7rem;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  transition: transform 0.2s ease;
}

/* --- Palestrantes / Contacts --- */
.courses.row .col .dashboard-card .course-contacts {
  padding: 0.65rem 0.85rem 0.7rem;
  border-top: 2px solid #f0f0f0;
  background: linear-gradient(to bottom, #f8f9fa, #f2f4f6);
  border-radius: 0 0 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.courses.row .col .dashboard-card .course-contacts::before {
  content: "Ministrante";
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.1rem;
}

.courses.row .col .dashboard-card .course-contacts .contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none !important;
  color: #333;
  padding: 0.3rem 0.4rem;
  border-radius: 0.35rem;
  transition: background-color 0.15s ease;
}

.courses.row .col .dashboard-card .course-contacts .contact:hover {
  background-color: rgba(15, 71, 173, 0.06);
  text-decoration: none !important;
}

.courses.row .col .dashboard-card .course-contacts .contact+.contact {
  border-top: 1px dashed #e0e0e0;
  padding-top: 0.45rem;
}

.courses.row .col .dashboard-card .course-contacts .contact img {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

.courses.row .col .dashboard-card .course-contacts .contact .info {
  min-width: 0;
  flex: 1;
}

.courses.row .col .dashboard-card .course-contacts .contact .info p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.courses.row .col .dashboard-card .course-contacts .contact .info .name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.courses.row .col .dashboard-card .course-contacts .contact .info .role {
  font-size: 0.72rem;
  color: #0f47ad;
  font-weight: 500;
  line-height: 1.2;
}

/* ============================================================
   11. DASHBOARD CARD (fora do grid — decks, blocos)
   ============================================================ */

@media (min-width: 1700px) {
  .dashboard-card .dashboard-card-img {
    height: 10rem !important;
  }
}

.block .block-cards .course-info-container {
  display: none;
}

.badge-info {
  background-color: black !important;
}

.enrolmenticon {
  display: none;
}

.coursename {
  color: #000 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* ============================================================
   12. FOOTER
   ============================================================ */

#top-footer {
  padding: 30px 15px !important;
  margin: 0 !important;
  background-color: #231f20 !important;
  background-repeat: no-repeat !important;
}

#top-footer h3 {
  display: none;
}

.logos-footer {
  border-top: 2px solid #0000004a;
  background-color: #f1f3f4;
  padding: 60px 55px 20px;
  width: 100%;
  bottom: 0;
  position: relative;
  z-index: 99;
  color: #000;
}

.logos-footer .title-footer {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.23;
  letter-spacing: 1.87px;
  color: rgba(0, 0, 0, 0.87);
  text-transform: uppercase;
}

.logos-footer .social-icons {
  border-top: 1px solid #cfcfcf;
  border-bottom: 1px solid #cfcfcf;
  margin-top: 40px;
  padding-top: 25px;
  padding-bottom: 5px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-family: "Roboto", sans-serif;
}

.logos-footer .social-icons ul {
  display: inline-block;
}

.logos-footer .social-icons ul li {
  display: inline-block;
}

.logos-footer .social-icons ul .fab,
.logos-footer .social-icons ul .fas,
.fa {
  margin-right: 6px;
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.15s ease;
  color: #000;
}

.logos-footer img {
  padding: 0 13px;
}

.social-icons,
.infos-footer a {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.71;
  letter-spacing: 0.1px;
  text-align: right;
  color: #000 !important;
  text-transform: none;
}

.text-contato a {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.71;
  letter-spacing: 0.1px;
  text-align: right;
  color: #000 !important;
  text-transform: none;
}

.infos-footer {
  margin-top: 20px;
  padding-top: 25px;
  padding-bottom: 5px;
}

.infos-footer ul li {
  display: inline-block;
  padding-left: 20px;
}

.infos-footer .nic-cnpj {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.33;
  letter-spacing: 0.1px;
  color: #3d3d3d;
}

@media (max-width: 420px) {
  .infos-footer ul li {
    padding-left: 0;
  }
}

.message-app {
  margin-top: 3rem;
  padding: 5px;
}

.card.dashboard-card {
  padding: 0 !important;
}

.categoryname {
  font-size: 22px !important;
  color: #888;
  margin-bottom: 0.4rem !important;
}

.secondary-navigation .moremenu .nav-tabs .nav-link:hover,
.secondary-navigation .moremenu .nav-tabs .nav-link:focus {
  background-color: #6e802d;
}

.dashboard-card .dashboard-card-img {
  height: 18rem !important;
  background-repeat: no-repeat;
}

@media (max-width: 1470px) {
  .dashboard-card .dashboard-card-img {
    height: 12rem !important;
  }
}