/* MT - Problem Panels */
.mtfe-pb {
    --pb-ink: #171917;
    --pb-cobalt: #3155E7;
    --pb-accent: #E2F268;
    --pb-muted: #565952;
    --pb-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
    color: var(--pb-ink);
}
.mtfe-pb .mtfe-pb__head { margin-bottom: 44px; }
.mtfe-pb .mtfe-pb__kicker {
    margin: 0 0 14px;
    font-family: var(--pb-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
body .elementor .mtfe-pb .mtfe-pb__title {
    margin: 0;
    color: var(--pb-ink);
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 3.6vw, 56px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.025em;
}
body .elementor .mtfe-pb h2 span { color: inherit; font-size: inherit !important; line-height: inherit !important; }
.mtfe-pb .mtfe-pb__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 2px solid var(--pb-ink);
    border-left: 1px solid var(--pb-ink);
}
.mtfe-pb .mtfe-pb__panel,
.mtfe-pb a.mtfe-pb__panel:visited {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 300px;
    padding: 24px 22px 22px;
    border-right: 1px solid var(--pb-ink);
    border-bottom: 1px solid var(--pb-ink);
    background: transparent;
    color: var(--pb-ink);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.3s ease;
}
/* cobalt fills the panel from the bottom on hover */
.mtfe-pb .mtfe-pb__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--pb-cobalt);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1);
}
.mtfe-pb a.mtfe-pb__panel:hover,
.mtfe-pb a.mtfe-pb__panel:focus-visible { color: #FFFFFF; }
.mtfe-pb a.mtfe-pb__panel:hover::before,
.mtfe-pb a.mtfe-pb__panel:focus-visible::before { transform: none; }
.mtfe-pb .mtfe-pb__num {
    color: var(--pb-cobalt);
    font-family: var(--pb-mono);
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.mtfe-pb a.mtfe-pb__panel:hover .mtfe-pb__num { color: var(--pb-accent); }
.mtfe-pb .mtfe-pb__problem {
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: clamp(22px, 1.9vw, 28px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.mtfe-pb .mtfe-pb__text {
    color: var(--pb-muted);
    font-size: 15px;
    line-height: 1.55;
    transition: color 0.3s ease;
}
.mtfe-pb a.mtfe-pb__panel:hover .mtfe-pb__text { color: rgba(255, 255, 255, 0.86); }
.mtfe-pb .mtfe-pb__service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed currentColor;
    font-family: var(--pb-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.mtfe-pb .mtfe-pb__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid currentColor;
    font-size: 15px;
    transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.3s ease, color 0.3s ease;
}
.mtfe-pb a.mtfe-pb__panel:hover .mtfe-pb__arrow { transform: translateX(4px) rotate(-45deg); background: var(--pb-accent); color: var(--pb-ink); border-color: var(--pb-accent); }

@media (max-width: 1024px) {
    .mtfe-pb .mtfe-pb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mtfe-pb .mtfe-pb__panel { min-height: 260px; }
}
@media (max-width: 767px) {
    .mtfe-pb .mtfe-pb__grid { grid-template-columns: minmax(0, 1fr); }
    .mtfe-pb .mtfe-pb__panel { min-height: 0; }
}

/* ---- mascot ---- */
.mtfe-pb .mtfe-pb__head { position: relative; }
.mtfe-pb .mtfe-pb__scout { position: absolute; right: 2%; bottom: -46px; --scout-w: 130px; }
.mtfe-pb .mtfe-pb__scout .mtfe-scout__bubble { left: auto; right: 82%; bottom: 62%; }
@media (max-width: 767px) { .mtfe-pb .mtfe-pb__scout { position: relative; right: auto; bottom: auto; margin: 18px 0 -10px !important; --scout-w: 100px; } .mtfe-pb .mtfe-pb__scout .mtfe-scout__bubble { left: 100%; right: auto; bottom: 40%; } }

/* ---- icons ---- */
.mtfe-pb .mtfe-pb__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mtfe-pb .mtfe-pb__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border: 1px solid var(--pb-ink);
    background: #F0F7B8;
    color: var(--pb-cobalt);
    box-shadow: 3px 3px 0 var(--pb-ink);
    transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.mtfe-pb .mtfe-pb__icon svg { width: 28px; height: 28px; }
.mtfe-pb .mtfe-icon__draw { stroke: var(--pb-ink); stroke-dasharray: 40; stroke-dashoffset: 0; transition: stroke 0.3s ease; }
.mtfe-pb a.mtfe-pb__panel:hover .mtfe-pb__icon,
.mtfe-pb a.mtfe-pb__panel:focus-visible .mtfe-pb__icon { transform: rotate(-8deg) scale(1.06); background: var(--pb-accent); color: var(--pb-ink); box-shadow: 4px 4px 0 var(--pb-ink); }
.mtfe-pb a.mtfe-pb__panel:hover .mtfe-icon__draw { stroke: var(--pb-cobalt); animation: mtfe-pb-draw 0.7s ease both; }
@keyframes mtfe-pb-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
/* idle: each tile gives a small nudge in turn */
.mtfe-pb .mtfe-pb__panel .mtfe-pb__icon { animation: mtfe-pb-nudge 6s ease-in-out infinite; }
.mtfe-pb .mtfe-pb__panel:nth-child(2) .mtfe-pb__icon { animation-delay: 1.5s; }
.mtfe-pb .mtfe-pb__panel:nth-child(3) .mtfe-pb__icon { animation-delay: 3s; }
.mtfe-pb .mtfe-pb__panel:nth-child(4) .mtfe-pb__icon { animation-delay: 4.5s; }
.mtfe-pb a.mtfe-pb__panel:hover .mtfe-pb__icon { animation: none; }
@keyframes mtfe-pb-nudge { 0%, 88%, 100% { translate: 0 0; } 92% { translate: 0 -5px; } 96% { translate: 0 1px; } }
@media (prefers-reduced-motion: reduce) {
    .mtfe-pb .mtfe-pb__icon, .mtfe-pb a.mtfe-pb__panel:hover .mtfe-icon__draw { animation: none !important; }
}
