/* ==========================================================================
   Theme Info
   ========================================================================== */
/*
Theme Name: Educate Before Eight
Theme URI:  https://educatebeforeeight.com
Description: Educate Before Eight child theme
Author:      JF Designs
Author URI:  https://jfdesigns.com
Template:    Divi
Version:     1.1
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --primary-color:      hsla(260, 37%, 42%, 1);
  --primary-color-dark:  hsla(110, 45%, 35%, 1);
  --button-color-fill:   hsla(40, 100%, 50%, 1);
  --button-color-fill-hover:   hsla(260, 36%, 41%, 1);
  --button-color-outline:  hsla(110, 45%, 35%, 1);
  --button-color-hover:  hsla(260, 36%, 41%, 1);


 /* Fluid clamp-based font sizes */
/* 	Recipe: Rem value: 10px  ||| Base: 16px-18px ||| Screen: 360px > 1280px ||| Ratio: 1.25 > 1.333  1 -1.01 individual ||| Labels: h6,base,h5,h4,h3,h2,h1 */
--fs-h6:  clamp(1.6rem, 0.2vi + 1.5rem, 1.8rem);
--fs-base: clamp(1.6rem, 0.2vi + 1.5rem, 1.8rem);
--fs-h5: clamp(2rem, 0.24vi + 1.91rem, 2.2rem);
--fs-h4: clamp(2.5rem, 0.6vi + 2.3rem, 3rem);
--fs-h3: clamp(3rem, 0.7vi + 2.8rem, 3.6rem);
--fs-h2: clamp(3.3rem, 0.8vi + 3rem, 4rem);
--fs-h1: clamp(3.3rem, 1.7vi + 2.7rem, 4.8rem);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-size:  var(--fs-base);
  line-height:     1.7;
  font-weight:     400;
  font-family:     Roboto, Helvetica, Arial, sans-serif;
  transition:      all 300ms ease;
}

/* Reset paragraph spacing */
p {
  margin-top: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.jfd-base-text h1,
.jfd-base-text h2,
.jfd-base-text h3,
.jfd-base-text h4,
.jfd-base-text h5,
.jfd-base-text h6 {
  margin:       0;
  font-weight:  400;
  overflow-wrap: break-word;
  hyphens: none;
}

.jfd-base-text h1,.et_pb_module.headline {
  font-size:  var(--fs-h1);
  line-height: 1.2;
}

.jfd-base-text h2, .et_pb_module.subhead-lg {
  font-size:  var(--fs-h2);
  line-height: 1.25;
}

.jfd-base-text h3, .et_pb_module.subhead-md {
  font-size:  var(--fs-h3);
  line-height: 1.3;
}

.jfd-base-text h4, .et_pb_module.subhead-reg {
  font-size:  var(--fs-h4);
  line-height: 1.35;
}

.jfd-base-text h5, .et_pb_module.subhead-sm {
  font-size:  var(--fs-h5);
  line-height: 1.5;
}

.jfd-base-text h6, .et_pb_module.subhead-x-sm {
  font-size:       var(--fs-h6);
  line-height:     1.65;
  text-transform:  uppercase;
}

.jfd-base-text,
.jfd-base-text p, .et_pb_module.base-text{
  font-size:  var(--fs-base);
  line-height: 1.7;
}

.jfd-base-text.et_pb_bg_layout_light .et_pb_post p{
	/* blog module grid excerpt font-size */
  font-size: .85em !important;
  line-height: 1.7;
}

.et_pb_module.copyright{
  font-size:  1.2rem;
  line-height: 1.7;
}

/* Standalone headings */
h1 {
  margin-bottom: 0.125em;
  line-height:   1.25 !important;
}

/* Space before a heading following text or lists */
p + h1, p + h2, p + h3, p + h4, p + h5, p + h6,
ul + h1, ul + h2, ul + h3, ul + h4, ul + h5, ul + h6,
ol + h1, ol + h2, ol + h3, ol + h4, ol + h5, ol + h6 {
  margin-top: 0.75em !important;
}
.jfd-base-text li{
	margin-bottom:5px
}


/* Last-of-type paragraph padding */
p:not(.has-background):last-of-type {
  padding-bottom: 1rem;
}

blockquote > p:not(.has-background):last-of-type {
  padding-bottom: 0 !important;
}

sup {
  bottom:     0.5em;
  font-size:  0.7em;
}

/* ==========================================================================
   Layout & Grid Helpers
   ========================================================================== */
/* Clearfix */
.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}

