

/* =========================================================
   V5.4.2 ABSOLUTE FINAL OVERRIDE
   This targets the exact visible state cards and forces
   the reference-style larger image cards.
   ========================================================= */

/* State section spacing */
html body.home main .sa-section{
  max-width:1440px !important;
  padding-left:62px !important;
  padding-right:62px !important;
}

html body.home main .sa-head{
  max-width:1320px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Force 8 larger cards */
html body.home main .sa-state-grid,
html body.home .sa-state-grid{
  width:100% !important;
  max-width:1320px !important;
  margin:0 auto !important;
  display:grid !important;
  grid-template-columns:repeat(8, 1fr) !important;
  column-gap:18px !important;
  row-gap:18px !important;
  align-items:stretch !important;
}

/* Force exact large visual card */
html body.home main .sa-state-grid > a.sa-state-card,
html body.home .sa-state-grid > a.sa-state-card,
html body.home a.sa-state-card{
  box-sizing:border-box !important;
  position:relative !important;
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  height:215px !important;
  min-height:215px !important;
  max-height:215px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:10px !important;
  overflow:hidden !important;
  background-image:
    linear-gradient(180deg, rgba(5,8,22,0) 0%, rgba(5,8,22,.18) 42%, rgba(5,8,22,.96) 100%),
    var(--state-img) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  box-shadow:0 18px 38px rgba(15,23,42,.25) !important;
  color:#fff !important;
  text-decoration:none !important;
}

html body.home main .sa-state-grid > a.sa-state-card:hover,
html body.home a.sa-state-card:hover{
  transform:translateY(-4px) !important;
  box-shadow:0 24px 48px rgba(15,23,42,.30) !important;
}

/* Top pill */
html body.home main a.sa-state-card small,
html body.home a.sa-state-card small{
  position:absolute !important;
  left:14px !important;
  top:14px !important;
  z-index:5 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:22px !important;
  padding:0 9px !important;
  margin:0 !important;
  border-radius:999px !important;
  background:rgba(3,6,14,.86) !important;
  border:1px solid rgba(217,164,65,.58) !important;
  color:#F3C55B !important;
  font-size:8.5px !important;
  line-height:1 !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.02em !important;
}

/* Title */
html body.home main a.sa-state-card strong,
html body.home a.sa-state-card strong{
  position:absolute !important;
  left:16px !important;
  right:14px !important;
  bottom:42px !important;
  z-index:5 !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  color:#fff !important;
  font-size:23px !important;
  line-height:1.05 !important;
  font-weight:950 !important;
  letter-spacing:-.02em !important;
  text-shadow:0 9px 20px rgba(0,0,0,.90) !important;
}

/* Subtitle */
html body.home main a.sa-state-card span,
html body.home a.sa-state-card span{
  position:absolute !important;
  left:16px !important;
  right:14px !important;
  bottom:20px !important;
  z-index:5 !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  color:#eef5ff !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:500 !important;
  text-shadow:0 7px 16px rgba(0,0,0,.90) !important;
}

/* Also keep white feature cards like reference */
html body.home main .sa-feature{
  background:#fff !important;
  color:#101827 !important;
}

html body.home main .sa-feature h3{
  color:#101827 !important;
}

html body.home main .sa-feature p{
  color:#334155 !important;
}

html body.home main .sa-feature a{
  color:#D9A441 !important;
}

/* Responsive */
@media(max-width:1300px){
  html body.home main .sa-state-grid,
  html body.home .sa-state-grid{
    max-width:900px !important;
    grid-template-columns:repeat(4, 1fr) !important;
  }

  html body.home main .sa-state-grid > a.sa-state-card,
  html body.home .sa-state-grid > a.sa-state-card,
  html body.home a.sa-state-card{
    height:215px !important;
    min-height:215px !important;
    max-height:215px !important;
  }
}

@media(max-width:720px){
  html body.home main .sa-section{
    padding-left:20px !important;
    padding-right:20px !important;
  }

  html body.home main .sa-state-grid,
  html body.home .sa-state-grid{
    grid-template-columns:repeat(2, 1fr) !important;
    gap:14px !important;
  }

  html body.home main .sa-state-grid > a.sa-state-card,
  html body.home .sa-state-grid > a.sa-state-card,
  html body.home a.sa-state-card{
    height:185px !important;
    min-height:185px !important;
    max-height:185px !important;
  }
}


/* =========================================================
   V5.4.3 WIDE STATE CARD FIX
   Makes Explore By State cards match reference width/scale.
   ========================================================= */

html body.home main .sa-section,
html body.home .sa-section{
  max-width:100% !important;
  width:100% !important;
  padding-left:72px !important;
  padding-right:72px !important;
}

html body.home main .sa-head,
html body.home .sa-head{
  max-width:1540px !important;
  width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

html body.home main .sa-state-grid,
html body.home .sa-state-grid{
  width:100% !important;
  max-width:1540px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  display:grid !important;
  grid-template-columns:repeat(8, minmax(0, 1fr)) !important;
  gap:18px !important;
  align-items:stretch !important;
}

html body.home main .sa-state-grid > a.sa-state-card,
html body.home .sa-state-grid > a.sa-state-card,
html body.home a.sa-state-card{
  width:100% !important;
  height:190px !important;
  min-height:190px !important;
  max-height:190px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:9px !important;
  overflow:hidden !important;
  background-image:
    linear-gradient(180deg, rgba(5,8,22,0) 0%, rgba(5,8,22,.16) 42%, rgba(5,8,22,.96) 100%),
    var(--state-img) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  box-shadow:0 18px 36px rgba(15,23,42,.24) !important;
}

html body.home a.sa-state-card small{
  left:14px !important;
  top:14px !important;
  height:22px !important;
  padding:0 9px !important;
  font-size:8.5px !important;
}

html body.home a.sa-state-card strong{
  left:16px !important;
  right:14px !important;
  bottom:42px !important;
  font-size:23px !important;
}

html body.home a.sa-state-card span{
  left:16px !important;
  right:14px !important;
  bottom:20px !important;
  font-size:12px !important;
}

/* Push Popular Guides down a bit like reference */
html body.home main .sa-section + .sa-section{
  padding-top:84px !important;
}

/* Keep white cards reference-like */
html body.home main .sa-feature{
  background:#fff !important;
  color:#101827 !important;
}

@media(max-width:1400px){
  html body.home main .sa-state-grid,
  html body.home .sa-state-grid{
    max-width:980px !important;
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  }

  html body.home main .sa-state-grid > a.sa-state-card,
  html body.home .sa-state-grid > a.sa-state-card,
  html body.home a.sa-state-card{
    height:210px !important;
    min-height:210px !important;
    max-height:210px !important;
  }
}

@media(max-width:720px){
  html body.home main .sa-section,
  html body.home .sa-section{
    padding-left:20px !important;
    padding-right:20px !important;
  }

  html body.home main .sa-state-grid,
  html body.home .sa-state-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:14px !important;
  }

  html body.home main .sa-state-grid > a.sa-state-card,
  html body.home .sa-state-grid > a.sa-state-card,
  html body.home a.sa-state-card{
    height:185px !important;
    min-height:185px !important;
    max-height:185px !important;
  }
}


/* =========================================================
   V5.5 REAL STATE IMAGES + REFERENCE CARD TUNING
   ========================================================= */

html body.home main .sa-state-grid,
html body.home .sa-state-grid{
  max-width:1440px !important;
  grid-template-columns:repeat(8, minmax(0, 1fr)) !important;
  gap:16px !important;
}

html body.home main .sa-state-grid > a.sa-state-card,
html body.home .sa-state-grid > a.sa-state-card,
html body.home a.sa-state-card{
  height:172px !important;
  min-height:172px !important;
  max-height:172px !important;
  border-radius:8px !important;
  background-size:cover !important;
  background-position:center center !important;
  box-shadow:0 16px 32px rgba(15,23,42,.24) !important;
}

html body.home main a.sa-state-card strong,
html body.home a.sa-state-card strong{
  font-size:19px !important;
  bottom:32px !important;
}

html body.home main a.sa-state-card span,
html body.home a.sa-state-card span{
  font-size:10.5px !important;
  bottom:14px !important;
}

html body.home main a.sa-state-card small,
html body.home a.sa-state-card small{
  font-size:8px !important;
  height:19px !important;
  top:11px !important;
  left:11px !important;
}

@media(max-width:1400px){
  html body.home main .sa-state-grid,
  html body.home .sa-state-grid{
    max-width:980px !important;
    grid-template-columns:repeat(4, minmax(0,1fr)) !important;
  }
  html body.home main .sa-state-grid > a.sa-state-card,
  html body.home .sa-state-grid > a.sa-state-card,
  html body.home a.sa-state-card{
    height:190px !important;
    min-height:190px !important;
    max-height:190px !important;
  }
}


/* =========================================================
   V5.6 REAL JPG CARD IMAGES
   SVG/illustration look removed. State cards use real JPG crops.
   ========================================================= */

html body.home main .sa-state-grid,
html body.home .sa-state-grid{
  max-width:1440px !important;
  grid-template-columns:repeat(8, minmax(0, 1fr)) !important;
  gap:16px !important;
}

html body.home main .sa-state-grid > a.sa-state-card,
html body.home .sa-state-grid > a.sa-state-card,
html body.home a.sa-state-card{
  height:178px !important;
  min-height:178px !important;
  max-height:178px !important;
  border-radius:8px !important;
  background-image:
    linear-gradient(180deg, rgba(5,8,22,0) 0%, rgba(5,8,22,.16) 42%, rgba(5,8,22,.96) 100%),
    var(--state-img) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  box-shadow:0 16px 32px rgba(15,23,42,.24) !important;
}

html body.home a.sa-state-card small{
  top:12px !important;
  left:12px !important;
  height:20px !important;
  padding:0 8px !important;
  font-size:8px !important;
  background:rgba(3,6,14,.82) !important;
}

html body.home a.sa-state-card strong{
  left:14px !important;
  bottom:34px !important;
  font-size:20px !important;
}

html body.home a.sa-state-card span{
  left:14px !important;
  bottom:15px !important;
  font-size:10.5px !important;
}

@media(max-width:1400px){
  html body.home main .sa-state-grid,
  html body.home .sa-state-grid{
    max-width:980px !important;
    grid-template-columns:repeat(4, minmax(0,1fr)) !important;
  }

  html body.home main .sa-state-grid > a.sa-state-card,
  html body.home .sa-state-grid > a.sa-state-card,
  html body.home a.sa-state-card{
    height:190px !important;
    min-height:190px !important;
    max-height:190px !important;
  }
}


/* =========================================================
   V6.0 FEATURED IMAGE STATE CARDS
   State cards use each post's Featured Image; fallback assets only if missing.
   ========================================================= */

html body.home main .sa-state-grid,
html body.home .sa-state-grid{
  max-width:1440px !important;
  grid-template-columns:repeat(8, minmax(0, 1fr)) !important;
  gap:16px !important;
}

html body.home main .sa-state-grid > a.sa-state-card,
html body.home .sa-state-grid > a.sa-state-card,
html body.home a.sa-state-card{
  height:182px !important;
  min-height:182px !important;
  max-height:182px !important;
  border-radius:8px !important;
  background-image:
    linear-gradient(180deg, rgba(5,8,22,0) 0%, rgba(5,8,22,.14) 42%, rgba(5,8,22,.96) 100%),
    var(--state-img) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  box-shadow:0 16px 32px rgba(15,23,42,.24) !important;
}

html body.home a.sa-state-card small{
  top:12px !important;
  left:12px !important;
  height:20px !important;
  padding:0 8px !important;
  font-size:8px !important;
}

html body.home a.sa-state-card strong{
  left:14px !important;
  bottom:34px !important;
  font-size:20px !important;
}

html body.home a.sa-state-card span{
  left:14px !important;
  bottom:15px !important;
  font-size:10.5px !important;
}

@media(max-width:1400px){
  html body.home main .sa-state-grid,
  html body.home .sa-state-grid{
    max-width:980px !important;
    grid-template-columns:repeat(4, minmax(0,1fr)) !important;
  }

  html body.home main .sa-state-grid > a.sa-state-card,
  html body.home .sa-state-grid > a.sa-state-card,
  html body.home a.sa-state-card{
    height:195px !important;
    min-height:195px !important;
    max-height:195px !important;
  }
}


/* =========================================================
   V6.5 REAL STATE CARD IMAGES
   Uses bundled Arizona / Utah / Nevada / Texas / Colorado /
   New Mexico / California / Wyoming PNG images.
   ========================================================= */

html body.home main .sa-state-grid,
html body.home .sa-state-grid{
  width:100% !important;
  max-width:1440px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:18px !important;
  align-items:stretch !important;
}

html body.home main .sa-state-grid > a.sa-state-card,
html body.home .sa-state-grid > a.sa-state-card,
html body.home a.sa-state-card{
  box-sizing:border-box !important;
  position:relative !important;
  display:block !important;
  width:100% !important;
  height:260px !important;
  min-height:260px !important;
  max-height:260px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:14px !important;
  overflow:hidden !important;
  color:#fff !important;
  text-decoration:none !important;
  background-image:
    linear-gradient(180deg, rgba(5,8,22,0) 0%, rgba(5,8,22,.18) 48%, rgba(5,8,22,.94) 100%),
    var(--state-img) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  box-shadow:0 18px 42px rgba(15,23,42,.23) !important;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

html body.home main .sa-state-grid > a.sa-state-card:hover,
html body.home .sa-state-grid > a.sa-state-card:hover{
  transform:translateY(-4px) !important;
  box-shadow:0 26px 58px rgba(15,23,42,.32) !important;
  filter:saturate(1.06) contrast(1.04) !important;
}

html body.home a.sa-state-card small{
  position:absolute !important;
  z-index:5 !important;
  left:18px !important;
  top:18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:26px !important;
  padding:0 12px !important;
  margin:0 !important;
  border-radius:999px !important;
  background:rgba(3,6,14,.82) !important;
  border:1px solid rgba(217,164,65,.62) !important;
  color:#F3C55B !important;
  font-size:10px !important;
  line-height:1 !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.02em !important;
}

html body.home a.sa-state-card strong{
  position:absolute !important;
  z-index:5 !important;
  left:22px !important;
  right:18px !important;
  bottom:48px !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  color:#fff !important;
  font-size:30px !important;
  line-height:1.05 !important;
  font-weight:950 !important;
  letter-spacing:-.03em !important;
  text-shadow:0 10px 26px rgba(0,0,0,.90) !important;
}

html body.home a.sa-state-card span{
  position:absolute !important;
  z-index:5 !important;
  left:22px !important;
  right:18px !important;
  bottom:24px !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  color:#f3f7ff !important;
  font-size:15px !important;
  line-height:1.2 !important;
  font-weight:500 !important;
  text-shadow:0 8px 20px rgba(0,0,0,.9) !important;
}

@media(max-width:1200px){
  html body.home main .sa-state-grid,
  html body.home .sa-state-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }
}

@media(max-width:720px){
  html body.home main .sa-state-grid,
  html body.home .sa-state-grid{
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  html body.home main .sa-state-grid > a.sa-state-card,
  html body.home .sa-state-grid > a.sa-state-card,
  html body.home a.sa-state-card{
    height:235px !important;
    min-height:235px !important;
    max-height:235px !important;
  }
}
