/* general styles */

body {
  font-family: "Raleway", sans-serif !important;
}

/* Final override: garantir que fullPage n+�o force 100vh na se+�+�o da galeria */
#fullpage .posts-expand-gallery-section .fp-tableCell,
.fp-section.posts-expand-gallery-section .fp-tableCell,
.posts-expand-gallery-section .fp-tableCell {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: inherit !important;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none !important;
}

h1 {
  color: #ff6363;
  font-weight: bold;
}

p {
  font-size: 20px;
  color: #484848;
}

.section {
  text-align: center;
}

.skillbar {
  cursor: pointer;
}

.hide {
  display: none;
}

.display {
  display: block;
}

/* flash alert styles */

.flash-container {
  width: 100%;
  position: fixed;
  z-index: 700;
  padding-top: 20px;
  font-weight: bold;
}

.alert {
  text-align: center !important;
  width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: #211809 !important;
}

/* Nav Screen */

#fp-nav ul li .fp-tooltip {
  color: #5f5f5f !important;
}

/* Position dos pontinhos laterais do fullPage (mais abaixo para n+�o sobrepor as setas) */
#fp-nav {
  top: 84% !important;
}

@media (max-width: 768px) {
  #fp-nav {
    top: 94% !important;
    right: 0.6rem !important;
  }
}

/* Mostrar apenas duas bolinhas no indicador do fullPage
   1 = faixa do topo (sistema solar) + galeria
   2 = not+�cias recentes (postagem) */
#fp-nav ul li:nth-child(n+3) {
  display: none !important;
}

/* Garantir que tooltip/labels das bolinhas ocultas n+�o apare+�am */
#fp-nav ul li:nth-child(n+3) .fp-tooltip {
  display: none !important;
}

/* Ajuste de posicionamento: manter os pontos vis+�veis mais abaixo para n+�o sobrepor a galeria */
#fp-nav {
  top: auto !important;
  bottom: 6% !important; /* aproxima das not+�cias abaixo da galeria */
  right: 1rem !important;
  transform: none !important;
}

/* Em telas pequenas, baixar ainda mais para evitar sobreposi+�+�o */
@media (max-width: 768px) {
  #fp-nav {
    bottom: 3rem !important;
    right: 0.6rem !important;
  }
}

/* main header section */



/* bouncing arrow */

.fa-chevron-down {
  color: #ff6363 !important;
  bottom: 10px;
  margin-left: -30px;
  cursor: pointer;
  position: absolute;
  opacity: 0;
  -webkit-transition: 1.2s ease;
  transition: 1.2s ease;
}

/* Scroll down indicator (bouncing) */

@-webkit-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateX(0);
  }
  40% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@-moz-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -ms-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -ms-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -ms-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

.bounce {
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

/* about section */

/* article/post layout */

.article-section {
  font-family: Georgia, serif;
  color: #222;
  font-size: 20px;
  text-align: left;
}

.article-section .main-article {
  max-width: 800px;
  margin: 0 auto;
}

.article-section .main-article h1 {
  margin-top: 0.25rem; /* aproximar o t+�tulo da byline/pseudo-t+�tulo */
}

.article-section h1 {
  font-weight: normal;
  font-size: 3em;
  text-transform: capitalize;
  color: #444;
}

.article-section h2 {
  font-weight: normal;
  font-size: 2em;
  color: #444;
}

.article-section h3 {
  font-weight: normal;
  font-size: 2em;
  color: #444;
}

.article-section p {
  line-height: 1.5em;
  color: #222;
  font-size: 1em;
}

.article-section .lead {
  font-style: italic;
  font-size: 1.5em;
  color: #888;
  line-height: 1.3em;
  margin: 1.5em 0;
}

.article-section .byline {
  font-size: 0.7em;
  margin-bottom: 0.75rem;
  font-family: "Trebuchet MS", Trebuchet MS, sans-serif;
  text-transform: uppercase;
  line-height: 1.7;
}

.article-section .byline a {
  color: #999;
}

.article-section .byline a:hover {
  color: #777;
}

.article-section .section-heading {
  border-bottom: 1px solid;
  padding-bottom: 10px;
  margin: 30px 0;
}


.article-section .profile-pic {
  border-radius: 50%;
  margin-right: 20px;
  padding: 5px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
}

.article-section .author-bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f9f9f9;
  padding: 15px 10px;
  border: 1px solid #eee;
  margin: 60px 0 80px;
  font-family: "Trebuchet MS", Trebuchet MS, sans-serif;
  text-align: center;
}

