.mt4i-page {
    --mt4i-dark: #292c49;
    --mt4i-muted: #a5a7b2;
    --mt4i-red: #ff4521;
    background: #fff;
    color: #3a3e52;
    font-family: Arial, Helvetica, sans-serif;
}

/* Layered motion for the MT4 indicators page. */
.mt4i-hero .mt4i-container.aos-animate > *,
.mt4i-card.aos-animate > * {
    animation: mt4iItemReveal .54s ease-out both;
}

.mt4i-hero .mt4i-container.aos-animate > h2 { animation-delay: .12s; }
.mt4i-hero .mt4i-container.aos-animate > p { animation-delay: .22s; }
.mt4i-card.aos-animate > img { animation-delay: .12s; }
.mt4i-card.aos-animate > p { animation-delay: .22s; }
.mt4i-card.aos-animate > a { animation-delay: .32s; }

.mt4i-card[data-aos] {
    transition-property: transform, opacity, box-shadow;
}

.mt4i-card[data-aos].aos-animate:hover {
    box-shadow: 0 14px 32px rgba(49, 97, 227, .18);
    transform: translateY(-5px);
}

@keyframes mt4iItemReveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .mt4i-page [data-aos],
    .mt4i-page [data-aos] * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.mt4i-container {
    margin: 0 auto;
    width: min(1000px, calc(100% - 40px));
}

.mt4i-breadcrumb-wrap {
    background: #f2f2f2;
}

.mt4i-breadcrumb {
    align-items: center;
    color: #9da0ad;
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 8px;
    min-height: 26px;
}

.mt4i-breadcrumb a {
    color: #1884d2;
    text-decoration: none;
}

.mt4i-hero {
    padding: 34px 0 40px;
}

.mt4i-hero h1 {
    color: var(--mt4i-dark);
    font-size: 44px;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 14px;
}

.mt4i-hero h2 {
    color: #92949e;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 34px;
}

.mt4i-hero p {
    color: var(--mt4i-muted);
    font-size: 17px;
    line-height: 1.45;
    margin: 0;
}

.mt4i-hero strong {
    color: #858894;
    font-weight: 700;
}

.mt4i-grid {
    display: grid;
    gap: 36px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 112px;
}

.mt4i-card {
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    box-shadow: 0 2px 9px rgba(14, 23, 38, .22);
    display: flex;
    flex-direction: column;
    min-height: 450px;
    overflow: hidden;
    padding: 0 10px 24px;
}

.mt4i-card h3 {
    color: #3a4052;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.18;
    margin: 20px 0 16px;
}

.mt4i-card img {
    background: #02070b;
    height: 180px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.mt4i-card:nth-child(2n) img {
    object-position: right center;
}

.mt4i-card:nth-child(3n) img {
    object-position: left center;
}

.mt4i-card p {
    color: #6f7280;
    font-size: 14px;
    line-height: 1.35;
    margin: 24px 0 34px;
}

.mt4i-card strong {
    color: #505462;
    font-weight: 700;
}

.mt4i-card a {
    align-items: center;
    background: var(--mt4i-red);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    margin-top: auto;
    min-height: 38px;
    text-decoration: none;
    width: 112px;
}

.mt4i-card a:hover {
    background: #244dbd;
    color: #fff;
}

.mt4i-social {
    align-items: center;
    background: #101722;
    display: flex;
    gap: 34px;
    justify-content: center;
    min-height: 76px;
}

.mt4i-social a {
    align-items: center;
    background: #2f5fba;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 18px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    text-decoration: none;
    width: 34px;
}

.mt4i-social a:nth-child(2) { background: #40a9e9; }
.mt4i-social a:nth-child(3) { background: #1378a8; font-size: 14px; }
.mt4i-social a:nth-child(4) { background: linear-gradient(135deg, #633cce, #ff3f73, #ffb02e); }
.mt4i-social a:nth-child(5) { background: #e21d1d; font-size: 13px; }
.mt4i-social a:nth-child(6) { background: #2ca7dd; font-size: 16px; }

@media (max-width: 760px) {
    .mt4i-container {
        width: min(100% - 28px, 1000px);
    }

    .mt4i-hero h1 {
        font-size: 34px;
    }

    .mt4i-hero h2 {
        font-size: 22px;
    }

    .mt4i-grid {
        grid-template-columns: 1fr;
        padding-bottom: 70px;
    }

    .mt4i-card {
        min-height: 0;
    }

    .mt4i-social {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    body:has(.mt4i-page) .site-breadcrumb { margin-top: 90px; }
    .mt4i-page { max-width: 100%; overflow-x: hidden; }
    .mt4i-container { width: calc(100% - 26px); max-width: 100%; }
    .mt4i-hero { padding-top: 42px; padding-bottom: 42px; text-align: left; }
    .mt4i-hero h1 { font-size: 31px; line-height: 1.2; overflow-wrap: anywhere; }
    .mt4i-hero h2 { font-size: 21px; line-height: 1.35; }
    .mt4i-hero p { font-size: 15px; line-height: 1.7; }
    .mt4i-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 30px; padding-bottom: 42px; }
    .mt4i-card { min-width: 0; min-height: 0; height: auto; padding-bottom: 20px; }
    .mt4i-card img { max-width: 100%; height: auto; }
    .mt4i-card p { margin: 18px 0 22px; line-height: 1.65; }
    .mt4i-card a { min-height: 44px; }
    .mt4i-page table { display: block; width: 100% !important; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .mt4i-page h1, .mt4i-page h2, .mt4i-page h3, .mt4i-page p, .mt4i-page li { overflow-wrap: anywhere; }
}
