/* ============================================
   RESOURCE CENTER — Info Center Redesign
   BEM naming with rc- prefix
   Design tokens matching blog.css
   ============================================ */

/* --- Hero --- */

.rc-hero {
  background: #f4f6f9;
  padding: 56px 20px 48px;
  text-align: center;
  border-bottom: 1px solid #e8eaee;
}

.rc-hero__title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 12px;
  line-height: 1.2;
}

.rc-hero__subtitle {
  font-size: 17px;
  color: #555;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.5;
}

/* --- Layout container --- */

.rc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 60px;
}

.rc-container--wide {
  max-width: 100%;
  padding: 40px 48px 60px;
}

/* --- Topic Cards Grid --- */

.rc-topics {
  margin-bottom: 48px;
}

.rc-topics__heading {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 20px;
}

.rc-topics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rc-topics__card {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  min-height: 260px;
  background-size: cover;
  background-position: center 35%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.rc-topics__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #fff;
}

.rc-topics__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 100%);
  transition: background 0.2s;
}

.rc-topics__card:hover .rc-topics__card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.rc-topics__card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 260px;
  padding: 24px 24px 36px;
}

.rc-topics__card-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

p.rc-topics__card-desc {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0 0 !important;
  padding-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* --- Interactive State Map --- */

.rc-map {
  margin-bottom: 48px;
}

.rc-map__heading {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 6px;
}

.rc-map__subheading {
  font-size: 15px;
  color: #5a6170;
  margin: 0 0 24px;
  line-height: 1.5;
}

.rc-map__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.rc-map__svg-col {
  position: sticky;
  top: 20px;
}

.rc-map__svg-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.rc-map__svg {
  width: 100%;
  height: auto;
  display: block;
}

.rc-map__state {
  fill: #d5dce8;
  stroke: #fff;
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.15s;
}

.rc-map__state:hover {
  fill: #0d2456;
}

.rc-map__tooltip {
  display: none;
  position: absolute;
  z-index: 100;
  background: #0d2456;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Popover styles are inline in us-map.ejs (Bootstrap overrides external CSS) */

.rc-map__states-table {
  margin-top: 32px;
}

.rc-map__states-table {
  max-height: 600px;
  overflow-y: auto;
}

.rc-map__states-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.rc-map__state-item {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f2f5;
}

.rc-map__state-name {
  font-size: 15px;
  font-weight: 600;
  color: #0d2456;
}

.rc-map__state-links {
  margin-top: 2px;
}

.rc-map__state-link {
  font-size: 13px;
  color: #2e7ab3;
  text-decoration: none;
}

.rc-map__state-link:hover {
  text-decoration: underline;
  color: #1a5276;
}

.rc-map__state-sep {
  color: #ccc;
  margin: 0 4px;
}

/* --- All Articles List --- */

.rc-articles {
  margin-bottom: 48px;
}

.rc-articles__heading {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 4px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8eaee;
}

.rc-articles__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rc-articles__item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid #e8eaee;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.rc-articles__item:hover {
  opacity: 0.85;
  text-decoration: none;
  color: inherit;
}

.rc-articles__item-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 6px;
  line-height: 1.3;
}

.rc-articles__item-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: #5a6170;
  margin: 0 0 8px;
}

.rc-articles__item-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--rc-tag-color, #8e95a3);
}

/* --- Blog Cross-Promo --- */

.rc-blog {
  margin-bottom: 48px;
}

.rc-blog__heading {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 4px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8eaee;
}

.rc-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.rc-blog__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8eaee;
  transition: box-shadow 0.2s, transform 0.15s;
}

.rc-blog__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.rc-blog__card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #e9ecef;
}

.rc-blog__card-body {
  padding: 16px;
}

.rc-blog__card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 6px;
  line-height: 1.3;
}

.rc-blog__card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #5a6170;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rc-blog__more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #0d2456;
  text-decoration: none;
}

.rc-blog__more:hover {
  text-decoration: underline;
}

/* --- CTA Banner --- */

.rc-cta {
  background: #f8f9fa;
  border: 1px solid #e8eaee;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  margin-bottom: 40px;
}

.rc-cta__title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 8px;
}

