@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary: #2E58A6;
    --accent: #6BA539;
    --secondary: #4DBDC6;
    --bg: #fbfbfb;
    --text: #2A2A2A;
    --ui-primary: #F3F4F6;
  }

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

  body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.2;
  }

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

  h1,
  h2,
  h3,
  nav a,
  .button {
    font-family: 'Montserrat', sans-serif;
  }

  nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    min-height: 70px;
    width: 100%;
    z-index: 999;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;

    position: relative;

    .nav-logo {
      height: 170px;
      margin-top: 1px;

      position: absolute;
      top: 1px;
      left: 28%;
      transform: translateX(-50%);
      z-index: 1000;

      border-radius: 50%;
      padding: 5px;

    }
  }
  

  .nav-logo {
    height: 56px;
    margin-top: 10px;
  }

  .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
  }

  .nav-links li a {
    color: #fff;
    font-weight: 600;
    transition: color 0.3s;
  }

  .nav-links li a:hover {
    color: var(--accent);
  }

  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
  }

  .hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
  }

  .hero {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
  }

  .hero-left {
    flex: 3;
    background-image: linear-gradient(to right, transparent 60%, var(--accent) 100%), url('https://storage.googleapis.com/lynncampaign.appspot.com/lynn-photo.JPG');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
  }

  .hero-right {
    flex: 7;
    background-image: linear-gradient(to left, transparent 40%, var(--accent) 100%), url('https://storage.googleapis.com/lynncampaign.appspot.com/diamondhead.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 40px;
    color: white;
  }

  .hero-cta {
    max-width: 550px;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    backdrop-filter: blur(4px);
  }

  .hero-cta h1 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
  }

  .hero-cta h1 span {
    color: var(--accent);
  }

  .hero-cta p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
  }

  .hero-cta .button {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
  }

  .hero-cta .button:hover {
    background: var(--secondary);
    animation: bounce 0.4s ease-in-out;

  }

  @keyframes bounce {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-5px);
    }
  }

  section {
    padding: 60px 20px;
  }

  #campaign-banner {
    padding: 0;
    margin: 10px;
  }

  .banner-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
  }

  .banner-image {
    width: 100%;
    max-height: 200px;
    aspect-ratio: 6 / 1;
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  }


  .container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--ui-primary);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  }

  h2 {
    position: relative;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-left: 10px;
    color: var(--primary);
    border-left: 6px solid var(--accent);
  }

  p {
    margin-bottom: 15px;
  }

  .intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
  }

  .intro-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .intro-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
  }

  .intro-newcontent {
    position: relative;
    flex: 1;
    /* min-width: 300px; */
  }

  .intro-newcontent .image-bg {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 8px;
    z-index: 0;
  }

  .intro-newcontent img.about-photo {
    position: relative;
    width: 100%;
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }



  .intro-image {
    position: relative;
    flex: 1;
    min-width: 300px;
  }

  .intro-image .image-bg {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    border-radius: 8px;
    z-index: 0;
  }

  .intro-image img.about-photo {
    position: relative;
    width: 100%;
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .endorsement-cards,
  .announcement-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;

  }

  #priorities .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    background: var(--secondary);
    border-radius: 8px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .endorsement,
  .announcement,
  #priorities .card {
    flex: 1 1 calc(25% - 40px);
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .endorsement:hover,
  .announcement:hover,
  #priorities .card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }

  .announcement-cards .card {
    background: #fff;
    color: #121111;
    border-left: 3px solid var(--primary);
    border-right: 12px solid var(--primary);
    border-bottom: 10px solid var(--primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
  }

  #priorities .card {
    background: var(--primary);
    color: #fff;
    padding-left: 10px;
  }

  #priorities .card h3,
  #priorities .card p {
    color: #fff;
  }


  .endorsement img.card-photo,
  .endorsement-photo {
    width: 100%;
    height: 200px;
    /* object-fit: cover;
    object-position: center top; */
    border-radius: 8px 8px 0 0;
    margin-bottom: 10px;
  }

  .endorsement h3 {
    margin: 0 0 10px;
    color: var(--accent);
   
  }
  .endorsement h4 {
    padding-bottom: 10px;
    color: var(--text);
  }

  .endorsement p {
    font-size: 0.85em;
    font-style: italic;
    /* font-weight: bold; */
  }

  .announcement time {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
  }

  #contact form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
  }

  #contact input,
  #contact textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  #contact button {
    align-self: flex-start;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
  }

  #contact button:hover {
    background: var(--accent);
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  footer {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 20px;
  }

  @media (max-width: 768px) {
    .hero {
      flex-direction: row;
      flex-wrap: nowrap;
      height: auto;
    }

    .hero-left {
      flex: 1;
      height: auto;
      min-height: 200px;
      background-position: center center !important;
      background-size: cover !important;
    }

    .hero-right {
      flex: 1;
      padding: 20px;
      justify-content: center;
      text-align: center;
    }

    .hero-cta {
      margin: 0 auto;
      text-align: center;
    }
  }

  @media (max-width: 768px) {
    .endorsement-cards {
      flex-direction: column;
    }

    .endorsement {
      flex: 1 1 100%;
    }
  }

  @media (max-width: 768px) {
    .nav-logo {
      transition: opacity 0.5s ease;
      height: 56px!important;
      margin-top: 5px!important;
      transform: translateX(-20%) !important;
      left: 8% !important;
    }
  }

  /* Dropdown Navigation */
