:root {
  --learn-blog: var(--nhs-green);
  --learn-blog-bg: var(--nhs-green-light);
  --learn-case: #1a6fb5;
  --learn-case-bg: #eef5fc;
  --learn-tip: #b8860b;
  --learn-tip-bg: #fef9ee;
  --learn-faq: #6b4fa0;
  --learn-faq-bg: #f3f0f8;
  --learn-news: #b5455a;
  --learn-news-bg: #fbeef1;
  --learn-edu: #c26a2b;
  --learn-edu-bg: #fdf2ea;
}

body.nhsaves-ui-active .page-hero {
  position: relative;
  background: linear-gradient(135deg, #007670 0%, #005a55 60%, #004440 100%);
  color: #ffffff;
  overflow: hidden;
}
body.nhsaves-ui-active .page-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
body.nhsaves-ui-active .page-hero .page-hero__inner {
  max-width: var(--nhs-max-width);
  margin: 0 auto;
  padding: 48px 24px 44px;
  position: relative;
  z-index: 1;
}
body.nhsaves-ui-active .page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #ffffff;
}
body.nhsaves-ui-active .page-hero p {
  font-size: 17px;
  opacity: 0.88;
  max-width: 600px;
  line-height: 1.5;
  font-weight: 300;
  margin: 0;
}

@media (max-width: 900px) {
  body.nhsaves-ui-active .page-hero .page-hero__inner {
    padding: 36px 20px 32px;
  }
  body.nhsaves-ui-active .page-hero h1 {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  body.nhsaves-ui-active .page-hero h1 {
    font-size: 24px;
  }
}
body.nhsaves-ui-active .featured-callout {
  background: var(--nhs-green-lighter);
  border: 1.5px solid var(--nhs-green-light);
  border-radius: var(--nhs-radius-xl, 16px);
  padding: 28px 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
body.nhsaves-ui-active .featured-callout .featured-callout-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--nhs-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.nhsaves-ui-active .featured-callout .featured-callout-icon svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}
body.nhsaves-ui-active .featured-callout .featured-callout-text {
  flex: 1;
  min-width: 0;
}
body.nhsaves-ui-active .featured-callout .featured-callout-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--nhs-text);
  margin: 0 0 4px;
}
body.nhsaves-ui-active .featured-callout .featured-callout-text p {
  font-size: 16px;
  color: var(--nhs-text-light);
  line-height: 1.5;
  margin: 0;
}
body.nhsaves-ui-active .featured-callout .btn {
  flex-shrink: 0;
}

body.nhsaves-ui-active .resources-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--nhs-font-body);
  border-radius: var(--nhs-radius-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
body.nhsaves-ui-active .resources-section .btn svg {
  width: 16px;
  height: 16px;
}
body.nhsaves-ui-active .resources-section .btn.btn-primary {
  background: var(--nhs-green);
  color: #ffffff;
  border-color: var(--nhs-green);
}
body.nhsaves-ui-active .resources-section .btn.btn-primary:hover, body.nhsaves-ui-active .resources-section .btn.btn-primary:focus {
  background: var(--nhs-green-dark);
  border-color: var(--nhs-green-dark);
  color: #ffffff;
  text-decoration: none;
}
body.nhsaves-ui-active .resources-section .btn.btn-secondary {
  background: var(--nhs-bg);
  color: var(--nhs-text);
  border-color: var(--nhs-border);
}
body.nhsaves-ui-active .resources-section .btn.btn-secondary:hover, body.nhsaves-ui-active .resources-section .btn.btn-secondary:focus {
  border-color: var(--nhs-green);
  color: var(--nhs-green);
  text-decoration: none;
}

body.nhsaves-ui-active .resources-section a.btn-primary,
body.nhsaves-ui-active .resources-section a.btn-primary:link,
body.nhsaves-ui-active .resources-section a.btn-primary:visited {
  color: #ffffff;
}

@media (max-width: 960px) {
  body.nhsaves-ui-active .featured-callout {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  body.nhsaves-ui-active .featured-callout .btn {
    align-self: center;
  }
}
body.nhsaves-ui-active .resources-section {
  max-width: var(--nhs-max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}
body.nhsaves-ui-active .resources-section .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 20px;
  align-items: center;
  border-bottom: 1px solid var(--nhs-border-light);
}
body.nhsaves-ui-active .resources-section .search-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--nhs-border);
  border-radius: var(--nhs-radius);
  font-size: 16px;
  font-family: var(--nhs-font-body);
  color: var(--nhs-text);
  background: var(--nhs-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cline x1='10.5' y1='10.5' x2='14' y2='14'/%3E%3C/svg%3E") 12px center no-repeat;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.nhsaves-ui-active .resources-section .search-input:focus {
  outline: none;
  border-color: var(--nhs-green);
  box-shadow: 0 0 0 3px rgba(0, 118, 112, 0.1);
}
body.nhsaves-ui-active .resources-section .search-input::-moz-placeholder {
  color: var(--nhs-text-muted);
}
body.nhsaves-ui-active .resources-section .search-input::placeholder {
  color: var(--nhs-text-muted);
}
body.nhsaves-ui-active .resources-section .filter-select {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--nhs-border);
  border-radius: var(--nhs-radius);
  font-size: 16px;
  font-family: var(--nhs-font-body);
  color: var(--nhs-text);
  background-color: var(--nhs-bg);
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.nhsaves-ui-active .resources-section .filter-select:focus {
  outline: none;
  border-color: var(--nhs-green);
  box-shadow: 0 0 0 3px rgba(0, 118, 112, 0.1);
}

@media (max-width: 600px) {
  body.nhsaves-ui-active .resources-section .filter-bar {
    flex-direction: column;
  }
  body.nhsaves-ui-active .resources-section .search-input,
  body.nhsaves-ui-active .resources-section .filter-select {
    width: 100%;
    min-width: auto;
  }
}
body.nhsaves-ui-active .resources-section .type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 0 0;
}
body.nhsaves-ui-active .resources-section .type-chip {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--nhs-font-body);
  border: 1px solid var(--nhs-border);
  border-radius: 20px;
  background: var(--nhs-bg);
  color: var(--nhs-text-light);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
body.nhsaves-ui-active .resources-section .type-chip:hover {
  border-color: var(--nhs-green);
  color: var(--nhs-green);
}
body.nhsaves-ui-active .resources-section .type-chip.active {
  background: var(--nhs-green);
  color: #ffffff;
  border-color: var(--nhs-green);
}
body.nhsaves-ui-active .resources-section .type-chip .chip-count {
  font-size: 14px;
  opacity: 0.7;
  margin-left: 3px;
}
body.nhsaves-ui-active .resources-section .results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 16px;
  font-size: 13px;
  color: var(--nhs-text-muted);
  gap: 12px;
  flex-wrap: wrap;
}
body.nhsaves-ui-active .resources-section .sort-select {
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--nhs-border-light);
  border-radius: var(--nhs-radius);
  font-size: 13px;
  font-family: var(--nhs-font-body);
  color: var(--nhs-text-light);
  background-color: var(--nhs-bg);
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M2.5 3.5L5 6L7.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

@keyframes nhs-learn-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.nhsaves-ui-active .resources-section .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  transition: opacity 0.15s ease;
}
body.nhsaves-ui-active .resources-section .articles-grid.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

body.nhsaves-ui-active a.article-card,
body.nhsaves-ui-active a.article-card:link,
body.nhsaves-ui-active a.article-card:visited,
body.nhsaves-ui-active a.article-card:hover,
body.nhsaves-ui-active a.article-card:focus,
body.nhsaves-ui-active a.article-card:active {
  text-decoration: none;
}

