html, body {
  margin: 0;
  padding: 0;
  background: var(--text-color);
  color: var(--text-color);
  box-sizing: border-box;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header Styling */

header {
  background: transparent;
  display: flex;
  flex-direction: column; /* stack nav and svg vertically if needed */
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw; /* ensure it spans viewport width */
  z-index: 100;
  box-sizing: border-box;
}

nav {
  width: 100%;
  padding: 0;
  margin: 0;
  display: block; /* removes flex constraints */
  box-sizing: border-box;
}

nav svg {
  display: block;
  width: 100vw; /* ensures full viewport width */
  height: auto; /* or specify exact em/px if needed */
  padding: 0;
  margin: 0;
}

nav a {
  display: inline-block;
  height: clamp(3em, 6vw, 5em); /* min 3em, ideal ~6vw, max 5em */
}

nav a svg {
  display: block;
  height: 100%;
  width: auto; /* maintain aspect ratio */
}

svg a g,
svg a path {
  transition: transform 0.3s ease, filter 0.3s ease;
  transform-origin: center;
  transform-box: fill-box;
}

svg a:hover g,
svg a:hover path {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

/* Hero Content Styling */

.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(11,37,31,0.6), rgba(0,0,0,.5)),
    url('../images/OHOH_hero_image_1.png') center/cover no-repeat;
  background-attachment: fixed; /* for parallax-like effect (simple) */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.title {
  font-size: clamp(2rem, 8vw, 5.75em);
  font-weight: bold;
  color: var(--hero-title-color);
  margin-top: 48px;
  margin-bottom: 18px;
  letter-spacing: .5px;
  font-family: var(--primary-font-family);
}

.subtitle {
  font-size: clamp(1.5rem, 4vw, 3em);
  color: var(--accent-color);
  margin-bottom: 36px;
  font-family: var(--primary-font-family);
  letter-spacing: .025em;
  font-weight: 500;
}

.buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.button-secondary {
  margin-right: 2.5rem; /* adjust as needed */
}

.button-primary, .button-secondary {
  padding: 8px 24px;
  border-radius: 22px;
  border: none;
  font-size: 1em;
  font-weight: bold;
  font-family: var(--primary-font-family);
  outline: none;
  cursor: pointer;
  margin-bottom: 30px;
}

.button-primary {
  background: var(--accent-color);
  color: var(--background-color);
  transition: background 0.2s;
}

.button-secondary {
  background: var(--background-color);
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.button-primary,
.button-secondary {
  transition: transform 0.15s ease-in-out;
}

.button-primary:hover,
.button-secondary:hover {
  transform: scale(1.10);
}

/* Mission Row Styling */

#mission {
    background-color: var(--background-color);
    text-align: center;
}

#mission h1 {
  font-family: var(--primary-font-family);
  font-size: 24px;
  color: var(--accent-color);
  margin: 0px;
  padding: 25px;
}

#mission p {
  font-family: var(--secondary-font-family);
  font-size: 16px;
  color: var(--text-color);
  margin: 0px;
  /* padding-top: 25px; */
  /* padding-bottom: 25px; */
  padding-left: calc(10%);
  padding-right: calc(10%);
}

#mission ul {
  width: 50%;
  margin: 0 auto;
  padding: 0;
  list-style-position: outside; /* ensure bullets hang outside */
  text-align: left;
  padding-bottom: 25px;
  padding-left: 2em; /* creates space for bullets to hang */
}

#mission li {
  text-indent: 0em; /* indent negative by same value as padding-left for hanging effect */
  padding-left: 0em; /* offset the negative indent to align text correctly */
  margin: 0px;
  margin-bottom: 20px;
  font-family: var(--secondary-font-family);
  font-size: 16px;
  color: var(--text-color);
}

#mission li::marker {
  color: var(--accent-color)
}

#mission li strong {
  color: var(--accent-color);
}

/* Prevention and Outreach Row Styling */

#prevention-and-outreach {
  background-color: var(--secondary-background-color);
  text-align: center;
}

#prevention-and-outreach svg {
  height: 150px;
  margin: 0px;
  margin-top: 50px;
}

