:root {
  --color-primary: #9862da;
  --color-primary-soft: #b08af0;
  --color-black: #05020b;
  --color-white: #ffffff;

  --spacing-xs: 6px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 60px;

  --font-size-base: 16px;
  --font-size-md: 18px;
  --font-size-lg: 28px;
  --font-size-xl: 40px;

  --transition-default: all 0.3s ease;
  --border-radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  font-size: var(--font-size-base);
  color: var(--color-white);
  background: radial-gradient(
    circle at top left,
    #1a1030 0%,
    #05020b 40%,
    #020009 100%
  );
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    180deg,
    rgba(5, 2, 11, 0.95) 0%,
    rgba(5, 2, 11, 0.7) 100%
  );
  border-bottom: 1px solid rgba(152, 98, 218, 0.35);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: 14px 16px;
}

.logo img {
  height: 48px;
  width: auto;
}

.menu-navbar ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-navbar a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s ease;
}

.menu-navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-soft)
  );
  transition: width 0.2s ease;
}

.menu-navbar a:hover {
  color: var(--color-white);
}

.menu-navbar a:hover::after {
  width: 100%;
}

.hero {
  padding: var(--spacing-xl) 0 var(--spacing-xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--spacing-xl);
}

.hero-title {
  font-size: var(--font-size-xl);
  line-height: 1.1;
  margin: 0 0 var(--spacing-md);
}

.loader {
  color: rgba(220, 220, 220, 0.9);
  font-weight: 500;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(152, 98, 218, 0.5);
  margin-bottom: var(--spacing-md);
}

.words {
  overflow: hidden;
  position: relative;
  height: 1.2em;
}

.word {
  display: block;
  height: 100%;
  padding-left: 6px;
  color: var(--color-primary-soft);
  animation: spinWords 6s infinite;
}

@keyframes spinWords {
  0% {
    transform: translateY(0%);
  }

  20% {
    transform: translateY(-100%);
  }

  40% {
    transform: translateY(-200%);
  }

  60% {
    transform: translateY(-300%);
  }

  80% {
    transform: translateY(-200%);
  }

  100% {
    transform: translateY(0%);
  }
}

.header-subtitle {
  margin: 0 0 var(--spacing-md);
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
}

.button-meetup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background-color: var(--color-primary);
  border-radius: var(--border-radius-pill);
  padding: 8px 20px;
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  border: 1px solid rgba(231, 229, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-default);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.button-meetup img {
  width: 20px;
  height: 20px;
}

.button-meetup:hover {
  transform: translateY(-2px);
  background-color: #7a4dd0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.social-links {
  display: flex;
  gap: 18px;
  margin-top: var(--spacing-lg);
}

.social-links img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-links img:hover {
  transform: translateY(-2px);
  background: rgba(152, 98, 218, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.hero-image {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.hero-aws {
  width: 140px;
  height: auto;
  opacity: 0.9;
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 var(--spacing-md);
}

.section-light {
  background: #f9fafb;
  color: #111827;
}

.section-light .section-title {
  color: #111827;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.event-card {
  background: linear-gradient(
    145deg,
    rgba(152, 98, 218, 0.18),
    rgba(10, 5, 25, 0.95)
  );
  border-radius: 18px;
  padding: var(--spacing-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-md);
  align-items: center;
  border: 1px solid rgba(152, 98, 218, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.6);
  border-color: var(--color-primary);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.6);
  min-width: 70px;
}

.event-date .day {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
}

.event-date .month {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
}

.event-info h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--color-white);
}

.event-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 4px;
}

.event-cta {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.event-cta:hover {
  background-color: #7a4dd0;
  transform: translateY(-1px);
}

.organizers-container {
  text-align: left;
}

.carousel-wrapper {
  position: relative;
  margin-top: var(--spacing-md);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  padding: 10px 5px 20px 5px;
  scroll-behavior: smooth;
}

.cards-grid::-webkit-scrollbar {
  display: none;
}

.organizer-card {
  background: linear-gradient(
    145deg,
    rgba(152, 98, 218, 0.2) 0%,
    rgba(5, 2, 11, 0.95) 100%
  );
  border-radius: 20px;
  padding: var(--spacing-md) var(--spacing-sm);
  color: var(--color-white);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-md);
  transition: var(--transition-default);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.organizer-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 30px rgba(152, 98, 218, 0.2);
  transform: translateY(-5px);
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  flex-shrink: 0;
}

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

.card-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  width: 100%;
  text-align: center;
}

.card-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.3px;
  word-wrap: break-word;
}

.role-club {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  align-self: center;
  margin-bottom: 5px;
}

.role-pro {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.4;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 0;
  padding: 6px 10px;
  border-radius: 12px;
  /* background: rgba(0, 119, 181, 0.15); */
  text-decoration: none;
  color: #0077b5;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.linkedin-link:hover {
  background: rgba(0, 119, 181, 0.25);
  color: #0a66c2;
  transform: translateY(-1px);
}

.linkedin-icon {
  width: 16px;
  height: 16px;
}

.dot:hover {
  background-color: #b0b0b0;
}

.dots-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #d1d1d1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--color-primary);
  width: 20px;
  border-radius: 10px;
}

.dot:hover {
  background-color: #b0b0b0;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 18px 0;
  background: rgba(5, 2, 11, 0.98);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.footer-info p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.9);
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-links a {
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
  position: relative;
}

.modal-close {
  position: absolute;
  right: 0.8rem;
  top: 0.6rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.admin-form label {
  font-size: 0.9rem;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-form input {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  font-size: 0.9rem;
}

.admin-form button {
  margin-top: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: #4f46e5;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.admin-form button:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.event-card {
  grid-template-columns: auto 1fr;
  grid-template-rows: auto;
  grid-auto-flow: column;
}

.event-banner {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
}

.event-banner img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-navbar ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 6px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-aside {
    order: -1;
  }

  .social-links {
    margin-top: var(--spacing-md);
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .site-header {
    position: static;
  }

  .logo img {
    height: 40px;
  }
}

/* --- Estilos do FAQ --- */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: linear-gradient(
    145deg,
    rgba(152, 98, 218, 0.15) 0%,
    rgba(5, 2, 11, 0.6) 100%
  );
  border: 1px solid rgba(152, 98, 218, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(152, 98, 218, 0.15);
}

.faq-item.active {
  border-color: var(--color-primary);
  background: linear-gradient(
    145deg,
    rgba(152, 98, 218, 0.25) 0%,
    rgba(5, 2, 11, 0.8) 100%
  );
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* Transforma o + em x */
  color: var(--color-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
  padding: 0 24px 24px 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-item p a {
  color: var(--color-primary);
}