/**
 * @file
 * Styles for the Side-By-Side-Stats block.
 */

/* ==========================================================================
   Main Container
   ========================================================================== */

.mstc-side-by-side-stats {
  --bl-padding-top: 2rem;
  --bl-padding-bottom: 2rem;
  --bl-padding-md-top: 1.5rem;
  --bl-padding-md-bottom: 1.5rem;
  --bl-padding-sm-top: 1rem;
  --bl-padding-sm-bottom: 1rem;

  background-color: #ffffff;
  width: 100%;
  min-height: 400px;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

/* ==========================================================================
   Layout Container
   ========================================================================== */

.mstc-side-by-side-stats__container {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 4rem;
  margin: 0 auto;
  align-items: flex-start;
  box-sizing: border-box;
}

/* ==========================================================================
   Columns
   ========================================================================== */

.mstc-side-by-side-stats__left {
  flex: 1;
  padding-right: 1rem;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.mstc-side-by-side-stats__right {
  flex: 1;
  padding-left: 0;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   Typography - Header
   ========================================================================== */

.mstc-side-by-side-stats__header {
  font-family: 'Gelasio', serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: #840029; /* Dark red like bullets-light */
  margin: 0 0 1.5rem 0;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}


/* ==========================================================================
   Typography - Description
   ========================================================================== */

.mstc-side-by-side-stats__description {
  font-family: 'Gelasio', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 162%;
  letter-spacing: 0%;
  color: #500617; /* Dark red like bullets-light */
  margin-bottom: 2rem;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}


/* ==========================================================================
   Statistics Cards
   ========================================================================== */

.mstc-side-by-side-stats__cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  padding: 0;
  box-sizing: border-box;
}


.mstc-side-by-side-stats__card {
  flex: 1;
  min-width: 200px;
  background-color: #840029; 
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 220px;
  width: 100%;
}


.mstc-side-by-side-stats__stat-number {
  font-family: 'Gotham', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 78px;
  line-height: 116%;
  letter-spacing: 0%;
  color: #FDB618;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.mstc-side-by-side-stats__stat-description {
  font-family: 'Gelasio', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 22px;
  line-height: 120%;
  letter-spacing: 0%;
  color: #FFFFFF; 
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet and smaller */
@media (max-width: 1024px) {
  .mstc-side-by-side-stats__container {
    /* flex-direction: column; */
    gap: 0;
  }

  .mstc-side-by-side-stats__left {
    flex: 1;
  }

  .mstc-side-by-side-stats__right {
    flex: 1;
  }

  .mstc-side-by-side-stats__header {
    font-size: 40px;
  }

  .mstc-side-by-side-stats__description {
    font-size: 18px;
  }

  .mstc-side-by-side-stats__cards {
    margin: 1.5rem 0 0 0;
  }

  .mstc-side-by-side-stats__card {
    min-width: 180px;
    padding: 1.5rem;
  }

  .mstc-side-by-side-stats__stat-number {
    font-size: 60px;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  /* Main Module */
  .mstc-side-by-side-stats__container {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    padding-block: 0;
  }

  .mstc-side-by-side-stats__left {
    flex: 1;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mstc-side-by-side-stats__right {
    flex: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding-left: 0px !important;
  }

  .mstc-side-by-side-stats__header {
    font-size: 2.25rem;
    text-align: left;
    margin-left: 0;
    max-width: 100%;
  }

  .mstc-side-by-side-stats__description {
    font-size: 1rem;
    text-align: left;
    margin-left: 0;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .mstc-side-by-side-stats__cards {
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mstc-side-by-side-stats__card {
    min-width: 100%;
    padding: 1.5rem;
  }

  .mstc-side-by-side-stats__stat-number {
    font-size: 60px;
  }

  .mstc-side-by-side-stats__stat-description {
    font-size: 18px;
  }
}

/* Mobile portrait */
@media (max-width: 567px) {
  .mstc-side-by-side-stats__container { 
    padding-block: 0;
  }
  .mstc-side-by-side-stats__header {
    font-size: 20px;
  }

  .mstc-side-by-side-stats__description {
    font-size: 14px !important;
    margin-bottom: 1rem;
  }

  .mstc-side-by-side-stats__left,
  .mstc-side-by-side-stats__right {
    padding: 0;
  }

  .mstc-side-by-side-stats__cards {
    flex-direction: column;
    gap: 1rem;
  }

  .mstc-side-by-side-stats__card {
    min-width: 100%;
    width: 100%;
  }

  .mstc-side-by-side-stats__stat-number {
    font-size: 60px;
  }

  .mstc-side-by-side-stats__stat-description {
    font-size: 16px;
  }
}