.nav-links .dropdown {
    position: relative;
  }
  
  .nav-links .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary);
    padding: 10px 0;
    list-style: none;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .nav-links .dropdown-menu li {
    padding: 8px 20px;
  }
  
  .nav-links .dropdown-menu li a {
    color: white;
    display: block;
    font-weight: 500;
  }
  
  .nav-links .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  .nav-links .dropdown-menu li a:hover {
    background: var(--accent);
    color: white;
  }
 
  html, body {
    height: 100%;
  }
  
  body {
    display: flex;
    flex-direction: column;
  }
  
  main {
    flex: 1;
  }
  
.footer-logo {
    text-align: center;
    margin-bottom: 10px;
  }
  
  .footer-logo img {
    height: 60px;
    border-radius: 50%;
  }
 
/* Join Container */
/* 
#join.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  background: var(--ui-primary);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
} */

/* Content layout */
.join-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Join image styling */
.join-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Form section styling */
.join-form {
  flex: 1;
  transform-origin: top left;
}

#join h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  padding-left: 10px;
  color: var(--primary);
  border-left: 6px solid var(--accent);
}

#join p {
  margin-bottom: 25px;
  font-size: 1rem;
}

/* Form element styling */
#join form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#join form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


#join form .form-row label {
  font-weight: 600;
  color: var(--primary);
}

#join form input[type="text"],
#join form input[type="email"],
#join form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
}

/* Checkbox fieldset styling */
#join form fieldset {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
}

#join form legend {
  font-weight: 600;
  color: var(--primary);
  padding: 0 8px;
}

#join form .checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

#join form .checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

#join form .checkbox-row label {
  color: var(--text);
  font-weight: normal;
}

/* Textarea */
#join form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Submit button styling */
#join button {
  align-self: flex-start;
  padding: 12px 30px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background 0.3s ease;
}

#join button:hover {
  background: var(--accent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .join-content {
    flex-direction: column;
  }

  .join-image img {
    max-width: 100%;
  }

  #join.container {
    padding: 20px;
  }
}
/* ── Interest Group as Horizontal Row ── */
#join form fieldset.interest-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
}

#join form fieldset.interest-group legend {
  width: 100%;
  margin-bottom: 5px;
  padding: 0 8px;
  font-weight: 600;
  color: var(--primary);
}

/* override the column-style from .form-row */
#join form .checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  margin: 10; /* kill the default bottom margin */
}
/* Mobile: Let it grow naturally */
@media (max-width: 768px) {

  .banner-image {
   
    aspect-ratio: unset;
  }
}
/* Hamburger icon base styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  /* z-index: 1001; */

  /* position: absolute; */
  top: 50%;
  left: 40px; /* Adjust as needed */
  transform: translateY(-50%);
}


.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* Hamburger transform animation to 'X' */
.hamburger.open div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open div:nth-child(2) {
  opacity: 0;
}

.hamburger.open div:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
    margin-right: 20px;
    margin-top: 15px;
  }

  /* Stack nav links vertically and hide by default */
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--primary);
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
  }

  /* Show nav links when hamburger is active */
  .nav-links.nav-active {
    display: flex;
    padding: 20px;
  }

  /* Nav items spacing and alignment */
  .nav-links li {
    margin: 10px 0;
    text-align: left;
  }

  /* Dropdown menu overrides for mobile */
  .nav-links .dropdown:hover .dropdown-menu {
    display: none; /* disable hover */
  }

  .nav-links .dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-links .dropdown-menu {
    position: relative;
    background-color: var(--primary);
    box-shadow: none;
    padding-left: 0;
    list-style: none;
  }

  .nav-links .dropdown-menu li {
    padding: 8px 20px;
  }

  .nav-links .dropdown-menu li a {
    color: white;
    font-weight: 500;
    display: block;
  }

  /* Visual cue for open dropdown link */
  .nav-links .dropdown.open > a {
    color: var(--accent);
  }
}
/* Swap image on screens smaller than 769px */
@media (max-width: 768px) {
  .banner-image {
    content: url('https://storage.googleapis.com/lynncampaign.appspot.com/bottom-final.png');
  }
}