/* MRD reusable content templates */

.mrd-template-page {
  padding: 40px 0 100px;
}

.mrd-template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 50px;
}

.mrd-template-main,
.mrd-template-sidebar {
  min-width: 0;
}

/* Main content */

.mrd-template-content {
  margin-bottom: 45px;
}

.mrd-template-content > *:first-child {
  margin-top: 0;
}

.mrd-template-content > *:last-child {
  margin-bottom: 0;
}

.mrd-template-content h2,
.mrd-hub-links > h2 {
  color: #383838;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  margin: 40px 0 20px;
}

.mrd-template-content h3 {
  color: #383838;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 16px;
}

.mrd-template-content ul,
.mrd-template-content ol {
  margin: 20px 0 20px 25px;
}

.mrd-template-content ul li {
  list-style: disc;
}

.mrd-template-content ol li {
  list-style: decimal;
}

.mrd-template-content a {
  color: #712525;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hub card grid */

.mrd-hub-links {
  margin: 0;
  padding: 0;
}

.mrd-hub-links > h2 {
  margin-top: 0;
}

.mrd-hub-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
}

.mrd-hub-card-grid > li {
  list-style: none;
}

.mrd-hub-card {
  position: relative;
  height: 315px;
  overflow: hidden;
  background: #383838;
}

.mrd-hub-card > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #ffffff;
  border-bottom: 0;
  text-decoration: none;
}

.mrd-hub-card > a::after {
  position: absolute;
  z-index: 1;
  content: "";
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(57, 19, 19, 0.05) 15%,
    rgba(108, 41, 37, 0.92) 100%
  );
  transition: opacity 0.4s ease;
}

.mrd-hub-card > a::before {
  position: absolute;
  z-index: 2;
  content: "";
  right: 0;
  bottom: 0;
  left: 0;
  height: 0;
  background: rgba(113, 37, 37, 0.92);
  transition: height 0.4s ease;
}

.mrd-hub-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #383838;
}

.mrd-hub-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mrd-hub-card-body {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 30px;
  color: #ffffff;
  transition: transform 0.4s ease;
}

.mrd-hub-card h3 {
  color: #ffffff;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
}

.mrd-hub-card p {
  color: #ffffff;
  line-height: 1.55;
  margin: 0;
}

.mrd-hub-card-action {
  display: none;
}

.mrd-hub-card > a:hover::after,
.mrd-hub-card > a:focus-visible::after {
  opacity: 0;
}

.mrd-hub-card > a:hover::before,
.mrd-hub-card > a:focus-visible::before {
  height: 100%;
}

.mrd-hub-card > a:hover .mrd-hub-card-image img,
.mrd-hub-card > a:focus-visible .mrd-hub-card-image img {
  transform: scale(1.05);
}

.mrd-hub-card > a:hover .mrd-hub-card-body,
.mrd-hub-card > a:focus-visible .mrd-hub-card-body {
  transform: translateY(-6px);
}


/* Sidebar */

.mrd-template-sidebar {
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
}

/* Give every native WordPress widget the same card treatment */

.mrd-template-sidebar > .mrd-sidebar-card {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 28px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1ddda;
  border-top: 4px solid #712525;
  box-shadow: 0 8px 24px rgba(56, 56, 56, 0.08);
}

.mrd-template-sidebar > .mrd-sidebar-card > *:first-child {
  margin-top: 0;
}

.mrd-template-sidebar > .mrd-sidebar-card > *:last-child {
  margin-bottom: 0;
}

/* Consistent widget headings */

.mrd-template-sidebar .widget-title,
.mrd-template-sidebar .mrd-sidebar-card > h2,
.mrd-template-sidebar .mrd-sidebar-card > h3 {
  color: #383838;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
  text-transform: none;
}

/* Ticket image widget */

.mrd-template-sidebar .widget_media_image {
  text-align: center;
}

.mrd-template-sidebar .widget_media_image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* TrustIndex review widget */

.mrd-template-sidebar .mrd-trustindex-widget,
.mrd-template-sidebar iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

.mrd-template-sidebar iframe {
  border: 0;
}

/* Awards widget */

.mrd-awards-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 22px 18px;
  margin: 0;
  padding: 0;
}