.clearfix:after {
  clear: both;
}

/* Multi-column List layout */
ul.service-list {
    columns: 2 24rem;
    column-gap: 6rem;
}
ul.service-list li{
    break-inside: avoid-column;
}
ul.service-list li.filler {
  visibility: hidden;
  height: 4rem; /* Adjust this to control how short the second column appears */
}
@media (max-width: 1079px) {
 ul.service-list li.filler {
 	display:none /* Hide on mobile */
	}
}

/* Multi-column flex layout */
.mutli-col {
  display:         flex;
  flex-wrap:       nowrap;
  column-gap:      6rem;
  justify-content: space-around;
}
.mutli-col ul {
  margin:  0;
  padding: 0;
}

/* Full-height image column for Divi */
.jfd-full-height-image-column,
.jfd-full-height-image-column .et_pb_image_wrap {
  height: 100%;
}

.jfd-full-height-image-column img {
  object-fit: cover;
  height:     100%;
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Links */
a {
  color:      #3B6B80;
  transition: all 0.5s ease;
}

a:hover {
  color: #89a6b2;
}

/* “Read More” button */
a.more-link,
article a.more-link,
.et_pb_post .post-content a.more-link {
  position:       relative;
  display:        inline-block;
  clear:          both;
  text-align:     center;
  padding:        0.6em 1em;
  color:          #ffffff !important;
  border:         0rem solid var(--button-color-fill) !important;
  border-radius:  5rem;
  /* letter-spacing: 0.05em; */
  font-size:      .85em;
  line-height:    1.3rem;
  font-weight:    600 !important;
  text-transform: uppercase !important;
  background:     var(--button-color-fill);
}

a.more-link:hover,
article a.more-link:hover,
.et_pb_post .post-content a.more-link:hover{
  padding:    0.6em 2em 0.6em 1em !important;
  background: var(--button-color-fill-hover);
}

a.more-link::after {
  content:        "\35";
  font-family:    'ETmodules' !important;
  font-size:      1.2em;
  position:       absolute;
  opacity:        0;
  margin-left:    -1em;
}

a.more-link:hover::after {
  opacity:     1;
  margin-left: 0;
}

/* Divi modal sticky menu fix */
.mce-panel .mce-stack-layout-item.mce-first {
  position: sticky !important;
  top:      -6rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.padding-0,
.no-padding {
  padding: 0 !important;
}

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

.display-inline-block {
  display: inline-block !important;
}

/* ==========================================================================
   Color swatch samples (style guide)
   ========================================================================== */

/* Flex-grid container unchanged */
ul.color-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Make each “card” a column flexbox that pushes its span to the bottom */
ul.color-list li {
  flex: 0 1 120px;
  height: 120px;
  margin: 8px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  box-shadow: 0px 13px 30px -18px rgba(0, 0, 0, 0.2);

  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* push inner content to the bottom */
  align-items: stretch;        /* make children (the span) fill full width */
  position: relative;
}

/* Full-width, bottom-aligned label */
ul.color-list li span {
  display: block;
  width: 100%;                 /* span now covers entire li width */
  background: #fff;             /* hides any colored edges */
  padding: 4px 0;               /* adjust vertical padding as you like */
  font-family: monospace;
  font-size:clamp(1.6rem, 0.59vw + 1.122rem, 1.8rem);
  text-align: center;           /* center your hex code text */
  border-radius: 0;             /* remove rounding so it’s flush */
  z-index: 1;
}

/* ==========================================================================
   Dynamic Font Details (style guide)
   ========================================================================== */

span.current-font-zize-ofthis-element{ 
	font-size:clamp(1.6rem, 0.3vi + 1.46rem, 1.8rem); 
	font-family:monospace !important
}

span.current-viewport-width {
	font-size: 2em;
font-family:monospace !important
}

.label {
  font-weight: bold;
  color: #444;
  display: inline-block;
  min-width: 100px;
}

/* ==========================================================================
   Forms & Contact Form 7 Overrides
   ========================================================================== */
/* Remove stubborn Divi pseudo-border */
#main-content .container:before {
  content: none;
}

/* Smart Grid container override */
.cf7sg-container .cf7-smart-grid.has-grid .container {
  display:      block;
  width:        100% !important;
  max-width:    100% !important;
  margin:       0 auto !important;
  padding:      0 !important;
  flex-wrap:    wrap;
}

.cf7sg-container {
  line-height: 1.7 !important;
}

/* CF7 grid columns breakpoints */
@media (max-width: 980px) {
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns {
    float:  none !important;
    width:  100%   !important;
    margin: 0      !important;
  }
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-half {
    float:       left !important;
    width:       48.93617% !important;
    margin-left: 2.12766%  !important;
  }
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-half:first-child {
    margin-left: 0 !important;
  }
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-third {
    float:       left !important;
    width:       31.91489% !important;
    margin-left: 2.12766%  !important;
  }
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-third:first-child {
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns,
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-half,
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-third {
    float:  none !important;
    width:  100%   !important;
    margin: 0      !important;
  }
  .cf7sg-container .cf7-smart-grid.has-grid .container.spacer-margin-top {
    margin-top: 1.5rem !important;
  }
}

/* Signature field styling */
.wpcf7-form-control-signature-body canvas {
  width:         100%;
  height:        15rem;
  border:        0.1rem solid #e0e0e0;
  border-radius: 0.5rem;
  background:    #eee;
}

.wpcf7-form-control-signature-wrap {
  width:  70%     !important;
  height: 16.5rem !important;
}

@media (max-width: 768px) {
  .wpcf7-form-control-signature-wrap {
    width: 100% !important;
  }
}

/* Other CF7 tweaks */
input[type="button" i] {
  color:          #800 !important;
  border:         0.2rem solid #800;
  font-size:      1.4rem;
  font-weight:    500;
  padding:        0.3em 1em;
  line-height:    1.7em !important;
  background:     transparent;
  border-radius:  0.3rem;
}

input[type="button" i]:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.wpcf7-form-control::placeholder {
  color: #333 !important;
}

.wpcf7-response-output {
  display: block;
}

.wpcf7 form.sent .cf7sg-response-output {
  display: none !important;
}

.wpcf7-not-valid-tip {
  font-size:      1rem    !important;
  letter-spacing: 0.5px   !important;
  font-weight:    700     !important;
  display:        block   !important;
  position:       relative!important;
  top:            100%    !important;
  padding-top:    0.3rem  !important;
  line-height:    1.2em   !important;
  z-index:        7777    !important;
  background:     none    !important;
}

.wpcf7-not-valid {
  border: 0.1rem solid red !important;
}

.wpcf7-form.sent div.container {
  display:    none !important;
  transition: all 0.5s ease;
}

.wpcf7 div.wpcf7-response-output {
  font-size:   2.2rem;
  text-align:  center;
}

/* ==========================================================================
   Components: Navigation & Menu
   ========================================================================== */
/* Menu search input */
.et_pb_menu .et_pb_menu__search-input,
.et_pb_fullwidth_menu .et_pb_menu__search-input {
  width:          100%;
  padding:        1rem;
  background:     #7B8794;
  color:          #fff;
  border:         none;
  border-radius:  0.3rem;
}

.et_pb_menu__search-input::placeholder {
  color: #fff;
}

/* Desktop menu tweaks */
@media (min-width: 980px) {
  #fluid-header {
    background: #fff;
  }

  #fluid-header .et_pb_menu__menu {
    display: block;
    margin:  auto 0;
    padding-bottom: 0;
  }

  #fluid-header .et_mobile_nav_menu {
    display: none;
  }

  #fluid-header .et_pb_menu__search-button {
    font-size:   clamp(1.6rem, 0.1vw + 1.1rem, 1.8rem);
    line-height: clamp(1.6rem, 0.1vw + 1.1rem, 1.8rem);
    display:     flex;
    margin-left: 3rem;
  }
}

