/*
Theme Name: Edunamix Hello Elementor
Description: Child theme for the Edunamix website.
Author: EWU
Template: hello-elementor
Version: 1.0.0
Text Domain: edunamix-hello-elementor
*/

/* ==========================================================
   EDUNAMIX BLOG STYLES
========================================================== */


/* ==========================================================
   Reading time
========================================================== */

.single-post .reading-time {
    display: inline-block;
    font-size: 16px;
    line-height: 1.4;
}


/* ==========================================================
   Blog body text — Desktop and Tablet
========================================================== */

/*.single-post .elementor-widget-theme-post-content {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.16px;
}

.single-post .elementor-widget-theme-post-content p,
.single-post .elementor-widget-theme-post-content li {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.16px;
}
*/

/* ==========================================================
   Headlines — General
========================================================== */

.single-post .elementor-widget-theme-post-title .elementor-heading-title,
.single-post .elementor-widget-theme-post-content h1,
.single-post .elementor-widget-theme-post-content h2,
.single-post .elementor-widget-theme-post-content h3,
.single-post .elementor-widget-theme-post-content h4,
.single-post .elementor-widget-theme-post-content h5 {
    margin-top: 40px!important;
    margin-bottom: 16px!important;
}


/* ==========================================================
   Headlines — Desktop
========================================================== */

.single-post .elementor-widget-theme-post-title .elementor-heading-title,
.single-post .elementor-widget-theme-post-content h1 {
    font-size: 65px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.single-post .elementor-widget-theme-post-content h2 {
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -0.2px;
}

.single-post .elementor-widget-theme-post-content h3 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.single-post .elementor-widget-theme-post-content h4 {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: normal;
}

.single-post .elementor-widget-theme-post-content h5 {
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: normal;
}


/* ==========================================================
   Lists
========================================================== */

.single-post .elementor-widget-theme-post-content ul,
.single-post .elementor-widget-theme-post-content ol {
    margin-bottom: 16px;
}

.single-post .elementor-widget-theme-post-content ul li + li {
    margin-top: 8px;
}

/* 16px между пунктами нумерованного списка */
.single-post .elementor-widget-theme-post-content ol li + li {
    margin-top: 16px;
}


/* ==========================================================
   CTA block
========================================================== */

.single-post .elementor-widget-theme-post-content .cta {
    padding: 24px;
    margin-top: 2rem;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgb(204, 209, 255) 12%,
        rgba(204, 209, 255, 0.08) 100%
    );
}


/* ==========================================================
   Tablet — 768px to 1024px
========================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .single-post .elementor-widget-theme-post-title .elementor-heading-title,
    .single-post .elementor-widget-theme-post-content h1 {
        font-size: 52px!important;
        line-height: 1.12!important;
        letter-spacing: -0.4px!important;
    }

    .single-post .elementor-widget-theme-post-content h2 {
        font-size: 34px;
        line-height: 1.15;
        letter-spacing: -0.2px;
    }

    .single-post .elementor-widget-theme-post-content h3 {
        font-size: 26px;
        line-height: 1.2;
        letter-spacing: -0.3px;
    }

    .single-post .elementor-widget-theme-post-content h4 {
        font-size: 21px;
        line-height: 1.2;
        letter-spacing: normal;
    }

    .single-post .elementor-widget-theme-post-content h5 {
        font-size: 17px;
        line-height: 1.25;
        letter-spacing: normal;
    }
}


/* ==========================================================
   Mobile — up to 767px
========================================================== */

@media (max-width: 767px) {

    /*.single-post .elementor-widget-theme-post-content {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.62;
    }

    .single-post .elementor-widget-theme-post-content p,
    .single-post .elementor-widget-theme-post-content li {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.62;
    }*/

    .single-post .elementor-widget-theme-post-title .elementor-heading-title,
    .single-post .elementor-widget-theme-post-content h1 {
        font-size: 40px;
        line-height: 1.15;
        letter-spacing: -0.3px;
    }

    .single-post .elementor-widget-theme-post-content h2 {
        font-size: 30px;
        line-height: 1.18;
        letter-spacing: -0.2px;
    }

    .single-post .elementor-widget-theme-post-content h3 {
        font-size: 24px;
        line-height: 1.22;
        letter-spacing: -0.2px;
    }

    .single-post .elementor-widget-theme-post-content h4 {
        font-size: 20px;
        line-height: 1.22;
        letter-spacing: normal;
    }

    .single-post .elementor-widget-theme-post-content h5 {
        font-size: 16px;
        line-height: 1.28;
        letter-spacing: normal;
    }
    
 /*   .single-post .elementor-widget-theme-post-content ul,
    .single-post .elementor-widget-theme-post-content ol {
        padding-inline-start: 20px!important;
    }*/
}

