

.parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  overflow: hidden;
}

.parallax-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(0);
  z-index: -1;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
}

section.main {
  position: relative;
  width: 100%;
  height: 75vh;
  padding: 120px 80px 80px 0;
  overflow: hidden;
  min-height: 600px;
}

section.main .section-content {
  z-index: 5;
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
}

section.main .texts {
  background: linear-gradient(180deg, rgba(31, 45, 61, 0.80) 0%, rgba(83, 120, 163, 0.80) 100%);
  width: 760px;
  padding: 32px 80px 40px 80px;
  height: min-content;
  z-index: 1;
}

section.main h1 {
  color: white;
  margin: 24px 0 48px;
}

section.main h2 b {
  color: var(--main-soft);
}

section.main button {
  padding: 20px 32px;
  background: var(--secondary);
  color: #FFF;
  font-family: Montserrat;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

section.main button:hover,
section.main button:focus {
  background: var(--main);
  color: #FFF;
  border-color: var(--main);
  box-shadow: 0 4px 18px 0 rgba(31, 45, 61, 0.08);
}


section.main .composition {
  margin: auto auto auto -60px;
  height: 100%;
  position: relative;
  z-index: 0;
}

section.main .composition img {
  height: 100%;
}

section.main .composition .border, section.main .composition .border-2 {
  height: 100%;
  width: 100%;
  border: solid var(--secondary) 1px;
  left: 16;
  position: absolute;
}

section.main .composition .border {
  top: 16px;
}

section.main .composition .border-2 {
  display: none;
  top: 32px;
}

@media screen and (max-width: 1200px) {
  section.main .texts {
    width: 700px;
  }

  section.main h1 {
    font-size: 32px;
  }

  section.main h2 {
    font-size: 24px;
  }

  section.main button {
    padding: 16px 24px;
    font-size: 16px;
  }
}

@media screen and (max-width: 750px) {
  section.main {
    padding: 80px 0 80px 0;
  }

  section.main .texts {
    height: 100%;
    padding: 80px 40px;
    max-width: 100%;
    background: linear-gradient(
      180deg, #2B3E53 0%, rgba(83, 120, 163, 0.40) 100%),
      linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%);
  }

  section.main h1 {
    font-size: 28px;
    margin: 20px 0 80px;
  }

  section.main button {
    background: var(--main);
  }

  section.main .composition {
    width: 100%;
    margin: auto auto auto -100%;
  }

  section.main .composition img {
    width: 100%;
  }

  section.main .composition .border {
    z-index: 2;
    right: 16;
    left: unset;
  }

  section.main .composition .border-2 {
    display: block;
    z-index: 2;
    right: 32;
    left: unset;
  }
}

@media screen and (max-width: 400px) {
  section.main .texts {
    padding: 80px 20px;
  }
}

section.home-team {
  padding: 80px;
  background: var(--blue-gradient, linear-gradient(180deg, #365C88 0%, #1F2D3D 100%));
  color: white;
}

section.home-team .section-content {
  display: flex;
  gap: 40px;
  position: relative;
}

section.home-team .main-img {
  width: 40%;
  max-width: 400px;
  aspect-ratio: 3/4;
  z-index: 5;
}

section.home-team .texts {
  max-width: 700px;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

section.home-team h2 {
  margin-bottom: 40px;
}

section.home-team h2 b {
  color: #FF8C71;
}

section.home-team p:first-of-type {
  margin-bottom: 20px;
}

section.home-team a {
  padding: 16px 24px;
  background: #3E6DA2;
  color: white;
  font-family: Montserrat;
  font-size: 18px;
  font-weight: 700;
  margin-top: 60px;
  cursor: pointer;
  margin-top: 60px;
  max-width: 262px;
}

section.home-team a{
  color: white;
}


section.home-team a:hover,
section.home-team a:focus{
  background: var(--main);
  color: #FFF;
  border-color: var(--main);
  box-shadow: 0 4px 18px 0 rgba(31, 45, 61, 0.08);
}

section.home-team .background-img {
  height:320px;
}

@media screen and (min-width: 1400px) {
  section.home-team .section-content {
    gap: 80px;
  }
}

@media screen and (max-width: 900px) {
  section.home-team .background-img {
   display: none;
  }
  section.home-team .texts {
    max-width: 100%;
  }

  section.home-team .main-img {
    display: none;
  }
}

section.areas {
  padding: 80px;
  color: var(--secondary);
}

section.areas .section-content {
  display: flex;
  justify-content: space-between;
  gap: 80px;
}

section.areas .texts {
  max-width: 500px;
}

section.areas .title {
  margin-bottom: 24px;
}

section.areas .title img {
  height: 92px;
}

section.areas h2 {
  width: min-content;
}

section.areas .areas-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 32px;
  flex: 1;
}

section.areas .areas-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid white;
  pointer-events: none;
  z-index: 2;
}

@media screen and (max-width: 1200px) {
  section.areas .section-content {
    flex-direction: column;
  }

  section.areas .texts {
    width: 100%;
    max-width: 600px;
  }

  section.areas .title {
    display: flex;
    gap: 20px;
    align-items: center;
  }
}

@media screen and (max-width: 1000px) {
  section.areas .areas-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, auto));
    row-gap: 0;
  }
}

