/* STATE ARCHIVE */

/* Container & hero */
.state-archive.container { 
  max-width:1200px; 
  margin:0 auto; 
  padding:48px 20px 24px; 
}

.archive-hero { 
  text-align:center; 
  margin:0 0 44px; 
}

.archive-title { 
  font-size:50px; 
  color:#1e3a5f; 
  line-height:1.2; 
  margin:0 0 24px; 
  font-weight:700; 
  letter-spacing:.2px; 
}

.archive-subtitle {
  font-size: 18px;       
  font-weight: 400;      
  line-height: 1.6;      
  color: #8C8C8C;        
  max-width: 70ch;
  margin: 0 auto;
}

/* Search */
.state-archive__search { 
  display:flex; 
  justify-content:center; 
  padding:24px 0 12px;
  margin-bottom: 15px;
}

.state-archive__search form {
  position:relative; 
  display:flex; 
  align-items:center;
  max-width:560px; width:100%;
  background:#fff; 
  border:1px solid #E6ECF3; 
  border-radius:9999px;
  padding:12px 18px;
  box-shadow:0 8px 26px rgba(2,6,23,.03);
}

.sas-input { 
  flex:1 1 auto; 
  border:0;                
  outline:0; 
  font-size:16px; 
  line-height:1.2; 
  background:transparent; 
  color:#111827; 
}

.sas-input::placeholder { 
  color:#8C8C8C; 
}

/* Button */
.sas-btn {
  position:absolute; 
  right:18px; 
  top:50%; 
  transform:translateY(-50%);
  border:0;               
  background:transparent;  
  cursor:pointer;
  display:grid; 
  place-items:center; 
  color:#111827;
  transition:color .2s ease, transform .15s ease;
}

.sas-btn:hover { 
  color:#3B82F6;
  background-color: #fff;           
  transform:translateY(-50%) translateX(1px); 
}

.sas-btn svg { 
  width:18px; 
  height:18px; 
  display:block;
}

.state-archive__search input[type="search"]#state-archive-search.sas-input {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

/* WebKit search decorations */
#state-archive-search::-webkit-search-decoration,
#state-archive-search::-webkit-search-cancel-button,
#state-archive-search::-webkit-search-results-button,
#state-archive-search::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* Also when focused */
#state-archive-search:focus,
#state-archive-search:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Grid */
.cards-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin:28px 0 22px; list-style:none; padding:0; }
@media (max-width:1024px){ .cards-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){  .cards-grid{ grid-template-columns:1fr; } }

