/* By Viktor Yankovskyi */

@media screen and (min-width: 1024px) and (max-height: 899px) {
    body:has(.header-ads-line) .hero-images-wrap {
        height: 340px;
    }
}

@media screen and (min-width: 1024px) and (max-height: 899px) {
    body:has(.header-ads-line) .hero-tooltip-3-content-item:not(:last-child) {
        margin-bottom: 8px;
    }

    body:has(.header-ads-line) .hero-tooltip-3 {
        padding: 20px 12px 12px 12px;
        width: 300px;
        left: 150px;
        bottom: 50px;
    }

    body:has(.header-ads-line) .hero-tooltip-2-content p,
    body:has(.header-ads-line) .hero-tooltip-3-content-item__text {
        font-size: 14px;
    }

    body:has(.header-ads-line) .hero-tooltip-2 {
        top: 124px;
        right: 116px;
    }

    body:has(.header-ads-line) .hero-tooltip-1 {
        padding: 12px 16px 0px 16px;
        width: 220px;
        right: 150px;
        top: -15px;
    }

    body:has(.header-ads-line) .profit-percent__title {
        font-size: 12px;
        line-height: 110%;
    }

    body:has(.header-ads-line) .profit-percent__value {
        font-size: 24px;
    }

    body:has(.header-ads-line) .profit-percent-wrap {
        width: 50px;
        height: 50px;
    }

    body:has(.header-ads-line) .profit-percent-wrap__percent {
        font-size: 14px;
    }

    body:has(.header-ads-line) .hero-tooltip-1__content {
        gap: 16px;
    }

    body:has(.header-ads-line) .hero-chart {
        height: 55px;
    }

    body:has(.header-ads-line) .hero-chart img,
    body:has(.header-ads-line) .hero-chart svg {
        height: 45px;
    }
}

@media screen and (min-width: 1201px) and (max-height: 899px) {
    body:has(.header-ads-line) .hero-tooltip-3 {
        bottom: 45px;
        left: 285px;
    }

    body:has(.header-ads-line) .hero-tooltip-2 {
        top: 112px;
        right: 186px;
    }

    body:has(.header-ads-line) .hero-tooltip-1 {
        right: 157px;
        top: -15px;
    }
}

@media screen and (max-width: 1600px) {
    .hero-chart svg {
        width: 100%;
        height: 60px;
    }
}

@media screen and (max-width: 1200px) {
    .blog-listing-post {
        width: calc(50% - 10px);
    }

    .featured-section-grid {
        height: 410px;
    }

    .featured-section-grid .secondary-article-title {
        font-size: 16px;
        line-height: 24px;
    }

    .featured-section-grid .secondary-article-overlay {
        padding: 15px 10px;
    }

    .blog-layout {
        gap: 40px;
    }

    .hero-chart svg {
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .table-of-contents-wrapper {
        position: static;
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .table-of-contents {
        max-width: 100%;
    }

    .toc-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .toc-item {
        margin-bottom: 0;
    }

    .toc-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    .blog-layout {
        flex-direction: column;
        gap: 30px;
    }

    .blog-main-content {
        width: 100%;
    }

    .blog-single-content {
        max-width: 100%;
    }

    .wp-block-table table td p {
        font-size: 14px;
        line-height: 22px;
    }

    .wp-block-table table td {
        padding: 15px 20px;
    }

    .table-wrapper {
        border-radius: 12px;
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wp-block-table table th,
    .wp-block-table table td {
        padding: 12px 15px;
        font-size: 14px;
    }

    .table-caption {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 768px) {
    .hero .animated-image-wrapper {
        padding-bottom: 63%;
    }

    .hero .animated-image-wrapper .technology-animation {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .featured-section-grid {
        height: auto;
        gap: 30px;
    }

    .featured-section-grid .featured-article {
        width: 100%;
    }

    .featured-section-grid .featured-article-overlay {
        padding: 20px 0 0;
    }

    .featured-section-grid .featured-article-title,
    .featured-section-grid .secondary-article-title {
        font-weight: 400;
        font-size: 18px;
        line-height: 22px;
    }

    .featured-section-grid .secondary-articles {
        width: 100%;
        gap: 50px;
    }

    .blog-hero {
        padding-bottom: 20px;
        border-end-end-radius: 40px;
        border-end-start-radius: 40px;
    }

    .blog-hero-title {
        font-size: 28px;
        line-height: 100%;
    }

    .blog-listing-posts {
        gap: 50px;
    }

    .blog-listing-post {
        width: 100%;
    }

    #page {
        border-radius: 0px 0px 40px 40px;
    }

    .table-of-contents {
        padding: 16px;
    }

    .toc-list {
        flex-direction: column;
    }

    .toc-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .blog-content-wrapper {
        padding: 20px 0 100px;
    }

    .blog-single-content {
        padding-bottom: 0;
    }

    .blog-layout {
        gap: 20px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-meta {
        flex-wrap: wrap;
    }

    .blog-hero-subtitle {
        font-weight: 400;
    }

    .blog-hero-title {
        font-size: 40px;
    }

    .featured-article img,
    .secondary-article img {
        height: auto;
    }
    .author-name {
        margin-bottom: 0;
    }
    .blog-listing-post-meta {
        padding-right: 0;
    }

    .hero-chart svg {
        display: none;
    }
    .hero-chart svg.hero-chart-mobile {
        display: block;
    }
}

@media screen and (max-width: 650px) {
    body:has(.header-ads-line) .hero {
        padding-top: 180px;
    }

    .single-post blockquote {
        padding-top: 60px;
        padding-left: 0;
        align-items: center;
        justify-content: center;
    }

    .single-post blockquote p,
    .single-post blockquote cite {
        text-align: center;
    }

    .single-post blockquote:before {
        left: 50%;
        transform: translateX(-50%);
    }
}
