:root {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

main {
  padding-top: 80px; /* match header height */
}

/* ========== BASE STYLES ========== */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

/* ========== HERO SECTION ========== */
#Home {
  position: relative;
  overflow: hidden;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video Background */
video, .video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; 
}

/* Optional background fallback image */
.background-image {
  position: absolute;
  padding-top: 0;
  inset: 0;
  width: 100% ;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Binary grid animation layer 
#binarygrid-canvas,
#my-canvas-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
*/

/* Overlay gradient (BLACK) */
.black-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.875) 0%,
    rgba(16, 12, 12, 0.781) 50%,
    rgba(0, 0, 0, 0.989) 100%);
  z-index: 2;
}

/* Foreground content */
.content, .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: rgb(0, 0, 0);
  padding: 2rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.rvt-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.rvt-card--raised {
  transition: transform 0.3s ease-in-out;
  border-radius: 16px !important;
}

.rvt-card--raised:hover {
  transform: scale(1.015);
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #7A1705;
    border-radius: 50%;
    width: 40px;       /* circle size */
    height: 40px;
}

.icon-circle img {
    width: 25px;
    height: 25px;
}

/* ========== HERO TEXT STYLES ========== */

.hero-title {
  font-size: 5rem;
  font-weight: 700;
  color: rgb(255, 255, 255);
  margin-top: 3rem;
  margin-bottom: 1rem;
  margin-left: 2rem;
  margin-right: 2rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: rgb(139, 138, 138);
}

/* ========== BUTTONS ========== */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.rvt-button--crimson {
  background-color: #006298;
  color: white;
  border: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  border-radius: 24px;
  transition: background-color 0.2s ease;
}
.rvt-button--crimson:hover {
  background-color: #004f80;
  color: white;
}

.rvt-button--outline-white {
  background-color: rgb(0, 0, 0); 
  color: rgb(251, 251, 251);
  border: 2px solid rgb(0, 0, 0);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  border-radius: 24px;
  transition: all 0.2s ease;
}
.rvt-button--outline-white:hover {
  background-color: #070707;
  color: #ffffff;
}

/* ========== GALLERY ========== */
.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
}
.gallery-window {
  overflow: hidden;
  touch-action: pan-y;
  width: 100%;
}
.gallery-track {
  display: flex;
  transition: transform 0.45s ease;
  cursor: grab;
}

.gallery-track.dragging {
  transition: none;
  cursor: grabbing;
}

.gallery-track:active {
  cursor: grabbing;
}

.gallery-item {
  flex: 0 0 25%; /* 4 images visible */
  padding: 1rem;
  width: 25%;
  flex-shrink: 0;
  aspect-ratio: 3 / 4; /* change to 1 / 1 or 16 / 9 if you want */
}

.gallery-item img {
  box-shadow: 0 0 10px rgba(186, 185, 185, 0.5);
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;     /* makes image fill container */
}


/* Arrow buttons */
.gallery-btn {
  position: absolute;
  top: 53%;
  background: white;
  border: 2px solid var(--rvt-color-blue-300, #ddd);
  color: var(--rvt-color-blue-300, #333);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;

  transform: translateY(-50%) scale(0.9);

  cursor: pointer;
  opacity: 0.3; /* partially visible even when idle */
  pointer-events: auto;
  
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: arrowPulse 2s infinite alternate; /* idle pulsing */
}
@keyframes arrowPulse {
  0% { opacity: 0.3; transform: translateY(-50%) scale(0.9); }
  50% { opacity: 0.45; transform: translateY(-50%) scale(0.95); }
  100% { opacity: 0.3; transform: translateY(-50%) scale(0.9); }
}


.gallery-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1); /* grow slightly on hover */
  animation: none;
}

.gallery-btn--left {
  left: -70px;
}

.gallery-btn--right {
  right: -70px;
}

/* Show fully on drag */
.gallery-wrapper.dragging .gallery-btn {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
  animation: none; /* stop pulsing during drag */
}

.gallery-wrapper.dragging {
  user-select: none;
}

.gallery-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.gallery-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ========== LIST STYLES ========== */
.officer-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  
  justify-content: center; /* Centers items horizontally */
  align-items: center; 
  ;
}
.officer-bullets li {
  margin-bottom: 0.25rem; /* space in-between list items */
}


/* ========== RESPONSIVE ========== */
@media (max-width: 640px) { /* Changed min-width --> max-width for mobile view */
  .hero-title {
    font-size: 3rem;
  }

  .officer-bullets {
    padding-left: 5.5rem;
    font-size: 0.875rem; /* Slightly smaller font for mobile */
  }

  /*Li's Quote Section*/
  #quote {
    font-size: 1.5rem !important;
  }

  #quote-container {
    margin-right: 0 !important;
  }

  #Li-Will-img {
    max-height: 55vh; 
    width: auto; 
    margin: 0 auto;
  }

  /* Gallery Section */
  .gallery-item {
    flex: 0 0 100%; /* 1 image visible on small screens */
    height: 55vh;
    width: 25vw;
    padding: 0 15vw;
    margin: 0 auto;
  }

  .gallery-btn--left {
    left: 10px;
  }

  .gallery-btn--right {
    right: 10px;
  }

}

@media (min-width: 640px) { /* Changed max-width --> min-width for desktop view */
  .button-group {
    flex-direction: row;
  }

  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 768px) {
  .hero-content {
    padding: 3rem 2rem;
  }
}


/* ========== ARTICLE GALLERY ========== */

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 400px;
  max-height: 400px;
  position: relative;
  margin: auto;
  margin-bottom: 2rem !important;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: #006298
}

/* Caption text */
.text {
  color: #006298;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #000000;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  margin-top: 6rem !important;
  margin-bottom: 2rem !important;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}