/**
 * Please add any custom styles for the LIHEAPPM DXPR subtheme aka child theme --> JJE
 */


/* =========================================================
   HEADER
   Make the DXPR centered header use the full available width
   ========================================================= */

#navbar.dxpr-theme-header--centered .navbar-header {
  display: block;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

/* =========================================================
   HEADER SEARCH
   Desktop: right aligned and vertically centered
   Mobile: normal flow / stacked
   ========================================================= */


/* ---------- DESKTOP ---------- */
@media (min-width: 992px) {

  /* IMPORTANT: Do not make navbar-header a flex container */
  .navbar-header {
    position: relative !important;
    display: block !important;
  }

  /* Position ONLY the search block */
  #block-liheap-pm-theme-searchform {
    position: absolute !important;

    width: 400px !important;
    max-width: 400px !important;

    right: 30px !important;
    top: 35% !important;
    transform: translateY(-50%) !important;

    margin: 0 !important;
    z-index: 10;
  }

  #block-liheap-pm-theme-searchform form {
    width: 100% !important;
    margin: 0 !important;
  }

  #block-liheap-pm-theme-searchform .input-group {
    width: 100% !important;
    margin: 0 !important;
  }

}


/* ---------- TABLET / MOBILE ---------- */
@media (max-width: 991.98px) {

  #block-liheap-pm-theme-searchform {
    position: static !important;
    transform: none !important;

    width: auto !important;
    max-width: none !important;

    margin: 10px 20px !important;
  }

  #block-liheap-pm-theme-searchform form {
    width: 100% !important;
    margin: 0 !important;
  }

  #block-liheap-pm-theme-searchform .input-group {
    width: 100% !important;
  }


/* =========================================================
   LIHEAP HEADER SEARCH - WHITE STYLE
   ========================================================= */

/* Outer search group */
#search-block-form .input-group {
  display: flex !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #bfc5cc !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

/* Search input */
#search-block-form #edit-keys {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 40px !important;

  background-color: #ffffff !important;
  background-image: none !important;

  color: #333333 !important;

  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  padding: 8px 12px !important;
}

/* Placeholder */
#search-block-form #edit-keys::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}

/* Container around search button */
#search-block-form .input-group-btn {
  display: flex !important;
  background: #ffffff !important;
}

/* Search button */
#search-block-form #edit-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 46px !important;
  height: 40px !important;

  margin: 0 !important;
  padding: 0 !important;

  background-color: #ffffff !important;
  background-image: none !important;

  color: #333333 !important;

  border: 0 !important;
  border-left: 1px solid #bfc5cc !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Magnifying glass */
#search-block-form #edit-actions svg,
#search-block-form #edit-actions svg path {
  color: #333333 !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Button hover */
#search-block-form #edit-actions:hover,
#search-block-form #edit-actions:focus {
  background-color: #f1f3f5 !important;
  color: #000000 !important;
  }
}
/* =========================================================
   MAIN NAVIGATION
   Full-width blue navigation band with centered menu items
   ========================================================= */

/* Allow the navigation block to use the full header width */
#navbar.dxpr-theme-header--centered .navbar-header > .block {
  display: block;
  max-width: none;
}


/*
 * Break the main-menu block out of the centered header.
 * This makes the blue background span the full viewport width.
 */
#navbar.dxpr-theme-header--centered .block-system-menu-blockmain {
  display: block;
  position: relative;

  width: 100vw;
  max-width: none;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background-color: #33749a;
}


/* Center the actual navigation links inside the full-width blue band */
#navbar.dxpr-theme-header--centered .navbar-nav {
  display: flex;
  width: auto;
  max-width: none;

  margin-left: auto;
  margin-right: auto;

  padding-left: 25px;
  padding-right: 25px;

  justify-content: center;
  float: none;
}

/* Desktop navigation bar height */
@media (min-width: 992px) {

  #navbar.dxpr-theme-header--centered .block-system-menu-blockmain {
    height: 70px;
  }

  #navbar.dxpr-theme-header--centered .navbar-nav {
    height: 70px;
    align-items: center;
  }

}

