.workshop-hero {
  height: 60vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../media/section_picture.webp') no-repeat center;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fcf9f2;
  position: relative;
}

.workshop-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Define the animation */
@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
    /* Start off-screen above */
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    /* End at its natural position */
    opacity: 1;
  }
}

.hero-content {
  background: rgba(252, 249, 242, 0.80);
  padding: 30px 20px;
  max-width: 750px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: slideInFromTop 1s ease-out forwards;
}

.workshop-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #333;
  line-height: 1.3;
}

.workshop-hero p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.8;
  font-weight: 300;
  text-align: center;
}

.workshop-hero button {
  background: #fcf9f2;
  color: #333;
  padding: 12px 30px;
  border: 1px solid #333;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* align-self: flex-start; */
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.workshop-hero button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #ba9f38;
  transition: left 0.3s ease;
  z-index: -1;
}

.workshop-hero button:hover::before {
  left: 0;
}

.workshop-hero button:hover {
  color: #f8f6f3;
  transform: translateY(-2px);
}

.workshop-hero a {
  text-decoration: none;
  color: #333;
}

.workshop-info {
  background-color: #fcf9f2;
  padding: 60px 20px 20px 20px;
  text-align: center;
}

.workshop-info img {
  max-width: 100%;
  width: 500px;
  height: auto;
  margin-top: 40px;
}

.workshop-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.workshop-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.workshop-text p {
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  font-family: 'Georgia', serif;
  text-align: justify;
}

.workshop-text p:last-of-type {
  margin-bottom: 40px;
}

.email-link:hover {
  color: #ba9f38;
  text-decoration: underline;
}

.email-link:active {
  transform: scale(0.98);
}

/* Optional: Add a subtle glow effect on hover */
.email-link:hover {
  text-shadow: 0 0 8px rgba(206, 221, 46, 0.3);
}

/* Success message styling */
.email-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #ba9f38;
  color: #000;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.email-success.show {
  opacity: 1;
  transform: translateX(0);
}

.workshop-btn {
  background: #fcf9f2;
  color: #333;
  padding: 12px 30px;
  border: 1px solid #333;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* align-self: flex-start; */
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.workshop-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #ba9f38;
  transition: left 0.3s ease;
  z-index: -1;
}

.workshop-btn:hover::before {
  left: 0;
}

.workshop-btn:hover {
  color: #f8f6f3;
  transform: translateY(-2px);
}

.workshop-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(51, 51, 51, 0.2);
}

/* Success message styling */
.email-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #ba9f38;
  color: #333;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  font-family: 'Georgia', serif;
  font-weight: 500;
}

.email-success.show {
  opacity: 1;
  transform: translateX(0);
}

.gallery-section {
  padding: 20px 20px 80px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .workshop-text h1 {
    font-size: 2.2rem;
  }

  .workshop-info {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .workshop-hero h1 {
    font-size: 2.5rem;
  }

  .workshop-text h1 {
    font-size: 2rem;
  }

  .workshop-text p {
    font-size: 0.95rem;
  }

  .workshop-info {
    padding: 40px 15px;
  }

  .workshop-info img {
    width: 100%;
    max-width: 400px;
  }

  .workshop-title {
    font-size: 1.8rem;
  }

  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .gallery-item {
    min-width: 100%;
    scroll-snap-align: start;
    height: 400px;
  }

  .gallery-item:hover {
    transform: none;
  }

  .carousel-dots {
    display: flex;
  }
}

@media (max-width: 480px) {
  .workshop-hero h1 {
    font-size: 2rem;
  }

  .workshop-btn {
    padding: 10px 25px;
    font-size: 0.85rem;
  }

  .workshop-info {
    padding: 20px 20px;
  }

  .workshop-title {
    font-size: 1.4rem;
  }

  .gallery-item {
    height: 350px;
  }
}