/*
 Theme Name:   Stallion Child
 Theme URI:    http://example.com/stallion-child/
 Description:  Child theme for the Stallion theme
 Author:       Lazaro Escobar
 Template:     stallion
 Version:      1.4.0
*/

.list-centered li {
    text-align: center;
}

.home-page-button {
    background-color: white !important;
    box-shadow: #00000045 -2px 3px 7px 2px !important;
    border-radius: 12px !important;
    color: black !important;
    font-family: 'alga' !important;
    font-size: 1.3rem !important;
    text-transform: none !important;
    min-width: 300px;
    min-height: 80px;
    max-width: 300px !important;
    padding: 18px !important;
    justify-content: center;
}

.home-page-button.sc_button_size_large .sc_button_icon img {
    min-height: 2.2em;
    min-width: 2.2em;
}

.home-page-button .sc_button_text {
    text-align: left;
    display: block;
    width: min-content;
}

/* style only for tablets, excluding pc and phones */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .home-page-button {
        min-width: 220px !important;
    }
}

/* style only for phones */
@media only screen and (max-width: 767px) {
    .home-page-button {
        min-width: initial;
        display: flex !important;
        flex-direction: column;
    }

    .sc_button_icon {
        font-size: 0.35em;
        margin: 0 !important;
    }

    .home-page-button .sc_button_text {
        font-size: 0.85em;
        text-align: center;
        margin-top: 0.35em;
    }

    .legacy-obs-site .entry-content table,
    .legacy-obs-site .comment-content table {
        width: 100% !important;
    }
}

/* Home Page Sections */
.hp-b-section>.elementor-container {
    margin: 0 0 0 0 !important;
}

.home .widgets_below_content_wrap, .home .widgets_below_page_wrap {
    margin-top: 0;
}

.home .post_layout_band .post_featured.with_thumb {
    display: none !important;
}

.home .post_layout_band .post_featured+.post_content_wrap {
    -webkit-flex-basis: 100%;
    -ms-flex-basis: 100%;
    flex-basis: 100%;
}

/* Fix old theme styles */

.legacy-obs-site .entry-content td, .legacy-obs-site .comment-content td {
    border-top: 1px solid #ddd;
    padding: 6px 10px 6px 0;
    background-color: transparent !important;
}

.legacy-obs-site .entry-content table, .legacy-obs-site .comment-content table {
    border-bottom: 1px solid #ddd;
    margin: 0 0 1.57em;
    width: 100%;
}

.legacy-obs-site .entry-content h3 {
    font-weight: bold;
}

.legacy-obs-site .entry-content table,
.legacy-obs-site .comment-content table {
    border-bottom: 1px solid #ddd;
    margin: 0 0 20px;
    width: 100%;
}

.legacy-obs-site .entry-content th,
.legacy-obs-site .comment-content th {
    letter-spacing: 0.1em;
    line-height: 2.6em;
    text-transform: uppercase;
}

.legacy-obs-site .entry-content td,
.legacy-obs-site .comment-content td {
    border-top: 1px solid #ddd;
    padding: 6px 10px 6px 0;
}

.legacy-obs-site .entry-content img, .comment-content img, .widget img {
    max-width: 97.5%;
}

/* Sales Calendar */
h2.sales-calendar-month-separator {
    display: flex;
    font-weight: 400;
    margin: 0;
    box-sizing: border-box;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
}

time.sales-calendar-month-separator-text {
    font-size: 18px;
    line-height: 24px;
    font-family: alga, serif;
    color: var(--theme-color-text_dark);
    flex: none;
    order: 0;
    display: flex;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

time.sales-calendar-month-separator-text:after {
    margin-top: 10px;
    background-color: var(--theme-color-bd_color);
    content: "";
    flex: auto;
    height: 1px;
    margin-left: 20px;
}

.sales-calendar-date {
    font-size: 14px;
    line-height: 19px;
    font-weight: 400;
    margin: 0 0 8px;
    color: var(--theme-color-text_light);
}

.sales_calendar_item {
    display: flex;
    margin: 2em 0;
    flex-wrap: nowrap;
    flex-direction: column;
}

.sales_calendar_item .post_layout_excerpt {
    margin-bottom: 1.2em !important;
}

.sales_calendar_item .post_content_inner p {
    margin-bottom: 0.2em;
    font-size: initial;
}

.sales-calendar-date>time:before {
    font-family: "fontello";
    content: '\E9B7';
    display: inline-block;
    margin-right: 5px;
    color: var(--theme-color-text_link);
}

.category-slider .post-content-inner {
    font-size: medium;
}


/* ELEMENTOR WIDGET - CATEGORY SLIDER */
.category-slider {
    overflow: hidden;
}

.category-slider .p-title {
    margin-top: 1em;
}

.category-slider .link-text {
    text-indent: 0 !important;
    visibility: initial !important;
    opacity: 100 !important;
}

.category-slider .read-more-wrap {
    margin-top: 0.5em;
}

.elementor-widget-category-slider .swiper-pagination-bullets,
.elementor-widget-category-slider .swiper-pagination-custom,
.elementor-widget-category-slider .swiper-pagination-fraction {
    bottom: initial !important;
}

.elementor-widget-category-slider .swiper-wrapper {
    align-items: stretch;
}

.elementor-widget-category-slider .swiper-slide {
    height: unset !important;
}

.category-slider article {
    height: 100%;
}

.sales-calendar-slider article {
    padding: 0 1.5em 1em 1.5em;
    background: white;
}

.category-slider .slide-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.category-slider .swiper-button-next,
.category-slider .swiper-container-rtl .swiper-button-prev {
    right: -30px;
}

.category-slider .swiper-button-prev,
.category-slider .swiper-container-rtl .swiper-button-next {
    left: -30px;
}

/* Overwrite header background to add shadow */
.top_panel .sc_layouts_row[class*="scheme_"]:not(.sc_layouts_row_fixed_on):not(.sc_layouts_row_type_narrow) {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 25%, rgba(0, 0, 0, 0) 100%) !important;
}

