/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.4
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* == Base ================================================ */

html:has(.sticky-header) {
    scroll-padding-top: 10rem;
}

h1 {
    margin-top: 0.67em;
    margin-bottom: 0.67em;
}

h2 {
    margin-top: 0.83em;
    margin-bottom: 0.83em;
    
}

h3 {
    margin-top: 1em;
    margin-bottom: 1em;
}

h4 {
    margin-top: 1.33em;
    margin-bottom: 1.33em;
}

h5 {
    margin-top: 1.67em;
    margin-bottom: 1.67em;
}

h6 {
    margin-top: 2.33em;
    margin-bottom: 2.33em;
}

b,
strong {
    font-weight: 500;
}

p,
.elementor-message,
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol,
.elementor-widget-theme-post-content ol,
.elementor-widget-theme-post-content ul {
    margin-top: 1em;
    margin-bottom: 1em;
}

select {
    border-radius: 0;
}

table caption+thead tr:first-child td,
table caption+thead tr:first-child th,
table colgroup+thead tr:first-child td,
table colgroup+thead tr:first-child th,
table thead:first-child tr:first-child td,
table thead:first-child tr:first-child th {
    border-top: none;
}

html:has(.sticky-header) section {
    scroll-margin-top: -6rem;
}



/* == WP Blocks =========================================== */

.wp-block-embed {
    margin: 1.8rem 0;
}

.wp-block-table thead th {
    text-align: left;
    color: #fff;
}

.wp-block-table thead {
    border-bottom: none;
    background-color: var(--e-global-color-primary);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: var(--e-global-color-b7aefb9);
}



/* == Sticky Header ======================================= */

.site-logo img {
    transition: width 1s;
}

@media (min-width: 768px) {
    .sticky-header.elementor-sticky--effects .site-logo img {
        width: 120px !important;
    }
}



/* == Tables ============================================== */

body .tablepress {
    --head-bg-color: var(--e-global-color-primary);
    --head-text-color: #fff;
    --head-active-bg-color: var(--e-global-color-secondary);
    --head-active-text-color: #fff;
    --text-color: var(--e-global-color-text);
    --odd-bg-color: #f9f9f9;
    --hover-bg-color: #f3f3f3;
    --border-color: #ddd;
}

.tp-table-plant-list td {
    white-space: nowrap;
}



/* == Cards =============================================== */

a.loop-item-link-wrapper,
a.loop-item-link-wrapper:hover {
    text-decoration: none;
    color: inherit;
}

.card__content:after {
    content: '';
    width: 0;
    height: 5px;
    background-color: var(--e-global-color-primary);
    position: absolute;
    top: 0;
    transition: width 0.3s ease-in-out;
}

.card:hover .card__content:after {
    width: 100%;
}

.card__button {
    margin-top: auto;
}

.card__image img {
    transition: all 1500ms;
}

.card:hover .card__image img {
    transform: scale(1.2);
    filter: brightness(0.8);
}