/* Color palette for WCAG 2.1 AA Compliance */
:root {
  --accessible-pink: #C04B5B; /* Darkened for white text contrast */
  --dark-text: #212529;
  --focus-blue: #0056b3;
  --body-gray: #595959;
}

body, html {
    height: 100%;
    margin: 0;
    font: 400 15px/1.8 "Lato", sans-serif;
    color: var(--body-gray);
  }
  
  .bgimg-1, .bgimg-2, .bgimg-3 {
    position: relative;
    opacity: 0.65;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #000; /* Fallback for white text */
  
  }
  .bgimg-1 {
    background-image: url(/assets/slide04-03371596ed451aff08bd050ae4a4308074414187b572c73df8137b5618b36468.jpg);
    min-height: 100%;
  }
  
  .bgimg-2 {
    background-image: url(/assets/slide03-2b5f30c6e03e83df4dccc88cf7bd437eb020261932553104efea5e470b61f40f.jpg);
    min-height: 400px;
  }
  
  .bgimg-3 {
    background-image: url(/assets/slide02-ddb0ee76cc013fcc9d1b6a9b347613b2b71af648884b3cd1c5048e2351a4be99.jpg);
    min-height: 400px;
  }

  /*
  .landimg-1 {
    background-image: url(/assets/IMG_9864-57e620d5c695b67ee940c46c84234b1e4d4986fc96fff8d87cc1d6b3b1a20cf1.jpg);
    min-height: 100%;
  }
    */

  .landimg-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Darkens the image slightly */
  z-index: 1;
}

  .landimg-2 {
    background-image: url(/assets/IMG_9850-a12561f814682fb0c8d3fe55d1a747b057fd23347bc68be50157df53678b517a.jpg);
    min-height: 100%;
  }

/* 1. Ensure the container is the reference point */
.landimg-3 {
  position: relative; 
  background-image: url(/assets/IMG_9844-c787e1802b4d176a177f195aa6b07d8c9ec910e65acfb62938286ce80c78e524.jpg);
  min-height: 100vh; /* Changed to vh for full screen height */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 2. Properly place the overlay */
.landimg-3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Darkens the image */
  z-index: 1; /* Sits above image, below text */
}

/* 3. Ensure caption content sits on top */
.caption {
  position: relative; 
  z-index: 2; /* Must be higher than the overlay's z-index */
  width: 100%;
  text-align: center;
}

  .caption span.border {
    background-color: #C04B5B; 
    color: #fff;
    padding: 20px;
    font-size:5vw;
    /*font-size: 25px; */
    white-space: normal;
    /*letter-spacing: 10px;*/
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  h3 {
    /*letter-spacing: 5px; */
    text-transform: uppercase;
    font: 20px "Lato", sans-serif;
    color: #111;
  }
  
  /* Turn off parallax scrolling for tablets and phones */
  @media only screen and (max-device-width: 1024px) {
    .bgimg-1, .bgimg-2, .bgimg-3 {
      background-attachment: scroll;
    }
  }

  /* Sign In link */
.text-right.fs-2 a {
  color: var(--focus-blue);
  transition: color 0.2s ease-in-out;
}

.text-right.fs-2 a:hover, 
.text-right.fs-2 a:focus {
  color: #003d7a; /* Darker blue on hover/focus */
  text-decoration: underline !important;
}

.alert-box {
  background-color: #FFF3CD;
  color: #856404;
  padding: 1rem;
  border: 1px solid #FFEEBA;
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-card {
  background-color: var(--accessible-pink);
  color: #FFFFFF;
  padding: 2.5rem;
  border-radius: 4px;
  text-align: center;
  
}

.welcome-card   h1 { margin: 0; font-size: 2rem; }

.btn-primary {
  display: inline-block;
  background-color: #FFFFFF;
  color: var(--dark-text);
  border: 2px solid var(--dark-text);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
}

  /* WCAG Requirement: Distinct Focus State */
.btn-primary:focus {
    outline: 4px solid var(--focus-blue);
    outline-offset: 2px;
  }
  
.btn-primary:hover {
    background-color: #F8F9FA;
  }

  .name_s {
    font-size: .8125rem;
    font-weight: 600; /* Added weight because the font size is small */
    color: inherit;    
}

.subdued-tail {
  /* Semi-transparent background to let autumn colors peek through */
  background-color: rgba(233, 236, 239, 0.8);
  /*rgba(255, 255, 255, 0.7); */
  
  /* Frosted glass effect for a modern, subdued look */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Subtle separation from the main image */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  margin-top: auto; /* Keeps it at the bottom of the viewport if using flexbox */
}

.footer-logo {
  /* Softens the logo brightness so it's less jarring */
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.2s ease;
  max-height: 70px; /* Maintains your h70 preference */
}

.footer-link:hover .footer-logo,
.footer-link:focus .footer-logo {
  opacity: 1;
  transform: scale(1.02); /* Subtle feedback for keyboard/mouse users */
}

/* Ensure focus indicator for the link is visible on the light background */
.footer-link:focus {
  outline: 3px solid var(--focus-blue);
  outline-offset: 4px;
}

/* 1. Base styles for interactive elements to enable smooth transitions */
/* Expand the hit area for the Sign In link */
.btn-signin-nav {
  padding: 8px 12px; /* Expands the clickable hit-zone */
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.btn-signin-nav:hover {
  background-color: rgba(0, 0, 0, 0.05); /* Subtle feedback */
  transform: scale(1.05); /* Your preferred hover effect */
}

/* High-contrast focus ring for WCAG AA */
.btn-signin-nav:focus-visible {
  outline: 3px solid #0056b3;
  outline-offset: 4px;
}

.btn-join-main, 
.link-more-info {
  display: inline-block;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease, outline-offset 0.2s ease;
}

/* 2. Hover Transform - The "Pop" effect */
.btn-join-main:hover, 
.link-more-info:hover {
  transform: scale(1.05); /* Scales up by 5% */
}

/* 3. High-Contrast Focus Ring (WCAG 2.1 AA) */ 
.btn-join-main:focus-visible, 
.link-more-info:focus-visible {
  outline: 3px solid var(--focus-blue) !important;
  outline-offset: 4px;
  transform: scale(1); /* Keeps scale neutral during focus for stability */
}
