:root {
  /* Geometric Style Color Palette */
  --color-dark: #2E3A3A;
  --color-rust: #C96E4C;
  --color-sage: #709170;
  --color-cream: #E8E3D5;
  --color-accent-dark: #4A5858;
}

* {
  box-sizing: border-box;
}

/* --- Base Styles --- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--color-dark);
  background-color: var(--color-cream);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-dark);
  margin-top: 0;
  margin-bottom: 2rem;
}

.hcolor strong {
  color: var(--color-rust);
}

.resourceheading {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
  text-align: center;
  text-transform: uppercase;
  margin-top: 0;
}

p.why-aff {
  font-family: "Varela Round", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

p.why-aff strong {
  color: var(--color-rust);
}

h5 {
  color: var(--color-rust);
  font-size: 1.1rem;
  font-family: "Varela Round", sans-serif;
  font-weight: bold;
  line-height: 1.6;
  margin-top: 12.5px;
  margin-bottom: 12.5px;
}

ul li {
  margin-bottom: 10px;
}

/* --- Section Layouts (Single Column) --- */

.section-6 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.divdiv {
  width: 100%;
  max-width: 800px;
  margin-bottom: 40px;
  background-color: white;
  padding: 40px;
  border: 2px solid var(--color-dark);
  box-shadow: 8px 8px 0 0 var(--color-rust);
  border-radius: 5px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

/* Tally Form/Iframe Styling */
.divdiv iframe {
  flex-grow: 1;
  border: none;
  background-color: transparent;
  width: 100%;
  max-width: 100%;
}

/* --- New Join Button Style --- */
.pod-join-button {
  display: block;
  width: 300px;
  /* Constrained width for visual appeal */
  margin: 20px auto 40px auto;
  /* Center button and add vertical spacing */
  padding: 15px 30px;

  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;

  /* Geometric Styling */
  color: var(--color-cream);
  background-color: var(--color-sage);
  border: 4px solid var(--color-dark);
  box-shadow: 6px 6px 0 0 var(--color-rust);

  transition: all 0.2s ease;
}

.pod-join-button:hover {
  background-color: var(--color-dark);
  color: var(--color-cream);
  box-shadow: 4px 4px 0 0 var(--color-rust);
  transform: translateY(2px) translateX(2px);
  /* Clicked effect */
}


/* --- Image Blocks --- */

.div-block-21 {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 0px;
  margin-top: auto;
}

.image-25 {
  max-width: 45%;
  height: auto;
  opacity: 0.9;
  transition: transform 0.3s ease-out;
}

.image-25:hover {
  transform: translateY(-5px) scale(1.05);
  opacity: 1;
}

.three-up .image-25 {
  max-width: 33.3%;

}

.flip {
  transform: scaleX(-1);
}

/* --- CRITICAL HAMBURGER MENU STYLES --- */

.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--color-rust);
  border: 2px solid var(--color-dark);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 8px;
  box-shadow: 0px 0px 0 0 var(--color-dark);
  transition: background-color 0.2s;
}

.hamburger:hover {
  background-color: var(--color-sage);
}

.hamburger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-dark);
  color: var(--color-cream);
  z-index: 999;
  display: flex;
  overflow-y: auto;
  /* Allow scrolling */

  /* Hides the menu initially */
  opacity: 0;
  visibility: hidden;

  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fullscreen-menu.open {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  margin: auto;
  /* Centers content vertically and horizontally */
  text-align: center;
  padding: 20px;
}

.menu-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--color-cream);
}

.menu-link {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  text-decoration: none;
  color: var(--color-cream);
  padding: 7px 10px;
  margin: 5px 0;
  transition: color 0.2s, background-color 0.2s;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

.menu-link:hover {
  color: var(--color-rust);
  border-bottom: 2px solid var(--color-sage);
}

.menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  transition: color 0.2s;
}

.menu-close:hover {
  color: var(--color-rust);
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 991px) {
  .resourceheading {
    font-size: 2rem;
  }

  .divdiv {
    padding: 30px;
    min-height: auto;
  }

  .div-block-21 {
    flex-wrap: wrap;
    justify-content: center;
  }

  .image-25 {
    max-width: 40%;
  }
}

@media screen and (max-width: 479px) {
  .section-6 {
    padding: 10px 10px;
  }

  .resourceheading {
    font-size: 1.75rem;
    margin-top: 14px;
  }

  .divdiv {
    width: auto;
    padding: 20px;
    border: 2px solid var(--color-dark);
    box-shadow: none;
    margin-left: 3px;
    margin-right: 3px;
    margin-bottom: 30px;
  }

  .hamburger {
    width: 35px;
    height: 35px;
    top: 15px;
    right: 15px;
    box-shadow: 0px 0px 0 0 var(--color-dark);
  }

  .menu-content h1 {
    font-size: 2.5rem;
  }

  .menu-link {
    font-size: 1.4rem;
    line-height: 1.1;
  }

  .pod-join-button {
    width: 90%;
    margin: 20px auto 30px auto;
  }

  ul {
    padding-left: 8px;
    margin-left: 8px;
  }
}