/*
Theme Name: Discovery Festival
Theme URI: 
Author: Pedl Digitl Limited
Author URI: https://pedldigitl.com/
Description: Tailored theme for Discovery Festival.
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template:   forge
Text Domain: discovery-festival
Tags: 
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

b,
strong {
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
  padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
  padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
  color: var(--wp--preset--color--secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
  margin-top: 20px;
  text-align: left;
}

img,
figure {
  max-width: 100%;
  height: auto;
}

/* Temporary fix for text-decoration-thickness in Firefox */
@-moz-document url-prefix() {
  a {
    text-decoration-thickness: 0.1rem !important;
  }
}

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

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

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

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
  color: var(--wp--preset--color--main);
  border-radius: 5px;
  border: solid 1px var(--wp--preset--color--border-light);
  padding: 0.5em 1em;
  font-size: var(--wp--preset--font-size--small);
  background-color: #fff;
}

input:focus-visible,
textarea:focus-visible {
  outline-color: var(--wp--preset--color--primary);
}

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

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

::placeholder {
  color: var(--wp--preset--color--secondary);
  font-size: var(--wp--preset--font-size--small);
  opacity: 0.75;
}

/* Helper styles
---------------------------------------------------------------------------- */

a.more-link {
  display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
  background-color: var(--wp--preset--color--tertiary);
  padding: 3px 5px;
  position: relative;
  border-radius: 3px;
}

.wp-block-categories {
  position: relative;
}

/* Adjust terms at bottom of posts */
.single .wp-block-group .wp-block-post-terms,
.blog .wp-block-group .wp-block-post-terms {
  margin-bottom: -8px !important;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
  margin-bottom: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding
  .wp-block-post-template
  li:last-child
  .wp-block-separator {
  display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
  display: none;
}

.wp-block-group:empty:has(+ .comment-respond) {
  display: none;
}

.row-logos > figure {
  flex-shrink: 1 !important;
}

/* Sticky header */

body:not(.wp-admin) header:has(> .is-position-sticky) {
  position: sticky;
  top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
  z-index: 100;
}

/* Account for admin bar on mobile */

@media (max-width: 600px) {
  header:has(> .is-position-sticky) {
    top: 0;
  }
}

/* Mobile helper classes */

@media (max-width: 781px) {
  .ollie-hide-on-mobile {
    display: none;
  }

  .ollie-unstick-mobile {
    position: static;
  }

  header:has(> .ollie-unstick-mobile) {
    position: static;
  }
}

a {
  transition: 0.3s ease;
}

/* Hero Pattern */
.pattern-hero::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    84.9deg,
    rgba(0, 0, 0, 0.24) 1.83%,
    rgba(0, 0, 0, 0.36) 54.19%,
    rgba(0, 0, 0, 0) 84.42%
  );
}

@media (min-width: 768px) {
  .pattern-hero::after {
    width: 80%;
  }
}

.pattern-hero {
  min-height: 550px !important;
}

@media (min-width: 992px) {
  .pattern-hero {
    min-height: 830px !important;
  }
}

.pattern-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
}

.pattern-card-3 > .has-xx-large-font-size {
  line-height: 1.1;
}

/* Content-4 2 Pattern */
.pattern-content-4 .acf-innerblocks-container {
  row-gap: var(--wp--preset--spacing--medium) !important;
}

.pattern-content-4 .acf-innerblocks-container .wp-block-image {
  max-width: 100%;
}

@media (min-width: 768px) {
  .pattern-content-4 .pattern-content-4-content-wrapper:nth-child(2) {
    order: unset;
    margin-left: auto;
  }
}

.pattern-card-9 iframe {
  margin: 0 auto;
  display: block;
}

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

.wp-block-quote {
  border-left: 2px solid var(--wp--preset--color--accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
}

.wp-block-quote p {
  font-weight: 500;
}

.wp-block-quote .highlighted {
  font-size: var(--wp--preset--font-size--medium);
  font-family: var(--wp--preset--font-family--hey-gotcha);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--primary);
}

.wp-block-separator {
  border-top: 1px solid;
}

