/* Reset some default styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background-color: #D6E0E2;
}

/* Header */

header {
  width: 97.5vw;
  max-width: 100vw;
  height: 20vw;
  max-height: 100px;
  display: flex;
  align-items: center;
  padding: 1vw 1vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  justify-content: space-between;
  background-color: #D6E0E2;
  box-sizing: border-box;
  overflow: hidden;
}

/* Logo and Social Links */
.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 320px;
  max-width: 40vw;
  flex: 0 0 auto;
  box-sizing: border-box;
  overflow: visible;
}

.logo {
  height: 5vw;
  min-height: 60px;
  max-height: 120px;
  width: auto;
  margin: 0.5vw 2vw 0 2vw;
  box-sizing: border-box;
}

.social-links {
  align-items: center;
  display: flex;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  font-weight: bold;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-left: auto;
}

.social-btn {
  text-decoration: none;
  color: white;
  padding: 1vw 1vw;
  border-radius: 1.5vw;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.icon-header {
  height: 1.2vw;
  min-height: 15px;
  margin-right: 1vw;
}

/* Navigation Menu */

/* Burger menu styles and responsive navigation */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 10vw;
  height: 10vw;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
}
.burger span {
  display: block;
  width: 32px;
  height: 4px;
  margin: 5px 0;
  background: #2E5D24;
  border-radius: 2px;
  transition: 0.3s;
}
.burger.open span:nth-child(1) {
  transform: translateY(14px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg);
}

@media (max-width: 900px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #D6E0E2;
    box-shadow: 0 4px 16px rgba(46,93,36,0.13);
    border-radius: 12px;
    padding: 24px 0;
    min-width: 180px;
    z-index: 1100;
  }
  .menu.menu-open {
    display: flex;
  }
  .burger {
    display: flex;
  }
}
@media (max-width: 900px) {
  .menu li {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 0;
  }
  .menu a {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 1.2em;
    color: #2E5D24;
    border-bottom: 1px solid #e0e0e0;
  }
  .menu a:last-child {
    border-bottom: none;
  }
}

@media (min-width: 901px) {
  .menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    max-height: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .menu li {
    display: inline;
  }

  .menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 12px;
    transition: color 0.3s ease-in-out;
  }

  .menu a:hover {
      color: #2E5D24;
  }
}

main {
  margin-top: 7em;
  margin-left: 1em;
  margin-right: 1em;
}

/* Landing Page */

.landing-page, .project {
    margin-left: 1em;
    margin-right: 1em;
}