/* =========================================================
   LIHEAP HEADER SEARCH
   ========================================================= */

/* Search input */
#search-block-form #edit-keys {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #333333 !important;

  height: 46px !important;
  padding: 10px 12px !important;

  border: 1px solid #c7ccd1 !important;
  border-right: 0 !important;
  border-radius: 4px 0 0 4px !important;

  box-shadow: none !important;
  outline: none !important;
}

/* Placeholder text */
#search-block-form #edit-keys::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}

/* Remove DXPR / Bootstrap focus artifacts */
#search-block-form #edit-keys:hover,
#search-block-form #edit-keys:active {
  box-shadow: none !important;
  outline: none !important;
}

/* Accessible keyboard focus */
#search-block-form #edit-keys:focus {
  outline: none !important;
  box-shadow: inset 0 0 0 2px #34749a !important;
}


/* ---------------------------------------------------------
   SEARCH BUTTON
   --------------------------------------------------------- */

#search-block-form #edit-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 54px !important;
  height: 46px !important;

  margin: 0 !important;
  padding: 0 !important;

  background-color: #34749a !important;
  background-image: none !important;
  color: #ffffff !important;

  border: 1px solid #34749a !important;
  border-radius: 0 4px 4px 0 !important;

  box-shadow: none !important;
  outline: none !important;
}

/* Magnifying glass */
#search-block-form #edit-actions svg {
  color: #ffffff !important;
  fill: currentColor !important;
}

/* Button hover / focus */
#search-block-form #edit-actions:hover,
#search-block-form #edit-actions:focus {
  background-color: #286482 !important;
  border-color: #286482 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}


/* ---------------------------------------------------------
   INPUT GROUP
   --------------------------------------------------------- */

#search-block-form .input-group {
  display: flex !important;
  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;

  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

#search-block-form .input-group:focus,
#search-block-form .input-group:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

#search-block-form .input-group-btn {
  display: flex !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 992px) {

  /* Leave navbar layout alone */
  .navbar-header {
    position: relative !important;
    display: block !important;
  }

  /* Right-align and vertically position search */
  #block-liheap-pm-theme-searchform {
    position: absolute !important;

    width: 400px !important;
    max-width: 400px !important;

    right: 30px !important;
    top: 35% !important;
    transform: translateY(-50%) !important;

    margin: 0 !important;

    z-index: 10;
  }

  #block-liheap-pm-theme-searchform form {
    width: 100% !important;
    margin: 0 !important;
  }
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

  #block-liheap-pm-theme-searchform {
    position: static !important;
    transform: none !important;

    width: auto !important;
    max-width: none !important;

    margin: 10px 20px !important;
  }

  #block-liheap-pm-theme-searchform form {
    width: 100% !important;
    margin: 0 !important;
  }

  #block-liheap-pm-theme-searchform .input-group {
    width: 100% !important;
  }

}

/* =========================================================
   DESKTOP MAIN NAVIGATION
   Blue bar = full browser width
   Menu items = centered within max 1580px
   ========================================================= */

@media (min-width: 992px) {

  /* Do not let DXPR's container determine the menu width */
  #navbar .container,
  #navbar .container-fluid {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #navbar .navbar-collapse {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* THIS is the 1580px centered menu area */
  #navbar .navbar-nav {
    display: flex !important;
    float: none !important;

    width: calc(100% - 80px) !important;
    max-width: 1580px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 20px !important;
    padding-right: 20px !important;

    justify-content: space-between !important;
    align-items: center;
  }

  /* Let each item retain its natural width */
  #navbar .navbar-nav > li {
    float: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  #navbar .navbar-nav > li > a {
    white-space: nowrap;
  }
}

/* =========================================================
   MAIN NAVIGATION TEXT COLOR
   ========================================================= */

  /* Regular top-level menu items */
#navbar .navbar-nav > .nav-item > .nav-link,
#navbar .navbar-nav > .nav-item > .nav-link:hover,
#navbar .navbar-nav > .nav-item > .nav-link:focus,
#navbar .navbar-nav > .nav-item > .nav-link:active {
  color: #ffffff !important;
}

