/*
Theme Name:  Fort Nelson School District
Description: Designed to be flexible, versatile theme. Its collection of templates and patterns tailor to different needs.. A multitude of possibilities open up with just a few adjustments to color and typography. This theme comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4.
Requires at least: 6.0
Requires PHP: 8.0
Tested up to: 8.3
Author: Invision Web
Author URI: https://www.invisionweb.ca
Version: 5.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: FNSD
*/



@media (max-width: 1320px) {
  .mega-menu-wrap .mega-sub-menu .wp-block-kadence-rowlayout .kt-row-column-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: clamp(8px, 1.2vw, 16px);
  }

  .mega-menu-wrap .mega-sub-menu .wp-block-kadence-rowlayout .kadence-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .mega-menu-wrap .mega-sub-menu .wp-block-kadence-rowlayout .kt-inside-inner-col {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .mega-menu-wrap .mega-sub-menu .wp-block-kadence-rowlayout img,
  .mega-menu-wrap .mega-sub-menu .wp-block-kadence-rowlayout .wp-block-image,
  .mega-menu-wrap .mega-sub-menu .wp-block-kadence-rowlayout .wp-block-media-text,
  .mega-menu-wrap .mega-sub-menu .wp-block-kadence-rowlayout .wp-block-embed {
    max-width: 100% !important;
    height: auto !important;
  }
  
}

@media (max-width: 1368px) { 
  #mega-menu-wrap-top_menu #mega-menu-top_menu > li.mega-menu-item > a.mega-menu-link {
    padding: 0px 0.65em !important;
    font-size: 1.05rem !important;
 margin-top: 0.5em;

  }
}



@media (max-width: 768px) { 
.wp-block-site-logo img  {
    width: 125px;
}
}



/* Default safety: nothing shown until a site role is known */
.district-school-footer-list,
.school-footer-erase {
  display: none;
}

/* Parent (district) site: show the district list; hide the “erase” block */
.is-district-site .district-school-footer-list { display: block; }
.is-district-site .school-footer-erase { display: none; }

/* All subsites: hide the district list; show the “erase” block */
.is-school-site .district-school-footer-list { display: none; }
.is-school-site .school-footer-erase { display: block; }


.remove-underline-links li a {
text-decoration: unset !important;
}

body.attachment iframe {height: 85vh;}

#cookie-consent-banner p {
     margin: 0;
     padding: 0;
}
#cookie-consent-banner button {
     margin-left: 1rem;
     background: #fff;
     color: #000;
     border: none;
     padding: 0.5rem 1rem;
     cursor: pointer;
     border-radius: 4px;
}

.quick-links > a {
    background-color: #010101 !important;
    color: #FFF !important;
    padding: 0 1.25em !important;
    border-radius: 10px !important;
}

ul.wp-block-list {
    margin-top: 0;
}
.mega-sub-menu .bot-event-item {
    background-color: #f4f4f0 !important;
}
.mega-sub-menu .bot-block-event-list {
    padding: 1em 0 !important;
}
.bot-event-item {
margin-bottom: 0.5em !important;
}
.horizontal .bot-block-event-list {
padding: 0.5em !important;
}


/* Tunable z-index tokens */
:root{
  --mmm-z: 999999;      /* Mega menu + submenus */
  --header-z: 999900;   /* Header / sticky header shell */
  --content-z: 0;       /* Main content baseline */
}

/*
#masthead,
.site-header,
.header-area,
.kadence-sticky-header,
.kadence-sticky-header.is-sticky {
  position: relative;
  z-index: var(--header-z);
  overflow: visible; 
}
*/

#mega-menu-wrap-header,
#mega-menu-wrap-primary,
ul#mega-menu-header,
ul#mega-menu-primary {
  position: relative;
  z-index: var(--mmm-z);
}
ul#mega-menu-header .mega-sub-menu,
ul#mega-menu-primary .mega-sub-menu {
  z-index: calc(var(--mmm-z) + 1);
}
.header-top,
.site-header-wrap,
.site-header-row-container,
.kadence-header,
.kadence-header--row,
.kb-row-layout-wrap,
.kt-row-layout-inner {
  overflow: visible !important;
}

.site-main,
.content-area,
#inner-wrap,
#primary,
.entry-content {
  position: relative;
  z-index: var(--content-z);
  overflow: visible;
}

.kadence-transparent-header .site-header,
.kadence-transparent-header .site-header-wrap {
  overflow: visible !important;
  z-index: var(--header-z);
}

.kb-splide .splide__list {
height: auto !important;
}

.post-type-archive-bot_event .wp-block-post-title {
display: none; }

.bot-event-item .event-title {
    margin-bottom: 0 !Important;
    padding-bottom: 0!Important;
}
.bot-block-event-list {
    border-radius: 10px;
}

.iframe-container iframe {
    width: 100%;
    min-height: 600px;
    border: 0;
}
.dalert__content p {
    color: #fff;
}
.remove-underline-links li a {
text-decoration: unset !important;
}

.strongstart-list { list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.strongstart-item { border:1px solid #eee; border-radius:8px; padding:1rem; background:#fff; }
.ss-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:.3rem; }
.ss-name { font-weight:700; font-size:1.05rem; color:#a94442; text-decoration:none; }
.ss-status { font-size:.75rem; padding:.2rem .6rem; border-radius:999px; font-weight:600; }
.ss-status--open { background:#e9f7ef; color:#1b5e20; border:1px solid #b8dfc6; }
.ss-status--closed { background:#fdecec; color:#b71c1c; border:1px solid #f1b7b7; }
.ss-addr, .ss-phone, .ss-hours { margin:.25rem 0; font-size:.9rem; }



form.edutheme-schools-map__filters, .edutheme-grid-head {
    display: none;
}
div#edutheme-grid {
    margin-top: 2.5rem;
}

body.home select {
padding: 1em 2em;
width: 100%;
}

