/* =========================
   STATES PAGE (states.css)
   Page-specific only — global header/nav/footer/fonts live in /styles.css
========================= */

/* ===== Header area ===== */
.state-header-section{
  background: linear-gradient(180deg, #eef6f6 0%, #f9fdfd 100%);
  padding: var(--section-y) 20px;
  text-align: center;
  border-radius: 12px;
  margin-top: var(--section-y-sm);
}

.state-header-section h2{
  margin: 0;
  color: var(--teal-dark);
  font-size: 40px;
  letter-spacing: 0.2px;

  /* Use varsity font for the big headline */
  font-family: 'Graduate', serif;
  font-weight: 400;
}

.state-intro{
  margin: 10px auto 0;
  max-width: 760px;
  color: #333;
  line-height: 1.6;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.state-breadcrumb{
  margin: 0 0 10px;
}

.state-breadcrumb a{
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 800;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.state-breadcrumb a:hover{
  text-decoration: underline;
}

/* ===== Quick stats pills ===== */
.state-stats{
  margin: 16px auto 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat{
  background: #ffffff;
  border: 1px solid #e6efef;
  border-radius: 999px;
  padding: 9px 14px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.stat strong{
  font-size: 18px;
  color: var(--teal-dark);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
}

.stat span{
  font-size: 13px;
  color: #4b5b5a;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ===== Layout ===== */
.state-content{
  display: flex;
  gap: 44px;
  justify-content: center;
  align-items: flex-start;
  padding: var(--section-y) 10px;
}

/* ===== Left: badges + blurb ===== */
.state-left{
  width: 420px;
}

.state-badges{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.badge{
  background: #ffffff;
  border: 1px solid #e6efef;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  text-align: center;
}

.badge-media{
  padding: 14px;
  min-height: 170px; /* keeps both cards same height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-label-bar{
  background: var(--teal);
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  padding: 12px 10px;
  letter-spacing: 0.2px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Images */
.seal-badge{
  width: 130px;
  height: 130px;
  border-radius: 999px;
  display: block;
  background: #fff;
  border: 1px solid #e6efef;
  padding: 8px;
}

.flag-badge{
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e6efef;
  display: block;
}

.state-blurb{
  margin: 14px 6px 0;
  color: #354746;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ===== Right column ===== */
.state-right{
  width: 560px;
}

/* Center the Counties header */
.counties-title{
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 26px;
  text-align: center;
  font-family: 'Graduate', serif;
  font-weight: 400;
}

/* ===== County cards (2 columns) ===== */
.counties-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.county-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e6efef;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  text-decoration: none;
  color: #0f2f2e;
  font-size: 17px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;

  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
}

.county-link::after{
  content: "→";
  color: var(--teal);
  font-weight: 900;
  margin-left: 16px;
}

.county-link:hover{
  transform: translateY(-1px);
  border-color: #cfe3e3;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.county-link:focus{
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59,153,150,0.18), 0 10px 22px rgba(0,0,0,0.08);
}

/* ===== CTAs aligned to 2 columns ===== */
.state-ctas{
  margin-top: 16px;
}

.ctas-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ctas-grid .submit-button{
  width: 100%;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1100px){
  .counties-grid{
    grid-template-columns: 1fr;
  }

  .ctas-grid{
    grid-template-columns: 1fr;
  }

  .state-right{
    width: 520px;
  }
}

@media (max-width: 900px){
  .state-content{
    flex-direction: column;
    align-items: center;
    padding: var(--section-y-sm) 6px;
  }

  .state-left, .state-right{
    width: 100%;
    max-width: 760px;
  }

  .state-badges{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px){
  .state-badges{
    grid-template-columns: 1fr;
  }

  .state-header-section h2{
    font-size: 34px;
  }
}
