:root {
  --primary-hover: #7f1616;
  --secondary-hover: #17334f;
  --danger: #dc2626;
  --success: #166534;
  --radius: 8px;
  --container: 1400px;

  --background: hsl(220 25% 8%);
  --foreground: hsl(210 20% 95%);
  --card: hsl(220 25% 12%);
  --card-foreground: hsl(210 20% 95%);
  --popover: hsl(220 25% 12%);
  --popover-foreground: hsl(210 20% 95%);
  --primary: hsl(0 72% 45%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(215 50% 30%);
  --secondary-foreground: hsl(0 0% 100%);
  --muted: hsl(220 20% 18%);
  --muted-foreground: hsl(220 10% 60%);
  --accent: hsl(215 55% 35%);
  --accent-foreground: hsl(0 0% 100%);
  --destructive: hsl(0 62% 50%);
  --destructive-foreground: hsl(0 0% 100%);
  --border: hsl(220 20% 20%);
  --input: hsl(220 20% 20%);
  --ring: hsl(0 72% 45%);
  --sidebar-background: hsl(220 25% 10%);
  --sidebar-foreground: hsl(210 20% 95%);
  --sidebar-primary: hsl(0 72% 45%);
  --sidebar-primary-foreground: hsl(0 0% 100%);
  --sidebar-accent: hsl(215 50% 30%);
  --sidebar-accent-foreground: hsl(0 0% 100%);
  --sidebar-border: hsl(220 20% 20%);
  --sidebar-ring: hsl(0 72% 45%);
}

.lucide {
  color: #dc2626;
  width: 1em;
  height: 1em;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.object-cover {
    -o-object-fit: cover;
    object-fit: cover;
}
.w-full {
    width: 100%;
}
.h-full {
    height: 100%;
}

.homepage-flag-bg {
  background-color: rgb(15, 19, 26);
  background-image: url(/assets/arkansas-flag-waving-background.png);
  height: 700px;
  width: 100%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
}

.container-xl {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(23, 28, 38, 0.8);
  backdrop-filter: blur(8px);
}

.header-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-radio {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.3rem;
}

.inline-form {
  display: inline;
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--muted-foreground);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-link:hover {
  background: var(--muted);
  color: var(--foreground);
}

.nav-link-active {
  background: var(--primary);
  color: #fff;
}

.menu-button,
.button,
.button-secondary,
.button-outline,
.button-ghost,
.button-danger {
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button {
  background: var(--primary);
  color: #fff;
}

.button svg {
  color: #fff;
}

.button:hover {
  background: var(--primary-hover);
}

.button-secondary {
  background: var(--secondary);
  color: #fff;
}

.button-secondary svg {
  color: #fff;
}

.button-secondary:hover {
  background: var(--secondary-hover);
}

.button-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.button-outline:hover {
  background: var(--muted);
}

.button-ghost {
  background: transparent;
  color: var(--muted-foreground);
}

.button-ghost:hover {
  background: var(--muted);
  color: var(--foreground);
}

.button-danger {
  background: var(--danger);
  color: #fff;
}

.menu-button {
  background: transparent;
  border-color: var(--border);
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--card);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.full-width {
  width: 100%;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 1.8rem 0;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.footer-left,
.footer-link {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted-foreground);
}

.footer-link:hover {
  color: var(--primary);
}

.section {
  padding: 3rem 0;
}

.page-title {
  font-size: 2rem;
  margin: 0;
}

.subtitle {
  color: var(--muted-foreground);
  max-width: 70ch;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

.grid-5 {
  grid-template-columns: 1fr;
}

.cardGroup .card:nth-of-type(1) {
  border-left: 4px solid #dc2626;
}

.cardGroup .card:nth-of-type(2) {
  border-left: 4px solid #2563eb;
}

.cardGroup .card:nth-of-type(3) {
  border-left: 4px solid #16a34a;
}

.cardGroup .card:nth-of-type(4) {
  border-left: 4px solid #eab308;
}

.cardGroup .card:nth-of-type(1) svg {
  color: #dc2626;
}

.cardGroup .card:nth-of-type(2) svg {
  color: #2563eb;
}

.cardGroup .card:nth-of-type(3) svg {
  color: #16a34a;
}

.cardGroup .card:nth-of-type(4) svg {
  color: #eab308;
}

.card {
  text-decoration: none; 
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header,
.card-content {
  padding: 1rem 1.25rem;
}

.card-title {
  margin: 0;
  font-size: 1.15rem;
}

.card:hover.hoverable {
  background: var(--muted);
}

.muted {
  color: var(--muted-foreground);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}

.hero-overlay {
  background: rgba(15, 19, 26, 0.55);
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 4rem 0;
}

.hero-logo {
  width: 320px;
  height: 320px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.alert-banner {
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.alert-active {
  background: #b91c1c;
}

.alert-test {
  background: #15803d;
}

.alert-row {
  padding: 1rem;
}

.alert-subrow {
  background: rgba(0, 0, 0, 0.8);
  padding: 0.55rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid #e7ebf2;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.88rem;
}

tr:hover {
  background: var(--muted);
}

.selected-row {
  background: rgba(153, 27, 27, 0.08);
  border-left: 2px solid var(--primary);
}

.input,
.textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: var( --input);
  color: var(--foreground);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  font-size: 0.93rem;
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab-button {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.tab-button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.map-root {
  height: 70vh;
  min-height: 500px;
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  background: #eef4ff;
  color: #1e3a8a;
}

.blog-shell {
  background: radial-gradient(circle at top right, #dbeafe 0%, rgba(219, 234, 254, 0) 60%), linear-gradient(to bottom, #f8fbff, #eef6ff);
}

.blog-card {
  border-radius: 24px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.2rem;
}

.blog-prose h2 {
  margin-top: 2.2rem;
  border-top: 1px solid #d6deeb;
  padding-top: 1rem;
}

.weather-frame {
  width: 100%;
  height: 75vh;
  min-height: 600px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f172a;
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: inline-flex;
  }

  .menu-button,
  .mobile-menu {
    display: none;
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}