:root {
  --primary: #0D3348;
  --primary-dark: #082838;
  --secondary: #24566f;
  --accent: #e8f0f4;
  --text: #253238;
  --muted: #66757b;
  --white: #ffffff;
  --header-height: 86px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}
body {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  padding-top: var(--header-height);
}

a { text-decoration: none; }
.footer-bireme-logo{
  height:60px;
  padding: 20px;
}
.section-space { padding: 44px 0; }
.section-kicker {
  display: inline-block;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-heading h2 {
  margin: .35rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}
.section-intro {
  max-width: 680px;
  margin-top: .75rem;
  color: var(--muted);
}
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}
.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
}
/* Header: fundo 100%, conteúdo limitado ao container */
.site-header {
  background: rgba(13, 51, 72, .98);
  box-shadow: 0 3px 18px rgba(0, 0, 0, .14);
  backdrop-filter: blur(8px);
}
.site-header .navbar { min-height: var(--header-height); }
.logo-mark,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  height: 42px;
  padding: 0 14px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 8px;
  color: var(--white);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .08em;
  flex: 0 0 auto;
}
.site-title {
  max-width: 450px;
  white-space: normal;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.site-header .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  padding: .65rem .72rem !important;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus { color: #fff; }
/* Banner / carrossel */
.hero-section,
.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item,
.hero-slide { min-height: 610px; }
.hero-slide {
  position: relative;
  overflow: hidden;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(to top, rgba(0,0,0,.14), transparent);
}
.hero-slide .container { z-index: 2; }
.hero-slide h1,
.hero-slide h2 { line-height: 1.08; }
.hero-slide {
  background:
    linear-gradient(90deg, rgba(13, 51, 72, .96) 0%, rgba(13, 51, 72, .76) 43%, rgba(13, 51, 72, .18) 100%),
    var(--hero-image) center/cover no-repeat;
}
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next { width: 7%; }
.hero-section .carousel-indicators { bottom: 24px; }
/* Áreas temáticas */
.thematic-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(13, 51, 72, .16);
}
.thematic-image,
.thematic-overlay { position: absolute; inset: 0; }
.thematic-image {
  background: var(--thematic-image) center/cover no-repeat;
}
.thematic-overlay {
  background: linear-gradient(to top, rgba(13, 51, 72, .98) 0%, rgba(13, 51, 72, .88) 40%, rgba(13, 51, 72, .20) 100%);
}
.thematic-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(2rem, 4vw, 3rem);
  color: var(--white);
}
.thematic-content h3 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 700;
}
.thematic-content p {
  margin: 1rem 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.7;
}
.thematic-card .thematic-image { transition: transform .45s ease; }
.thematic-card:hover .thematic-image { transform: scale(1.04); }
/* Notícias */
.news-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 18px;
  color: var(--white);
  box-shadow: 0 12px 35px rgba(0,0,0,.10);
}
.news-card-featured { min-height: 585px; }
.news-card-small { min-height: 280px; }
.news-bg, .news-shade { position: absolute; inset: 0; transition: transform .45s ease; }
.news-bg {
  background: var(--news-image, linear-gradient(135deg, #0D3348, #315f71)) center/cover no-repeat;
}
.news-shade { background: linear-gradient(to top, rgba(8, 34, 48, .97), rgba(8, 34, 48, .10) 72%); }
.news-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.7rem;
}
.news-card-featured .news-content { padding: 2.25rem; }
.news-content h3 { margin: .45rem 0 .7rem; font-weight: 700; }
.news-card-featured h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.news-card-small h3 { font-size: 1.25rem; }
.news-content p { margin-bottom: .8rem; color: rgba(255,255,255,.82); }
.news-date { font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
.news-card:hover .news-bg { transform: scale(1.045); }
/* Publicações */
.publication-card {
  overflow: hidden;
  border: 1px solid #dfe7e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 51, 72, .08);
}
.publication-cover {
  min-height: 280px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: .95;
  letter-spacing: .04em;
}
.cover-1 {
  background:
    linear-gradient(145deg, rgba(13,51,72,.18), rgba(13,51,72,.78)),
    url('https://images.unsplash.com/photo-1532619675605-1ede6c2ed2b0?auto=format&fit=crop&w=700&q=80') center/cover no-repeat;
}
.cover-2 {
  background:
    linear-gradient(145deg, rgba(36,86,111,.18), rgba(13,51,72,.82)),
    url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?auto=format&fit=crop&w=700&q=80') center/cover no-repeat;
}
.publication-type {
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* Footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,.78); }
.site-footer h2 { color: #fff; letter-spacing: .03em; }
.footer-site-name { font-size: 1.5rem; max-width: 530px; font-weight:bold }
.footer-links li + li { margin-top: .55rem; }
.footer-links a { color: rgba(255,255,255,.76); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); background: var(--primary-dark); padding:5px; }

.footer-sus-logo{
  height: 120px;
}
@media (max-width: 1199.98px) {
  .site-title { max-width: 250px; font-size: .78rem; }
  .site-header .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; }
}
@media (max-width: 991.98px) {
  :root { --header-height: 74px; }
  .site-header .navbar-collapse { padding: 1rem 0 .5rem; }
  .hero-section,
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item,
  .hero-slide { min-height: 560px; }
  .news-card-featured,
  .news-card-small { min-height: 390px; }
}
@media (max-width: 767.98px) {
  .section-space { padding: 32px 0; }
  .hero-section,
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item,
  .hero-slide { min-height: 540px; }
  .hero-slide { background-position: 62% center; }
  .hero-section .carousel-control-prev,
  .hero-section .carousel-control-next { display: none; }
  .thematic-card { min-height: 470px; }
  .publication-cover { min-height: 220px; }
}
/* Ajustes de identidade visual - paleta complementar */
:root {
  --accent-teal: #1597A5;
  --accent-green: #53A878;
  --accent-yellow: #F2B84B;
  --accent-coral: #E76F61;
}
/* Bordas cromaticas no menu e no rodape */
.site-header::after,
.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--accent-teal) 0 25%,
    var(--accent-green) 50%,
    var(--accent-yellow) 75%,
    var(--accent-coral) 100%);
}
.site-header::after { bottom: 0; }
.site-footer { position: relative; }
.site-footer::before { top: 0; }
/* Hover do menu: cada item recebe um acento da paleta */
.site-header .nav-link {
  position: relative;
  transition: color .2s ease;
}
.site-header .nav-link::after {
  content: '';
  position: absolute;
  left: .72rem;
  right: .72rem;
  bottom: .25rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.site-header .nav-item .nav-link:hover,
.site-header .nav-item .nav-link:focus { color: var(--accent-coral); }
.site-header .nav-link:hover::after,
.site-header .nav-link:focus::after { transform: scaleX(1); }
/* Destaque do carrossel e indicador ativo */
.hero-slide .section-kicker {
  color: var(--accent-yellow) !important;
}
.hero-section .carousel-indicators [data-bs-target] {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255,255,255,.55);
  opacity: 1;
}
.hero-section .carousel-indicators .active { background-color: var(--accent-yellow); }
/* Noticias: datas coloridas, imagem mais viva e acao compacta */
.news-shade {
  background: linear-gradient(to top, rgba(8, 34, 48, .92) 0%, rgba(8, 34, 48, .48) 46%, rgba(8, 34, 48, .04) 78%);
}
.news-date { color: var(--accent-yellow); }
.news-arrow {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: .4rem;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.news-arrow:hover,
.news-arrow:focus {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
  color: #fff;
  transform: translateX(3px);
}
.news-card-small .news-content { padding: 1.55rem 1.7rem; }
.news-card-small h3 { margin-bottom: .6rem; }
/* Publicacoes: categorias e borda da imagem com acentos */
.publication-accent-teal .publication-type { color: var(--accent-teal); }
.publication-accent-coral .publication-type { color: var(--accent-coral); }
.publication-cover { border-bottom: 5px solid var(--accent-yellow); }
.cover-2 { border-bottom-color: var(--accent-green); }
/* Footer com menu a direita */
.footer-links-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .7rem 1.25rem;
}
.footer-links-inline li + li { margin-top: 0; }
.footer-links a:hover { color: var(--accent-yellow); }