.mc4wp-form .newsletter-btn {
  position: relative;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.33s;
  font-weight: 400;
  border-radius: 0;
  font-size: var(--wp--preset--font-size--medium);
  letter-spacing: 0.01em;
  line-height: 1.3;
  font-family: var(--wp--preset--font-family--hey-gotcha);
  color: var(--wp--preset--color--white);
  border: 2px solid var(--wp--preset--color--secondary);
  animation: stripe-scroll 10s linear infinite;
  background:
    url("assets/icons/button-decoration-dark.svg") repeat-x 0 center / 900px
      150%,
    var(--wp--preset--color--secondary);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.mc4wp-form .newsletter-btn:hover {
  background:
    url("assets/icons/button-decoration-dark.svg") repeat-x 0 center / 900px
      150%,
    var(--wp--preset--color--primary);
  color: var(--wp--preset--color--secondary);
  border-color: var(--wp--preset--color--secondary);
}

.mc4wp-form .newsletter-input {
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
  padding: 1rem;
  border: 2px solid var(--wp--preset--color--secondary);
  border-radius: 0;
  background-color: var(--wp--preset--color--primary);
  flex-grow: 1;
}

.mc4wp-form .mc4wp-form-fields {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

@media (min-width: 576px) {
  .mc4wp-form .mc4wp-form-fields {
    flex-direction: row;
  }
}

b,
strong {
  font-weight: 600;
}

.notice-banner {
  align-items: flex-start;
}

.notice-banner i {
  font-size: 1.75rem;
  position: relative;
}

.event-wrapper {
  display: flex;
  gap: var(--wp--preset--spacing--80);
  flex-direction: column;
}

@media (min-width: 768px) {
  .event-wrapper {
    flex-direction: row;
  }
}

.event-content {
  width: 784px;
  max-width: 100%;
}

.wp-block-post-featured-image.alignwide img {
  position: relative;
  z-index: 1;
}

.wp-site-blocks {
  position: relative;
}

.wp-site-blocks:before,
.wp-site-blocks:after {
  content: "";
  position: absolute;
  width: clamp(1rem, calc(-1rem + 5.556vw), 4rem);
  max-width: 60px;
  background-size: contain;
  background-repeat: repeat-y;
  top: 0;
  bottom: 0;
}

.wp-site-blocks:before {
  background-image: url("assets/icons/decoration-left.svg");
  left: 0;
  z-index: 1;
}

.wp-site-blocks:after {
  background-image: url("assets/icons/decoration-right.svg");
  right: 0;
}

a:where(:not(.wp-element-button)) {
  color: var(--wp--preset--color--secondary);
}

a:where(:not(.wp-element-button)):hover {
  color: var(--wp--preset--color--secondary-hover);
}

.wp-block-list {
  padding-left: 1.5rem;
}

@keyframes stripe-scroll {
  from {
    background-position:
      0 center,
      0 0;
  }
  to {
    background-position:
      900px center,
      0 0;
  }
}

.wp-block-group .arep-form .arep-form-label {
  width: fit-content;
  display: inline-block;
}

.wp-block-group .arep-form .arep-form-label.arep-required-label {
  color: #dc3232;
  display: inline-block;
  width: fit-content;
}

.wp-block-group .arep-form .arep-input,
.wp-block-group .arep-form .arep-mobileNumber-code-input {
  margin-top: 4px;
  padding: 1rem;
  background-color: var(--wp--preset--color--primary);
  border-radius: 0;
  border: 2px solid var(--wp--preset--color--secondary);
  height: 58.5px;
}

.wp-block-group .arep-form .arep-mobileNumber-code-input {
  padding: 1rem 0.5rem;
}

.wp-block-group .arep-form .arep-input::placeholder {
  color: var(--wp--preset--color--secondary);
}

.wp-block-group #arep-form-6547-header {
  display: none;
}

.wp-block-group .arep-form .arep-form-submit-button {
  position: relative;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.33s;
  font-weight: 400;
  border-radius: 0;
  font-size: var(--wp--preset--font-size--medium);
  letter-spacing: 0.01em;
  line-height: 1.3;
  font-family: var(--wp--preset--font-family--hey-gotcha);
  color: var(--wp--preset--color--white);
  border: 2px solid var(--wp--preset--color--secondary);
  animation: stripe-scroll 10s linear infinite;
  background:
    url("assets/icons/button-decoration-dark.svg") repeat-x 0 center / 900px
      150%,
    var(--wp--preset--color--secondary);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
  width: 100%;
}

.wp-block-group .arep-form .arep-form-submit-button:hover {
  background:
    url("assets/icons/button-decoration-dark.svg") repeat-x 0 center / 900px
      150%,
    var(--wp--preset--color--primary);
  color: var(--wp--preset--color--secondary);
  border-color: var(--wp--preset--color--secondary);
}
