/*
Theme Name: Flux
Theme URI:
Author: Kings Digital
Author URI: https://www.kingsdigital.com.au/
Description: Flux is a minimalist, versatile and adaptable theme designed to be applicable to any website. It contains a collection of templates and patterns tailor to different needs and to speed up site building process. It is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4. It also contains custom code designed to improve site performance and speed.
Requires at least: 6.0
Tested up to: 6.4.3
Requires PHP: 5.7
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flux
Tags: blog, news, portfolio, one-column, wide-blocks, accessibility-ready, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, sticky-post, style-variations, threaded-comments, translation-ready
*/

/* CSS Reset
---------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

b,
strong {
  font-weight: 600;
}

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
  font: inherit;
}

:where(:focus-visible, :focus) {
  outline-style: dotted;
  outline-width: 1px;
  outline-offset: 3px;
  outline-color: var(--wp--custom--color--ring);
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
  -webkit-appearance: none;
}

input:not([type="submit"]),
select,
textarea {
  color: var(--wp--preset--color--text);
  border-radius: 5px;
  border: 1px solid var(--wp--custom--color--border);
  overflow: hidden;
  width: 100%;
  background-color: var(--wp--preset--color--gray-50);
}

input:not([type="submit"]),
textarea {
  font-size: var(--wp--preset--font-size--small);
}

input:not([type="submit"]),
select:not([multiple]),
select[multiple] option,
textarea {
  padding: 0.5em;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
  width: auto;
}

li:has(input:is([type="checkbox"], [type="radio"])) {
  display: grid;
  grid-template-columns: 1em auto;
  gap: 0.5em;
}

.list-checkbox-wrap .nf-field-element li input,
.list-image-wrap .nf-field-element li input,
.list-radio-wrap .nf-field-element li input {
  margin: 0;
}

.list-checkbox-wrap .nf-field-element li label,
.list-image-wrap .nf-field-element li label,
.list-radio-wrap .nf-field-element li label {
  margin-inline-start: 0.5em;
}

label {
  width: 100%;
  display: block;
}

::placeholder {
  color: var(--wp--preset--color--gray-500);
  font-size: var(--wp--preset--font-size--small);
  opacity: 0.75;
}
#wpadminbar {
	position: fixed !important;
}
/* Helper styles that can't be done via theme.json
---------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: pretty;
}

/* Ninja Forms styles
---------------------------------------------------------------------------- */
.nf-form-fields-required {
  display: none;
}

.nf-after-field,
.nf-field-description {
  font-size: var(--wp--preset--font-size--small);
}

/* buttons */
input[type="submit"],
.nf-field-element :is(button) {
  background-color: var(--wp--custom--button--primary-background);
  color: var(--wp--custom--button--primary-text);
  border-radius: var(--wp--custom--button--border-radius);
  padding-block: 0.33rem;
  padding-inline: 1rem;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  border: none;
}

.nf-error-msg,
.ninja-forms-req-symbol {
  color: var(--wp--preset--color--status-error);
}

.nf-error.listimage-wrap .nf-field-element ul,
.nf-error .ninja-forms-field {
  border-color: var(--wp--preset--color--status-error);
}

/* Utility classes
---------------------------------------------------------------------------- */
.truncate {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Global block styles
---------------------------------------------------------------------------- */

html {
  scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 4rem);
}

/* Header */
:where(header, header a) {
  transition: all ease 0.3s;
}

header {
  position: sticky;
  width: 100%;
  max-width: 100%;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100; /* Adjust as needed to ensure the navbar is above other content */
  margin-block-start: 0;
  margin-block-end: 0;
}

header.is-style-transparent-overlay {
  --_bg: transparent;
  position: fixed;
}

/* Control header styling when it's sticking */
header {
  --_bg: var(--wp--custom--color--nav-bg, inherit);
  --_nav-link-color: var(--wp--custom--color--nav-link, inherit);
  background: var(--_bg);
  color: var(--_nav-link-color);
}

header.sticking {
  --_bg: var(--wp--custom--color--nav-bg-sticking, inherit);
  --_nav-link-color: var(--wp--custom--color--nav-link-sticking, inherit);
}

.wp-block-navigation
  .wp-block-navigation-item__content.wp-block-navigation-item__content {
  color: #fff;
}
.wp-block-navigation
  .has-child
  .wp-block-navigation-submenu
  .wp-block-navigation-item__content.wp-block-navigation-item__content {
  color: #000;
}
.wp-block-navigation .wp-block-navigation__submenu-icon {
  color: #fff;
}
@media (min-width: 600px) {
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: block;
  }
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
      .is-menu-open
    ) {
    display: none;
  }
}
@media (min-width: 1280px) {
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none;
  }
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
      .is-menu-open
    ) {
    display: block;
  }
}

footer.wp-block-template-part {
  margin-top: 0 !important;
}

.home h1 {
  font-size: var(--wp--preset--font-size--xxxx-large) !important;
}
.home h2 {
  font-size: var(--wp--preset--font-size--xxx-large) !important;
}
.home h3 {
}
mark * {
  color: inherit !important;
}
.entry-content p > * a,
.entry-content p > a {
  color: var(--wp--preset--color--primary) !important;
}

header a {
  text-decoration: none;
}
header a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
details.has-primary-background-color p a {
  color: #fff !important;
}
footer .wp-block-navigation__container a {
  text-align: right;
}
@media screen and (max-width: 781px) {
  footer .wp-block-navigation__container {
    align-items: start;
  }
  footer h6.wp-block-heading {
    text-align: left !important;
  }
}

#closeButton {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  border: 2px solid #fff;
}

#closeButton:after {
  background-image: url("data:image/svg+xml,%3Csvg stroke='%23fff' fill='%23fff' stroke-width='0' viewBox='0 0 512 512' height='1em' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z'%3E%3C/path%3E%3C/svg%3E");
}

/* @media screen and (max-width: 767px) {
  #closeButton {
    display: none;
  }
} */
.nf-form-cont {
  border: 2px solid var(--wp--preset--color--primary);
  padding: 1rem;
  border-radius: 25px;
}
.nf-form-content .list-select-wrap .nf-field-element > div,
.nf-form-content input:not([type="button"]),
.nf-form-content textarea {
  border-radius: 10px;
  background-color: transparent;
  border: 2px solid var(--wp--preset--color--primary);
}
.nf-form-content .list-select-wrap .nf-field-element > div,
.nf-form-content input:not([type="button"])::placeholder,
.nf-form-content textarea::placeholder {
  color: var(--wp--preset--color--gray-100);
}
.nf-form-content button,
.nf-form-content input[type="button"],
.nf-form-content input[type="submit"] {
  background-color: var(--wp--custom--button--primary-background);
  border-radius: 25px;
  width: 25%;
  font-weight: 600;
  min-width: fit-content;
}
.nf-form-content button:hover,
.nf-form-content input[type="button"]:hover,
.nf-form-content input[type="submit"]:hover {
  background-color: var(--wp--custom--button--primary-background-hover);
  color: #fff;
  /* border: 2px solid ; */
}
.checkbox-wrap .nf-field-element label:after,
.checkbox-wrap .nf-field-label label:after,
.listcheckbox-wrap .nf-field-element label:after,
.listcheckbox-wrap .nf-field-label label:after {
  border-color: var(--wp--preset--color--primary);
  background-color: transparent;
}
.nf-form-content .listcheckbox-wrap li,
.nf-form-content .listradio-wrap li {
  display: block;
}

@media screen and (max-width: 1279px) {
  .wp-block-navigation__responsive-container-open {
    color: #fff;
  }
  header
    .wp-block-navigation
    .wp-block-navigation-item__content.wp-block-navigation-item__content {
    color: var(--wp--preset--color--text);
  }
  header img.custom-logo {
    height: 4rem;
    width: auto;
  }
}
.w-full {
  width: 100% !important;
}
.wp-block-navigation
  .has-child:not(.open-on-click):hover
  > .wp-block-navigation__submenu-container {
  --border-style: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content
  .has-child
  .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
  padding: 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation
  .wp-block-navigation-item__content {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  line-height: 1 !important;
}
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation
  .wp-block-navigation-item
  a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 1279px) {
  .wp-block-navigation__submenu-icon.wp-block-navigation-submenu__toggle {
    display: none !important;
  }
}
.members-access-error {
  padding: 4rem 0;
  text-align: center;
}
