/*
 Theme Name:   Megastrap Child
 Author:       Constantine
 Template:     megastrap
 Version: 1.3.3
 Requires PHP: 7.4
 Text Domain: megastrap
*/

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
}

html {
    scroll-behavior: auto!important;
}

.section-padding {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

h1.entry-title {
    text-align: center;
}

figure.wp-block-image img {
	border-radius: 1rem;
}
figure.wp-block-image img {
	border-radius: 1rem;
	margin: 0;
}
.wp-block-gallery {
    --wp--style--gallery-gap-default: 1rem;
}
figcaption.wp-element-caption {
    font-size: 0.875rem;
}

.legacy-post article>embed,
.legacy-post article>object,
.legacy-post p>embed,
.legacy-post p>object,
.legacy-post a[href*="home-designing.com"]>img {
    display: block;
    margin-top: 1rem;
	margin-bottom: 1rem;
}
.legacy-post p>font {
	font-size: inherit;
}
.legacy-post a[data-pgc-sgb-id]>img {
	/*min-width: 70%;
	max-width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;*/
	border-radius: 1rem;
}

body.page #site-content,
body.home.blog #site-content {
    background-color: #efefef;
    background-image: url(../svg/blue_circle.svg), url(../svg/rose_circle.svg), url(../svg/blue_circle.svg), url(../svg/rose_circle.svg);
    background-position: left -20rem top -20rem, right -20rem top 10rem, left -20rem top 80rem, right -20rem top 100rem;
    background-size: 40rem auto, 40rem auto, 40rem auto, 40rem auto;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

.bg-corners {
    background-color: #efefef;
    background-image: url(../svg/blue_circle.svg), url(../svg/rose_circle.svg);
    background-position: left -20rem top -20rem, right -20rem top 10rem;
    background-size: 40rem auto, 40rem auto;
    background-repeat: no-repeat, no-repeat;
}
.posts-image {
    background-color: #efefef;
}
.posts-image.blog-placeholder {
    background-color: #efefef;
    background-image: url(../svg/blue_circle.svg), url(../svg/rose_circle.svg);
    background-position: right -20rem top -20rem, left -20rem top 10rem;
    background-size: 40rem auto, 40rem auto;
    background-repeat: no-repeat, no-repeat;
}


@media (max-width: 767px) {
    .flex-even-md {
        flex: 1;
        gap: 0.5rem;
        align-self: stretch;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .flex-even-md svg {
        flex-grow: 0;
        flex-shrink: 0;
        width: 1.1rem;
        height: 1.1rem;
    }
    .flex-even-md span {
        flex-grow: 0;
    }
}

body #site-footer .shortcode-menu-wrapper li>a {
    color: var(--bs-primary);
    font-weight: bold;
}

#site-footer {
    position: relative;
}
#site-footer:before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: url(../svg/mail.svg) left top / 10rem auto no-repeat, linear-gradient(90deg, rgba(81, 179, 236, 1) 0%, rgba(208, 65, 121, 1) 100%);
}

#site-footer a.nav-link:not(.btn) {
    color: var(--bs-primary);
    font-weight: bolder;
}

/* ---------------------------------------- */
/*                Navbar style              */
/* ---------------------------------------- */


@media (min-width: 992px) {
    .c-main-navbar .menu-item>a.nav-link {
        padding: 1.25rem 1.5rem;
        position: relative;
    }
    .c-main-navbar .menu-item>a.nav-link.active:after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background-color: var(--bs-primary);
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
}

/* ---------------------------------------- */
/*              Main Hero style             */
/* ---------------------------------------- */

.main-hero {
    min-height: 32.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    background-image: url(../webp/hero-left.webp), url(../webp/hero-right.webp);
    background-position: left -30% top -10%, right -30% bottom;
    background-size: 75% auto, 75% auto;
    background-repeat: no-repeat, no-repeat;
    padding-top: 10rem;
    padding-bottom: 10rem;
}
@media (min-width: 576px) {
    .main-hero {
        min-height: 30rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        background-image: url(../webp/full-hero.webp);
        background-position: center center;
        background-size: auto 20rem;
        background-repeat: no-repeat;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}
@media (min-width: 1400px) {
    .main-hero {
        background-size: auto 25rem;
    }
}
.hero-lead-text {
    /*font-size: 3rem;*/
    text-align: center;
    max-width: 600px;
    margin: 1.5rem auto;
    color: #fffdfc;
    text-shadow: 0 0 30px black;
}
.hero-banner-wrapper {
    margin-left: auto;
    margin-right: auto;
}
.hero-icons-wrapper {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 0.75rem;
}
.home .hero-icons-wrapper {
    max-width: 600px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}
.hero-icons-wrapper .c-social-icon {
    color: var(--bs-primary);
    background-color: white;
    border-radius: 5rem;
    border: 1px solid var(--bs-gray-300);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 0.5rem;
}

@media (min-width: 576px) {
    .hero-lead-text {
        font-size: 3rem;
        text-align: center;
        max-width: 600px;
        margin: 2rem auto;
    }
}
@media (min-width: 1400px) {
    .hero-lead-text {
        font-size: 3.5rem;
        text-align: center;
        max-width: 700px;
        margin: 2rem auto;
    }
}

.main-hero-2-content {
    position: relative;
    min-height: 35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.main-hero-2 {
    position: relative;
}
.main-hero-2::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.15);
}

