@font-face {
  font-family: "Archivo Condensed";
  src: url("../../fonts/Archivo_Condensed-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

/* Scope body-level adjustments to pages that use the hero */
.manray-hero-page {
  margin: 0;
  overflow-x: hidden;
  position: relative;
  /* anchor absolute overlay when scrolling */
}

.manray-hero-section {
  width: 100%;
  height: 100vh;
}

.manray-hero-green {
  /* Remove background image from CSS */
  /* background: url("assets/images/niti-girl.jpg") center center / cover no-repeat; */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.manray-hero-green .manray-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.manray-hero-green .manray-hero-rainbow {
  position: absolute;
  left: 0;
  bottom: 0;
  /* Fluid width with sensible min/max to stay visible on all screens */
  width: 42vw;
  min-width: 200px;
  max-width: 820px;
  height: auto;
  pointer-events: none;
  opacity: 0.28;
  /* Faded effect */
  /* Optionally, for extra fade, you could use filter: brightness(1.1) blur(0.5px); */
  z-index: 1;
}

@media (max-width: 1024px) {
  .manray-hero-green .manray-hero-rainbow {
    width: 48vw;
    min-width: 190px;
    max-width: 620px;
  }
}

@media (max-width: 768px) {
  .manray-hero-green .manray-hero-rainbow {
    width: 52vw;
    min-width: 180px;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .manray-hero-green .manray-hero-rainbow {
    width: 58vw;
    min-width: 190px;
    max-width: 440px;
  }
}

@media (orientation: landscape) and (max-height: 600px) {

  /* Reduce size a bit on short landscape screens so it does not crowd */
  .manray-hero-green .manray-hero-rainbow {
    width: 30vw;
    min-width: 140px;
    max-width: 460px;
  }
}

.manray-hero-red {
  background: #ffffff;
  position: relative;
  z-index: 1;
  margin-top: 100vh;
}

.manray-hero-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
  /* Prevent overlay from blocking clicks */
}

.manray-hero-overlay .manray-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
  pointer-events: auto;
  /* Allow interaction with headline if needed */
}

.manray-hero-overlay .manray-hero-headline {
  margin: 0;
  font-family: "Archivo", sans-serif;
  line-height: 1;
  font-weight: 900;
  text-transform: none;
  text-align: center;
  letter-spacing: -2px;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

/* Use Archivo Condensed Bold for .txt headline words */
.manray-hero-overlay .manray-hero-headline .manray-hero-txt {
  font-family: "Archivo Condensed", "Archivo";
  font-size: 0.9em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to top,
      var(--purple-color, #99258e) var(--purple, 0%),
      var(--purple-color, #99258e) var(--purple, 0%),
      #ffffff var(--purple, 0%),
      #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.manray-hero-overlay .manray-hero-circle {
  background: var(--purple-color, #99258e);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.manray-hero-overlay .manray-hero-circle img {
  width: 55%;
  height: auto;
  display: block;
}

/* Add margin to both sides of the circle for even gap */
.manray-hero-overlay .manray-hero-headline .manray-hero-txt:first-child {
  margin-right: 1vw;
}

.manray-hero-overlay .manray-hero-headline .manray-hero-txt:last-child {
  margin-left: 1vw;
}

/* Responsive sizing via media queries to make headline larger on smaller screens */
@media (max-width: 1024px) {
  .manray-hero-overlay .manray-hero-headline {
    letter-spacing: -1.2px;
  }
}

@media (max-width: 768px) {
  .manray-hero-overlay .manray-hero-headline {
    letter-spacing: -1px;
  }
}

@media (max-width: 480px) {
  .manray-hero-overlay .manray-hero-headline {
    /* Bigger on mobile */
    letter-spacing: -0.5px;
  }

  /* Slightly more gap around the circle on very small screens */
  .manray-hero-overlay .manray-hero-headline .manray-hero-txt:first-child {
    margin-right: 2vw;
  }

  .manray-hero-overlay .manray-hero-headline .manray-hero-txt:last-child {
    margin-left: 2vw;
  }

  /* Keep rainbow touching the bottom on mobile */
  .manray-hero-green .manray-hero-rainbow {
    bottom: 0;
    top: auto;
    left: 0;
    width: 80%;
  }

  .manray-hero-green .manray-hero-donate-wrap {
    top: 60%;
  }
}

.manray-hero-green .manray-hero-donate-wrap {
  position: absolute;
  left: 50%;
  top: 75%;
  transform: translate(-50%, -50%);
  z-index: 10;
  /* Ensure donate button is above overlay */
  pointer-events: auto;
}

.manray-hero-donate-btn {
  background-color: #ec1c24;
  color: #ffffff;
  border: 2px solid #ec1c24;
  padding: clamp(10px, 2.2vw, 14px) clamp(18px, 5.5vw, 32px);
  font-size: 20px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: clamp(0.5px, 0.25vw, 1.5px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  /* keep in a single line */
  flex-wrap: nowrap;
  line-height: 1.15;
  box-sizing: border-box;
}

.manray-hero-donate-btn:hover {
  background-color: #ffffff;
  color: #ec1c24;
  border-color: #fff;
}

.manray-hero-donate-btn:hover i {
  color: #ec1c24;
}

.manray-hero-donate-btn i {
  margin: 0;
  font-size: 1em;
  color: inherit;
  transition: color 0.3s ease;
}

/* Donate button responsiveness and placement tweaks */
@media (max-width: 1024px) {
  .manray-hero-green .manray-hero-donate-wrap {
    top: 78%;
  }
}

@media (max-width: 768px) {
  .manray-hero-green .manray-hero-donate-wrap {
    top: 82%;
  }

  .manray-hero-donate-btn {
    border-width: 2px;
    padding: clamp(10px, 3vw, 14px) clamp(18px, 6vw, 28px);
  }
}

@media (max-width: 480px) {
  .manray-hero-green .manray-hero-donate-wrap {
    top: 70%;
  }

  .manray-hero-donate-btn {
    padding: clamp(10px, 4.2vw, 14px) clamp(16px, 7vw, 28px);
    font-size: 18px;
  }

  .manray-hero-donate-btn i {
    margin: 0;
  }
}

@media (max-width: 360px) {
  .manray-hero-green .manray-hero-donate-wrap {
    top: 88%;
  }

  .manray-hero-donate-btn {
    padding: clamp(8px, 3.8vw, 12px) clamp(14px, 6.5vw, 22px);
    font-size: clamp(12px, 4.8vw, 16px);
  }

  .manray-hero-donate-btn i {
    margin: 0;
  }
}

@media (max-width: 320px) {
  .manray-hero-green .manray-hero-donate-wrap {
    top: 90%;
  }

  .manray-hero-donate-btn {
    padding: clamp(8px, 3.6vw, 10px) clamp(12px, 6vw, 20px);
    font-size: 15px;
  }

  .manray-hero-donate-btn i {
    margin: 0;
  }
}

/* Hide fixed green after the first viewport; keep headline for white section */
.manray-hero-page.hide-hero .manray-hero-green {
  display: none;
}

/* Hide headline overlay only after white section completes */
.manray-hero-page.hide-overlay .manray-hero-overlay {
  display: none;
}

/* When on white section, let headline scroll with it */
.manray-hero-page.overlay-scroll .manray-hero-overlay {
  position: absolute;
  inset: auto;
  top: 100vh;
  left: 0;
  right: 0;
  height: 100vh;
  /* match white section height to keep headline centered */
  width: 100%;
}