/****************************************************
 * Custom Style: FoodSafetyOntario.com
 * Palette: Deep Blue (#21345b), Slate Grey (#5c6e81), Green (#3ec47c), White (#fff), Pale Blue (#e7f0fa), Very Light Grey (#f4f6fa)
 * Fonts: Manrope, Nunito, system-ui
 ****************************************************/

/* ==== RESET & GLOBAL ==== */
html, body {
  background: #f4f6fa;
  color: #1a2330;
  font-family: 'Nunito', 'Manrope', system-ui, Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  font-weight: 400;
}

a {
  color: #21345b;
  text-decoration: underline;
  transition: color .15s;
}
a:hover,
a:focus {
  color: #3ec47c;
  text-decoration: underline;
}

:focus {
  outline: 2px solid #3ec47c !important;
  outline-offset: 2px;
}

/* ==== HEADINGS ==== */
h1, h2, h3, h4, h5, h6, .fw-bold {
  font-family: 'Manrope', 'Nunito', Arial, Helvetica, sans-serif;
  color: #21345b;
  font-weight: 800;
  letter-spacing: .5px;
}

h1, .display-5 {
  font-size: 2.6rem;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  line-height: 1.22;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: #5c6e81;
}

.text-primary {
  color: #21345b !important;
}
.text-success {
  color: #3ec47c !important;
}
.text-secondary {
  color: #49505a !important;
}
.text-white-50 {
  color: rgba(255,255,255,.7) !important;
}

.fw-semibold {
  font-weight: 600 !important;
}
.fw-bold {
  font-weight: 800 !important;
}

/* ==== CONTAINERS & WRAPPERS ==== */
.site-wrapper {
  min-height: 100vh;
  background: #fff;
}



