.mm-service-section .mm-destination-tile {
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fffaf6;
}
.mm-service-section .mm-destination-tile:nth-child(1) {
  background-image: url("https://mohajeran-melal.com/wp-content/uploads/2026/11/mm-study.png");
}
.mm-service-section .mm-destination-tile:nth-child(2) {
  background-image: url("https://mohajeran-melal.com/wp-content/uploads/2026/11/mm-work.png");
}
.mm-service-section .mm-destination-tile:nth-child(3) {
  background-image: url("https://mohajeran-melal.com/wp-content/uploads/2026/11/mm-travel.png");
}
.mm-service-section .mm-destination-tile:nth-child(4) {
  background-image: url("https://mohajeran-melal.com/wp-content/uploads/2026/11/mm-language.png");
}
.mm-service-section .mm-destination-tile:nth-child(5) {
  background-image: url("https://mohajeran-melal.com/wp-content/uploads/2026/11/mm-cases.png");
}
.mm-service-section .mm-destination-tile:nth-child(6) {
  background-image: url("https://mohajeran-melal.com/wp-content/uploads/2026/11/mm-podcast.png");
}


/* ===== Lower mm-destinations section: text labels + sizing ===== */
/* Targets only the second .mm-destinations section (the lower service tiles) */
.mm-service-section {
  position: relative;
}

.mm-service-section .mm-destination-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px 0;
}

.mm-service-section .mm-destination-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 36px;
  min-height: 180px;
  background-size: 106%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fffaf6;
}

/* Enlarge visible subjects ~6% */
.mm-service-section .mm-destination-tile img,
.mm-service-section .mm-destination-tile svg,
.mm-service-section .mm-destination-tile .tile-img {
  transform: scale(1.06);
}

/* Text label styles for each tile - RTL order: تحصیلی | کار و مهاجرت | کوتاه‌مدت | آموزش زبان | پرونده‌های موفق | پادکست */
.mm-service-section .mm-destination-tile::before {
  content: attr(data-label);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  text-align: center;
  padding: 4px 12px;
  z-index: 2;
  direction: rtl;
  line-height: 1.4;
}

