* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", "Roboto", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
}

body.light {
  --bg-color: #1a1a1a;
  --text-color: #333;
  --nav-bg: #3c3c3c; /* aqui troca a cor da barra menu */
  --nav-text: #fff; /* aqui troca a cor do texto nav */
  --subnav-bg: #3c3c3c;
  --button-bg: #007bff;
  --button-text: #fff;
  --form-bg: rgba(255, 255, 255, 0.7);
  --input-bg: rgba(255, 255, 255, 0.7);
  --input-text: #666;
}

body.dark {
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --nav-bg: #2c2c2c;
  --nav-text: #e0e0e0;
  --subnav-bg: #3c3c3c;
  --button-bg: #0056b3;
  --button-text: #fff;
  --form-bg: rgba(0, 0, 0, 0.7);
  --input-bg: rgba(0, 0, 0, 0.7);
  --input-text: #bbb;
}

.top-menu {
  background-color: #333333;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
  height: 60px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.top-menu .audio-controls {
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.top-menu .audio-controls .rgc-logo {
  display: none;
}

.top-menu .top-logo img {
  display: none;
}

.top-menu .audio-controls button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  margin-right: 20px;
  transition: color 0.3s ease;
}

.top-menu .audio-controls button:hover {
  color: #007bff;
}

.top-menu .right-controls {
  display: flex;
  align-items: center;
}

.top-menu .social-links a {
  color: #ffffff;
  margin: 0 8px;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.top-menu .social-links a:hover {
  color: #007bff;
}

.top-menu .theme-toggle i {
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.top-menu .theme-toggle i:hover {
  color: #007bff;
}

.spectrum {
  width: 50px;
  height: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.spectrum .bar {
  width: 6px;
  background-color: #ffffff;
  height: 2px;
}

.main-nav {
  background-color: var(--nav-bg);
  position: sticky;
  top: 60px;
  padding: 0 15px;
  height: 80px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  opacity: 0.7;
}

.main-nav .hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--nav-text);
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 25px;
}

.main-nav .logo {
  display: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.main-nav ul li {
  margin: 0 8px;
}

.main-nav ul li.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-nav ul li.logo img {
  height: 30px;
  width: 75px;
}

.main-nav ul li a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.main-nav ul li a:hover {
  color: var(--nav-text);
  text-decoration: none;
}

.main-nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--button-bg);
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

.main-nav ul li a i.fas.fa-home {
  font-size: 1.2rem;
}

section {
  padding: 20px 15px;
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  position: relative;
  width: 100%;
}

.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
}

.section-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#home {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-top: 60px;
  padding-top: 0;
}

#home .section-bg {
  background-image: url("../img/bispo.png");
}

#home .section-content {
  padding-top: 80px;
}

#home .logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background-image: url("../img/logb.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#home h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

#home p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

#sobre {
  margin-top: 140px;
}

#sobre .section-bg {
  background-image: url("../img/bg_ceia_02.jpg");
}

#sobre .section-content {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  padding-top: 80px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

#sobre .sobre-text {
  width: 40%;
  text-align: left;
}

#sobre .sobre-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

#sobre .sobre-text h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #e0e0e0;
}

#sobre .sobre-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

#eventos {
  margin-top: 140px;
}

#eventos .section-bg {
  background-image: url("../img/img1.png");
}

#eventos .section-content {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  padding-top: 80px;
}

#eventos h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

#eventos .section-content > p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 20px;
}

#eventos .gallery {
  display: flex;
  flex-direction: row;
  gap: 24px;
  max-width: 1512px;
  width: 100%;
  justify-content: center;
}

#eventos .card {
  background-color: #000000;
  border-radius: 12px;
  width: 360px;
  height: 480px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

#eventos .card img {
  width: 100%;
  height: 336px;
  object-fit: cover;
}

#eventos .card h3 {
  font-size: 1.3rem;
  margin: 20px 0 10px;
}

