/* ===== Styles specific to the Applications page ===== */

/* Override for the main content area on the Applications page */
main {
  max-width: 1200px; /* Keep default width for the Applications page */
  min-height: 80vh;
}

/* ===== Application Navigation Bar ===== */
.app-nav {
  background: linear-gradient(135deg, #f9f9f9 0%, #f1f1f1 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 4rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  opacity: 0;
  animation: fadeInBanner 0.8s ease-in forwards;
  animation-delay: 0.6s;
  text-align: center;
}

.app-nav h3 {
  margin-bottom: 2rem;
  color: #3bb3b3;
  font-size: 1.5em;
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: bold;
}

.nav-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-main-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-main-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(59, 179, 179, 0.15);
  border-color: #3bb3b3;
}

.nav-main-item h4 {
  margin: 0 0 1rem 0;
  color: #111;
  font-size: 1.2em;
  font-weight: bold;
}

.nav-sub-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nav-item-link {
  color: #111;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  background: #f9f9f9;
}

.nav-item-link:hover {
  background: #3bb3b3;
  color: white;
  transform: scale(1.05);
  border-color: #3bb3b3;
  box-shadow: 0 2px 8px rgba(59, 179, 179, 0.3);
}

.nav-item-link.primary {
  background: #3bb3b3;
  color: white;
  border-color: #3bb3b3;
  font-weight: 600;
}

.nav-item-link.primary:hover {
  background: #2a9999;
  border-color: #2a9999;
}

/* ===== Application Content Sections ===== */
.application-section {
  margin-bottom: 4rem;
  padding: 2rem 0;
  border-bottom: 2px solid #f0f0f0;
  opacity: 0;
  animation: fadeInBanner 0.8s ease-in forwards;
}

.application-section:nth-of-type(2) {
  animation-delay: 1.0s;
}

.application-section:nth-of-type(3) {
  animation-delay: 1.4s;
}

.application-section:nth-of-type(4) {
  animation-delay: 1.8s;
}

.application-section:nth-of-type(5) {
  animation-delay: 2.2s;
}

.application-section:nth-of-type(6) {
  animation-delay: 2.6s;
}

.application-section:nth-of-type(7) {
  animation-delay: 3.0s;
}

.application-section:nth-of-type(8) {
  animation-delay: 3.4s;
}

.application-section:last-of-type {
  border-bottom: none;
}

.app-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.app-text {
  flex: 1.2;
}

.app-text h2 {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 2.2em;
  margin-bottom: 1rem;
  color: #111;
}

.app-text h3 {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 1.8em;
  margin-bottom: 1rem;
  color: #3bb3b3;
}

.app-text p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.highlight-stat {
  background: #e6f7ff;
  padding: 1rem;
  border-left: 4px solid #3bb3b3;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

.highlight-stat strong {
  color: #3bb3b3;
  font-size: 1.2em;
}

.app-visual {
  flex: 1;
  text-align: center;
}

.app-image {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.app-image:hover {
  transform: translateY(-5px);
}

.image-caption {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
}

/* ===== Data Display Cards ===== */
.data-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.data-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.data-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.data-card h4 {
  color: #3bb3b3;
  font-size: 1.1em;
  margin-bottom: 0.5rem;
}

.data-card .stat {
  font-size: 2em;
  font-weight: bold;
  color: #111;
  margin: 0.5rem 0;
}

.data-card .description {
  color: #666;
  font-size: 0.9em;
}

/* ===== Responsive design for application pages ===== */
@media (max-width: 900px) {
  .nav-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav-main-item {
    padding: 1.5rem;
  }
  
  .app-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .app-text h2 {
    font-size: 1.8em;
    text-align: center;
  }
  
  .app-text h3 {
    font-size: 1.5em;
    text-align: center;
  }
  
  .data-cards {
    grid-template-columns: 1fr;
  }
  
  .arrow-up {
    bottom: 10vh;
  }
  
  .arrow-down {
    bottom: 3vh;
  }
}

@media (max-width: 600px) {
  .nav-main-item,
  .application-section {
    padding: 2rem 1.5rem;
  }
  
  .app-visual img {
    max-width: 90vw;
  }
}