@media screen and (max-width: 600px) {
  section.areas .title {
    flex-wrap: wrap;
    gap: 0;
  }
}

section.posts {
  padding: 80px;
  background: #E4EBF3;
  color: var(--secondary);
}

.card-container.grid-publicacoes{   
  grid-template-columns: 1fr 1fr 1fr !important;
  max-width: 1000px;
  margin: 0 auto;
}

section.posts h2 {
  margin-bottom: 16px;
  text-align: center;
}

section.posts .text {
  margin-bottom: 40px;
  text-align: center;
}

.btn-posts-container{
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 40px;
}

.btn-posts{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 52px;
  border: 2px solid #1F2D3D;
  background: transparent;
  color: #1F2D3D;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  border-radius: 2px;
  transition: background 0.14s, color 0.14s;
  text-align: center;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
}

.btn-posts:hover, .btn-posts:focus {
  background: #1F2D3D;
  color: #fff;
}


#carousel.active {
      width: 100%;
    max-width: fit-content;
    display: flex
;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
}


#carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--secondary-light);
  color: white;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  display: none;
}

#carousel.active .arrow-left {
  left: 0;
}
#carousel.active .arrow-right {
  right: 0;
}

#carousel.active .card-container {
  display: flex
;
    width: 100%;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    max-width: 350px;
}

#carousel.active .card-container::-webkit-scrollbar {
  display: none;
}

#carousel.active .post-card {
  flex: 0 0 100%;
}

#carousel.active .carousel-arrow.hidden {
  display: none;
}

#carousel.active .carousel-dots {
  text-align: center;
  margin-top: 12px;
}

#carousel.active .carousel-dots .dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#carousel.active .carousel-dots .dot.active {
  background-color: var(--secondary-light);
}

@media screen and (max-width: 1000px) {
  #carousel.active .carousel-arrow {
    display: block;
  }

  #carousel.active .card-container.grid-publicacoes {
    gap: 0;
}
}

@media screen and (max-width: 600px) {
  section.home-team, section.areas {
    padding: 60px 40px;
  }

  section.posts {
    padding: 60px 20px;
  }

  section.posts h2 {
  margin-bottom: 16px;
  text-align:justify;
}

  section.posts .text {
    margin-bottom: 40px;
    text-align:justify;
  }

  #carousel.active {
    padding: 0 40px;
}

  #carousel.active .carousel-arrow {
      padding: 6px;
  }
}

@media screen and (max-width: 400px) {
  section.home-team, section.areas {
    padding: 60px 20px;
  }
}