#eventos .card h3:last-of-type {
  margin: 10px 0 20px;
  font-size: 1.1rem;
}

#eventos .card p {
  font-size: 0.8rem;
  margin: 0 10px 10px;
  flex-grow: 1;
}

#homem {
  margin-top: 140px;
}

#homem .section-bg {
  background-image: url("../img/bg_provedores.jpg");
}

#homem .section-content {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  padding-top: 80px;
}

#homem h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

#homem .section-content > p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 20px;
}

#homem .gallery {
  display: flex;
  flex-direction: row;
  gap: 24px;
  max-width: 756px;
  width: 100%;
  justify-content: center;
}

#homem .card {
  background-color: #000000;
  border-radius: 12px;
  width: 360px;
  height: 480px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

#homem .card img {
  width: 100%;
  height: 336px;
  object-fit: cover;
}

#homem .card h3 {
  font-size: 1.3rem;
  margin: 20px 0 10px;
}

#homem .card h3:last-of-type {
  margin: 10px 0 20px;
  font-size: 1.1rem;
}

#homem .card p {
  font-size: 0.8rem;
  margin: 0 10px 10px;
  flex-grow: 1;
}

#provedores {
  margin-top: 140px;
}

#provedores .section-bg {
  background-image: url("../img/bg_provedores.jpg");
}

#provedores .section-content {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  padding-top: 80px;
}

#provedores h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

#provedores .section-content > p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 20px;
}

#provedores .gallery {
  display: flex;
  flex-direction: row;
  gap: 24px;
  max-width: 756px;
  width: 100%;
  justify-content: center;
}

#provedores .card {
  background-color: #000000;
  border-radius: 12px;
  width: 360px;
  height: 480px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

#provedores .card img {
  width: 100%;
  height: 336px;
  object-fit: cover;
}

#provedores .card h3 {
  font-size: 1.3rem;
  margin: 20px 0 10px;
}

#provedores .card h3:last-of-type {
  margin: 10px 0 20px;
  font-size: 1.1rem;
}

#provedores .card p {
  font-size: 0.8rem;
  margin: 0 10px 10px;
  flex-grow: 1;
}

#ministerio {
  margin-top: 140px;
}

#ministerio .section-bg {
  background-image: url("../img/form.jpg");
}

#ministerio .section-content {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  padding-top: 80px;
}

#ministerio h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

#ministerio .section-content > p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 20px;
}

#ministerio .gallery {
  display: flex;
  flex-direction: row;
  gap: 24px;
  max-width: 1890px;
  width: 100%;
  justify-content: center;
}

#ministerio .card {
  background-color: #000000;
  border-radius: 12px;
  width: 360px;
  height: 480px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

#ministerio .card img {
  width: 100%;
  height: 336px;
  object-fit: cover;
}

#ministerio .card h3 {
  font-size: 1.3rem;
  margin: 20px 0 10px;
}

#ministerio .card h3:last-of-type {
  margin: 10px 0 20px;
  font-size: 1.1rem;
}

#ministerio .card p {
  font-size: 0.8rem;
  margin: 0 10px 10px;
  flex-grow: 1;
}

#contato {
  margin-top: 140px;
}

#contato .section-bg {
  background-image: url("../img/Wb_ceia_black.jpg");
}

#contato .section-content {
  color: var(--text-color);
}

#contato form .logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background-image: url("../img/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#contato form h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

#contato form {
  background: var(--form-bg);
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#contato .form-group {
  margin-bottom: 15px;
  text-align: left;
}

#contato .form-group label {
  font-size: 1rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

#contato .form-group label i {
  margin-right: 8px;
  color: var(--button-bg);
}

#contato .form-group input,
#contato .form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: var(--input-bg);
  color: var(--input-text);
}

#contato .form-group input::placeholder,
#contato .form-group textarea::placeholder {
  color: #999;
  font-style: italic;
}

#contato .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

#contato form button {
  width: 100%;
  padding: 12px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
}

#contato form button:hover {
  background-color: #004494;
}