.article-section .author-bio-text {
  color: #777;
  flex: 2;
  font-size: 0.8em;
}

.article-section .author-bio-text p {
  padding: 0 0 10px;
  margin: 0;
}

.article-section .author-bio-name {
  font-weight: bold;
}

.article-section .social-icons {
  display: flex;
  font-size: 1.5em;
}

.article-section .social-icons p {
  padding: 10px 20px;
  margin: 0;
}

.article-section .social-icons a {
  color: #999;
}

.article-section .social-icons a:hover {
  color: #777;
}

.article-section .discussion {
  margin: 60px 0 80px;
  padding: 24px 22px 28px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fcfcfc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.article-section .discussion .section-heading {
  margin-top: 0;
  margin-bottom: 16px;
}

.article-section .discussion__lead {
  margin: 0 0 20px;
  color: #666;
  font-size: 0.95em;
  line-height: 1.6;
  max-width: 72ch;
}

.article-section .discussion__widget {
  width: 100%;
  overflow-x: auto;
}

.article-section .discussion__widget iframe {
  max-width: 100%;
}

@media screen and (min-width: 475px) {

  .article-section .profile-pic {
    margin-bottom: 0;
  }

  .article-section .author-bio {
    flex-direction: row;
    text-align: left;
  }

  .article-section .discussion {
    padding: 30px 32px 34px;
  }
}

@media screen and (max-width: 475px) {
  .article-section .main-article h1 {
    font-size: 2em;
  }

  .article-section .main-article h2 {
    font-size: 1.2em;
  }
}

/* Skill bars */

.container-skillbar {
  width: 100%;
  padding-top: 30px;
  padding-right: 2%;
  padding-left: 2%;
  height: auto;
  overflow: none;
}
.skillbar {
  position: relative;
  display: block;
  margin-bottom: 15px;
  width: 100%;
  background: #efefef;
  height: 30px;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  -webkit-transition: 0.4s linear;
  -moz-transition: 0.4s linear;
  -ms-transition: 0.4s linear;
  -o-transition: 0.4s linear;
  transition: 0.4s linear;
  -webkit-transition-property: width, background-color;
  -moz-transition-property: width, background-color;
  -ms-transition-property: width, background-color;
  -o-transition-property: width, background-color;
  transition-property: width, background-color;
}

.skillbar-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  background: #6adcfa;
  -webkit-border-top-left-radius: 3px;
  -webkit-border-bottom-left-radius: 4px;
  -moz-border-radius-topleft: 3px;
  -moz-border-radius-bottomleft: 3px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.skillbar-title span {
  display: block;
  background: rgba(0, 0, 0, 0.15);
  padding: 0 20px;
  height: 30px;
  line-height: 30px;
  -webkit-border-top-left-radius: 3px;
  -webkit-border-bottom-left-radius: 3px;
  -moz-border-radius-topleft: 3px;
  -moz-border-radius-bottomleft: 3px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.skillbar-bar {
  height: 30px;
  width: 0px;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
}

.skill-bar-percent {
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 11px;
  height: 30px;
  line-height: 30px;
  color: #ffffff;
  color: rgba(0, 0, 0, 0.5);
}

/* portfolio section */

.content {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.content-slide {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.content-slide img {
  width: 70%;
}

.fp-controlArrow.fp-next {
  border-color: transparent transparent transparent #ff6363 !important;
  right: 45px !important;
}

.fp-controlArrow.fp-prev {
  border-color: transparent #ff6363 transparent transparent !important;
  left: 45px !important;
}

#fp-nav ul li a span,
.fp-slidesNav ul li a span {
  background: rgba(0, 0, 0, 0.62) !important;
}

/* contact us styles */

.fa-paper-plane {
  color: #484848;
}

/* paper plane shake on hover */

.plane-animated {
  animation-duration: 6s;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.fa-paper-plane:hover {
  /* Toggle our animation play state to running when we are hovering over our sticker */
  animation-play-state: running;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}
.shake {
  animation-name: shake;
}

/* input field styles */

.contact-form {
  padding: 0px 15px 0px 15px;
}

.form-control {
  border: 2px solid rgba(0, 0, 0, 0.27);
  width: 100%;
  max-width: 100%;
  height: 3em;
  font-size: 16px;
  padding: 1em;
  margin: 0.5em 0 2em 0;
  font-weight: bold;
}

textarea {
  min-height: 10em;
}

label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 500;
}

#submit {
  outline: none;
  padding: 12px;
  min-width: 200px;
  border-radius: 2px;
  border: 2px solid #ff6363;
  text-align: center;
  font-size: 1em;
  color: #ff6363;
  background-color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

#submit:hover {
  background-color: #ff6363;
  color: white;
  -webkit-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

/* smaller resolution styles */

@media (min-width: 100px) and (max-width: 500px) {
  .fa-bars {
    display: block !important;
  }

  .header-links {
    display: none;
  }
}

/* mobile styles */

@media (min-width: 100px) and (max-width: 400px) {
  .content {
    max-width: 300px;
  }

  .aboutme h1 {
    font-size: 28px;
  }
}

/* loading screen animation */

.spinner {
  position: fixed;
  width: 100%;
  height: 100%;
  padding: 25%;
  background-color: #2f2f2f;
  text-align: center;
  font-size: 10px;
  z-index: 1000;
}

.spinner > div {
  background-color: #ff6363;
  height: 100%;
  width: 6px;
  display: inline-block;

  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.spinner .rect3 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

.spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.spinner .rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4);
  }
  20% {
    -webkit-transform: scaleY(1);
  }
}

@keyframes sk-stretchdelay {
  0%,
  40%,
  100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(1);
    -webkit-transform: scaleY(1);
  }
}

.blinking-cursor {
  font-weight: 500;
  margin-left: 4px;
  font-size: 20px;
  color: white !important;
  -webkit-animation: 1s blink step-end infinite;
  -moz-animation: 1s blink step-end infinite;
  -ms-animation: 1s blink step-end infinite;
  -o-animation: 1s blink step-end infinite;
  animation: 1s blink step-end infinite;
}

@keyframes blink {
  from,
  to {
    color: transparent;
  }
  50% {
    color: white;
  }
}

@-moz-keyframes blink {
  from,
  to {
    color: transparent;
  }
  50% {
    color: white;
  }
}

@-webkit-keyframes blink {
  from,
  to {
    color: transparent;
  }
  50% {
    color: white;
  }
}

@-ms-keyframes blink {
  from,
  to {
    color: transparent;
  }
  50% {
    color: white;
  }
}

@-o-keyframes blink {
  from,
  to {
    color: transparent;
  }
  50% {
    color: white;
  }
}

.success {
  padding: 1em;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #000000;
  background-color: #fdfdfd;
  border: 1px solid #ffffff;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.error {
  padding: 1em;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #b94a48;
  background-color: #f2dede;
  border: 1px solid rgba(185, 74, 72, 0.3);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

/* Nota discreta abaixo do widget Giscus */
.giscus-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #777;
}

.giscus-note a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.giscus-note a:hover {
  color: #000;
}

/* ===== HOMEPAGE EDITORIAL STYLES ===== */

/* Menu de navega+�+�o */
.home-nav {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
}

.nav-link {
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: #ff6363;
}

/* Se+�+�o de destaque */
.featured-section {
  padding: 4rem 2rem;
  background: #fafafa;
}

.featured-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 2rem;
  text-align: center;
  font-family: Georgia, serif;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.featured-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.featured-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.featured-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card-content {
  padding: 1.5rem;
}

.featured-card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
  line-height: 1.4;
}