@media (min-width: 992px) {
  .page-content {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ==== HEADER & NAV ==== */
header {
  background: #21345b;
}

header .fs-3, .navbar .fs-3 {
  font-family: 'Manrope', 'Nunito', Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
}

header a, .navbar a {
  text-decoration: none;
}

.navbar {
  background: #fff !important;
  border-bottom: 1px solid #e0e6ef;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar .nav-link, .navbar .dropdown-item {
  font-size: 1.05rem;
  font-weight: 600;
  color: #21345b !important;
  letter-spacing: .1px;
  transition: color .12s;
}

.navbar .nav-link:hover, .navbar .dropdown-item:hover,
.navbar .nav-link:focus, .navbar .dropdown-item:focus {
  color: #3ec47c !important;
  background: none;
}

.navbar .dropdown-menu {
  box-shadow: 0 8px 20px rgba(33,52,91,.08);
  border-radius: .5rem;
  border: 1px solid #e0e6ef;
  margin-top: -3px !important;
  padding: .5rem 0;
}

@media (max-width:991.98px) {
  .navbar .dropdown-menu { margin-top: 0 !important; }
}

/* ==== HERO SECTION ==== */
.hero-section {
  background: linear-gradient(90deg,#21345b 60%,#3ec47c 200%);
  color: #fff;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.hero-section h1,
.hero-section .display-5 {
  color: #fff;
  font-weight: 800;
  font-size: 2.6rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-section .lead {
  color: rgba(255,255,255,.92);
  font-size: 1.25rem;
}

/* Hero Callout */
.hero-callout {
  background: #e7f0fa !important;
  border-left: 6px solid #3ec47c;
  border-radius: .5rem;
}
.hero-callout .fw-bold {
  color: #21345b;
}

/* ==== QUICK ACCESS PANEL ==== */
.quick-access-panel {
  background: #fff;
  border-bottom: 1px solid #e0e6ef;
  padding-top: 2.2rem;
  padding-bottom: 1.2rem;
}
.quick-card {
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 2px 10px rgba(33,52,91,0.03);
  border: 1px solid #e0e6ef;
  transition: box-shadow .17s, border-color .17s, transform .13s;
  cursor: pointer;
  min-height: 185px;
}
.quick-card:hover, .quick-card:focus {
  box-shadow: 0 2px 18px rgba(33,52,91,0.10);
  border-color: #3ec47c;
  transform: translateY(-2px) scale(1.022);
  text-decoration: none;
}
.quick-card h3 {
  color: #21345b;
  font-size: 1.1rem;
  font-weight: 800;
}
.quick-card i {
  font-size: 2.2rem !important;
  margin-bottom: .2rem;
}
.quick-card .text-secondary {
  color: #5c6e81 !important;
}

/* ==== RESOURCE INDEX ==== */
.resource-index-section {
  background: #fff;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.resource-index-section .rounded-3 {
  border-radius: .5rem !important;
  background: #f4f6fa !important;
  border: 1px solid #e0e6ef;
  box-shadow: 0 1px 4px rgba(33,52,91,0.03);
  margin-bottom: 0;
}

.resource-link {
  color: #21345b;
  font-weight: 600;
  text-decoration: underline;
  transition: color .12s;
  padding: 2px 0;
}
.resource-link:hover, .resource-link:focus {
  color: #3ec47c;
  text-decoration: underline;
}

/* ==== INTERACTIVE TOOLS SECTION ==== */
.tools-section {
  background: #e7f0fa;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.tool-card {
  border-radius: .5rem;
  border: 1px solid #e0e6ef;
  box-shadow: 0 2px 12px rgba(33,52,91,0.04);
  background: #fff;
  transition: box-shadow .14s, border-color .14s, transform .11s;
}
.tool-card:hover, .tool-card:focus {
  box-shadow: 0 3px 18px rgba(62,196,124,0.10);
  border-color: #3ec47c;
  transform: translateY(-2px) scale(1.015);
}
.tool-card i {
  font-size: 2.1rem !important;
  margin-bottom: .3rem;
}
.tool-card .btn {
  margin-top: .7rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: .5rem;
  text-decoration: none;
}

/* ==== FEATURED GUIDES ==== */
.featured-guides .guide-card {
  background: #fff;
  border-radius: .5rem;
  border: 1px solid #e0e6ef;
  box-shadow: 0 2px 8px rgba(33,52,91,0.03);
  transition: border-color .13s, box-shadow .15s, transform .10s;
  margin-bottom: 0;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.featured-guides .guide-card:hover, .featured-guides .guide-card:focus {
  border-color: #3ec47c;
  box-shadow: 0 2px 18px rgba(62,196,124,0.09);
  transform: translateY(-1.5px) scale(1.01);
}
.featured-guides .guide-card h3 {
  font-size: 1.17rem;
  color: #21345b;
}
.featured-guides .guide-card .text-secondary {
  color: #5c6e81 !important;
}
.featured-guides .guide-card a {
  color: #3ec47c;
  font-weight: 700;
  text-decoration: underline;
  transition: color .13s;
}
.featured-guides .guide-card a:hover, .featured-guides .guide-card a:focus {
  color: #21345b;
  text-decoration: underline;
}

/* ==== FAQ SNAPSHOT ==== */
.accordion-item {
  border: none;
  background: #fff;
  border-radius: .5rem !important;
  margin-bottom: 1rem;
  box-shadow: 0 1px 7px rgba(33,52,91,0.04);
}
.accordion-button {
  background: #fff;
  color: #21345b;
  font-weight: 800;
  font-size: 1.06rem;
  border-radius: 0 !important;
  outline: none !important;
  border: none;
  box-shadow: none !important;
  transition: background .12s;
  padding: 1rem 1.2rem;
}
.accordion-button:hover, .accordion-button:focus {
  background: #e7f0fa !important;
  color: #3ec47c;
}
.accordion-button:not(.collapsed) {
  background: #e7f0fa !important;
  color: #3ec47c;
  box-shadow: none !important;
}
.accordion-body {
  background: #fff;
  color: #49505a;
  font-size: 1rem;
  border-top: 1px solid #e0e6ef;
  padding: 1.1rem 1.2rem 1.1rem 2.1rem;
}

/* Remove border radius from accordion title wrappers. */
.accordion .accordion-item .accordion-header .accordion-button {
  border-radius: 0 !important;
}

/* ==== RESOURCE LIBRARY PREVIEW ==== */
.resource-library-preview .resource-preview-card {
  background: #fff;
  border-radius: .5rem;
  border: 1px solid #e0e6ef;
  box-shadow: 0 1px 5px rgba(33,52,91,0.04);
  transition: border-color .13s, box-shadow .14s, transform .10s;
  margin-bottom: 0;
  min-height: 110px;
  display: flex;
  align-items: flex-start;
}
.resource-library-preview .resource-preview-card:hover, .resource-library-preview .resource-preview-card:focus {
  border-color: #3ec47c;
  box-shadow: 0 2px 12px rgba(62,196,124,0.09);
  transform: translateY(-1.5px) scale(1.01);
}
.resource-library-preview .resource-preview-card .fw-bold {
  color: #21345b;
  font-size: 1.07rem;
}
.resource-library-preview .resource-preview-card i {
  font-size: 1.85rem !important;
  margin-right: .4rem;
  color: #3ec47c;
}

/* ==== INTERNAL LINKING HIGHLIGHTS ==== */
.internal-linking-highlights a {
  color: #21345b;
  text-decoration: underline;
  font-weight: 600;
  transition: color .13s;
}
.internal-linking-highlights a:hover, .internal-linking-highlights a:focus {
  color: #3ec47c;
  text-decoration: underline;
}

/* ==== AT-A-GLANCE SIDEBAR ==== */
.at-a-glance {
  background: #fff;
  border-radius: .5rem;
  border: 1px solid #e0e6ef;
  box-shadow: 0 1px 6px rgba(33,52,91,0.04);
  margin-bottom: 1.5rem;
}
.at-a-glance .fw-bold {
  color: #21345b;
}
.at-a-glance .text-secondary {
  color: #5c6e81 !important;
}
.at-a-glance i {
  font-size: 1.23rem !important;
  margin-right: .4rem;
}

/* ==== "MAKE IT SIMPLE" SIDEBAR ==== */
.make-it-simple-box {
  background: #e7f0fa;
  border-left: 6px solid #3ec47c;
  border-radius: .5rem;
  box-shadow: 0 1px 6px rgba(33,52,91,0.04);
  padding: 1.25rem 1.2rem;
  margin-bottom: 2rem;
  font-size: 1.07rem;
}
.make-it-simple-box .fw-bold {
  color: #21345b;
  font-size: 1.15rem;
  font-weight: 800;
}
.make-it-simple-box .bi-info-circle {
  color: #3ec47c;
  font-size: 1.55rem;
  margin-right: .5rem;
  vertical-align: middle;
}
.make-it-simple-box .text-secondary {
  color: #49505a !important;
}

/* ==== FOOTER ==== */
footer {
  background: #f4f6fa;
  border-top: 1px solid #e0e6ef;
  color: #49505a;
  font-size: 1rem;
}
footer .fs-4 {
  font-family: 'Manrope', 'Nunito', Arial, Helvetica, sans-serif;
  color: #21345b;
  font-weight: 800;
  letter-spacing: 1px;
}
footer ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 6px;
}
footer .footer-link {
  color: #21345b;
  text-decoration: underline;
  font-weight: 600;
  transition: color .13s;
}
footer .footer-link:hover, footer .footer-link:focus {
  color: #3ec47c;
  text-decoration: underline;
}
footer .small {
  font-size: .97rem !important;
}

/* ==== CARDS (GLOBAL) ==== */
.card {
  border-radius: .5rem !important;
  border: 1px solid #e0e6ef !important;
  box-shadow: 0 1px 6px rgba(33,52,91,0.035);
  background: #fff;
  transition: border-color .13s, box-shadow .13s, transform .10s;
}
.card:hover, .card:focus {
  border-color: #3ec47c !important;
  box-shadow: 0 2px 12px rgba(62,196,124,0.08);
  transform: translateY(-1.5px) scale(1.01);
}
.card .card-body {
  padding: 1.2rem 1.1rem 1.2rem 1.1rem;
}

/* ==== BUTTONS ==== */
.btn {
  font-family: 'Manrope', 'Nunito', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.06rem;
  border-radius: .5rem;
  text-decoration: none !important;
  border: none;
  padding-top: .65rem;
  padding-bottom: .65rem;
  transition: background .13s, color .13s, border-color .13s, box-shadow .13s;
}
.btn-primary {
  background: #21345b;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #172749;
  color: #fff;
}
.btn-success {
  background: #3ec47c;
  color: #fff;
}
.btn-success:hover, .btn-success:focus {
  background: #269b5e;
  color: #fff;
}
.btn-outline-primary {
  color: #21345b;
  border: 2px solid #21345b;
  background: #fff;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: #21345b;
  color: #fff;
  border-color: #21345b;
}
.btn-outline-success {
  color: #3ec47c;
  border: 2px solid #3ec47c;
  background: #fff;
}
.btn-outline-success:hover, .btn-outline-success:focus {
  background: #3ec47c;
  color: #fff;
  border-color: #3ec47c;
}

/* Remove border-radius from .btn if it has colored border (avoid colored border + radius) */
.btn-outline-primary, .btn-outline-success {
  border-radius: 0;
}

/* ==== MODAL OVERRIDES ==== */
.modal-content {
  border-radius: .5rem;
  border: 1px solid #e0e6ef;
}
.modal-header {
  background: #e7f0fa;
  border-bottom: 1px solid #e0e6ef;
}
.modal-title {
  font-family: 'Manrope', 'Nunito', Arial, Helvetica, sans-serif;
  color: #21345b;
  font-weight: 800;
  font-size: 1.25rem;
}

/* ==== CUSTOM ICON SIZES ==== */
.bi {
  vertical-align: -.125em;
}

/* ==== IMAGES ==== */
.img-fluid {
  border-radius: .5rem;
  box-shadow: 0 2px 10px rgba(33,52,91,0.09);
}

/* ==== UTILITY CLASSES ==== */
.bg-white { background: #fff !important; }
.bg-light-blue { background: #e7f0fa !important; }
.bg-very-light-grey { background: #f4f6fa !important; }
.text-slate { color: #5c6e81 !important; }
.rounded-3 { border-radius: .5rem !important; }
.shadow-sm { box-shadow: 0 2px 10px rgba(33,52,91,0.04) !important; }
.mt-auto { margin-top: auto !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }
  .quick-card,
  .resource-index-section .rounded-3,
  .tool-card,
  .featured-guides .guide-card,
  .resource-library-preview .resource-preview-card,
  .at-a-glance,
  .make-it-simple-box {
    min-height: unset !important;
  }
  .img-fluid {
    width: 100%;
    height: auto;
  }
}

/* ==== AD BLOCK STYLES ==== */
.adsense-block {
  background: #fff;
  border-radius: .5rem;
  border: 1px solid #e0e6ef;
  box-shadow: 0 2px 10px rgba(33,52,91,0.05);
  padding: 1.2rem 1rem;
  margin-bottom: 2rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 575.98px) {
  .adsense-block {
    padding: .5rem .3rem;
  }
}

/* ==== HIDE DEFAULT BOOTSTRAP FOCUS OUTLINES ON BUTTONS ==== */
button:focus {
  outline: 2px solid #3ec47c !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

/* ==== MISC ==== */
ul {
  margin-bottom: 1rem;
}
li {
  margin-bottom: .25rem;
}

/* ==== PLACE-HOLDER IMAGE SPACING ==== */
.img-fluid {
  margin-bottom: 1.2rem;
}

/* ==== CUSTOM SCROLLBARS (Webkit browsers only) ==== */
::-webkit-scrollbar {
  width: 10px;
  background: #f4f6fa;
}
::-webkit-scrollbar-thumb {
  background: #e0e6ef;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3ec47c;
}

/* ==== END ==== */