#contato #form-message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  font-size: 1rem;
}

#local {
  margin-top: 140px;
  padding: 0;
  min-height: 450px;
  height: 450px;
}

#local .section-bg {
  background-image: url("../img/cc_ceia.jpg");
}

#local .section-content {
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#local iframe {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
}

footer {
  background-color: var(--subnav-bg);
  padding: 15px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-color);
}

footer a {
  color: var(--text-color);
  text-decoration: none;
}

footer a:hover {
  color: var(--button-bg);
}

@media (max-width: 768px) {
  .top-menu {
    justify-content: flex-end; /* Alinha os itens à direita para que .audio-controls fique à esquerda */
  }

  .top-menu .audio-controls {
    position: absolute;
    left: 15px; /* Espaçamento da borda esquerda */
    transform: none; /* Remove o transform para posicionar à esquerda */
  }

  .top-menu .social-links a {
    font-size: 1.8rem; /* Aumenta o tamanho dos ícones sociais */
    margin: 0 10px; /* Aumenta o espaçamento entre os ícones */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Adiciona sombra para destaque */
  }

  .top-menu .social-links a:hover {
    color: #00c4ff; /* Cor mais vibrante no hover */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Sombra mais forte no hover */
  }

  .main-nav {
    position: fixed;
    top: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .main-nav .hamburger {
    display: block;
  }

  .main-nav .logo {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .main-nav .logo img {
    height: 30px;
    width: auto;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 120px;
    right: 0;
    background-color: var(--nav-bg);
    width: 200px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
  }

  .main-nav ul.active {
    display: flex;
    transform: translateX(0);
  }

  .main-nav ul li {
    margin: 10px 0;
  }

  .main-nav ul li.logo {
    display: none;
  }

  .main-nav ul li a {
    font-size: 1rem;
    display: block;
    padding: 10px;
    text-align: center;
  }

  #home {
    margin-top: 120px;
  }

  #eventos .gallery,
  #ministerio .gallery,
  #provedores .gallery {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  #eventos .card,
  #ministerio .card,
  #provedores .card {
    width: 90%;
    max-width: 450px;
    height: 520px;
  }

  #eventos .card img,
  #ministerio .card img,
  #provedores .card img {
    height: 360px;
  }

  #eventos .card h3,
  #ministerio .card h3,
  #provedores .card h3 {
    font-size: 1.5rem;
  }

  #eventos .card h3:last-of-type,
  #ministerio .card h3:last-of-type,
  #provedores .card h3:last-of-type {
    font-size: 1.3rem;
  }

  #eventos .card p,
  #ministerio .card p,
  #provedores .card p {
    font-size: 1rem;
  }

  #contato form .logo {
    width: 80px;
    height: 80px;
  }

  #contato form h1 {
    font-size: 1.8rem;
  }

  #contato form {
    max-width: 450px;
    padding: 15px;
  }

  #local {
    min-height: 350px;
    height: 350px;
  }

  #local iframe {
    width: 100%;
    height: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .main-nav ul {
    width: 150px;
  }

  .main-nav .logo img {
    height: 25px;
    width: 60px;
  }

  #eventos .card,
  #ministerio .card,
  #provedores .card {
    width: 90%;
    max-width: 380px;
    height: 500px;
  }

  #eventos .card img,
  #ministerio .card img,
  #provedores .card img {
    height: 340px;
  }

  #contato form .logo {
    width: 60px;
    height: 60px;
  }

  #contato form h1 {
    font-size: 1.5rem;
  }

  #contato form {
    max-width: 380px;
    padding: 10px;
  }

  #local {
    min-height: 300px;
    height: 300px;
  }

  #local iframe {
    width: 100%;
    height: 100%;
    margin: 0;
  }
}

/* Estilos para o card na seção Sobre */
#sobre .sobre-card {
  width: 600px;
  height: 400px; /* Proporção 3:2 (600/400 = 1.5) */
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

#sobre .sobre-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sobre .sobre-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
