/*--------------------------------------------------------------
>>> BASE RESET
--------------------------------------------------------------*/
body, html {
  margin: 0;
  padding: 0;
  background: url(../img/bg.jpg);
  color: #000;
  }

  /* SCreen Overides */

@media (max-width: 480px) { }

@media (min-width: 768px) and (max-width: 979px) {}

@media (min-width: 1200px) { }

/*--------------------------------------------------------------
>>> Headigns and Generic Links
--------------------------------------------------------------*/

h1 {color: #043764; font-family: 'Inter', sans-serif;}
h2 {color: #006699; font-family: 'Inter', sans-serif;}
h3 {color: #337ab7; font-family: 'Inter', sans-serif;}
h4 {color: #043764 !important; font-family: 'Inter', sans-serif; display: block; border-bottom:1px dashed #043764; font-size: 16px !important;}
h5 {color: #337ab7; font-family: 'Inter', sans-serif;}
h6 {color: #337ab7; font-family: 'Inter', sans-serif;}

p {font: size 1.75em; font-family: 'Inter', sans-serif; color: #000; line-height: 1.75em;}

.body-oc ul>li {font: size 1.75em !important; 
  font-family: 'Inter', sans-serif; 
  color: #000; 
  line-height: 1.75em;
list-style: circle !important;}

.body-oc p {
  font-family: 'Inter', sans-serif; 
  color: #000; 
  line-height: 1.75em;}

#content-oc p {font: size 1.75em !important; 
  font-family: 'Inter', sans-serif; 
  color: #000; 
  line-height: 1.75em;}

  ul.thumbnails li {list-style: none !important;}

  #product-title h1 {
  color:#043764;
  font-family: 'Inter', sans-serif;
  font-weight:400;
  display: block;
  padding: 10px 5px;
  background-color: #eee; 
  border: solid 1px #999; 
  margin:0px 0px 15px 0px !important; 
  border-radius: 4px;}

/*--------------------------------------------------------------
>>> BASE Formatting
--------------------------------------------------------------*/
#topnav { background-color:#000; border-bottom:1px solid #fff; color:#FFF; z-index:99999 !important; margin: 0; padding: 0;}
#headerwrapper {border-bottom:1px solid #999; padding:0px; margin: 0px; background-image:url('../images/background.jpg');}
.logosection { padding: 8px 0 0; margin: 0 0 8px 0; }
#showcaseslide {padding:10px 0 20px 0; border-bottom:2px solid #ddd; background-image:url('../images/background.jpg');}
#showcaseslide p {color: #FFF;}



/*======= back to top =========*/
.back-to-top {font-size: 34px; color: #222; opacity: 0.6; position: fixed; right: 20px; bottom: 20px; text-decoration: none; transition: opacity 0.15s linear 0s; text-shadow: 0px 0px 4px #FFF; background: url('../images/top.png') no-repeat scroll 0% 0% transparent; width: 79px; height: 90px; z-index: 9675309; }
span.b2t { font-size:11px !important; text-align:center; color: #222; opacity: 0.6; position: fixed; right: 20px; bottom: 20px; text-decoration: none; transition: opacity 0.15s linear 0s; text-shadow: 0px 0px 4px #FFF; width: 79px; height: 90px; z-index: 9675309;}
.back-to-top:active { opacity: 0.9;    }
.back-to-top:hover {    	opacity: 1;/*    background-color: rgba(135, 135, 135, 0.50);	background-image:url('../images/top.png'); background-repeat:no-repeat;*/}

#belowcrumbs {background-color: #fff; border-bottom:2px solid #ddd; border-top:2px solid #ddd; padding-top: 10px;}

.swiper-slide {border: 1px dashed #f5f5f5; margin:0 3px ;}

#footer {font-size: smaller; color:#fff; text-align: center; padding: 8px 0px; background-color: #000 !important;}
#footer p {color: #FFF;}


.page-header {display: block;
  padding:4px !important;
  font-size: 24px; 
  background-color: #eee; 
  border: solid 1px #999; 
  margin:0px 0px 10px 0px !important; 
  border-radius: 4px;}

  #content-oc h3 {display: block;
  padding:8px 4px !important;
  font-size: 18px; 
  background-color: #eee; 
  border: solid 1px #999; 
  margin:0px 0px 15px 0px !important; 
  border-radius: 4px;
  color:#337ab7;}

#content-oc H2 {display: block;
  padding:10px 4px !important;
  font-size: 24px; 
  background-color: #eee; 
  border: solid 1px #999; 
  margin:0px 0px 15px 0px !important; 
  border-radius: 4px;
  color:#337ab7;}

#content-oc H1 {display: block;
  padding:10px 4px !important;
  font-size: 24px; 
  background-color: #eee; 
  border: solid 1px #999; 
  margin:0px 0px 15px 0px !important; 
  border-radius: 4px;
  color:#337ab7;}


/*--------------------------------------------------------------
>>> Specific Formatting
--------------------------------------------------------------*/

/* Mini Cart -- */
.body-oc .btn-inverse-oc {
    background-image: none !important;
    background-color: #000 !important;
    border: none !important;
}
.text-center .text-right {
    color: #000;
}
.btn-group  {  color: #000; }

/* ======= Content Top ======= */
#content-top {
  background-color: #ddd;
  padding: 15px 0;
  margin-bottom: 0;
}
#content-top h1 {
  font-family: 'Abel', sans-serif;
  font-size: 34px;
  margin: 10px 20px;
  text-align: center;
}
/*==== Feature links formatting --- */

#feature {background-color: white; margin-bottom: 0; padding-bottom: 10px;}

.mod-menu .mod-articleslatest {
  background-color: #FFF;
  border: 1px solid #999;
  border-radius:4px;
  padding:3px;}

#feature ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#feature ul li {
  margin-bottom: 0px;
 
}

#feature ul li a {
  display: block;
  color: #333333;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 5px;
  border-bottom: 1px solid #e0e0e0; 
  background-color: #FFF;
  margin: 0px 0px;
}

#feature ul li a:hover {
  color: #006699;
  padding-left: 5px;
  background:#cac7c7;
}

@media (max-width: 767px) {
  #feature .col-sm-3 {
    margin-bottom: 20px;
  }
}

.pagination__wrapper {
  display: flex;
  justify-content: center; /* centers the whole pagination block */
  margin: 1.5rem 0;
}

.pagination {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin: 0;
  gap: 0.25rem; /* spacing between items */
}

.pagination .page-item {
  display: inline-block;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background-color: #f5f5f5;
  border-color: #999;
  text-decoration: none;
}

.pagination .active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
  pointer-events: none;
}

.pagination .disabled .page-link {
  color: #aaa;
  background-color: #f9f9f9;
  border-color: #ddd;
  pointer-events: none;
}

.items-more {
  margin: 2rem 0;
  padding: 0;
}

.items-more .com-content-blog__links {
  counter-reset: styled-counter;
  list-style: none;   /* hide default numbering */
  margin: 0;
  padding: 0;
}

.items-more .com-content-blog__link {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  font-size: 16px;
  line-height: 1.5;
  border-bottom: 1px solid #eee;
}

.items-more .com-content-blog__link::before {
  counter-increment: styled-counter;
  content: counter(styled-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 28px;
}

.items-more .com-content-blog__link a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.items-more .com-content-blog__link a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* ======= Footer Section (Simplified) ======= */

#beforefooter {
  background-color: #f8f9fa;
  padding: 0px 0 5px;
  border-top: 1px solid #006699;
  font-family: 'Open Sans', sans-serif;
  text-align: left;
}

#beforefooter .container {
  max-width: 1200px;
  margin: 0 auto;
}

#beforefooter .col-sm-3 {
  padding: 0 15px;
  margin-bottom: 15px;
  text-align: left;
  background: none;
  border: none;
  box-shadow: none;
  transition: none;
}

