/*!
 * Bootstrap v3.3.6 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */

@font-face {
 font-family: 'MyBrandFont';
 src: url('/fieldwork-font.woff2') format('woff2');
 font-weight: normal;
 font-style: normal;
 font-display: swap;
}


/* Apply the font globally and all elements */
html, body, p, a, h1, h2, h3, h4, h5, h6, .button, button, .btn, .entitylist-filter-option-group-label {
 font-family: 'MyBrandFont', sans-serif !important;
}

.header-container {
    height: 50px !important;
    justify-content: space-between !important;
    width: 100vw;
}

.navbar {
    height: 70px !important;
}

.navbar-nav > li > a {
    padding-top: auto; /* Adjust padding to keep items centered */
    padding-bottom: auto;
    padding-left: auto;
}

.navbar-header {
    width: 250px;
    height: 70px;
    margin-top: -5px;
    margin-left: -15px;
    background-repeat: no-repeat;
}

.navbar-toggler {
    background-color: #009343 !important;
    border-color: #009343 !important;
}

.castrol-landing-page { 
    background: #fff; 
}

.brand-heading { 
    font-size: 3rem; 
    font-weight: 800; 
    color: #1a1a1a; 
    margin-bottom: 5px; 
    margin-top: -20px;
}

.brand-subtext { 
    font-size: 1.2rem; 
    color: #666; 
}

/* Banner */
.performance-banner {
    width: 100vw;
    height: 400px;
    background-color: #000;
    background-image: url('/Castrol-ANZ-banner-2048.jpg');
    background-size: cover;
    background-position: right;
    margin-top: -20px;
}

.navbar-expand-xl {
    background-color: #fff !important;
    width: 100vw;
}

.btn-castrol-primary {
    background: #009343; 
    color:  #fff; 
    border:2px solid #009343; 
    border-radius: 8px; 
    font-weight: 600; 
    padding: 10px 20px; 
    text-transform: uppercase; 
    margin-right: 12px;
}

.btn-castrol-outline { 
    background: transparent; 
    color: #1a1a1a; 
    border:2px solid black; 
    border-radius: 8px; 
    font-weight: 600; 
    padding: 10px 20px; 
    text-transform: uppercase;
}

.btn-castrol-primary:hover,
.btn-castrol-outline:hover { 
    background: #0e51cb; 
    color: #fff;
}

.custom-timer-green {
   color: #009343 !important;
   font-size: 40px;          
   line-height: 1;
   display: block;
}

.navbar-collapse.show {
    left: 10 !important;
    visibility: visible !important;
    border-radius: 8px !important;
    background-color: #009343;
    color: #fff;
   }

@media (max-width: 540px) {
.performance-banner {
    width: 100vw;
    height: 100px !important;
    background-position: right !important;
   }
}

@media (min-width: 541px) and (max-width: 840px) {
.performance-banner {
    height: 150px !important;
    width: 100vw !important;
   }
}

@media (min-width: 841px) and (max-width: 1024px) {
.performance-banner {
    height: 200px !important;
    width: 100vw !important;
   }
}

@media (min-width: 2150px) {
.performance-banner {
    background-image: url('/Castrol-ANZ-banner-2600.jpg');
    height: 800px !important;
    width: 100vw !important;
    background-position: center !important;
    aspect-ratio: 4/1;
   }
}


@media (max-width: 1023px) {
    .filter-vertical {
        display: none !important;
    }
}