/* Responsive: smaller viewports */
@media (max-width: 768px) {
  .mm-service-section .mm-destination-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .mm-service-section .mm-destination-tile::before {
    font-size: 17px;
    top: 4px;
    padding: 3px 8px;
  }
  .mm-service-section .mm-destination-tile {
    padding-top: 28px;
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .mm-service-section .mm-destination-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mm-service-section .mm-destination-tile::before {
    font-size: 16px;
    padding: 3px 6px;
  }
  .mm-service-section .mm-destination-tile {
    padding-top: 24px;
    min-height: 130px;
  }
}
.mm-service-section .mm-destination-tile { position:relative; background-size:110% auto !important; }
.mm-service-section .mm-destination-tile::after { position:absolute; inset-inline:4px; top:5%; text-align:center; color:#414145; font:700 clamp(12px,1.7vw,24px)/1.3 Calibri,Arial,sans-serif; pointer-events:none; }
.mm-service-section .mm-destination-tile:nth-child(1)::after { content:"تحصیلی"; }
.mm-service-section .mm-destination-tile:nth-child(2)::after { content:"کار و مهاجرت"; }
.mm-service-section .mm-destination-tile:nth-child(3)::after { content:"کوتاه‌مدت"; }
.mm-service-section .mm-destination-tile:nth-child(4)::after { content:"آموزش زبان"; }
.mm-service-section .mm-destination-tile:nth-child(5)::after { content:"پرونده‌های موفق"; }
.mm-service-section .mm-destination-tile:nth-child(6)::after { content:"پادکست"; }
.mm-service-section .mm-destination-tile {
  container-type: size;
  position: relative;
  --title-top: 12px;
  --title-height: 32px;
  --image-gap: 16px;
  --bottom-gap: 20px;
  background-size: 0 0 !important;
}

.mm-service-section .mm-destination-tile::after {
  top: var(--title-top);
  height: var(--title-height);
  line-height: var(--title-height);
  z-index: 1;
}

.mm-service-section .mm-destination-tile::before {
  content: "";
  position: absolute;
  inset: calc(var(--title-top) + var(--title-height) + var(--image-gap))
         0 var(--bottom-gap);
  background-image: inherit;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto;
  background-size: calc(
    (100cqh - var(--title-top) - var(--title-height)
     - var(--image-gap) - var(--bottom-gap)) * var(--image-scale)
  ) auto;
  transform: translateY(var(--image-offset));
  pointer-events: none;
}

.mm-service-section .mm-destination-tile:nth-child(1) {
  --image-scale: 3.22; --image-offset: -16%;
}
.mm-service-section .mm-destination-tile:nth-child(2) {
  --image-scale: 3.30; --image-offset: -13%;
}
.mm-service-section .mm-destination-tile:nth-child(3) {
  --image-scale: 3.20; --image-offset: -10%;
}
.mm-service-section .mm-destination-tile:nth-child(4) {
  --image-scale: 2.90; --image-offset: -3%;
}
.mm-service-section .mm-destination-tile:nth-child(5) {
  --image-scale: 3.28; --image-offset: -3%;
}
.mm-service-section .mm-destination-tile:nth-child(6) {
  --image-scale: 2.98; --image-offset: -3%;
}

@media (max-width: 620px) {
  .mm-service-section .mm-destination-tile {
    --title-top: 6px;
    --title-height: 22px;
  }
}

/* Service cards: align the visible artwork within each card. */
.mm-service-section .mm-destination-tile { padding:0 !important; background-size:0 0 !important; }
.mm-service-section .mm-destination-tile::after { top:var(--title-top); line-height:var(--title-height); }
.mm-service-section .mm-destination-tile::before { --art-height:calc(100cqh - var(--title-top) - var(--title-height) - var(--image-gap) - var(--bottom-gap)); inset:0; padding:0; transform:none; background-size:calc(var(--art-height) * var(--image-scale)) auto; background-position:center calc(50% + (var(--title-top) + var(--title-height) + var(--image-gap) - var(--bottom-gap)) / 2 - var(--art-height) * var(--ink-bias)); }
.mm-service-section .mm-destination-tile:nth-child(1) { --ink-bias:0.16; }
.mm-service-section .mm-destination-tile:nth-child(2) { --ink-bias:0.13; }
.mm-service-section .mm-destination-tile:nth-child(3) { --ink-bias:0.1; }
.mm-service-section .mm-destination-tile:nth-child(4) { --ink-bias:0.03; }
.mm-service-section .mm-destination-tile:nth-child(5) { --ink-bias:0.03; }
.mm-service-section .mm-destination-tile:nth-child(6) { --ink-bias:0.03; }

.mm-service-section .mm-destination-tile:has(> p.mm-service-label)::after { content:none !important; }
.mm-service-section .mm-destination-tile > p.mm-service-label { position:absolute; inset-inline:4px; top:var(--title-top); z-index:1; margin:0 !important; text-align:center; color:#414145; font:700 clamp(12px,1.7vw,24px)/var(--title-height) Calibri,Arial,sans-serif; }

.wp-site-blocks>.mm-final-panel.mm-destinations{width:min(1200px,calc(100% - 64px));max-width:100%;min-height:0;height:auto;margin:0 auto 24px!important;padding:24px clamp(16px,3vw,40px);box-sizing:border-box;border:0}.mm-footer-grid{width:100%;display:grid;direction:rtl;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(90px,.85fr);grid-template-rows:repeat(4,minmax(42px,auto));align-items:center;justify-items:center;column-gap:12px;row-gap:4px;color:#414145;font:700 clamp(12px,1.7vw,24px)/1.3 Calibri,Arial,sans-serif;text-align:center}.mm-footer-grid>*{margin:0!important}.mm-footer-grid a{color:inherit;text-decoration:none}.mm-footer-grid svg{width:26px;height:26px;display:block}.mm-footer-grid .mm-icon{display:grid;place-items:center;min-width:42px;min-height:42px}.mm-footer-grid .mm-brand{grid-column:5;grid-row:1/5;width:min(100%,142px);height:auto;border:0}.mm-footer-grid .mm-phone{white-space:nowrap}@media(max-width:750px){.wp-site-blocks>.mm-final-panel.mm-destinations{width:calc(100% - 28px);padding:16px 8px}.mm-footer-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 2px}.mm-footer-grid .mm-brand{grid-area:5/1/6/5;width:80px}.mm-footer-grid .mm-phone{white-space:normal}}
.wp-site-blocks>.mm-final-panel.mm-destinations:not(:has(.mm-footer-grid)){min-height:232px;background-image:url("https://mohajeran-melal.com/wp-content/uploads/2026/11/LOGO.png");background-position:left clamp(16px,4vw,62px) center;background-repeat:no-repeat;background-size:auto 118px}
/* چیدمان فوتر صفحهٔ اصلی */
.wp-site-blocks > .mm-final-panel.mm-destinations {
  width: 100%;
  max-width: none;
  padding: 24px clamp(18px, 4vw, 56px);
}

.mm-final-panel .mm-footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr))
                         repeat(4, minmax(0, .68fr))
                         minmax(0, 1.15fr);
  grid-template-rows: repeat(4, minmax(38px, auto));
  gap: 4px clamp(8px, 1.5vw, 22px);
  color: #414145;
  font: 700 clamp(12px, 1.7vw, 24px)/1.3 Calibri, Arial, sans-serif;
}

.mm-final-panel .mm-footer-grid > p {
  justify-self: stretch;
  text-align: right;
  color: inherit;
  font: inherit;
}

.mm-final-panel .mm-footer-grid > p:nth-of-type(1) { grid-area: 1 / 1 !important; }
.mm-final-panel .mm-footer-grid > p:nth-of-type(2) { grid-area: 2 / 1 !important; }
.mm-final-panel .mm-footer-grid > p:nth-of-type(3) { grid-area: 1 / 2 !important; }
.mm-final-panel .mm-footer-grid > p:nth-of-type(4) { grid-area: 2 / 2 !important; }
.mm-final-panel .mm-footer-grid > p:nth-of-type(5) { grid-area: 1 / 3 !important; }
.mm-final-panel .mm-footer-grid > p:nth-of-type(6) { grid-area: 2 / 3 !important; }
.mm-final-panel .mm-footer-grid > p:nth-of-type(7) { grid-area: 3 / 1 / 5 / 4 !important; }

.mm-final-panel .mm-icon[aria-label="لینکدین"]   { grid-area: 1 / 4 !important; }
.mm-final-panel .mm-icon[aria-label="اینستاگرام"] { grid-area: 1 / 5 !important; }
.mm-final-panel .mm-icon[aria-label="واتساپ"]     { grid-area: 1 / 6 !important; }
.mm-final-panel .mm-icon[aria-label="بله"]       { grid-area: 1 / 7 !important; }
.mm-final-panel .mm-icon[aria-label="فیسبوک"]    { grid-area: 2 / 4 !important; }
.mm-final-panel .mm-icon[aria-label="یوتیوب"]    { grid-area: 2 / 5 !important; }
.mm-final-panel .mm-icon[aria-label="تلگرام"]    { grid-area: 2 / 6 !important; }
.mm-final-panel .mm-footer-email                { grid-area: 2 / 7 !important; }

.mm-final-panel .mm-footer-grid .mm-icon {
  min-width: 0;
  min-height: 38px;
  width: 100%;
}

.mm-final-panel .mm-footer-grid .mm-icon svg {
  width: 22px;
  height: 22px;
}

.mm-final-panel .mm-footer-grid .mm-phone {
  grid-area: 3 / 4 / 4 / 8 !important;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

.mm-final-panel .mm-footer-grid .mm-phone-de {
  grid-area: 4 / 4 / 5 / 8 !important;
}

.mm-final-panel .mm-footer-grid .mm-brand {
  grid-area: 1 / 8 / 5 / 9;
  width: min(100%, 142px);
  height: auto;
  border: 0;
}

@media (max-width: 750px) {
  .mm-final-panel .mm-footer-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(7, minmax(36px, auto)) auto;
    gap: 4px;
  }

  .mm-final-panel .mm-footer-grid > p:nth-of-type(1) { grid-area: 1 / 1 / 2 / 5 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(2) { grid-area: 2 / 1 / 3 / 5 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(3) { grid-area: 1 / 5 / 2 / 9 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(4) { grid-area: 2 / 5 / 3 / 9 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(5) { grid-area: 1 / 9 / 2 / 13 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(6) { grid-area: 2 / 9 / 3 / 13 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(7) { grid-area: 3 / 1 / 4 / 13 !important; }

  .mm-final-panel .mm-icon[aria-label="لینکدین"]   { grid-area: 4 / 1 / 5 / 4 !important; }
  .mm-final-panel .mm-icon[aria-label="اینستاگرام"] { grid-area: 4 / 4 / 5 / 7 !important; }
  .mm-final-panel .mm-icon[aria-label="واتساپ"]     { grid-area: 4 / 7 / 5 / 10 !important; }
  .mm-final-panel .mm-icon[aria-label="بله"]       { grid-area: 4 / 10 / 5 / 13 !important; }
  .mm-final-panel .mm-icon[aria-label="فیسبوک"]    { grid-area: 5 / 1 / 6 / 4 !important; }
  .mm-final-panel .mm-icon[aria-label="یوتیوب"]    { grid-area: 5 / 4 / 6 / 7 !important; }
  .mm-final-panel .mm-icon[aria-label="تلگرام"]    { grid-area: 5 / 7 / 6 / 10 !important; }
  .mm-final-panel .mm-footer-email                { grid-area: 5 / 10 / 6 / 13 !important; }

  .mm-final-panel .mm-footer-grid .mm-phone {
    grid-area: 6 / 1 / 7 / 13 !important;
  }

  .mm-final-panel .mm-footer-grid .mm-phone-de {
    grid-area: 7 / 1 / 8 / 13 !important;
  }

  .mm-final-panel .mm-footer-grid .mm-brand {
    grid-area: 8 / 1 / 9 / 13;
    width: 80px;
  }
}
.mm-final-panel .mm-footer-grid,
.mm-final-panel .mm-footer-grid > p {
  font-size: 18px !important;
}

.mm-final-panel .mm-footer-grid .mm-phone {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 32px;
}

.mm-final-panel .mm-footer-grid .mm-phone svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 901px) {
  .mm-final-panel .mm-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
                           repeat(4, 40px)
                           minmax(100px, 1fr);
    grid-template-rows: repeat(4, minmax(32px, auto));
    column-gap: clamp(8px, 1.2vw, 18px);
    row-gap: 2px;
  }

  .mm-final-panel .mm-footer-grid .mm-icon {
    width: 40px;
    min-height: 32px;
  }

  .mm-final-panel .mm-footer-grid > p.mm-footer-rights {
    grid-area: 3 / 1 / 5 / 4 !important;
    white-space: nowrap;
    text-align: right;
  }
}

@media (max-width: 900px) {
  .mm-final-panel .mm-footer-grid,
  .mm-final-panel .mm-footer-grid > p {
    font-size: 14px !important;
  }
}
@media (min-width: 901px) {
  .wp-site-blocks > .mm-final-panel.mm-destinations {
    --logo-size: clamp(138px, 13vw, 176px);
    --logo-clearance: clamp(26px, 3vw, 44px);
    --cutout-radius: calc(var(--logo-size) / 2 + var(--logo-clearance));
    --middle-width: calc(2 * var(--cutout-radius));

    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 18px clamp(20px, 3vw, 48px);
    background: radial-gradient(
      circle at center,
      transparent 0 calc(var(--cutout-radius) - 0.5px),
      #f5a21b calc(var(--cutout-radius) + 0.5px)
    );
    border: 0;
    overflow: visible;
  }

  .mm-final-panel .mm-footer-grid {
    --side-width: calc((100% - var(--middle-width)) / 2);

    display: grid;
    direction: rtl;
    width: 100%;
    grid-template-columns:
      repeat(3, minmax(0, calc(var(--side-width) / 3)))
      var(--middle-width)
      repeat(4, minmax(0, calc(var(--side-width) / 4)));
    grid-template-rows: repeat(3, minmax(38px, auto));
    column-gap: 0;
    row-gap: 4px;
    align-items: center;
  }

  .mm-final-panel .mm-footer-grid .mm-brand {
    grid-area: 1 / 4 / 4 / 5 !important;
    place-self: center;
    width: var(--logo-size);
    height: var(--logo-size);
    max-width: none;
    margin-block: calc((122px - var(--logo-size)) / 2) !important;
    padding: 0;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mm-final-panel .mm-footer-grid > p {
    justify-self: stretch;
    padding-inline: 6px;
    text-align: right;
  }

  .mm-final-panel .mm-footer-grid > p:nth-of-type(1) { grid-area: 1 / 1 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(2) { grid-area: 2 / 1 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(3) { grid-area: 1 / 2 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(4) { grid-area: 2 / 2 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(5) { grid-area: 1 / 3 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(6) { grid-area: 2 / 3 !important; }
  .mm-final-panel .mm-footer-grid > p:nth-of-type(7) {
    grid-area: 3 / 1 / 4 / 4 !important;
    white-space: normal;
  }

  .mm-final-panel .mm-footer-grid .mm-icon[aria-label="لینکدین"]   { grid-area: 1 / 5 !important; }
  .mm-final-panel .mm-footer-grid .mm-icon[aria-label="فیسبوک"]    { grid-area: 2 / 5 !important; }
  .mm-final-panel .mm-footer-grid .mm-icon[aria-label="اینستاگرام"] { grid-area: 1 / 6 !important; }
  .mm-final-panel .mm-footer-grid .mm-icon[aria-label="یوتیوب"]    { grid-area: 2 / 6 !important; }
  .mm-final-panel .mm-footer-grid .mm-icon[aria-label="واتساپ"]     { grid-area: 1 / 7 !important; }
  .mm-final-panel .mm-footer-grid .mm-icon[aria-label="تلگرام"]    { grid-area: 2 / 7 !important; }
  .mm-final-panel .mm-footer-grid .mm-icon[aria-label="بله"]       { grid-area: 3 / 7 !important; }
  .mm-final-panel .mm-footer-grid .mm-phone                       { grid-area: 1 / 8 !important; }
  .mm-final-panel .mm-footer-grid .mm-phone.mm-phone-de           { grid-area: 2 / 8 !important; }
  .mm-final-panel .mm-footer-grid .mm-footer-email                { grid-area: 3 / 8 !important; }
}
.mm-final-panel .mm-footer-grid .mm-phone,
.mm-final-panel .mm-footer-grid .mm-footer-email {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 38px;
}

.mm-final-panel .mm-footer-grid .mm-phone svg {
  width: 22px;
  height: 22px;
}

.mm-final-panel .mm-footer-grid .mm-footer-email {
  font-size: 22px;
  line-height: 1;
}

@media (min-width: 901px) {
  .mm-final-panel .mm-footer-grid .mm-brand {
    width: calc(var(--logo-size) + 14px);
    height: calc(var(--logo-size) + 14px);
    margin-block: calc((108px - var(--logo-size)) / 2) !important;
  }

  .mm-final-panel .mm-footer-grid .mm-phone {
    grid-area: 1 / 8 !important;
  }

  .mm-final-panel .mm-footer-grid .mm-phone.mm-phone-de {
    grid-area: 2 / 8 !important;
  }

  .mm-final-panel .mm-footer-grid .mm-footer-email {
    grid-area: 3 / 8 !important;
  }

  .mm-final-panel .mm-footer-grid > p.mm-footer-rights:nth-of-type(7) {
    grid-area: 3 / 1 / 4 / 4 !important;
    justify-self: stretch;
    width: auto;
    max-width: none;
    padding-inline-start: clamp(44px, 5vw, 72px);
    padding-inline-end: 0;
    text-align: right;
    white-space: nowrap !important;
  }
}
@media (min-width: 901px) {
  .wp-site-blocks > .mm-final-panel.mm-destinations {
    --logo-size: 205px;
    --logo-height: calc(var(--logo-size) * 2466 / 2954);
    --logo-clearance: 28px;

    padding-block: 12px;
  }

  .mm-final-panel .mm-footer-grid {
    min-height: var(--logo-height);
    grid-template-rows: repeat(3, minmax(38px, 1fr));
  }

  .mm-final-panel .mm-footer-grid .mm-brand {
    width: var(--logo-size);
    height: var(--logo-height);
    margin-block: 0 !important;
    place-self: center;
  }
}
.mm-final-panel .mm-footer-grid :is(.mm-icon, .mm-phone) svg {
  width: 26px;
  height: 26px;
}

.mm-final-panel .mm-footer-grid :is(.mm-icon, .mm-phone) svg[stroke="currentColor"] {
  stroke-width: 2.2;
}

.mm-final-panel .mm-footer-grid .mm-footer-email {
  font-size: 26px;
  font-weight: 800;
}
.mm-final-panel .mm-icon[aria-label="بله"] svg path:first-child {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.mm-final-panel .mm-icon[aria-label="بله"] svg path:last-child {
  stroke: currentColor;
  stroke-width: 2.2;
}
@media (min-width: 901px) {
  .mm-final-panel .mm-footer-grid > :is(.mm-icon, .mm-phone) {
    translate: clamp(-64px, -3.5vw, -28px) 0;
  }
}
#mm-music-toggle,
#mm-music-toggle[aria-pressed="true"] {
  background: #fffaf6;
}

#mm-music-toggle svg {
  color: #f5a21b;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  #mm-music-toggle[aria-pressed="true"] svg {
    animation: mm-note-wave 1.2s ease-in-out infinite;
  }
}

@keyframes mm-note-wave {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-2px) rotate(-10deg); }
  75% { transform: translateY(2px) rotate(10deg); }
}
#mm-music-toggle,
#mm-music-toggle[aria-pressed="true"],
#mm-music-toggle[aria-pressed="false"] {
  width: 80px;
  height: 44px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  color: #f5a21b;
}

#mm-music-toggle svg.mm-music-staff {
  display: block;
  width: 76px;
  height: 42px;
  color: #f5a21b;
  animation: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  #mm-music-toggle[aria-pressed="true"] .mm-moving-note {
    animation: mm-staff-note 1.3s ease-in-out infinite;
  }

  #mm-music-toggle[aria-pressed="true"] .mm-moving-note:nth-of-type(3) {
    animation-delay: .16s;
  }

  #mm-music-toggle[aria-pressed="true"] .mm-moving-note:nth-of-type(4) {
    animation-delay: .32s;
  }
}

@keyframes mm-staff-note {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
	@media (min-width: 1200px) {
  .mm-final-panel .mm-footer-grid > p.mm-footer-rights:nth-of-type(7) {
    padding-inline-start: clamp(20px, 2vw, 37px);
  }
}
}
#mm-music-toggle svg.mm-music-staff {
  color: #414145;
}
@media (min-width: 1200px) {
  .mm-final-panel .mm-footer-grid > p.mm-footer-rights:nth-of-type(7) {
    transform: translateX(55px);
    font-size: 18px !important;
    white-space: nowrap;
  }
}


.mm-review-card{box-sizing:border-box;width:min(432px,calc(100vw - 100px));min-height:180px;border:1px solid #e7ded6;border-radius:20px;background:#fff;text-align:start}


.wp-block-group.mm-home {
  --mm-slogan-size: min(100px, 7.4vw);
  box-sizing: border-box;
  min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
  display: grid;
  align-content: center;
  gap: clamp(12px, 2.5vh, 26px);
}
.mm-home > * { width: 100%; margin-block: 0 !important; }
.mm-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26%) minmax(0, 1fr);
  align-items: start;
  gap: clamp(8px, 2vw, 28px);
}
.mm-header-row .wp-block-buttons { gap: clamp(6px, 1.4vw, 24px); }
.mm-header-row .wp-block-button { flex: 1 1 0; min-width: 0; }
.mm-header-row .wp-block-button__link { font-family: Calibri, Arial, sans-serif !important; font-weight: 700 !important; }
.mm-header-row .wp-block-image img { width: min(205px, 100%) !important; height: auto; }
.mm-home > h1 { font-size: calc(var(--mm-slogan-size) * 0.45) !important; }
.mm-home .mm-slogan p { margin: 0 !important; font-size: var(--mm-slogan-size) !important; white-space: nowrap; }
@media (max-width: 1100px) {
  .wp-block-group.mm-home { --mm-slogan-size: 6.7vw; }
}
@media (max-width: 620px) {
  .mm-header-row .wp-block-buttons { flex-direction: column; }
  .mm-header-row .wp-block-button { width: 100%; }
  .mm-header-row .wp-block-button__link { font-size: clamp(12px, 3vw, 16px); }
}
.wp-block-group.mm-home {
  position: relative;
  grid-template-rows: min(171.14px, 20.87vw) auto auto;
}
.mm-header-row {
  align-items: center;
}
.mm-home > h1 { grid-row: 2; }
.mm-home > .mm-slogan { grid-row: 3; }
.mm-header-row .wp-block-image:has(.wp-image-17) {
  width: min(205px, 25vw, 100%);
  margin-inline: auto;
  margin-block: 0;
}
.mm-header-row .wp-block-image img.wp-image-17 {
  display: block;
  width: 100% !important;
}
@media (max-height: 560px) {
  .wp-block-group.mm-home { align-content: start; padding-top: 50px !important; grid-template-rows: auto auto auto; }
  .mm-header-row { position: static; width: 100%; }
}
.mm-header-row > .wp-block-column { align-self: center !important; }
.wp-block-group.mm-home {
  align-content: start;
  padding-top: 50px !important;
  grid-template-rows: auto auto auto;
  row-gap: 25px;
}
.mm-header-row {
  position: static;
  width: 100%;
}
.mm-home > h1 {
  grid-row: 2;
  text-align: center;
  font-size: calc(var(--mm-slogan-size) * 0.45) !important;
}
@media (max-width: 620px) {
  .wp-block-group.mm-home {
    align-content: center;
    padding: 24px 12px !important;
    row-gap: 18px;
  }
  .mm-header-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 6px;
  }
  .mm-header-row > .wp-block-column:first-child { grid-area: 1 / 1 / 2 / 3; }
  .mm-header-row > .wp-block-column:nth-child(2) { grid-area: 2 / 1 / 3 / 5; }
  .mm-header-row > .wp-block-column:last-child { grid-area: 1 / 3 / 2 / 5; }
  .mm-header-row .wp-block-buttons { flex-direction: row; gap: 6px; }
  .mm-header-row .wp-block-button__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 2px !important;
    font-size: clamp(11px, 3.2vw, 15px);
    white-space: nowrap;
  }
  .mm-header-row .wp-block-image:has(.wp-image-17) { width: clamp(108px, 31vw, 150px); }
  .mm-home > h1 { font-size: clamp(22px, 6.3vw, 32px) !important; }
}