#beforefooter h5 {
  font-size: 16px;
  font-weight: 600;
  color: #006699;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 2px solid #006699;
  padding-bottom: 6px;
padding-top:15px;
  font-family: 'Raleway', sans-serif;
}

#beforefooter ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#beforefooter ul li {
  margin-bottom: 1px;
}

#beforefooter ul li a {
  display: block;
  color: #333333;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 4px;
}

#beforefooter ul li a:hover {
  color: #006699;
  padding-left: 5px;
  background: none;
}

@media (max-width: 767px) {
  #beforefooter .col-sm-3 {
    margin-bottom: 20px;
  }
}


/*--------------------------------------------------------------
>>> INLINE LOGIN BLOCKS
--------------------------------------------------------------*/


.FeaturedProducts {  display: block;
  background-color: #eee;
  padding: 10px 15px;
  margin-bottom: 10px;
  border: 1px solid #999;
  border-radius:4px;}

#feature h3 {  display: block;
  font-size: 14px !important;
  background-color: #eee;
  padding: 0px 5px;
  margin-bottom: 5px;
  border: 1px solid #999;
  border-radius:4px;}

#login-form-16 {background-color: #fff; padding: 5px 10px 10px 10px; border: 1px solid #999;
  border-radius:4px;}
.mod-login__username {display: inline-block;}

