/*
 * Globals
 */


/* Custom default button */
.btn-light,
.btn-light:hover,
.btn-light:focus {
  color: #333;
  text-shadow: none; /* Prevent inheritance from `body` */
}


/*
 * Base structure
 */

body {
  text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);
}

.cover-container {
  max-width: 42em;
}

img {
  border-radius: 10px;
}

.small-font {
  font-size: 0.75rem;
}

.fade {
  transition: opacity 0.5s ease;
  opacity: 0;
  visibility: hidden; /* Initially hidden */
  height: 0; /* Prevents taking up space */
  overflow: hidden; /* Prevents overflow when height is 0 */
}

.fade.in {
  opacity: 1;
  visibility: visible; /* Show when fading in */
  height: auto; /* Allow height to adjust */
}

/*
 * Header
 */

.nav-masthead .nav-link {
  color: rgba(255, 255, 255, .5);
  border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}

.content-section {
    display: none; /* Initially hide all sections */
}

.content-section.active {
    display: block; /* Show the active section */
}

/* Testimonials — mobile adjustments */
@media (max-width: 767.98px) {
  #testimonials .testimonial .row.g-0 {
    flex-direction: column;
    align-items: stretch;
  }
  #testimonials .testimonial .col-auto {
    padding: 0.5rem;
    width: 100%;
  }
  #testimonials .testimonial .col-auto img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
  }
  #testimonials .testimonial .col {
    padding: 0.5rem;
  }
  #testimonials .testimonial .card-body {
    padding: 0.5rem 0.75rem;
  }
  #testimonials .testimonial .card-body p {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }
  #testimonials #testimonials-list {
    gap: 0.5rem;
  }
  #testimonials .testimonial {
    margin-bottom: .75rem;
  }

  /* Reduce overall font sizes on small screens for better fit */
  body {
    font-size: 14px; /* slightly smaller base font */
    line-height: 1.4;
  }

  .cover-container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }

  h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  h3, h4, h5 {
    font-size: 1.05rem;
  }

  p.lead {
    font-size: 1rem;
  }

  .card-text,
  .card-body p {
    font-size: 0.95rem;
  }

  .nav-masthead .nav-link {
    font-size: 0.9rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.45rem 0.6rem;
  }

  /* Make all buttons easy to tap and use on small screens */
  .btn,
  a.btn,
  button.btn,
  input[type="button"],
  input[type="submit"],
  input[type="reset"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  /* Center icon and text inside About page LinkedIn button */
  #about-content .btn {
    justify-content: center !important;
  }

  /* Lists — reduce size and tighten spacing on small screens */
  ul,
  ol {
    font-size: 0.95rem;
    margin-left: 1rem;
  }

  ul.lead,
  ol.lead {
    font-size: 0.95rem;
  }

  .content-section ul,
  .content-section ol {
    margin-left: 1rem;
  }

  .content-section li {
    margin-bottom: 0.35rem;
    line-height: 1.35;
  }

  /* Services page — reduce crowding on small screens */
  #services-content .container {
    padding-left: 0;
    padding-right: 0;
  }

  #services-content img.img-fluid {
    max-height: 160px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border-radius: 8px;
  }

  #services-content .card {
    margin-bottom: 0.6rem;
  }

  #services-content .card .card-body {
    padding: 0.75rem;
  }

  #services-content h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  #what-you-walk-away-with {
    font-size: 1rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
  }

  #testing-assessment-service ul.lead {
    font-size: 0.95rem;
    margin-left: 0.9rem;
  }

  /* Make CTAs easy to tap on mobile */
  #services-content .btn,
  #services-content a.btn-lg,
  #services-content a.btn-sm {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    text-align: center;
  }
}