@media (max-width: 991.98px) {
  .footer-links-inline { justify-content: flex-start; }
  .site-footer .text-lg-end { text-align: left !important; }
}
/* Grupos de Trabalho */
.working-groups-section { background: #fff; }
.working-groups-panel {
  overflow: hidden;
  border: 1px solid #dfe7e9;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(13, 51, 72, .08);
}
.working-groups-image {
  min-height: 460px;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 51, 72, .10), rgba(21, 151, 165, .12));
  border-bottom: 5px solid var(--accent-green);
}
.working-groups-image.has-background-image {
  background:
    linear-gradient(135deg, rgba(13, 51, 72, .10), rgba(21, 151, 165, .12)),
    var(--working-groups-image) center/cover no-repeat;
}
.working-groups-content { padding: clamp(2rem, 5vw, 4rem); }
.working-groups-content h2 { margin: .35rem 0 1rem; }
.working-groups-content p { line-height: 1.75; }
.btn-accent-teal,
.btn-accent-coral {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  font-weight: 700;
}
.btn-accent-teal {
  --bs-btn-bg: var(--accent-teal);
  --bs-btn-border-color: var(--accent-teal);
  --bs-btn-hover-bg: #117f8a;
  --bs-btn-hover-border-color: #117f8a;
}
.btn-accent-coral {
  --bs-btn-bg: var(--accent-coral);
  --bs-btn-border-color: var(--accent-coral);
  --bs-btn-hover-bg: #cf5f53;
  --bs-btn-hover-border-color: #cf5f53;
}

