:root {
    --scm-red-color: #CC0000;
    --scm-med-gray-color: #7B7879;
    --scm-med-red-color: #C43838;
}


html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@font-face {
    font-family: 'Franklin Gothic Demi';
    src: url('https://cdn.siouxchief.com/prodscmwebsite/Static/Fonts/FranklinGothic-Demi.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
}

@font-face {
    font-family: 'Franklin Gothic Demi Cd';
    src: url('https://cdn.siouxchief.com/prodscmwebsite/Static/Fonts/ITCFranklinGothicStd-DmCd.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
}

@font-face {
    font-family: 'Franklin Gothic Book';
    src: url('https://cdn.siouxchief.com/prodscmwebsite/Static/Fonts/ITCFranklinGothicStd-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
}

@font-face {
    font-family: 'Franklin Gothic Md Cd';
    src: url('https://cdn.siouxchief.com/prodscmwebsite/Static/Fonts/ITCFranklinGothicStd-MdCd.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
}

@font-face {
    font-family: 'Franklin Gothic Bk Cd';
    src: url('../fonts/ITCFranklinGothicStd-BkCd.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
}

/* Bottom Carousel Styles */
#bottomCarousel {
    height: 100%;
}

#bottomCarousel .carousel-inner {
    height: 100%;
}

#bottomCarousel .carousel-item {
    height: 100%;
}

#bottomCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
}


.carousel-item {
    width: 100%;
}

.carousel-item img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.carousel {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .carousel-item {
        overflow: hidden; /* prevents any bleed/whitespace */
    }

    .carousel-item a {
        display: block; /* IMPORTANT */
        height: 100%;
     }
}


.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0.5) contrast(0.5) grayscale(1);
    opacity: 0.8;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    opacity: 1;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0px;
}

/* Navbar styles */
.navbar {
    background-color: var(--scm-red-color) !important;
}

/* Multi-level dropdowns for Bootstrap 5 */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    position: absolute;
}
.dropdown-submenu:hover > .dropdown-menu, .dropdown-submenu:focus-within > .dropdown-menu {
    display: block;
}
.dropdown-menu > .dropdown-submenu > a:after {
    float: right;
    font-family: 'FontAwesome';
    margin-left: 10px;
}

/* Product Details Styles */
.bordered-text {
    position: relative;
    padding: 1px;
    margin: 1px;
    border: 1px solid #CCC;
}

.bordered-text::before {
    content: attr(data-text);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ececec;
    padding: 0 5px;
    color: #000;
}

.header-row th {
    padding: 10px;
}

.dept-products tr:not([style*="background:#e5e5e5"]) {
    background-color: transparent;
}

.dept-products tr:not(.category-row-parent) td:first-child {
    border: none;
}

.dept-products td {
    border: 1px solid black;
    text-align: center;
    background-color: transparent;
    padding: 5px;
}


.dept-products th {
    border: none;
    color: var(--scm-red-color);
    font-weight: bold;
    text-align: center;
}

.dept-products {
    margin-left: auto;
    margin-right: auto;
}

.category-row {
    border-top: 1px solid black !important;
    border-bottom: 1px solid black !important;
    border-left: 1px solid black !important;
    border-right: 1px solid black !important;
    background-color: #d3d3d3 !important;
    font-family: 'Franklin Gothic Demi Cd', Arial, sans-serif;
    font-size: 1.5rem;
    height: 50px;
}

.dept-products td:last-child {
    width: 120px;
    padding: 0.5rem;
}




.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    height: 24px;
}

.navbar-dark .navbar-toggler-icon {
    filter: brightness(0) invert(1) !important;
}

.navbar-dark .nav-link {
    color: white !important;
}

.navbar-dark .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Custom dropdown caret */
.dropdown-item.dropdown-toggle::after {
    display: none;
}

.dropdown-item.dropdown-toggle::before {
    content: '>  '; /* Replace default caret with '>' symbol and add two spaces */
    margin-left: 0.25rem;
    vertical-align: 0.255em;
    font-size: 0.8em;
    line-height: 0;
    opacity: 0.5;
}

