/*
Theme Name: Caregiver Dental Hub
Theme URI: https://caregiverdentalhub.org
Author: Penn Dental Medicine
Description: WordPress theme for CareGiverDentalHub.org — training, guides, and resources for caregivers providing daily oral health care.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: caregiver-dental-hub
*/

:root {
  --penn-blue: #011F5B;
  --penn-red: #990000;
  --penn-light-blue: #82AFD3;
  --penn-bg: #F0F4F9;
  --text-dark: #222;
  --text-muted: #555;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  background: #fff;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.hero-content h1,
.sidebar-card h3,
.resource-icon-title,
.footer-brand-name {
  font-family: 'EB Garamond', serif;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--penn-red);
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Utility bar */
/* Main nav */
.main-nav {
  border-bottom: 3px solid var(--penn-red);
  padding: 0.5rem 0;
  --bs-navbar-hover-color: var(--penn-red);
  --bs-navbar-active-color: var(--penn-red);
}

.main-nav .navbar-brand img {
  height: 56px;
  width: auto;
}

.main-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #333;
  padding: 0.5rem 0.85rem !important;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .navbar-nav .nav-link.active,
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link:focus,
.main-nav .nav-link[aria-current="page"],
.main-nav .current-menu-item > .nav-link,
.main-nav .current-menu-ancestor > .nav-link,
.main-nav .current-menu-parent > .nav-link,
.main-nav .current_page_item > .nav-link,
.main-nav .current_page_parent > .nav-link,
.main-nav .current_page_ancestor > .nav-link {
  color: var(--penn-red);
}

.nav-search {
  color: #333;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-search:hover,
.nav-search:focus {
  color: var(--penn-blue);
}

.nav-search:focus-visible {
  outline: 2px solid var(--penn-blue);
  outline-offset: 2px;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5.5rem 1rem 1rem;
}

.search-overlay[hidden] {
  display: none;
}

body.search-open {
  overflow: hidden;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: none;
  background: rgba(1, 31, 91, 0.55);
  cursor: default;
}

.search-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 1rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.search-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  font-size: 1rem;
  padding: 0.65rem 1rem;
  border: 2px solid var(--penn-blue);
  border-radius: 2px;
  color: var(--text-dark);
}

.search-input:focus {
  outline: none;
  border-color: var(--penn-red);
  box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.15);
}

.search-submit,
.search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}

.search-submit {
  background: var(--penn-red);
  color: #fff;
}

.search-submit:hover,
.search-submit:focus {
  background: #7a0000;
  color: #fff;
}

.search-close {
  background: var(--penn-bg);
  color: var(--penn-blue);
}

.search-close:hover,
.search-close:focus {
  background: #dde6f0;
  color: var(--penn-blue);
}

.search-submit:focus-visible,
.search-close:focus-visible {
  outline: 2px solid var(--penn-blue);
  outline-offset: 2px;
}

