/* MT - Collaboration Grid */
.mtfe-cg {
    --cg-ink: #0A1435;
    --cg-cobalt: #1238C4;
    --cg-accent: #FF5A4A;
    --cg-pink: #E3E9FA;
    --cg-muted: #4A5578;
    --cg-mono: "Red Hat Text", system-ui, sans-serif;
    color: var(--cg-ink);
}
.mtfe-cg .mtfe-cg__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 60px; align-items: end; margin-bottom: 44px; }
.mtfe-cg .mtfe-cg__kicker { margin: 0 0 14px; font-family: var(--cg-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
body .elementor .mtfe-cg .mtfe-cg__title {
    margin: 0;
    color: var(--cg-ink);
    font-family: "Red Hat Display", "Red Hat Text", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 3.8vw, 58px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.03em;
}
body .elementor .mtfe-cg h2 span,
body .elementor .mtfe-cg h3 span { color: inherit; font-size: inherit !important; line-height: inherit !important; }
.mtfe-cg .mtfe-cg__intro { margin: 0; color: var(--cg-muted); font-size: 17px; line-height: 1.6; }

.mtfe-cg .mtfe-cg__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--cg-ink);
    border-left: 1px solid var(--cg-ink);
}
.mtfe-cg .mtfe-cg__stage { display: flex; flex-direction: column; margin: 0; border-right: 1px solid var(--cg-ink); border-bottom: 1px solid var(--cg-ink); background: transparent; transition: background-color 0.3s ease; }
.mtfe-cg .mtfe-cg__stage:hover { background: #FFFFFF; }
.mtfe-cg .mtfe-cg__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--cg-ink); }
.mtfe-cg .mtfe-cg__img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease; }
.mtfe-cg .mtfe-cg__stage:hover .mtfe-cg__img { transform: scale(1.06); filter: none; }
.mtfe-cg .mtfe-cg__num {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 8px;
    border: 1px solid var(--cg-ink);
    background: #FFFFFF;
    color: var(--cg-ink);
    box-shadow: 0 10px 24px -3px rgba(10, 20, 53, 0.18), 0 2px 6px rgba(18, 56, 196, 0.08);
    font-family: "Red Hat Display", "Red Hat Text", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: background-color 0.3s ease, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.mtfe-cg .mtfe-cg__stage:hover .mtfe-cg__num { background: var(--cg-accent); transform: rotate(-8deg); }
.mtfe-cg .mtfe-cg__stage:nth-child(2):hover .mtfe-cg__num { background: var(--cg-pink); }
.mtfe-cg .mtfe-cg__body { padding: 22px 22px 26px; }
body .elementor .mtfe-cg .mtfe-cg__name {
    margin: 0;
    color: var(--cg-ink);
    font-family: "Red Hat Display", "Red Hat Text", sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 2.2vw, 32px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em;
}
.mtfe-cg .mtfe-cg__time { display: inline-block; margin: 10px 0 0; padding: 4px 8px 3px; background: var(--cg-ink); color: var(--cg-accent); font-family: var(--cg-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.mtfe-cg .mtfe-cg__text { margin: 14px 0 0; color: var(--cg-muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 1024px) {
    .mtfe-cg .mtfe-cg__head { grid-template-columns: minmax(0, 1fr); }
    .mtfe-cg .mtfe-cg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .mtfe-cg .mtfe-cg__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- rounded cards (v1.1): the theme rounds every photo, so the stages become rounded cards with gaps
   instead of a square ruled grid; the photo takes the card's top corners ---- */
.mtfe-cg .mtfe-cg__grid { gap: 18px; border: 0; }
.mtfe-cg .mtfe-cg__stage {
    overflow: hidden;
    border: 1px solid #DDE2EA;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 24px 48px -40px rgba(10, 20, 53, 0.45);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.mtfe-cg .mtfe-cg__stage:hover { transform: translateY(-6px); border-color: #CFC4FF; box-shadow: 0 30px 56px -36px rgba(18, 56, 196, 0.45); }
body .mtfe-cg .mtfe-cg__photo { border-bottom: 0; border-radius: 0 !important; }
.mtfe-cg .mtfe-cg__num { border-radius: 14px; border-color: transparent; }
.mtfe-cg .mtfe-cg__time { border-radius: 999px; }
@media (max-width: 1024px) { .mtfe-cg .mtfe-cg__grid { gap: 14px; } }

/* day pills: royal on a light royal tint for contrast (was coral on navy) */
.mtfe-cg .mtfe-cg__time { padding: 6px 11px 5px; background: #E8EDFB; color: #1238C4; font-size: 11px; font-weight: 700; }