/* Footer styles extracted from _Layout.cshtml */
.footer a:link {
    color: #959595 !important;
    text-decoration: none;
}
.footer a:hover,
.footer a:visited,
.footer a:active {
    color: #959595 !important;
    text-decoration: none;
}
.footer h5 {
    color: white !important;
}
.footer-red-row {
    background-color: var(--scm-red-color);
    padding: 1rem 0;
}
.footer .row:last-child * {
    color: #fff !important;
}
.footer .img-fluid {
    max-height: 60px;
}
.footer .take-the-field {
    max-height: 24px;
}

.nav-tabs .nav-link {
    background-color: #666666 !important;
    border: none;
    color: white !important;
    flex: 1;
    text-align: center;
    border-top-left-radius: 0.50rem;
    border-top-right-radius: 0.50rem;
}

    .nav-tabs .nav-link.active {
        background-color: var(--scm-red-color) !important;
        color: white !important;
    }

    .nav-tabs .nav-link:hover {
        background-color: var(--scm-red-color) !important;
        color: white !important;
    }

.nav {
    border-bottom: 2px solid var(--scm-red-color);
}


.featured-products-image {
    max-height: 100%; /* image never exceeds the carousel height */
    max-width: 100%; /* image never exceeds its container width */
    width: auto; /* maintain aspect ratio */
    height: auto; /* maintain aspect ratio */
    object-fit: cover; /* ensure full image is visible */
    margin: 0 auto; /* center horizontally */
    display: block;
}



/* Infinite seamless scroll */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* Video Dots Styles */
.video-dots {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.video-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.video-dot:hover {
    background-color: #999;
}

.video-dot.active {
    background-color: var(--scm-red-color);
}

.video-dot-title {
    display: none;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

.video-dot:hover .video-dot-title {
    display: block;
}

/* --- START: siouxchief-colors.css --- */
/* Sioux Chief Color Palette and Theme Overrides */

body {
    color: #333;
    font: 12px Helvetica, Arial, sans-serif;
    line-height: 18px;
}

hr {
    height: 1px;
    border: 0;
    background-color: #cccccc;
}

a:link, a:visited, a:active {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

input[type="text"], textarea, select {
    padding: 3px 5px;
    border: 1px solid #cccccc;
    font-size: 12px;
    font-family: "Franklin Gothic Demi", Arial, Helvetica, sans-serif;
}
input[type="text"]:focus, textarea:focus, select:focus {
    outline: none;
    border: 1px solid #fafafa;
    box-shadow: 0 0 5px #007eff;
}

input[type="button"], input[type="submit"], input[type="reset"] {
    border-radius: 0;
}

.uniform-card {
    min-height: 150px;
    width: 100%;
    padding: 4px;
}

.card.uniform-card {
    border: none;
}

.clear {
    clear: both;
}

.red {
    color: red;
}

/* Bootstrap theme overrides */
.navbar, .navbar-light, .navbar.bg-light {
    background-color: #fff !important;
    border-bottom: 2px solid var(--scm-med-red-color) !important;
}

.navbar-brand, .navbar-nav .nav-link {
    color: var(--scm-med-red-color) !important;
    font-weight: bold;
    letter-spacing: 1px;
}

    .navbar-nav .nav-link.active, .navbar-nav .nav-link:focus, .navbar-nav .nav-link:hover {
        color: var(--scm-med-gray-color) !important;
    }

.btn-primary, .btn-primary:active, .btn-primary:visited {
    background-color: var(--scm-med-red-color) !important;
    border-color: var(--scm-med-red-color) !important;
    color: #fff !important;
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--scm-med-gray-color) !important;
        border-color: var(--scm-med-gray-color) !important;
        color: #fff !important;
    }

.card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-radius: 1rem;
    border: 1px solid #B5B5B5;
}

.card-title, .card-text, .card-body {
    padding: 4px;
}

footer, .footer, .bg-light {
    background: #ECECEC !important;
    color: #333 !important;
    border-top: 2px solid var(--scm-med-red-color);
}

    footer a, .footer a {
        color: var(--scm-med-red-color) !important;
    }

    footer a:hover, .footer a:hover {
        color: var(--scm-med-gray-color) !important;
    }

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--scm-med-red-color);
    font-family: "Franklin Gothic Demi", Arial, Helvetica, sans-serif;
}

