.alumni-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: "Segoe UI", sans-serif;
}

.alumni-section .section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 30px;
  color: #1a3c50;
  position: relative;
}
.alumni-section .section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #66cfff, #1f7abf);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.alumni-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.custom-dropdown,
.alumni-search-input {
  padding: 10px 16px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #bbb;
  background-color: #f3fbff;
  color: #1a3c50;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.custom-dropdown:focus,
.alumni-search-input:focus {
  outline: none;
  border-color: #66cfff;
  box-shadow: 0 0 8px rgba(102, 207, 255, 0.3);
}

.alumni-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* SAFETY: only proper cards render inside the grid */
.alumni-container > :not(.alumni-card) { display: none !important; }

.alumni-card {
  background: linear-gradient(to right, rgba(80, 120, 140, 0.3), rgba(160, 200, 220, 0.3));
  border-left: 6px solid rgba(102, 207, 255, 0.5);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 16px rgba(0, 40, 80, 0.1);
  transition: transform 0.3s ease;
  color: #1a3c50;
  box-sizing: border-box;
  display: none;             /* hidden by default */
}
.alumni-card.show {
  display: block;            /* use flex if you need */
}
.alumni-card:hover { transform: translateY(-4px); }
.alumni-card h3 { margin-bottom: 10px; font-size: 1.2em; color: #0c2a40; }
.alumni-card a { color: #297fb8; text-decoration: none; }
.alumni-card a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .alumni-filters { flex-direction: column; align-items: center; }
}

.alumni-export-controls {
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.95em;
}
.alumni-export-controls input[type="checkbox"] { margin-right: 8px; }
.alumni-export-controls button {
  margin-left: 20px;
  padding: 8px 16px;
  background: #d0f0ff;
  color: #003344;
  border: 1px solid #66cfff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.alumni-export-controls button:hover { background: #a3deff; }

.alumni-card input.alumni-checkbox {
  float: right;
  transform: scale(1.2);
  margin-top: 6px;
}

/* Export dropdown */
.export-dropdown { position: relative; display: inline-block; margin-left: 20px; }
.export-button {
  padding: 8px 16px; background: #d0f0ff; color: #003344;
  border: 1px solid #66cfff; border-radius: 6px; cursor: pointer;
}
.export-button:hover { background: #a3deff; }
.export-options {
  display: none; position: absolute; top: 110%; left: 0; background-color: #f3fbff;
  border: 1px solid #66cfff; box-shadow: 0 4px 8px rgba(0, 60, 90, 0.1);
  z-index: 10; border-radius: 6px; overflow: hidden; min-width: 180px;
}
.export-dropdown:hover .export-options { display: block; }
.export-options button {
  padding: 10px 16px; width: 100%; background: none; border: none;
  text-align: left; font-size: 0.95em; color: #1a3c50; cursor: pointer;
}
.export-options button:hover { background-color: #e1f6ff; }
