/* ============================= */
/*      RESET & GLOBAL STYLES    */
/* ============================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
.btn,
.simple-container {
  width: 100%;
  height: 100%;
  font-family: "Source Sans Pro", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  overflow-x: hidden; /* prevent horizontal scroll */
  flex-direction: column;
}

body {
  background: rgb(29, 31, 41);
}

img,
a {
  user-drag: none; /* Safari */
  -webkit-user-drag: none;
}

/* ============================= */
/*         PAGE & CONTENT        */
/* ============================= */
#content {
  overflow-y: auto;
  height: 100%;
  padding-top: 0; /* Removed padding-top that was causing white layer */
}

.page {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateX(50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.page.active {
  opacity: 1;
  transform: translateX(0);
}

.main-content {
  margin: 0;
  padding: 0;
}

/* ============================= */
/*         NAVBAR / TOP NAV       */
/* ============================= */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(
    29,
    31,
    41,
    0.75
  ); /* Increased opacity to reduce bright layer */
  color: white;
  z-index: 1001;
  border-radius: 0;
  padding: 12px 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.nav-logo {
  height: 45px;
  margin: 0;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-logo:hover {
  transform: scale(1.05);
}

.top-nav-list {
  display: flex;
  justify-content: flex-start;
  list-style: none;
  margin: 0 0 0 30px;
  padding: 0;
  flex-grow: 1;
}

.top-nav-item {
  margin: 0 12px;
  position: relative;
  padding: 0;
}

.top-nav-item:not(:last-child)::after {
  content: none;
}

.top-nav-link {
  display: inline-block;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-size: 1rem;
  letter-spacing: 0.6px;
  position: relative;
  font-weight: 500;
}

.top-nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.top-nav-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.top-nav-link:hover::after {
  width: 70%;
  opacity: 1;
}

.top-nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.top-nav-link.active::after {
  width: 70%;
  opacity: 1;
}

/* ============================= */
/*      PAGE CONTAINERS           */
/* ============================= */
.page-container,
.fullpage-container {
  width: 100%;
  border-radius: 0;
  display: flex;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background-color: rgba(29, 31, 41, 0.7);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

/* Normal page containers */
.page-container {
  position: relative;
  height: auto;
  min-height: 400px;
  align-items: center;
  justify-content: flex-end;
  margin: 80px auto 40px auto; /* Increased top margin to account for nav */
  width: auto;
  max-width: 1200px;
  border-radius: 12px;
  display: flex;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px; /* Added padding to all page containers */
}

/* Fullscreen containers */
.fullpage-container {
  height: 100vh;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 70px 20px 70px 20px; /* Added top and side padding */
  position: relative;
}
/* Remove margin-bottom if it's the last fullpage container */
.fullpage-container:last-child {
  margin-bottom: 0;
}

.page-content,
.fullpage-content {
  width: 40%;
  text-align: center;
  position: relative;
  margin: 8%;
  padding: 10px 0 20px 0; /* Balanced top and bottom padding */
  z-index: 3; /* Increased z-index to appear above vignette */
  animation: fadeIn 0.8s ease-in-out;
}

.text-center {
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding-top: 20px; /* Reduced space at the top to balance with bottom */
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 10px; /* Added top padding for buttons */
}

.primary-btn {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  padding: 12px 24px;
  font-size: 1.1rem;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  font-size: 1.1rem;
}

/* Mods Page Styles */
.mods-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* About Page Styles */
.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.about-section {
  background-color: rgb(29, 31, 41);
  padding: 60px 0;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
  color: white;
  padding-top: 40px; /* Add more space at the top */
  margin-top: 20px;
}

.section-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: white;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.cta-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Community Page Styles */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.community-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px 30px 40px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  height: 450px; /* Fixed height for consistency */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.community-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
  border-radius: 16px;
  pointer-events: none;
}

.community-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

.community-card.discord {
  background: linear-gradient(
    to bottom,
    rgba(114, 137, 218, 0.2),
    rgba(29, 31, 41, 0.7)
  );
}

.community-card.youtube {
  background: linear-gradient(
    to bottom,
    rgba(255, 0, 0, 0.2),
    rgba(29, 31, 41, 0.7)
  );
}

.community-card.roblox {
  background: linear-gradient(
    to bottom,
    rgba(29, 161, 242, 0.2),
    rgba(29, 31, 41, 0.7)
  );
}

.community-card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  margin-top: 30px; /* Add space at the top */
}

.community-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.community-platform-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: white;
  position: relative;
  z-index: 2; /* Ensure title appears above overlay */
}

.community-platform-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
  position: relative;
  z-index: 2; /* Ensure description appears above overlay */
}