/* Top-level links that have dropdown menus */
#navbar .navbar-nav > .nav-item.dropdown
> .bs-dropdown-wrapper
> .nav-link,
#navbar .navbar-nav > .nav-item.dropdown
> .bs-dropdown-wrapper
> .nav-link:hover,
#navbar .navbar-nav > .nav-item.dropdown
> .bs-dropdown-wrapper
> .nav-link:focus,
#navbar .navbar-nav > .nav-item.dropdown
> .bs-dropdown-wrapper
> .nav-link:active {
  color: #ffffff !important;
}

/* Dropdown caret button */
#navbar .navbar-nav > .nav-item.dropdown
> .bs-dropdown-wrapper
> .bs-dropdown-caret {
  color: #ffffff !important;
}
/* =========================================================
   MAIN CONTENT
   Full-width content with comfortable horizontal gutters
   ========================================================= */

.main-container.container-fluid {
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 50px;
}

/* IT Solutions React app - force main app background to white */
#app,
#app .its-wrapper,
#app .its-screen,
#app .its-screen.its-narrow {
    background-color: #ffffff !important;
}

/* ==========================================================
   LIHEAP HOME PAGE CAROUSEL
   ========================================================== */

#liheapHomeCarousel {
    position: relative;
    padding: 0 4rem 3rem;
}

/* ----------------------------------------------------------
   Carousel content
   ---------------------------------------------------------- */

#liheapHomeCarousel .carousel-inner {
    min-height: 350px;
}

#liheapHomeCarousel .carousel-item {
    padding: 1rem;
    -webkit-transition: -webkit-transform 0.8s ease-in-out;
    transition: transform 0.8s ease-in-out;
}


/* ----------------------------------------------------------
   Previous / Next controls
   ---------------------------------------------------------- */

#liheapHomeCarousel .carousel-control-prev,
#liheapHomeCarousel .carousel-control-next {
    width: 3rem;
    opacity: 1;

    /* Remove borders inherited from the theme */
    border: 0 !important;
    outline: 0;
    box-shadow: none;
    background: transparent;
}


/* Remove border/outline on hover and focus */

#liheapHomeCarousel .carousel-control-prev:hover,
#liheapHomeCarousel .carousel-control-prev:focus,
#liheapHomeCarousel .carousel-control-prev:active,
#liheapHomeCarousel .carousel-control-next:hover,
#liheapHomeCarousel .carousel-control-next:focus,
#liheapHomeCarousel .carousel-control-next:active {
    border: 0 !important;
    outline: 0;
    box-shadow: none !important;
    background: transparent;
}


/* Blue circular arrow buttons */

#liheapHomeCarousel .carousel-control-prev-icon,
#liheapHomeCarousel .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;

    background-color: #336A90;
    background-size: 55%;

    border: 0;
    border-radius: 50%;
}


/* Arrow hover */

#liheapHomeCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#liheapHomeCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: #285572;
}


/* ----------------------------------------------------------
   Carousel indicators
   ---------------------------------------------------------- */

#liheapHomeCarousel .carousel-indicators {
    bottom: 0;
    margin-bottom: 0;
}


/* Make indicators circles instead of Bootstrap bars */

#liheapHomeCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    margin-right: 5px;
    margin-left: 5px;

    border: 0;
    border-radius: 50%;

    background-color: #777;
    opacity: .6;
}


/* Active indicator */

#liheapHomeCarousel .carousel-indicators .active {
    background-color: #336A90;
    opacity: 1;
}


/* Indicator hover */

#liheapHomeCarousel .carousel-indicators [data-bs-target]:hover {
    background-color: #336A90;
    opacity: 1;
}


/* ==========================================================
   MOBILE
   Stack all carousel slides vertically
   Disable carousel appearance below 768px
   ========================================================== */

