/* CSS Reset & Container Helpers */


/* HERO */
.hero {
    padding: 6rem 0;
    margin: 6.6rem auto 2rem auto;
    width: 87%;
    /* text-align: center; */
}
.hero-title-container {
  /* max-width: 632px; */
    flex: 1 50%;
    text-align: left;
    margin: 0 auto;
    background: linear-gradient(90deg, #626262 31%, #44634C 87%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4rem;
    font-style: normal;
    font-weight: 700;
    line-height: 6.8rem;
    letter-spacing: -0.25rem;
}
.hero-title-line1 {
  display: block;
  font-size: 70px;
  font-weight: 600;
  line-height: 1.0;
}
.hero-title-line2 {
  display: block;
  font-size: 40px;
  font-weight: 700;
  margin-top: 0.5rem;
  line-height: 1.6;
}
.hero-subtitle {
  max-width: 579px;
  margin: 1.5rem auto 0;
  font-size: 20px;
  font-weight: 400;
  color: #000;
  line-height: 1.4;
}

/* CARDS GRID */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  justify-content: center;
  padding: 2rem 1rem;
  width: 82%;
  margin: 5rem auto 10rem;
}
.card {
  flex: 1 1 calc(50% - 21px);
  max-width: 610px;
  background: linear-gradient(124deg, #2C5A37 40%, #5A9B6A 100%);
  border-radius: 30px;
  outline: 1px #CECECE solid;
  outline-offset: -1px;
  padding: 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
}
.card-date {
  font-size: 15px;
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}
.card-desc {
  font-size: 15px;
  font-weight: 400;
  flex-grow: 1;
  margin: 1rem 0;
}
.card-button {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #496E52;
  font-size: 14px;
  font-weight: 400;
  border-radius: 30px;
  text-decoration: none;
  outline: 2px rgba(179,179,179,0.2) solid;
}

/* DIVIDER */
.section-divider {
  /* border: none; */
  height: 1px;
  background: #D9D9D9;
  margin: 2rem auto;
  /* max-width: 1240px; */
}

.search-input {
  width: 400px;
  border: none;
  background: transparent;
  outline: none;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}
.search-button {
  background: #fff;
  border: none;
  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}



.hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4.7rem;
}

.hero-title-line2 {
  display: block;
  font-size: 40px;
  font-weight: 700;
  margin-top: 0.5rem;
  line-height: 1.2;
  color: #445d46;
}
.hero-subtitle-container {
  flex: 1 45%;
}
.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  line-height: 1.4;
  max-width: none;
  margin: 0;  /* reset centering */
}

/* wrapper that holds pill + divider */
.search-container {
  display: flex;
  align-items: center;
  width: 87%;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

/* relative container for input + button */
.search-group {
  position: relative;
}

/* the green “pill” */
.search-input {
  /* width: 400px; */
  padding: 0.75rem 3rem 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  background: #2C5A37;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  outline: none;
  width: 40rem;
  height: 5rem;
  align-items: center;
}

/* white circle button “straddling” the pill’s right edge */
.search-button {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    border: none;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* the thin grey line stretching to the right */
.search-divider {
  flex: 1;
  height: 1px;
  background: #D9D9D9;
}

.card-title,
.card-desc {
  display: -webkit-box;             /* establish a webkit-box for the clamp */
  -webkit-box-orient: vertical;     /* vertical stacking */
  -webkit-line-clamp: 2;            /* <- limit to 2 lines */
  overflow: hidden;                 /* hide the rest */
  text-overflow: ellipsis;          /* show “…” */
}

