/* Skip to Content Link Styling */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
  }
  
  .skip-link:focus {
    top: 0;
  }
  
  /* Global Focus State */
  :focus,
  .card:focus,
  .card:focus-visible,
  .card-link:focus,
  .card-link:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3);
    transform: scale(1.02);
    transition: all 0.2s ease;
  }
  
  /* Card Hover and Focus Effects */
  .card,
  .card-link {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
  }
  
  .card:hover,
  .card-link:hover,
  .card:focus-within,
  .card-link:focus {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
  
  /* Card Image Styling */
  .card-img-top {
    height: 200px;
    object-fit: cover;
  }
  
  /* Section Title and Subtitle Styling */
  .section-title {
    font-weight: 600;
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    color: #6c757d;
  }
  
  /* Hero Section Background */
  .hero-section {
    background-color: #eaf6fb;
  }
  
  /* Platform Section Background */
  .platform-section {
    background-color: #eaf6fb;
  }
  
  /* Footer Styling */
  .footer {
    background-color: #0d1b2a;
    color: #ffffff;
  }
  
  /* Button Enhancement */
  .btn-primary {
    background-color: #005fcc;
    border-color: #005fcc;
  }
  
  .btn-primary:hover,
  .btn-primary:focus {
    background-color: #004ba0;
    border-color: #004ba0;
  }
  
  /* Accessibility: Ensure High Contrast for Text Elements */
  .bg-dark,
  .footer {
    color: #ffffff;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 767px) {
    .section-title {
      font-size: 1.5rem;
    }
  
    .section-subtitle {
      font-size: 0.875rem;
    }
  }

  /* back to top */
  #btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
}

.underlined {
  position: relative;
  display: inline-block;
}

.underlined::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.1em;       /* fine-tunes the distance below the text */
  width: 100%;
  height: 5px;         /* the thickness of the underline */
  background-color: #624bff; /* purple-blue underline color */
  z-index: -1;         /* places the underline behind the text */
}