.btn-cta {
  background: var(--penn-red);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-cta:hover,
.btn-cta:focus {
  background: #7a0000;
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 380px;
  background-color: var(--penn-blue);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(1, 31, 91, 0.92) 0%, rgba(1, 31, 91, 0.45) 45%, transparent 70%),
    linear-gradient(to right, rgba(1, 31, 91, 0.88) 0%, rgba(1, 31, 91, 0.5) 50%, transparent 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2.5rem;
  max-width: 960px;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-lead li {
  margin-bottom: 0.35rem;
}

/* Sub-navigation */
.sub-nav {
  background: var(--penn-blue);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sub-nav-inner {
  display: flex;
  flex-wrap: nowrap;
  min-width: min-content;
}

.sub-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.sub-nav a:hover,
.sub-nav a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sub-nav a.active {
  border-bottom-color: var(--penn-red);
  color: #fff;
}

/* Main content */
.main-content {
  background: var(--penn-bg);
  padding: 3rem 0 4rem;
}

.content-body {
  background: #fff;
  padding: 2rem 2.25rem;
  border-radius: 2px;
}

.section-title,
.content-body h2 {
  color: var(--penn-blue);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.content-body .section-title:not(:first-of-type),
.content-body h2:not(:first-of-type) {
  margin-top: 2rem;
}

.content-body p {
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.content-image {
  float: right;
  width: 240px;
  max-width: 45%;
  height: auto;
  margin: 0 0 1rem 1.5rem;
  border-radius: 2px;
  shape-outside: margin-box;
}

/* WordPress / Classic Editor / block image alignment */
.content-body::after {
  content: "";
  display: table;
  clear: both;
}

.content-body img.alignright,
.content-body .alignright,
.content-body .wp-caption.alignright,
.content-body .wp-block-image.alignright,
.content-body .wp-block-image .alignright {
  float: right;
  margin: 0.35rem 0 1rem 1.5rem;
  max-width: 50%;
  height: auto;
}

.content-body img.alignleft,
.content-body .alignleft,
.content-body .wp-caption.alignleft,
.content-body .wp-block-image.alignleft,
.content-body .wp-block-image .alignleft {
  float: left;
  margin: 0.35rem 1.5rem 1rem 0;
  max-width: 50%;
  height: auto;
}

.content-body img.aligncenter,
.content-body .aligncenter,
.content-body .wp-caption.aligncenter,
.content-body .wp-block-image.aligncenter {
  display: block;
  float: none;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
}

.content-body img.alignnone,
.content-body .alignnone {
  float: none;
  margin: 0.35rem 0 1rem;
  max-width: 100%;
  height: auto;
}

.content-body .wp-caption {
  max-width: 100%;
}

.content-body .wp-caption img {
  display: block;
  max-width: 100%;
  height: auto;
}

.content-body .wp-caption-text,
.content-body .wp-element-caption {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

.content-body .wp-block-image {
  margin: 0 0 1rem;
}

.content-body .wp-block-image img {
  height: auto;
  max-width: 100%;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--penn-red);
  border-radius: 50%;
  transform: translateY(-50%);
}

.feature-list strong {
  color: var(--penn-blue);
  font-weight: 700;
}

/* Resource icon grid (homepage hub links) */
.resource-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.resource-icon-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 8.5rem;
  padding: 1rem 0.85rem 0.9rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(1, 31, 91, 0.12);
  border-radius: 2px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  scroll-margin-top: 5rem;
}

.resource-icon-link:hover,
.resource-icon-link:focus-visible {
  background: var(--penn-blue);
  border-color: var(--penn-blue);
  box-shadow: 0 4px 14px rgba(1, 31, 91, 0.2);
  color: #fff;
  z-index: 2;
}

.resource-icon-link:focus-visible {
  outline: 2px solid var(--penn-blue);
  outline-offset: 2px;
}

.resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  color: var(--penn-blue);
  font-size: 2.75rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.resource-icon svg {
  width: 1em;
  height: 1em;
  display: block;
}

.resource-icon-copy {
  display: block;
  min-width: 0;
  width: 100%;
}

.resource-icon-title {
  display: block;
  color: var(--penn-blue);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  transition: color 0.15s ease;
}

.resource-icon-link:hover .resource-icon,
.resource-icon-link:focus-visible .resource-icon,
.resource-icon-link:hover .resource-icon-title,
.resource-icon-link:focus-visible .resource-icon-title {
  color: #fff;
}

.resource-icon-desc {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  z-index: 5;
  width: max-content;
  max-width: min(16rem, calc(100vw - 2rem));
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  background: var(--penn-blue);
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(1, 31, 91, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 0.25rem);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.resource-icon-desc::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--penn-blue);
}

.resource-icon-link:hover .resource-icon-desc,
.resource-icon-link:focus-visible .resource-icon-desc {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Bottom-row tooltips flip below so they stay in view */
.resource-icon-link:nth-child(n + 5) .resource-icon-desc {
  bottom: auto;
  top: calc(100% + 0.4rem);
  transform: translate(-50%, -0.25rem);
}

.resource-icon-link:nth-child(n + 5) .resource-icon-desc::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--penn-blue);
}

.resource-icon-link:nth-child(n + 5):hover .resource-icon-desc,
.resource-icon-link:nth-child(n + 5):focus-visible .resource-icon-desc {
  transform: translate(-50%, 0);
}

@media (max-width: 575.98px) {
  .resource-icon-grid {
    grid-template-columns: 1fr;
  }

  .resource-icon-link:nth-child(n + 5) .resource-icon-desc {
    bottom: calc(100% + 0.4rem);
    top: auto;
    transform: translate(-50%, 0.25rem);
  }

  .resource-icon-link:nth-child(n + 5) .resource-icon-desc::after {
    top: 100%;
    bottom: auto;
    border-top-color: var(--penn-blue);
    border-bottom-color: transparent;
  }

  .resource-icon-link:nth-child(n + 5):hover .resource-icon-desc,
  .resource-icon-link:nth-child(n + 5):focus-visible .resource-icon-desc {
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-icon-link,
  .resource-icon-desc {
    transition: none;
  }
}

/* Sidebar cards (subpages / legacy) */
.sidebar-card {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(1, 31, 91, 0.1);
  padding: 0;
  margin-bottom: 1.25rem;
  text-align: center;
  overflow: hidden;
}

.sidebar-card-media {
  aspect-ratio: 16 / 4.25;
  background: var(--penn-blue);
  overflow: hidden;
}

.sidebar-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-card-body {
  padding: 0.85rem 1.15rem 1rem;
}

.sidebar-card h3 {
  color: var(--penn-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.sidebar-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.sidebar-card a {
  color: var(--penn-blue);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: underline;
}

.sidebar-card a:hover {
  color: var(--penn-red);
}

/* Subpage banner */
.page-banner {
  background: var(--penn-blue);
  color: #fff;
  padding: 2rem 0 2.25rem;
}

.page-breadcrumb {
  margin-bottom: 1rem;
}

.page-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}

.page-breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
}

.page-breadcrumb a {
  color: var(--penn-light-blue);
  text-decoration: none;
}

.page-breadcrumb a:hover,
.page-breadcrumb a:focus {
  color: #fff;
  text-decoration: underline;
}

.page-breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.9);
}

.page-banner h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.page-banner-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

/* Subpage content */
.content-subtitle {
  color: var(--penn-blue);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.subpage-content .section-title:first-child {
  margin-top: 0;
}

/* Video Library embed */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.25rem;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-guide-link {
  margin: 0 0 1.5rem;
}

.video-guide-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--penn-blue);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.video-guide-link a:hover,
.video-guide-link a:focus {
  color: var(--penn-red);
  text-decoration: underline;
}

.video-guide-link i {
  font-size: 1.45em;
  line-height: 1;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 1.5rem 0 2rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.video-card:hover,
.video-card:focus {
  border-color: var(--penn-light-blue);
  box-shadow: 0 4px 16px rgba(1, 31, 91, 0.12);
  color: inherit;
}

.video-card:focus-visible {
  outline: 2px solid var(--penn-blue);
  outline-offset: 2px;
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--penn-blue);
  overflow: hidden;
}

.video-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 31, 91, 0.28);
  color: #fff;
  font-size: 2.25rem;
}

