/* YOEByArea Modal Styles */
.YOEByArea-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.YOEByArea-modal-content {
  background-color: #222;
  margin: 5% auto;
  padding: 30px;
  border: 2px solid #978d8d;
  width: 85%;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease-out;
  color: #bbb;
  font-family: "Montserrat", sans-serif;
  max-height: 85vh;
  overflow-y: auto;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.YOEByArea-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.YOEByArea-modal-close:hover {
  color: #fff;
}

.YOEByArea-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.YOEByArea-item {
  background-color: #1a1a1a;
  padding: 20px;
  border-left: 4px solid #978d8d;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.YOEByArea-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(151, 141, 141, 0.3);
}

.YOEByArea-item h3 {
  margin-top: 0;
  color: #fff;
  font-size: 18px;
  margin-bottom: 5px;
}

.YOEByArea-item p {
  color: #999;
  font-size: 14px;
  margin: 0 0 15px 0;
  font-style: italic;
}

.YOEByArea-item ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.YOEByArea-item li {
  color: #bbb;
  padding: 8px 0;
  border-bottom: 1px solid #333;
  font-size: 14px;
}

.YOEByArea-item li:last-child {
  border-bottom: none;
}

#YOEByAreaLabel {
  transition: color 0.3s;
}

#YOEByAreaLabel:hover {
  color: grey;
}

/* Responsive Design */
@media only screen and (max-width: 600px) {
  .YOEByArea-modal-content {
    width: 90%;
    margin: 20% auto;
    padding: 20px;
  }

  .YOEByArea-container {
    grid-template-columns: 1fr;
  }

  .YOEByArea-modal-close {
    font-size: 24px;
  }
}