/* =========================================================
   Blog pages with the new 2026 header and footer.
   Loaded after the blog's own styles and /site-chrome.css.

   The old blog header was fixed to the top and overlapped the
   page, so the content left extra space above itself for it.
   The new header sits in the page flow, so that extra space is
   taken back here. The !important flags are needed because the
   blog pages set these values with !important on small screens.
   ========================================================= */

/* Blog index: space above the "Blog" title */
#main .mosadad-cstm-blog-header {
  padding-top: 80px !important;
}

/* Articles: space above "Back to list of blogs" */
#main .mos-blog-back {
  margin-top: 24px !important;
}

@media (max-width: 768px) {
  #main .mosadad-cstm-blog-header {
    padding-top: 44px !important;
  }
}

/* "Read More →" links: taller tap area for phones without moving
   anything (the padding is cancelled out by the negative margin). */
#main .mosadad-cstm-readmore,
#main .mosadad-cstm-blog-card a,
#main .mos-sidebar-item a {
  display: inline-block;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: -10px;
  margin-bottom: -10px;
}

/* The blog body uses Manrope; keep the new header and footer on the
   redesign's typeface. */
.site-header,
.site-footer {
  font-family: var(--sans) !important;
}

/* ---------- "Talk to us" call to action (Blog page) ----------
   The same panel as Home's .cta--home (mosadad.css), under its own
   mos-talk class names because the blog also loads daisyUI, whose .btn
   and other classes would clash with the redesign's. Uses the colour
   tokens from /site-chrome.css. */
.mos-talk {
  padding: 16px;
}

.mos-talk__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 24px;
  border-radius: var(--radius-panel);
  background-color: var(--tint);
  color: var(--ink);
  text-align: center;
  font-family: var(--sans);
}

/* Dot pattern fading out from the top-right corner */
.mos-talk__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: url("/images/pattern-on-light.png") right top / 1600px auto no-repeat;
  -webkit-mask-image: radial-gradient(90% 120% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 75%);
  mask-image: radial-gradient(90% 120% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 75%);
}

.mos-talk__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.mos-talk__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: normal;
  color: var(--ink);
}

.mos-talk__title em {
  font-style: italic;
  color: var(--blue);
}

.mos-talk__desc {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}

.mos-talk__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.mos-talk__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    scale 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.2), box-shadow 0.3s ease;
}

.mos-talk__btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.mos-talk__btn--secondary {
  background: var(--white);
  color: var(--blue);
}

.mos-talk__btn--secondary:hover {
  background: var(--tint);
  color: var(--blue-dark);
}

/* Same hover as the other buttons on the site, when motion is allowed */
.motion .mos-talk__btn:hover {
  scale: 1.05;
  box-shadow: 0 10px 20px rgba(16, 114, 250, 0.4), 0 6px 8px rgba(16, 114, 250, 0.3);
}

.motion .mos-talk__btn:active {
  scale: 0.98;
}

/* Floating icon tiles */
.mos-talk__icon {
  position: absolute;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 16px 36px rgba(16, 40, 90, 0.12);
}

.mos-talk__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mos-talk__icon--1 { left: 9%;  top: 22%;    transform: rotate(-8deg); }
.mos-talk__icon--2 { left: 17%; bottom: 18%; transform: rotate(6deg); }
.mos-talk__icon--3 { right: 10%; top: 20%;   transform: rotate(8deg); }
.mos-talk__icon--4 { right: 18%; bottom: 16%; transform: rotate(-6deg); }

@keyframes mos-talk-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.motion .mos-talk__icon { animation: mos-talk-float 5.2s ease-in-out infinite; }
.motion .mos-talk__icon--1 { animation-delay: 0.4s; }
.motion .mos-talk__icon--2 { animation-delay: 0.8s; animation-duration: 5.9s; }
.motion .mos-talk__icon--3 { animation-delay: 1.2s; animation-duration: 6.6s; }
.motion .mos-talk__icon--4 { animation-delay: 1.6s; animation-duration: 7.3s; }

@media (max-width: 900px) {
  .mos-talk__icon {
    display: none;
  }
}

@media (max-width: 760px) {
  .mos-talk__panel {
    padding: 72px 20px;
  }
}
