/* =========================
   COUNTY PAGE STYLES
   states/county.css
   ========================= */

.county-header-section{
  padding: 26px 0 10px;
}

.county-breadcrumb{
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.county-breadcrumb a{
  color: #3b9996;
  font-weight: 700;
}

.county-header-row{
  display: flex;
  gap: 20px;
  align-items: center;
  background: #e7f5f5;
  border-radius: 12px;
  padding: 18px;
}

/* Seal circle */
.county-seal-wrap{
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0,0,0,0.08);
  overflow: hidden;
  flex: 0 0 auto;

  /* helps with seal png whitespace + gives breathing room */
  padding: 10px;
}

.county-seal{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  /* If your seal artwork has uneven whitespace, nudge here */
  transform: translateX(0px) translateY(0px);
}

.county-header-text h2{
  margin: 0;
  font-size: 1.8rem;
}

.county-intro{
  margin: 8px 0 0;
  color: #333;
}

.county-stats{
  display: flex;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.county-stats .stat{
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 110px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.county-stats .stat strong{
  display:block;
  font-size: 1.2rem;
  color: #3b9996;
}

.county-stats .stat span{
  font-size: 0.9rem;
  color: #555;
}

.county-content{
  padding: 20px 0 34px;
}

.schools-title{
  margin: 8px 0 16px;
  font-size: 1.2rem;
  color: #1f2a2a;
}

/* Schools Grid */
.schools-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.school-card{
  background: #f1f8f8;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.08);
}

.school-media{
  width: 140px;
  height: 90px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  flex: 0 0 auto;
}

.school-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.school-details{
  width: 100%;
}

.school-details h4{
  margin: 0;
  font-size: 1.15rem;
  color: #2c4a4a;
}

.school-actions{
  margin-top: 12px;
}

/* NEW: nicer School → link as a pill button */
.school-link-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  background: #3b9996;
  color: #fff;
  border: 2px solid #3b9996;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.school-link-btn:hover{
  background: #2f7f7c;
  border-color: #2f7f7c;
  transform: translateY(-1px);
}

.school-link-btn span{
  font-size: 1.05em;
}

/* If you still use submit-button.small anywhere, keep it functional */
.submit-button.small{
  padding: 10px 14px;
  font-size: 0.95rem;
}

/* Center and space CTA buttons at bottom */
.county-ctas{
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* This assumes you're using: <div class="county-ctas ctas-grid"> ... */
.county-ctas.ctas-grid{
  gap: 18px;
  width: 100%;
  max-width: 520px;
}

/* Responsive */
@media (max-width: 850px){
  .county-header-row{
    flex-direction: column;
    text-align: center;
  }

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

  .school-card{
    flex-direction: column;
    text-align: center;
  }

  .school-media{
    width: 100%;
    height: 120px;
  }

  .county-stats{
    justify-content: center;
  }
}