/* Card  */
.cat-card{ list-style:none; }
.cat-card__inner{
  position: relative;
  display: grid;
  grid-template-rows: 64px auto 1fr;  
  row-gap: 12px;                      
  background: #f6f8fb;
  border: 1px solid #e6ecf3;
  border-radius: 16px;
  padding: 18px 18px 20px;
  min-height: 260px;
  box-shadow: 0 2px 10px rgba(2,6,23,.05);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.cat-card__inner:hover {
  transform: translateY(-2px);
  background: #f9fbff;
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
}

.cat-card__badge {
  position:absolute; 
  top:16px; 
  left:16px;
  width:60px; 
  height:60px; 
  border-radius:999px;
  background:#e9f2ff; 
  border:1px solid #d6e6ff;
  display:grid; 
  place-items:center; 
  z-index:1;
}

.cat-card__badge svg { 
  width:30px; 
  height:30px; 
  display:block; 
}

.cat-card__header {
  grid-row: 2;
  display: block;
  height: auto;
  margin: 0;          
  padding-left: 6px;
}

.cat-card__title { 
  margin:0; 
  font-size:20px; 
  font-weight:600; 
  color:#111827; 
  line-height:1; 
}

.cat-card__title a { 
  color:inherit; 
  text-decoration:none; 
  transition:color .2s ease; 
}

.cat-card__title a:hover { 
  color:#3B82F6; 
  text-decoration:none; 
}

/* Arrow in top right corner */
.cat-card__open {
  position:absolute; 
  top:16px; 
  right:16px;
  width:22px; 
  height:22px; 
  padding:0; 
  border:0; 
  background:transparent;
  color:#6b7280; 
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  transition:color .15s ease, transform .15s ease;
}

.cat-card__open:hover { 
  color:#111827; 
  transform:translateY(-1px); 
}

/* pills - 3 row  */
.cat-card__links {
  grid-row:3;
  list-style:none; padding:0; margin:0;
  display:grid; gap:12px;
}

.pill-link {
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:16px;
  background:#fff;
  border:1px solid #e6ecf3;
  border-radius:999px;
  padding:12px 14px;
  text-decoration:none; 
  color:#1f2937; 
  font-weight:500; 
  font-size:14px;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.pill-link:hover { 
  border-color:#cfe0ff; 
  box-shadow:0 0 0 2px rgba(59,130,246,.12); 
  transform:translateX(1px); 
}

/* arrow in pill */
.pill-link__arrow { 
  width:18px; 
  height:18px; 
  flex:0 0 18px; 
}

/* CTA  */
.state-archive .state-cta {
  margin: 96px 0 56px;
}

.state-archive .state-cta .cta-box {
  background: linear-gradient(180deg, #60A5FA 0%, #1E3A5F 100%);
  color:#fff;
  border-radius:16px;
  padding:100px 48px;                 
  max-width:1120px;
  margin:0 auto;
  text-align:center;
  box-shadow:0 16px 44px rgba(0,0,0,0.1);
}

/* title & subtitle */
.state-archive .state-cta .cta-box h2 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.state-archive .state-cta .cta-box p {
  margin: 0 0 36px;
  color: #E6ECF3;                        
  font-size: 18px;
}

.state-archive .state-cta .cta-benefits {
  background:#E7ECF2;
  border-radius:9999px;
  padding:32px 36px;
  max-width:760px;
  margin:0 auto 36px;
  display: grid;
  row-gap:22px;
  justify-items: center;
  text-align: center;
}

.state-archive .state-cta .cta-benefits .benefit {
  position: relative;
  display: block;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding-left: 44px;
  text-align: left;
  font-size:20px;
  line-height:1.45;
  color:#111827;
}


.state-archive .state-cta .cta-benefits .benefit strong {
  font-weight:700;
}

.state-archive .state-cta .cta-benefits .benefit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; 
  height: 28px;
  border-radius: 50%;
  background: #10B981;                
  flex: 0 0 28px;
  -webkit-mask: url("/wp-content/themes/generatepress-child/assets/icons/check.svg") center/20px 20px no-repeat;
          mask: url("/wp-content/themes/generatepress-child/assets/icons/check.svg") center/20px 20px no-repeat;
}

.state-archive .state-cta .cta-actions {
  display: flex; 
  justify-content: center;
  gap: 18px; 
  flex-wrap: wrap;
  margin-top: 12px;
}

.state-archive .state-cta .cta-actions .btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s ease;
}

.state-archive .state-cta .cta-actions .btn-primary {
  background: #3B82F6;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 6px 16px rgba(59,130,246,.35);
  min-width: 240px;
}

.state-archive .state-cta .cta-actions .btn-primary:hover {
  background: #2563EB;
  box-shadow: 0 8px 18px rgba(37,99,235,.40);
}

.state-archive .state-cta .cta-actions .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.65);
  min-width: 200px;
}

.state-archive .state-cta .cta-actions .btn-ghost:hover {
  background:rgba(255,255,255,.08);
  border-color:#fff;
}

@media (max-width: 640px) {
  .state-archive .state-cta .cta-box { 
    padding:64px 20px 52px; 
  }

  .state-archive .state-cta .cta-box h2 { 
    font-size:30px; 
  }
  .state-archive .state-cta .cta-box { 
    font-size:16px; 
    margin-bottom:28px; 
  }

  .state-archive .state-cta .cta-benefits {
    max-width:100%;
    border-radius:22px;
    padding:22px 20px;
    row-gap:14px;
    margin-bottom:28px;
  }
  
  .state-archive .state-cta .cta-benefits .benefit { 
    font-size:18px; 
    gap:12px; 
  }
  .state-archive .state-cta .cta-benefits .benefit::before {
    width:22px; 
    height:22px;
    -webkit-mask-size:14px 14px; 
    mask-size:14px 14px;
  }

  .state-archive .state-cta .cta-actions .btn { 
    width:100%; 
    min-width:unset; 
  }
}


/* A11y helper */
.sr-only { 
  position:absolute; 
  width:1px; 
  height:1px; 
  padding:0; 
  margin:-1px; 
  overflow:hidden; 
  clip:rect(0,0,0,0); 
  white-space:nowrap; border:0; 
}
