font-face {
  font-family: 'Tipo Brasil Rounded';
  src: url('fonts/TipoBrasilRounded-400Regular.otf');
  font-weight: 400;
}

@font-face {
  font-family: 'Tipo Brasil Rounded';
  src: url('fonts/TipoBrasilRounded-600Medium.otf');
  font-weight: 600;
}


@font-face {
  font-family: 'Tipo Brasil Rounded';
  src: url('fonts/TipoBrasilRounded-700SemiBold.otf');
  font-weight: 700;
}

@font-face {
  font-family: 'Tipo Brasil Rounded';
  src: url('fonts/TipoBrasilRounded-850Bold.otf');
  font-weight: 850;
}

@font-face {
  font-family: 'Tipo Brasil Rounded';
  src: url('fonts/TipoBrasilRounded-1000Black.otf');
  font-weight: 850;
}

:root {
  --prim-color: #D7EB2F;
  --prim-color-light: #DEEB6E;
  --prim-color-dark: #B3C41D;
  --text-color: #121214;
  --cor-fundo: #f2f2f2;
  --transition: all 300ms ease-out;
  --bg-bottom-right: url('images/leafs.png');
}

* {
  font-family: 'Tipo Brasil Rounded';
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--cor-fundo) !important;
  color: var(--text-color);
}

main{
  min-height: 800px;
}

.bg-main {
  width: 100%;
  height: auto;
  background-image: url('images/bg-river.png');
  background-size: cover;
  background-position: center;
}

a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
}

button {
  outline: none !important;
  cursor: pointer;
}

.content-center {
  width: 100%;  
  max-width: 1571px ;
  margin: auto;
}

@media screen and (max-width: 1570px) {
  .content-center {
    padding: 0 16px;
  }
}

.rowflex {
  display: flex;
}

.abs-position {
  position: absolute;
}

.rel-position {
  position: relative;
}

.container {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right:0 !important;
}

.template-capa .col-xs-12, .col-sm-12,
.template-login .col-xs-12, .col-sm-12  {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#content {
    margin-bottom: 0 !important;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/*-------------CABEÇALHO-----------------*/
header#content-header {
  width: 100%;
  min-height: 138px;
  display: flex;
  flex-direction: column;
}

.topo-site {
    width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #517255;
}