.elementor-toc__list-item a{
    font-size: 16px!important;
}

/* ==========================================================
   Gutenberg tables in blog posts
========================================================== */

.single-post .elementor-widget-theme-post-content .wp-block-table {
    display: block;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    background: transparent;

    -webkit-overflow-scrolling: touch;
}

.single-post .elementor-widget-theme-post-content .wp-block-table table {
    margin: 0;

    border: 1px solid #021bf9;
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;

    background: inherit;
    overflow: hidden;
}

.single-post .elementor-widget-theme-post-content .wp-block-table th,
.single-post .elementor-widget-theme-post-content .wp-block-table td {
    border: 0;
    border-right: 1px solid #021bf9;
    border-bottom: 1px solid #021bf9;

    color: inherit;
    background: inherit;

    text-align: left;
    vertical-align: top;
}

/* Remove the right border from the last column */
.single-post .elementor-widget-theme-post-content .wp-block-table tr > *:last-child {
    border-right: 0;
}

/* Remove the bottom border from the last row */
.single-post .elementor-widget-theme-post-content .wp-block-table tr:last-child > * {
    border-bottom: 0;
}

/* Remove striped backgrounds */
.single-post .elementor-widget-theme-post-content .wp-block-table.is-style-stripes,
.single-post .elementor-widget-theme-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.single-post .elementor-widget-theme-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(even),
.single-post .elementor-widget-theme-post-content .wp-block-table tbody tr:nth-child(odd),
.single-post .elementor-widget-theme-post-content .wp-block-table tbody tr:nth-child(even) {
    background: inherit;
}

/* Disable hover background changes */
.single-post .elementor-widget-theme-post-content .wp-block-table tbody tr:hover,
.single-post .elementor-widget-theme-post-content .wp-block-table tbody tr:hover th,
.single-post .elementor-widget-theme-post-content .wp-block-table tbody tr:hover td {
    background: inherit;
}

/* Disable shadows and transitions */
.single-post .elementor-widget-theme-post-content .wp-block-table table,
.single-post .elementor-widget-theme-post-content .wp-block-table tr,
.single-post .elementor-widget-theme-post-content .wp-block-table th,
.single-post .elementor-widget-theme-post-content .wp-block-table td {
    box-shadow: none;
    transition: none;
}

.single-post .elementor-widget-theme-post-content .wp-block-table thead th {
    background-color: #CCD1FF;
}


/* ==========================================================
   Desktop tables — from 1170px
========================================================== */

@media (min-width: 1170px) {

    .single-post
    .elementor-widget-theme-post-content
    .wp-block-group.alignwide {
        width: calc(100% + 200px);
        max-width: calc(100% + 200px);

        margin-left: -100px;
        margin-right: -100px;
        margin-inline: -100px;
    }

    .single-post
    .elementor-widget-theme-post-content
    .wp-block-group.alignwide
    > .wp-block-table {
        width: 100%;
        max-width: 100%;
    }

    .single-post
    .elementor-widget-theme-post-content
    .wp-block-group.alignwide
    > .wp-block-table
    table {
        width: 100%;
        max-width: 100%;
    }
}


/* ==========================================================
   Tablet and mobile tables — up to 1169px
========================================================== */

@media (max-width: 1169px) {

    .single-post
    .elementor-widget-theme-post-content
    .wp-block-group.alignwide {
        width: 100% !important;
        max-width: 100% !important;

        margin-inline: 0 !important;
    }

    .single-post
    .elementor-widget-theme-post-content
    .wp-block-group.alignwide
    > .wp-block-table {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;
    }

    .single-post
    .elementor-widget-theme-post-content
    .wp-block-group.alignwide
    > .wp-block-table
    table {
        width: 900px !important;
        min-width: 900px !important;
        max-width: none !important;
    }
}

/* Hide on desktop */
.hidden-pc {
    display: none;
}

/* Show on tablet and mobile */
@media (max-width: 1169px) {
    .hidden-pc {
        display: block;
    }
}