/* =========================================================================
   HERO 2C LABEL TIT SUB BUT + IMG
   Variant of #ht--hero-00 (home page hero): the section keeps el_id
   "ht--hero-00", so it inherits 04_hero-00.css, and adds the class
   ht--hero-2c-label-tit-sub-but-img.
   In addition to hero-00:
     - label above the H1: Text with DIV tag and class ht--label
     - image column with class ht--hero-cover: grey box with the cover
   Inner row with 2 columns 1/2 + 1/2 (UIKit col-6 + col-6, 30 px gutter),
   content vertically centred. The cover box is not part of the UIKit: it
   follows the page design (max 488 px wide, aligned right).
   ========================================================================= */

.l-section.ht--hero-2c-label-tit-sub-but-img {
  padding: 48px 0;                    /* UIKit main>section */
}

.l-section.ht--hero-2c-label-tit-sub-but-img .ht--label {
  margin-bottom: 12px;
}

/* explicit: pages add 24px below paragraphs, posts remove it */
.l-section.ht--hero-2c-label-tit-sub-but-img .wpb_text_column p {
  margin-bottom: 24px !important;
}

/* UIKit columns col-6 + col-6 with 30 px gutter (the inner row alone has none) */
.l-section.ht--hero-2c-label-tit-sub-but-img .ht--internal-row.g-cols {
  column-gap: 30px;
}

.l-section.ht--hero-2c-label-tit-sub-but-img .ht--hero-cover > .vc_column-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 488px;                   /* size from the page design */
  min-height: 377px;
  margin-inline-start: auto;
  padding: 28px;
  border-radius: 16px;               /* the page design uses 24 */
  background: var(--color-f2f5f7, #f2f5f7);
}

.l-section.ht--hero-2c-label-tit-sub-but-img .ht--hero-cover .w-image {
  width: min(100%, 220px);
  margin: 0 auto;
}

.l-section.ht--hero-2c-label-tit-sub-but-img .ht--hero-cover .w-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(0, 43, 92, .16);
}

@media (min-width: 841px) and (max-width: 1024px) {
  .l-section.ht--hero-2c-label-tit-sub-but-img .ht--hero-cover > .vc_column-inner {
    min-height: 320px;
  }
}

@media (max-width: 840px) {
  .l-section.ht--hero-2c-label-tit-sub-but-img {
    padding: 10px 0 48px;             /* UIKit main>section:first-child <=575 */
  }
  .l-section.ht--hero-2c-label-tit-sub-but-img .ht--hero-cover > .vc_column-inner {
    min-height: 0;
    max-width: 560px;
    /* stacked under the buttons: UIKit column gutter 30 + button margin 8 */
    margin-top: 38px;
    margin-inline-start: 0;
  }
  .l-section.ht--hero-2c-label-tit-sub-but-img .ht--hero-cover .w-image {
    width: 176px;
  }
  /* readable line length on tablet, as in the page design */
  .l-section.ht--hero-2c-label-tit-sub-but-img h1 {
    max-width: 540px;
  }
  .l-section.ht--hero-2c-label-tit-sub-but-img .wpb_text_column {
    max-width: 580px;
  }
}
