* {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body,
html {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.mainsec {
  position: relative;
  background-image: url(https://3.bp.blogspot.com/-WQD7RKS9qyc/XMLgasl71aI/AAAAAAAAaIs/kkav_2T0FqEsyNvsvyyBns3gHvcqK_N8QCLcBGAs/s1600/Pra%25C3%25A7a-da-Matriz-Nilo-Viana-Diniz-Foto-Marcos-Rodrigues.jpg);
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.mainsec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.mainsec > * {
  position: relative;
  z-index: 1;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-wrap: break-word;
  margin-left: -1.75rem;
}

.card,
.footer-content {
  width: 100%;
  padding: 2rem;
}

.card {
  background: linear-gradient(to right, #147b23, #10641c);
  color: #f8f9fa;
  box-shadow: 0 4px 15px rgba(16, 100, 28, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  border-radius: 2rem 2rem 0rem 0rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.cardH1{
    width: 100%;
    align-items: start;
}

.footer-content {
  background-color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 0rem 0rem 2rem 2rem;
  gap: 1rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.imgs {
  width: 100px;
  height: auto;
  border-radius: 0.5rem;
  object-fit: contain;
}

img,
.imgs {
  max-width: 100%;
  height: auto;
  display: block;
}

h1 {
  margin: 0;
}

h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: normal;
}

p {
  text-align: justify;
}

p.copyright {
  font-size: 0.9rem;
  margin: 0;
}

a {
  text-decoration: none;
  color: #f8f9fa;
}

.cardlink {
  width: 20%;
  padding: 1rem;
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 0.2rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cardlink:hover {
   transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(20, 123, 35, 0.9); 
}

.alink {
  color: #147b23;
  transition: color 0.3s ease;
  font-weight: 600;
}

.alink:hover {
  color: #20c226;
}

@media (max-width: 600px) {
  .content {
    width: 90%;
    padding: 1rem;
  }

  .card,
  .footer-content {
    padding: 1rem;
  }

  .imgs {
    width: 60px;
  }

  p {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .footer-logos {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 900px) and (min-width: 601px) {
  .content {
    width: 80%;
  }

  .imgs {
    width: 80px;
  }

  h1 {
    font-size: 1.75rem;
  }
}