.title-box {
    background-color: #2E5D24;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

@media (max-width: 600px) {
  .page-title {
    font-size: clamp(1.2rem, 7vw, 2rem);
  }

  .title-box {
    height: auto;
    padding: 15px;
  }
}

@media (min-width: 600px) {
  .page-title {
    font-size: 5em;
  }
}

.page-title {
    color: #F1F4F0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.1vw;
}

.image-container {
    text-align: center;
    width: 100%;  /* Full width */
    height: 42em; /* Adjust height as needed */
    background-size: cover;    /* Ensures the image covers the div */
    background-position: center -10vw; /* Move image slightly up from center */
    background-repeat: no-repeat; /* Prevents repeating */
}

@media (max-width: 600px) {
  .image-container {
    height: 50vw;
    background-position: center -10vw;
    background-size: 140%;
  }
}


/* Landing page stacked containers with proportional heights */

/* To align .circle-image to the right of the text containers, use a flex row layout on the parent.
    Example: Add this to the parent container (e.g., .landing-containers-wrapper): */
.landing-containers-wrapper {
    margin-top: 5vw;
    display: flex;
    flex-direction: row;
    gap: 2em; /* Optional: space between text and image */
}

.align-left {
    order: -1;
    align-self: flex-start; /* If inside a flex parent, align to left */
    margin-right: auto;
}

.align-right {
    order: 1;
    align-self: flex-end; /* If inside a flex parent, align to right */
    margin-left: auto;
}

.landing-containers-text-wrapper {
    width: 60%;
    height: 40vh;           /* Total height for both containers */
    margin: 2em 0 2em 2em;  /* Top, right, bottom, left (left margin for alignment) */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(46,93,36,0.08);
    border-radius: 30px;
    overflow: hidden;
    align-self: flex-start;
}

.container-green {
    background-color: #2E5D24;
    flex: 0 0 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;    /* Vertical center */
    padding: 2em 1.5em 0.75em 1.5em;
    height: 100%;               /* Ensure it fills its flex space */
    max-height: 5%;
    font-size: 1.2em;
}

.container-green p {
    color: #fff;
    font-weight: bold;
    font-size: 1.25em;
    margin-bottom: 1em;
}

.container-beige {
    background-color: #F1F4F0;
    flex: 1 1 90%;          /* 80% of wrapper height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Ensure text is left-aligned */
    padding: 2em 1.5em;
}

.container-beige p {
    color: #222;
    font-weight: normal;
    font-size: 1.1em;
    margin-bottom: 1em;
}

/* Adjust .circle-image for proper alignment */
.circle-image {
    width: 20vw;
    height: 20vw;
    max-width: 500px;
    max-height: 500px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: auto;
    margin-right: 20vh;
    background-image: url("../images/landing_page/who_we_are_1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-self: center; /* Vertically center in flex row parent */
}




/* Footer */
footer {
    margin-left: 1em;
    margin-right: 1em;
    background-color: #D6D5D5;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Social Media Row */
.footer-social {
    display: flex;
    gap: 10px;
}

.footer-text input {
    padding: 8px;
    width: 250px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 14px;
}

.icon-footer {
    height: 40px;
    margin-right: 15px;
}

.donate-btn {
  background-color: #2E5D24;
  color: #fff;
  font-size: 1.3em;
  font-weight: bold;
  padding: 0.9em 2.2em;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(46,93,36,0.13);
  transition: background 0.2s, color 0.2s;
  margin: 0 auto;
  display: inline-block;
}
.donate-btn:hover {
  background-color: #25681a;
  color: #fff;
}

.custom-circle-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* align to left */
  width: 500px; /* increased size */
  margin: 0.5em 0 0.5em 2em; /* further reduced vertical margin */
}

.custom-circle-wrapper.touch-next {
  margin-bottom: -5em; /* less negative, so more gap between first and second wrapper */
}

.custom-circle-wrapper.right-align {
  align-items: flex-end;
  margin-left: auto;
  margin-right: 20em;
}

.custom-circle-wrapper.full-width-ellipse {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: 0;
  align-items: flex-start;
  position: relative;
  margin-top: 10em;
  margin-bottom: 10em;
}

.custom-circle-wrapper.full-width-ellipse.right-align {
  width: 100vw;
  max-width: 100vw;
  align-items: flex-end;
  margin-left: auto;
  margin-right: 20em;
  position: relative;
  margin-top: 10em;
  margin-bottom: 10em;
}

.custom-circle-label {
  background: #2E5D24; /* container-green */
  color: #fff;
  font-weight: bold;
  font-size: 1.8em; /* increased by ~20% from default 1.5em */
  padding: 0.6em 2em; /* increased by 20% */
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 120%; /* keep slightly wider than circle */
  text-align: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(46,93,36,0.08);
}

.custom-circle-label.half-width {
  width: 50vw;
  min-width: 350px;
  left: 0;
  right: auto;
  transform: none;
  margin-left: 2em;
  position: relative;
}

/* Only restrict width for right-aligned ellipse label */
.custom-circle-label.half-width.right-label {
  margin-right: 3em;
}

.custom-circle-content {
  display: flex;
  align-items: center;
  position: relative;
}

.custom-circle-content.ellipse-layout {
  width: 100vw;
  max-width: 100vw;
  display: flex;
  align-items: center;
  position: relative;
}

.custom-circle-text {
  width: 600px; /* increased size */
  height: 600px; /* increased size */
  background: #F1F4F0; /* container-beige */
  border-radius: 50%;
  display: flex;
  flex-direction: column; /* stack children vertically */
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  text-align: left;
  padding: 3.5em;
  box-shadow: 0 4px 12px rgba(46,93,36,0.08);
  z-index: 1;
  position: relative;
}

.custom-circle-text.ellipse {
  width: calc(100% - 8em);
  min-width: 0;
  max-width: calc(100vw - 8em);
  height: auto;
  background: #F1F4F0;
  border-radius: 40px; /* rectangle with rounded corners */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 1.45em;
  text-align: left;
  padding: 6em 3.5em 3em 3.5em;
  margin-left: 4em;
  margin-right: 4em;
  box-shadow: 0 8px 32px rgba(46,93,36,0.13);
  z-index: 1;
  position: relative;
  line-height: 1.6;
  box-sizing: border-box;
}

/* Only for donations.html: adjust .custom-circle-text.ellipse */
.donation-page .custom-circle-text.ellipse {
  padding: 2em;
  width: 75%;
  font-size: 2em;
  margin-left: auto;
  margin-right: auto;
}

.donation-page  .custom-circle-text.ellipse.centered-text {
  text-align: center;
}

.custom-circle-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  position: absolute;
  right: -220px;
  top: 5%; /* move image slightly to the top */
  transform: none;
  box-shadow: 0 4px 12px rgba(46,93,36,0.12);
  z-index: 2;
}

.custom-circle-image.ellipse-img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  position: absolute;
  right: 250px;
  top: -190px;
  transform: none;
  box-shadow: 0 4px 12px rgba(46,93,36,0.12);
  z-index: 2;
}