#prevention-and-outreach h2 {
  font-family: var(--primary-font-family);
  font-size: 16px;
  color: var(--accent-color);
  margin-top: 25px;
}

#prevention-and-outreach p {
  font-family: var(--secondary-font-family);
  font-size: 14px;
  color: var(--text-color);
  margin: 0px;
  padding-left: calc(10%);
  padding-right: calc(10%);
}

#outreach-text {
  padding-bottom: 25px;
}

.prevention-icon {
  position: relative;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.prevention-icon .overlay {
  position: absolute;
  color: #aee6f8;
}

.outreach-icon {
  position: relative;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.outreach-icon .overlay {
  position: absolute;
  color: #aee6f8;
}

/* Approach Row Styling */

#approach {
  margin: 0 auto;
  padding: 25px;
  text-align: center;
  background-color: var(--background-color);
}

#approach svg {
  height: 150px;
}

#approach h1 {
  font-family: var(--primary-font-family);
  font-size: 24px;
  color: var(--accent-color);
  margin: 0px;
}

#approach p {
  font-family: var(--secondary-font-family);
  font-size: 14px;
  color: var(--text-color);
  margin: 0px;
  padding-top: 25px;
  padding-left: calc(10%);
  padding-right: calc(10%);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 40px;
  justify-items: center;
}

.approach-card {
  background: transparent;
  padding: 0 10px;
  max-width: 370px;
}

.approach-icon {
  position: relative;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.approach-icon .overlay {
  position: absolute;
  color: #aee6f8;
}

.approach-card h2 {
  font-size: 16px;
  font-weight: bold;
  font-family: var(--primary-font-family);
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: #fff !important;
}

.approach-card p {
  font-size: 14px;
  color: #e5f2ff;
  line-height: 1.6;
  font-family: var(--secondary-font-family);
}

@media (max-width: 900px) {
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }
}

/* Who We Are Section */
#who-we-are {
  background: #fff;
}

#who-we-are .section-title {
  color: var(--background-color);
  font-size: 24px;
  font-family: var(--primary-font-family);
  margin: 25px;
  text-align: center;
}

#who-we-are-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin: 0 auto;
  padding: 25px;
  max-width: 1200px;
}

#who-we-are .text-block {
  max-width: 420px;
  padding-left: 50px; /* left padding for consistent alignment */
}

#who-we-are .text-block p {
  color: var(--donate-button-text-color);
  font-family: var(--secondary-font-family);
  margin: 0;
  padding-top: 0;
  padding-left: 0; /* remove unnecessary inner padding */
  font-size: 14px;
}

/* Button Container */
.button-container {
  display: flex;
  justify-content: flex-start; /* left-align on large screens */
}

/* Learn More Button Styling */
.learn-more-button {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--secondary-background-color);
  color: #fff;
  text-decoration: none;
  border: 2px solid var(--accent-color);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  font-family: var(--primary-font-family);
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border 0.15s ease-in-out;
}

/* Hover Effect */
.learn-more-button:hover {
  background-color: var(--accent-color);
  color: var(--background-color);
  border: 2px solid var(--background-color);
}

/* Image styling */
#who-we-are .team-image img {
  max-width: 500px;
  padding-right: 100px;
}

@media (max-width: 1100px) {
  /* Stack and center all content */
  #who-we-are-content {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 30px;
    margin-left: auto;
    margin-right: auto;
    max-width: 90vw;
  }

  /* Make text-content take full width and center children */
  #who-we-are .text-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;  /* center text-block inside */
  }

  /* Text block fills container and centers text */
  #who-we-are .text-block {
    max-width: 90%;
    padding-left: 0;
    text-align: center;
  }

  #who-we-are .text-block p {
    padding-left: 0;
  }

  /* Center the button container and button */
  .button-container {
    justify-content: center;
    width: 100%;
  }

  .learn-more-button {
    display: block;
    margin: 1rem auto 0;
  }

  /* Center and scale image */
  #who-we-are .team-image img {
    width: 90%;
    height: auto;
    padding-right: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