body.nhsaves-ui-active .article-card {
  display: flex;
  flex-direction: column;
  background: var(--nhs-bg);
  border: 1.5px solid var(--nhs-border-light);
  border-radius: var(--nhs-radius-xl, 16px);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  animation: nhs-learn-fade-in-up 0.3s ease both;
}
body.nhsaves-ui-active .article-card.is-hidden {
  display: none;
}
body.nhsaves-ui-active .article-card:hover, body.nhsaves-ui-active .article-card:focus {
  border-color: var(--nhs-green);
  box-shadow: var(--nhs-shadow-hover);
  text-decoration: none;
  transform: translateY(-2px);
}
body.nhsaves-ui-active .article-card:hover h3, body.nhsaves-ui-active .article-card:focus h3 {
  color: var(--nhs-green);
}
body.nhsaves-ui-active .article-card .article-card-image {
  height: 200px;
  background: var(--nhs-bg-light);
  overflow: hidden;
  position: relative;
}
body.nhsaves-ui-active .article-card .article-card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
body.nhsaves-ui-active .article-card .article-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--nhs-green-lighter), var(--nhs-green-light));
  display: flex;
  align-items: center;
  justify-content: center;
}
body.nhsaves-ui-active .article-card .article-card-image-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--nhs-green);
  opacity: 0.25;
}
body.nhsaves-ui-active .article-card .article-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
body.nhsaves-ui-active .article-card .article-tag {
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  align-self: flex-start;
}
body.nhsaves-ui-active .article-card .article-tag.tag-blog {
  background: var(--learn-blog-bg);
  color: var(--learn-blog);
}
body.nhsaves-ui-active .article-card .article-tag.tag-case {
  background: var(--learn-case-bg);
  color: var(--learn-case);
}
body.nhsaves-ui-active .article-card .article-tag.tag-tip {
  background: var(--learn-tip-bg);
  color: var(--learn-tip);
}
body.nhsaves-ui-active .article-card .article-tag.tag-faq {
  background: var(--learn-faq-bg);
  color: var(--learn-faq);
}
body.nhsaves-ui-active .article-card .article-tag.tag-news {
  background: var(--learn-news-bg);
  color: var(--learn-news);
}
body.nhsaves-ui-active .article-card .article-tag.tag-edu {
  background: var(--learn-edu-bg);
  color: var(--learn-edu);
}
body.nhsaves-ui-active .article-card .article-tag.tag-default {
  background: var(--nhs-bg-light);
  color: var(--nhs-text-light);
}
body.nhsaves-ui-active .article-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--nhs-text);
  line-height: 1.3;
  margin: 0 0 8px;
  transition: color 0.15s;
}
body.nhsaves-ui-active .article-card p {
  font-size: 14px;
  color: var(--nhs-text-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
body.nhsaves-ui-active .article-card .article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--nhs-border-light);
  font-size: 14px;
  color: var(--nhs-text-muted);
  gap: 8px;
}
body.nhsaves-ui-active .article-card .read-more {
  font-weight: 600;
  color: var(--nhs-green);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
body.nhsaves-ui-active .article-card .read-more svg {
  width: 14px;
  height: 14px;
}

body.nhsaves-ui-active .resources-section .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--nhs-text-muted);
  display: none;
}
body.nhsaves-ui-active .resources-section .empty-state.is-visible {
  display: block;
}
body.nhsaves-ui-active .resources-section .empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--nhs-text-light);
  margin: 0 0 6px;
}
body.nhsaves-ui-active .resources-section .empty-state p {
  font-size: 16px;
  margin: 0 0 16px;
}
body.nhsaves-ui-active .resources-section .empty-state button {
  padding: 8px 20px;
  background: var(--nhs-green);
  color: #ffffff;
  border: none;
  border-radius: var(--nhs-radius);
  font-family: var(--nhs-font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
body.nhsaves-ui-active .resources-section .empty-state button:hover, body.nhsaves-ui-active .resources-section .empty-state button:focus {
  background: var(--nhs-green-dark);
}
body.nhsaves-ui-active .resources-section .load-more-wrap {
  text-align: center;
  padding: 32px 0 0;
}
body.nhsaves-ui-active .resources-section .load-more-wrap.is-hidden {
  display: none;
}
body.nhsaves-ui-active .resources-section .load-more-btn {
  padding: 12px 32px;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--nhs-font-body);
  color: var(--nhs-text);
  background: var(--nhs-bg);
  border: 1.5px solid var(--nhs-border);
  border-radius: var(--nhs-radius-lg);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
body.nhsaves-ui-active .resources-section .load-more-btn:hover, body.nhsaves-ui-active .resources-section .load-more-btn:focus {
  border-color: var(--nhs-green);
  color: var(--nhs-green);
}

@media (max-width: 960px) {
  body.nhsaves-ui-active .resources-section .articles-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  body.nhsaves-ui-active .resources-section .articles-grid {
    grid-template-columns: 1fr;
  }
}
body.nhsaves-ui-active .quick-links-band {
  background: var(--nhs-bg-light);
  border-top: 1px solid var(--nhs-border-light);
  padding: 48px 0;
}
body.nhsaves-ui-active .quick-links-band .quick-links-band__inner {
  max-width: var(--nhs-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
body.nhsaves-ui-active .quick-links-band .quick-links-header {
  font-size: 22px;
  font-weight: 700;
  color: var(--nhs-text);
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}
body.nhsaves-ui-active .quick-links-band .quick-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

body.nhsaves-ui-active a.quick-link-card,
body.nhsaves-ui-active a.quick-link-card:link,
body.nhsaves-ui-active a.quick-link-card:visited,
body.nhsaves-ui-active a.quick-link-card:hover,
body.nhsaves-ui-active a.quick-link-card:focus,
body.nhsaves-ui-active a.quick-link-card:active {
  text-decoration: none;
}

body.nhsaves-ui-active .quick-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--nhs-bg);
  border: 1.5px solid var(--nhs-border-light);
  border-radius: var(--nhs-radius-xl, 16px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
body.nhsaves-ui-active .quick-link-card:hover, body.nhsaves-ui-active .quick-link-card:focus {
  border-color: var(--nhs-green);
  box-shadow: var(--nhs-shadow-hover);
  text-decoration: none;
  transform: translateY(-2px);
}
body.nhsaves-ui-active .quick-link-card:hover .quick-link-text h3, body.nhsaves-ui-active .quick-link-card:focus .quick-link-text h3 {
  color: var(--nhs-green);
}
body.nhsaves-ui-active .quick-link-card:hover .quick-link-arrow, body.nhsaves-ui-active .quick-link-card:focus .quick-link-arrow {
  background: var(--nhs-green);
  border-color: var(--nhs-green);
  color: #ffffff;
}
body.nhsaves-ui-active .quick-link-card .quick-link-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--nhs-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.nhsaves-ui-active .quick-link-card .quick-link-icon svg {
  width: 24px;
  height: 24px;
}
body.nhsaves-ui-active .quick-link-card .quick-link-icon.icon-green {
  background: var(--nhs-green-lighter);
  color: var(--nhs-green);
}
body.nhsaves-ui-active .quick-link-card .quick-link-icon.icon-blue {
  background: #eef5fc;
  color: #1a6fb5;
}
body.nhsaves-ui-active .quick-link-card .quick-link-icon.icon-amber {
  background: #fef9ee;
  color: #b8860b;
}
body.nhsaves-ui-active .quick-link-card .quick-link-icon.icon-purple {
  background: #f3f0f8;
  color: #6b4fa0;
}
body.nhsaves-ui-active .quick-link-card .quick-link-text {
  flex: 1;
  min-width: 0;
}
body.nhsaves-ui-active .quick-link-card .quick-link-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--nhs-text);
  line-height: 1.3;
  margin: 0 0 2px;
  transition: color 0.15s;
}
body.nhsaves-ui-active .quick-link-card .quick-link-text p {
  font-size: 13px;
  color: var(--nhs-text-muted);
  line-height: 1.4;
  margin: 0;
}
body.nhsaves-ui-active .quick-link-card .quick-link-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--nhs-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--nhs-text-muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
body.nhsaves-ui-active .quick-link-card .quick-link-arrow svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 960px) {
  body.nhsaves-ui-active .quick-links-band .quick-links-grid {
    grid-template-columns: 1fr;
  }
}
