:root {
  /*** Global ***/
  --theme-primary: #003594; /* blue */
  --theme-secondary: #e7f5fa; /* lightblue */
  --theme-tertiary: #003594; /* orange */
  --theme-text: #000000; /* black */
  --theme-darkgrey: #525252; /* dark grey */
  --theme-lightgrey: #cacaca; /* light grey */
}
.header-full .search_container section.search .search-form .form-group input {
  height: 50px;
  border: 1px solid #003594 !important;
  background-color: white !important;
}
.contactusboxes {
  border: solid 1px #525252 !important;
  padding: 15px;
  margin-top: 10px;
}
.bg-lightgrey p-half { background: #ffffff !important; }
.bg-lightgrey { background: #ffffff !important; }
.eci-styling-alt1 {
  background-color: #cacaca !important;
  font-size: 20px
}
.row-bg-text [role=row-wrapper] { background-color: #cacaca !important; }
.p-default {
  padding-top: 0px !important;
  padding-bottom: 60px !important;
}
.current-branch-banner .container a {
  font-weight: bold;
  color: white;
}
.current-branch-banner {
  background: #003594;
  font-size: 14px;
  padding: 10px 0;
}
.current-branch-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  height: 10px;
}

.additional_links { font-size: 22px; }
.jfBrandingBadgeContainerVariant1 .jfBrandingBadge { display: none !important; }
.formFooter { display: none !important; }
.faq {
  color: #fff;
  text-align: center;
}
details{
  background-color: #303030;
  color: #fff;
  font-size: 1.5rem;
}
summary {
  padding: .5em 1.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;  
  transition: height 1s ease;
}
summary::-webkit-details-marker { display: none; }
summary:after { content: "\002B"; }
details[open] summary { 
  border-bottom: 1px solid #aaa;
  margin-bottom: .5em;
}
details[open] summary:after { content: "\00D7"; }
details[open] div { padding: .5em 1em; }

@media screen and (min-width: 1200px) {
    div.griditems div:nth-child(4n) .tile {
        border-right:1px solid #ddd !important;
    }
  .ex-searchresult div.griditems div:nth-child(4n) .tile {
        border-left: none !important;
    }
  .ex-category div.griditems div:nth-child(4n) .tile {
        border-left: none !important;
    }
}
div.griditems div:nth-child(4n) .tile,
div.griditems div:first-child .tile{
    border-left:1px solid #ddd !important;
}
.cat-tiles .tileparent:nth-child(4n),
.cat-tiles .tileparent:nth-child(5n),
.cat-tiles .tileparent:nth-child(6n){
    border-bottom:1px solid #ddd !important;
}
.current-branch-banner .container {
  justify-content: start;
  padding-left: 10px;
  font-size:smaller;
}

/* start of video */

.tagline {
    z-index: 20;
}
.tagline:first-child {
    /*height: 54vh;*/
    min-width: 250px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
   display: -webkit-box; 
   display: -moz-box;
   display: -ms-flexbox;
   display: -webkit-flex; 
   display: flex;
   -webkit-box-align: center;
   -moz-box-align: center;
   -ms-flex-align: center;
   -webkit-align-items: center;
   align-items: center;
}
section#section-top {
    height: auto;
    overflow:hidden;
}
.video-filter {
    z-index: 1;
    background-color: #2d364157;
    width: 100%;
    height: 100%;
    position: absolute;
     left: 0;
}
.bgvid-c {
    height: 54vh;
    width: 100vw;
    overflow: hidden;
    position: absolute;
}
#bgvid {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 100vw;
    position: relative;
}
#section-top h1 {
    color: #fff;
}
.img-icon {
    width: 10px;
    margin-top: -3px;
    margin-left: 5px;
}
.btn-white {
    background: transparent;
    border: 1px white solid;
    color: white;
}
.btn-white:hover {
    background: rgba(255, 255, 255, 0.37);
    color: white;
}
#section-top .btn-primary {
    border: 1px solid;
    border-color: white;
  min-height: auto;
}
@media only screen and (min-width: 1501px) {

    #bgvid {
    bottom: 50%;
}

    }

@media only screen and (max-width: 1500px) and (min-width: 1220px) {

    #bgvid {
    bottom: 32%;
}

    }