.featured-card-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

.featured-card-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.featured-card-link {
  color: #ff6363;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.featured-card-link:hover {
  color: #333;
}

/* Se+�+�o: Postagem mais recente */
.latest-section {
  padding: 4rem 2rem;
  background: #fff;
}

.latest-container {
  max-width: 1200px;
  margin: 0 auto;
}

.latest-post {
  background: #fcfcfc;
  padding: 2rem;
  border-left: 4px solid #ff6363;
  border-radius: 4px;
}

.latest-post-header {
  margin-bottom: 1.5rem;
}

.latest-post-byline {
  font-size: 0.9rem;
  color: #999;
  font-family: "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.author-name {
  color: #333;
  font-weight: 600;
}

.latest-post-title {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  font-family: Georgia, serif;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.latest-post-lead {
  font-size: 1.2rem;
  color: #888;
  font-style: italic;
  line-height: 1.5;
}

.latest-post-excerpt {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  font-family: Georgia, serif;
  margin-bottom: 0.8rem; /* espa+�o reduzido, link logo abaixo */
  display: -webkit-box; /* truncar por linhas (WebKit) */
  display: box;
  line-clamp: 6; /* padr+�o n+�o prefixado (compatibilidade) */
  -webkit-line-clamp: 6; /* mostrar at+� ~6 linhas do preview */
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

/* gradiente no final do trecho para indicar conte+�do oculto */
.latest-post-excerpt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
}

.latest-post-link {
  color: #ff6363;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 0.5rem; /* manter o link pr+�ximo ao preview truncado */
}

@media (max-width: 768px) {
  .latest-post-excerpt {
    line-clamp: 4; /* padr+�o n+�o prefixado (compatibilidade) */
    -webkit-line-clamp: 4; /* reduzir linhas em telas pequenas */
  }
}

.latest-post-link:hover {
  color: #333;
}

/* Se+�+�o: Lista de posts recentes */
.posts-list-section {
  padding: 4rem 2rem;
  background: #fafafa;
}

.posts-list-container {
  max-width: 1200px;
  margin: 0 auto;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-list-item {
  background: #fff;
  padding: 1.5rem;
  border-left: 3px solid #e6e6e6;
  transition: border-color 0.3s ease;
}

.post-list-item:hover {
  border-left-color: #ff6363;
}

.post-list-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.post-list-date {
  font-size: 0.85rem;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-list-content {
  flex: 1;
}

.post-list-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

.post-list-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-list-title a:hover {
  color: #ff6363;
}

.post-list-author {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.post-list-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* Se+�+�o: Sobre n+�s */
.about-section {
  padding: 4rem 2rem;
  background: #fff;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-content {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  font-family: Georgia, serif;
  text-align: center;
}

/* ===== GALERIA HORIZONTAL DE POSTS NA HOMEPAGE ===== */

.posts-expand-gallery-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 0;
  height: auto;
  padding: 0;
  background: #080d14; /* fundo escuro para integrar visualmente */
  color: #efefef;
  overflow: hidden;
}

/* Override para fullPage.js: permitir que a se+�+�o da galeria tenha altura autom+�tica
   em vez de for+�ar 100vh, evitando o grande bloco vazio abaixo da faixa */
.fp-section.posts-expand-gallery-section,
#fullpage .fp-section.posts-expand-gallery-section {
  height: auto !important;
  min-height: 0 !important;
}

/* Remover espa+�amento excessivo entre galeria e se+�+�o de artigos:
   garantir que a se+�+�o de artigos tamb+�m se alinhe ao topo quando o fullPage estiver ativo */
.fp-section.article-section,
#fullpage .fp-section.article-section {
  height: auto !important;
  min-height: 0 !important;
}

#fullpage .article-section .fp-tableCell,
.fp-section.article-section .fp-tableCell,
.article-section .fp-tableCell {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: inherit !important;
}

/* Garantir que o conte+�do do artigo n+�o tenha margin-top grande */
.article-section .main-article {
  margin: 2.5rem auto 0 !important; /* adicionar espa+�o acima do artigo para afastar da galeria */
  padding-top: 0 !important;
  padding-bottom: 6rem !important; /* espa+�o em branco antes do fim da p+�gina */
}

/* Remover margens/res+�duos na galeria que possam empurrar a se+�+�o abaixo */
.posts-expand-gallery {
  margin-bottom: 0 !important;
}
.posts-expand-gallery__viewport {
  margin-bottom: 0 !important;
}

#fullpage .posts-expand-gallery-section .fp-tableCell,
.posts-expand-gallery-section .fp-tableCell {
  display: block !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: inherit !important;
}

/* fullPage.js tableCell: force gallery section content to align to top */
#fullpage .posts-expand-gallery-section .fp-tableCell {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  height: 100% !important;
  padding-top: 0 !important;
  background: inherit !important; /* garante que fullPage use o mesmo fundo escuro */
}