.mm-intro {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .mm-intro {
    position: fixed;
    z-index: 99990;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: clamp(16px, 4vh, 36px);
    padding: 16px;
    box-sizing: border-box;
    background: rgb(255, 250, 246);
    pointer-events: none;
    animation: mm-intro-fade 450ms ease 3s both;
  }
  .mm-intro img { display: block; width: clamp(125px, 26vw, 215px); height: auto; }
  .mm-intro p {
    margin: 0;
    color: #414145;
    font: 700 min(78px, 7vw)/1.12 Cambria, Georgia, serif;
    white-space: nowrap;
    text-align: center;
  }
  .mm-intro strong { color: #f5a21b; }
}
@keyframes mm-intro-fade {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: no-preference) {
  .mm-intro img { animation: mm-logo-blink 760ms ease-in-out 420ms both; }
  .mm-intro .mm-intro-word {
    display: inline-block;
    animation: mm-word-wave 1050ms ease-in-out both;
  }
  .mm-intro-word:nth-child(1) { animation-delay: 580ms; }
  .mm-intro-word:nth-child(2) { animation-delay: 740ms; }
  .mm-intro-word:nth-child(3) { animation-delay: 900ms; }
  .mm-intro-word:nth-child(4) { animation-delay: 1060ms; }
  .mm-intro-word:nth-child(5) { animation-delay: 1220ms; }
}
@keyframes mm-logo-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  48% { opacity: .24; transform: scale(.96); }
}
@keyframes mm-word-wave {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-.24em); }
  72% { transform: translateY(.08em); }
}
.wp-block-group.mm-destinations {
  box-sizing: border-box;
  border-radius: clamp(20px, 3vw, 40px);
  min-height: 100svh;
  margin: 0 !important;
  padding: clamp(20px, 5vw, 56px) 50px;
  display: grid;
  place-items: center;
  background: #f5a21b;
}
.wp-block-group.mm-destination-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2.5vw, 28px);
}
.mm-destination-grid > .mm-destination-tile {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.55;
  max-height: 35svh;
  margin: 0 !important;
  border-radius: clamp(10px, 2vw, 24px);
  background: #fffaf6;
}
@media (max-width: 620px) {
  .wp-block-group.mm-destinations { padding-inline: clamp(14px, 5vw, 30px); }
}
html:has(.mm-destinations) { scrollbar-gutter: stable both-edges; }