.mrd-awards-list > li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mrd-awards-list a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mrd-awards-list img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 115px;
  object-fit: contain;
}

/* Existing contact widget */

.mrd-template-sidebar > .mrd-sidebar-card:has(.contact_box) {
  padding: 0;
  border-top: 0;
}

.mrd-template-sidebar .contact_box {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 36px 30px;
}

.mrd-template-sidebar .contact_box h2,
.mrd-template-sidebar .contact_box h3,
.mrd-template-sidebar .contact_box h4,
.mrd-template-sidebar .contact_box .h4,
.mrd-template-sidebar .contact_box .h6 {
  color: #ffffff;
}

.mrd-template-sidebar .contact_box a {
  color: #ffffff;
}

.mrd-template-sidebar .contact_box input,
.mrd-template-sidebar .contact_box select,
.mrd-template-sidebar .contact_box textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* Buttons and calls to action */

.mrd-template-sidebar .cta-btn,
.mrd-template-sidebar input[type="submit"],
.mrd-template-sidebar button[type="submit"] {
  display: inline-block;
  padding: 12px 20px;
  color: #ffffff;
  background: #712525;
  border: 0;
  border-radius: 0;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.mrd-template-sidebar .cta-btn:hover,
.mrd-template-sidebar .cta-btn:focus,
.mrd-template-sidebar input[type="submit"]:hover,
.mrd-template-sidebar input[type="submit"]:focus,
.mrd-template-sidebar button[type="submit"]:hover,
.mrd-template-sidebar button[type="submit"]:focus {
  color: #ffffff;
  background: #383838;
}

/* Related-content sidebar list */

.mrd-related-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mrd-related-content li {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e1ddda;
}

.mrd-related-content li:first-child {
  border-top: 0;
}

.mrd-related-content a {
  position: relative;
  display: block;
  padding: 12px 24px 12px 0;
  color: #712525;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.mrd-related-content a::after {
  position: absolute;
  top: 12px;
  right: 2px;
  content: "→";
}

.mrd-related-content a:hover,
.mrd-related-content a:focus {
  color: #383838;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Search sidebar widget */

.mrd-template-sidebar .search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}

.mrd-template-sidebar .search-form label {
  min-width: 0;
  margin: 0;
}

.mrd-template-sidebar .search-field {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 10px 12px;
  color: #383838;
  background: #ffffff;
  border: 1px solid #bdb8b4;
}

.mrd-template-sidebar .search-submit {
  min-height: 46px;
  padding: 10px 16px;
  color: #ffffff;
  background: #712525;
  border: 0;
  font-weight: 700;
}

.mrd-template-sidebar .search-submit:hover,
.mrd-template-sidebar .search-submit:focus {
  background: #383838;
}

/* Restore keyboard focus inside the new templates */

.mrd-template-page a:focus-visible,
.mrd-template-page input:focus-visible,
.mrd-template-page button:focus-visible {
  outline: 3px solid #1f6feb;
  outline-offset: 3px;
}

/* Tablet */

@media (max-width: 991px) {
  .mrd-template-page {
    padding: 55px 0 75px;
  }

  .mrd-template-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .mrd-template-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */

@media (max-width: 767px) {
  .mrd-hub-card-grid,
  .mrd-template-sidebar {
    grid-template-columns: 1fr;
  }

  .mrd-template-content h2,
  .mrd-hub-links > h2 {
    font-size: 30px;
  }

  .mrd-template-content h3 {
    font-size: 24px;
  }

  .mrd-sidebar-card-body,
  .mrd-hub-card-body {
    padding: 24px;
  }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  .mrd-hub-card-image img {
    transition: none;
  }
}
/* Blog table of contents */

.mrd-table-of-contents ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mrd-table-of-contents li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #e4e4e4;
}

.mrd-table-of-contents li:first-child {
  padding-top: 0;
}

.mrd-table-of-contents li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mrd-table-of-contents a {
  position: relative;
  display: block;
  padding-left: 18px;
  color: #484848;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.mrd-table-of-contents a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #853431;
}

.mrd-table-of-contents a:hover,
.mrd-table-of-contents a:focus {
  color: #853431;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mrd-template-content h2 {
  scroll-margin-top: 30px;
}