.mod-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  height: 450px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.mod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.mod-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.mod-card-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
}

.mod-logo {
  width: 250px;
  height: 80px;
  margin-bottom: 15px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mod-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mod-title {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.mod-tagline {
  font-size: 1.2rem;
  margin-bottom: 15px;
  margin-top: 10px;
  opacity: 0.9;
  font-weight: 600;
  max-width: 90%;
}

.mod-description {
  margin-bottom: 25px;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.mod-actions {
  display: flex;
  gap: 15px;
  height: 45px; /* Fixed height for buttons container */
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure all animations appear above the vignette */
.animated-element {
  z-index: 3;
  position: relative;
}

.page-content p,
.fullpage-content p,
.page-content h1,
.fullpage-content h1,
.page-content h2,
.fullpage-content h2,
.page-content h3,
.fullpage-content h3,
.page-content h4,
.fullpage-content h4,
.page-content h5,
.fullpage-content h5,
.page-content h6,
.fullpage-content h6 {
  margin-bottom: 15px;
}

.page-content .btn,
.fullpage-content .btn {
  margin-top: 15px;
}

/* Fullpage center variant */
.fullpage-container.centered {
  justify-content: center;
  align-items: center;
}

.fullpage-container.centered .fullpage-content {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.fullpage-container.centered .logo-block {
  display: none;
}

/* ============================= */
/*    BACKGROUND IMAGE OVERLAY    */
/* ============================= */
.page-container[style*="background-image"]::after,
.fullpage-container[style*="background-image"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.page-container[style*="background-image"],
.fullpage-container[style*="background-image"] {
  color: #fff;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 1);
}

/* ============================= */
/*           BUTTONS             */
/* ============================= */
.btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  margin: 5px 5;
}

.btn {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  padding: 0 28px;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  margin: 8px 4px;
  width: auto;
  letter-spacing: normal; /* Fixed letter spacing */
  position: relative;
  overflow: hidden;
  z-index: 5; /* Ensure buttons appear above overlay */
  height: 45px; /* Fixed height for all buttons */
  line-height: 45px; /* Center text vertically */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.4s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #3ee884 0%, #2ecc71 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(1px);
  background: linear-gradient(135deg, #1a4122 0%, #1d3a20 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* ============================= */
/*      SIMPLE CONTAINER          */
/* ============================= */
.simple-container {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 28px;
  margin: 20px auto;
  max-width: 550px;
  width: 80%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: #333333 !important;
  text-shadow: none !important;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.simple-container h1,
.simple-container h2,
.simple-container h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 700;
  color: #1d1f29;
  letter-spacing: 0.5px;
}

.simple-container p {
  margin: 14px 0;
  line-height: 1.6;
  color: #444444;
  font-size: 1.05rem;
}

/* ============================= */
/*          LOGO BLOCK            */
/* ============================= */
.logo-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
  animation: slideIn 1s ease-out;
  z-index: 4; /* Ensure logo block appears above vignette */
}

@keyframes slideIn {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.logo-block img {
  max-width: 55%;
  height: auto;
  object-fit: contain;
  max-height: 85%;
  z-index: 4;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  transition: all 0.5s ease;
  border: none;
}

.logo-block:hover img {
  transform: scale(1.05) translateY(-5px);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5));
}

.logo-block .subtitle {
  margin-top: -35px;
  font-size: 26px;
  color: white;
  background: linear-gradient(
    180deg,
    rgba(42, 54, 59, 0.9) 0%,
    rgba(42, 54, 59, 0.7) 100%
  );
  padding: 26px 24px 14px;
  border-radius: 12px;
  font-weight: 500;
  z-index: 3;
  letter-spacing: 0.8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
}

.logo-block:hover .subtitle {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

#footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  color: white;
  text-align: center;
  transform: translateY(0);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    180deg,
    rgba(29, 31, 41, 0.5) 0%,
    rgba(10, 10, 14, 0.75) 100%
  );
  padding: 20px 0;
  z-index: 1001;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

#footer.hidden {
  transform: translateY(100%);
  opacity: 0;
}

#footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
}

#footer .footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

#footer .footer-links a:hover {
  color: white;
  background: rgba(46, 109, 204, 0.2);
  transform: translateY(-2px);
}

#footer .footer-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================= */
/*       GALLERY SPECIFICS       */
/* ============================= */
/* Make the gallery page layout stable and images responsive */
.gallery-page {
  display: block;
  padding: 30px 40px;
  background: rgb(29, 31, 41);
  min-height: 60vh;
  margin: 80px auto 40px auto;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
  margin: 30px auto;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop safely to fill */
  display: block;
}

/* Ensure fullpage header section keeps centered content without overlapping gallery */

.fullpage-container.centered {
  height: 50vh; /* keep header smaller */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(29, 31, 41, 1);
}

.fullpage-container.centered h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 5;
}

.fullpage-container.centered p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .page-content {
    padding: 16px;
  }
  .fullpage-content,
  .page-content {
    width: 80%;
    margin: 5%;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fullpage-content,
  .page-content {
    width: 90%;
    margin: 5%;
  }
  .top-nav {
    padding: 8px;
  }
  .top-nav-link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

/* ============================= */
/*    FAQ PAGE STYLES            */
/* ============================= */
.faq-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: rgb(29, 31, 41);
  color: white;
}

.faq-header-section {
  background-color: rgba(29, 31, 41, 0.98);
  background-image: url("images/space.png");
  background-size: cover;
  background-position: center;
  padding: 40px 20px;
  color: white;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.faq-header-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(29, 31, 41, 0.7), rgba(29, 31, 41, 0.9));
  z-index: 1;
}

