@import url('https://fonts.cdnfonts.com/css/proxima-nova');
@import "assets/styles/news-card.css";

.opacity-1 {
    opacity: 1 !important;
}

.content {
    font-family: "Proxima-Nova", sans-serif;
}

.services-wrapper {
    background: var(--home-background);
    padding: 32px;
}

.services {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 50px 30px;
    grid-template-areas:
    "historical-options-data historical-options-data historical-options-data historical-options-data historical-options-data historical-options-data"
    "options-api options-api ai-assistant ai-assistant vs-code vs-code"
    "reconciliation reconciliation reconciliation analytics analytics analytics"
    "fixed-income fixed-income fixed-income mbs mbs mbs";
}

.service-card-main {
    display: flex;
    gap: 30px;
    padding: 8px;
    background: var(--white);
    border-radius: 32px;
}

.service-card-main .info {
    flex: 1 1 calc(50% - 15px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 16px 24px;
}

.service-card-main .info .title {
    color: var(--dark-100);
    font-size: 48px;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.service-card-main .info .description {
    max-width: 450px;
    color: var(--dark-60);
    line-height: 140%;
}

.service-card-main .image-wrapper {
    flex: 1 1 calc(50% - 15px);
    border-radius: 24px;
    overflow: hidden;
}

.service-card-main .image-wrapper .image {
    display: inline-block;
    width: 100%;
    height: 100%;
    background-image: url("./assets/images/main-card-bg.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transition: transform 0.5s ease;
}

.service-card-main:hover .image-wrapper .image {
    transform: scale(1.75);
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    border-radius: 24px;
    padding: 16px 24px;
    transition: background 0.5s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    border-radius: 24px;
}

.service-card:hover::after {
    opacity: 1;
    border-radius: 24px;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.intro-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intro-wrapper .description {
    line-height: 140%;
}

.service-card .intro-wrapper .title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 34px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.service-card.ai-assistant .intro-wrapper .title-wrapper, .service-card.analytics .intro-wrapper .title-wrapper {
    color: var(--dark-100);
}

.service-card .intro-wrapper .title-wrapper .badge {
    height: fit-content;
    font-size: 16px;
    padding: 2px 8px;
    background-color: var(--white);
    border-radius: 24px;
}

.service-card .light-button, .service-card .dark-button, .service-card-main .info .dark-button {
    width: fit-content;
    display: inline-flex;
    gap: 8px;
    font-size: 15px;
    padding: 8px;
    border-radius: 32px;
}

.service-card .light-button .icon, .service-card .dark-button .icon, .service-card-main .info .dark-button .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    transform: rotate(315deg);
}

.service-card .light-button .icon {
    background: url("./assets/icons/arrow_small_right_black.svg") no-repeat center center / cover;
}

.service-card .dark-button .icon, .service-card-main .info .dark-button .icon {
    background: url("./assets/icons/arrow_right_small.svg") no-repeat center center / cover;
}

.historical-options-data {
    grid-area: historical-options-data;
}

.options-api {
    grid-area: options-api;
    background: linear-gradient(122deg, #5886F5 0%, #5886F5 100%);
    color: var(--white);
}

.options-api::after {
    background: linear-gradient(122deg, #5886F5 0%, #EE79F9 100%);
}


.ai-assistant {
    grid-area: ai-assistant;
    color: var(--dark-80);
    background-color: #FFB333;
}

.ai-assistant::after {
    background: linear-gradient(122deg, #FFB333 0%, #EE79F9 100%);
}

.reconciliation {
    grid-area: reconciliation;
    color: var(--white);
    background-color: var(--green);
}

.reconciliation::after {
    background: linear-gradient(122deg, #6CBF9C 0%, #AD2C2C 100%);
}

.vs-code {
    grid-area: vs-code;
    color: var(--white);
    background: #9633EC;
}

.vs-code::after {
    background: linear-gradient(122deg, #9633EC 0%, #79F9D5 100%);
}

.analytics {
    grid-area: analytics;
    color: var(--dark-80);
    background: #33F1FF;
}

.analytics::after {
    background: linear-gradient(122deg, #33F1FF 0%, #F9E33F 100%);
}
.fixed-income {
    grid-area: fixed-income;
    color: var(--white);
    background: #B7537E;
}

.fixed-income::after {
    background: linear-gradient(122deg, #B7537E 0%, #F9E33F 100%);
}

.mbs {
    grid-area: mbs;
    color: var(--white);
    background: #C77C32;
}

.mbs::after {
    background: linear-gradient(122deg, #C77C32 0%, #F93FC1 100%);
}

.most-active-stocks-widget {
    width: 100%;
    margin: 50px 0;
}

.most-active-stocks-widget iframe {
    width: 100%;
    height: 83px;
    cursor: pointer;
}

.price-volatility-widget {
    width: 100%;
}

.price-volatility-widget iframe {
    width: 100%;
    min-height: 700px;
}

.feedbacks {
    font-family: "Proxima Nova", sans-serif;
    margin: 50px 0;
    display: flex;
}

.feedbacks-title-wrapper {
    flex: 1 1 40%;
}

.feedbacks-title-wrapper .section-title {
    max-width: 250px;
}

.feedbacks-content-wrapper {
    flex: 1 1 60%;

    position: relative;
    width: 100%;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feedbacks-list {
    position: relative;
    width: 100%;
    min-height: 250px;
}

.feedback {
    position: absolute;
    top: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    gap: 24px;

    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.feedback.active {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.feedback-content {
    color: var(--dark-80);
    line-height: 140%;
}

.feedback-author {
    display: flex;
    flex-direction: column;
}

.feedback-author-name {
    color: var(--dark-100);
    font-weight: 700;
    line-height: 140%;
}

.feedback-author-position {
    color: var(--dark-60);
    font-size: 12px;
    line-height: normal;
}

.feedback-content-switcher {
    display: flex;
    gap: 4px;
}

.feedback-content-switcher-button {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-20);

    cursor: pointer;
    transition: background-color 0.3s ease;
}

.feedback-content-switcher-button.active {
    background: var(--green);
}

@media screen and (max-width: 1439px) {
    .app-wrapper {
        padding: 0 40px;
    }
}

@media screen and (max-width: 1024px) {
    .price-volatility-widget {
        flex-direction: column;
    }
}

@media screen and (max-width: 960px) {
    .services-wrapper {
        padding: 24px 0;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, auto);
        gap: 24px 16px;
        grid-template-areas:
    "historical-options-data historical-options-data"
    "options-api ai-assistant"
    "vs-code reconciliation"
    "analytics analytics"
    "fixed-income fixed-income"
    "mbs mbs";
    }

    .services .service {
        align-self: start;
    }

    .service-card {
        padding: 16px;
    }

    .service-card .intro-wrapper .title-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .feedbacks {
        flex-direction: column;
        gap: 24px;
    }

    .feedbacks-title-wrapper .section-title {
        max-width: 100%;
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .app-wrapper {
        padding: 0;
    }

    .price-volatility-widget {
        margin-bottom: 50px;
    }
}

@media screen and (max-width: 590px) {
    .services-wrapper {
        padding: 16px 0;
    }

    .services {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, auto);
        gap: 16px;
        grid-template-areas:
    "historical-options-data"
    "options-api"
    "ai-assistant"
    "vs-code"
    "reconciliation"
    "analytics"
    "fixed-income"
    "mbs";
    }

    .service-card-main {
        border-radius: 16px;
    }

    .service-card {
        gap: 16px;
        padding: 8px;
        border-radius: 16px;
    }

    .service-card::after {
        border-radius: 16px;
    }

    .service-card:hover::after {
        border-radius: 16px;
    }

    .service-card-main .info {
        padding: 0;
        gap: 16px;
    }
    .service-card .intro-wrapper .title-wrapper {
        flex-direction: row;
    }


    .service-card-main .info .title, .service-card .intro-wrapper .title-wrapper .title {
        font-size: 20px;
    }

    .service-card-main .info .description, .service-card .intro-wrapper .description  {
        display: none;
    }

    .feedbacks-title-wrapper .section-title {
        max-width: 100%;
        font-size: 24px;
    }

    .feedbacks-list {
        min-height: 400px;
    }
}
