/* ===========================================================================
  First Aid Academy Theme Custom Styles
   ========================================================================== */

/* ==========================================================================
   Global
   ========================================================================== */

:root {
  --mobile-menu-item-height: 0px;
  --faa-blue: #0e4f86;
  --faa-green: #00b058;
  --faa-white: #ffffff;
  --faa-black: #000000;
}

.white-border-hover a.uabb-button.ast-button.uabb-creative-button:hover {
	border-color: white;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Add Placeholder Colour */
.ginput_container input::placeholder,
.ginput_container textarea::placeholder {
  color: var(--apmp-grey);
  opacity: 0.7;
}

/* Add border to footer nav menu titles */
.widget_nav_menu .widget-title {
  border-bottom: 1px solid #ffffff;
  padding-bottom: 0.25rem;
}

/* Fix social profiles */
.astra-widget-social-profiles
  .astra-widget-social-profiles-inner
  li
  > a
  .ast-widget-icon {
  margin-right: 0px;
}

.position-relative {
  position: relative !important;
}

.megamenu-active .ast-arrow-svg {
  transform: scaleY(-1);
}

/* Float widget 4 to the end */
/* .site-footer-primary-section-4 .footer-widget-area {
	width: fit-content !important;
	float: right;
} */

/* Footer Newsletter */
#gform_19 {
  --shadow-color: rgba(0, 0, 0, 0.12);
  --input-color: #797979;
  --input-width: 300px;
  --button-color: #0e4f86;
  --button-color-2: #0e4f86;
  --button-text: #ffffff;
  --button-text-size: 1rem;
  --button-font-weight: 500;
  --button-width: 150px;
  --button-border-radius: 0px 10px 10px 0px;
  --form-border-radius: 10px;
  --form-height: 54px;
  max-width: 550px;
}

#gform_19 .gform_fields {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: var(--form-border-radius);
  background: #ffffff;
/*   overflow: hidden; */
  min-height: var(--form-height);
  box-shadow: 0 2px 8px var(--shadow-color);
}

#gform_19 #field_19_1 {
  flex: 1 1 auto;
  margin-top: 0;
  padding-block: 0;
  border: 0;  
  border: 10px 0 0 10px;
}

#gform_19 #input_19_1 {
  width: 100%;
  min-height: var(--form-height);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 1rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  min-width: var(--input-width);
  color: var(--input-color);
  border-radius: 10px 0 0 10px;
}

/* Gravity Forms default focus — box-shadow ring keeps the inline layout intact */
#gform_19 #input_19_1:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--button-color) inset;
}

#gform_19 #input_19_1::placeholder {
  color: var(--input-color);
  opacity: 0.7;
}

#gform_19 #field_submit {
  flex: 0 0 var(--button-width);
}

#gform_19 #gform_submit_button_19 {
  width: 100%;
  min-height: var(--form-height);
  border: none;
  border-radius: var(--button-border-radius);
  background-color: var(--button-color);
  color: var(--button-text);
  font-weight: var(--button-font-weight);
  font-size: var(--button-text-size);
  line-height: 28px;
  padding: 0 1.5rem;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

#gform_19 #gform_submit_button_19:hover {
  background-color: var(--button-color-2);
}

#gform_19 #gform_submit_button_19:focus-visible {
  outline: 2px solid var(--button-color);
  outline-offset: 2px;
}

#gform_19 .gform-footer.gform_footer.top_label {
  display: none;
}

#gform_19 .gform_submission_error {
  display: none;
}

#validation_message_19_1 {
  display: none;
}

#gform_19_validation_container {
  width: 100%;
  padding: 0.5rem;
  background: #fff9f9;
  border: 0;
  border-radius: 5px;
  position: relative;
}

.footer-form-wrap {
  position: relative;
}

#gform_ajax_spinner_19 {
  position: absolute;
  right: -30px;
}

@media (max-width: 992px) {
  .site-footer-above-section-1
    .footer-widget-area[data-section="sidebar-widgets-footer-widget-5"] {
    display: flex;
    flex-wrap: wrap;
  }

  #gform_19 #field_submit {
    align-self: flex-end;
    flex: 0 0 auto;
  }

  #gform_19 #input_19_1 {
    min-width: auto;
  }
}
/* Footer Newsletter - End */
.site-footer-section-1 .wp-block-heading,
.site-footer-section-1 .widget_block {
  margin-bottom: 0;
}

/* Position Relative */
.position-relative {
  position: relative !important;
}

/* Yoast Breadcrumbs */
.yoast-breadcrumbs span > * {
  color: var(--faa-blue);
}

/* Course Heading */
.course-heading span {
  color: var(--faa-green);
}

@media (max-width: 576px) {
  .course-heading h1 {
    font-size: 1.5rem;
  }
}

/* Contact Us Form */
#gform_fields_20 {
  row-gap: 0px;
}

#gform_wrapper_20 .gform-footer {
  margin: 0;
  padding: 0;
}

#input_20_4 {
  min-block-size: 160px;
}

/* ==========================================================================
   Update WooCommerce Sidebar 
   ========================================================================== */
@media (min-width: 1025px) {
	.ast-left-sidebar #secondary {
		width: 25%;
	}
}

@media (min-width: 1025px) {
	.ast-left-sidebar #primary {
		width: 75%;
	}
}
/* ==========================================================================
   Footer
   ========================================================================== */

/* Footer Links */
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

/* Form Validation Fixes */

#validation_message_19_1 {
  padding-top: unset;
  padding: 10px 50px;
}

.gform-icon--circle-error {
  inset-block-start: 8px !important;
}

/* ==========================================================================
   FM Custom Styles
   ========================================================================== */
.fm-dots .slick-dots {
  display: flex !important;
  justify-content: center;
  gap: 0.5em;
  padding: 0;
  margin-top: 1rem !important;
}

/* ==========================================================================
   FM Infobox Arrow
   ========================================================================== */
.fm-infobox-arrow {
  position: relative;
}

.fm-infobox-arrow .uabb-infobox-text-wrap {
  display: inline-flex;
  width: 100%;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
}

.fm-infobox-arrow .uabb-infobox-text p {
  padding: 0;
}

.fm-infobox-arrow .uabb-infobox-button,
.fm-infobox-arrow .uabb-image-content {
  transition: transform 0.3s ease;
}

.fm-infobox-arrow:has(.stretched-link:hover) .uabb-infobox-button {
  transform: translateX(10px);
}

.fm-infobox-arrow:has(.stretched-link:hover) .uabb-image-content {
  transform: translateY(-10px);
}
@media (max-width: 992px) {
  .fm-infobox-arrow .uabb-creative-button-wrap a,
  .fm-infobox-arrow .uabb-creative-button-wrap a:visited {
    padding: 0;
  }
}

/* ==========================================================================
   Global Styles
   ========================================================================== */

.position-relative {
  position: relative !important;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
  background-color: rgba(0, 0, 0, 0);
}

/* ==========================================================================
   Related Content Component
   ========================================================================== */
.related-content .uabb-blog-posts-shadow:hover .arrow-glide {
  transform: translateX(10px);
}

.related-content .uabb-blog-posts-shadow {
  height: auto !important;
  border-radius: 10px;
  overflow: hidden;
}

.related-content .fm-card .uabb-post-heading,
.related-content .fm-card .uabb-blog-posts-description {
  text-align: left;
}

.related-content .fm-card .uabb-post-heading {
  flex: 1 1 90%;
}

.related-content .fm-card-body {
  display: flex;
  align-items: center;
  padding: 1rem;
}

.related-content .fm-card-body svg {
  flex: 1 1 10%;
  width: 20px;
  height: 20px;
}

.related-content .arrow-glide {
  transition: transform 1s ease;
}

/* ==========================================================================
   Shop Search
   ========================================================================== */
.woocommerce-product-search {
  position: relative;
}

.woocommerce-product-search .search-field {
  width: 100%;
  padding: 15px 40px 15px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #999;
  background: #fff;
  box-sizing: border-box;
  height: auto;
}

.woocommerce-product-search .search-field::placeholder {
  color: #999;
}

.woocommerce-product-search .search-field:focus {
  outline: none;
  border-color: #999;
}

.woocommerce-product-search button[type="submit"] {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0 !important; /* Hides the "Search" text */
  width: 24px;
  height: 24px;
  background-image: url("/wp-content/uploads/2026/01/search-icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: none;
}

.woocommerce-product-search button[type="submit"]:hover {
  opacity: 0.7;
}

/* ==========================================================================
   WooCommerce Customizations
   ========================================================================== */
.woocommerce-products-header__title.page-title {
  margin-bottom: 22px;
  font-weight: 700;
}

.woocommerce-products-header .term-description {
  margin-bottom: 48px;
}

.woocommerce-js a.button {
	padding-inline: 40px;
	padding-block: 20px;
	border-radius: 10px;
	font-size: 1rem;
}

a.button.ast-continue-shopping {
	padding-inline: 20px;
}

/* ==========================================================================
   More Resources - Card
   ========================================================================== */
.more-resources {
  position: relative;
}

.more-resources .uabb-post-heading,
.more-resources .uabb-blog-posts-description {
  text-align: left;
  margin: 0;
}

.more-resources .uabb-post-heading {
  flex: 1 1 90%;
}

.more-resources-body {
  display: flex;
  align-items: center;
  padding: 1rem;
  padding-inline: 1.5rem;
}

.more-resources-body svg {
  flex: 1 1 10%;
}

.more-resources-body .uabb-post-meta {
  padding-top: 0;
}

.uabb-blog-posts-shadow {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Shared Rollover Styles
   -------------------------------------------------------------------------- */
.more-resources .uabb-post-thumbnail,
.more-courses .uabb-post-thumbnail {
  position: relative;
  overflow: hidden;
}

.more-resources .uabb-post-thumbnail img,
.more-courses .uabb-post-thumbnail img {
  transition: transform 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.more-resources:hover .uabb-post-thumbnail img,
.more-courses:hover .uabb-post-thumbnail img {
  transform: scale(1.08);
}

.arrow-glide {
  transition: transform 1s ease;
}

.uabb-blog-posts-shadow:hover .arrow-glide {
  transform: translateX(10px);
}

/* ==========================================================================
   More Courses - Card
   ========================================================================== */
.more-courses {
  position: relative;
}

.more-courses .uabb-post-thumbnail {
  border-radius: 10px;
  margin-bottom: 1rem;
}

.more-courses .more-courses-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* .more-courses .uabb-blog-posts-description {
  padding-top: 4rem;
} */

/* --------------------------------------------------------------------------
   Rollover
   -------------------------------------------------------------------------- */
.uabb-blog-posts-shadow:hover .more-courses .uabb-post-heading {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
#ast-hf-mobile-menu .ast-menu-toggle {
  width: 100%;
  height: 70.27px; /* This changes with each site */
  top: 0px !important;
  border-radius: 0px;
  box-shadow: none;
}

#ast-hf-mobile-menu .ast-menu-toggle > .ast-icon {
  float: right;
}

/* Child Item */
#ast-hf-mobile-menu .menu-item-has-children > ul.sub-menu > li.menu-item {
  background: var(--menu-child-bg-colour);
}

/* Grandchild Item */
#ast-hf-mobile-menu > li > .sub-menu > li > .sub-menu li {
  background: var(--menu-grandchild-bg-colour) !important;
}

#ast-hf-mobile-menu > li > .sub-menu > li > .sub-menu a {
  padding-left: 60px !important;
}

/* ==========================================================================
  Links
   ========================================================================== */
body:not(.fl-builder-edit) .yoast-breadcrumbs span a,
body:not(.fl-builder-edit) .uabb-adv-accordion-content a,
body:not(.fl-builder-edit)
  .uabb-infobox-content
  a:not(.uabb-button):not(.stretched-link),
body:not(.fl-builder-edit) .woocommerce-breadcrumb a {
  position: relative;
  color: var(--faa-green);
  text-decoration: none !important;
  overflow: hidden;
  display: inline-flex;
}

/* White */
body:not(.fl-builder-edit) .yoast-breadcrumbs.white span,
body:not(.fl-builder-edit) .yoast-breadcrumbs.white span a {
  color: var(--faa-white);
}

body:not(.fl-builder-edit) .yoast-breadcrumbs span a::before,
body:not(.fl-builder-edit) .uabb-adv-accordion-content a::before,
body:not(.fl-builder-edit)
  .uabb-infobox-content
  a:not(.uabb-button):not(.stretched-link)::before,
body:not(.fl-builder-edit) .yoast-breadcrumbs.white span a::before,
body:not(.fl-builder-edit) .woocommerce-breadcrumb a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--faa-green);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body:not(.fl-builder-edit) .yoast-breadcrumbs span a:hover::before,
body:not(.fl-builder-edit) .uabb-adv-accordion-content a:hover::before,
body:not(.fl-builder-edit)
  div:not(.fm-infobox-arrow)
  .uabb-infobox-content
  a:not(.uabb-button):not(.stretched-link):hover::before,
body:not(.fl-builder-edit) .yoast-breadcrumbs.white span a:hover::before,
body:not(.fl-builder-edit) .woocommerce-breadcrumb a:hover::before {
  transform: translateY(0);
}

/* ==========================================================================
   Lists
   ========================================================================== */

/* ==========================================================================
   Course Cards
   ========================================================================== */
.course-info {
  display: flex;
  flex-direction: column;
}

.duration-pill,
.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.course-title-wrap {
  min-height: 130px;
}

/* ==========================================================================
   Course Header
   ========================================================================== */
.rating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.stars {
  display: flex;
  gap: 2px;
}
.star {
  color: #f59e0b;
  font-size: 0.85rem;
}

.rating-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rating-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f1c2e;
  line-height: 1;
}
.rating-count {
  font-size: 0.65rem;
  color: #6b7a8d;
  line-height: 1.3;
}

.rating-html {
  min-height: calc(100% - 40px); /* Follow parent column */
  position: relative;
}

/* Animations */
.uabb-infobox-title .aid {
  display: inline-block;
}

#hero .uabb-infobox-title .word {
  display: inline-block;
}

@media (max-width: 768px) {
	.rating-badge {
		bottom: -40px;
		right: -30px;
		left: auto;
		background: white;
	}
}

/* ==========================================================================
   Image Carousel
   ========================================================================== */

.uabb-image-carousel-item .uabb-image-carousel-content {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Quick Links
   ========================================================================== */
.quick-links .uabb-post-thumbnail {
  margin-bottom: 1rem;
  border-radius: 10px;
}

.uabb-blog-posts-shadow:hover .quick-links .uabb-post-heading {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}


/* ==========================================================================
   Animations
   ========================================================================== */
#hero-row .uabb-infobox-title,
#hero-row .uabb-infobox-text,
#hero-row .uabb-infobox-button,
#hero-row .hero-image {
  visibility: hidden;
}