@media only screen and (max-width: 992px) {
    #section-top h1 {
    font-size: 1.5em;
}
#section-top .btn {
    font-size: 15px;
    padding: 10px 25px;
}

}

@media only screen and (max-width: 600px) {
  h1 #section-top  {
    font-size: 1.5em;
}
#section-top .btn {
    font-size: 12px;
    padding: 7px 20px;
}

}

/* end of video */

/* ===== MH styling hero video banner =====*/
.sp-flex {
  display: flex;
}

#section-top .content-wrapper{
 width: min(700px, 95%);
 max-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em 0;
}

#section-top .content-wrapper h1 {
  font-size: clamp(1rem, 3vw, 2rem);
}
#section-top .content-wrapper img {
  max-width: 350px;
 width: clamp(50%, 27vw, 100%);
}

#section-top .button-wrapper {
  justify-content: center;
}

#section-top .button-wrapper > *{
  width: auto;
}

header .header-full {
  position: relative;
  z-index: 30;
}
/* ===== End =====*/

/* Styles now scoped to the .window-blog-post class */

.window-blog-post {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Sets background for the area, if needed */
    padding: 30px 0; /* Add padding to top and bottom */
}

.window-blog-post .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 30px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

/* Header Styles */
.window-blog-post header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.window-blog-post header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #0056b3;
    margin-bottom: 15px;
    line-height: 1.2;
}

.window-blog-post header p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 10px;
}

/* Section & Category Styles */
.window-blog-post .brand-category {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fcfcfc;
    border-left: 5px solid #007bff;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.window-blog-post .brand-category h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.window-blog-post .category-description {
    font-style: italic;
    color: #777;
    margin-bottom: 25px;
    font-size: 0.95em;
}

/* Individual Brand Item Styles */
.window-blog-post .brand-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.window-blog-post .brand-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.window-blog-post .brand-item p {
    font-size: 1em;
    color: #444;
}

.window-blog-post .brand-item strong {
    color: #0056b3;
}

/* Price Tier Styling */
.window-blog-post .price-tier {
    font-size: 0.8em;
    font-weight: 600;
    color: #28a745;
    background-color: #e6ffe6;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Call to Action Footer */
.window-blog-post .call-to-action {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
	background-color: white !important;
}

.window-blog-post .call-to-action h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: #0056b3;
    margin-bottom: 20px;
}

.window-blog-post .call-to-action p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
}

.window-blog-post .contact-prompt {
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
    margin-bottom: 30px;
}

.window-blog-post .button {
    display: inline-block;
    background-color: #ffc107;
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.window-blog-post .button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .window-blog-post .container {
        margin: 20px;
        padding: 15px;
    }

    .window-blog-post header h1 {
        font-size: 2em;
    }

    .window-blog-post .brand-category h2 {
        font-size: 1.5em;
    }

    .window-blog-post .brand-item h3 {
        font-size: 1.3em;
    }

    .window-blog-post .button {
        padding: 12px 25px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .window-blog-post header h1 {
        font-size: 1.8em;
    }
    .window-blog-post .brand-category h2 {
        font-size: 1.3em;
    }
    .window-blog-post .brand-item h3 {
        font-size: 1.2em;
    }
    .window-blog-post .button {
        width: 100%;
        box-sizing: border-box;
    }
}
/* Tag ONLY the article body wrapper with .window-blog-post */
@media (max-width: 640px){
  .window-blog-post{
    /* center the content block itself */
    max-width: 720px;
    width: min(720px, 100%);
    margin-inline: auto;
    padding-left: 16px !important;  /* equalize gutters */
    padding-right: 16px !important;
    box-sizing: border-box;
    overflow-x: clip;
  }

  /* neutralize inner offsets that commonly cause the “drift” */
  .window-blog-post > * { margin-left: 0 !important; margin-right: 0 !important; }
  .window-blog-post :where(img, iframe, video){ display:block; max-width:100%; height:auto; margin-inline:auto; }
  .window-blog-post :where(.alignleft, .alignright){ float:none !important; margin-inline:auto !important; }
  .window-blog-post :where(.alignwide, .alignfull, .wp-block-columns, .wp-block-group){
    margin-left:auto !important; margin-right:auto !important; max-width:100% !important;
  }
}
/* --- CSS for Second Chance Selections Page --- */

/* Main container for the special content */
.second-chance-content {
    font-family: Arial, sans-serif; /* A clean, readable font */
    line-height: 1.6;
    color: #333;
    padding: 1px 20px 20px 20px; /* Adds some spacing inside the box */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    margin: 20px 0; /* Adds space above and below */
    overflow-x: auto; /* Prevents content from spilling horizontally */
}

/* Headings within the container */
.second-chance-content h1,
.second-chance-content h2 {
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    text-align: center;
}

.second-chance-content h2 {
    text-align: left; /* Aligns subheadings to the left */
    border-bottom: none; /* Removes the line from H2s */
}

/* The important yellow notice box */
.second-chance-content .notice-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.second-chance-content .notice-box h3 {
    margin-top: 0;
    color: #856404;
}

/* List styling */
.second-chance-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.second-chance-content li {
    margin-bottom: 10px;
}

/* Emphasized text (for warnings) */
.second-chance-content strong {
    color: #c0392b; /* A subtle red */
}
/*
/*
========================================
STYLES FOR .window-page
========================================
*/

/* --- Base Styles --- */
.window-page {
    /* Styles from old .container rule */
    max-width: 900px;
    margin: 30px auto; /* This centers the box AND gives it top/bottom spacing */
    padding: 20px 30px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    
    /* Original .window-page styles */
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    box-sizing: border-box; /* Ensures padding is included in width */
}

/* --- Header Styles --- */
.window-page header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.window-page header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #0056b3;
    margin-bottom: 15px;
    line-height: 1.2;
}

.window-page header p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 10px;
}

/* --- Section & Category Styles --- */
.window-page .brand-category {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fcfcfc;
    border-left: 5px solid #007bff;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.window-page .brand-category h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.window-page .category-description {
    font-style: italic;
    color: #777;
    margin-bottom: 25px;
    font-size: 0.95em;
}

/* --- Individual Brand Item Styles (with Logo) --- */
.window-page .brand-item {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 25px; /* Space between logo and text */
    align-items: flex-start; /* Align tops */
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Container for the logo */
.window-page .brand-logo-container {
    width: 150px; 
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 8px;
    box-sizing: border-box;
}

/* The image itself */
.window-page .brand-logo-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* The text content container */
.window-page .brand-content {
    flex-grow: 1;
    flex-basis: 300px;
}

.window-page .brand-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.window-page .brand-content p {
    font-size: 1em;
    color: #444;
    margin-bottom: 12px;
}

/* Bolds the "History:", "Products:", etc. labels */
.window-page .brand-content p strong {
    font-weight: 600;
    color: #333;
}

/* Style for special highlighted words (like impact-resistant) */
.window-page .brand-content p strong.highlight {
    color: #0056b3;
}


/* --- Price Tier Styling --- */
.window-page .price-tier {
    font-size: 0.8em;
    font-weight: 600;
    color: #28a745;
    background-color: #e6ffe6;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* --- Call to Action Footer --- */
.window-page .call-to-action {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
	background-color: white !important;
}

.window-page .call-to-action h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: #0056b3;
    margin-bottom: 20px;
}

.window-page .call-to-action p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
}

.window-page .contact-prompt {
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
    margin-bottom: 30px;
}

.window-page .button {
    display: inline-block;
    background-color: #ffc107;
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.window-page .button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    color: #333;
}

/*
========================================
RESPONSIVE STYLES for .window-page
========================================
*/

@media (max-width: 768px) {
    .window-page {
        /* On smaller screens, remove the desktop margin/padding */
        margin: 20px auto;
        padding: 15px;
    }

    .window-page header h1 {
        font-size: 2em;
    }

    .window-page .brand-category h2 {
        font-size: 1.5em;
    }

    .window-page .brand-item h3 {
        font-size: 1.3em;
    }

    .window-page .button {
        padding: 12px 25px;
        font-size: 1.1em;
    }
}

@media (max-width: 540px) {
    /* Stack logo on top of text on small screens */
    .window-page .brand-item {
        flex-direction: column;
        align-items: center; 
    }
    
    .window-page .brand-logo-container {
        width: 80%;
        height: 120px;
        margin-bottom: 15px;
    }
    
    .window-page .brand-content {
        flex-basis: auto; 
        width: 100%;
        text-align: center; 
    }
    
    .window-page .brand-content h3 {
        text-align: center;
    }
}


