/* === General Container & Font === */
.lo-shu-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.lo-shu-container h2 {
  text-align: center;
  color: #1C2A54;
  margin-bottom: 25px;
  font-size: 28px;
}

/* === Form Section === */
.dob-selectors {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
  justify-content: center;
  margin-bottom: 25px;
}

.dob-selectors select {
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #ccc;
  min-width: 140px;
  outline: none;
}

#lo-shu-form button {
  display: block;
  margin: 0 auto;
  background: #1C2A54;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* === Section Titles === */
.present-title,
.missing-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #1C2A54;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === Section 1: Traits by Number === */
.section1-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.lo-shu-box {
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-size: 10px;
  font-weight: 510;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lo-shu-box .num {
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline-block;
}

.lo-shu-box .traits {
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
}

/* === Section 2 & 3 Cards === */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on PC */
  gap: 20px;
  margin-bottom: 40px;
}


.card {
  background: #F7F7F7; /* Updated */
  border-radius: 12px;
  padding: 10px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card .circle {
  width: 38px;
  height: 38px;
  line-height: 38px;
  border-radius: 50%;
  font-weight: bold;
  text-align: center;
  color: white;
  font-size: 16px;
  margin-bottom: 12px;
}

.card.present .circle {
  background-color: #007bff;
}

.card.missing .circle {
  background-color: #e74c3c;
}

.card h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .section1-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid {
    grid-template-columns: 1fr; /* 1 column on tablet/mobile */
    justify-content: center;
  }

  .card {
    width: 90%;
  }

  .dob-selectors {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .section1-grid {
    grid-template-columns: 1fr;
  }

  .present-title,
  .missing-title {
    font-size: 20px;
  }

  .card {
    padding: 16px;
  }

  .card h4 {
    font-size: 16px;
  }

  .card p {
    font-size: 13px;
  }

  .card .circle {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}
.section1-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 30px;
}

.lo-shu-box {
  padding: 15px;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lo-shu-box .num {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 8px;
}

.lo-shu-box .traits {
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .section1-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.crossed {
  position: relative;
  display: inline-block;
  font-weight: bold;
  color: white;
  font-size: 40px;
}

.crossed::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 45%;
  width: 12%;
  height: 5px;
  background-color: red;
  transform: rotate(-45deg);
  transform-origin: center;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header .circle {
  margin-bottom: 10px; /* Remove the bottom margin */
}

.card.present {
  border-left: 5px solid #28a745; /* Green for present */
  border-radius: 16px;
  background: #f9f9f9;
  padding-left: 20px;
}

.card.missing {
  border-left: 5px solid #e74c3c; /* Red for missing */
  border-radius: 16px;
  background: #f9f9f9;
  padding-left: 20px;
}