.video-card-body {
  padding: 0.9rem 1rem 1rem;
  text-align: left;
}

.video-card-body h3 {
  font-family: 'EB Garamond', serif;
  color: var(--penn-blue);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.video-card-body p {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.video-card-meta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--penn-red);
  letter-spacing: 0.02em;
}

/* Subpage sidebar */
.subpage-sidebar {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(1, 31, 91, 0.1);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.subpage-sidebar-title {
  color: var(--penn-blue);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--penn-red);
}

.subpage-sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.subpage-sidebar-links li {
  margin-bottom: 0.55rem;
}

.subpage-sidebar-links .subpage-sidebar-links {
  margin-top: 0.45rem;
  margin-bottom: 0.15rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(1, 31, 91, 0.12);
}

.subpage-sidebar-links .subpage-sidebar-links li {
  margin-bottom: 0.4rem;
}

.subpage-sidebar-links a {
  color: var(--penn-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.subpage-sidebar-links a:hover,
.subpage-sidebar-links a:focus {
  color: var(--penn-red);
  text-decoration: underline;
}

.subpage-sidebar-links .is-current > a {
  color: var(--penn-red);
  font-weight: 700;
}

.subpage-sidebar-links .is-current-section:not(.is-current) > a {
  font-weight: 600;
}

.subpage-sidebar-links i {
  margin-right: 0.35rem;
}

.subpage-sidebar-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--penn-blue);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.75rem 0 1.5rem;
}

.site-footer h6 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.35rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand-name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-logo {
  height: 96px;
  width: auto;
  margin-bottom: 0.65rem;
}

.footer-powered-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0.75rem 0 0;
}

.footer-powered-by-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-powered-by a {
  display: inline-block;
  margin: 0;
}

.footer-dental-logo {
  height: 52px;
  width: auto;
}

.footer-social a {
  display: inline-block;
  font-size: 1.15rem;
  margin-right: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-social a:hover {
  color: #fff;
}

.footer-bottom {
  background: #000d2e;
  padding: 0.65rem 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-right: 1rem;
  font-size: 0.72rem;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-lead {
    font-size: 1.2rem;
  }

  .content-image {
    float: none;
    width: 100%;
    margin: 0 0 1.25rem;
  }

  .content-body img.alignright,
  .content-body .alignright,
  .content-body .wp-caption.alignright,
  .content-body .wp-block-image.alignright,
  .content-body .wp-block-image .alignright,
  .content-body img.alignleft,
  .content-body .alignleft,
  .content-body .wp-caption.alignleft,
  .content-body .wp-block-image.alignleft,
  .content-body .wp-block-image .alignleft {
    float: none;
    display: block;
    margin: 0 0 1.25rem;
    max-width: 100%;
  }

  .content-body {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 320px;
  }

  .hero-content {
    padding: 2rem 1.25rem 1.75rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

  .page-banner-lead {
    font-size: 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .section-title,
  .content-body h2 {
    font-size: 1.6rem;
  }

  .main-nav .nav-search {
    display: inline-flex;
    margin-top: 0.5rem;
  }

  .search-overlay {
    padding: 1rem 0.75rem;
    align-items: stretch;
  }

  .search-panel {
    max-width: none;
  }
}
