/* ==========================================================================
   Front Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section 1 – Hero Banner
   -------------------------------------------------------------------------- */
.fp-hero {
  background-color: #0a2a6e;
  padding: 36px 20px;
  text-align: center;
}

.fp-hero__inner {
  max-width: 700px;
  margin: 0 auto;
}

.fp-hero__headline {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.fp-hero__headline--white {
  color: #ffffff;
}

.fp-hero__headline--crimson {
  color: #e87070;
}

.fp-hero__subheadline {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 560px;
  margin: 24px auto 36px;
  opacity: 0.9;
  line-height: 1.6;
}

.fp-hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.fp-hero__cta {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.fp-hero__cta:hover,
.fp-hero__cta:focus {
  opacity: 0.88;
  transform: translateY(-2px);
  text-decoration: none;
}

.fp-hero__cta--filled {
  background-color: #b22234;
  color: #ffffff;
  border: 2px solid #b22234;
}

/* OpenID Connect form inside hero — make the submit button look like the CTA */
.fp-hero__openid-wrap {
  padding: 0;
  border: none;
  background: none;
}

.fp-hero__openid-wrap form {
  margin: 0;
  padding: 0;
}

.fp-hero__openid-wrap form > div {
  margin: 0;
  padding: 0;
}

.fp-hero__openid-wrap .button,
.fp-hero__openid-wrap input[type="submit"] {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  background-color: #b22234;
  color: #ffffff;
  border: 2px solid #b22234;
  text-decoration: none;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

.fp-hero__openid-wrap .button:hover,
.fp-hero__openid-wrap input[type="submit"]:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  color: #ffffff;
}

.fp-hero__cta--outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.fp-hero__cta--outline:hover,
.fp-hero__cta--outline:focus {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Section 2 – Filter Buttons
   -------------------------------------------------------------------------- */
.fp-filters {
  background-color: #f4f4f4;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.fp-filters__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.fp-filters__btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: #ffffff;
  color: #1a1a2e;
  border: 2px solid #1a1a2e;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.fp-filters__btn:hover,
.fp-filters__btn:focus {
  background-color: #1a1a2e;
  color: #ffffff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Section 3 – Latest Campaigns
   -------------------------------------------------------------------------- */

.fp-campaigns {
  padding: 28px 0 48px;
  background-color: #ffffff;
}

.fp-campaigns__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.fp-campaigns__title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-campaigns__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a2e;
}

.fp-campaigns__new-badge {
  background-color: #b22234;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}

.fp-campaigns__view-all {
  font-size: 0.8rem;
  color: #b22234;
  text-decoration: none;
}

.fp-campaigns__view-all:hover {
  text-decoration: underline;
  color: #b22234;
}

.fp-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.fp-cat-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  border: 0.5px solid #ccc;
  background: #f4f4f6;
  color: #555;
  font-size: 11px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.fp-cat-pill:hover,
.fp-cat-pill--active {
  background: #0a2a6e;
  border-color: #0a2a6e;
  color: #fff;
  text-decoration: none;
}

.fp-campaigns__empty {
  text-align: center;
  color: #6c757d;
  font-size: 1rem;
  grid-column: 1 / -1;
}

/* Cards grid — 3 col desktop, 2 tablet, 1 mobile */
.fp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 991px) {
  .fp-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .fp-cards-grid { grid-template-columns: 1fr; }
}

/* Card */
.fp-card {
  background: #ffffff;
  border: 0.5px solid #dddddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Image */
.fp-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e8eaf0;
}

.fp-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-card__img--placeholder {
  width: 100%;
  height: 100%;
  background-color: #dee2e6;
}

/* New dot indicator */
.fp-card__new-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #b22234;
  border: 1.5px solid #ffffff;
}

/* Card body */
.fp-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Category badge */
.fp-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  align-self: flex-start;
  background-color: #e9ecef;
  color: #495057;
}
.fp-card__badge--elections-voting,
.fp-card__badge--elections-amp-voting { background: #e6f1fb; color: #0c447c; }
.fp-card__badge--healthcare           { background: #eaf3de; color: #27500a; }
.fp-card__badge--civil-rights         { background: #faeeda; color: #633806; }
.fp-card__badge--economy-jobs,
.fp-card__badge--economy-amp-jobs     { background: #fbeaf0; color: #72243e; }
.fp-card__badge--education            { background: #eeedfe; color: #3c3489; }
.fp-card__badge--local-government     { background: #e1f5ee; color: #085041; }
.fp-card__badge--environment          { background: #e8f5e9; color: #1b5e20; }
.fp-card__badge--immigration          { background: #fff3e0; color: #e65100; }
.fp-card__badge--public-safety        { background: #fce4ec; color: #880e4f; }

.fp-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
  flex: 1;
}

/* Short description */
.fp-card__desc {
  font-size: 0.75rem;
  color: #666666;
  line-height: 1.5;
}

/* Geo + end date meta row */
.fp-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fp-card__geo {
  font-size: 0.65rem;
  color: #888888;
}

.fp-card__enddate {
  font-size: 0.65rem;
  color: #888888;
}

.fp-card__enddate--expiring {
  color: #b27a00;
}

/* CTA button */
/* Clickable image and title */
.fp-card__img-wrap a {
  display: block;
}

.fp-card__title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.fp-card__title-link:hover .fp-card__title {
  color: #0a2a6e;
}

.fp-card__cta {
  display: block;
  text-align: center;
  padding: 7px 0;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.fp-card__cta--outline {
  background-color: transparent;
  color: #b22234;
  border: 1px solid #b22234;
}

.fp-card__cta--outline:hover,
.fp-card__cta--outline:focus {
  background-color: #b22234;
  color: #ffffff;
  text-decoration: none;
}

.fp-card__cta--filled {
  background-color: #b22234;
  color: #ffffff;
  border: 1px solid #b22234;
}

.fp-card__cta--filled:hover,
.fp-card__cta--filled:focus {
  background-color: #8e1a28;
  border-color: #8e1a28;
  color: #ffffff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Section 2 – Featured Campaigns
   -------------------------------------------------------------------------- */

.fp-featured {
  padding: 28px 0 48px;
  background-color: #f8f8f8;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

/* --------------------------------------------------------------------------
   Section 7 – Mission Strip
   -------------------------------------------------------------------------- */

.fp-mission {
  background-color: #b22234;
  padding: 56px 24px;
  text-align: center;
}

.fp-mission__heading {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 28px;
}

.fp-mission__items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.fp-mission__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
}

.fp-mission__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

