/* push content away from header/footer */
.page-content {
  padding-top: 80px;    /* header height */
  padding-bottom: 60px;  /* footer height */
  color: white;
}

.page-content section {
  max-width: 900px;    /* limit line length */
  margin: 0 auto;       /* center horizontally */
  padding: 2rem 1rem;   /* vertical + some horizontal breathing room */
  scroll-margin-top: 132px;  /* ≈ your header height */
  text-align: justify;
  font-size: 1.1rem;
}

.page-content a { color: white; }

/* center the form */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

/* each row stacks label + field */
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: white;
}

/* make all inputs + textarea fill the width */
.form-row input,
.form-row textarea {
  width: 100%;
  font-size: 1.6rem;
  padding: 0.5rem;
  box-sizing: border-box;
}

/* style the button */
.form-row button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: #0096c7;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form-row button:hover {
  background: #007fa1;
}

/* override the column layout just for the checkbox row */
.form-row--checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;       /* vertical align */
  justify-content: flex-start;
  gap: 0.5rem;               /* nice small gap */
  margin-bottom: 1rem;
}

/* enlarge the box but kill its default margins */
.form-row--checkbox input[type="checkbox"] {
  transform: scale(1.8);
  margin: 0;
  transform-origin: 0 0;
}

/* style the label text */
.form-row--checkbox label {
  margin: 0;                 /* no extra top/bottom margin */
  font-size: 1.125rem;
  color: white;
}

/*
.page-content h2 { color: #fff; }
*/
/*
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
*/
.portal-btn {
  margin-left: auto; /* push this to far right */
}

.portal-btn a {
  background-color: #4CAF50;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.portal-btn a:hover {
  background-color: #45a049;
}

.mobile-nav .portal-btn {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav .portal-btn a {
  display: block;
  padding: 10px 16px;
  margin: 8px auto;
  background-color: #28a745; /* green */
  color: white;
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
  width: 80%; /* or 100% if you want full-width */
  text-decoration: none;
}
/*
#capabilities {
  position: relative;
  /*background: url('https://picsum.photos/1200/600?blur=2') center/cover no-repeat;
  color: white;
  padding: 60px 20px;
  overflow: hidden;
}

#capabilities h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}
*/

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 80%;
}

.carousel-card {
  background: rgba(0,0,0,0.7);
  border-left: 3px solid #f0a500;
  border-radius: 8px;
  /*width: 550px;*/
  width: 300px;
  margin: 0 15px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

@media (min-width: 800px) {
  .carousel-card {
    width: 600px;
  }
}

.carousel-card:hover {
  transform: translateY(-5px);
}

.carousel-card h3 {
  color: #f0a500;
  margin-top: 0;
}

.carousel-btn {
  background: #f0a500;
  border: none;
  color: white;
  font-size: 1.1em;
  border-radius: 50%;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  transition: background 0.3s;
  line-height: 0; 
}

.carousel-btn:hover {
  background: #d58f00;
}

.carousel-card img {
  width: 63%;
  height: auto;               /* keep native proportions */
  /* aspect-ratio: 16 / 9;       ensures consistent shape across cards */
  /* object-fit: contain;  don’t crop, keep full picture */
  border-radius: 6px;
  margin-bottom: 10px;
  margin-inline: auto;   /* center horizontally in LTR/RTL */
  display: block;
  image-rendering: -webkit-optimize-contrast; /* sharper on some browsers */
}

.carousel-card video {
  width: 100%;
  height: auto;               /* keep native proportions */
  aspect-ratio: 16 / 9;       /* ensures consistent shape across cards */
  /*object-fit: cover;           crops instead of stretching */
  border-radius: 6px;
  margin-bottom: 10px;
  display: block;
}

.carousel-card p {
  /* tune these two to your taste */
  --lh: 1.25rem;          /* line-height in rem/px */
  --lines: 3;  
  margin: 0 0 8px;

  line-height: var(--lh);
  height: calc(var(--lh) * var(--lines));      /* exactly 3 lines tall */
  overflow: hidden;

  /* multi-line clamp + ellipsis where supported */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lines);            /* Chrome/Safari/Edge */
  line-clamp: var(--lines);                     /* modern spec (FF ≥ 121) */
  /*text-align: start;         or 'left' if you prefer */
  /*text-align-last: auto;     avoid stretching last line */
  /*text-justify: auto;        cancel full justification */
}

/* small screens: 9 lines */
@media (max-width: 800px) {            /* pick your breakpoint */
  .carousel-card p { --lines: 6; }
}

@media (max-width: 800px) {
  .carousel {
    /* grid with outer button columns and a wide center track */
    display: grid; 
    width: 100%;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "track track track"
      "prev  .     next";
    row-gap: 8px;
    align-items: center;
    justify-items: stretch;   /* let areas span their columns */
  }

  .carousel-track {
    grid-area: track;
    width: 100%;
  }

  .carousel-btn.left  { grid-area: prev;  justify-self: start; margin-left: 20px;  }
  .carousel-btn.right { grid-area: next;  justify-self: end; margin-right: 5px; }
  .carousel-btn { margin: 0; } /* optional tidy */
}