.page:not(#home) .slide {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  width: 100% !important;
  height: 100% !important;
}
.page:not(#home) .slideshow {
  position: relative;
  height: 500px;
  margin-bottom: 0;
  overflow: hidden;
}
.page:not(#home) .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  opacity: 1;
  animation: none;
  transition: none;
  display: none;
}
.page:not(#home) .slide:first-child {
  display: block;
}
.page:not(#home) .slide ~ .slide {
  display: none !important;
}

/* Hide extra slides if any exist on non-home pages */
.page:not(#home) .slide ~ .slide {
  display: none !important;
}
.page:not(#home) .slide:first-child {
  display: block;
}
.page:not(#home) .slide ~ .slide {
  display: none !important;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  transition: all 0.3s ease;
}

header:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #6b46c1;
  letter-spacing: 1px;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  color: #553c9a;
}

nav {
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 5px;
  transition: transform 0.3s ease;
}

nav ul:hover {
  transform: translateX(0);
}

nav li {
  margin: 0 8px;
  position: relative;
  transition: transform 0.3s ease;
}

nav li:hover {
  transform: scale(1.1);
}

nav a {
  color: #4a5568;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
  color: #6b46c1;
  text-shadow: 0 0 5px rgba(107, 70, 193, 0.5);
}

.dropdown {
  position: relative;
}

.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 20px;
  background: transparent;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 200px;
  top: calc(100% + 15px);
  left: -10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: #4a5568;
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  background: #f7fafc;
  color: #6b46c1;
  transform: translateX(5px);
}

.staff-login {
  background: linear-gradient(135deg, #6b46c1 0%, #553c9a 100%);
  color: #fff;
  padding: 12px 24px;
  flex-shrink: 0;
  justify-self: end;
  margin-right: 0;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(107, 70, 193, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: 10px;
  margin-right: 10px;
  font-size: 15px;
  white-space: nowrap;
  display: inline-block;
}

.staff-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(107, 70, 193, 0.5);
}



.page {
  display: none;
  padding: 80px 30px 20px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.page.active {
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Home page slideshow only */
#home .slideshow {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  margin-top: 80px; /* Lower banner to create a small gap with header */
}



.slideshow:hover {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}



/* Home page slideshow images */
#home .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 24s infinite;
  transition: opacity 0.5s ease;
}

/* Non-home pages: show only one image, no animation, no absolute */
/* Make non-home page images same height as home page slideshow */
.page:not(#home) .slideshow {
  position: relative;
  height: 500px;
  margin-bottom: 0;
}
.page:not(#home) .slide {
  position: relative;
  width: 100%;
  height: 500px;
  opacity: 1;
  animation: none;
  transition: none;
}

/* Banner text bottom left for non-home pages */
.page:not(#home) .banner-text {
  position: absolute;
  left: 30px;
  bottom: 30px;
  top: auto;
  transform: none;
  font-size: 32px;
  background: rgba(0,0,0,0.5);
  padding: 10px 20px;
  border-radius: 5px;
  color: #fff;
  z-index: 2;
}

/* Ensure .slideshow is not too tall on non-home pages */
.page:not(#home) .slideshow {
  max-width: 100%;
  overflow: hidden;
}

@keyframes fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  17% { opacity: 1; }
  22% { opacity: 0; }
  100% { opacity: 0; }
}

.slide.active {
  opacity: 1;
}

/* Always show overlay/banner text on all slideshows */
.overlay-text, .banner-text {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }
.slide:nth-child(4) { animation-delay: 12s; }
.slide:nth-child(5) { animation-delay: 16s; }
.slide:nth-child(6) { animation-delay: 20s; }

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.2);
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 10px 20px;
  background: rgba(107, 70, 193, 0.7);
  border-radius: 8px;
  /* Removed hover animation as requested */
}

.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
  flex-wrap: wrap;
  transition: transform 0.3s ease;
}

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

.stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h2 {
  font-size: 28px;
  color: #6b46c1;
  margin: 10px 0;
  transition: color 0.3s ease;
}

.stat-card h2:hover {
  color: #553c9a;
}

.stat-card p {
  font-size: 14px;
  color: #718096;
  transition: color 0.3s ease;
}

.stat-card p:hover {
  color: #4a5568;
}

.banner {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 80px; /* Lower banner to create a small gap with header */
}

.banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.banner-text {
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 5px;
  transition: transform 0.3s ease, font-size 0.3s ease;
}

.banner-text:hover {
  transform: scale(1.1);
  font-size: 52px;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.8;
  color: #2d3748;
  transition: opacity 0.3s ease;
}

.content:hover {
  opacity: 0.95;
}

.network-map {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.network-map:hover {
  transform: scale(1.02);
}

.network-map img {
  width: 100px;
  margin: 0 20px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.network-map img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.network-line {
  flex: 1;
  height: 2px;
  background: #cbd5e0;
  transition: background 0.3s ease;
}

.network-line:hover {
  background: #a0aec0;
}

.exec-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  flex-wrap: wrap;
  transition: transform 0.3s ease;
}

.exec-cards:hover {
  transform: translateY(-5px);
}

.exec-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.exec-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.exec-card img:hover {
  transform: scale(1.05);
}

.exec-card h3 {
  font-size: 20px;
  color: #6b46c1;
  margin: 10px 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.exec-card h3:hover {
  color: #553c9a;
  transform: scale(1.05);
}

.exec-card p {
  font-size: 14px;
  color: #718096;
  margin: 5px 0;
  transition: color 0.3s ease;
}

.exec-card p:hover {
  color: #4a5568;
}

.discord-box {
  background: #6b46c1;
  padding: 20px;
  text-align: center;
  margin: 20px auto;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

.discord-btn {
  background: #fff;
  color: #6b46c1;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.discord-btn:hover {
  background: #6b46c1;
  color: #fff;
  transform: translateX(5px);
}

footer {
  background: #2d3748;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: auto;
  transition: background 0.3s ease;
}

footer:hover {
  background: #1a202c;
}

footer a {
  color: #a0aec0;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #edf2f7;
}

@media (max-width: 768px) {
  header {
    grid-template-columns: 1fr;
    padding: 10px 15px;
    gap: 10px;
  }

  .logo {
    font-size: 22px;
    text-align: center;
  }

  nav {
    order: 2;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  nav li {
    margin: 0 5px;
  }

  nav a {
    font-size: 14px;
  }

  .dropdown::after {
    display: none;
  }

  .dropdown-content {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 200px;
    max-width: 90vw;
  }

  .dropdown:hover .dropdown-content {
    transform: translateX(-50%) translateY(0);
  }

  .staff-login {
    justify-self: center;
    padding: 10px 20px;
    font-size: 14px;
    order: 3;
  }

  .slideshow {
    height: 300px;
  }

  .banner-text {
    font-size: 36px;
  }

  .content {
    padding: 20px;
  }

  h1 {
    font-size: 28px;
  }

  .stats, .exec-cards {
    flex-direction: column;
    align-items: center;
  }

  .stat-card, .exec-card {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
  }

  .discord-box {
    padding: 20px;
  }

  footer {
    padding: 20px 10px;
    font-size: 14px;
  }

  footer a {
    display: block;
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  header {
    padding: 8px 10px;
  }

  .logo {
    font-size: 18px;
  }

  nav ul {
    gap: 5px;
  }

  nav li {
    margin: 0 3px;
  }

  nav a {
    font-size: 12px;
  }

  .staff-login {
    padding: 8px 16px;
    font-size: 12px;
  }

  .slideshow {
    height: 250px;
  }

  .banner-text {
    font-size: 28px;
  }

  .content {
    padding: 15px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .page {
    padding: 70px 10px 20px;
  }
}
  
  .staff-login {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
