/* @import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.accordion:focus-visible {
  outline: 1px solid #ccc;
  background-color: #f0f6ff;
}

.list-padding-margin {
  padding: 0;
  margin: 0;
}

.list-padding-margin li {
  padding: 10px 0;
  word-wrap: break-word;
}

.w3-dropdown-content {
  display: none;
}

.w3-dropdown-content.is-open {
  display: block;
}

body {
  padding: 0;
  margin: 0;
  font-size: 18px;
  background-color: #fff;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* skips to main content - bypass nav */
.skip-link {
  position: absolute;
  left: -9999px;
  font-size: .75rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  background: yellow;
  padding: 8px;
  z-index: 1000;
}


/* allows the main content to grow and fill available space */
main {
  flex: 1;
}

p,
h1,
h2,
h3,
h4,
h5,
b,
div,
a,
i {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  line-height: 1.6;
}

i,
em {
  font-style: italic;
}

.bg-badger-red {
  background-color: #C5050C;
}

.txt-badger-red {
  color: #C5050C;
}

.link-badger-red {
  color: #C5050C;
  text-decoration: none;
}


.link-badge-white {
  color: white;
  text-decoration: none;
}

.link-blue {
  color: #13497e;
  text-decoration: underline;
}

.link-blue-no-line {
  color: #13497e;
  text-decoration: none;
}

.content-block {
  max-width: 1000px;
  margin: 0 auto;
}

.min-height500 {
  min-height: 500px;
}


.subheader-txt {
  font-weight: 500;
  color: #454545;
}

.pad-right {
  padding-right: 10%;
}

.pad-right-small {
  padding-right: 3%;
}

.pad-top {
  padding-top: 50px;
}

.pad-bottom {
  padding-bottom: 50px;
}

.weight500 {
  font-weight: 500;
}


/* ACCORDIAN */

.accordion {
  background-color: #fff;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  transition: 0.4s;
}

.accordion.active,
.accordion:hover {
  background-color: #ccc;
}

.accordion:after {
  content: '\002B';
  color: #777;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.accordion.active:after {
  content: "\2212";
}

.accordionPanel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}


/* home */

/* Hide by default */
#resources-menu {
  display: none;
}

/* Show when open */
#resources-menu.is-open {
  display: block;
  margin-left: -50px;
}

/* Show focus clearly in dropdown menu */
/* #resources-menu a:focus, */
#resources-menu a:focus-visible {

  background-color: #efefef;
  /* outline: 1px solid #f4c430; */
  /* adjust color if needed */
  /* outline-offset: 1px; */
  /* background-color: rgba(244, 196, 48, 0.15); */
}

/* Optional: hover + focus consistency */
/* #resources-menu a:hover,
#resources-menu a:focus {
    text-decoration: underline;
} */


.header-transparent-bg {
  /* background: rgba(55, 55, 55, 0.90); */
  background-color: white;
}

.header-material-icon {
  vertical-align: middle;
}

.header-logo-desktop {
  height: auto;
  width: 100%;
}

.hero_image {
  background-image: url('images/hero_msb.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 500px;
  width: 100%;
  overflow: auto;
}

.hero_nav_dark_gray {
  background: linear-gradient(to bottom, rgb(33, 33, 33), rgba(77, 77, 77, 0.05));
  height: 130px;
  width: 100%;
}

.hero_nav {
  font-size: 1.15rem;
  font-weight: 400;
  text-decoration: none;
}

.hero_nav_dropdown {
  background-color: transparent;
  border: none;
  color: white;
  cursor: pointer;

}

.standard_nav {
  font-size: 1.15rem;
  font-weight: 400;
  text-decoration: none;
  color: #454545;
}

.hero_quote {
  font-size: 1.5 rem;
}

.bg_hero_quote {
  width: 100%;
  overflow: auto;
  background-color: #f5f5f5;
}

.img_90 {
  width: 90%;
  display: block;
  margin: 0 auto;
}

.img_50 {
  width: 50%;
}

.img_33 {
  width: 33%;
}


.img_25 {
  width: 25%;
}

/* home - AFSL image */
.afsl-image {
  width: 100%;
  height: auto;
}

/* home events scroll */
.art-block {
  overflow: auto;
  padding: 0;
}

.uw-header {
  max-width: 1000px;
  margin: 0 auto;
}

/* google search */

/* ==========================================
   1. BODY LOCK 
   Prevents background scrolling when modal is open
   ========================================== */
body.search-open {
  overflow: hidden !important;
  height: 100vh;
}

/* ==========================================
   2. MODAL STRUCTURE 
   ========================================== */


.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Solid Gray Background (No transparency) */
  background-color: #eeeeee;

  z-index: 9999;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 60px 20px;
}



/* Toggle class for JavaScript */
.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  height: auto;
  /* Allow box to grow vertically */
  min-height: 200px;
  padding: 40px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 50px;
  /* Ensures space below results */
}

/* Close Button Styling */
#close-search {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

#close-search:hover {
  color: #ff0000;
}

/* ==========================================
   3. GOOGLE PSE UI OVERRIDES
   Forcing Google's injected styles to fit the modal
   ========================================== */
/* Remove Google's default borders/backgrounds */
.gsc-control-cse {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Prevent Google results from being cut off or having internal scrolls */
.gsc-results-wrapper-visible {
  height: auto !important;
  overflow: visible !important;
}

/* Match the input font to your site */
input.gsc-input {
  font-size: 16px !important;
  padding: 10px !important;
  border-radius: 4px !important;
}

/* Hide the 'X' inside Google's search box to use our own modal close button */
.gsst_a {
  padding-top: 0 !important;
}

/* ==========================================
   4. MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 600px) {
  .modal-overlay {
    padding: 20px 10px;
  }

  .modal-content {
    padding: 20px 15px;
    width: 95%;
  }
}

.gstl_50.gssb_c {
  z-index: 10000 !important;
  /* One higher than your modal's 9999 */
}

