/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #1a1c35 0%, #2d3561 50%, #3e4a7a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.image-container {
  position: relative;
  height: 290px;
  width: 100%;
  overflow: hidden;
}

.main-image {
  opacity: 20%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.centered {
  position: absolute;
  color: white;
  font-weight: bold;
  font-size: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.sub-centered {
  position: absolute;
  color: white;
  font-weight: bold;
  font-size: 30px;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Header */
.header {
  background: rgba(26, 28, 53, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.2rem 2%;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(78, 205, 196, 0.3);
  width: 100%;
}

.logo {
  height: 90px;
  width: auto;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* Navbar */
.navbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
}

.nav-menu li {
  position: relative;
  padding: 0 10px;
}

.nav-menu li:not(.logo):not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -5px;
  color: rgba(255, 255, 255, 0.5);
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s;
  white-space: nowrap;
}

.navbar a:hover {
  color: #64b5f6;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .navbar {
    position: static;
    transform: none;
    left: auto;
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 90px;
    flex-direction: column;
    background: rgba(26, 28, 53, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(100, 181, 246, 0.3);
    z-index: 1000;
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
    padding: 0;
  }

  .nav-menu li:not(.logo):not(:last-child)::after {
    display: none;
  }

  .nav-menu a {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
    border-radius: 8px;
    margin: 0 2rem;
    transition: all 0.3s ease;
  }

  .nav-menu a:hover {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
  }

  /* Hamburger Animation */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

.cta-button {
  background: #ff6b6b;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

#menu-blocos {
  padding: 4rem 0;
  background: rgba(26, 28, 53, 0.8);
}

.blocos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bloco {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 100px;
  background: linear-gradient(135deg, #3e4a7a 0%, #2d3561 100%);
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 181, 246, 0.2);
}

.bloco:hover {
  background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(100, 181, 246, 0.4);
  border: 1px solid rgba(100, 181, 246, 0.6);
}

/* Noticias Section */
.quadro-noticias {
  background: linear-gradient(135deg, #1a1c35 0%, #2d3561 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.noticias-title {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: white;
  position: relative;
  padding-bottom: 0rem;
  width: 100%;
}

.noticias-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px; /* Adjust this to control line length */
  height: 3px; /* Adjust this to control line thickness */
  display: block;
}

.quadro-noticias > .container {
  display: block; /* Change from flex to block */
  text-align: center; /* Center all content */
}

.noticias-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  width: 100%;
  max-width: 1400px; /* Adjust based on your container width */
  margin: 2rem auto 0 auto; /* Adjusted margin */
}

.noticia-item {
  background: rgba(62, 74, 122, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  height: 330px; /* Fixed height */
  border: 1px solid rgba(100, 181, 246, 0.2);
}

.noticia-item:hover {
  background: rgba(100, 181, 246, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(100, 181, 246, 0.3);
  border: 1px solid rgba(100, 181, 246, 0.4);
}

.noticia-imagem-container {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.noticia-imagem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.noticia-item:hover .noticia-imagem {
  transform: scale(1.05);
}

.noticia-conteudo {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.noticia-item h3 {
  color: #64b5f6;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.noticia-data {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff6b6b;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .noticias-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .noticias-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .noticias-container {
    grid-template-columns: 1fr;
  }

  .noticia-item {
    height: auto;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Social Icons */
.social-icons {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.social-icons img {
  /* width: 40px; */
  height: 40px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.3);
}

.leia-mais {
  display: inline-block;
  color: #64b5f6;
  text-decoration: none;
  font-weight: bold;
  margin-top: 0.5rem;
}

/* FAQ Section */
.faq-section {
  background: linear-gradient(135deg, #1a1c35 0%, #2d3561 100%);
  color: white;
  padding: 4rem 0;
}

.faq-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: white;
  text-align: center;
}

.faq-container {
  display: grid;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-category {
  background: rgba(62, 74, 122, 0.3);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(100, 181, 246, 0.2);
  backdrop-filter: blur(10px);
}

.faq-category-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #64b5f6;
  text-align: center;
  border-bottom: 2px solid rgba(100, 181, 246, 0.3);
  padding-bottom: 1rem;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0;
  color: white;
  cursor: pointer;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(100, 181, 246, 0.1);
  border-radius: 8px;
  border-left: 4px solid #64b5f6;
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
}

.faq-question::before {
  content: "▶";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: #64b5f6;
  font-size: 0.8em;
}

.faq-question.active::before {
  transform: translateY(-50%) rotate(90deg);
}

.faq-question:hover {
  background: rgba(100, 181, 246, 0.2);
  transform: translateX(5px);
}

.faq-question.active {
  background: rgba(100, 181, 246, 0.2);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.faq-answer {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
}

.faq-answer.active {
  max-height: 500px;
  padding: 1rem 1.5rem;
  opacity: 1;
}

.faq-link {
  color: #64b5f6;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.faq-link:hover {
  color: #42a5f5;
  border-bottom: 1px solid #42a5f5;
}

/* Volunteer Section */
.volunteer-section {
  background: linear-gradient(135deg, #1a1c35 0%, #2d3561 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.volunteer-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  flex-direction: column;
}

.volunteer-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: white;
  text-align: center;
}

.volunteer-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.volunteer-commitment {
  font-size: 1.1rem;
  color: #64b5f6;
  font-weight: 500;
  margin-bottom: 3rem;
  text-align: center;
}

.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.volunteer-card {
  background: rgba(62, 74, 122, 0.4);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(100, 181, 246, 0.2);
  backdrop-filter: blur(10px);
}

.volunteer-card:hover {
  background: rgba(100, 181, 246, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(100, 181, 246, 0.3);
  border: 1px solid rgba(100, 181, 246, 0.4);
}

.volunteer-icon {
  width: 70px;
  height: 70px;
  background: rgba(100, 181, 246, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: #64b5f6;
  transition: all 0.3s ease;
}

.volunteer-card:hover .volunteer-icon {
  background: rgba(100, 181, 246, 0.3);
  transform: scale(1.1);
}

.volunteer-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: bold;
}

.volunteer-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.volunteer-button {
  display: inline-block;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(76, 175, 80, 0.3);
  border: none;
  cursor: pointer;
  text-align: center;
}

.volunteer-button:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(76, 175, 80, 0.4);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1c35 0%, #2d3561 100%);
  color: white;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(100, 181, 246, 0.3);
}

.footer p {
  margin: 0;
  opacity: 0.8;
}

/* Additional Mobile Responsiveness */
@media (max-width: 1024px) {
  .centered {
    font-size: 40px;
  }

  .sub-centered {
    font-size: 25px;
  }

  .noticias-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .volunteer-title {
    font-size: 2.2rem;
  }

  .volunteer-description {
    font-size: 1.1rem;
  }

  .volunteer-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    gap: 1.5rem;
  }

  .faq-title {
    font-size: 2.2rem;
  }

  .faq-category {
    padding: 1.5rem;
  }

  .faq-category-title {
    font-size: 1.6rem;
  }

  .faq-question {
    font-size: 1.2rem;
    padding: 1rem 1rem 1rem 2.5rem;
  }

  .faq-question::before {
    left: 0.8rem;
  }

  .faq-answer {
    font-size: 1rem;
  }

  .faq-answer.active {
    max-height: 600px;
  }
}

@media (max-width: 768px) {
  .header:not(.logo) {
    padding: 0.5rem 2%;
  }

  .logo {
    height: 70px;
  }

  .image-container {
    height: 250px;
  }

  .centered {
    font-size: 28px;
    padding: 0 1rem;
  }

  .sub-centered {
    font-size: 18px;
    padding: 0 1rem;
  }

  .social-icons {
    bottom: 15px;
  }

  .social-icons img {
    /* width: 28px; */
    height: 28px;
  }

  #menu-blocos {
    padding: 2rem 0;
  }

  .blocos-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .bloco {
    width: 85%;
    max-width: 300px;
    height: 70px;
    font-size: 1.1rem;
  }

  .quadro-noticias {
    padding: 2rem 0;
  }

  .noticias-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .noticias-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .noticia-item {
    height: auto;
    max-width: 400px;
    margin: 0 auto;
  }

  .noticia-imagem-container {
    height: 150px;
  }

  .noticia-conteudo {
    padding: 1rem;
  }

  .noticia-item h3 {
    font-size: 1.1rem;
  }

  .footer {
    padding: 1.5rem 0;
  }

  .footer p {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  /* Volunteer Section Mobile */
  .volunteer-section {
    padding: 3rem 1rem;
  }

  .volunteer-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .volunteer-description {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .volunteer-commitment {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .volunteer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
    margin-bottom: 2rem;
  }

  .volunteer-card {
    padding: 1.5rem 1rem;
  }

  .volunteer-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .volunteer-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .volunteer-card p {
    font-size: 0.95rem;
  }

  .volunteer-button {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }

  /* FAQ Section Mobile */
  .faq-section {
    padding: 3rem 1rem;
  }

  .faq-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .faq-container {
    gap: 2rem;
  }

  .faq-category {
    padding: 1.2rem;
  }

  .faq-category-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .faq-question {
    font-size: 1.1rem;
    padding: 0.8rem 0.8rem 0.8rem 2.2rem;
  }

  .faq-question::before {
    left: 0.6rem;
  }

  .faq-answer {
    font-size: 0.95rem;
  }

  .faq-answer.active {
    padding: 0.8rem 1rem;
    max-height: 700px;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 60px;
  }

  .image-container {
    height: 200px;
  }

  .centered {
    font-size: 22px;
  }

  .sub-centered {
    font-size: 16px;
  }

  .social-icons {
    gap: 10px;
  }

  .social-icons img {
    /* width: 25px; */
    height: 25px;
  }

  .bloco {
    width: 90%;
    height: 60px;
    font-size: 1rem;
  }

  .noticias-title {
    font-size: 1.3rem;
  }

  .noticia-item h3 {
    font-size: 1rem;
  }

  .noticia-data {
    font-size: 0.8rem;
  }

  /* Volunteer Section Small Mobile */
  .volunteer-section {
    padding: 2rem 0.5rem;
  }

  .volunteer-title {
    font-size: 1.5rem;
  }

  .volunteer-description {
    font-size: 0.9rem;
  }

  .volunteer-commitment {
    font-size: 0.9rem;
  }

  .volunteer-card {
    padding: 1.2rem 0.8rem;
  }

  .volunteer-icon {
    width: 50px;
    height: 50px;
  }

  .volunteer-card h3 {
    font-size: 1.1rem;
  }

  .volunteer-card p {
    font-size: 0.9rem;
  }

  .volunteer-button {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
  }

  /* FAQ Section Small Mobile */
  .faq-section {
    padding: 2rem 0.5rem;
  }

  .faq-title {
    font-size: 1.5rem;
  }

  .faq-category {
    padding: 1rem;
  }

  .faq-category-title {
    font-size: 1.3rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 0.7rem 0.7rem 0.7rem 2rem;
  }

  .faq-question::before {
    left: 0.5rem;
    font-size: 0.7em;
  }

  .faq-answer {
    font-size: 0.9rem;
  }

  .faq-answer.active {
    padding: 0.7rem 0.8rem;
    max-height: 800px;
  }
}
