/* ========================================
   BASE RESETS & CONTAINER
======================================== */
.main {
  width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   HOMEPAGE BANNER CAROUSEL
======================================== */
.homepage-banner-carousel {
  position: relative;
  width: 100%;
}

.homepage-banner-carousel-component {
  position: relative;
  width: 100%;
}

.images-wrapper {
  position: relative;
  width: 100%;
}

.swiper-container {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  width: 100%;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
}

/* Banner image */
.swiper-slide picture {
  display: block;
  width: 100%;
}

.swiper-slide picture img.image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Banner overline (mobile only tag) */
.images-overline {
  padding: 0.75rem 1rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.images-overline p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

/* Banner content overlay */
.images-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem;
  margin: 0;
  z-index: 2;
}

.images-header {
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1rem;
}

.images-cta a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  text-decoration: underline;
  min-height: 44px;
}

/* Wave decorations */
.wave-container-mobi {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.wave-container-mobi svg {
  display: block;
  width: 100%;
}

.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.wave-container svg {
  display: block;
  width: 100%;
}

/* Swiper pagination dots */
.swiper-pagination {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  cursor: pointer;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Description blocks below banner (desktop only) */
.description-block-container {
  position: relative;
  z-index: 5;
  padding: 1.5rem 0;
}

.description-block-content-wrap {
  padding: 0 1rem;
}

.description-block-card {
  padding: 1.25rem;
  height: 100%;
}

.description-block__description {
  font-size: 0.9rem;
  line-height: 1.6;
}

.description-block__description p {
  margin: 0;
}

/* ========================================
   WAVE SEPARATORS
======================================== */
.wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave svg {
  display: block;
  width: 100%;
}

.wave--padding {
  height: 1.5rem;
}

/* ========================================
   CONTENT BLOCK (2-col & 3-col)
======================================== */
.content-block__background {
  padding: 2rem 1rem;
}

.content-block__intro {
  margin-bottom: 0.5rem;
}

.content-block__row {
  margin-top: 0;
}

.content-block__column {
  margin-bottom: 1.5rem;
}

.content-block__copy-inner {
  font-size: 0.9rem;
  line-height: 1.7;
  /* Remove the fixed JS-set heights on mobile */
  height: auto !important;
}

.content-block__copy-inner p {
  margin: 0 0 0.75rem;
}

.content-block__links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.content-block__link {
  margin-bottom: 0.5rem;
}

/* ========================================
   HIGHLIGHTED CTA (Become a client)
======================================== */
.highlighted-cta-component--content {
  padding: 1.5rem 1rem;
}

.highlighted-cta__main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.highlighted-cta__main-wrapper h3 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 600;
  margin: 0;
}

.cta__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-primary,
.cta-primary--white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  border-radius: 4px;
}

/* ========================================
   FLOURISH EMBED
======================================== */
.flourish-embed {
  width: 100%;
  overflow: hidden;
}

.flourish-embed iframe {
  width: 100% !important;
  border: 0;
  display: block;
}

/* ========================================
   IMAGE BLOCKS (Inside Investec)
======================================== */
.image-blocks--wrapper {
  padding: 2rem 1rem;
}

