* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.title-text {
  display: flex;
  justify-content: center;
  font-weight: bold;
  color: #333;
  font-size: 2rem;
  text-decoration: underline;
  text-decoration-color: #FFA500;
  text-underline-offset: 0.5rem;
}

.highlight {
  color: #FFA500;
}

.content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Card styles */
.cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.card {
  background-color: #505050;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-number {
  font-size: 24px;
  color: #ffffff;
  /* Ensure the number is visible on the card background */
  background-color: #ff6900;
  /* Background color for the number */
  border-radius: 9999px;
  /* Make it circular */
  padding: 0.5rem 1rem;
  font-weight: bold;
  position: absolute;
  top: 10px;
  /* Adjust position as needed */
  left: -25px;
  /* Adjust position as needed */
  width: 40px;
  /* Set a fixed width for consistent sizing */
  height: 40px;
  /* Set a fixed height for consistent sizing */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  /* Ensure it stays above other content */
}

.item-heading {
  font-weight: bold;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  color: #ffb300;
  position: relative;
  width: 100%;
}

.item-heading::after {
  content: "";
  width: 100%;
  height: 3px;
  background-color: #ffb300;
  display: block;
  margin: 8px auto 0;
}

.item-description {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  text-align: justify;
  margin-top: 10px;
}

/* Light mode specific styles */
body .item {
  background-color: #ffedd5;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

body .item-number {
  font-size: 24px;
  color: #4CAF50;
  margin-bottom: 10px;
  /* Ensuring it's visible and positioned */
  position: absolute;
  left: -1.5rem;
  top: -22px;
  background-color: #ff6900;
  color: #ffffff;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  z-index: 1;
  /* Ensures it's above other content */
}

body .item-heading {
  font-size: large;
  font-weight: bold;
}

/* Dark mode specific styles */
body.dark-mode {
  background-color: #333;
  color: #f0f0f0;
}

body.dark-mode .card {
  background-color: #444;
}

body.dark-mode .item-heading {
  color: #ffb300;
  font-weight: bold;
}

body.dark-mode .item-number {
  background-color: #555;
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 768px) {
  .card {
    width: 100%;
    padding: 15px;
  }

  .title-text {
    font-size: 1.5rem;
  }
}