@media (max-width: 767.98px) {

    /* Remove desktop carousel spacing */

    #liheapHomeCarousel {
        padding: 0;
    }


    /* Allow all slides to be visible */

    #liheapHomeCarousel .carousel-inner {
        min-height: 0;
        overflow: visible;
    }


    /* Turn every carousel item into normal stacked content */

    #liheapHomeCarousel .carousel-item {
        display: block !important;
        float: none !important;

        width: 100%;

        margin-right: 0;

        padding: 0 0 1.5rem;

        opacity: 1 !important;

        -webkit-transform: none !important;
        transform: none !important;

        -webkit-transition: none !important;
        transition: none !important;
    }


    /*
     * Neutralize Bootstrap carousel positioning.
     * This prevents Bootstrap from moving previous/next
     * slides off-screen on mobile.
     */

    #liheapHomeCarousel .carousel-item.active,
    #liheapHomeCarousel .carousel-item-next,
    #liheapHomeCarousel .carousel-item-prev,
    #liheapHomeCarousel .carousel-item-start,
    #liheapHomeCarousel .carousel-item-end,
    #liheapHomeCarousel .active.carousel-item-start,
    #liheapHomeCarousel .active.carousel-item-end,
    #liheapHomeCarousel .carousel-item-next:not(.carousel-item-start),
    #liheapHomeCarousel .carousel-item-prev:not(.carousel-item-end) {
        display: block !important;
        position: static !important;

        -webkit-transform: none !important;
        transform: none !important;
    }


    /* Hide previous and next buttons */

    #liheapHomeCarousel .carousel-control-prev,
    #liheapHomeCarousel .carousel-control-next {
        display: none !important;
    }


    /* Hide carousel indicators */

    #liheapHomeCarousel .carousel-indicators {
        display: none !important;
    }


    /* Add separation between stacked sections */

    #liheapHomeCarousel .carousel-item + .carousel-item {
        margin-top: 1.5rem;
        padding-top: 2rem;

        border-top: 1px solid #ddd;
    }
}

/* ========================================================
   LIHEAP PM - THREE COLUMN FOOTER
   ======================================================== */

.liheap-footer-columns {
  padding-top: 40px;
  padding-bottom: 40px;
  align-items: flex-start;
}

.liheap-footer-column {
  padding-left: 40px;
  padding-right: 40px;
}


/* ========================================================
   FOOTER COLUMN ALIGNMENT
   ======================================================== */

/* Left column */
.liheap-footer-first {
  text-align: left;
}

/* Center column:
   Center the block itself, but keep paragraph text left aligned */
.liheap-footer-second {
  text-align: left;
  display: flex;
  justify-content: center;
}

.liheap-footer-second > * {
  width: 100%;
  max-width: 470px;
}

/* Right column:
   Move the block toward the right side of its column,
   while keeping the links/text left aligned */
.liheap-footer-third {
  text-align: left;
  display: flex;
  justify-content: flex-end;
}

.liheap-footer-third > * {
  width: 100%;
  max-width: 430px;
}


/* ========================================================
   FOOTER HEADINGS
   ======================================================== */

.liheap-footer-column h2,
.liheap-footer-column h3 {
  margin-top: 0;
}


/* ============================================================
   SITE-WIDE BOOTSTRAP 5 ACCORDION STYLES
   ============================================================ */


/* ------------------------------------------------------------
   STANDARD ACCORDION ITEMS
   ------------------------------------------------------------ */

/*
 * Bootstrap normally collapses borders between adjacent items.
 * Restore a complete border around every accordion item.
 */
.accordion-item {
    border: 1px solid #dee2e6 !important;
}


/*
 * Explicitly restore the top border between adjacent items.
 */
.accordion > .accordion-item + .accordion-item {
    border-top: 1px solid #dee2e6 !important;
}


/* ------------------------------------------------------------
   CLOSED ACCORDION HOVER / KEYBOARD FOCUS
   ------------------------------------------------------------ */