#feature .product-thumb {background-color: #fff}

/* Blog post layout for Joomla articles */

.com-content-category-blog__item.blog-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 3rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 2rem;
}

/* Left-aligned image */
.blog-item figure.left.item-image {
  flex-shrink: 0;
  margin: 0;
}

.blog-item figure.left.item-image img {
  width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Content block */
.blog-item .item-content {
  flex: 1;
  font-family: "Open Sans", sans-serif;
  color: #222;
  font-size: 1rem;
  line-height: 1.6;
}

.blog-item .page-header h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.blog-item .page-header a {
  text-decoration: none;
  color: #006699;
  transition: color 0.3s;
}

.blog-item .page-header a:hover {
  color: #444;
}

.blog-item .readmore a.btn {
  margin-top: 1rem;
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  background-color: #ccc;
  color: #222;
  border: 1px solid #999;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.blog-item .readmore a.btn:hover {
  background-color: #f5f5f5;
  color: #000;
}

/* Responsive layout for mobile */
@media screen and (max-width: 768px) {
  .com-content-category-blog__item.blog-item {
    flex-direction: column;
  }

  .blog-item figure.left.item-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }
}


/* Refined Blog Page Main Heading Styling */

.com-content-category-blog.blog h1 {
  font-size: 2.25rem !important;
  font-weight: 400 !important;
  color: #000 !important;
  text-align: left !important;
  margin: 1.5rem 0 2.5rem 0.67rem !important;
  padding: 10px 20px !important;
  letter-spacing: 0.5px !important;
  font-family: "Roboto", sans-serif !important;
  text-transform: none !important;
  background: linear-gradient(to right, #f2f2f2, #fff) !important;
  border-radius: 4px !important;
  border: 1px solid #f5f5f5 !important; 
}

.clr {clear: both;}

/*--------------------------------------------------------------
>>> Hidden Stuff
--------------------------------------------------------------*/

/* INLINE FORM LAYOUT FOR BOOTSTRAP 2 */

.mod-login__username,
.mod-login__password {
  display: block;
  clear: both;
  margin-bottom: 5px;
}

.mod-login__username label,
.mod-login__password label {
  float: left;
  width: 100px;
  line-height: 25px;
  margin-bottom: 0;
}

.mod-login__username input,
.mod-login__password input {
  float: left;
  width: 200px;
  margin-left: 10px;
}

/* Inline checkbox styling */
.mod-login__remember {
  clear: both;
  margin: 10px 0;
}

#form-login-remember-16 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 100px; /* aligns with input start */
}

#form-login-remember-16 .form-check-input {
  margin-top: 0;
}

#form-login-remember-16 .form-check-label {
  margin: 0;
  font-weight: normal;
  color: #333;
}

/* Buttons full width for consistency */
.mod-login__submit {
  clear: both;
  margin-top: 15px;
}

.mod-login__submit button {
  width: 100%;
}
*===========================================================*/

/* Fix inconsistent Mega Menu rendering and alignment */

.mod_jux_megamenu .megamenu-wrapper ul.level0 li.megacss {
  margin: 10px 0 0 4px !important; /* Removed right margin, kept left spacing */
  padding: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  height: 100% !important;
  box-sizing: border-box;
}

/* Ensure anchor tags inside menu are consistently styled */
.mod_jux_megamenu .megamenu-wrapper ul.level0 li.megacss > a {
  padding: 22px 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  font-size: 1.125rem !important; /* Increased font size by approx 2px */
  line-height: 1.5em !important;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Hover fills full block of main menu */
.mod_jux_megamenu .megamenu-wrapper ul.level0 li.megacss > a:hover {
  background-color: #f0f0f0;
  border-radius: 0;
  width: 100%;
  display: flex;
}

/* Flex alignment to center vertically with logo */
.mod_jux_megamenu .megamenu-wrapper ul.level0 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  /*gap: 6px;*/
}

/* Submenu spacing - compact with gap */
.mod_jux_megamenu .megamenu-wrapper ul.level1 li {
  margin-bottom: 2px;
  display: block;
  width: 100%;
}

.mod_jux_megamenu .megamenu-wrapper ul.level1 li a {
  padding: 3px 12px !important; /* Reduced vertical padding */
  font-size: 1.05rem !important; /* Increased font size */
  line-height: 1.5em !important;
  display: block;
  width: 100%;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Submenu hover fills full block */
.mod_jux_megamenu .megamenu-wrapper ul.level1 li a:hover {
  background-color: #f0f0f0;
  display: block;
  width: 100%;
}
