/* =========================================
CUSTOM CSS for THE LIHEAP CLEARINGHOUSE
Mainly color changes and theme overrides
to the Main Menu on mobile
========================================= */

a[name] {
  scroll-margin-top: 60px;
}

.borderless{
  border-style: hidden;
  border-width: 0px;
}

/* Use Oswald Regular on all headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  scroll-margin-top: 60px;
}

h5 {
    letter-spacing: .5px;
}

.accordion-header h5 {
  font-family: "Quicksand", sans-serif !important;
}

blockquote {
  font-family: "Oswald", sans-serif;
  border-left: 4px solid #eeeeee;
  padding-left: 15px;
}

.table tbody{
 --bs-table-color:black;
}
 
.table > :not(caption) > * > * {
background-color: unset;
}

thead, tbody, tfoot, tr, td, th {
    border-width: 2px;
}

/* pads the page title so there's a little room between the nav menu and the page title itself */
h1.page-title {
    margin-top: 20px !important;
}

/*
tr { 
  background-color: #dedefd !important;
  background-color: #ffffff !important;
} */


/* ==== SLICK SLIDER ON HOME PAGE ==== */
/* Slick wrapper */
.slick {
  position: relative;
}

/* Slider container */
.slick__slider {
  position: relative; /* anchor for arrow positioning */
}

.slick__slider,
.slick-list,
.slick-track,
.slick__slide {
  touch-action: pan-y pinch-zoom !important;
}

/* Slides */
.slick__slide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Allow pinch to zoom */
.slick__slide,
.slick-list,
.slick-track {
  touch-action: auto !important;
}

/* Custom arrows */
.slick__arrow--prev,
.slick__arrow--next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: #336a90;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  pointer-events: auto;
}

/* Positioning */
.slick__arrow--prev { left: 20px; }
.slick__arrow--next { right: 20px; }

/* Icons */
.slick__arrow--prev:before {
  content: '<';
  color: #fff;
  font-size: 26px;
  line-height: 42px;
  text-align: center;
  display: block;
  font-family: Arial, sans-serif;
}

.slick__arrow--next:before {
  content: '>';
  color: #fff;
  font-size: 26px;
  line-height: 42px;
  text-align: center;
  display: block;
  font-family: Arial, sans-serif;
}

/* Hover */
.slick__arrow--prev:hover,
.slick__arrow--next:hover {
  background: #285577;
}

/* ==== END SLICK SLIDER ON HOME PAGE ==== */


.dialog-off-canvas-main-canvas {
  background-color: #f6f6f6;

.region-secondary-header {
  background-color: #f6f6f6;
  border-top: none !important;
  border-bottom: none !important;
}

.region-secondary-header::before,
.region-secondary-header::after {
  background-color: #f6f6f6 !important;
}

#secondary-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#secondary-header a {
  color:#2E3235 !important;
}

/* widens search input bar */
.input-group {
  width:100% !important;
}

/* These are edit links, they were #fff and invisible on a white background */
.contextual-links a {
  color:#2E3235 !important;
}

/* Main content container */
.container {
  max-width:100% !important;
  padding-left:15px !important;
  padding-right:1px !important;
}

/* Hide the weird <hr> that appears above content blocks in this theme */
.block-hr {
  border:none !important;
  color:#fff !important; 
  background-color:#fff !important;
  border-bottom-color:#fff !important;
}

/* Styling for the right hand column */
#block-liheapch-theme-buttonimageregion {
  text-align: center !important;
}

#block-liheapch-theme-mostusedlinks {
  margin-left:45px !important;
}
#block-liheapch-theme-upcomingevents {
  margin-left:45px !important;
}

.region-sidebar-second {
  border-left:1px solid #cfcfcf !important;
}

.region-sidebar-second a {
  color:#0000EE !important;
}

.region-sidebar-second a:hover {
  color:#555555 !important;
}

.region-sidebar-second h3 a {
  text-decoration:none !important;
  color:#336A90 !important;
}

.region-sidebar-second h3 a:hover {
  color:#555555 !important;
}

.region-content h2 a:hover {
  color:#555555 !important;
}

.region-content h3 a:hover {
  color:#555555 !important;
}

.table-white {
background-color:#ffffff !important;
margin-left:25px !important;
width:100% !important;
}

/* =========================================
Styling for the LIHEAP logo region
and search bar
========================================= */
.region-secondary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Logo block: push it to the left */
#block-liheapch-theme-liheappmlogo {
  order: -1;
  flex: 1 1 auto;
}

/* Scale the logo image so it doesn't overflow on small screens */
#block-liheapch-theme-liheappmlogo img {
  max-width: 100%;
  height: auto;
}

/* Search block: push it to the right */
#block-liheapch-theme-search-form {
  order: 1;
  flex: 0 1 300px;
  min-width: 150px;
}

