/* Image paragraphs full-width row */
.marketing-image-paragraphs {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.marketing-image-row__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

/* Force all descendants of image row to stretch and fill */
.marketing-image-row__items > * {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: stretch;
}

.marketing-image-row__items img,
.marketing-image-row__items .img-responsive {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.marketing-image-row__items video {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  background: #000;
}

.marketing-image-row__items video::-webkit-media-controls {
  display: none !important;
}

.marketing-image-row__items video[controls] {
  pointer-events: none;
}

/* Hide video label and thumbnail for clean row */
.media-video-field-media-video-file__label,
.media-video-thumbnail,
.media-video-thumbnail__label {
  display: none !important;
}

.marketing-image-row__item video {
  object-fit: cover;
  height: auto;
  width: 100%;
  display: block;
}

.marketing-image-row__items .media-image-field-media-image,
.marketing-image-row__items .media-image-field-media-image__value,
.marketing-image-row__items .field__value,
.marketing-image-row__items .contextual-region {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: stretch !important;
}

.marketing-image-row__items .media-video-field-media-video-file,
.marketing-image-row__items .media-video-field-media-video-file__value {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: stretch !important;
}

/* ==========================================================================
   Marketing Page
   ========================================================================== */

/* Admin bar */
.marketing-admin-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Override paragraph-text margin for marketing pages */
.marketing-page .paragraph-text__content {
  margin-top: 20px;
  margin-bottom: 0;
}

/* Hero – full-width video, no padding, no controls */
.marketing-hero {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.marketing-hero video,
.marketing-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.marketing-hero video::-webkit-media-controls {
  display: none !important;
}

/* Default article typography */
.marketing-body {
  font-style: normal;
  font-weight: 200;
  font-size: 21px;
  line-height: 150%;
}

/* Main content – bullet points left, paragraphs right */
.marketing-body {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  min-height: 1080px;
  margin: 40px auto;
  padding: 0 20px;
  align-items: flex-start;
}

.marketing-body__sidebar {
  flex: 0 0 300px;
}

.marketing-body__sidebar h3 {
  color: var(--theme-colour);
}

.marketing-body__sidebar ul {
  list-style: none;
  padding-left: 0;
}

.marketing-body__sidebar li {
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
}

.marketing-body__sidebar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  transform: translateY(5px);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.8579 0.85791L0.85791 14.8579' stroke='black' stroke-width='2.42667'/%3E%3Cpath d='M2.91113 1.2312H14.4845V12.8045' stroke='black' stroke-width='2.42667'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.8579 0.85791L0.85791 14.8579' stroke='black' stroke-width='2.42667'/%3E%3Cpath d='M2.91113 1.2312H14.4845V12.8045' stroke='black' stroke-width='2.42667'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  background-color: var(--theme-colour);
}

.marketing-body__content {
  flex: 1 1 0;
  min-width: 0;
}

/* Colour bar */
.marketing-colour-bar {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 20px;
}

/* Bottom section – contact left, next page right */
.marketing-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  height: 250px;
  margin: 0 auto;
  padding: 30px 60px;
}

.marketing-bottom__contact h3 {
  margin: 0 0 4px;
  font-size: 32px;
  color: var(--accent-1);
}

.marketing-bottom__contact a {
  color: #6f6f6fbf;
  font-size: 24px;
  text-decoration: underline;
}

.marketing-bottom__next {
  text-align: right;
}

.marketing-bottom__next a:not(.marketing-bottom__next-title) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #6f6f6fbf;
}

.marketing-bottom__next a:not(.marketing-bottom__next-title)::after {
  content: "\2192";
}

.marketing-bottom__next-title {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-1);
  text-decoration: none;
}

.marketing-bottom__next-title:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .marketing-body {
    flex-direction: column;
    gap: 20px;
  }

  .marketing-body__sidebar {
    flex: none;
    width: 100%;
  }

  .marketing-bottom {
    flex-direction: column;
    gap: 20px;
  }

  .marketing-image-row__items {
    flex-direction: column;
  }

  .marketing-bottom__next {
    text-align: left;
  }
}