.wp-block-group.mm-home { grid-template-rows: auto auto auto 1fr; }
.mm-home > .wp-block-group.mm-paper-strip {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  grid-row: 4;
  place-self: center stretch;
  width: auto;
  min-width: 0;
  margin-inline: -20px !important;
  max-width: none;
  min-height: 136px;
  padding: 18px 20px;
  transform: translateY(7.5px);
}
.mm-paper-strip::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #f5a21b;
  clip-path: polygon(0 11%, 1.7% 8%, 3.3% 14%, 4.1% 9%, 7.4% 16%, 8.6% 10%, 12% 13%, 13.1% 4%, 14.7% 8%, 16.2% 3%, 19.8% 9%, 21% 15%, 24.4% 8%, 26.8% 10%, 29.1% 1%, 30.4% 5%, 34.8% 6%, 36.2% 13%, 38.7% 9%, 42% 15%, 43.3% 8%, 46.8% 10%, 49% 4%, 50.7% 8%, 54.2% 3%, 55.6% 9%, 59.1% 6%, 61.2% 14%, 63.4% 9%, 66.8% 10%, 69% 3%, 71.7% 5%, 72.8% 11%, 75.6% 8%, 79.2% 15%, 81.3% 10%, 83.9% 13%, 86% 5%, 89.4% 6%, 91% 1%, 93.2% 9%, 95.8% 6%, 100% 13%, 100% 89%, 97% 94%, 94.8% 89%, 92.1% 96%, 90.3% 92%, 88% 99%, 85.2% 95%, 82.6% 97%, 79% 90%, 77.6% 94%, 74.4% 85%, 72% 91%, 70.2% 87%, 67.1% 95%, 63.8% 91%, 61% 97%, 58.7% 95%, 55% 100%, 53.4% 92%, 50.6% 95%, 47.8% 87%, 45.9% 91%, 42.3% 86%, 40% 94%, 38.4% 90%, 35% 96%, 32.8% 92%, 30.1% 99%, 27.2% 94%, 24.8% 97%, 22.1% 89%, 20% 91%, 16.5% 87%, 14.8% 95%, 11.2% 91%, 8.9% 97%, 6.5% 94%, 3.4% 99%, 0 92%);
}
@media (max-width: 620px) {
  .mm-home > .wp-block-group.mm-paper-strip {
    margin-inline: -12px !important;
    min-height: 88px;
    transform: translateY(3px);
  }
}
.mm-home > .wp-block-group.mm-paper-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  color: #fffaf6;
  font-family: Calibri, Arial, sans-serif;
  font-weight: 700;
}
.mm-paper-strip > .mm-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1vw, 14px);
  margin: 0 !important;
}
.mm-stat-icon { flex: none; width: clamp(28px, 3.5vw, 46px); height: auto; }
.mm-stat > p {
  margin: 0 !important;
  color: inherit;
  font: inherit;
  font-size: clamp(15px, 2vw, 30px);
  line-height: 1.2;
  text-align: center;
}
@media (max-width: 620px) {
  .mm-home > .wp-block-group.mm-paper-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 22px; }
}


