/* Base styles */
body {
  background-color: #fff;
  color: #073689;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 30px 0;
  min-height: 100vh;
  background-image: linear-gradient(to bottom, rgba(255,255,255,1) 30%, rgba(255,255,255,0.5) 100%), url("../img/bg-alumni_loop.png");
  background-repeat: no-repeat, repeat;
  background-size: contain;
  display: flex;
  justify-content: center;
  align-items: center;
}

a {
  text-decoration: none;
}

/* Form box */
.form-container {
  max-width: 800px;
  width: 100%;
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* --- Fix for mobile --- */
@media (max-width: 768px) {
  body {
    display: block;          /* Disable flex centering */
    padding: 20px;           /* Add breathing room */
  }

  .form-container {
    margin: 20px auto;       /* Center using margin */
    min-height: auto;        /* Allow natural height */
  }
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

h1 {
  text-align: center;
  font-weight: 700;
  color: #073689;
  margin-bottom: 30px;
}

#continueBtn {
  background: white;
  color: #510170;
  font-size: 0.9rem;
  text-decoration: none;
}

#continueBtn:hover{
  font-weight: 500;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #E4007D;
  text-align: center;
  animation: fadeInText 0.5s forwards;
}

.postgraduate-opt {
  display: none;
  animation: fadeIn 0.5s forwards;
}

.btn-unimel {
  /* background-color: #073689; */
  background: linear-gradient(45deg, #6c036e 0%, #E4007D 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  transition: 0.3s;
  font-weight: 400;
  width: 100%
}

.btn-unimel-2 {
  background-color: #959595;
  color: #fff;
  border: none;
  border-radius: 12px;
  transition: 0.3s;
  font-weight: 400;
  width: 100%
}

.btn-unimel:hover {
  background: linear-gradient(45deg, #6c036e 0%, #E4007D 50%, #6e0367 100%);
  color: #fff;
  font-weight: bold;
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-unimel-2:hover {
  background-color: #6f6f6f;
  color: #fff;
  font-weight: bold;
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#postgraduate-menu .card {
  border: 2px solid #073689;
  background-color: #073689;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  color:white;
  font-weight: bold;
  font-size: 20px;
}

#postgraduate-menu .card:hover {
  transform: translateY(-5px);
  background-color: #02296c;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.lang-toggle {
  float: right;
  cursor: pointer;
  font-weight: 600;
  color: #E4007D;
}

label {
  font-weight: 500;
  margin-top: 15px;
}

.required::after {
  content: " *";
  color: #E4007D;
}

.flag-select img {
  width: 30px;
  height: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.flag-select img:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.list-group-item a {
  text-decoration: none;
  color: #007bff;
}

.list-group-item a:hover {
  text-decoration: underline;
}

.progress { background: #f1f1f1; border-radius: 5px; overflow: hidden; }
.progress-bar {
  background-color: #007bff;
  color: #fff;
  text-align: center;
  transition: width 0.4s ease;
}

/* .filename-link {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: break-word;
} */

/* OR for ellipsis version */
.filename-link-ellipsis {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

 @keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}