.image-blocks--overline {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.image-blocks--heading {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.image-blocks--description {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Mobile swiper */
.image-block--mobile_wrapper {
  width: 100%;
}

.image-blocks-component--swiper {
  width: 100%;
  overflow: hidden;
}

.image-block {
  width: 100%;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.image-block__details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.image-block__plus-icon {
  margin-bottom: 0.25rem;
}

.image-block__plus-icon svg {
  width: 36px;
  height: 36px;
}

.image-block__title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.image-block__description {
  font-size: 0.85rem;
  line-height: 1.5;
  display: none; /* Hidden by default on mobile, shown on hover/desktop */
}

.image-block__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  text-decoration: underline;
  min-height: 44px;
}

/* Desktop image blocks */
.image-block--desktop {
  min-height: 380px;
}

.image-block__wrapper {
  padding: 0.5rem;
}

/* Toggle view button */
.toggle-view {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

/* Image blocks pagination */
.image-blocks--swiper-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ========================================
   CONTENT HUB SLIDER
======================================== */
.content-hub-slider {
  width: 100%;
  padding: 0 1rem;
}

.content-hub-slider__wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.js-content-hub-slider {
  width: 100%;
  overflow: hidden;
}

.content-hub-slider__slider-item {
  width: 100%;
  flex-shrink: 0;
}

.content-hub-slider__image {
  width: 100%;
  display: block;
}

.content-hub-slider__image a {
  display: block;
  width: 100%;
}

.content-hub-slider__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Slider navigation arrows */
.content-hub-slider--navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 50%;
}

.swiper-button-prev {
  left: 0.75rem;
}

.swiper-button-next {
  right: 0.75rem;
}

.content-hub-slider--navigation svg {
  width: 18px;
  height: 18px;
}

/* Slider pagination */
.content-hub-slider__swiper-pagination {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
}

.content-hub-slider__swiper-pagination ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ========================================
   ARTICLE LISTING (3-up cards)
======================================== */
.thought-leadership-listing {
  padding: 0 1rem;
}

.content-hub-article-listing__heading {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Article cards */
.shadow-box.content-hub-article-listing__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.content-hub-article-listing__image {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.content-hub-article-listing__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.content-hub-article-listing__copy-wrapper {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-hub-article-listing__article-date,
.content-hub-article-listing__article-time {
  /* Remove fixed heights from JS */
  height: auto !important;
  margin-bottom: 0.5rem;
}

.content-hub-article-listing__article-date p,
.content-hub-article-listing__article-time p {
  font-size: 0.8rem;
  margin: 0;
}

.content-hub-article-listing__article-heading {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  /* Remove fixed heights from JS */
  height: auto !important;
}

.content-hub-article-listing__article-copy {
  flex: 1;
  /* Remove fixed heights from JS */
  height: auto !important;
}

.content-hub-article-listing__article-description p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile article swiper */
#articles-container-mobile-wrapper-844716 {
  width: 100%;
  overflow: hidden;
}

/* Article listing pagination */
.article-listing--pagination {
  padding: 1rem 0;
  gap: 1rem;
}

.article-listing--pagination-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-listing--pagination-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.article-listing--pagination-swiper {
  display: flex;
  gap: 0.4rem;
}

.pagination-number {
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  border-radius: 4px;
}

/* View all button */
.content-hub-article-listing__view-all-button {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  min-height: 44px;
  white-space: nowrap;
}

.content-hub-article-listing__view-all-button-wrapper {
  width: 100%;
}

/* ========================================
   NEWSLETTER SUBSCRIPTION FORM
======================================== */
.content-hub-form-container {
  padding: 0 1rem;
}

.content-hub-form-container__content {
  padding: 1.5rem 1rem;
  border-radius: 4px;
}

.content-hub-form-container__content-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-hub-form-container__heading {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.content-hub-form-container__button {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  min-height: 44px;
  width: 100%;
}

/* Form fields */
.forms__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.forms__label-secondary {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.text-input__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  outline: none;
  min-height: 44px;
  box-sizing: border-box;
}

.forms__dropdown {
  position: relative;
}

.forms__dropdown select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  appearance: none;
  min-height: 44px;
  box-sizing: border-box;
}

.forms__dropdown svg {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

.text,
.select {
  margin-bottom: 1rem;
}

.forms__submit {
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  min-height: 44px;
  width: 100%;
}

.forms__errors {
  margin-top: 0.4rem;
}

.input-error {
  font-size: 0.8rem;
}

.forms__hide {
  display: none;
}

/* ========================================
   SINGLE ARTICLE LISTING (Large rows)
======================================== */
.single-article-listing {
  padding: 0 1rem;
}

.content-hub-single-article-listing__heading {
  font-weight: 600;
}

.content-hub-single-article-listing__row {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.content-hub-single-article-listing__row:last-child {
  border-bottom: none;
}

.content-hub-single-article-listing__img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.content-hub-single-article-listing__content {
  gap: 0.75rem;
}

.content-hub-single-article-listing__tag {
  order: 0;
}

.cta-primary__tag {
  padding: 0.35rem 0.875rem;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  min-height: 32px;
}

.content-hub-single-article-listing__title h5 {
  font-weight: 600;
}

.content-hub-single-article-listing__date {
  font-size: 0.8rem;
  align-items: center;
  gap: 0.25rem;
}

.content-hub-single-article-listing__content .p-alt {
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

.content-hub-single-article-listing__content .secondary-cta {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
}

/* ========================================
   ACCORDION (Disclaimer)
======================================== */
.hide-reveal-accordion {
  padding: 0 1rem;
}

.accordion__item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  min-height: 56px;
}

.accordion__heading {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.accordion__button {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.accordion__icon svg {
  width: 24px;
  height: 24px;
}

.accordion__content {
  font-size: 0.85rem;
  line-height: 1.7;
  padding-bottom: 1rem;
}

.accordion__opened-accordion-icon.accordion__hide {
  display: none;
}

/* ========================================
   PADDING COMPONENTS
======================================== */
.padding--component {
  height: 2rem;
}

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top__icon svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   FOOTER
======================================== */

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */
