/*
Theme Name: Eurisko
Theme URI:
Author: Skyline Internet
Author URI:
Description:
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eurisko
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

:root {
  --border-radius: 0.2em;
  --sidebarWidth: 80dvw;
}

strong,
b {
  font-weight: 300;
}

a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline: none;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation
  .wp-block-navigation-submenu
  .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation
  .wp-block-navigation-item
  .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation
  .wp-block-navigation-item
  ul.wp-block-navigation__submenu-container
  .wp-block-navigation-item__content {
  outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

:root :where(.wp-element-button:hover, .wp-block-button__link:hover) {
  background-color: var(--wp--preset--color--custom-green);
}

/* Homepage - Accreditations */

.accreditations-row img {
  filter: grayscale(1);
  opacity: 0.6;
  cursor: pointer;
}

.accreditations-row img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.accreditations-row li {
  display: flex;
  align-items: center;
}

/* Accreditations */

li.type-eurisko_accred {
  margin-bottom: 1em;
}

/* Homepage - Mission */

.mission figure {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Courses */

ul.columns-2 .eurisko_courses figure img {
  padding-right: 50px !important;
}

.eurisko_courses .course-details {
  position: relative;
  margin-left: 3em !important;
}

.is-virtual-course p {
  color: var(--wp--preset--color--custom-green);
  font-weight: 300;
  font-size: 0.9em;
}

.eurisko_courses .wp-block-post-excerpt__more-link {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 10;
  top: 0;
  left: 0;
}

/* Homepage - Reviews */

.wp-block-cb-carousel-v2[data-cb-pagination="true"] .swiper-horizontal {
  padding-bottom: 2em;
}

.home-hero-icon-image-stack {
  position: relative;
}

.home-hero-icon-image-stack figure {
  position: relative;
  z-index: 11;
}

.home-hero-icon-image-stack .wp-block-outermost-icon-block .icon-container {
  position: absolute;
  z-index: 10;
  --svgScale: 60%;
  transition: all 0.25s;
}

.home-hero-icon-image-stack
  .wp-block-outermost-icon-block:last-of-type
  .icon-container {
  top: calc(var(--svgScale));
  left: 50%;
  width: var(--svgScale) !important;
  height: var(--svgScale);
  transform: translate(calc(-50% + 0rem), calc(-50% - 2rem)) !important;
  animation: animateSvgTwo 1s forwards;
}
.home-hero-icon-image-stack
  .wp-block-outermost-icon-block:first-of-type
  .icon-container {
  top: calc(var(--svgScale));
  left: 50%;
  width: var(--svgScale) !important;
  height: var(--svgScale);
  transform: translate(calc(-50% + 1rem), calc(-50% + 0rem)) !important;
  animation: animateSvgOne 1s forwards;
}

@keyframes animateSvgOne {
  from {
    top: 60%;
    left: 50%;
  }
  to {
    top: 58.5%;
    left: 52.5%;
  }
}

@keyframes animateSvgTwo {
  from {
    top: 60%;
    left: 50%;
  }
  to {
    top: 62.5%;
    left: 48.5%;
  }
}

.review-slider {
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0) 100%
  );
}

.swiper {
  margin-bottom: 0 !important;
}

.cb-slide {
  height: auto !important;
}

.cb-slide > .wp-block-group {
  height: -webkit-fill-available;
}

.cb-slide .service-card:hover {
  transform: none;
  box-shadow: var(--wp--preset--shadow--natural) !important;
}

.wp-block-cb-carousel-v2 .cb-button-next:after,
.wp-block-cb-carousel-v2 .cb-button-prev:after {
  font-size: 0.9em !important;
}

.service-card {
  transform: translateY(0) scale(1);
  transition: all 0.33s ease-in-out;
}

.service-card:hover {
  cursor: pointer;
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--wp--preset--shadow--deep) !important;
}

/*
*	Mobile Styles
*/

@media (max-width: 884px) {
  /*
	*	Reset default WordPress Grid Blocks to 1 column
	*/
  body .is-layout-grid {
    grid-template-columns: 1fr;
  }

  body.home .hero-img img {
    height: 55dvh !important;
  }
}

/* Courses Accordion */

.wp-block-details {
  box-shadow: 6px 6px 9px 0 #00000017;
}

.wp-block-details summary {
  color: var(--wp--preset--color--custom-dark-grey);
  font-size: var(--wp--preset--font-size--large);
  font-weight: 400;
}

.wp-block-details summary::marker {
  content: none;
}

.wp-block-details summary::after {
  content: "+";
  float: right;
  text-align: right;
  background-color: var(--wp--preset--color--custom-blue);
  color: var(--wp--preset--color--custom-white);
  padding: 0.05em 0.3em 0.15em 0.3em;
  border-radius: 50%;
  font-weight: 300;
  line-height: 1;
  margin-top: 0.2em;
}

.wp-block-details[open] summary::after {
  content: "-";
  background-color: var(--wp--preset--color--custom-green);
  padding: 0 0.43em 0.2em 0.43em;
}

/* Form */

.wpcf7-form {
  margin-top: 2em;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"] {
  border-width: 0 0 1px 0;
  border-color: #eee;
  font-size: var(--wp--preset--font-size--medium);
  font-family: "canada-type-gibson", sans-serif;
  color: var(--wp--preset--color--custom-dark-grey);
  font-weight: 300 !important;
  padding-bottom: 0.5em;
  margin-right: 2em;
  margin-bottom: 1.25em;
  width: 48%;
}

.wpcf7 textarea {
  border-width: 0 0 1px 0;
  border-color: #eee;
  font-size: var(--wp--preset--font-size--medium);
  font-family: "canada-type-gibson", sans-serif;
  color: var(--wp--preset--color--custom-dark-grey);
  width: -webkit-fill-available;
  margin-bottom: 1em;
  font-weight: 300 !important;
}

.wpcf7 .wpcf7-form-control-wrap:nth-child(2n) input {
  margin-right: 0 !important;
}

.wpcf7-list-item {
  margin: 0 0;
}

.wpcf7 input[type="submit"] {
  border-radius: 0.2em;
  background-color: var(--wp--preset--color--custom-blue);
  color: var(--wp--preset--color--base);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 300;
  padding: 0.65em 1.7em;
  font-family: inherit;
  border: none;
  float: right;
}

.wpcf7-list-item-label {
  font-size: 0.8em;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  font-family: "canada-type-gibson", sans-serif;
  font-weight: 300 !important;
  color: var(--wp--preset--color--custom-dark-grey);
}

/* Contact Page */

.wpmapblockrender {
  border-radius: 0.3em;
}

/* Mobile Sidebar */

aside#sidebar {
  position: fixed;
  height: 100dvh;
  z-index: 999;
  background-color: #fff;
  left: 0;
  top: 0;
  min-width: 80dvw;
  transform: translateX(calc(var(--sidebarWidth) * -2));
  transition: all 0.25s;
}

aside#sidebar.open {
  transform: translate(0);
  z-index: 9999;
}

body.sidebar-open {
  margin: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

body.sidebar-open:after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 991;
  background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 840px) {
  .mb-padding-30 {
    padding: var(--wp--preset--spacing--40) !important;
  }

  .mb-padding-0 {
    padding: 0 !important;
  }

  .mb-grid-2 ul {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="email"] {
    margin-right: 0 !important;
    width: 100% !important;
  }

  .mb-flex {
    display: flex !important;
    flex-direction: column;
  }
}

.wpcf7-response-output {
  background: #1c137c;
  border-color: #18126b !important;
  color: #fff !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

form.sent .wpcf7-response-output,
form.ok .wpcf7-response-output {
  background: #188518 !important;
  color: #fff !important;
  padding: 1rem;
  border-left: 5px solid #076607 !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
}
