/* Prevent horizontal overflow */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}


/* Staff Hero Section */
.staff-hero {
  background: url('TopImages/CommunitySnapNew9.jpg') no-repeat center center/cover;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 2px 2px 8px black;
  font-size: 3rem;
  font-weight: bold;
}

.staff-main-title {
   background: rgba(0, 0, 0, 0.5); /* black, semi-transparent */
    padding: 0.05em 0.3em; /* space around text */
    border-radius: 2em;   /* curved corners */
    display: inline-block; /* shrink wrap around text */
}

/* Staff Section */
.staff-section {
  background-color: #000000; /* blue */
  padding: 3rem 1rem;
  text-align: center;
}

/* Container for grid (if you want grid outside Glide slider) */
.staff-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* Glide slider wrapper */
.glide__slides {
  display: flex;
  gap: 0px;
  justify-content: center;
  padding: 20px 60px;
  overflow: visible;  /* allow active slide to scale without clipping */
}

/* Each slide styling */
.glide__slide {
             /* fixed width */        /* fixed height to prevent jumping */
  background-color: white;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 20px;
  box-sizing: border-box;

  aspect-ratio: 11 / 22; /* width / height ratio */
  height: auto;
  width: auto;

  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* or center if you want */


  /* Default dimmed style */
  opacity: 0.5;
  transform: scale(0.9);
  filter: grayscale(0%);
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
  transform-origin: center; 
}

/* Highlight center/active slide */
.glide__slide--active {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1);
  margin-left: -15px;
  margin-right: -15px;
  z-index: 2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  overflow: visible;
}

/* Staff card content */
.staff-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 15px 0 5px;
  color: #131313;

}

.staff-title {
  font-size: 0.7rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 15px;
}

.staff-name {
  max-height: 2.4em;   /* ~2 lines */
  overflow: visible;
  text-overflow: ellipsis;
}

.staff-title {
  max-height: 1.6em;   /* ~1 line */
  overflow: visible;
  text-overflow: ellipsis;
}

/* Image inside slide */
.glide__slide img {
  width: 100%;
  height: 60%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Contact Section */
.contact-section {
  background-color: #000;
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-box h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.social-links a {
  margin: 0 15px;
  display: inline-block;
}

.social-links img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.1);
}

.email-bar {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
}

.email-bar img {
  width: 24px;
  height: 24px;
}

.email-bar a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-bar a:hover {
  color: #ffeb3b;
}

.location-bar {
  margin-bottom: 15px;
}

/* Invert X logo */
.invert-x {
  filter: invert(1);
}

/* Responsive */
@media (max-width: 768px) {
  .staff-hero {
    font-size: 2rem;
    height: 30vh;
  }

}

@media (max-width: 768px) {
  .glide__track {
    overflow: hidden;
  }

  .glide__slides {
    display: flex;
    gap: 0;
    padding: 0;
    justify-content: center;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .glide__slide {
    width: 90vw;
    max-width: 300px;
    height: 400px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    transform: none;
    opacity: 1;

    scroll-snap-align: center;
  }

  .glide__slide--active {
    transform: none;
    margin: 0 auto;
  }

  .glide__slide img {
    width: 100%;
    height: 65%;
    object-fit: cover;
    border-radius: 10px;
  }

  .staff-name {
    font-size: 1rem;
    margin-top: 10px;
  }

  .staff-title {
    font-size: 0.8rem;
    margin-bottom: 0;
  }
}

/* Governors Section */
.governors-section {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

.governors-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.governors-btn:hover {
  background-color: #0056b3;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Table Styling */
.governors-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.governors-table th, .governors-table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: left;
}

.governors-table th {
  background-color: #007bff;
  color: white;
}

.governors-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.governors-table tr:hover {
  background-color: #f1f1f1;
}


@media (max-width: 480px) {
  .glide__slide {
    width: 95vw;
    height: 360px;
    padding: 10px;
  }

  .glide__slide img {
    height: 65%;
  }
}


html {
  font-size: 16px; /* minimum base font size */
}