.portal-hero {
  background: #00b09b;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #96c93d, #00b09b);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #96c93d, #00b09b);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  padding: 110px 0 100px;
  /* Extra bottom padding for overlap */
  text-align: center;
}

.portal-container {
  margin-top: -60px;
  /* Pulls the card up into the blue area */
  padding-bottom: 60px;
}

.portal-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: none;
}

/* --- Tabs Styling --- */
.portal-tabs .nav-link {
  border-radius: 0;
  padding: 20px;
  font-weight: 600;
  color: #6c757d;
  background-color: #f8f9fa;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  transition: all 0.3s;
}

.portal-tabs .nav-link:hover {
  background-color: #f1f1f1;
  color: #087000;
}

.portal-tabs .nav-link.active {
  background-color: #fff;
  color: #087000;
  border-bottom: 3px solid #087000;
}

.portal-tabs .nav-item {
  flex: 1;
  text-align: center;
}

/* --- Forms --- */
.form-area {
  padding: 50px 30px;
  max-width: 600px;
  margin: 0 auto;
}

.form-control-lg {
  padding: 15px;
  font-size: 16px;
  border: 2px solid #e9ecef;
}

.form-control-lg:focus {
  border-color: #087000;
  box-shadow: none;
}

.icon-header {
  font-size: 48px;
  color: #087000;
  margin-bottom: 20px;
}

/* --- CERTIFICATE RESULT DESIGN (Matching Nam.jpg) --- */
#certificate-result {
  display: none;
  padding: 40px;
  animation: slideUp 0.5s ease-out;
}

.cert-paper {
  background: white;
  /* No border radius or shadow here, keeping it clean like the paper image */
}

.cert-logo {
  text-align: center;
  margin-bottom: 50px;
  color: #4a6fdc;
  /* The blue from the flower logo */
}

/* The specific table look from your reference */
.cert-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.cert-table td {
  padding: 25px 30px;
  border: 1px solid #dee2e6;
  /* Light grey grid lines */
  vertical-align: middle;
}

/* Left Column: Big Labels */
.cert-table td:first-child {
  width: 35%;
  font-size: 28px;
  /* Large font size */
  font-weight: 500;
  color: #000;
  line-height: 1.2;
}

/* Right Column: Normal Text */
.cert-table td:last-child {
  font-size: 20px;
  color: #333;
  font-weight: 400;
}

.cert-footer-text {
  text-align: center;
  font-weight: 700;
  color: #000;
  font-size: 16px;
  margin-top: 30px;
  text-transform: capitalize;
}

.signature-block {
  margin-top: 60px;
  text-align: right;
  padding-right: 20px;
}

.sig-image {
  font-family: "Great Vibes", cursive;
  font-size: 45px;
  color: #000;
  line-height: 1;
  margin-bottom: 10px;
  display: inline-block;
  margin-right: 40px;
  /* Offset for visual balance */
}

.sig-name {
  font-weight: bold;
  font-size: 16px;
  color: #000;
  display: inline-block;
  min-width: 200px;
  text-align: center;
  /* border-top: 1px solid #000; Optional line above name */
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive Tweaks */
@media (max-width: 768px) {
  .portal-hero {
    padding: 60px 0 80px;
  }

  .cert-table td {
    padding: 15px;
  }

  .cert-table td:first-child {
    font-size: 20px;
  }

  .cert-table td:last-child {
    font-size: 16px;
  }
}