/* Utilities */
.bg-primary {
    background-color: var(--scm-med-red-color) !important;
}
.text-primary {
    color: var(--scm-med-red-color) !important;
}
.text-secondary {
    color: var(--scm-med-gray-color) !important;
}
/* --- END: siouxchief-colors.css --- */

/* Brochure image hover effect */
.brochure-image {
    max-height: 40px;
    margin-right: 5px;
    transition: transform 0.3s ease, max-height 0.3s ease;
    cursor: pointer;
}

.brochure-image:hover {
    transform: scale(2);
    max-height: 80px;
    z-index: 1000;
}

/* Product Super Class and Product Class PDF image hover effect */
.class-pdf-image {
    max-height: 100px;
    margin-right: 5px;
    transition: transform 0.3s ease, max-height 0.3s ease;
    cursor: pointer;
}

    .class-pdf-image:hover {
        transform: scale(2);
        max-height: 220px;
        z-index: 1000;
    }

/* Main product image hover effect */
.main-product-image {
    max-height: 250px;
    margin-right: 0;
    transition: transform 0.3s ease, max-height 0.3s ease;
    cursor: pointer;
}

    .main-product-image:hover {
        transform: scale(2);
        max-height: 2000px;
        z-index: 1000;
        position: relative;
        background: white;
        transition-delay: 0.5s; /* 👈 Delay 0.5s before zooming */
        box-shadow: 0 0 15px rgba(0,0,0,0.3);
    }

/* product carousel image hover effect */
.product-carousel-image {
    max-height: 200px;
    object-fit: contain;
    margin-right: 0;
    transition: transform 0.3s ease, max-height 0.3s ease;
    cursor: pointer;
}

    .product-carousel-image:hover {
        transform: scale(4);
        max-height: 2000px;
        z-index: 1000;
        position: relative;
        background: white;
        transition-delay: 0.5s; /* 👈 Delay 0.5s before zooming */
        box-shadow: 0 0 15px rgba(0,0,0,0.3);
    }

.nav-tabs .nav-link {
    white-space: normal !important; /* allow wrapping */
    word-break: break-word; /* break long words if needed */
    width: 185px; /* fixed width */
    height: 60px;
    max-width: 185px; /* ensure max width is also 150px */
    text-align: center; /* looks better when wrapped */
    padding: .5rem .75rem; /* optional: tighter spacing */
}


/* Custom breadcrumb styling */
.breadcrumb {
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Search By Product Type bar */
.search-products-red-row {
    background-color: var(--scm-red-color);
    color: white;
    font-size: 16px;
    font-weight: bold;
}


.box a.learn-more-link, .box a.learn-more-link:visited, .view-link, .view-link:visited {
    padding-left: 18px;
    background: url(../images/bullet-a.png) no-repeat 0 50%;
    color: var(--scm-red-color);
}


/* Home/Index Page slideshow ticker */ 
.ticker-wrapper {
      overflow: hidden;
      background: #f8f9fa;
      border: 1px solid #ccc;
      white-space: nowrap;
    }

.ticker-text {
      display: inline-block;
      padding-left: 10%;
      animation: ticker-scroll 120s linear infinite;
    }

@keyframes ticker-scroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-100%); }
    }


/* Home/Index Page video overlay */ 
.video-container {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
      }
.video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
.carousel-video-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.carousel-video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticker-video-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 270px; /* 16:9 width for 150px height */
    height: 150px;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.ticker-video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.ticker-video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close-video-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--scm-red-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 11;
}

    .close-video-btn:hover {
        background-color: var(--scm-med-gray-color);
    }

.close-video-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #cc0000;
}
.overlay-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.4); /* Semi-transparent overlay */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
      }

      .group-checkbox {
        width: 15px !important;
        height: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: #fff;
        border: 1px solid #adb5bd;
        border-radius: 0;
        position: relative;
    }

    .group-checkbox:checked {
        background-color: #0d6efd;
        border-color: #0d6efd;
        transform: none;
    }

    .group-checkbox:checked::after {
        content: "✓";
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 10px;
        color: white;
        font-weight: bold;
    }

    .group-checkbox + label {
        margin-left: 8px;
    }