.faq-header-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.faq-logo {
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.faq-header-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.search-container {
  position: relative;
  max-width: 500px;
  margin: 20px auto 0;
  z-index: 2;
}

.faq-search {
  width: 100%;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 1rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.faq-search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.faq-search:focus {
  background-color: rgba(0, 0, 0, 0.3);
  outline: none;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(46, 204, 113, 0.5);
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.faq-list {
  background-color: rgba(42, 54, 59, 0);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  margin-bottom: 100px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  background-color: rgba(46, 204, 113, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  color: white;
  position: relative;
}

.faq-question:hover {
  background-color: rgba(46, 204, 113, 0.15);
}

.faq-question span {
  position: relative;
  z-index: 1;
}

.faq-item.active .faq-question {
  background-color: rgba(46, 204, 113, 0.2);
  border-left: 4px solid rgba(46, 204, 113, 0.8);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease,
    background-color 0.3s ease;
  padding: 0 20px;
  background-color: rgba(0, 0, 0, 0);
}

.faq-answer.show {
  max-height: 500px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.no-results-message {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-top: 20px;
}

/* ============================= */
/*    HELP PAGE STYLES          */
/* ============================= */
.help-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: rgb(29, 31, 41);
  color: #ffffff;
}

.help-header-section {
  background-color: #2a363b;
  background-image: url("images/space.png");
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  color: white;
  text-align: center;
  position: relative;
}

.help-header-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.help-header-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.help-logo {
  height: 60px;
  margin-bottom: 20px;
}

.help-header-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.help-header-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.help-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.help-card {
  background-color: rgb(40, 41, 56);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.help-card-header {
  background-color: rgb(50, 53, 70);
  color: white;
  padding: 20px;
}

.help-card-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.help-card-body {
  padding: 20px;
}

.contact-option {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 15px;
  background-color: rgb(29, 31, 41);
  border-radius: 8px;
}

.contact-icon {
  font-size: 2rem;
  margin-right: 20px;
}

.contact-details h4 {
  margin: 0 0 5px 0;
}

.contact-details p {
  margin: 0;
  color: #bebebe;
}

.help-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Responsive styles for FAQ and Help pages */
@media (max-width: 768px) {
  .faq-header-content h1,
  .help-header-content h1 {
    font-size: 2rem;
  }

  .help-content {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/*    GALLERY IMAGE FULLSCREEN   */
/* ============================= */
/* Backdrop behind a fullscreen image */
.image-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 45, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
  display: none;
}

.image-backdrop.active {
  display: block;
  opacity: 1;
}

/* Image when shown fullscreen */
.fullscreen-image {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-width: 95vw !important;
  max-height: 95vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important; /* ensure fullscreen image fits without cropping */
  z-index: 2001 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
  border-radius: 6px !important;
  cursor: zoom-out !important;
  transition: left 260ms ease, top 260ms ease, width 260ms ease,
    height 260ms ease, transform 260ms ease, box-shadow 180ms ease,
    border-radius 180ms ease;
}

/* indicate clickable images */
.gallery-item img {
  cursor: zoom-in;
}

/* ============================= */
/*       FAQ PAGE STYLES         */
/* ============================= */
.faq-header {
  background-image: url("images/city.png");
  height: 60vh; /* Increased height to prevent cutoff */
  padding-top: 10%; /* Increased top padding */
  margin-bottom: 70px; /* Added bottom margin to prevent footer overlap */
}

.faq-page {
  width: 95%;
  max-width: 1400px;
  margin: 20px auto;
}

.faq-intro {
  margin-bottom: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  margin-bottom: 16px;
  border: 1px solid rgba(52, 152, 219, 0.15); /* Changed border color to blue */
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  background: linear-gradient(
    90deg,
    rgba(41, 128, 185, 0.3) 0%,
    rgba(52, 152, 219, 0.2) 100%
  );
  transition: all 0.3s ease;
}

.faq-question::after {
  content: "\25BE";
  font-size: 18px;
  opacity: 0.9;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.answer {
  padding: 15px 20px 20px 20px; /* Increased top padding */
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  background: linear-gradient(
    to bottom,
    rgba(41, 128, 185, 0.05),
    /* Blue gradient */ rgba(52, 152, 219, 0.01)
  );
}

.answer p {
  margin: 0;
  line-height: 1.5;
}

.muted {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
  .faq-page {
    padding: 8px;
  }
  .faq-question {
    padding: 12px;
  }
}

/* Header text color and center alignment for FAQ header */
.faq-header .page-content {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 10vh; /* Increased top padding */
  background: rgba(41, 128, 185, 0.1); /* Light blue background */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Panel that holds FAQ items and overlaps the header */
.faq-panel {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: -60px; /* pull panel up to overlap header */
  z-index: 3;
}

.faq-panel .faq-page {
  background: linear-gradient(
    135deg,
    rgba(41, 128, 185, 0.1) 0%,
    rgba(52, 152, 219, 0.2) 100%
  );
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  padding: 26px;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.faq-panel .faq-item {
  background: rgba(0, 0, 0, 0.12);
  color: #222;
}

.faq-panel .faq-question {
  color: #fff;
}

.faq-panel .answer {
  color: rgba(0, 0, 0, 0.85);
}
