/*
Theme Name: Hyperdrive Child - IAR
Template: hyperdrive
Author: Striventa
Description: Hyperdrive is the last theme you'll ever need. Welcome to the future.
Version: 1.1.0
Requires at least: 6.1
Tested up to: 6.2.2
Requires PHP: 7.4
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hyperdrive
*/

/* Misc */
main.content .entry-content ol,
main.content .entry-content ul:not(.wp-block-post-template) {
  padding-left: 20px;
}
main.content .entry-content > ol,
main.content .entry-content > ul:not(.wp-block-post-template) {
  padding-left: 50px;
}

body.page-template-wp-custom-template-linktree.header-sticky header.site-header:not(.is-scrolling) > .wp-block-group:last-child { background: var(--wp--preset--color--primary) !important }

@media (max-width: 768px) {
  h1.text-mobile-alignleft,
  h2.text-mobile-alignleft,
  h3.text-mobile-alignleft,
  h4.text-mobile-alignleft,
  h5.text-mobile-alignleft,
  h6.text-mobile-alignleft,
  p.text-mobile-alignleft {
    text-align: left;
  }
}

/* Read more */
.wp-block-read-more { transition: 0.2s all ease-in-out; }
.wp-block-read-more:hover {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}
.wp-block-read-more.is-style-white {
  color: white;
	outline-color: white;
}
.wp-block-read-more.is-style-white:hover {
	background-color: white;
	color: var(--wp--preset--color--primary);
}
.wp-block-read-more.is-style-secondary {
  background-color: #4DABE5;
  outline-color: #4DABE5;
  border-radius: 50px;
  color: var(--wp--preset--color--white);
  padding: 12px var(--wp--custom--spacing--large);
}
.wp-block-read-more.is-style-secondary:hover {
  background-color: var(--wp--preset--color--secondary);
  outline-color: var(--wp--preset--color--secondary);
  text-decoration: none;
}

/* Logo Banner Rounded Container */
.logo-banner-container {
  max-width: 90vw !important;
  z-index: 2;
  position: relative;
  border: 6px solid transparent;
  background: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) padding-box, linear-gradient(to bottom, var(--wp--preset--color--secondary) 0%, var(--wp--preset--color--secondary) 50%, var(--wp--preset--color--tertiary) 51%, var(--wp--preset--color--tertiary) 100%) border-box;
  margin-top: 0 !important;
  transform: translatey(-60px);
}
@media (min-width: 960px){
  .logo-banner-container {
    max-width: var(--wp--style--global--wide-size) !important;
    margin-top: 0 !important;
    border-radius: 100px !important;
    transform: translatey(-50%);
  }
}

/* Icon Text line-height fix */
figure.wp-block-image.icon { line-height: 1 }

/* Post Title */
.wp-block-post-title a {
  text-decoration: none !important;
}
.wp-block-post-title a:hover {
  text-decoration: underline !important;
}

/* Single Blog Post Styles */
body.single-post main.content figure.wp-block-post-featured-image { height: 240px; position: relative; }
body.single-post main.content figure.wp-block-post-featured-image:after {
  content: "";
  width: 80px;
  height: 80px;
  background: url(/wp-content/uploads/2018/04/iarc-author-img.jpg);
  background-size: cover;
  border: 3px solid var(--wp--preset--color--white);
  border-radius: 100%;
  overflow: hidden;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  transform: translateY(50%);
  z-index: 2;
}
body.single-post main.content figure.wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
body.single-post main.content { padding-left: 0; padding-right: 0; }
body.single-post main.content .content-container { padding-left: 0; padding-right: 0; }
body.single-post main.content h2, body.single-post main.content h3, body.single-post main.content h4, body.single-post main.content h5 { margin-top: var(--wp--preset--spacing--large); margin-bottom: var(--wp--preset--spacing--medium); }
body.single-post main.content .author-inner {
  display: grid;
  grid-template: auto / 1fr;
  padding: 25px 25px 10px;
  border: 1px solid var(--wp--preset--color--grey-medium);
}
body.single-post main.content .author-inner .author-image { max-width: 100%; max-height: 200px; }
body.single-post main.content .author-inner .author-image img { max-width: 100%; max-height: 100%; height: auto; }
@media (min-width:768px){
  body.single-post main.content figure.wp-block-post-featured-image { height: 380px; }
  body.single-post main.content .author-inner { grid-template: auto / 150px 0 1fr; grid-gap: 15px; }
}
@media (min-width:1024px){
  body.single-post main.content figure.wp-block-post-featured-image { height: 540px; }
}

/* Our Facilities */
/* #Why-IARC .wp-block-columns .wp-block-column {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent !important;
  position: relative;
  height: 140px;
}
#Why-IARC .wp-block-columns .wp-block-column::after {
  content: '';
  background-color: var(--wp--preset--color--paragraph-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: skewX(-10deg) translateX(-5px);
}
#Why-IARC .wp-block-columns .wp-block-column p {
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  #Why-IARC .wp-block-columns .wp-block-column {
    background-color: var(--wp--preset--color--paragraph-text) !important;
    height: auto;
  }
  #Why-IARC .wp-block-columns .wp-block-column::after { content: none; }
} */


/* Our Programs */
@media (min-width: 782px) {
  .wp-block-columns.programs-col-2 {
    display: grid;
    grid-template-columns: repeat(6,1fr);
  }
  .wp-block-columns.programs-col-2 > div:first-child {
    grid-row: 1;
    grid-column: 2 / span 2;
  }
  .wp-block-columns.programs-col-2 > div:last-child {
    grid-row: 1;
    grid-column: 4 / span 2;
  }
}


/* Landing Page Custom Styles */
.wp-block-group.lp-insurance-banner {
  display: grid;
  grid-template: auto / 1fr auto;
}
@media (max-width:767px){
  .wp-block-group.lp-insurance-banner {
    grid-template: auto / 1fr;
  }
  .wp-block-group.lp-insurance-banner > .wp-block-group {
    border: 0;
    padding-left: 0;
  }
}

/* FAQ */
.wp-block-yoast-faq-block .schema-faq-section .schema-faq-question {
  background: var(--wp--preset--color--grey-light) !important;
  color: var(--wp--preset--color--primary) !important;
}
.wp-block-yoast-faq-block .schema-faq-section .schema-faq-question:after {
  color: var(--wp--preset--color--primary) !important;
}
.wp-block-yoast-faq-block .schema-faq-section p.schema-faq-answer {
  border: 2px solid var(--wp--preset--color--grey-light) !important;
}


/* Addiction Types / Programs */
body.single-programs main.content .entry-content > *:not(ul):not(ol),
body.single-addiction-types main.content .entry-content > *:not(ul):not(ol) {
  padding-right: 0;
  padding-left: 0;
}
body.single-programs main.content .entry-content > ul,
body.single-programs main.content .entry-content > ol,
body.single-addiction-types main.content .entry-content > ul,
body.single-addiction-types main.content .entry-content > ol {
  padding-left: 35px;
}
body.single-programs main.content > .wp-block-columns,
body.single-addiction-types main.content > .wp-block-columns {
  padding-right: var(--wp--custom--spacing--large);
  padding-left: var(--wp--custom--spacing--large);
}


/* 12 Step Program Bullets */
.entry-content ul.twelve-steps {
  padding: 0 !important;
  list-style-type: none;
  display: grid;
  grid-template: auto / 1fr;
  grid-gap: 40px 30px;
}
@media (min-width: 600px){
  .entry-content ul.twelve-steps {
    grid-template: auto / 1fr 1fr;
  }
}
@media (min-width: 900px){
  .entry-content ul.twelve-steps {
    grid-template: auto / 1fr 1fr 1fr;
  }
}
.entry-content ul.twelve-steps li {
  padding-left: 30px;
  position: relative;
  min-height: 110px;
}
.entry-content ul.twelve-steps li:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 110px;
  background: url(assets/svgs/steps-left-dashes.svg);
  background-size: contain;
  background-repeat: no-repeat;
}
.entry-content ul.twelve-steps li strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  color: var(--wp--preset--color--primary);
}

/* Footer Style */
@media (max-width: 960px){
  footer.site-footer .wp-block-columns.footer-logos { flex-wrap: wrap !important; }
  footer.site-footer .wp-block-columns.footer-logos>.wp-block-column { flex-basis: 20% !important; }
}
@media (max-width: 781px){
  footer.site-footer .wp-block-columns.footer-logos>.wp-block-column { flex-basis: 30% !important; }
}
@media (max-width: 480px){
  footer.site-footer .wp-block-columns.footer-logos>.wp-block-column { flex-basis: 45% !important; }
}

/* Form Styles */
body .gform_wrapper ::placeholder,
body .gform_wrapper ::-webkit-input-placeholder,
body .gform_wrapper input[placeholder] {
  font-size: var(--wp--preset--font-size--medium) !important;
}
.gform-theme--framework select,
.gform-theme--framework textarea,
.gform-theme--framework input[type]:where(:not(.gform-text-input-reset):not([type=hidden])):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
  font-size: var(--wp--preset--font-size--medium) !important;
  height: 60px !important;
  line-height: 1.2 !important;
  padding: calc(var(--wp--custom--spacing--small) + 1px) calc(var(--wp--custom--spacing--small) + 4px) !important;
  border: 3px solid var(--wp--preset--color--grey-medium) !important;
  border-radius: 20px !important; 
  box-shadow: none;
}
.gform-theme--framework .gfield .ginput_container_select select { padding: calc(var(--wp--custom--spacing--small) + 7px) calc(var(--wp--custom--spacing--medium) + 4px) calc(var(--wp--custom--spacing--small) + 7px) calc(var(--wp--custom--spacing--small) + 4px)!important }
.gform-theme--framework input[type="checkbox"] {
  height: 25px !important;
  width: 25px !important;
  padding: 0 !important;
}
.gform-theme--framework .gfield .gform-field-label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--wp--preset--color--tertiary);
}
.gform_wrapper .gform_required_legend { display: none }
.gform-theme--foundation .gform_fields { grid-row-gap: 15px !important; row-gap: 15px !important; }
.gform-theme--foundation .gform_footer, .gform-theme--foundation .gform_page_footer { margin-top: 15px }
.gform-theme--foundation .gform_footer .gform_button {
  /* background-color: var(--wp--preset--color--tertiary) !important; */
  /* border: 1px solid var(--wp--preset--color--tertiary) !important; */
  background: linear-gradient(to left, var(--wp--preset--color--secondary), #4EACE6);
  border: 0 !important;
  border-radius: 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  min-width: 280px !important;
  padding: 18px var(--wp--custom--spacing--large) !important;
  text-transform: uppercase !important;
  transition: all ease-in-out 0.2s;
  /* width: 100% !important; */
}
.gform-theme--foundation .gform_footer .gform_button:hover {
  box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}
.gform-theme--foundation .gform_footer .gform_button.gform-button--width-full, .gform-theme--foundation .gform_page_footer  .gform_button.gform-button--width-full { width: 100% !important; }

/* Insuance Verification */
.gform-theme--framework form#gform_3 .gform_fields { grid-gap: 0; }
.gform-theme--framework form#gform_3 .gform_fields > .gfield:not(.gfield--type-captcha) {
  border-bottom: 2px dotted var(--wp--preset--color--grey-medium);
  margin-bottom: var(--wp--preset--spacing--medium);
  padding-bottom: var(--wp--preset--spacing--medium);
}
.gform-theme--framework form#gform_3 .gform_fields #field_3_9,
.gform-theme--framework form#gform_3 .gform_fields #field_3_14 { margin-top: var(--wp--preset--spacing--large); }
.gform-theme--framework form#gform_3 .gform_fields .gfield h4 { margin: 0; }
.gform-theme--framework form#gform_3 .gform_fields .gfield input { width: 100%; }
.gform-theme--framework form#gform_3 .gform_fields .gfield:not(.gfield--type-html) label,
.gform-theme--framework form#gform_3 .gform_fields .gfield:not(.gfield--type-html) .gfield_description { margin-bottom: 0; }
.gform-theme--framework form#gform_3 .gform_fields .gfield:not(.gfield--type-html) .ginput_container { margin-top: var(--wp--preset--spacing--small); }

