/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- 
00. CORE
01. SITEWIDE
02. HEADER
03. FOOTER
30. SPECIFIC PAGES
	31. Homepage
    32. Search Page
50. BLOCK CUSTOMISATIONS
60. WIDGETS
70. PLUGINS
    71. Bit Forms
80. CUSTOM POST TYPES

99. HOTFIXES & BUGS

/* ---------------------------------------------------
* 00. CORE 
* ---------------------------------------------------*/
/*Text balance */
.balance {
  text-wrap: balance;
}

/* ---------------------------------------------------
 * 01. SITEWIDE
 * ---------------------------------------------------*/
/* Hexagon decorations */
.edu-hexagon {
  position: relative;
}

.edu-hexagon::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background-image: url(svg/hexagon-teal.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  bottom: -50px;
  right: -50px;
  z-index: -1;
}

.post-thumbnail {
  border-radius: 10px;
}
/* ---------------------------------------------------
 * 02. FOOTER
 * ---------------------------------------------------*/

/* ---------------------------------------------------
 * 30. SPECIFIC PAGES
 * ---------------------------------------------------*/

/* ---------------------------------------------------
 * 31. Homepage
 * ---------------------------------------------------*/
/* Change button colours when section is hovered */
.home
  .wp-block-kadence-column.kb-section-has-link.kb-section-has-overlay.edu-school:hover
  .wp-block-kadence-advancedbtn
  > .kb-btn-global-outline {
  color: var(--global-palette5);
  border: 1px solid var(--global-palette5);
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.4);
}
.home
  .wp-block-kadence-column.kb-section-has-link.kb-section-has-overlay.edu-school:hover
  .wp-block-kadence-advancedbtn
  > .kb-btn-global-outline
  .kb-svg-icon-wrap {
  color: var(--global-palette5);
}
.home
  .wp-block-kadence-column.kb-section-has-link.kb-section-has-overlay.edu-school
  .wp-block-kadence-advancedbtn
  > .kb-btn-global-outline
  .kb-svg-icon-wrap {
  transition: all 0.3s ease-in-out; /* Force icon to match transition */
}
.home
  .wp-block-kadence-column.kb-section-has-link.kb-section-has-overlay.edu-hirer:hover
  .wp-block-kadence-advancedbtn
  > .kb-btn-global-outline {
  color: var(--global-palette15);
  border: 1px solid var(--global-palette15);
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.4);
}
.home
  .wp-block-kadence-column.kb-section-has-link.kb-section-has-overlay.edu-hirer:hover
  .wp-block-kadence-advancedbtn
  > .kb-btn-global-outline
  .kb-svg-icon-wrap {
  color: var(--global-palette15);
}
.home
  .wp-block-kadence-column.kb-section-has-link.kb-section-has-overlay.edu-hirer
  .wp-block-kadence-advancedbtn
  > .kb-btn-global-outline
  .kb-svg-icon-wrap {
  transition: all 0.3s ease-in-out; /* Force icon to match transition */
}
/* ---------------------------------------------------
 * 32. Search Page
 * ---------------------------------------------------*/

/* ---------------------------------------------------
 * 50. BLOCK CUSTOMISATIONS
 * ---------------------------------------------------*/

/* Join the dots: dotted line linking Kadence info box steps,
 * drawn in when scrolled into view (JS adds .is-visible) */
.edu-join-the-dots {
  --step-circle: 80px; /* circle diameter */
  --step-pad-x: 4px; /* box left padding to circle */
  --step-pad-y: 20px; /* box top padding to circle */
  --step-gap: 24px; /* vertical gap between boxes */
  --step-draw: 0.6s; /* time to draw each line */
}

.edu-join-the-dots .wp-block-kadence-infobox {
  position: relative;
}

/* The connecting line */
.edu-join-the-dots .wp-block-kadence-infobox::after {
  content: "";
  position: absolute;
  left: calc(var(--step-pad-x) + var(--step-circle) / 2);
  top: calc(var(--step-pad-y) + var(--step-circle) / 2);
  height: calc(100% + var(--step-gap));
  width: 0;
  border-left: 3px dotted var(--global-palette4, #2d3748);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}

/* No line after the last step */
.edu-join-the-dots .wp-block-kadence-infobox:last-child::after {
  display: none;
}

/* Keep circles above the line */
.edu-join-the-dots .kt-blocks-info-box-media {
  position: relative;
  z-index: 3;
}

/* Draw-down animation */
.edu-join-the-dots.is-visible .wp-block-kadence-infobox::after {
  animation: step-line-draw var(--step-draw) ease-out forwards;
  animation-delay: calc(var(--step-i, 0) * var(--step-draw));
}

.edu-join-the-dots .wp-block-kadence-infobox:nth-child(2) {
  --step-i: 1;
}
.edu-join-the-dots .wp-block-kadence-infobox:nth-child(3) {
  --step-i: 2;
}
.edu-join-the-dots .wp-block-kadence-infobox:nth-child(4) {
  --step-i: 3;
}
.edu-join-the-dots .wp-block-kadence-infobox:nth-child(5) {
  --step-i: 4;
}
.edu-join-the-dots .wp-block-kadence-infobox:nth-child(6) {
  --step-i: 5;
}

@keyframes step-line-draw {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  .edu-join-the-dots .wp-block-kadence-infobox::after {
    clip-path: none;
    animation: none;
  }
}

/* ---------------------------------------------------
 * 60. WIDGETS
 * ---------------------------------------------------*/

/* ---------------------------------------------------
 * 70. PLUGINS
 * ---------------------------------------------------*/
/* 71. Bit Forms */
.bit-form h3 {
  /* font-size: 1.4rem;
  font-weight: 600; */
  margin-top: 1.5rem !important;
}
.bit-form .bf-section-field .bf-input-field-wrapper {
  background: #fff;
  border: none;
}

/* Multi-step header - step state classes are toggled by bit-multi-step-form.js */
.bit-form {
  --bf-step: var(--global-palette2);
  --bf-step-washed: color-mix(in srgb, var(--global-palette2) 25%, white);
}
/* Incomplete steps - washed out */
.bit-form ._frm-b-stp-hdr:not(.active):not(.completed) ._frm-b-stp-icn-cntn {
  background-color: var(--bf-step-washed);
  border-color: var(--bf-step-washed);
  color: var(--bf-step);
}
.bit-form
  ._frm-b-stp-hdr:not(.active):not(.completed)
  ._frm-b-stp-icn-cntn
  > span {
  color: var(--bf-step);
}
/* Completed steps - solid */
.bit-form ._frm-b-stp-hdr.completed ._frm-b-stp-icn-cntn {
  background-color: var(--bf-step) !important;
  border-color: var(--bf-step) !important;
  color: #fff;
}
/* Active step - solid with palette13 border and a small shadow */
.bit-form ._frm-b-stp-hdr.active ._frm-b-stp-icn-cntn {
  background-color: var(--bf-step) !important;
  border: 2px solid var(--global-palette10) !important;
  box-shadow: 0 2px 6px
    color-mix(in srgb, var(--global-palette2) 40%, transparent) !important;
  color: #fff;
}
.bit-form ._frm-b-stp-hdr.completed ._frm-b-stp-icn-cntn > span,
.bit-form ._frm-b-stp-hdr.active ._frm-b-stp-icn-cntn > span {
  color: #fff;
}
/* Progress bar fill */
.bit-form ._frm-b-stp-progress-fill {
  background-color: var(--bf-step);
}

/* Find a Venue Form */
body .single-content form {
  margin-bottom: 0;
}

input.bf-field,
select.bf-field {
  height: auto;
  line-height: unset !important;
  padding: 10px !important;
}

/* ---------------------------------------------------
 * 80. CUSTOM POST TYPES
 * ---------------------------------------------------*/
/* Case Study - smaller content headings for comfortable reading */
.single.single-case-study h2,
.single-post h2 {
  font-size: clamp(1.25rem, 1.125rem + 0.5vw, 1.5rem); /* 20px → 24px */
  line-height: 1.35;
}
.single.single-case-study h3,
.single-post h3 {
  font-size: clamp(1.125rem, 1.0625rem + 0.25vw, 1.25rem); /* 18px → 20px */
  line-height: 1.4;
}
.single.single-case-study h4,
.single-post h4 {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); /* 16px → 18px */
  line-height: 1.45;
}
.single.single-case-study h5,
.single-post h5 {
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem); /* 15px → 16px */
  line-height: 1.5;
}
.single.single-case-study h6,
.single-post h6 {
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem); /* 15px → 16px */
  line-height: 1.5;
  text-transform: uppercase;
}

/* Case Studies archive */
.archive .custom-archive-loop-item,
.blog .custom-archive-loop-item {
  display: flex;
  flex-direction: column;
}
.archive .custom-archive-loop-item .edu-archive-item-content,
.blog .custom-archive-loop-item .edu-archive-item-content {
  flex-grow: 1;
}
.archive
  .custom-archive-loop-item
  .edu-archive-item-content
  > .kt-inside-inner-col,
.blog
  .custom-archive-loop-item
  .edu-archive-item-content
  > .kt-inside-inner-col {
  flex-grow: 1;
}

.archive
  .custom-archive-loop-item
  .edu-archive-item-content
  > .kt-inside-inner-col
  > .edu-read-article,
.blog
  .custom-archive-loop-item
  .edu-archive-item-content
  > .kt-inside-inner-col
  > .edu-read-article {
  margin-top: auto;
}

/* Forms */
.post-type-archive-edu-forms .post-thumbnail {
  border-radius: 0;
}

/* Case Study card */
.edu-case-study-card .kb-query-item.case-study {
  display: flex;
  flex-direction: column;
}

.edu-offset-background-a .kt-inside-inner-col {
  background-position: 105% -20px;
}
.edu-offset-background-b .kt-inside-inner-col {
  background-position: 95% -100px;
}

.edu-case-study-card .edu-read-article {
  margin-top: auto;
}

/* Case Study Query Cards */
.kb-query-item.case-study .wp-block-kadence-column.edu-archive-item-content,
.kb-query-item.case-study
  .wp-block-kadence-column.edu-archive-item-content
  > .kt-inside-inner-col {
  flex-grow: 1;
}
/* ---------------------------------------------------
 * 99. HOTFIXES & BUGS
 * ---------------------------------------------------*/
