/* [Same CSS as before...] */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #e0f7fa 0%, #b2dfdb 100%);
  color: #1a3c34;
  line-height: 1.6;
}

#logo_gsfc{
  border-radius: 10px;
}
.header-banner {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url("img/3640053.jpg") center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}


.header-content h1 {
  font-size: 4em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.header-content p {
  font-size: 1.8em;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-main {
  display: inline-block;
  background: #00796b;
  color: #fff;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.3em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.6s both;
  box-shadow: 0 5px 20px rgba(0, 121, 107, 0.4);
}

.cta-main:hover {
  background: #004d40;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 121, 107, 0.6);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.welcome-section {
  background: white;
  margin: -100px auto 60px;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 10;
}

.welcome-section h2 {
  font-size: 2.8em;
  color: #004d40;
  margin-bottom: 30px;
  font-weight: 700;
}

.welcome-section p {
  font-size: 1.2em;
  line-height: 1.8;
  color: #1a3c34;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.main-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.nav-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.nav-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: #00796b;
}

.nav-card i {
  font-size: 3em;
  color: #00796b;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.nav-card:hover i {
  color: #004d40;
  transform: scale(1.1);
}

.nav-card h3 {
  font-size: 1.4em;
  color: #004d40;
  margin-bottom: 15px;
  font-weight: 600;
}

.nav-card p {
  color: #666;
  font-size: 1em;
}

.register-section {
  background: linear-gradient(135deg, #00796b, #004d40);
  color: white;
  padding: 80px 40px;
  margin: 60px 0;
  border-radius: 20px;
  text-align: center;
}

.register-section h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: 700;
}

.register-form {
  background: white;
  padding: 40px;
  border-radius: 15px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  text-align: left;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  color: #004d40;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00796b;
}

.submit-btn {
  background: #00796b;
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.submit-btn:hover {
  background: #004d40;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 121, 107, 0.4);
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideInUp 0.3s ease;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2em;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #004d40;
}

.modal h2 {
  color: #004d40;
  margin-bottom: 20px;
  font-size: 2em;
}

.modal ul {
  list-style: none;
  padding: 0;
}

.modal ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.modal ul li::before {
  content: "⚗️";
  position: absolute;
  left: 0;
  color: #00796b;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .header-content h1 {
    font-size: 2.5em;
  }

  .header-content p {
    font-size: 1.3em;
  }

  .welcome-section {
    margin-top: -50px;
    padding: 40px 20px;
  }

  .welcome-section h2 {
    font-size: 2em;
  }

  .main-navigation {
    grid-template-columns: 1fr;
  }
}


/* -----------------------------------
   Blended Payment Section Styling
----------------------------------- */
.payment-section {
  background: #f5fffd;
  color: #004d40;
  border-radius: 15px;
  padding: 35px 20px 25px;
  margin-top: 40px;
  text-align: center;
}

.payment-section h3 {
  font-size: 1.8em;
  font-weight: 700;
  color: #004d40;
  margin-bottom: 10px;
}

.payment-section p {
  font-size: 1.05em;
  color: #1a3c34;
  margin-bottom: 25px;
}

.qr-image {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 121, 107, 0.2);
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


#transactionId {
  width: 80%;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
  display: block;
  padding: 12px 15px;
  border: 2px solid #f5fffd;
  border-radius: 8px;
  font-size: 1em;
}

#transactionId:focus {
  outline: none;
  border-color: #00796b;
  box-shadow: 0 0 6px rgba(0, 121, 107, 0.3);
}

/* Disabled button visual style */
.submit-btn:disabled {
  background: #f5fffd;
  cursor: not-allowed;
  box-shadow: none;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .payment-section {
    padding: 25px 15px;
  }

  .qr-image {
    width: 180px;
    height: 180px;
  }

  #transactionId {
    width: 100%;
  }
}


/* scroll instruction section */
/* Continuous scrolling ticker */
.important-ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, #004d40, #00796b);
  color: white;
  font-weight: 500;
  font-size: 1.1em;
  padding: 10px 0;
  position: relative;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: scrollTicker 25s linear infinite;
}

.ticker-content span {
  display: inline-block;
  padding-right: 4rem; /* space between repeats */
}

@keyframes scrollTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}



/* Inquiry Section - Final Version */
.inquery {
  color: white;
  text-align: center;
  padding: 60px 20px;
  width: 100%;
  border-top: none;
  border-radius: 20px;
  box-shadow: none;
  margin: 0px;
}

.inquery h2 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 15px;
}

.inquery p {
  font-size: 1.1em;
  margin: 0px 0;
}

.inquery a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.inquery a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .inquery {
    padding: 40px 15px;
  }

  .inquery h2 {
    font-size: 1.6em;
  }

  .inquery p {
    font-size: 1em;
  }
}

/* GSFC University Logo - Top Left Corner */
.GSFClogo {
  position: absolute;
  top: 20px;
  left: 30px;
  z-index: 1000;
}

.gsfc-image {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gsfc-image:hover {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .GSFClogo {
    top: 10px;
    left: 15px;
  }

  .gsfc-image {
    height: 50px;
  }
}


/* Flash messages */
/* Container for flash messages */
        .flash-container {
            position: fixed;
            top: 20px;
            right: 20px;
            width: auto;
            max-width: 400px;
            z-index: 9999;
        }

        /* Base flash style */
        .flash-message {
            padding: 14px 20px;
            margin-bottom: 10px;
            border-radius: 6px;
            font-family: "Segoe UI", sans-serif;
            font-size: 15px;
            color: #fff;
            opacity: 0.95;
            transition: opacity 0.5s ease-in-out;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            animation: slideIn 0.4s ease;
        }

        /* Message types */
        .flash-message.success {
            background-color: #28a745; /* green */
        }
        .flash-message.error {
            background-color: #dc3545; /* red */
        }

        /* Slide animation */
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

  /* Card Component Styling */
  /* Scoped styles for Research Article Card */
.research-card {
  width: 100vw; /* full horizontal width */
  height: 100vh; /* fill the full screen vertically */
  background-color: #004d40; /* primary color background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
  box-sizing: border-box;
}

.research-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.research-card-description {
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 2rem;
  color: #e0f2f1;
}

.research-card-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #004d40;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.research-card-button:hover {
  background-color: #b2dfdb;
  transform: translateY(-3px);
}

.research-card-button svg {
  vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .research-card {
    padding: 1.5rem;
  }

  .research-card h2 {
    font-size: 1.6rem;
  }

  .research-card-description {
    font-size: 1rem;
  }

  .research-card-button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* form validation */
input.invalid, select.invalid, textarea.invalid {
  border-color: red;
  background-color: #fff6f6;
}

.error-message {
  transition: all 0.2s ease;
}

