/* ==========================================================================
   Components: badges, content blocks, home page, speakers
   ========================================================================== */

/* ---------- Badges ---------- */

.badge {
  display: block;
  width: min-content;
  margin: 0 auto 2rem;
  padding: 28px 40px;
  border: none;
  border-radius: 20px;
  background-color: var(--purple-badge);
  color: var(--white);
  text-align: left;
}

.badge a{
  color: var(--lilac-light);
}

.badge h2,
.badge h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--lilac-light);
  margin: 0;
  line-height: 1.1;
  text-decoration-color: var(--lilac-light);
}

.badge p {
  font-size: 16px;
  font-weight: 400;
  color: var(--lilac-light);
  margin: 0;
  opacity: 0.85;
}

.badge-red {
  text-align: center;
  font-size: 2rem;
  background-color: var(--red);
}

/* ---------- Blocks ---------- */

.block-type-button,
.block-type-newsletter {
  margin: 2rem 0;
}

.block-type-button a {
  text-decoration: none;
}

.block-type-button button {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.block-type-button button:hover {
  transform: scale(1.05);
}

.block-type-newsletter .badge input[type="email"] {
  width: 100%;
  padding: 5px 10px;
  border: 1px solid var(--lilac-light);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.block-type-newsletter .badge .button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background-color: var(--lilac-light);
  color: var(--purple-badge);
  font-weight: 700;
  cursor: pointer;
}

.block-type-image img {
  width: calc(100% - 1rem);
}

/* ---------- Home: hero ---------- */

.herobadge_text {
  float: right;
}

.herobadge_text h2,
.herobadge_text ul {
  margin-bottom: 1.5rem;
}

.herobadge_text a {
  color: var(--white);
}

@media (max-width: 992px) {
  .herobadge { display: none; }
}

@media (min-width: 993px) and (max-width: 1199px) {
  .herobadge { width: 580px; margin-top: -10px; }
  .heropic   { width: 320px; }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .herobadge { width: 650px; margin-top: -10px; }
  .heropic   { width: 370px; }
}

@media (min-width: 1400px) and (max-width: 1599px) {
  .herobadge { width: 720px; margin-top: -10px; }
  .heropic   { width: 415px; }
}

@media (min-width: 1600px) and (max-width: 1899px) {
  .herobadge { width: 790px; margin-top: -20px; }
  .heropic   { width: 460px; }
}

@media (min-width: 1900px) {
  .herobadge { width: 1000px; margin-top: -20px; }
  .heropic   { width: 600px; }
}

/* ---------- Home: news teasers ---------- */

.homeNews {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 30vh;
  opacity: 0;
}

.homeNews.scrolled {
  opacity: 1;
}

[data-theme="sub"] .homeNews {
  margin-top: 0;
}

.homeNews a,
.homeNews a:hover {
  color: var(--white);
  text-decoration: none;
}

.homeNews a:visited {
  color: var(--lilac-light);
}

.subContentSlots {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Speakers ---------- */

.allSpeakers {
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
}

.allSpeakers h2 {
  font-size: 1.68rem;
  margin-bottom: 1rem;
}

.allSpeakers .fullSpeaker {
  display: flex;
  flex-direction: column;
  flex-basis: 30%;
  max-width: 30%;
  margin-bottom: 3rem;
}

@media (min-width: 331px) and (max-width: 992px) {
  .allSpeakers,
  .allSpeakers .fullSpeaker {
    display: unset;
  }
}

.speaker img {
  width: 100%;
}

.fullSpeaker p {
  margin: 0;
}

.fullSpeaker .row {
  padding-bottom: 0;
  margin: 0.5rem 0 0 0;
}

.speaker_slots {
  margin-top: 1rem;
}

.speaker_content .row {
  display: flex;
}

.speaker_content .speaker_slots {
  margin-left: 1rem;
}

.speaker_content p {
  margin-top: 0;
}