.slider_wrap.slider_engine_revo {
    background-color: black !important;
}

@media only screen and (max-width: 767px) {

    .category-slider .swiper-button-next,
    .category-slider .swiper-container-rtl .swiper-button-prev {
        right: -6px;
    }

    .category-slider .swiper-button-prev,
    .category-slider .swiper-container-rtl .swiper-button-next {
        left: -6px;
    }
}

/* Blog & Page title style */

.post_header_wrap_style_style-1 .post_featured.post_featured_bg, .post_header_wrap_style_style-1 .post_featured.sc_parallax_wrap, .post_header_wrap_style_style-1 .post_featured {
    height: 24rem !important;
    min-height: unset !important;
}

.post_header_wrap_style_style-1 .post_header.post_header_single.entry-header {
    z-index: 8000;
}

@media (max-width: 1439px) {
    .post_header_wrap_style_style-1 .post_featured.post_featured_bg, .post_header_wrap_style_style-1 .post_featured.sc_parallax_wrap, .post_header_wrap_style_style-1 .post_featured {
        height: 23.5rem !important;
    }
}

@media (max-width: 1279px) {
    .post_header_wrap_style_style-1 .post_featured.post_featured_bg, .post_header_wrap_style_style-1 .post_featured.sc_parallax_wrap, .post_header_wrap_style_style-1 .post_featured {
        height: 22rem !important;
    }
}

@media (max-width: 1023px) {
    .post_header_wrap_style_style-1 .post_featured.post_featured_bg, .post_header_wrap_style_style-1 .post_featured.sc_parallax_wrap, .post_header_wrap_style_style-1 .post_featured {
        height: 21.5rem !important;
    }
}

@media (max-width: 587px) {
    .post_header_wrap_style_style-1 .post_featured.post_featured_bg, .post_header_wrap_style_style-1 .post_featured.sc_parallax_wrap, .post_header_wrap_style_style-1 .post_featured {
        height: 23.5rem !important;
    }
}

.header_position_over .post_header_wrap_style_style-1 .post_featured.with_thumb+.post_header, .header_position_over.single_style_style-1 .post_header_wrap_style_style-1 .post_featured.with_gallery+.post_header {
    bottom: 1.5em !important;
}

.header_position_over .post_header_wrap_style_style-1 .post_featured.with_thumb+.post_header .content_wrap {
    text-align: center;
}

/* Copy single post to page styles for banner */
.header_position_over .post_header_wrap_style_style-1 .post_featured.with_thumb+.post_header, .header_position_over.single_style_style-1 .post_header_wrap_style_style-1 .post_featured.with_gallery+.post_header {
    bottom: 1em;
}

.header_position_over .post_header_wrap_style_style-1 .post_featured.with_thumb+.post_header, .header_position_over.single_style_style-1 .post_header_wrap_style_style-1 .post_featured.with_gallery+.post_header {
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    bottom: 2em;
    top: auto;
    width: 100%;
}

.header_position_over .page_content_wrap>.content_wrap {
    padding-top: 6.5em;
}

@media (max-width: 1439px) {
    .header_position_over .page_content_wrap>.content_wrap {
        padding-top: 6em;
    }
}

@media (max-width: 1279px) {
    .header_position_over .page_content_wrap>.content_wrap {
        padding-top: 5em;
    }
}

@media (max-width: 1439px) {
    .header_position_over .post_header_wrap_style_style-1 .post_featured.with_thumb+.post_header, .header_position_over.single_style_style-1 .post_header_wrap_style_style-1 .post_featured.with_gallery+.post_header {
        bottom: 3.5em;
    }
}

@media (max-width: 1279px) {
    .header_position_over .post_header_wrap_style_style-1 .post_featured.with_thumb+.post_header, .header_position_over.single_style_style-1 .post_header_wrap_style_style-1 .post_featured.with_gallery+.post_header {
        bottom: 3em;
    }
}

/* Dark button with orange hover */
.dark-to-orange-btn:hover, .sc_button.dark-to-orange-btn.sc_button_decoration.color_style_dark:hover {
    border-color: #dba143 !important;
    background-color: #dba143 !important;
}

/* Modify excerpt layout to put img to the right in categories */
article.post_layout_excerpt .inner-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

article.post_layout_excerpt .post-header-and-content {
    margin-right: 1em;
}

article.post_layout_excerpt .post_featured {
    width: 30%;
}

/* style only for wide screens */
@media only screen and (min-width: 1200px) {
    article.post_layout_excerpt .post_featured {
        width: 20%;
    }
}

/* style only for phones */
@media only screen and (max-width: 767px) {
    article.post_layout_excerpt .inner-wrapper {
        display: flex;
        flex-direction: column;
    }

    article.post_layout_excerpt .post_featured {
        order: 1;
        width: 100%;
    }

    article.post_layout_excerpt .post-header-and-content {
        order: 2;
    }
}

.swiper-pagination {
    width: 100%;
}

.swiper-pagination-bullet {
    margin: 0 0.2em;
}

/* fix Contact Form 7 checkbox style */
.wpcf7-checkbox {
    display: block;
    margin-bottom: 2rem;
}

.wpcf7-checkbox>.first {
    margin-left: 0;
}