@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&display=swap');

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 40px;
  font-family: 'Homemade Apple', cursive;
  background-color: #fff;
  color: #19182B;
}

@media (max-width: 820px) {
  body {
    margin: 0px;
  }
}

/* --- Global container --- */
.mlm-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

@media (max-width: 820px) {
  .mlm-container {
    padding: 0 24px;
  }
}

@media (max-width: 601px) {
  .mlm-container {
    padding: 0 16px;
  }
}

/* --- Header --- */
.mlm-header {
  position: relative;
  overflow: hidden;
}

/* --- Images --- */
.mlm-header-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 820px) {
  .mlm-header-img-top {
    margin: 24px auto;
  }
}

@media (max-width: 601px) {
  .mlm-header-img-top {
    margin: 16px auto;
  }
}

/* Desktop by default */
.mlm-desktop-only {
  display: block !important;
}

.mlm-mobile-only {
  display: none !important;
}

/* Mobile layout */
@media (max-width: 820px) {
  .mlm-desktop-only {
    display: none !important;
  }

  .mlm-mobile-only {
    display: block !important;
  }

  .mlm-mobile-images {
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 601px) and (max-width: 820px) {
  .mlm-mobile-only {
    margin: auto 100px;
  }
}

/* --- Wave divider --- */
.mlm-wave {
  width: 100%;
  height: 10px;
  background: url("img/divider.png") repeat-x center;
  background-size: contain;
  margin: 40px 0;
}

@media (max-width: 820px) {
  .mlm-wave {
    height: 10px;
    background-size: auto 10px;
  }
}

/* --- Content --- */

/* --- block 1 --- */
.mlm-content {
  margin: 40px 0;
}

.mlm-content p {
  margin: 0;
  padding: 0;
}

.mlm-paragraph {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
}

.mlm-span-bold {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
}

.mlm-paragraph+.mlm-last-paragraph {
  margin-top: 20px;
}

@media (max-width: 820px) {
  .mlm-content {
    margin: 24px 0;
  }
}

/* --- Title section --- */
.mlm-title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px auto;
}

.mlm-section-title {
  font-family: 'Homemade Apple', cursive;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: left;
  color: #19182B;
  margin: 0;
}

.mlm-section-wave {
  flex: 1;
  height: 10px;
  background: url("img/divider.png") repeat-x center;
  background-size: contain;
  margin-left: 5px;
}

@media (max-width: 820px) {
  .mlm-section-wave {
    height: 10px;
    background-size: auto 10px;
  }
}

@media (max-width: 820px) {

  /* --- Paragraphs --- */
  .mlm-paragraph {
    font-size: 14px;
    letter-spacing: 0;
  }

  .mlm-span-bold {
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: 0;
  }

  /* --- Title (mobile version) --- */
  .mlm-section-title {
    font-size: 24px;
    line-height: 1.1;
  }
}

/* --- Centered button --- */
.mlm-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 48px 0;
  /* space above and below */
}

.mlm-button {
  padding: 12px 24px;
  border-radius: 1000px;
  border: 1px solid #A6C4FF;
  background: linear-gradient(90.27deg, #D1E5FF 0.24%, #FBF8F0 104.94%);
  box-shadow: 0px 4px 0px 0px #A6C4FF;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #19182B;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  /* layout */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mlm-button-icon {
  width: 32px;
  height: 32px;
}

/* Hover effect */
.mlm-button:hover {
  transform: translateY(2px);
  box-shadow: 0px 2px 0px 0px #A6C4FF;
}

/* --- Six cards section --- */
.mlm-six-cards-section {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 40px 0;
  grid-auto-rows: minmax(320px, auto);
}

.mlm-info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  border-radius: 8px;
  opacity: 1;
  box-sizing: border-box;
  height: 100%;
}

.mlm-info-card:nth-child(1) {
  grid-column: span 3;
  background: linear-gradient(45.27deg, #FFFCE7 0%, #F1FFF6 100%);
}

.mlm-info-card:nth-child(2) {
  grid-column: span 3;
  background: linear-gradient(45.27deg, #E7F1FF 0%, #FFF1FD 100%);
}

.mlm-info-card:nth-child(3) {
  grid-column: 1 / -1;
  background: linear-gradient(45.27deg, #E7FFF6 0%, #FEF1FF 100%);
}

.mlm-info-card:nth-child(4) {
  grid-column: span 2;
  background: linear-gradient(45.27deg, #FFFFFF 0%, #FFF1F1 100%);
}

.mlm-info-card:nth-child(5) {
  grid-column: span 2;
  background: linear-gradient(45.27deg, #EAE7FF 0%, #F1FFFF 100%);
}

.mlm-info-card:nth-child(6) {
  grid-column: span 2;
  background: linear-gradient(45.27deg, #FFE7E7 0%, #F3F1FF 100%);
}

/* Stack vertically on mobile */
@media (max-width: 820px) {
  .mlm-six-cards-section {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .mlm-six-cards-section .mlm-info-card {
    grid-column: auto;
  }
}

/* Header: emoji + title */
.mlm-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Emoji circle */
.mlm-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  font-size: 22px;
}

/* Title */
.mlm-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  color: #19182B;
  margin: 0;
}

/* Text */
.mlm-card-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  color: #19182B;
  margin: 0;
}

.mlm-card-text-span {
  font-weight: 700;
}

@media (max-width: 820px) {

  .mlm-card-title,
  .mlm-card-text {
    font-size: 14px;
    line-height: 1.1;
  }
}

/* --- 2 blocks section --- */

.mlm-two-blocks-section {
  display: flex;
  gap: 16px;
  margin: 40px 0;
}

.mlm-two-blocks-section .mlm-info-card {
  flex: 1;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(45.27deg, #E7F5FF 0%, #FFF1F1 100%);
  opacity: 1;
  box-sizing: border-box;
}

/* Mobile: stack vertically */
@media (max-width: 601px) {
  .mlm-two-blocks-section {
    flex-direction: column;
  }
}

/* --- Footer --- */
footer {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  padding: 24px 16px;
}

footer p {
  margin: 0;
}