@media (min-width: 640px){
  .gform-theme--foundation .gform_fields .ginput_container_address.has_city.has_state.has_zip span.address_city { inline-size: 40% }
  .gform-theme--foundation .gform_fields .ginput_container_address.has_city.has_state.has_zip span.address_state { inline-size: 35% }
  .gform-theme--foundation .gform_fields .ginput_container_address.has_city.has_state.has_zip span.address_zip { inline-size: 25% }
  /* .gform-theme--foundation .gform_footer .gform_button { width: auto; } */
  /* Newsletter Signup */
  .gform-theme--framework form#gform_11 {
    display: grid;
    grid-template: auto / 10fr 2fr;
    gap: var(--wp--preset--spacing--medium);
  }
  .gform-theme--foundation form#gform_11 .gform_footer,
  .gform-theme--foundation form#gform_11 .gform_page_footer { margin-top: 0 !important; }
  .gform-theme--foundation form#gform_11 .gform_footer .gform_button { width: 100%; }
  /* Insuance Verification */
  .gform-theme--framework form#gform_3 .gform_fields .gfield:not(.gfield--type-html) {
    display: grid;
    grid-template: auto / 1fr 2fr;
    grid-template-areas: 
      'field-title field'
      'field-description field';
    grid-column-gap: var(--wp--preset--spacing--medium);
    grid-row-gap: 0;
  }
  .gform-theme--framework form#gform_3 .gform_fields .gfield:not(.gfield--type-html) label { grid-area: field-title; }
  .gform-theme--framework form#gform_3 .gform_fields fieldset.gfield:not(.gfield--type-html) legend { grid-area: field-title; margin-bottom: -20px }
  .gform-theme--framework form#gform_3 .gform_fields .gfield:not(.gfield--type-html) .gfield_description { grid-area: field-description; }
  .gform-theme--framework form#gform_3 .gform_fields .gfield:not(.gfield--type-html) .ginput_container { grid-area: field; margin-top: 0; }
}

/* eBook Download */
#gform_fields_6 #field_submit input[type="submit"] { height: 100%; }


/* Addiction Icon text */
.addiction-icon-text > a {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

/* Post Excerpt */
.wp-block-post-excerpt__more-text .wp-block-post-excerpt__more-link {
  border-radius: 50px !important;
  padding: 12px var(--wp--custom--spacing--large) !important;
}

/* Our Programs Grid */
.our-programs-grid {
  grid-template: auto / repeat(8, 1fr);
  grid-gap: var(--wp--preset--spacing--medium);
}
.our-programs-grid li:nth-child(1),
.our-programs-grid li:nth-child(2),
.our-programs-grid li:nth-child(3),
.our-programs-grid li:nth-child(4) {
  grid-row: 1;
  grid-column: span 2;
}
.our-programs-grid li:nth-child(5),
.our-programs-grid li:nth-child(6),
.our-programs-grid li:nth-child(7) {
  grid-row: 2;
}
.our-programs-grid li:nth-child(5) { grid-column: 2 / span 2; }
.our-programs-grid li:nth-child(6) { grid-column: 4 / span 2; }
.our-programs-grid li:nth-child(7) { grid-column: 6 / span 2; }
@media (max-width: 768px){
  .our-programs-grid {
    grid-template: auto / repeat(2, 1fr);
  }
  .our-programs-grid li {
    grid-row: auto !important;
    grid-column: auto !important;
  }
}
@media (max-width: 600px){
  .our-programs-grid {
    grid-template: auto / 1fr;
  }
}

/* Roanoke Location */
figure.wp-block-table.roanoke-weekly-schedule table thead tr {
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--white);
}
figure.wp-block-table.roanoke-weekly-schedule table thead tr th {
  border-color: var(--wp--preset--color--primary);
}
figure.wp-block-table.roanoke-weekly-schedule table tbody tr:nth-child(odd) {
  background-color: var(--wp--preset--color--white);
}