/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #2eaf07;
  color: #333;
  line-height: 1.6;
  padding-bottom: 50px;
}

/* Header */
header {
  background-color: #08630c;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

header .info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header .info p {
  font-size: 1.1rem;
  font-weight: 300;
}

/* Group selector and register button */
.logo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #e0e7ff;
}

.logo select {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.btn button {
  padding: 0.6rem 1.2rem;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn button:hover {
  background-color: #003060;
}

/* Popup modal */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* Dimmed backdrop */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}
form::-webkit-scrollbar {
  display: none;
}
.popup.active {
  visibility: visible;
  opacity: 1;
}

.popup form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Close button */
.popup img#close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 24px;
  cursor: pointer;
}

/* Form elements */
.popup h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #004080;
}

.popup label {
  font-weight: 600;
  margin-top: 1rem;
  display: block;
}

.popup input,
.popup select,
.popup textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.popup textarea {
  resize: vertical;
  min-height: 80px;
}

.popup button[type="submit"] {
  margin-top: 1.5rem;
  background-color: #004080;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.popup button[type="submit"]:hover {
  background-color: #003060;
}

/* Alumni cards */
.row1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

figure {
  background-color: rgb(8, 126, 14);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 1rem;
  text-align: center;
}

figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

figure span p {
  font-weight: bold;
  margin-top: 0.5rem;
}

figcaption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #f1e8e8;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  header .info h1 {
    font-size: 1.5rem;
  }

  .popup form {
    padding: 1rem;
  }

  .logo {
    flex-direction: column;
    align-items: stretch;
  }

  .btn button {
    width: 100%;
  }
}