/* Set the default font for the entire website */
html, body {
    font-size: 1.1em;
    letter-spacing: .01em;
    font-family: "Franklin Gothic", Arial, Helvetica, sans-serif;
}

/* Reduce padding for accordion-body */
.accordion-body {
    padding: 0.5rem 1rem;
}

.hover-wrapper {
    position: relative;
    display: inline-block;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}

.hover-image {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    border: 1px solid #ccc;
    background: white;
    padding: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    z-index: 999;
}

.hover-wrapper:hover .hover-image {
    display: block;
}

/* Overlay styles */
.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    z-index: 2;
    transition: opacity 0.5s ease;
}

/* Spinner */
.spinner {
    width: 40px; height: 40px;
    border: 4px solid #fff;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.pricing-download-btn {
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.pricing-download-btn:hover {
        text-decoration: underline;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card styling only */
.product-super-card {
    box-shadow: none;
    font-size: 0.85rem;
    width: 100%;
    min-height: 100px;
}

.product-super-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or contain – see below */
}


.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,.6);
}



.text-scm-red {
    color: var(--scm-red-color);
}


/* CSS that affects the layout page top 'Featured Products' menu bar on smaller screens */

@media (max-width: 768px) {

    /* allow flex children to shrink */
    .featured-products-scroll-wrapper {
        min-width: 0;
    }

    .featured-carousel {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .featured-products-scroll {
        display: flex;
        flex: 1;
        overflow: hidden; /* no scrollbar */
        scroll-snap-type: x mandatory;
    }

        .featured-products-scroll > a {
            flex: 0 0 100%; /* ONE item per view */
            scroll-snap-align: center;
            text-align: center;
            white-space: nowrap;
            margin-right: 0 !important; /* override inline margin on small screens */
        }

    .carousel-arrow {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0 6px;
        line-height: 1;
    }

        .carousel-arrow:disabled {
            opacity: 0.3;
            pointer-events: none;
        }

    .featured-products-scroll-wrapper span,
    .featured-products-label {
        margin-right: 12px !important;
        white-space: nowrap;
    }

    .site-top-nav-container {
        row-gap: 0.5rem;
    }

    .site-auth-area {
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
    }

    .site-auth-links {
        flex-wrap: wrap;
        justify-content: flex-end;
        min-width: 0;
        row-gap: 0.25rem;
    }

    .site-auth-links .btn {
        white-space: nowrap;
        margin-right: 0.4rem !important;
    }

    .site-search-bar {
        min-height: 58px;
        height: auto !important;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .site-main-content {
        padding: 1rem !important;
    }

    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-link {
        width: auto;
        max-width: none;
        min-width: 140px;
        height: auto;
    }
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

.breadcrumb {
    flex-wrap: wrap;
    row-gap: 0.25rem;
    word-break: break-word;
}

.video-thumb {
    position: relative;
    display: inline-block;
    height: 100px;
}

    .video-thumb img {
        height: 100px;
        aspect-ratio: 16/9;
        width: auto;
        display: block;
    }

    .video-thumb .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 32px;
        color: white;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        padding: 10px 14px;
        pointer-events: none; /* keeps link clickable */
    }

.bordered-container {
    border: 1px solid black;
    margin: 10px 0;
}

.carousel img,
.featured-products-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .bordered-container {
        height: auto;
    }

    .carousel img,
    .featured-products-image {
        height: auto;
    }
}

@media (max-width: 1400px) {
    .scrollable {
        overflow-x: auto;
    }

    .responsive {
        min-width: 900px;
    }
}


.arrow-col {
    text-align: center;
    width: 30px; /* small fixed width for the arrow */
    border: none; /* ensure no border */
}

.arrow {
    display: inline-block;
    font-size: 1.2rem; /* adjust size */
    color: var(--scm-red-color); /* Bootstrap link color */
}

.babaa-description,
.super-description,
.class-description {
    font-family: 'Franklin Gothic Demi', Arial, sans-serif;
    flex: 1;
    margin-left: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    line-height: 1.5;
}