.accordion-button.collapsed {
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/*
 * Use the same subtle blue family as Bootstrap's open accordion.
 */
.accordion-button.collapsed:hover,
.accordion-button.collapsed:focus-visible {
    background-color: #e7f1ff;
    color: #212529;
}


/* ------------------------------------------------------------
   NESTED ACCORDIONS
   ------------------------------------------------------------ */

/*
 * Inset nested accordions so they visually belong to the
 * parent accordion rather than appearing as another main item.
 */
.accordion-body > .accordion {
    margin: 1.25rem 1rem 0.75rem;
}


/*
 * Treat nested accordion items as individual bordered cards.
 */
.accordion .accordion .accordion-item {
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    overflow: hidden;
}


/*
 * Restore comfortable padding on nested accordion headings.
 */
.accordion .accordion .accordion-button {
    padding: 1rem 1.25rem;
}


/*
 * Matching padding for expanded nested content.
 */
.accordion .accordion .accordion-body {
    padding: 1.25rem;
}


/* ------------------------------------------------------------
   NAVIGATION-STYLE ACCORDION CARDS
   ------------------------------------------------------------ */

/*
 * Use:
 *
 * <div class="accordion accordion-nav">
 *
 * for accordion-looking rows that NAVIGATE to another page
 * rather than expanding/collapsing content.
 */


/*
 * Navigation rows are actual links.
 */
.accordion-nav a.accordion-button {
    cursor: pointer;
    text-decoration: none;
    font-weight: 400 !important;
}


/*
 * Navigation links are never "expanded", so prevent Bootstrap
 * from applying an expanded accordion visual treatment.
 */
.accordion-nav .accordion-button:not(.collapsed) {
    color: inherit;
    background-color: transparent;
    box-shadow: none;
}


/*
 * Use Bootstrap's actual accordion chevron for navigation links.
 *
 * Bootstrap's normal accordion icon points downward.
 * Rotating it -90 degrees makes it point to the right while
 * preserving exactly the same icon style and line weight.
 */
.accordion-nav .accordion-button::after {
    width: var(--bs-accordion-btn-icon-width);
    height: var(--bs-accordion-btn-icon-width);
    margin-left: auto;
    flex-shrink: 0;
    content: "";
    background-image: var(--bs-accordion-btn-icon);
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--bs-accordion-btn-icon-width);
    transform: rotate(-90deg) !important;
    transition: transform 0.2s ease;
}


/*
 * Navigation-item hover and keyboard focus.
 *
 * Matches the subtle blue used for closed collapsible items.
 */
.accordion-nav a.accordion-button:hover,
.accordion-nav a.accordion-button:focus-visible {
    background-color: #e7f1ff;
    color: #212529;
}

/* Needed for pick a year -> then display a state funtionaility */
.profile-state-select[hidden],
#profileStateContainer[hidden] {
    display: none !important;
        }

/* ------------------------------------------------------------
   OPTIONAL SMALL-SCREEN ADJUSTMENTS
   ------------------------------------------------------------ */

@media (max-width: 575.98px) {

    /*
     * Reduce the nested accordion inset slightly on small phones
     * so content retains enough horizontal room.
     */
    .accordion-body > .accordion {
        margin-right: 0.25rem;
        margin-left: 0.25rem;
    }

    .accordion .accordion .accordion-button {
        padding: 0.875rem 1rem;
    }

    .accordion .accordion .accordion-body {
        padding: 1rem;
    }
}


/* ========================================================
   FOOTER MENUS
   ======================================================== */

.liheap-footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.liheap-footer-column li {
  margin-bottom: 8px;
}


/* ========================================================
   EXISTING BOTTOM FOOTER REGION
   ======================================================== */

.liheap-footer-bottom {
  padding-top: 20px;
  padding-bottom: 20px;
}


/* ========================================================
   MOBILE
   ======================================================== */

@media (max-width: 767.98px) {

  .liheap-footer-columns {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .liheap-footer-column {
    display: block;
    text-align: left;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .liheap-footer-second > *,
  .liheap-footer-third > * {
    width: 100%;
    max-width: none;
  }
}

/* Hides the advanced search functionality on the search result pages */
#edit-advanced, 
.search-advanced {
  display: none !important;
}