/* Eventos */
.events-section { background: #f7f9fa; }
.events-intro {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}
.events-intro p { color: #5d6b72; line-height: 1.75; }
.event-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid #dfe7e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 51, 72, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(13, 51, 72, .13);
}
.event-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--event-accent, var(--accent-teal));
}
.event-accent-teal { --event-accent: var(--accent-teal); }
.event-accent-yellow { --event-accent: var(--accent-yellow); }
.event-accent-coral { --event-accent: var(--accent-coral); }
.event-date {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: 1.6rem 1.6rem .5rem 1.85rem;
  color: var(--primary);
}
.event-date strong { font-size: 2.5rem; line-height: 1; }
.event-date span { color: var(--event-accent); font-size: .78rem; font-weight: 800; letter-spacing: .09em; }
.event-body { padding: .6rem 1.6rem 1.7rem 1.85rem; }
.event-format {
  color: var(--event-accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.event-body h3 { margin: .65rem 0 .8rem; font-size: 1.16rem; line-height: 1.35; }
.event-body p { color: #6c757d; font-size: .9rem; }
.event-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: .35rem;
  border: 1px solid var(--event-accent);
  border-radius: 50%;
  color: var(--event-accent);
  font-size: 1.2rem;
}
.event-link:hover { background: var(--event-accent); color: #fff; }

/* Parceiros */
.partners-section { background: #fff; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1rem;
}
.partner-logo {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid #dfe7e9;
  border-radius: 16px;
  background: #fff;
  color: #718087;
  text-align: center;
  font-weight: 800;
  line-height: 1.05;
  transition: color .2s ease, border-color .2s ease, transform .2s ease, filter .2s ease;
}
.partner-logo:hover { color: var(--accent-teal); border-color: var(--accent-teal); }
.partner-logo:hover { transform: translateY(-3px); filter: grayscale(0); }

@media (max-width: 991.98px) {
  .working-groups-image { min-height: 360px; }
  .partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-logo { min-height: 90px; }
}

/* WordPress theme integration */
.footer-bireme-logo {
  height: 60px;
  padding: 20px;
}
.footer-sus-logo {
  height: 120px;
}
.site-main {
  min-height: 40vh;
}
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Thematic area single */
.page-hero {
  background: var(--color-surface, #f5f7f8);
}
.page-hero h1 {
  max-width: 900px;
}
.page-intro {
  max-width: 820px;
  margin-bottom: 0;
}
.thematic-area-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.thematic-area-single .entry-content {
  max-width: 900px;
}


/* Event details */
.events-empty,
.event-info-card {
  padding: 1.75rem;
  border: 1px solid #dfe7e9;
  border-radius: 18px;
  background: #fff;
}
.event-info-card {
  position: sticky;
  top: 110px;
  box-shadow: 0 10px 28px rgba(13, 51, 72, .07);
}
.event-info-card p {
  margin-bottom: 1.15rem;
  color: #5d6b72;
}
.event-info-card strong { color: var(--primary); }
.event-featured-image img { width: 100%; height: auto; }

/* Publications */
.publication-card {
  overflow: hidden;
  border: 1px solid #dfe7e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 51, 72, .07);
}
.publication-cover {
  min-height: 260px;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 51, 72, .12), rgba(21, 151, 165, .16));
  border-bottom: 5px solid var(--accent-yellow);
}
.publication-cover.has-background-image {
  background:
    linear-gradient(135deg, rgba(13, 51, 72, .08), rgba(21, 151, 165, .08)),
    var(--publication-cover-image) center/cover no-repeat;
}
.publication-type {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.publications-empty,
.publication-info-card {
  padding: 1.75rem;
  border: 1px solid #dfe7e9;
  border-radius: 18px;
  background: #fff;
}
.publication-info-card {
  position: sticky;
  top: 110px;
  box-shadow: 0 10px 28px rgba(13, 51, 72, .07);
}
.publication-info-card p {
  margin-bottom: 1.15rem;
  color: #5d6b72;
}
.publication-info-card strong { color: var(--primary); }
.publication-featured-image img { width: 100%; height: auto; }

@media (max-width: 575.98px) {
  .publication-cover { min-height: 230px; }
}

/* Thematic area related content */
.thematic-related-section {
  border-top: 1px solid #e6ecef;
}
.thematic-related-section:nth-of-type(even) {
  background: #f7f9fa;
}
.related-content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid #dfe7e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 51, 72, .06);
}
.related-content-card h3 {
  margin-bottom: .8rem;
  line-height: 1.35;
}
.related-content-card h3 a {
  color: var(--primary);
  text-decoration: none;
}
.related-content-card h3 a:hover {
  color: var(--accent-teal);
}
.related-content-card p {
  color: #5d6b72;
}
.related-content-meta {
  margin-bottom: .65rem;
  color: var(--accent-teal) !important;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.related-content-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: auto;
  border: 1px solid var(--accent-teal);
  border-radius: 50%;
  color: var(--accent-teal);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.related-content-link:hover {
  background: var(--accent-teal);
  color: #fff;
}
.related-event-card {
  border-top: 4px solid var(--accent-yellow);
}
.related-publication-card {
  border-left: 4px solid var(--accent-coral);
}

/* PrePrint and experience reports: two independent background panels. */
.preprint-section { padding: clamp(2rem, 4vw, 3rem) 0; background: #fff; }
.preprint-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 360px;
  height: 100%;
  padding: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(13, 51, 72, .96), rgba(13, 51, 72, .55)),
    var(--preprint-image) center/cover no-repeat,
    var(--primary);
  color: #fff;
}
.preprint-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .14));
  pointer-events: none;
}
.preprint-content { position: relative; z-index: 1; max-width: 640px; }
.preprint-content h2 { color: #fff; margin-bottom: 1rem; }
.preprint-description { color: rgba(255, 255, 255, .9); font-size: 1rem; line-height: 1.75; }
.preprint-description > :last-child { margin-bottom: 0; }
@media (max-width: 767.98px) {
  .preprint-panel { min-height: 320px; background-position: center; }
}
