/*
 Theme Name:   Qwery Child Theme
 Theme URI:    http://qwery.ancorathemes.com
 Description:  Qwery Child Theme
 Author:       AncoraThemes
 Author URI:   http://ancorathemes.com
 Template:     qwery
 Version:      1.3
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  qwery
*/

/* =Child-Theme customization starts here
------------------------------------------------------------ */
@media all and (max-width: 600px) {
  #js-services-slider_sc .sc_services_columns_wrap {
    display: block;
  }

  #js-services-slider_sc .slick-prev {
    display: none !important;
  }

  #js-services-slider_sc .slick-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    font-size: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dadada;
    border-radius: 50%;
  }

  #js-services-slider_sc .slick-next::before {
    position: relative;
    left: -2px;
    content: "\EA08";
    font-family: "fontello";
    font-size: 0.875rem;
    transform: rotate(90deg);
  }
}

@media all and (max-width: 479px) {
  .impact-items
    .trx_addons_columns_wrap:not(.columns_fluid)
    > .trx_addons_column-1_2-mobile {
    width: 50% !important;
  }

  .impact-items .sc_skills_icon {
    font-size: 3.5em;
  }

  .impact-items .sc_skills_total {
    font-size: 2em;
  }

  .impact-items .sc-skills_item_title {
    font-size: 14px;
  }
}

/* Fixes the page from loading boxed and expanding to fullwidth */
.content_wrap {
  width: 100%;
  overflow: visible;
}

/* Prevents the content_wrap styles to applying to header and other areas it was breaking */
.single-post .content_wrap,
.single-cpt_team .content_wrap,
.menu_mobile_content_wrap {
  width: var(--theme-var-page);
}

.single-cpt_team .team_member_description {
  margin-top: 2rem !important;
}

/* Sets the header to be fixed across all screens */
.top_panel {
  position: fixed;
  width: 100%;
}

/* Reverts the padding-top: 0 being added to page_content_wrap on inner pages, hiding the banner. !important required */
body .page_content_wrap,
.remove_margins .page_content_wrap {
  padding-top: 90px !important;
}

@media screen and (min-width: 768px) {
  body .page_content_wrap,
  .remove_margins .page_content_wrap {
    padding-top: 133px !important;
  }
}

@media screen and (min-width: 1680px) {
  body .page_content_wrap,
  .remove_margins .page_content_wrap {
    padding-top: 148px !important;
  }
}

@media screen and (max-width: 500px) {
  body.home .page_content_wrap {
    padding-top: 0 !important;
  }
}

/* Push hamburger menu items full width */
.menu_mobile .menu-item a {
  width: 100% !important;
}

.menu_mobile .sub-menu .menu-item a {
  width: fit-content !important;
}

.toip-form p {
  color: #fff !important;
}

iframe {
  min-height: 0;
}


/* -----------------------------------------------------------------
//  Looker Report
-------------------------------------------------------------------*/

.page_content_wrap:has(.rb-looker-report) {
  padding-bottom: 0;
}

.rb-looker-report {
  height: calc(100vh - 148px);
  min-height: 800px;
  position: relative;
}

.rb-looker-report .elementor-widget-container {
  height: 100%;
}

.rb-looker-report__frame {
  width: 100%;
  height: 100%;
  filter: blur(12px); /* Initial blur */
  transition: filter 0.5s ease-in-out; /* Smooth transition for blur */
  pointer-events: none;
}

.revealed .rb-looker-report__frame {
  filter: none;
  pointer-events: unset;
}


.rb-looker-report__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s ease-in-out;
}

.revealed .rb-looker-report__overlay {
  display: none;
}

.rb-looker-form input,
.rb-looker-form select {
  border: 1px solid #ccc;
}

.rb-looker-form select {
  visibility: visible !important;
}

.rb-looker-form .select_container:after {
  right: 10px;
}

.rb-looker-form .gfield_label {
  color: #000;
  font-family: halyard-display, sans-serif;
  font-size: 19px;
  font-weight: 500 !important;
}
.rb-looker-form input[type="submit"] {
  padding: 13px 26px;
}

.rb-looker-form input[type="radio"] + label:before {
  border-radius: 50%;
}

@media (min-width: 500px) {
  .rb-looker-form .gfield_checkbox,
  .rb-looker-form .gfield_radio {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.rb-looker-form  .gfield_validation_message {
  display: none;
}

.rb-looker-form .gform_validation_errors {
  box-shadow: none;
}

.rb-looker-form .gform_validation_errors:focus {
  outline: none;
}

.rb-form-modal .gform_required_legend {
  display: none;
}

.rb-form-modal p {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .rb-looker-report {
    min-height: 640px;
  }
  .rb-form-modal {
    margin: 0 auto;
    width: 80% !important;
  }
}

@media (min-width: 960px) {
  .rb-form-modal {
    width: 60% !important;
  }
}