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

body {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  background: #0B0C15;
  color: #fff;
  overflow-x: hidden; /* Evita rolagem horizontal */
}

section {
  padding: 30px 20px;
  max-width: 1200px;
  margin: auto;
}

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

.btn,
.btn-sm {
  display: inline-block;
  background: #FF5733;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.2s;
}

.btn {
  padding: 12px 24px;
  margin-top: 25px;
}

.btn-sm {
  font-size: 14px;
  padding: 6px 14px;
}

/* =====================================================
   HEADER + MENU
===================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99999;
}

nav.nav-links {
  display: flex;
  gap: 20px;
}

nav.nav-links a {
  color: #fff;
  text-decoration: none;
}

nav.nav-links a:hover {
  color: #FF5733;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

.nav-links.open {
  display: flex !important;
  flex-direction: column;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative;
  z-index: 1;
  height: 90vh;
  overflow: hidden;
  margin-top: 90px;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-content h1 {
  font-size: 54px;
  line-height: 1.1;
}

.hero-content h2 {
  font-size: 34px;
  font-weight: 300;
  line-height: 1.1;
}

/* =====================================================
   EVENTO EM DESTAQUE
===================================================== */
.featured-card {
  background: #4B0082;
  padding: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
  flex-direction: row; /* Desktop: imagem lateral */
}

.featured-card img {
  height: 400px;
  width: auto;
  max-width: 400px;
  flex-shrink: 0;
  object-fit: cover; /* Corta a imagem se necessário */
}

.featured-content-wrapper {
  flex-grow: 1;
  padding-left: 20px;
}

.featured-content-wrapper h2 {
  font-size: 30px;
}

.featured-content-wrapper h3 {
  font-size: 20px;
}

.featured-content-wrapper p {
  line-height: 1.5;
}

/* =====================================================
   CARROSSEL — PRÓXIMOS EVENTOS
===================================================== */
.proximos {
  max-width: 1200px;
  margin: auto;
  position: relative;
  padding: 0 40px;
}

.event-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  white-space: nowrap;
  padding-bottom: 20px;
  scrollbar-width: none;
}

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

.event-card {
  background: #4B0082;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  flex-shrink: 0;
  text-align: center;
  scroll-snap-align: start;
}

.event-card img {
  width: 100%;
  height: auto;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-arrow { left: 10px; }
.right-arrow { right: 10px; }

/* =====================================================
   BLOG — 3 COLUNAS
===================================================== */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.blog-post-card {
  background: #4B0082;
  padding: 20px;
  border-radius: 10px;
  width: calc((100% - 40px) / 3 * 0.85);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #fff;
  border: 1px solid #4B0082;
  transition: 0.2s;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  background: #5A1A9A;
  box-shadow: 0 8px 15px rgba(0,0,0,0.5);
}

.post-content h3 {
  font-size: 24px;
  margin: 10px 0 15px;
  line-height: 1.2;
}

.post-content p {
  color: #ccc;
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-tag {
  background: #FF5733;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 10px;
}

.post-read-more {
  color: #FF5733;
  font-weight: bold;
  margin-top: 10px;
  transition: 0.2s;
}

.blog-post-card:hover .post-read-more {
  color: #fff;
}

.blog-footer-action {
  text-align: center;
  margin-top: 30px;
}

.btn-big-blog {
  padding: 15px 30px;
  font-size: 18px;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: #000;
  padding: 20px 40px;
  width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-center {
  text-align: center;
  flex-grow: 1;
}

.instagram-icon {
  width: 35px;
  height: 35px;
}

/* =====================================================
   RESPONSIVIDADE
===================================================== */
@media (max-width: 900px) {
  .blog-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .blog-post-card {
    flex: 0 0 80%;
    min-width: 250px;
    scroll-snap-align: start;
    margin-right: 20px;
  }

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

@media (max-width: 768px) {

  header {
    padding: 15px 20px;
  }

  .hamburger {
    display: block;
  }

  nav.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    display: none;
    padding: 20px 0;
    gap: 15px;
    text-align: center;
    z-index: 999999;
  }

  nav.nav-links a {
    margin: 10px 0;
    font-size: 18px;
  }

  .featured-card {
    flex-direction: column;
    text-align: center;
  }

  .featured-card img {
    height: auto;
    width: 100%;
  }

  .featured-content-wrapper {
    padding: 0;
  }

  .hero {
    margin-top: 70px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* BLOG MOBILE — empilha os cards verticalmente */
  .blog-grid {
    flex-direction: column;  /* empilha verticalmente */
    flex-wrap: nowrap;
    overflow-x: hidden;
    padding-bottom: 0;
  }

  .blog-post-card {
    width: 100%;   /* ocupa toda a largura */
    min-width: 0;
    margin-bottom: 20px; /* espaço entre cards */
  }
}

/* =====================================================
   IMAGENS E CARDS
===================================================== */
img, .event-card, .blog-post-card {
  max-width: 100%;
  height: auto;
}
