/* hero */
/* Ensure homepage main fills viewport so footer sits at bottom when content is short */
main.ffw.subgrid {
  min-height: 100vh;
}

.homepage-bg {
  width: 100%;
  height: 100vh;              /* Full screen */
  overflow: hidden;
}

/* The image fills the screen */
.background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* Very important */
  border-radius: 0px !important;
}

/* Text sits on top */
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;      /* move to bottom */
  justify-content: center;    /* keep center horizontally */
  padding: 3rem 2rem;         /* space from bottom */
}
/* Optional styling */
.hero-description {
  color: #FAFAF8;
  text-align: center;
  font-family: Montserrat;
  font-size: 24px;
  font-style: normal;
  font-weight: 540;
  line-height: 28px; /* 116.667% */
  letter-spacing: 2.4px;
  text-transform: uppercase;

}

.homepage-heading {
  color: var(--mb);
  /*text-align: center;*/
  font-family: "Bodoni Moda";
  font-size: 48px;
  font-style: normal;
  font-weight: 440;
  line-height: 52px; /* 108.333% */
  letter-spacing: 1.92px;
  text-transform: uppercase;
}

.homepage-subheading{
  color: var(--mb);
  font-family: Montserrat;
  font-size: 24px;
  font-style: normal;
  font-weight: 540;
  line-height: 28px; /* 116.667% */
  letter-spacing: 2.4px;
  text-transform: uppercase;  
}



#brows_by_subject .browse-grid {
  display: flex !important;
  flex-direction: row !important;
  gap: 32px;
  align-items: center;
}

#brows_by_subject .browse-link {
  display: inline-flex !important;
}

#brows_by_subject .browse-img {
  display: block;
  max-width: 100%;
  height: auto;
}


#brows_by_subject .browse-item {
  text-align: center;
}

#brows_by_subject .browse-link {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

#brows_by_subject .browse-label {
  margin: 0;
  color: var(--mb);

  /* Uppercase/Semibold/1.25 */
  font-family: Montserrat;
  font-size: 24px;
  font-style: normal;
  font-weight: 540;
  line-height: 28px; /* 116.667% */
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.homepage-spotlight{
  background: var(--grey-100);
}

#articles .section-inner {
  padding-left: 60px;
  padding-right: 60px;
}

.articles-homepage-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--breve);
  row-gap: var(--semibreve);
  margin: var(--semibreve) 0;
}

@media (min-width: 1200px) {
  .articles-homepage-container {
    /*grid-template-columns: 1fr 1fr 1fr;*/
  }
}

@media (max-width: 900px) {
  .articles-homepage-container {
    column-gap: var(--semibreve);
  }
}

@media (max-width: 640px) {
  .articles-homepage-container {
    grid-template-columns: 1fr;
  }
}

.search-dashoard{
  grid-template-columns: repeat(auto-fill, minmax(512px, 1fr)) !important;
}

.double-dashboard{
  width: 704px !important;
  height: 469px !important;

}
.double-card{
  width: 100% !important; 
}

.homepage-hero-section {
  height: 100vh;
  padding-top: var(--header-height);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--minim);
  border-bottom: var(--grey-400) 1px solid;
}

.hero-logo {
  width: min(500px, 100%);
}

.hero-logo-tagline {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.2em;
  letter-spacing: 0.08em;
}

/* other sections */
.homepage-section {
  margin-bottom: var(--breve);

  &.border-top {
    padding-top: var(--breve);
    border-top: 1px solid var(--grey-400);
  }

  &.margin-top {
    margin-top: var(--breve);
  }

  &.step {
    grid-column: full-start / full-end;
  }
}

/* steps */
.homepage-step-container {
  background-color: var(--ib);
  background: linear-gradient(180deg, var(--ib) 0%, #163B42 100%);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;

  &:not(:last-child) {
    border-bottom: 1px solid var(--shw);
  }

  &>:first-child {
    border-right: 1px solid rgba(from var(--shw) r g b / 0.2);
  }
}

.homepage-step-image {
  object-fit: contain;
  width: 100%;
  height: 100%;
  padding: var(--semibreve);
}

.homepage-step-text-container {
  padding: var(--semibreve);

  & * {
    color: var(--shw);
  }
}

.homepage-step-title {
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
}

.homepage-step-description {
  line-height: 2;
  margin-bottom: var(--semibreve);
}

.homepage-iconed-details-container {
  display: flex;
  flex-direction: column;
  gap: var(--breve);
  margin-top: var(--breve);
}

.homepage-spotlight-section {
  grid-column: full-start / full-end;
  background-color: var(--ib);
  display: grid;
  grid-template-columns: 1fr;
}

.homepage-spotlight-portrait-container {
  justify-self: center;
  padding: var(--semibreve);
}

.homepage-spotlight-portrait {
  aspect-ratio: 5 / 8;
  max-width: 250px;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
}

.homepage-spotlight-text-container {
  padding: var(--semibreve);

  &>p,
  &>h2 {
    color: var(--shw);
  }
}

.homepage-spotlight-title {
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
}

.homepage-spotlight-blurb {
  margin-bottom: var(--semibreve);
}

.homepage-bottom-logoo {
  width: 50px;
}

.homepage-logoo-container {
  margin-top: var(--breve);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media only screen and (min-width: 640px) {
  .homepage-iconed-details-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .homepage-section.step {
    grid-column: pad-start / pad-end;
  }

  .homepage-step-container {
    border-radius: var(--crotchet);
    grid-template-columns: 1fr 1fr;
  }

  .homepage-step-container:not(:last-child) {
    margin-bottom: var(--breve);
    border-bottom: none;
  }

  .homepage-step-container[image="first"] {
    grid-template-columns: 2fr 1fr;
  }

  .homepage-step-container[image="last"] {
    grid-template-columns: 1fr 2fr;
  }

  .homepage-spotlight-section {
    grid-column: pad-start / pad-end;
    border-radius: var(--crotchet);
    grid-template-columns: 1fr 2fr;
  }

  .homepage-spotlight-text-container {
    border-left: 1px solid rgb(from var(--shw) r g b / 0.2);
  }
}