.mm-agencies{grid-template-columns:minmax(0,1fr);box-sizing:border-box;min-height:360px;padding:50px 0 28px;display:grid;align-content:start;gap:18px;background:#fffaf6;color:#414145;text-align:center;font-family:Calibri,Arial,sans-serif}
.mm-agencies h2{margin:0;color:inherit;font:700 35px Calibri,Arial,sans-serif}
.mm-agencies-row{min-width:0;width:100%;box-sizing:border-box;margin-inline:auto;padding-inline:50px}
.mm-agencies-window{width:100%;overflow:hidden}
.mm-agencies-track{display:flex;width:max-content;animation:mm-agencies-scroll 36s linear infinite}
.mm-agencies-track>div{display:flex;flex:none;gap:32px;padding-right:32px}
.mm-agencies-track img{display:block;flex:0 0 200px;width:200px;height:200px;max-width:none;object-fit:contain}
@keyframes mm-agencies-scroll{to{transform:translateX(-50%)}}
.mm-agencies-window:hover .mm-agencies-track{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.mm-agencies-track{animation:none;width:auto}.mm-agencies-track>div{flex-wrap:wrap;justify-content:center;flex:1}.mm-agencies-track>div+div{display:none}}

.wp-site-blocks:has(> .mm-destinations) { container-type: inline-size; }
.mm-agencies {
  --mm-tile-side: 50px;
  --mm-tile-gap: clamp(10px, 2.5vw, 28px);
  --mm-tile-height: min(35svh, calc((100cqw - 2 * var(--mm-tile-side) - 2 * var(--mm-tile-gap)) / 4.65));
  min-height: 0;
  padding-block: max(clamp(20px, 5vw, 56px), calc((100svh - 2 * var(--mm-tile-height) - var(--mm-tile-gap)) / 2));
}
@media (max-width:620px) { .mm-agencies { --mm-tile-side: clamp(14px, 5vw, 30px); } }


#mm-music-toggle {
  position: fixed;
  top: calc(16px + var(--wp-admin--admin-bar--height, 0px));
  left: 16px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #414145;
  border-radius: 50%;
  background: #fffaf6;
  color: #414145;
  cursor: pointer;
}
#mm-music-toggle[hidden] { display: none; }
#mm-music-toggle[aria-pressed="true"] { background: #f5a21b; }
#mm-music-toggle:focus-visible {
  outline: 2px solid #414145;
  outline-offset: 3px;
}
#mm-music-toggle svg { width: 22px; height: 22px; }
#mm-music-toggle[aria-pressed="false"] .mm-sound-on,
#mm-music-toggle[aria-pressed="true"] .mm-sound-off { display: none; }