@media (max-width: 1024px) {
.navbar-header {
    left: 2% !important;
    height: 54px;
    margin: 0 auto;
    margin-top: -1% !important;
    position: absolute !important;
    justify-content: center !important;
   }
.navbar-toggler {
    right: 10px !important;
    margin-top: 20px !important;
    position: fixed !important;
    }
.navbar-expand-xl {
    width: 100vw;
}
.navbar-nav > li > a {
    font-size: 14px !important;
   }
html, body {
    font-size: 14px;
    overflow-x: hidden; 
   }
h1, .siteTitle, .section-title {
    font-size: 1.5rem !important;
   }
h2, h4, .entitylist-filter-option-group-label {
    font-size: 1.25rem !important;
   }
p, span, li {
    font-size: 0.9rem !important;
   }



/* Used to convert the list to card gallery only for mobile */
.entity-grid table thead,
.entitylist-search,
.view-filter-select,
.sidebar,
.entity-filter {
    display: none !important;
   }
.entity-grid table,
.entity-list,
.entity-grid table tbody {
    display: block !important; 
    width: 100vw !important;
    border: none !important;
    margin: 0 !important;
   }
.entity-grid table tbody tr {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 15px !important; /* Space between the cards vertically */
    box-shadow: 0 2px 4px #000 !important;
    width: auto !important; 
    margin-left: 10px;
    margin-right: 10px;
   }
.view-grid tbody td {
    border-bottom: #fff !important;
    border-top: #fff !important;
   }
.entity-grid table tbody tr td {
    display: block !important;
    width: 100% !important;
    border: none !important;
    padding: 5px 0 !important;
    text-align: left !important;
    font-size: 14px !important;
   }
.custom-timer-green {
   font-size: 30px !important;          
   }
.custom-timer-text {
   color: #000 !important;
   font-size: 15px;          
}
.btn-castrol-primary, .btn-castrol-outline {
    font-size: 11px !important;
}
.castrol-branding-header span {
    font-size: 17.5px !important;
  }

.navbar-collapse {
    max-height: 80vh !important; 
    position: absolute !important;
    top: 55px;
    right: -100%; 
    width: 300px; 
    height: auto !important; 
    background-color: #009343;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    /* Animation */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    /* Scroll support for long menus */
    overflow-y: auto !important;
    display: block !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    visibility: hidden !important;
   }
.navbar-collapse.show {
    right: 0 !important;
    visibility: visible !important;
    border-radius: 8px !important;
    overflow-y: auto !important;
    position: fixed !important;
   }
.navbar-collapse ul li {
   list-style: none;    /* Removes the bullet points */
   width: 100%;
   border-bottom: 1px solid #e0e0e0;
   box-sizing: border-box; /* Prevents the border from causing horizontal scroll */
   height: 35px !important;
    }
/*Style the link inside to make it a large touch target */
.navbar-collapse ul li a {
   display: block;        
   padding: 10px 10px; /* generous spacing for Nest Hub/Touch screens */
   color: #fff !important;
   text-decoration: none;  
   transition: background 0.2s;  /* Smooth hover transition */
    }
/* Remove the line from the very last item*/
.navbar-collapse ul li:last-child {
   border-bottom: none !important;
    }

}

@media (max-width: 1203px) and (horizontal-viewport-segments: 1) {
    .navbar-toggler {
    right: 1% !important;
    top: 0.5% !important;
    z-index: 999999 !important;
    position: absolute;
    transform: translateZ(0) !important;
    }
    .navbar-collapse {
    max-height: 80vh !important; 
    position: absolute !important;
    top: 55px;
    right: -100%; 
    width: 300px; 
    height: auto !important; 
    background-color: #009343;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    /* Animation */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    /* Scroll support for long menus */
    overflow-y: auto !important;
    display: block !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    display: none;
    visibility: hidden !important;
   }
.navbar-collapse.show {
    right: 0 !important;
    visibility: visible !important;
    border-radius: 8px !important;
    overflow-y: auto !important;
   }
.navbar-collapse ul li {
   list-style: none;    /* Removes the bullet points */
   width: 100%;
   border-bottom: 1px solid #e0e0e0;
   box-sizing: border-box; /* Prevents the border from causing horizontal scroll */
   height: 35px !important;
    }
/*Style the link inside to make it a large touch target */
.navbar-collapse ul li a {
   display: block;        
   padding: 10px 10px; /* generous spacing for Nest Hub/Touch screens */
   color: #fff !important;
   text-decoration: none;  
   transition: background 0.2s;  /* Smooth hover transition */
    }
/* Remove the line from the very last item*/
.navbar-collapse ul li:last-child {
   border-bottom: none !important;
    }

}