/* Keep search bar and mag glass icon on a single line */
#block-liheapch-theme-search-form .input-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}

/* change color of mag glass icon */
.bi-search {
    color: #005ea8;
}

#block-liheapch-theme-search-form input.form-search {
  flex: 1 1 auto;
  min-width: 150px;
  width: 0;
}

#block-liheapch-theme-search-form .input-group-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

#block-liheapch-theme-search-form .input-group-btn button {
  white-space: nowrap;
  height: 100%;
}

/* On mobile, stack logo and search bar vertically */
@media (max-width: 576px) {
  #block-liheapch-theme-liheappmlogo,
  #block-liheapch-theme-search-form {
    flex: 1 1 100%;
  }

  #block-liheapch-theme-search-form {
    order: 2;
  }
}

/* =========================================
   Styling for the Main Navigation Menu
   ========================================= */

/* Remove inherited height and spacing from the top-level menu wrapper. */
.body--dxpr-theme-nav-desktop
.dxpr-theme-header--top
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}


/* =========================================
   Navbar Containers
   ========================================= */

#navbar {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#navbar .navbar-container {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

#navbar .container-row,
#navbar .container-col,
#navbar .navbar-header-wrapper {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

#navbar .navbar-header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
}


/* =========================================
   Main Menu Bar
   ========================================= */

#dxpr-theme-main-menu {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #555555 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

#dxpr-theme-main-menu .region-navigation-collapsible,
#dxpr-theme-main-menu #block-liheapch-theme-mainmenu-2 {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

#block-liheapch-theme-mainmenu-2 .block-hr {
  display: none !important;
}


/* =========================================
   Top-Level Menu List
   ========================================= */

#dxpr-theme-main-menu
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  box-sizing: border-box !important;
}


/* =========================================
   Top-Level Menu Items
   ========================================= */

#dxpr-theme-main-menu
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1
> li.nav-item {
  position: relative !important;
  display: flex !important;
  align-items: stretch !important;
  flex: 1 1 auto !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transform: none !important;
}


/* =========================================
   Top-Level Menu Links
   ========================================= */

#dxpr-theme-main-menu
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1
> li.nav-item
> a.nav-link {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;

  padding: 0 0.4rem !important;
  margin: 0 !important;

  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;

  border: 0 !important;
  outline-offset: -3px !important;
  box-sizing: border-box !important;
  transform: none !important;

  transition:
    background-color 0.2s ease,
    color 0.2s ease !important;
}


/* =========================================
   Hover, Focus, and Active States
   ========================================= */

#dxpr-theme-main-menu
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1
> li.nav-item
> a.nav-link:hover,

#dxpr-theme-main-menu
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1
> li.nav-item
> a.nav-link:focus,

#dxpr-theme-main-menu
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1
> li.nav-item
> a.nav-link:focus-visible,

#dxpr-theme-main-menu
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1
> li.nav-item.active
> a.nav-link,

#dxpr-theme-main-menu
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1
> li.nav-item
> a.nav-link.is-active {
  top: auto !important;
  bottom: auto !important;

  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;

  color: #ffffff !important;
  background-color: #4a6b8a !important;
  text-decoration: none !important;

  border: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
}


/* Maintain a visible keyboard-focus indicator. */
#dxpr-theme-main-menu
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1
> li.nav-item
> a.nav-link:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: -4px !important;
}


/* =========================================
   Prevent Pseudo-Elements from Changing Size
   ========================================= */

#dxpr-theme-main-menu
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1
> li.nav-item
> a.nav-link::before,

#dxpr-theme-main-menu
ul.menu.nav.navbar-nav.enhanced-dropdowns.level-1
> li.nav-item
> a.nav-link::after {
  box-sizing: border-box !important;
  transform: none !important;
}

