html {
  scroll-behavior: smooth;
}

body {
    font-family: "League Spartan", sans-serif;
    background-image: url('pexels-nietjuhart-1906440.jpg') !important;
    background-size: 100% auto;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: rgba(173, 166, 153, 0.95); /* fallback background */
    margin: 0;
    padding: 0; 
}

/* Semi-transparent central container */
.container {
    max-width: 900px;
    margin: 80px auto; /* centers horizontally */
    padding: 40px;
    background-color: rgba(210, 202, 186, 0.641); /* semi-transparent white-ish color*/
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Main Section */
.home-container {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;
    position: relative;
}

/* Dark overlay for readability */
.home-container::before {
    content: "";
    position: absolute;
    inset: 0;
}

/* Keep content above overlay */
.home-container .home {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 20px;
}

.home {
    max-width: 900px;
    height: auto;
    margin: 80px auto; /* centers horizontally */
    padding: 40px;
    background-color: rgba(210, 202, 186, 0.621); /* semi-transparent white-ish color*/
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.home-container .home-title-highlight,
.home-container .home-title {
    color: #4F7F8A;
}

/* Make text white in first section */
.home-container .home-subtitle,
.home-container .home .scroll-indicator{
    color: black;
}

.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.home {
    text-align: center;
}

.home-image {
    max-width: 300px;
    width: 100%;
    margin-bottom: 20px;
}

.home-title {
    font-size: 40px;
    color: #000000;
    margin-bottom: 15px;
}

.home-title-highlight {
    font-size: 40px;
    color: #2F7F6F;
    margin-bottom: 15px;
}

.home-container .home-subtitle {
    font-size: 21px;
    margin-top: 50px;
    margin-bottom: 50px;
    line-height: 1.6;
    letter-spacing: 0.5px; 
    padding: 0 10px;
}

/* Buttons in Home Section */
.home-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.home-btn {
    text-decoration: none;
    font-weight: bold;
    background-color: #4F7F8A;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    transition: background-color 0.3s;
}

.home-btn:hover {
    font-weight: bold;
    background-color: #3F6770;
}

.home-title-1 {
    font-size: 15px;
    color: #000000;
    margin-bottom: 15px;
}

.link1 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #2F7F6F;
    margin-bottom: 15px;
    text-decoration: underline;
}

.home1 {
    margin-top: 50px;
}

/* Grid layout for recent items */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

/* Individual item cards */
.item {
  background: rgba(255, 255, 255, 0.285); 
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 20px;
  width: 220px; /* Fixed width makes them look like individual tiles */
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background 0.2s ease;
  word-break: break-all;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.274);
}

.item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

/* Item image */
.item img {
  color: #000000;
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 8px;
}

/* Item title */
.item h3 {
  color: #000000;
  margin: 10px 0 6px;
  font-size: 1.25rem;
}

/* Item description */
.item p {
  color: #000000;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* Location text */
.item small {
  color: #000000;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

/* Claim button */
.item button {
  background-color: #4F7F8A;
  font-family: 'Montserrat', Arial, sans-serif;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.2s;
}

.item button:hover {
  background-color: #3F6770;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999 !important; /* Ensure it is above EVERYTHING */
  
  /* Visuals */
  background-color: #4F7F8A;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);

  /* Force it to stay hidden initially */
  display: block; /* Keep as block but hide with opacity */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px);
  transition: all 0.4s ease-in-out;
}

/* Force it to show when the class is added */
#backToTop.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

#backToTop:hover {
  background-color: #3F6770;
  transform: scale(1.05);   
}

footer {
    width: 100%;
    padding: 20px 0;
    margin-top: 50px; /* Space between the container and footer */
    background-color: rgba(0, 0, 0, 0.7); /* Dark glass footer */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.fake-copy {
    font-size: 1.0rem;
    margin-bottom: 5px;
    margin-left: 20px;
    opacity: 0.8;
    justify-content: left;
}

/* FAQ SECTION  */
.faq-section {
  margin-top: 60px;
  text-align: left;
}

.faq-title {
  font-size: 32px;
  margin-bottom: 25px;
  text-align: center;
  color: #000;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.274);
}

/* Question layout */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  border: none;
  padding: 18px 22px;
  font-size: 18px;
  font-weight: 600;
  color: #2F7F6F;
  cursor: pointer;
  transition: background 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.274);
}

/* Arrow */
.faq-arrow {
  font-size: 18px;
  transition: transform 0.35s ease;
}

/* Rotate when open */
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

/* Better animation */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.2);
  padding: 0 20px;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 12px 20px 18px;
}


/* MOBILE */
@media (max-width: 768px) {

  body.home-page {
    background-size: cover;
    background-attachment: scroll;
  }

  .home-container {
    height: auto;
    min-height: 100vh;
    padding: 40px 0;
  }

  .container, .home {
    /* Center the glass box with small side gaps */
    width: 92%; 
    margin: 20px auto; 
    padding: 25px 15px;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
    height: auto; /* Allow box to grow with text */
  }
  
  .home {
    margin-right: 10px;
    margin-left: 10px;
    max-width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .home-title,
  .home-title-highlight {
    font-size: 28px;
  }

  .home-subtitle {
    font-size: 16px;
  }

  .home-buttons {
    flex-direction: column;
    gap: 15px;
    width: auto;
  }

  .home-btn {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .item-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.274);
  }

    .faq-question {
    font-size: 17px;
    padding: 20px;
  }

  .faq-answer p {
    font-size: 15px;
    line-height: 1.5;
  }

  .faq-question:hover {
    background: rgba(255,255,255,0.55);
  }

  .faq-title {
    font-size: 26px;
  }

  .faq-item {
    margin-bottom: 16px;
  }

  footer {
    text-align: center;
  }

  .fake-copy {
    margin-left: 0;
  }
}