.posts-expand-gallery {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Georgia, serif;
  color: #efefef;
  overflow: visible;
  background: #222;
}

.posts-expand-gallery__viewport {
  position: relative;
  width: 100%;
  height: clamp(280px, 34vh, 380px); /* altura controlada da galeria */
  min-height: 0;
  overflow: hidden;
  background: #222;
}

.posts-expand-gallery__header {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.posts-expand-gallery__heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #222;
  font-family: Georgia, serif;
}

.posts-expand-gallery__description {
  margin: 0;
  color: #666;
  font-size: 0.98rem;
  line-height: 1.6;
}

.posts-expand-gallery__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
  height: 100%;
  overflow-x: auto; /* permitir touch-drag e arraste, bloquear roda via JS */
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  border-radius: 0;
  background: #000;
  margin-top: 0; /* garantir sem deslocamento extra */
}

.posts-expand-gallery__track::-webkit-scrollbar {
  height: 0; /* esconder barra no WebKit/Blink */
  display: none;
}

.posts-expand-gallery__item {
  position: relative;
  flex: 0 0 25%;
  min-width: 25%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(10, 10, 10, .65), rgba(10, 10, 10, .65));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 0;
  scroll-snap-align: start;
  filter: grayscale(8%) brightness(0.82);
  border: 0;
  outline: 0;
  box-shadow: none;
  transition:
    flex-grow 0.8s ease-out,
    filter 0.8s ease-out,
    transform 0.8s ease-out;
}