.mm-testimonials {
  position: relative;
  padding-bottom: max(72px, calc((100svh - 2 * var(--mm-tile-height, 180px) - var(--mm-tile-gap, 28px)) / 2));
}

.mm-testimonials > button.return-to-top-btn {
  position: absolute;
  top: auto;
  right: 30px;
  bottom: 20px;
  left: auto;
  background-color: #414145 !important;
  color: #fff;
}

.mm-testimonials > .return-to-top-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  font: 700 26px/1 Arial, sans-serif;
  cursor: pointer;
}
.mm-inner-header, .mm-inner-content {
  box-sizing: border-box;
  width: min(100% - 32px, 760px);
  margin-inline: auto;
  padding-block: 24px;
}



.mm-inner-content { padding-bottom: 56px; }
.mm-assessment-form :is(input:not([type="submit"]), select, textarea) {
  box-sizing: border-box;
  width: 100%;
  margin-block: 6px 12px;
  padding: 10px 12px;
  border: 1px solid #c9c1b9;
  border-radius: 8px;
  background: #fff;
  color: #414145;
  font: inherit;
}
.mm-assessment-form input[type="submit"] {
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: #f5a21b;
  color: #242424;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.mm-country-section .mm-destination-tile {
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mm-country-section .mm-destination-tile figure {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}
.mm-country-section .mm-destination-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mm-service-section .mm-destination-tile > p.mm-service-label {
  position: absolute;
  inset-inline: 4px;
  top: var(--title-top, 12px);
  text-align: center;
}

/* The header row is shared by the homepage and all interior templates. */
.wp-site-blocks > header.wp-block-template-part {
  box-sizing: border-box;
  padding: 50px 20px 24px;
}
.mm-header-row {
  direction: rtl;
  margin-block: 0 !important;
}
.mm-header-row .wp-block-image a { display: block; }
@media (max-width: 620px) {
  .wp-site-blocks > header.wp-block-template-part { padding: 58px 12px 18px; }
}
