/* ==================== */
/* NAVIGATION STYLES */
/* ==================== */

#top-tier-nav, #bottom-tier-nav {
    width: 100%;
    background-color: #165491;
    border-bottom: 0px solid #ddd;
    padding: 10px 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-menu {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-item, .navbar-link, .navbar-item a, .navbar-link a {
    color: white !important;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.navbar-dropdown .navbar-item:hover {
    background-color: transparent !important;
}

.badge {
    background-color: #E44C4D;
}

.navbar-item:hover, .navbar-link:hover, .navbar-item a:hover, .navbar-link a:hover {
    color: #E54C4D !important;
}

.footer-link:hover, .footer-link a:hover {
    color: #E54C4D !important;
    text-decoration: none;
}

.navbar-item.has-dropdown:hover .navbar-dropdown {
    display: block;
    position: absolute;
    background: #165491;
    padding: 10px 0;
    min-width: 180px;
}

.navbar-dropdown .navbar-item {
    color: white;
    padding: 8px 15px;
}

.navbar-item svg, 
.navbar-link svg, 
.search-button svg {
    fill: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-menu {
        flex-direction: column;
        align-items: center;
    }

    .navbar-item, .navbar-link {
        width: 100%;
        text-align: center;
    }
}

/* ==================== */
/* SEARCH BAR STYLES */
/* ==================== */

#search-bar {
    display: none;
    width: 100%;
    background-color: #f5f5f5;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    z-index: 20;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.search-button {
    background-color: #165491;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.search-button:hover, 
.search-button:focus, 
.search-button:active {
    background-color: #165491;
    color: white;
    outline: none;
    box-shadow: none;
}

/* ==================== */
/* CUSTOM COLORS */
/* ==================== */

.has-background-custom1,
.has-background-custom-1 {
    background-color: #CEDBE8;
}
.has-background-custom2,
.has-background-custom-2 {
    background-color: #192752;
}

/* ==================== */
/* CUSTOM BLOCKS */
/* ==================== */

.block.style-custom1,
.block.style-custom-1 {
  border: 1px solid #E54C4D;
  border-radius: 5px;
  padding: 50px 50px;
  background-color: white;
  height: 375px;
}
.block.style-custom2,
.block.style-custom-2 {
  border: 2px solid #E54C4D;
  border-radius: 15px;
  padding: 50px 50px;
}

/* ==================== */
/* ACCORDIAN OVERRIDES */
/* ==================== */

.accordion-title {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  color: #4A4A4A !important;
}

.accordion-title i.fas {
  color: #E44C4D !important; /* red icons */
}

/* ==================== */
/* IMAGE STYLES */
/* ==================== */

.page-home-index .image.is-covered img, 
.page-catalog-category .image.is-covered img, 
.page-catalog-search .image.is-covered img,
.sub-category-grid .listWrapper .item-box .sub-category-item .picture img {
    object-fit: contain;
    background-color: #d8d8d8;
}

.slides .image.is-covered img {
    object-fit: cover;
}

.content-page-banner {
    height: 450px;
    object-fit: cover;
}

/* ==================== */
/* FOOTER STYLES */
/* ==================== */

footer {
    background-color: #192752;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

footer a:hover, 
footer a:focus, 
footer a:active {
    color: #E54C4D;
    background-color: transparent;
    outline: none;
    box-shadow: none;
}

/* ==================== */
/* MEDIA QUERIES */
/* ==================== */

@media (min-width: 768px) {
    #sliderrow .flexslider .flex-control-nav.flex-control-thumbs {
        display: none;
    }
}

@media (min-width: 1000px) {
    .wedu-page-content header .background.desktop {
        display: block;
    }
    #whiteinkprinting header .background.mobile {
        display: none;
    }
}

/* ==================== */
/* UTILITY CLASSES */
/* ==================== */

.stopKitLinks .cf-table .cf-table-wrapper .kitItem a {
    pointer-events: none;
}

.collapse { 
    display: none;
}

.collapse.in { 
    display: block;
}

/* Completely remove Bulma's original caret */
/* Remove Bulma caret */
nav.navbar .navbar-item.has-dropdown > .navbar-link::after {
    display: none !important;
    content: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    visibility: hidden !important;
}

/* Add caret with tight spacing */
nav.navbar .navbar-item.has-dropdown > .navbar-link::before {
    content: "⌃";
    color: white;
    font-size: 14px;
    margin-right: 0.35em;
    display: inline-block;
    vertical-align: middle;
}

/* Balance spacing between all items */
nav.navbar .navbar-item:not(.has-dropdown) {
    padding-left: 1.5em; /* Simulate caret space for consistency */
}

/* Remove extra padding on the right of dropdown links */
nav.navbar .navbar-item.has-dropdown > .navbar-link {
    padding-right: 1.5em !important; /* Or 0 if you want it tight */
}



.navbar-start
{
    flex-wrap: wrap;
}

.navbar-toggle-menu
{
    display: none;
    cursor: pointer;
}

@media screen and (max-width: 1400px)
{
    #bottom-tier-nav
    {
        max-height: unset !important;
        height: auto !important;
    }

    #bottom-tier-nav > .container > .navbar-menu
    {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
    }
}

@media screen and (max-width: 1088px)
{
    body
    {
        overflow-x: hidden !important;
    }
    .navbar-toggle-menu
    {
        display: block !important;
    }
    #top-tier-nav
    {
        height: auto !important;
        padding: 0 !important;
    }
    #top-tier-nav > .container
    {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        height: 100% !important;
    }
    .navbar-menu
    {
        background-color: #165491;
        color: white;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .navbar-menu > .navbar-end
    {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    #welcome-message-auth,
    #welcome-message
    {
        display: none !important;
    }
    #bottom-tier-nav
    {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(22, 84, 145, 0.164) !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease-in-out !important;
        z-index: 1000 !important;
        pointer-events: none !important;
    }
    #bottom-tier-nav.active
    {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .navbar-item, .navbar-link
    {
        width: auto !important;
    }

    .inactive.expandedListItem
    {
        display: none !important;
    }

    .navigationmenu
    {
        padding: 1rem 0 1rem 0 !important;
    }

    .navbar-item.has-dropdown .navbar-dropdown {
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        min-width: 100% !important;
        max-width:100% !important;
        display: none !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .navbar-item.has-dropdown:hover .navbar-dropdown {
        display: none !important;
    }

    .navbar-item.has-dropdown.open .navbar-dropdown {
        display: flex !important;
    }

    #bottom-tier-nav > .container > .navbar-menu > .navbar-start
    {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding: 0 !important;
    }

    #bottom-tier-nav
    {
        background-color: #165491 !important;
        position: absolute !important;
        top: 82px !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 !important;
    }

    #bottom-tier-nav > .container > .navbar-menu
    {
        padding: 10px !important;
    }

    #bottom-tier-nav > .container
    {
        padding:0 !important;
        max-height: unset !important;
        height: 100% !important;
    }
    
    #bottom-tier-nav > .container > .navbar-menu > .navbar-start > a,
    #bottom-tier-nav > .container > .navbar-menu > .navbar-start > div,
    #bottom-tier-nav > .container > .navbar-menu > .navbar-start > div > a
    {
        width: 100% !important;
        padding: 10px 15px !important;
        text-align: left !important;
        align-items: flex-start !important;
        max-height: unset !important;
        justify-content: flex-start !important;
    }

    #bottom-tier-nav > .container > .navbar-menu > .navbar-start > div
    {
    
    }

    .navbar-item.has-dropdown.is-hoverable.open
    {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    .navbar-item.has-dropdown.is-hoverable.open > .navbar-dropdown
    {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding: 10px 0 !important;
        max-height: unset !important;
        opacity: 1 !important;
    }

    .navbar-item.has-dropdown.is-hoverable.open > .navbar-dropdown a
    {
        width: 100% !important;
        padding: 10px 15px !important;
        text-align: left !important;
        max-height: unset !important;
        overflow: visible !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        display: block !important;
        box-sizing: border-box !important;
        opacity: 1 !important;
        transition: none !important;
        color: #fff !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    ol.flex-control-nav.flex-control-thumbs li img[src='']
    {
        display: none !important;
    }
}

/* Site-wide: replace "Price with discount" with "Save on this today:" and keep price close */

/* Base container */
.discountedPrice.updateProductPrice {
  display: inline-flex;
  align-items: baseline;
  gap: 0;               /* space comes from the label text itself */
  white-space: nowrap;  /* keep label and price on one line */
  font-size: 0;         /* collapse the original text node so it doesn't add space */
  --discount-fs: 1rem;  /* default size; overridden below when used as a Bulma .title */
}

/* If this block also uses Bulma .title sizes, match them */
.discountedPrice.updateProductPrice.title.is-1 { --discount-fs: 3rem; }
.discountedPrice.updateProductPrice.title.is-2 { --discount-fs: 2.5rem; }
.discountedPrice.updateProductPrice.title.is-3 { --discount-fs: 2rem; }
.discountedPrice.updateProductPrice.title.is-4 { --discount-fs: 1.5rem; }
.discountedPrice.updateProductPrice.title.is-5 { --discount-fs: 1.25rem; }
.discountedPrice.updateProductPrice.title.is-6 { --discount-fs: 1rem; }

/* Inject the new label */
.discountedPrice.updateProductPrice::before {
  content: "Save on this today:\00a0";
  font-size: var(--discount-fs);
  font-weight: inherit;
  color: inherit;
  line-height: 1.2;
}

/* Price styling and spacing */
.discountedPrice.updateProductPrice .productPrice {
  font-size: var(--discount-fs);
  line-height: 1.2;
  color: inherit;
  margin: 0; /* ensure no extra gap */
}

/* Hide the stray <text> element if present */
.discountedPrice.updateProductPrice text {
  display: none !important;
}