.topo-site .bg-header {
    content: "";
    width: 100%;
    min-height: 40px;
    height: 100%;
    background-image: url('images/river-top.png');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.topo-container {
    width: 100%;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.topo-container a.logo {
    width: 100%;
    max-width: 330px;
    display: flex;
}

.topo-container a.logo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.topo-direita {
    display: flex;
    gap: 30px;
}

.topo-direita .idiomas {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ddd;
    font-weight: 600;
}

.topo-direita .idiomas button {
    background-color: transparent;
    outline: none;
    box-shadow: none;
    border: none;
    padding: 0;
    color: #ddd;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.topo-direita .idiomas button.active {
  font-weight: 700;
  text-decoration: underline;
}

.topo-direita span.separador {
    width: 1px;
    background-color: rgba(233, 233, 233, 0.5);
}

.topo-direita .busca {
  height: fit-content;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    display: flex;
}

.topo-direita .busca input {
    height: 40px;
    background-color: transparent;
    border: none;
    border-right: 1px solid #d9d9d9;
    border-radius: 0;
}

.topo-direita .busca button {
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    height: fit-content;
    padding: 8px;
}

/*-------------RODAPÉ------------------*/
footer#portal-footer-wrapper {
  display: none;
}

.rodape-site {
  background-color: #517255;
  width: 100%;
  padding: 30px 0;
  color: #f9f9f9;
}

.rodape-site .content-center {
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.rodape-site .logo-ebc {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.rodape-site a {
  color: #f9f9f9;
}

.rodape-site a:hover {
  color: var(--prim-color);
  transition: var(--transition);
}

.rodape-site a:active,
.rodape-site a:focus {
  color: var(--prim-color-dark);
}

.rodape-site nav.links-finais {
  letter-spacing: 1px;
  gap: 8px;
}

.links-finais ul {
  list-style: none; display: flex; gap: 12px; padding: 0; margin: 0;
}

.rodape-site a:focus {
  outline: 2px solid #fff; outline-offset: 2px;
}

.links-finais li + li::before {
  content: "|";
  color: #f9f9f9;
  opacity: 0.6;
  margin: 0 8px;
  aria-hidden: true; 
}

/*--------------------MAIN-----------------*/
.main-wrapper {
  background:  var(--bg-bottom-right) no-repeat right bottom;
  background-size: 331px 215px;   
  background-attachment: scroll;
  background-origin: border-box;
  background-clip: border-box;
  min-height: 100svh;
  padding: 0 30px;
}

.main-wrapper .content-center {
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.container-main {
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 16px;
}
.page-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.dropdown { position: relative; transition: all 0.2s ease-in-out;}
.dropdown__button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #dddd;
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  color: #555;
  font-size: 12px;
  font-weight: 700;
}
.dropdown__button::after {
  content: "▾";
  font-size: 0.9em;
  line-height: 1;
}
.dropdown[open] .dropdown__button::after { content: "▴"; }
.dropdown__menu {
  position: absolute;
  right: 0;
  margin: 8px 0 0;
  padding: 8px;
  min-width: 220px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  list-style: none;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dropdown[open] .dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 100;
}
.dropdown__menu li { margin: 0; }
.dropdown__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
}
.dropdown__menu a:hover,
.dropdown__menu a:focus { background: #f3f4f6; outline: none; }

.cards { margin: 0 auto; }
.cards__grid {
  list-style: none;
  display: grid;
  gap: 20px;                 
  grid-template-columns: repeat(5, 1fr); 
  padding: 0;
  margin: 0;
}

@media (max-width: 1400px) { .cards__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .cards__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .cards__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .cards__grid { grid-template-columns: 1fr; } }

.card__article { display: grid; gap: 16px; padding-bottom: 30px; border-bottom: 1px dashed #ddd}

.ratio {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #e9eef2;
  border: 1px solid #e9e9e9;
}
.ratio img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

.card__article:hover .ratio  {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.card__thumb { position: relative; display: block; color: inherit; text-decoration: none; }
.card__tag {
  color: #2f563b;
  font-size: 12px; line-height: 1;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 700;
}

.card__title { font-size: clamp(12px, 1.2vw, 16px); font-weight: 700; margin: 0; }
.card__title:hover {border-bottom: none !important}
.card__title a { color: #1e1e1e; text-decoration: none; }
.card__article:hover  .card__title a, .card__title a:focus { color: #517255; transition: var(--transition);}

.card__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #515151;
}
.card__meta time { white-space: nowrap; font-weight: 400; padding-right: 12px; border-right: 1px solid #ddd;}

.card__download {
  position: relative;               /* espaço para a barrinha */
  text-decoration: none;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__download:focus { outline: 2px solid #2f563b; outline-offset: 2px; border-radius: 5px;}

.main-wrapper a:focus, .main-wrapper button:focus, .main-wrapper summary:focus { outline: 2px solid var(--prim-color-dark); outline-offset: 2px; }

/*-----------Video--------------*/
.nome-pagina {
  gap: 20px;
  align-items: center;
}

a.btn-inicio {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
}

.nome-pagina h1.nome-da-pasta {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  padding-left: 20px;
  border-left: 1px solid #ddd;
  color: var(--text-color);
  margin: 0;
}

.container-conteudo-video {
  background-color: #f1f1f1;
  border-radius: 5px;
  padding: 30px;
}

.video-layout {
  width: 100%;
  display: flex;
  gap: 30px;
  align-items: start;
}

.video-primary {
  border-right: 1px solid #ddd;
  padding-right: 30px;
  flex: 1 1;
}

.player-wrapper { position: relative; }
.player {
  width: 100%;
  height: auto;
  max-height: 60vh; 
  display: block;
  border-radius: 10px;
}

.container-info {
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 16px;
  margin-bottom: 30px;
}

.video-meta { margin-top: 16px; }
.video-title {
  font-size: clamp(16px,1.8rem,20px);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
}
.video-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding:30px 0 0 0; margin: 0;
  list-style: none;
  width: 100%;
  border-top: 1px solid #ddd;
}
.video-tags a {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #d9d9d9;
  text-decoration: none;
  background-color: #f9f9f9;
  color: #555;
}
.video-tags a:focus-visible,
.more-card:focus-visible {
  outline: 3px solid #517255; 
  outline-offset: 2px;
}
li.tags {
  font-size: 12px;
  font-weight: 400;
  color: #555;
}

.video-secondary {
  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #f1f1f1;
  width: 100%;
  max-width: 40%;
  display: flex;
  flex-direction: column;
}
.see-more-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 0;
  margin-bottom: 16px;
}

.video-secondary nav {
  padding-top: 30px;
}

.more-videos {
  list-style: none;
  margin: 0; padding: 0px;
  border-bottom: 1px solid #ddd;
}
.more-item {
  display: flex;
  align-items: center;
  gap:16px;
  background: #e9e9e9;
  border-top: 1px solid #ddd;
  padding: 16px;
}
.more-item:nth-child(even) {
  background: #f1f1f1;
}

.more-card {
  max-width: 50%;
  display: flex;
  text-decoration: none;
}
.more-card:hover {
  background: rgba(0,0,0,0.03);
}
.more-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; 
  object-fit: cover;
  border-radius: 4px;
}
.more-info { display: block; }
.more-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;  
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  color: var(--text-color);
  margin-bottom: 16px;
}

@media screen and (max-width: 980px)  {

  /*---Cabeçalho Mobile----*/
  .topo-container {
    flex-direction: column;
    align-items: center;
  }

  .topo-direita .idiomas button {
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
  }

  /*---Rodapé Mobile----*/
  .rodape-site {
    padding: 60px 30px;
  }

  .rodape-site .content-center {
    flex-direction: column;
    justify-content: center;
  }

  /*---MAIN----*/
  .main-wrapper .content-center {
    margin-top: 60px;
    border-radius: 0;
  }

  .video-layout {
    flex-direction: column; 
  }
  .video-primary {
    width: 100%;
    padding-right: 0;
    border-right: none;
  }
  .video-secondary {
    max-height: none !important; 
    max-width: 100%;
  }
  .more-card { grid-template-columns: 120px 1fr; }

}

@media screen and (max-width: 680px) {

  /*---Cabeçalho Mobile----*/
  .topo-direita {
    flex-direction: column-reverse;
    align-items: center;
  }

  .topo-direita span.separador {
    display: none;
  }

  /*---MAIN----*/
  .main-wrapper .content-center {
    margin-top: 120px;
  }

  .container-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dropdown__button {
    width: 100%;
    justify-content: space-between;
  }

  .container-conteudo-video {
    padding: 0;
  }

  .video-secondary {
    padding-top: 30px;
    border-top: 1px solid #ddd;
  }

  .more-item {
    padding: 16px 0;
  }

} 