#fluid-header a {
  font-size: clamp(1.6rem, 3.33vw - 2.2rem, 1.6rem);
}

#fluid-header li li a {
  line-height: 1.7em;
}

#fluid-header .et_pb_menu .et-menu li {
  padding-left: clamp(0.2rem, 6vw - 4.2rem, 2rem);
}

#fluid-header .et_pb_menu .et-menu li li {
  padding-left: 0;
}

.et_pb_text a {
  transition: all 0.3s linear;
}

/* Sticky menu hover */
#fluid-header .et_pb_sticky .et_pb_menu ul li a:hover {
  color: var(--primary-color) !important;
}

/* Dropdown submenu */
.et_pb_menu .et_pb_menu__menu .sub-menu {
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.8);
}

.et-menu li li.menu-item-has-children > a:first-child:after {
  top: 0;
}

.et_pb_menu .et_pb_menu__menu .sub-menu a {
  width:           24rem;
  text-transform:  none !important;
}

/* Auto-width dropdown */
@media (min-width: 981px) {
  .nav li ul {
    width:          fit-content;
    display:        flex;
    flex-direction: column;
  }
  .nav li li {
    white-space: nowrap;
  }
  .nav li li a {
    width: auto !important;
  }
}

/* Menu CTA button */
@media (min-width: 980px) {
  #fluid-header .menu_cta {
    padding:        clamp(0.5rem, 0.74vw + 0.153rem, 1rem) !important;
    height:         4.6rem;
    margin:         auto 0 0 3rem;
    color:          var(--primary-color);
    background:     #fff;
    border-radius:  0.5rem;
    font-weight:    600;
    cursor:         pointer;
    transition:     all 0.3s linear;
  }

  #fluid-header .et_pb_sticky .menu_cta {
    color:      #fff;
    background: var(--primary-color);
  }

  #fluid-header .menu_cta:hover {
    background: var(--primary-color);
  }

  #fluid-header .et_pb_sticky .menu_cta:hover {
    background: var(--primary-color-dark);
  }

  #fluid-header .menu_cta:active {
    box-shadow: 0 0.2rem 0 0 rgba(0, 0, 0, 0.2);
    top:        0.1rem;
  }

  #fluid-header .menu_cta a {
    padding:     1.5rem;
    text-align:  left;
    color:       var(--primary-color) !important;
  }

  #fluid-header .et_pb_sticky .menu_cta a:hover {
    color: #fff !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 890px) {
  .mutli-col,
  .mutli-col-no-wrap {
    flex-direction: column;
    gap:            0;
    justify-content:center;
  }
  .mutli-col-no-wrap {
    flex-direction: row;
    gap:            3rem;
  }
}

@media (max-width: 767px) {
  .et_pb_blog_grid .et_pb_post {
    margin:     3.6rem 0 !important;
    /* box-shadow: 0 0.9rem 2.8rem -1.5rem rgba(0, 0, 0, 0.5); */
  }
}

@media (max-width: 768px) {
  .cf7sg-container .cf7-smart-grid.has-grid .container.spacer-margin-top {
    margin-top: 1.5rem !important;
  }
  .wpcf7-form-control-signature-wrap {
    width: 100% !important;
  }
}
