:root {
    --primary-color: #3c8e76;
    --light-primary-color: #caeee3;
    --secondary-color: #c99175;
    --accent-color: #FFFFFF;
    --text-color: #333333;
    --background-color: #f4f4f4;
    --highlight-color: #c99175;
    --font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --artigo-font-family: 'Arial', sans-serif;
    --text-white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: #fff;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header styles */
header {
    background: #fff;
    /* position: sticky; */
    top: 0;
    /* z-index: 1000; */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-bar {
    background-color: var(--white);
    border-top: 5px solid var(--secondary-color);
    border-bottom: 5px solid var(--secondary-color);
    height: 110px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    /* background: linear-gradient(135deg, #3c8e76 0%, #4a9d88 100%); */
    padding: 15px 0;
}

.top-bar .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.top-bar .btn {
    color: #fff;
    font-size: 1.2rem;
}

.top-buttons {
    display: flex;
    align-items: center;
}

.top-buttons .validar-button {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: 600;
}

.top-buttons .submeter-button {
    background-color: var(--secondary-color);
    color: #fff;
    border: 1px solid var(--secondary-color);
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: 600;
}

.top-buttons .validar-dropdown-menu {
    min-width: 360px;
    padding: 12px;
    border: 1px solid #cfe8e1;
}

.validacao-certificado-feedback {
    display: block;
    margin-top: 8px;
    min-height: 20px;
}

.validacao-certificado-feedback.sucesso {
    color: #1b7f5f;
}

.validacao-certificado-feedback.erro {
    color: #c0392b;
}

.nav-search-bar {
    background: #3c8e76;
    padding: 10px 0;
}

.nav-search-bar .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-menu .menu-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-menu .menu-item .dropdown-menu-item{
    color: var(--primary-color);
}

.nav-menu .menu-item .dropdown-menu-item:hover{
    background: var(--light-primary-color);
}

.nav-menu .menu-item a:hover {
    background: rgba(255,255,255,0.1);
}

.search-box form {
    display: flex;
    align-items: center;
}

.search-field {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px 0 0 4px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-submit {
    padding: 8px 15px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-left: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background: rgba(255,255,255,0.3);
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* Mobile menu */
#mobile-menu {
    background: #3c8e76;
}

#mobile-menu .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#mobile-menu .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-menu .menu-item {
    margin-bottom: 10px;
}

#mobile-menu .menu-item a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px;
}

/* Main content */
.site-main {
    min-height: 60vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.homepage-content,
.main-content {
    width: 100%;
}

.section {
    margin-bottom: 40px;
}

.section h1,
.section h2 {
    color: #3c8e76;
    margin-bottom: 20px;
    font-weight: 700;
}

.section h2 {
    font-size: 1.8rem;
    border-bottom: 3px solid #3c8e76;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.highligthed-section {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.highligthed-section h1{
    color: var(--highlight-color);
    font-size: 2rem;
    margin-top: 10px;
    border-top: var(--highlight-color) 2px solid;
    width: 100%;
    padding-top: 20px;
    margin-bottom: 5px;
}

/* Search filter */
.search-filter {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.archive-search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 250px;
}

.filter-item .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-filter .btn-primary {
    padding: 10px 25px;
    background: #3c8e76;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-filter .btn-primary:hover {
    background: #4a9d88;
}

/* List items */
.list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.archive-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.archive-list-item strong a {
    color: #3c8e76;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.archive-list-item strong a:hover {
    color: #4a9d88;
    text-decoration: underline;
}

.archive-list-item .meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.archive-list-item .meta .autor-imagem {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.archive-list-item .meta .author {
    font-weight: 500;
}

.archive-list-item .meta .date {
    color: #999;
}

.archive-list-item .category {
    margin: 10px 0;
    font-size: 0.85rem;
}

.archive-list-item .categoria {
    background: #e8f5f1;
    color: #3c8e76;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 8px;
}

.archive-list-item .subcategoria {
    background: #f7ede7;
    color: #c99175;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.archive-list-item p {
    margin: 15px 0;
    color: #444;
    line-height: 1.7;
}

.archive-list-item > a {
    color: #3c8e76;
    text-decoration: none;
    font-weight: 500;
}

.archive-list-item > a:hover {
    text-decoration: underline;
}

.view-more {
    text-align: center;
    margin-top: 30px;
}

.view-more a {
    display: inline-block;
    padding: 12px 30px;
    background: #3c8e76;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.view-more a:hover {
    background: #4a9d88;
}

/* Article detail page */
.conteudo-artigo {
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.cabecalho-artigo {
    margin-bottom: 40px;
}

.title-wrapper{
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.title-wrapper h1 {
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.info-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    font-size: 12px;
}

.info-container .date {
    color: #666;
    font-size: 0.9rem;
}

.revisao {
    background: #e8f5e9;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.revisao p {
    margin: 5px 0;
    color: #2e7d32;
    font-size: 0.9rem;
}

.autores-artigo {
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.autores-container{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.titulo-autor-h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--highlight-color);
    padding-bottom: 5px;
}

.meta-single{
    background-color: #E0E0E0;
    padding: 8px 12px;
    border-radius: 5px;
    color: var(--text-color);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    width: 49.4%;
}

.autor-info {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.autor-imagem {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--highlight-color);
    flex: 0 0 auto;
}

.autor {
    /* font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    display: block;
    margin-bottom: 10px; */
}

#nomeData{
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

.curriculo {
    /* margin-top: 10px;
    font-size: 0.9rem;
    color: #555; */
}

.submeta-single {
    margin: 20px 0;
}

.acoes {
    display: flex;
    gap: 10px;
}

.btn-artigo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #3c8e76;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-artigo:hover {
    background: #4a9d88;
}

.resumo-container {
    margin: 30px 0;
}

.resumo-artigo{
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.resumo-artigo h3{
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--highlight-color);
    padding-bottom: 5px;
}

.resumo-artigo p{
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14px;
    text-align: justify;
}

.artigo-corpo {
    text-align: justify;
    /* word-break: break-all; */
    overflow-wrap: break-word;
    /* word-wrap: break-word; */
    font-family: var(--artigo-font-family) !important;
}

.artigo-corpo h1{
    font-size: 14pt !important;
    font-weight: bold !important;
}

.artigo-corpo h2{
    font-size: 12pt !important;
    font-weight: bold !important;
}

.artigo-corpo h3{
    font-size: 12pt !important;
    font-weight: bold !important;
}

.artigo-corpo p{
    font-size: 12pt !important;
}

.artigo-corpo blockquote,
.artigo-corpo blockquote p,
.artigo-corpo h6{
    font-size: 10pt !important;
    margin-left: 20px !important;
}

.conteudo-pagina h1{
    font-weight: bold !important;
    border-bottom: 2px solid var(--highlight-color) !important;
    padding-bottom: 10px !important;
    color: var(--highlight-color);
}

/* Edition detail page */
.conteudo-edicao {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cabecalho-edicao {
    margin-bottom: 40px;
}

.edicao-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0;
}

.edicao-capa {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.edicao-text-info {
    flex: 1;
}

.edicao-text-info .date {
    display: block;
    margin-bottom: 15px;
    color: #666;
}

.btn-main {
    display: inline-block;
    margin: 5px 10px 5px 0;
    padding: 10px 20px;
    background: #3c8e76;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-main:hover {
    background: #4a9d88;
}

.edicao-periodo {
    margin: 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.artigo-edicao-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.artigo-edicao-links a {
    color: #3c8e76;
    text-decoration: none;
    font-weight: 500;
}

.artigo-edicao-links a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #3c8e76;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
}

footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .edicao-info {
        flex-direction: column;
    }
    
    .edicao-capa {
        max-width: 100%;
    }
    
    .title-wrapper h1 {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
}

/* Utilities */
.text-muted {
    color: #666 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-3 {
    gap: 1rem !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.embla {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.embla__viewport {
  overflow: hidden;
}

.embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 10px;
}

.embla__prev,
.embla__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(60, 142, 118, 0.8);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.3s;
  z-index: 10;
}

.embla__prev:hover,
.embla__next:hover {
  background: rgba(60, 142, 118, 1);
}

.embla__prev {
  left: 10px;
}

.embla__next {
  right: 10px;
}

/* Edições Carousel */
.edicoes-carousel-wrapper {
  margin-bottom: 50px;
}

.edicoes-carousel-wrapper h2 {
  color: #3c8e76;
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 1.8rem;
  border-bottom: 3px solid #3c8e76;
  padding-bottom: 10px;
}

.edicoes-grid {
    padding: 0px 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.edicao-card {
  /* background: #fff; */
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s; */
}

.edicao-card:hover {
  /* transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15); */
}

.edicao-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
}

.edicao-capa {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.edicao-capa:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}

.edicao-sem-capa {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #3c8e76 0%, #4a9d88 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 4rem;
}

.edicao-titulo {
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .edicoes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .embla__prev,
  .embla__next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .embla__prev {
    left: 5px;
  }

  .embla__next {
    right: 5px;
  }

  .edicao-capa,
  .edicao-sem-capa {
    height: 250px;
  }
}