/* src/components/Main Page/sectionfive.module.css */

.container {
  position: relative;
  margin: 0 auto;
  width: 100vw;
  height: auto; /* CRITICAL FIX: Was 3700px. Now it adapts to content. */
  z-index: 1;
  margin-bottom: 2%;
}

.innerContainer {
  z-index: 1;
  width: 90%;
  margin: 20px auto;
  /* UPDATED: Added inset shadow for the inner border effect from the target video */
  box-shadow: 0 8px 16px rgba(46, 32, 51, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-bottom: 4rem; /* To give space at the bottom. */
}

/* Content Section Styles */
.content {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 40px 0 40px; /* Using padding for reliable spacing. */
}

.content h1 {
  text-align: center;
  font-size: 3.0rem;
  margin: 0 15%;
  margin-bottom: 20px;
}

.content p {
  text-align: justify;
  font-size: medium;
  margin: 0 15%;
}

/* --- ORPHANED STYLES --- */
/* These styles are no longer used by the sliders we fixed, but are kept here
   to avoid breaking other potential components and to provide the full original file structure. */

/* Navigation Button Styles */
.navButton {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #feb500;
  color: white;
  border: none;
  cursor: pointer;
  padding: 12px;
  font-size: 1.2rem;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navButton:hover {
  background-color: #222222;
  transform: translateY(-50%) scale(1.1);
}

.navButton.left {
  left: 10%;
}

.navButton.right {
  right: 10%;
}

/* Card Styles that were previously being misapplied */
.card {
  transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease;
  padding: 20px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid whitesmoke;
  position: relative;
  overflow: hidden;
  height: 350px;
  width: 300px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 105, 135, 0.2), rgba(0, 204, 255, 0.2));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  background-color: #f0f8ff;
}

.card h1,
.card p {
  position: relative;
  z-index: 1;
}

.card h1 {
  font-size: 1.5rem;
  margin-bottom: 2%;
}

.card:hover h1 {
  color: #7c621f;
}

.card:hover p {
  color: #333;
}

/* Slick Dots Customization */
.slick-dots li button:before {
  font-size: 16px;
  color: #000;
}

.slick-dots li.slick-active button:before {
  color: #007bff;
}

.cardTitles {
  font-size: larger;
}


/* Mobile and Tablet Styles */
@media screen and (max-width: 768px) {
  .innerContainer {
    width: 100%;
    margin: 0;
    box-shadow: none, inset 0 0 10px rgba(0, 0, 0, 0.05);
  }
  .content {
    padding: 2rem 20px;
  }
  .content h1 {
    font-size: 2.5rem;
    margin: 0 5%;
  }
  .content p {
    margin: 0 5%;
  }
  .navButton.left {
    left: 1rem;
  }
  .navButton.right {
    right: 1rem;
  }
  .card {
    height: 300px;
    margin: 20px 10px;
  }
}

@media screen and (max-width: 480px) {
  .content h1 {
    font-size: 2.1rem;
  }
  .card {
    height: auto;
    min-height: 280px;
    margin: 10px 0;
  }
  .navButton {
    display: none;
  }
}