/* ---------------------------------------- */
/*             Posts card style             */
/* ---------------------------------------- */
.home-form-filters {
    gap: 0.5rem;
}
@media (max-width: 991px) {
    form#post-filter-form>* {
        width: calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
    }
}
@media (min-width: 992px) {
    .category-select-wrapper, .tag-select-wrapper {
        max-width: 12rem;
    }
}

img.posts-image {
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
	width: 100%;
}
.post-card {
    background-color: white;
    padding: 0.3rem;
    border-radius: 1rem;
    overflow: hidden;
}
.post-card-img-wrapper {
    border-radius: 0.7rem;
    overflow: hidden;
}
.post-card-body {
    padding: 0.7rem;
    min-height: 3.5rem;
}
.post-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(20, 20, 20);
}
.post-card-img-link {
    position: absolute;
    display: block;
    background-color: rgba(var(--bs-primary-rgb), 0.5);
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    backdrop-filter: blur(10px);
    border-radius: 0.7rem;
    overflow: hidden;
    padding: 5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    opacity: 0;
    transition: opacity 0.5s;
}
.post-card-img-wrapper:hover .post-card-img-link {
    opacity: 1; 
}
.post-card-text {
    font-size: 0.875rem;
    color: white;
    text-decoration: none;
    line-height: 1.2;
}
.post-card-button-wrapper {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.5s;
}
.post-card-img-wrapper:hover .post-card-button-wrapper {
    opacity: 1; 
}
.post-card {
    box-shadow: unset;
    transition: box-shadow 0.5s;
}
.post-card:hover {
    box-shadow: 0 0.5rem 0.75rem rgba(0, 0, 0, 0.15) !important;
}

.c-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.c-pagination>a, .c-pagination>span {
    padding: 0.5rem;
    font-size: 0.875rem;
    line-height: 1rem;
    font-weight: 500;
    min-width: 2.05rem;
    text-align: center;
    color: var(--bs-dark);
    background-color: var(--bs-white);
    border: 1px solid var(--bs-gray-400);
    border-radius: 2rem;
    text-decoration: none;
}
.c-pagination>span.current {
    color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
}


/* ---------------------------------------- */
/*          Section subscribe style         */
/* ---------------------------------------- */
.section-subscribe {
    border-radius: 1rem;
    color: white;
    background: 
        url(../svg/mail.svg) left top / 10rem auto no-repeat,
        linear-gradient(141deg, rgba(81,179,236,1) 0%, rgba(208,65,121,1) 100%);
}
.section-subscribe>.row {
    min-height: 9rem;
}
.product-disclamer {
    font-size: 0.625rem;
}


/* ---------------------------------------- */
/*              Single post style           */
/* ---------------------------------------- */
.post-header-half {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--bs-gutter-x)*.5);
    padding-right: calc(var(--bs-gutter-x)*.5);
    width: 100%
}
@media(min-width: 576px) {
    .post-header-half{
        max-width:540px
    }
}
@media(min-width: 768px) {
    .post-header-half {
        max-width:720px
    }
}
@media(min-width: 992px) {
    .post-header-half {
        max-width:480px
    }
}
@media(min-width: 1200px) {
    .post-header-half {
        max-width:570px
    }
}
@media(min-width: 1400px) {
    .post-header-half {
        max-width:660px
    }
}
@media(min-width: 992px) {
    .post-header-half {
        margin-right:0
    }
}
nav.navigation.post-navigation {
    font-size: 0.875rem;
}
.single .post-navigation .nav-links>* {
    width: 50%;
    max-width: 50%;
}
h3.curated-article-header {
    color: var(--bs-body-color);
    font-weight: 500;
    transition: 0.5s font-weight;
}
h3.curated-article-header:hover {
    font-weight: 600;
    color: black;
}
/* Single Post sticky advertizing */
.post-template-default.single-post #page {
    overflow: initial;
}
.post-template-default.single-post #secondary {
    height: 100%;
}
.post-template-default.single-post #secondary .banner-wrapper {
    position: sticky;
    top: 5rem;
}
.post-template-default.single-post  #secondary .banner-wrapper {
    top: calc(5rem + 32px);
}