/* Align the second ellipse image to the left of the page */
.custom-circle-wrapper.full-width-ellipse.right-align .custom-circle-image.ellipse-img.personal-img {
  left: 0;
  right: auto;
  margin-left: 200px;
  margin-right: auto;
  position: absolute;
  top: -210px;
}

.donation-page .custom-circle-wrapper.full-width-ellipse {
  margin-top: 3em;
  margin-bottom: 3em;
}

.custom-circle-image.ellipse-img.work-img {
  left: 0;
  right: auto;
  margin-left: 200px;
  margin-right: auto;
  position: absolute;
  top: -210px;
}

.custom-circle-second-line {
  margin-top: 1em;
  font-weight: normal;
  display: block;
}

.ellipse-list-title {
  display: block;
  padding-top: 1.5em;
}

.ellipse-list {
  margin-left: 2em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 1.5em;
}
.ellipse-list li {
  font-weight: bold;
  margin-bottom: 0.3em;
  list-style-type: disc;
}

/* Project page specific styles */
.project-image-container {
    text-align: center;
    width: 100%;  /* Full width */
    height: 45em; /* Adjust height as needed */
    background-size: cover;    /* Ensures the image covers the div */
    background-position: center -290px; /* Move image slightly up from center */
    background-repeat: no-repeat; /* Prevents repeating */
}

.project-image {
  width: 80vw;
  height: 20vw;
  margin-left: 4em;
  margin-right: 5em;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 32px rgba(46,93,36,0.13);
  display: block;
}

.project-images {
  display: flex;
  gap: 0.1em;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.project-images div {
  width: 40vw;
}

.project .custom-circle-text.ellipse {
  padding: 2em 3.5em 2em 3.5em;
}

.project .custom-circle-wrapper.full-width-ellipse {
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Gallery page specific styles */

.glide {
  max-width: 90vw;
  margin: 2em auto;
}

.glide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
  background: transparent;
}

.glide__slide img {
  width: auto;
  height: 30vw; /* Fixed height for all images */
  max-width: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(46,93,36,0.13);
}

.gallery-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  max-width: 100vw;
  height: 50vw;
  min-height: 320px;
  max-height: 600px;
  margin-bottom: 64px; /* add space for bullets below */
}

.gallery-carousel .glide__arrows {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.gallery-carousel .glide__arrow {
  background: #fff;
  color: #2e5d24;
  border: 2px solid #2e5d24;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 2.2rem;
  box-shadow: 0 2px 8px rgba(46,93,36,0.10);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  margin: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-carousel .glide__arrow:hover {
  background: #2e5d24;
  color: #fff;
  transform: scale(1.12);
}

.gallery-carousel .glide__track {
  flex: 1;
}

/* Modal for full image view */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}
.gallery-modal.active {
  display: flex;
}
.gallery-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.gallery-modal .close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3em;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

.gallery-carousel .glide__bullets {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  bottom: -1vw;
  width: 100%;
  margin: 0;
  gap: 16px;
  z-index: 10;
}

.gallery-carousel .glide__bullet {
  width: 0.5vw;
  height: 0.5vw;
  min-width: 5px;
  min-height: 5px;
  max-width: 15px;
  max-height: 15px;
  border-radius: 50%;
  background: #2E5D24;
  opacity: 0.5;
  border: none;
  transition: opacity 0.2s, background 0.2s;
  cursor: pointer;
}
.gallery-carousel .glide__bullet:focus,
.gallery-carousel .glide__bullet:hover {
  opacity: 0.8;
  background: #25681a;
}
.gallery-carousel .glide__bullet.glide__bullet--active {
  opacity: 1;
  background: #2E5D24;
  box-shadow: 0 0 0 4px #D6E0E2;
}

.payment-details {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1em;
}

.payment-details td {
  border: none;
}

.download-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.download-link:hover {
  background-color: #45a049;
}