/* =========================
   Veteran Resources Page
   Scoped to existing HTML
   ========================= */

.veteran-resources-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  color: #1d1d1d;
  line-height: 1.65;
}

/* Reset spacing inside wrapper */
.veteran-resources-wrapper * {
  box-sizing: border-box;
}

.veteran-resources-wrapper p,
.veteran-resources-wrapper ul,
.veteran-resources-wrapper li {
  font-size: 16px;
}

.veteran-resources-wrapper a {
  text-decoration: none;
}

/* =========================
   Crisis section
   ========================= */

.vr-emergency {
  background: #fff7f7;
  border: 2px solid #b22222;
  border-left: 8px solid #b22222;
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin: 0 0 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.vr-emergency-title {
  font-size: 28px;
  font-weight: 800;
  color: #8b1e1e;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.vr-emergency-text {
  margin: 0;
  font-size: 17px;
  color: #222;
}

.vr-emergency-text strong {
  color: #111;
}

/* =========================
   Page intro
   ========================= */

.vr-page-title {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #0f2d52;
  font-weight: 800;
}

.vr-page-subtitle {
  font-size: 18px;
  color: #444;
  margin: 0 0 1.5rem;
  max-width: 900px;
}

.vr-flag-bar {
  height: 8px;
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #0f2d52 0%,
    #0f2d52 33.33%,
    #b22222 33.33%,
    #b22222 66.66%,
    #d4af37 66.66%,
    #d4af37 100%
  );
}

/* =========================
   Grid/cards
   ========================= */

.vr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.vr-card {
  background: #ffffff;
  border: 1px solid #e3e6ea;
  border-top-width: 6px;
  border-radius: 14px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09);
}

.vr-card-border-blue {
  border-top-color: #0f4c81;
}

.vr-card-border-red {
  border-top-color: #b22222;
}

.vr-card-border-gold {
  border-top-color: #c89b1d;
}

.vr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.vr-card-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  color: #13263f;
}

.vr-card-tag {
  display: inline-block;
  background: #eef3f8;
  color: #294a6e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.vr-card-text {
  margin: 0 0 1rem;
  color: #333;
}

.vr-card ul.vr-card-text {
  margin-top: 0.5rem;
}

.vr-card li {
  margin-bottom: 0.55rem;
}

.vr-card li:last-child {
  margin-bottom: 0;
}

/* =========================
   Buttons
   ========================= */

.vr-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.vr-button {
  display: inline-block;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  transition: all 0.18s ease;
  text-align: center;
}

.vr-button:hover {
  transform: translateY(-1px);
}

.vr-button-primary {
  background: #b22222;
  color: #fff !important;
  border: 2px solid #b22222;
}

.vr-button-primary:hover {
  background: #931b1b;
  border-color: #931b1b;
  color: #fff !important;
}

.vr-button-blue {
  background: #0f4c81;
  color: #fff !important;
  border: 2px solid #0f4c81;
}

.vr-button-blue:hover {
  background: #0c3d69;
  border-color: #0c3d69;
  color: #fff !important;
}

.vr-button-outline {
  background: #fff;
  color: #0f2d52 !important;
  border: 2px solid #c8d2dc;
}

.vr-button-outline:hover {
  background: #f4f7fa;
  border-color: #9fb3c5;
  color: #0f2d52 !important;
}

/* =========================
   Footer note
   ========================= */

.vr-footer-note {
  margin-top: 1.5rem;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #e1e4e8;
  padding-top: 1rem;
}

/* =========================
   Mobile/tablet
   ========================= */

@media (max-width: 900px) {
  .vr-grid {
    grid-template-columns: 1fr;
  }

  .vr-page-title {
    font-size: 34px;
  }

  .vr-card-title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .veteran-resources-wrapper {
    padding: 1rem 0 2rem;
  }

  .vr-emergency {
    padding: 1rem 1rem 1.1rem;
  }

  .vr-emergency-title {
    font-size: 24px;
  }

  .vr-page-title {
    font-size: 30px;
  }

  .vr-page-subtitle {
    font-size: 17px;
  }

  .vr-card {
    padding: 1.1rem 1rem 1.2rem;
  }

  .vr-card-title {
    font-size: 22px;
  }

  .vr-button {
    width: 100%;
  }

  .vr-button-row {
    flex-direction: column;
  }
}
/* Fix Veteran Resources grid layout */

.veteran-resources-wrapper .vr-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
}

.veteran-resources-wrapper .vr-grid > .vr-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}

@media (max-width: 767px) {
  .veteran-resources-wrapper .vr-grid {
    grid-template-columns: 1fr !important;
  }