/* ---------------------------------------- */
/*         HOMEPAGE FILTERS STYLES          */
/* ---------------------------------------- */
#post-filters {
    padding-top: 4rem;
}
@media(min-width: 992px) {
    #post-filters {
        padding-top: 5.5rem;
    }
}
@media (max-width:767px) {
    #post-filter-form>div {
        width: calc(50% - 0.5rem);
    }
    #post-filter-form>div>button {
        width: 100%;
    }
}
#filter-clear {
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 500;
}
.filter-dropdown .btn-outline-primary.dropdown-toggle,
.filter-button .btn-outline-primary {
    --bs-btn-hover-color: var(--bs-primary);
    --bs-btn-hover-bg: rgba(var(--bs-primary-rgb), 0.3);
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-font-family: initial;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 500;
    --bs-btn-bg: white;
    --bs-btn-border-width: 1px;
    --bs-btn-border-color: var(--bs-gray-400, lightgray);
    --bs-btn-border-radius: 2rem;
}
@media(max-width: 500px) {
    .filter-dropdown .btn-outline-primary.dropdown-toggle,
    .filter-button .btn-outline-primary {
        --bs-btn-padding-x: 0.75rem;
        --bs-btn-padding-y: 0.40rem;
    }
}
.filter-dropdown .dropdown-menu {
    --bs-dropdown-min-width: 13rem;
}
.filter-dropdown .btn-outline-primary.has-selected,
.filter-button .btn-outline-primary.has-selected {
    --bs-btn-border-color: var(--bs-primary);
}
.filter-dropdown .btn-outline-primary:not(.has-selected) .count-bage,
.filter-button .btn-outline-primary:not(.has-selected) .count-bage{
    display: none;
}
.filter-dropdown .dropdown-toggle.show .count-bage {
    visibility: hidden;
}
.filter-dropdown .form-check {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding-left: 0;
}
.filter-dropdown input[type="checkbox"].form-check-input {
  -webkit-appearance: none;
  background: transparent;
  margin: 0 0.35rem 0 0;
  font: inherit;
  color: transparent;
  width: 0.75em;
  height: 0.75em;
  border: none;
  border-radius: 0;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
  box-shadow: none;
  flex-grow: 0;
  flex-shrink: 0;
}
@media (pointer:none), (pointer:coarse) {
  .filter-dropdown input[type="checkbox"].form-check-input {
    margin-right: 0.55rem;
  }
}

.filter-dropdown input[type="checkbox"].form-check-input::before {
  content: "";
  width: 0.75em;
  height: 0.75em;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
  /* Windows High Contrast Mode */
  background-color: var(--bs-primary);
}

.filter-dropdown input[type="checkbox"].form-check-input:checked::before {
  transform: scale(1);
}


.filter-dropdown .filter-dropdown-options {
    height: 15rem;
    min-height: 15rem;
    overflow-y: auto;
}
.filter-dropdown .filter-dropdown-options .form-check-label {
    margin-left: auto;
    flex-grow: 1;
    cursor: pointer;
    padding: 0.5rem 1rem 0.25rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25;
}
.filter-dropdown .form-check:has(input:checked) {
    background-color: rgba(var(--bs-primary-rgb), 0.15);
}
/* Menu scroller styles */
.filter-dropdown .filter-dropdown-menu {
    overflow-x: hidden;
}
/* Other Webkit */
.filter-dropdown .filter-dropdown-options {
    margin: 0;
}
.filter-dropdown .filter-dropdown-options::-webkit-scrollbar {
    width: 0.4rem;
    height: 0.4rem;
}
.filter-dropdown .filter-dropdown-options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}
.filter-dropdown .filter-dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25); /* darker scroller */
    border-radius: 0; /* rounded scroller corners */
}
/* Firefox-specific CSS */
@-moz-document url-prefix() {
    .filter-dropdown .filter-dropdown-options {
      scrollbar-width: thin;
      scrollbar-color: #888 #f1f1f1;
    }
}
.filter-dropdown .filter-dropdown-options>.form-check:first-child {
    padding-top: 0.35rem;
}
.filter-dropdown .filter-dropdown-options>.form-check:last-child {
    padding-bottom: 0.25rem;
}


/* ---------------------------------------- */
/*           PRODUCT BLOCK STYLES           */
/* ---------------------------------------- */
.product-card-block {
    margin-bottom: 2rem;
}
.product-card-block .image-wrapper img {
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
    width: 100%;
}
.product-card-block .image-wrapper {
    margin-bottom: 1rem;
}
.product-card-block-button {
    margin-bottom: 0.75rem;
    -bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 1.25rem;
}
.product-legacy-gallery-button::before,
.product-card-block-button::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-cart' viewBox='0 0 16 16'%3E%3Cpath d='M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .491.592l-1.5 8A.5.5 0 0 1 13 12H4a.5.5 0 0 1-.491-.408L2.01 3.607 1.61 2H.5a.5.5 0 0 1-.5-.5M3.102 4l1.313 7h8.17l1.313-7zM5 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4m7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-7 1a1 1 0 1 1 0 2 1 1 0 0 1 0-2m7 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2'/%3E%3C/svg%3E");
    background-size: contain;
    vertical-align: -10%;
    margin-right: 0.5em;
}

/* ---------------------------------------- */
/*                   MISC                   */
/* ---------------------------------------- */
.shortcode-thumbnail-image {
    border-radius: 0.5rem;
    aspect-ratio: 4/3;
    object-fit: cover;
}
input.wpcf7-form-control.wpcf7-quiz {
    width: 150px;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
}
.post-share-buttons .btn>svg:only-child {
    display: block;
}

