/* === Card Styles === */
.profession-card {
  transition: transform 0.3s ease;
  background: #d1f7c4;
  border: 2px solid #43a047;
  border-radius: 12px;
  padding: 10px;
  width: 150px;
  cursor: pointer;
}

.profession-img {
  width: 130px;
  height: 130px;
  border-radius: 15px;
  background-color: #fff;
  padding: 10px;
  object-fit: contain;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.profession-title {
  margin-top: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  color: #264653;
  text-shadow: 1px 1px 1px #ffffff;
  user-select: none;
}

.profession-card:hover {
  transform: scale(1.1);
}

/* === Modal Styles === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  display: none;
}

.modal-card {
  background: #d1f7c4;
  border: 2px solid #43a047;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  width: 350px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: scale(0.5);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-card {
  transform: scale(1);
}

.modal-card img {
  width: 340px;
  height: 340px;
  border-radius: 20px;
  background-color: #fff;
  padding: 15px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close-btn {
  margin-top: 20px;
  background: #f4a261;
  border: none;
  padding: 10px 20px;
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(231, 111, 81, 0.7);
  user-select: none;
}

/* === Print Styles === */
@media print {
  body * {
    visibility: hidden;
  }

  #helperContainer, #helperContainer * {
    visibility: visible;
    page-break-inside: avoid;
  }

  #helperContainer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff8dc;
    padding: 20px;
    border: 2px solid #ffa500;
    box-sizing: border-box;
  }

  button {
    display: none !important;
  }
}