/* =========================================
Styling for the Main Navigation Menu 
  on Mobile
========================================= */
@media (max-width: 992px) {
  /* Make the menu part of normal page flow (push content down) */
  #dxpr-theme-main-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: auto !important;
  }

  /* Neutralize offcanvas overlay behavior */
  .offcanvas {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .offcanvas-body {
    padding: 0 !important;
  }

  /* Slide-down animation for menu containers */
  #dxpr-theme-main-menu,
  #dxpr-theme-main-menu .menu,
  #dxpr-theme-main-menu ul.nav {
    transition: max-height 0.35s ease, opacity 0.25s ease;
    overflow: hidden !important;
  }

  /* Ensure the mobile menu is visible */
  #navbar .navbar-header {
    display: block !important;
    height: auto !important;
    min-height: unset !important;
  }

  /* Force the entire mobile menu container to open on load */
  #dxpr-theme-main-menu,
  #dxpr-theme-main-menu .menu,
  #dxpr-theme-main-menu ul.nav {
    display: block !important;
    height: auto !important;
    max-height: 2000px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Allow it to collapse if needed (hamburger menu funtionality) */
  #dxpr-theme-main-menu.collapse:not(.show),
  #dxpr-theme-main-menu .menu.collapse:not(.show),
  #dxpr-theme-main-menu ul.nav.collapse:not(.show) {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

  /* Stack the menu items vertically */
  #dxpr-theme-main-menu ul.menu.nav {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    height: 360px !important;
  }

  /* Force each menu item open (fixes hover behavior) */
  #dxpr-theme-main-menu .nav-item {
    display: block !important;
    width: 100% !important;
    flex: 1 1 100% !important;

    /* override the collapsed state */
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;

    /* animate the individual menu items as well */
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  /* Remove hover-only expansion behavior */
  #dxpr-theme-main-menu .nav-item:hover {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Style the links themselves */
  #dxpr-theme-main-menu .nav-link {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: 0.75rem 1.25rem !important;
    text-align: left !important;
    justify-content: flex-start !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: padding 0.25s ease, background-color 0.25s ease;
  }

/* Remove the black background on the menu container the theme came with */
  #dxpr-theme-main-menu,
  #dxpr-theme-main-menu .menu,
  #dxpr-theme-main-menu ul.nav {
    background-color: #555555 !important;
  }

  /* Remove the black background on each item */
  #dxpr-theme-main-menu .nav-item {
    background-color: #555555 !important;
  }

  /* Remove the black background on the links themselves */
  #dxpr-theme-main-menu .nav-link {
    background-color: #555555 !important;
  }

  /* If the menu is inside an offcanvas wrapper (DXPR, force it open as well */
  .offcanvas #dxpr-theme-main-menu,
  .offcanvas #dxpr-theme-main-menu .menu,
  .offcanvas #dxpr-theme-main-menu ul.nav {
    max-height: 2000px !important;
    height: auto !important;
    overflow: visible !important;
  }
}

/* =========================================
Styling for the footer
========================================= */
.dxpr-theme-footer a:hover {
  text-decoration: underline !important;
}

/* Footer wrapper: full-width disclaimer on top, four columns below */
.region-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

/* Make sure the disclaimer spans the full width */
#block-liheapch-theme-footerdisclaimer {
  flex: 1 1 100%;
}

/* Makes sure the four column blocks are always equal width. */
#block-liheapch-theme-footercolumn1,
#block-liheapch-theme-footercolumn2,
#block-liheapch-theme-footercolumn3,
#block-liheapch-theme-footercolumn4 {
  flex: 1 1 180px;
  min-width: 180px;
}

/* Prevent the logo table in column four from breaking the layout */
#block-liheapch-theme-footercolumn4 .table,
#block-liheapch-theme-footercolumn4 table {
  width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
}

#block-liheapch-theme-footercolumn4 * a:hover {
  text-decoration: underline !important;
}

/* Make the NCAT logo responsive */
#block-liheapch-theme-footercolumn4 img {
  max-width: 100%;
  height: auto;
}

/* 2 columns on tablet */
@media (max-width: 768px) {
  #block-liheapch-theme-footercolumn1,
  #block-liheapch-theme-footercolumn2,
  #block-liheapch-theme-footercolumn3,
  #block-liheapch-theme-footercolumn4 {
    flex: 1 1 calc(50% - 1.5rem);
  }
}

/* Single column on mobile */
@media (max-width: 480px) {
  #block-liheapch-theme-footercolumn1,
  #block-liheapch-theme-footercolumn2,
  #block-liheapch-theme-footercolumn3,
  #block-liheapch-theme-footercolumn4 {
    flex: 1 1 100%;
  }
}

/* =========================================
Styling for the Energy Help pages
========================================= */
.help-section {
	text-align:center; 
	width:30%;
}

@media only screen and (max-width:766px){ 
	.help { 
		display:grid;
	}
	.help-section {
		margin-left: 10%;
		margin-right:10%;
    	padding-top: 10px;
		width:80%;
	}
}

.email-heading {
    font-size: 1.50rem; /* mobile */
}

@media (min-width: 992px) {
    .email-heading {
        font-size: 2.0rem; /* desktop */
    }
}

/* Services section grid */
/* Desktop: 2px vertical gutters */
.cell-border {
    border-right: 2px solid #ccc;
}

/* Remove right border on last column in each row */
.row > .col-md-4:last-child {
    border-right: none;
}

/* Mobile: add top/bottom borders + 10px spacing */
@media (max-width: 767.98px) {
    .col-md-4 {
        border-top: 2px solid #ccc;
        border-bottom: 2px solid #ccc;

        /* 10px spacing around the borders */
        padding-top: 20px;
        padding-bottom: 20px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    /* Remove desktop right borders on mobile */
    .cell-border {
        border-right: none;
    }
}