.indices-market-overview {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.indices-market-overview .text-container {
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--color-light-gray-11);
}

.indices-market-overview .text-container p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-style: normal;
    font-weight: var(--font-weight-regular);
    line-height: 18px;
}

.indices-market-overview .indices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.indices-market-overview .indices-card {
    width: 100%;
    height: 100%;
    padding: 15px;
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: var(--primary-boxshadow);
}

.indices-market-overview .indices-card p {
    margin: 0;
}

.indices-market-overview .marketoverview-indices {
    width: 100%;
}

.indices-market-overview .indices-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.indices-market-overview .indices-header div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.indices-market-overview .value-change {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.indices-market-overview .value-change p {
    color: var(--color-text-secondary);
    font-size: 12px;
    font-style: normal;
    font-weight: var(--font-weight-regular);
    line-height: normal;
}

.indices-market-overview .price-main {
    display: flex;
    justify-content: space-between;
}

.indices-market-overview .price-main .price {
    display: flex;
    gap: 8px;
    align-items: center;
}

.indices-market-overview .price-main .price,
.indices-market-overview .price-main .change-value {
    color: var(--color-text-primary);
    font-size: 16px;
    font-style: normal;
    font-weight: var(--font-weight-semibold);
    line-height: normal;
}

.indices-market-overview .price-main .percentage-change {
    font-size: 16px;
    font-style: normal;
    font-weight: var(--font-weight-semibold);
    line-height: 18px;
}

.indices-market-overview .price-main .change-value.redcolor,
.indices-market-overview .price-main .percentage-change.redcolor {
    color: var(--color-error);
}

.indices-market-overview .price-main .change-value.greencolor,
.indices-market-overview .price-main .percentage-change.greencolor {
    color: var(--color-success);
}

.indices-market-overview .indices-coname {
    color: var(--color-text-primary);
    font-size: 16px;
    font-style: normal;
    font-weight: var(--font-weight-semibold);
    line-height: 30px;
}

.indices-market-overview .indices-symbol {
    width: fit-content;
    padding: 6px 8px;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--color-light-gray-2);
    color: #727d8d;
    font-size: 12px;
    font-weight: 400;
    line-height: 10px;
}

.indices-market-overview .indices-date {
    color: var(--color-text-secondary);
    font-size: 12px;
    font-style: normal;
    font-weight: var(--font-weight-regular);
    line-height: 18px;
}

.indices-market-overview .toggle-btn-container {
    display: flex;
    justify-content: center;
}

.indices-market-overview .view-all-toggle-btn {
    background-color: var(--color-primary);
    font-size: 12px;
    color: var(--btn-primary-color);
    line-height: 14px;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 16px 40px 0 rgb(112 144 176 / 30%);
    font-weight: 600;
}

.indices-market-overview .view-all-toggle-btn:hover {
    box-shadow: none;
    text-decoration: none;
}

.indices-market-overview .view-all-toggle-btn::after {
    content: "";
    display: inline-block;
    position: absolute;
    right: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    background-image: url("../../icons/arrow-right.svg");
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
}

@media (width <=768px) {
    .indices-market-overview {
        margin-top: 16px;
        gap: 0;
    }

    .indices-market-overview .local-indices,
    .indices-market-overview .global-indices {
        margin-top: 24px;
        margin-bottom: 16px;
        min-height: 60vh;
    }

    .indices-market-overview .indices {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .indices-market-overview .indices-header {
        align-items: flex-start;
    }

    .indices-market-overview .text-container {
        padding: 8px 16px;
    }

    .indices-market-overview .indices-card {
        padding: 16px;
    }

    .indices-market-overview .indices-coname {
        font-size: 16px;
        line-height: 18px;
    }

    .indices-market-overview .indices-date {
        font-size: 12px;
        line-height: normal;
    }

    .indices-market-overview .price-main .price,
    .indices-market-overview .price-main .change-value {
        font-size: 16px;
        line-height: normal;
    }

    .indices-market-overview .price-main .percentage-change {
        font-size: 14px;
    }
}

.indices-market-overview .view-all-toggle-btn.view-less::after{
    transform: translateY(-50%) rotate(180deg);
}