/* Responsive Layout */
.creative-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-content: center; /* Center both containers horizontally */
  align-items: flex-start;
  align-items: stretch;
  padding: 60px 30px;
  background: #fff;
  gap: 40px; /* This sets the space between left/right containers */
  max-width: 1300px;
  margin: 0 auto;
}

/* Left and Right Containers */
.left-container,
.right-container {
  flex: 1;
  max-width: 50%;
  min-width: 300px; /* Avoid shrinking too small */
}

/* Profile Image Container */
.profile-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.profile-container:hover {
  transform: scale(1.05);
}

.profile-pic {
  width: 100%;
  height: auto;
  max-width: 400px;
  object-fit: cover;
  border-radius: 15px;
}

.profile-container:hover .profile-pic {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0);
  cursor: pointer;
}

.left-container {
  border: 1px solid #ccc; /* Added a visible border */
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.348);
  background: linear-gradient(
    135deg,
    #808080,
    #e1e0e0,
    #ffffff,
    #d4d4d4,
    #c7c7c7
  );
  background-size: 300% 300%;
  animation: animateBlackToWhite 2s ease-in-out infinite alternate;
  overflow: hidden;
  position: relative;
}

@keyframes animateBlackToWhite {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.left-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 4, 4, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 2.5s infinite;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

/* Left-side Images */
.left-container img {
  width: 100%;
  height: 400px;

  object-fit: cover;
  border-radius: 15px;
}

.left-container img:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transform: scale(1.02);
}
/* Profile Image Caption */
.image-caption {
  text-align: center;
  font-weight: bold;
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  margin-top: 12px;
  color: rgb(0, 0, 0);
}

/* Right Container Styling */
.right-container {
  flex: 1;
  max-width: 60%; /* Increased width */
  min-width: 800px; /* Prevents extreme shrinking */
  height: 500px; /* Default flexible height */
  min-height: 300px; /* Set minimum height */
  margin-left: 25px;
  padding: 20px; /* Slightly more padding */
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background-color: transparent;
}
.right-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../image/People.jpg") no-repeat center center;
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
  border-radius: 15px;
}

.right-container > * {
  position: relative;
  z-index: 1;
}

.right-container h2 {
  font-style: "sans-serif";
  font-size: 40px;
  color: #000000;
}

.right-container .subtitle {
  font-size: 30px;
  font-weight: 400;
  color: #000000;
  font-family: "sans-serif", sans-serif;
}

.description {
  margin-top: 3px;
  font-size: 1.4rem;
  color: #000000;
  font-weight: bolder;
  font-family: "Kantumruy Pro";
  margin-bottom: 1px;
}

/* Checklist styling */
ul.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 30px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

ul.checklist li {
  font-weight: bolder;
  display: flex;
  align-items: center;
  font-size: 20px;
  font-family: "Kantumruy Pro", sans-serif;
  color: #000000;
}

.check-icon {
  font-style: bold;
  font-size: 30px;
  color: #00ff3c;
  margin-right: 10px;
  flex-shrink: 0;
}

/*  Mobile-Friendly Styles */
@media (max-width: 768px) {
  .creative-section {
    flex-direction: column;
    gap: 30px;
  }

  .left-container,
  .right-container {
    max-width: 100%;
    margin: 0 auto;
  }

  .right-container {
    margin-right: 0;
  }
}
