/* ==========================================================================
   MAINPAGE: BANNER SECTION
   ========================================================================== */

.banner {
  position: relative;
  background-image: url('/Imagens/banner.jpg');
  background-size: cover;
  background-position: center;
  height: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner-title {
  margin: 150px 0 0;
  color: white;
  font-size: 100px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* ==========================================================================
   MAINPAGE: HERO SLIDESHOW
   ========================================================================== */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin: 270px 0 2rem;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
}

.slide.active {
  display: flex;
}

.slide h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px #000;
}

.slide h2 span {
  font-weight: bold;
  color: #ffe2f0;
}

.btn_slides {
  padding: 10px 0;
  width: 120px;
  height: 40px;
  font-size: 16px;
  color: #fff;
  background-color: transparent;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn_slides:hover {
  background-color: #9b5d84;
}

/* ==========================================================================
   MAINPAGE: CATEGORY GRID
   ========================================================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.category-card {
  aspect-ratio: 1 / 1;
  background: #8a5d84;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  font-size: 22px;
  text-align: center;
  text-decoration: none;
  text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.3);

  display: flex;
  align-items: center;
  justify-content: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

/* Example backgrounds for different category cards */
.category-card-back1 {
  background-image: url('/Imagens/background_buttons/1-300pxx300px.jpg');
}
.category-card-back2 {
  background-image: url('/Imagens/background_buttons/2-300pxx300px.jpg');
}
.category-card-back3 {
  background-image: url('/Imagens/background_buttons/3-300pxx300px.jpg');
}