.posts-expand-gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.54);
  z-index: 1;
  transition: background 0.8s ease-out;
}

.posts-expand-gallery__track:hover .posts-expand-gallery__item {
  filter: grayscale(10%) brightness(0.66);
}

.posts-expand-gallery__track:hover .posts-expand-gallery__item::before {
  background: rgba(10, 10, 10, 0.66);
}

.posts-expand-gallery__track:hover .posts-expand-gallery__item:hover,
.posts-expand-gallery__track:hover .posts-expand-gallery__item:focus-visible {
  flex-grow: 1.55;
  filter: grayscale(0%) brightness(1.03);
  transform: translateY(-2px) scale(1.015);
  border: 0;
  outline: none;
  box-shadow: none;
}

.posts-expand-gallery__track:hover .posts-expand-gallery__item:hover::before,
.posts-expand-gallery__track:hover .posts-expand-gallery__item:focus-visible::before {
  background: rgba(10, 10, 10, 0.34);
}

.posts-expand-gallery__chip {
  display: none !important;
}

.posts-expand-gallery__info {
  position: relative;
  z-index: 2;
  width: 82%;
  max-width: 34rem;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.posts-expand-gallery__title {
  display: block;
  width: 100%;
  margin: 0;
  min-height: 0;
  line-height: 1.15;
  color: #efefef;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.posts-expand-gallery__track:hover .posts-expand-gallery__item:hover .posts-expand-gallery__title,
.posts-expand-gallery__track:hover .posts-expand-gallery__item:focus-visible .posts-expand-gallery__title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.posts-expand-gallery__excerpt {
  display: block;
  width: 92%;
  margin: 0.9rem auto 0;
  color: #bdbdbd;
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  font-size: 0.95rem;
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.posts-expand-gallery__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1.35rem auto 0;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #777;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(45deg);
  transition:
    transform 0.8s ease-out,
    background-color 0.8s ease-out,
    color 0.8s ease-out,
    box-shadow 0.8s ease-out;
}

.posts-expand-gallery__track:hover .posts-expand-gallery__item:hover .posts-expand-gallery__button,
.posts-expand-gallery__track:hover .posts-expand-gallery__item:focus-visible .posts-expand-gallery__button {
  color: #ffffff;
  background: #7b00b5;
  transform: rotate(0deg);
  box-shadow: 0 0 20px rgba(123, 0, 181, 0.45);
}

.posts-expand-gallery__button:hover {
  background: rgba(0, 160, 160, 0.9);
}

.posts-expand-gallery__footer {
  display: none !important; /* remover visual do rodap+� (t+�tulo movido para a se+�+�o abaixo) */
  margin: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}

.posts-expand-gallery__footer .posts-expand-gallery__link {
  display: none; /* esconder link original mantendo HTML */
}

/* T+�tulo que fica no in+�cio da se+�+�o de artigos (abaixo da galeria)
   Aplicado dentro de `.main-article` para garantir alinhamento com o conte+�do */
.show-noticias .article-section .main-article::before {
  content: "NOT+�CIAS RECENTES";
  display: block;
  width: 100%;
  margin: 0.6rem 0 0.35rem; /* abaixar e reduzir espa+�o entre t+�tulo e postagem */
  text-align: left; /* alinhamento +� esquerda dentro do artigo centralizado */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111;
  font-size: 1rem;
}

.posts-expand-gallery__link {
  color: #ffb8a0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.posts-expand-gallery__link:hover {
  color: #fff;
}

.posts-expand-gallery--one .posts-expand-gallery__item {
  flex: 0 0 100%;
  min-width: 100%;
}

.posts-expand-gallery--two .posts-expand-gallery__item {
  flex: 0 0 50%;
  min-width: 50%;
}

.posts-expand-gallery--three .posts-expand-gallery__item {
  flex: 0 0 33.3333%;
  min-width: 33.3333%;
}

.posts-expand-gallery--four .posts-expand-gallery__item {
  flex: 0 0 25%;
  min-width: 25%;
}

.posts-expand-gallery__track:has(.posts-expand-gallery__item:only-child) .posts-expand-gallery__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.posts-expand-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.posts-expand-gallery__arrow.is-hidden {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.posts-expand-gallery__arrow:hover {
  background: rgba(0, 0, 0, 0.78);
}

.posts-expand-gallery__arrow--prev {
  left: 0.65rem;
}

.posts-expand-gallery__arrow--next {
  right: 0.65rem;
  top: 70% !important; /* abaixa um pouco a seta direita para n+�o sobrepor o texto */
}

/* alinhar ambas as setas na mesma altura para consist+�ncia */
.posts-expand-gallery__arrow--prev {
  top: 70% !important;
}

/* Se+�+�o: Postagem Mais Recente */
.latest-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #fff;
  font-family: Georgia, serif;
  color: #222;
  text-align: left;
}

.latest-container {
  max-width: 800px;
  width: 100%;
}

.latest-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 2rem;
  text-align: center;
  font-family: Georgia, serif;
}

.latest-article {
  background: #fcfcfc;
  padding: 1.8rem;
  border-left: 4px solid #ff6363;
  border-radius: 4px;
}

.latest-header {
  margin-bottom: 1.2rem;
}

.latest-byline {
  font-size: 0.8rem;
  color: #999;
  font-family: "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.latest-author {
  color: #333;
  font-weight: 600;
}

.latest-headline {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  font-family: Georgia, serif;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.latest-lead {
  font-size: 1.2rem;
  color: #888;
  font-style: italic;
  line-height: 1.5;
}

.latest-excerpt {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin: 1.2rem 0;
  font-family: Georgia, serif;
}

.latest-read-link {
  color: #ff6363;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.latest-read-link:hover {
  color: #333;
}

/* Responsividade */
@media (max-width: 768px) {
  .posts-expand-gallery-section {
    padding: 0;
  }

  .posts-expand-gallery__viewport {
    height: clamp(280px, 36vh, 400px);
  }

  .posts-expand-gallery__heading {
    font-size: 1.6rem;
  }

  .posts-expand-gallery__track {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .posts-expand-gallery__item {
    min-width: 82vw;
    height: 100%;
    min-height: 0;
    flex: 0 0 82vw;
  }

  .posts-expand-gallery__info {
    width: min(88%, 30rem);
  }

  .posts-expand-gallery__title {
    font-size: 1.8rem;
  }

  .posts-expand-gallery__excerpt {
    font-size: 0.92rem;
  }

  .posts-expand-gallery__button {
    background: #009999;
    color: #ffffff;
    transform: rotate(0deg);
  }

  .posts-expand-gallery__item:hover .posts-expand-gallery__button,
  .posts-expand-gallery__item:focus-visible .posts-expand-gallery__button {
    background: #009999;
    transform: rotate(0deg);
  }

  .latest-title {
    font-size: 1.8rem;
  }

  .latest-headline {
    font-size: 1.5rem;
  }

  .latest-lead {
    font-size: 1.05rem;
  }
}