.rc-cta__text {
  font-size: 15px;
  color: #5a6170;
  margin: 0 0 20px;
  line-height: 1.5;
}

.rc-cta__btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #c0392b;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.rc-cta__btn:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #fff;
}

.rc-cta__btn--secondary {
  background: #2e86c1;
  color: #fff;
  margin-left: 12px;
}

.rc-cta__btn--secondary:hover {
  opacity: 0.85;
  color: #fff;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */

/* --- Breadcrumb --- */

.rc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
  list-style: none;
  padding: 0;
}

.rc-breadcrumb__link {
  color: #0d2456;
  text-decoration: none;
  font-weight: 500;
}

.rc-breadcrumb__link:hover {
  text-decoration: underline;
}

.rc-breadcrumb__sep {
  color: #ccc;
}

.rc-breadcrumb__current {
  color: #888;
}

/* --- Hero Image --- */

.rc-hero-image {
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
}

.rc-hero-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* --- Article Header --- */

.rc-article-header {
  margin-bottom: 32px;
}

.rc-article-header__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.rc-article-header__title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 12px;
  line-height: 1.2;
}

.rc-article-header__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #888;
}

/* --- Article Layout (content + sidebar) --- */

.rc-article-layout {
  width: 100%;
}

/* --- TOC Sidebar --- */

.rc-toc {
  position: sticky;
  top: 100px;
}

.rc-toc__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8eaee;
}

.rc-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rc-toc__item {
  margin-bottom: 6px;
}

.rc-toc__link {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #5a6170;
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s;
}

.rc-toc__link:hover {
  color: #0d2456;
  text-decoration: none;
}

.rc-toc__link--h3 {
  padding-left: 14px;
  font-size: 12px;
  color: #888;
}

/* --- Article Body --- */

.rc-article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  min-width: 0;
}

.rc-article-body h2 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #0d2456;
}

.rc-article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #0d2456;
}

.rc-article-body p {
  margin-bottom: 16px;
}

.rc-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.rc-article-body a {
  color: #1a3a5c;
  text-decoration: underline;
}

.rc-article-body blockquote {
  border-left: 4px solid #dac23c;
  padding: 12px 20px;
  margin: 20px 0;
  background: #f8f9fa;
  color: #555;
}

.rc-article-body ul,
.rc-article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.rc-article-body li {
  margin-bottom: 6px;
}

.rc-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.rc-article-body th,
.rc-article-body td {
  padding: 10px 12px;
  border: 1px solid #e8eaee;
  text-align: left;
  font-size: 14px;
}

.rc-article-body th {
  background: #f0f2f5;
  font-weight: 600;
}

/* --- Related Articles --- */

.rc-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e8eaee;
}

.rc-related__heading {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 20px;
}

.rc-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rc-related__card {
  display: block;
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}

.rc-related__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.rc-related__card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0d2456;
  margin: 0 0 8px;
  line-height: 1.3;
}

.rc-related__card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #5a6170;
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .rc-topics__grid {
    grid-template-columns: 1fr 1fr;
  }

  .rc-blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rc-map__layout {
    grid-template-columns: 1fr;
  }

  .rc-map__svg-col {
    position: static;
  }

  .rc-map__states-table {
    max-height: none;
  }

  .rc-hero {
    padding: 40px 16px 36px;
  }

  .rc-hero__title {
    font-size: 28px;
  }

  .rc-hero__subtitle {
    font-size: 15px;
  }

  .rc-container,
  .rc-container--wide {
    padding: 28px 16px 48px;
  }

  .rc-topics__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rc-topics__card {
    min-height: 200px;
  }

  .rc-topics__card-content {
    min-height: 200px;
    padding: 20px;
  }

  .rc-blog__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rc-articles__item-title {
    font-size: 16px;
  }

  /* Article page: stack layout on mobile */
  .rc-article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rc-toc {
    position: static;
    margin-bottom: 28px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8eaee;
  }

  .rc-article-header__title {
    font-size: 26px;
  }

  .rc-related__grid {
    grid-template-columns: 1fr;
  }

  .rc-cta {
    padding: 24px 16px;
  }

  .rc-cta__btn--secondary {
    margin-left: 0;
    margin-top: 10px;
  }
}
