/* DYNAMIC CONTENT SECTIONS */

.section {
  padding: 6rem 10%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section .container {
  display: flex;
  gap: 3rem;
  width: 100%;
  max-width: 1300px;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
}

.card {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  padding: 3.5rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  transition: var(--transition-slow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.card:hover h2 {
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4);
}

.card:hover h2::after {
  width: 60px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.card h2 {
  font-family: 'Italiana', serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.3);
  transition: var(--transition-slow);
}

.card h2::after {
  content: "";
  display: block;
  margin: 10px auto 0;
  width: 30px;
  height: 1px;
  background: var(--text-soft);
  transition: var(--transition-slow);
}

.card:hover h2::after {
  width: 60px;
  background: var(--accent);
}

.card p {
  line-height: 1.8;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.5rem;
  transition: var(--transition-slow);
}

.card p:last-child {
  margin-bottom: 0;
}

.card:first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .section .container {
    flex-direction: column;
    gap: 2rem;
  }
  .section {
    padding: 4rem 5%;
  }
}