.student-container {
  max-width: 900px;
  margin: auto;
  padding: 1rem;
  font-family: system-ui, sans-serif;
}

.student-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 15px;
}

.student-header {
  margin-bottom: 1rem;
  text-align: center;
}

.student-name {
  font-size: 1.8rem;
  margin: 0;
}

.student-meta {
  color: #666;
  font-size: 1rem;
}

.student-media {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.card {
  background: #dddaf3ff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: normal;   /* allows text to wrap */
  word-wrap: break-word; /* breaks long words if needed */
  overflow-wrap: break-word; /* modern alternative */
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.media-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  flex: 1 1 200px;
  text-align: center;
}

.media-img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: .5rem;
}

.student-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.field {
  display: block;
  gap: 10px;
  margin-top: 20px;
}

.info-card {
 border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}


.info-title {
  background: #f5f5f5;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  display: block;  
}

.info-title::after {
  content: "";
  transition: transform 0.9s;
}

.info-card.active .info-title::after {
  transform: rotate(90deg);
}

.info-content {
  display: none;        /* collapsed by default */
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid #eee;
}

.info-card.active .info-content {
  display: block;
}


.field .key {
  font-weight: bold;
  text-align: center;
  background:rgba(0,0,0,0.08);
  display: block;
}
.field .val {
  margin-left: .5rem;
  display: block;
  text-align: center;
    white-space: normal;   /* allows text to wrap */
  word-wrap: break-word; /* breaks long words if needed */
  overflow-wrap: break-word; /* modern alternative */
}


/* Mobile: collapsible */
@media (max-width: 600px) {
  .student-info-grid {
    display: block;
   }
  .info-card {
    border: 1px solid #ddd;
  }
  .info-card .info-title {
    cursor: pointer;
  }
  .info-card .info-title + div {
    display: none;
  }
  .info-card.active .info-title + div, .info-row .info-title + div  {
    display: block;
  }
  .info-title {
    font-size:0.7em;
  }

  .field .key {
    font-weight: bold;
    text-align: center;
    display: block;
    background:rgba(0,0,0,0.08);
  }
  .field .val {
    margin-left: .5rem;
    font-weight: normal;
    text-align: center;
    display: block;
  }
}