@media (max-width: 480px) {
    .window-page header h1 {
        font-size: 1.8em;
    }
    .window-page .brand-category h2 {
        font-size: 1.3em;
    }
    .window-page .brand-item h3 {
        font-size: 1.2em;
    }
    .window-page .button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile drift fixes */
@media (max-width: 640px){
  .window-page {
    /* This makes the box full-width on mobile */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
    overflow-x: clip;
  }

  /* These rules are fine and just affect images inside your content */
  .window-page :where(img, iframe, video) { 
      display:block; 
      max-width:100%; 
      height:auto; 
      margin-inline:auto; 
  }
  .window-page :where(.alignleft, .alignright) { 
      float:none !important; 
      margin-inline:auto !important; 
  }
  .window-page :where(.alignwide, .alignfull, .wp-block-columns, .wp-block-group) {
    margin-left:auto !important; 
    margin-right:auto !important; 
    max-width:100% !important;
  }
}
/*
========================================
NEW STYLES FOR VENDOR IMAGE GALLERY
========================================
*/
.window-page .vendor-image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center images when they don't fill the row */
    gap: 15px; /* Space between images */
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.window-page .vendor-image-item {
    flex: 1 1 280px; /* Allows items to grow/shrink, with a base of 280px */
    max-width: 32%; /* Max width for 3 items per row on wider screens */
    height: 200px; /* Fixed height for visual consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    overflow: hidden; /* Hide parts of image that go outside the box */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* This styles the link, if you add the lightbox */
.window-page .vendor-image-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    outline: none;
}

/* This styles the image inside the link (or just the image) */
.window-page .vendor-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop image to fill the item, maintaining aspect ratio */
    transition: transform 0.2s ease-in-out;
}

/* This adds a hover effect */
.window-page .vendor-image-item a:hover img,
.window-page .vendor-image-item img:hover {
    transform: scale(1.05);
}


/* Responsive adjustments for vendor images */
@media (max-width: 900px) {
    .window-page .vendor-image-item {
        max-width: 48%; /* Two images per row */
    }
}

@media (max-width: 600px) {
    .window-page .vendor-image-item {
        max-width: 100%; /* One image per row */
        height: 250px; /* Slightly taller for single column */
    }
}

/* Ensure content flow remains correct around new elements */
.window-page .brand-content > p:last-of-type {
    margin-bottom: 0; /* Remove extra bottom margin from last paragraph before gallery */
}
/*
========================================
NEW STYLES FOR HEADER GIF
========================================
*/
.window-page .main-header-gif {
    text-align: center; /* Center the GIF */
    margin: 20px auto 30px auto; /* Add vertical spacing */
    max-width: 100%; /* Ensure it doesn't overflow its container */
}

.window-page .main-header-gif img {
    max-width: 100%; /* Make the GIF responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Slightly rounded corners for aesthetics */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
/*
========================================
NEW PURE-CSS LIGHTBOX STYLES (NO JS)
========================================
*/
/* The Lightbox container, hidden by default */
.css-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    overflow: auto;
    /* Optional: Fade-in effect */
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

/* The magic: When the element's ID matches the URL hash, it becomes visible */
.css-lightbox:target {
    display: flex; /* Display the content */
    opacity: 1;
}

/* Content wrapper to center the image */
.css-lightbox .lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    text-align: center;
}

/* Image styling */
.css-lightbox .lightbox-content img {
    max-width: 100%;
    max-height: 80vh; /* Max height to allow room for close button/caption */
    display: block;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    height: auto;
}

/* The Close Button */
.lightbox-close {
    position: absolute;
    top: -20px;
    right: 0;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    transition: 0.3s;
    /* Move close button outside the image on wider screens */
    transform: translateX(35px); 
}

.lightbox-close:hover {
    color: #ccc;
}

/* Caption Text */
.css-lightbox .lightbox-caption {
    color: #fff;
    font-size: 1.1em;
    padding: 10px 0;
    text-shadow: 1px 1px 2px #000;
}

/* Mobile adjustment for close button */
@media (max-width: 700px) {
    .lightbox-close {
        top: 15px;
        right: 15px;
        transform: none; /* Reset close button position */
        font-size: 40px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        padding: 5px 12px;
    }
}