.search-icon {
  vertical-align: middle;
  cursor: pointer;
}






/* Horizontal scrolling container */

.content-block-art {
  display: flex;
  gap: 3%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px;
  scroll-padding-left: 16px;
  -webkit-overflow-scrolling: touch;
}

/* Each panel = 30% width */
.mob-block-art {
  flex: 0 0 30%;
  scroll-snap-align: start;
  box-sizing: border-box;
}


/* Pagination dots */
.mob-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 0;
  line-height: 0;
}

.mob-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

.mob-dots,
.mob-dots * {
  text-decoration: none !important;
}

.mob-dots .dot.active {
  background: #333;
  transform: scale(1.2);
}

/* Optional: hide scrollbar */
.content-block-art::-webkit-scrollbar {
  display: none;
}

.event-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 200px;
}

.event-description {
  padding: 10px 0;
}

.event-location {
  margin-top: auto;
}

.news-events-title {
  font-size: 1.25rem;
}

/* map image */
.map-image {
  width: 100%;
  height: auto;
}

/* PEOPLE DIRECTORY */

.dir-grid {
  display: grid;
  grid-template-columns: 20% 20% 20% 20% 20%;

}

.dir-grid>div {
  margin: 15px;
}

.peopleBox {
  cursor: pointer;
}

.dirImg {
  width: 96%;
  height: auto;
  margin: 5px auto;
  aspect-ratio: 1 / 1;
}

.do-not-display {
  display: none;
}

.small-pad {
  padding: 4px 0 0 0;
}

/* people directory - show contact information */


/* toggle for more info */
.info-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: sans-serif;
  margin-bottom: 10px;
  cursor: pointer;
}


.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #4CAF50;
}

input:focus+.slider {
  box-shadow: 0 0 1px #4CAF50;
}

input:checked+.slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded slider */
.slider.round {
  border-radius: 40px;
}

.slider.round:before {
  border-radius: 50%;
}

/* resources - cheese termization */

.cheeseApp {
  width: 800px;
  height: 600px;
  margin: 0 auto;
  border: none;
  outline: none;
}

.cheeseApp-container {
  margin: 0 auto;
  width: 650px;
}


.resource-logos {
  height: 60px;
  width: auto;
}

/* resources - food safety reviews */

#searchInput:focus {
  outline: none;
}

.fsr-dropdown {
  width: 50%;
}

.fsr-grid {
  display: flex;
  flex-wrap: wrap;
}

.fsr-grid>div {
  width: 31%;
  margin: 1%;
  min-height: 200px;
}

.break-word {
  word-wrap: break-word;
  /* word-break: break-all; */
}

/* resources - food safety experts */
.fse-grid {
  display: flex;
  flex-wrap: wrap;
}

.fse-grid>div {
  width: 48%;
  margin: 1%;
  min-height: 200px;
}


/* FRI meetings */
.flex-meetings {
  display: flex;
  gap: 2%;
  flex-wrap: wrap;
}

.flex-meetings>div {
  width: 31%;
  min-height: 200px;
  margin: 2% 0;
}

.meeting_media {
  bottom: 0;
  left: 0;
  right: 0;
}


/* FRESH seminars */
.fresh-seminar {
  display: flex;
  gap: 2%;
  flex-wrap: wrap;
}

.fresh-seminar>div {
  width: 31%;
  min-height: 200px;
  margin: 2% 0;
}

.media-link {
  font-size: 2.2rem;
  text-decoration: none;
  color: dodgerBlue;
  padding: 0 8px;
}


/* ACCORDIAN */

.accordion {
  background-color: #fff;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  transition: 0.4s;
}

.accordion.active,
.accordion:hover {
  background-color: #ccc;
}

.accordion:after {
  content: '\002B';
  color: #777;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.accordion.active:after {
  content: "\2212";
}

.accordionPanel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}


/* sponsors */

.spon-nav {
  gap: 25px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.sponsor-list {
  padding: 0;
  margin: 0;
}

.sponsor-list li {
  list-style: none;
  text-align: right;
}


/* footer */
.bg-footer {
  padding: 3% 0;
  width: 100%;
  background-color: #333;
}

.footer-bg {
  background-image: url(images/fri_vintage_logo.webp);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: contain;
}


.footer-icons {
  width: 30px;
  height: auto;
}

/* sponsor */
.login-logo {
  width: 75%;
  height: auto;
}

.footer-uw-logo {
  height: 100px;
  width: auto;
}


@media (max-width: 600px) {

  /* home - contact us section */
  .card-margin {
    margin: 2% 0;
  }

  /* events - home page */
  .mob-block-art {
    flex: 0 0 100%;
    padding: 0 2%;
  }

  /* directory - people */
  .dir-grid {
    grid-template-columns: 50% 50%;
  }

  .dir-grid>div {
    margin: 15px;
  }

  .dirImg {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .content-block {
    padding: 3%;
  }

  .fsr-dropdown {
    width: 100%;
  }

  .fsr-grid {
    flex-direction: column;
  }

  .fsr-grid>div {
    width: 100%;
  }

  /* FRI meetings */
  .flex-meetings {
    flex-direction: column;
  }

  .flex-meetings>div {
    width: 100%;
  }

  /* images - fsrl */
  .img_33 {
    width: 100%;
    display: block;
  }

  .spon-nav {
    gap: 10px;
    flex-direction: column;
    width: 100%;
  }

  .spon-nav>div a {
    width: 300px;
  }

  /* footer */
  .footer-icons {
    width: 60px;
    height: auto;
  }

}