html,
body,
p,
ol,
ul,
li {
  padding: 0;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Roboto", "Helvetica Neue", Arial, sans-serif;
}

body {
  font-size: 1rem;
  font-weight: normal;
  color: #2f4f4f;
  text-align: center;
}

ul,
ol {
  font-family: var(--font-headings, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif);
  margin: 0;
  padding-left: 32px;
}

img {
  height: auto;
  vertical-align: middle;
}

.flex {
  display: flex;
}

a {
  text-decoration: none;
  color: #2f4f4f;
}

#masthead .custom-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

/* 
a.custom-logo-link {
  margin-bottom: 16px;
  text-align: center;
} */
.site-branding {
  text-align: center;
}

.site-logo {
  align-content: center;
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin: 0 auto;
  position: fixed;
  top: 0;
  z-index: 11;
  background: #fff;
  width: 100%;
  margin: 0;
}

.sticky {
  position: sticky;
  top: 260px;
}

div#site-navigation {
  top: 124px;
  z-index: 12;
}

.site-logo img {
  max-width: 50%;
}

.site-title {
  color: #2f83ff;
  font-size: 2.7rem;
  font-family: "Times New Roman";
}

.site-title a:link,
.site-title a:visited {
  color: #2f83ff;
}

.site-title a {
  font-weight: bold;
}

#toggle-menu {
  display: none;
}

.main-navigation>div>ul li:hover>ul,
.main-navigation>div>ul li:focus-within>ul,
.main-navigation>div>ul li ul:hover,
.main-navigation>div>ul li ul:focus {
  visibility: visible;
  opacity: 1;
  display: block;
}

.main-navigation>div>ul>li>.sub-menu {
  background: #fff;
  box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.2);
  top: 100%;
  min-width: -webkit-fill-available;
  opacity: 0;
  position: absolute;
  left: 0;
  transition: all 3.5s ease;
  visibility: hidden;
  font-weight: normal;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.main-navigation li.menu-item,
.main-navigation li.menu-item-contact {
  padding: 12px 16px;
}

.main-navigation .sub-menu .menu-item {
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: left;
  min-width: max-content;
}

/* Show the menu when hovering over the parent list items */
#menu-primary-container>li:hover>.sub-menu {
  display: block;
}

/* Ensure sub-menus are hidden by default */
.sub-menu {
  display: none;
}

.main-navigation>div>ul ul {
  padding-left: 0;
}

.main-navigation>div>ul li {
  display: block;
  position: relative;
  z-index: 1;
  transition: background-color 0.6s ease-in-out;
}

/* Hover effect only for main menu items */
.menu-primary-container>ul>li.main-heading:hover {
  background: white;
  color: #4a8ef5;
  border-radius: 6px;
  transition: 0.6s ease;
  letter-spacing: 0.6px;
  font-weight: bold;
}

/* Reset letter-spacing for submenu items */
.sub-menu>li.menu-item {
  letter-spacing: normal !important;
}

/* Hover effect only for submenu items */
.sub-menu>li.menu-item:hover {
  background: #85b0f1 !important;
  letter-spacing: 0.5px !important;
  transition: 0.3s ease;
  color: #fff !important;
  border-radius: 6px;
}

#masthead {
  align-content: center;
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  max-width: 92vw;
  padding: 60px 0 16px 0;
  margin: 0 auto;
}

#masthead .site-branding {
  flex: 1 100%;
}

.main-navigation>div>ul>li {
  display: flex;
  cursor: pointer;
  justify-content: space-evenly;
  line-height: 1;
  width: 100%;
  text-transform: uppercase;
}

.main-navigation>div>ul {
  justify-content: center;
}

.main-navigation>div>ul {
  display: flex;
  list-style: none;
  margin: 0;
  max-width: none;
  padding-left: 0;
  position: relative;
  justify-content: space-between;
  padding: 0 20px;
}

.menu-primary-container {
  background: #85b0f1;
  display: block;
  position: absolute;
  top: 70%;
  left: 0;
  right: 0;
  z-index: 10;
  font-weight: bold;
}

.image-carousel-container {
  position: relative;
  width: 100%;
  /* height: 100vh; */
  overflow: hidden;
  /* Hide images that are out of view */
}

.image-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  /* Only one image will be shown at a time */
  height: 100%;
  /* Full container height */
  object-fit: contain;
  /* Scale images to fit the container without distortion */
  display: block;
}

.carousel-text {
  position: absolute;
  text-align: center;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 25px;
  font-family: system-ui;
  font-weight: bold;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
  z-index: 10;
  width: 100%;
}

.container {
  display: inline-block;
  position: relative;
  text-align: center;
}

.big-text {
  font-size: 45px;
  font-weight: normal;
  transition: transform 0.3s ease;
}

.hover-text {
  position: absolute;
  font-weight: 400;
  top: 0%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  font-size: 80%;
  color: #fff;
  width: 51%;
  transition: opacity 0.3s ease, top 0.3s ease;
}

.container:hover .big-text {
  transform: translateY(-70px);
}

.image-carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.image-carousel-container:hover::after {
  opacity: .2;
  background: rgba(0, 0, 0, 0.4);
}

.container:hover .hover-text {
  opacity: 1;
  top: 50%;
}

img.home-watermark-logo {
  opacity: 0.3;
  top: 0;
  width: 10%;
}



.watermark-wrapper {
  position: relative;
  display: inline-block;
}

.main-image {
  display: block;
  width: 100%;
  height: auto;
}

.watermark-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15%;
  /* Adjust as needed */
  opacity: 0.3;
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* So the watermark doesn't interfere with clicks */
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.width25 {
  width: 25%;
}

.width50 {
  width: 50%;
}

.width75 {
  width: 75%;
}

.width100 {
  width: 100%;
}

.highlight-blue {
  color: #2470e0;
  font-style: italic;
}

.zoom-shadow:hover {
  box-shadow: grey 0px 4px 15px;
  transform: scale(1.1);
  transition: transform 0.4s;
  background: #fff;
}

.only-shadow {
  transition: box-shadow 0.3s;
}

.only-shadow:hover {
  box-shadow: grey 0px 4px 15px;
  transition: 0.4s ease-in-out;
  background: rgb(219, 231, 236);
}

.product-row {
  padding: 50px;
  display: flex;
}

.product-text-row {
  text-align: left;
  padding: 50px;
  line-height: 27px;
  height: max-content;
}

.accordion-container {
  margin: 0 auto;
  padding: 50px 50px 1px 50px;
}

.accordion-item {
  margin-bottom: 10px;
}

.accordion-header {
  display: flex;
  justify-content: stretch;
  align-items: center;
  padding: 15px;
  background-color: rgb(219, 231, 236);
  cursor: pointer;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  font-family: system-ui;
}

.accordion-arrow {
  transition: transform 1.5s ease;
  font-size: 20px;
}

.down-arrow {
  transform: translateX(20px);
}

.accordion-content {
  max-height: 0;
  padding: 0 20px;
  background-color: #fafad2;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 0;
  line-height: 1.5;
  transition: max-height 0.3s ease, padding 0.9s ease, opacity 0.9s ease;
}

.accordion-item.open .accordion-content {
  max-height: max-content;
  padding: 20px;
  opacity: 1;
}

.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  text-align: left;
}

.accordion-content.conduct p,
.accordion-content.policy p {
  padding: 10px 20px;
}

.accordion-content.conduct ul {
  padding: 0px 0 20px 60px;
}

.accordion-content a:hover {
  color: #0000ff;
}

.accordion-header:hover {
  background: #0089c1;
  color: #fff;
  transition: all 0.4s ease-in-out;
}

.contact-us-section {
  padding: 20px 50px;
}

.contact-us-section h2 {
  padding-left: 35px;
}

.head-office {
  padding: 10px;
  vertical-align: top;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: end;
  height: 100%;
}

footer .product-row {
  background: #3b3b81;
  color: #d3d3d3;
  font-size: 14px;
  padding: 20px;
}

footer a {
  color: #d3d3d3
}

noscript p {
  background: #ff0000;
  color: #ffffff;
  height: 40px !important;
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
}

table {
  word-break: break-word;
}

td {
  vertical-align: middle !important;
}

/*ASTA, CPRI tables*/
.cert-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 50px;
}

.cert-header,
.cert-row td {
  padding: 12px;
  vertical-align: middle;
  text-align: left;
}

.cert-table tr:nth-child(even),
.product-table tr:nth-child(odd) {
  background-color: #ebf1fa;  /* Light grey for alternate rows */
}

.products-page-heading {
  padding: 50px 0 0 0;
}

.certifications .products-page-heading {
  padding: 50px;
}

.products-page p {
  text-align: left;
  padding: 7px 40px;
}

/* Centering only the specific table */
.products-page-table {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Table styling */
.product-table {
  width: 90%;  /* Keeps table responsive */
  max-width: 800px;  /* Limits max size */
  border-collapse: collapse;
  text-align: left;
}

.product-table td {
  padding: 10px;
  font-size: 16px;
}

.products-page .product-row p {
  text-align: center;
}

.products-page.smdb .product-row,
.products-page.mcc .product-row {
  padding: 0;
}

.products-page .products-page-heading h3,
.certifications .products-page-heading h2,
.products .products-page-heading h1,
.gallery .products-page-heading {
  color: #4a8ef5;
}

.certifications .product-row,
.product-certifications .product-row,
.products .product-row {
  align-items: center;
  justify-content: center;
}

.products .product-text-row,
.products .product-row {
  padding-top: 0;
  padding-bottom: 0;
}

.products .product-text-row h1 {
  line-height: 1.2;
}

.mes .product-row li,
.pseh .product-row li {
  text-align: left;
  padding: 5px;
}

.mes .product-row {
  padding-bottom: 0;
  justify-content: space-around;
}

.mes .product-row h3,
.pseh .product-row h3 {
  text-align: left;
}

.lssfw {
  text-align: left;
}

.lssfw li {
  padding: 5px 0px;
}

.lssfw .right-col {
  width: 50%;
}

.right-col div:nth-child(1) {
  justify-self: center;
}

.lssfw .left-col {
  width: 75%;
  padding-left: 50px;
}

.read-more {
  text-decoration: underline;
  color: #4a8ef5;
}

.read-more:hover {
  font-style: italic;
}

.gallery p {
  text-align: center;
}

.gallery .product-row {
  padding-bottom: 10px;
}

.gallery {
  padding-bottom: 20px;
}

.services .product-row {
  align-items: center;
}


.text-container {
  width: auto;
}

.slideshow {
  width: 90%;
  max-width: 800px;
  margin: 40px auto;
  position: relative;
}

.slideshow-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.mySlides {
  display: none;
  text-align: center;
}

.mySlides img {
  width: auto;
  margin: 0 auto;
  display: block;
}

.numbertext {
  position: absolute;
  top: 10px;
  left: 20px;
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 6px;
}

.text {
  position: absolute;
  bottom: 20px;
  width: 100%;
  color: #fff;
  font-size: 18px;
  text-shadow: 1px 1px 2px #000;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  font-size: 24px;
  border-radius: 50%;
  background-color: #5493f3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.prev:hover,
.next:hover {
  color: white;
  background-color: #1952a8;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 7px;
  background-color: #c4d7f3;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}

.active,
.dot:hover {
  background-color: #1b6fee;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 2s;
}

@keyframes fade {
  from {
    opacity: .4
  }
  to {
    opacity: 1
  }
}

.slide-with-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
  text-align: left;
}

.slide-text {
  flex: 1 1 45%;
  min-width: 300px;
  padding: 0 0 20px 20px;
}

.slide-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.slide-text p {
  line-height: 1.5;
}

.slide-section {
  flex: 1 1 45%;
  min-width: 300px;
}

@keyframes skyblueGlow {
  0% {
    box-shadow: 0 0 10px 5px #85b0f1;
  }
  50% {
    box-shadow: 0 0 25px 12px #85b0f1;
  }
  100% {
    box-shadow: 0 0 10px 5px #85b0f1;
  }
}

.slideshow-container:hover {
  animation: skyblueGlow 1.5s ease-in-out infinite;
  transform: scale(1.03);
}

#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  visibility: hidden;
}

#loading-spinner.active {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

#spinner-logo {
  width: 80px;
  height: 80px;
  animation: spinY 1.2s linear infinite;
  transform-style: preserve-3d;
}

@keyframes spinY {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Prevent unwanted horizontal scroll */
div#main-content {
  overflow-x: hidden;
}
.section {
  position: relative;
  overflow: visible; /* Keeps content visible */
  margin-bottom: 50px; /* Adds space between rows */
}
.left-content {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.6s ease-in-out, transform 0.8s ease-out;
  will-change: transform;
}
.right-content {
  opacity: 0;
  transform: translateX(100vw); /* Starts off-screen to the right */
  transition: opacity 0.6s ease-in-out, transform 0.8s ease-out;
  will-change: transform;
}
.show-left {
  opacity: 1;
  transform: translateX(0);
}
.show-right {
  opacity: 1;
  transform: translateX(0);
}
.hide-right {
  opacity: 0;
  transform: translateX(100vw);
}

      /* Tablet and Mobile Adjustments */
      @media screen and (max-width: 1024px) {
        .product-row {
          flex-direction: column;
          align-items: center;
        }

        .width50 {
          width: 100%;
        }

        .product-text-row {
          text-align: center;
          padding: 15px;
        }

        .product-text-row h2 {
          font-size: 1.5rem;
        }

        .product-text-row p {
          font-size: 1rem;
        }

        .process-certifications img,
        .asta img {
          width: 100%;
        }
      }

      @media (min-width: 769px) and (max-width: 915px) {
        .carousel-container {
          width: 65%;
        }
      }

      @media (max-width: 649px) {
        .carousel-container {
          width: 100%;
        }
      }

      /* Tablet fix: 650px to 768px */
      @media (min-width: 650px) and (max-width: 768px) {
        .carousel-container {
          width: 65%;
          /* or something like 80% or fixed width */
        }
      }

      @media (max-width: 768px) {
        div#site-navigation {
          position: absolute;
          top: 0;
          right: 0;
          width: 100%;
        }

        #toggle-menu {
          display: block;
          position: fixed;
          right: 3%;
          top: 2%;
          z-index: 1000;
          cursor: pointer;
        }

        .menu-primary-container {
          display: none;
          position: fixed;
          right: 0;
          top: 50px;
          width: 250px;
          background: white;
          box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
          z-index: 999;
        }

        /* Show menu when checkbox is checked */
        #toggle:checked+#toggle-menu+.menu-primary-container {
          display: block;
        }

        /* Full-screen menu on mobile */
        .menu-primary-container {
          width: 100%;
          height: 100vh;
          top: 0;
          right: 0;
          background: rgba(255, 255, 255, 0.95);
        }

        .main-navigation>div>ul {
          display: inline-block;
          padding: 0;
        }

        .main-navigation>div>ul>li>.sub-menu {
          display: block;
          background: #a2c2f1;
          opacity: 1;
          position: relative;
          visibility: visible;
          min-width: max-content;
          box-shadow: none;
        }

        .big-text {
          font-size: 15px;
          font-weight: bold;
          transition: transform 0.3sease;
        }

        .container:hover .hover-text {
          top: -18%;
        }

        .hover-text {
          font-size: 11px;
          width: 74%;
          transition: opacity 0.3sease, top 0.3sease;
        }

        .image-carousel-container {
          height: auto;
        }

        .image-carousel-container::after {
          content: none;
        }

        .product-row {
          padding: 15px;
          flex-direction: column;
          align-items: center;
        }

        .product-text-row {
          text-align: left;
          padding: 15px;
        }

        .product-text-row h2 {
          font-size: 1.25rem;
        }

        .product-text-row p {
          font-size: 0.95rem;
        }

        .float-left,
        .float-right {
          width: 100%;
          /* Stack vertically on smaller screens */
        }

        .accordion-container {
          padding: 15px;
        }

        .product-table {
          width: 100%;
        }

        .product-table td {
          display: block;
          width: 100%;
          box-sizing: border-box;
        }

        .product-table tr {
          display: flex;
          flex-direction: column;
          padding: 10px;
        }

        .products-page p {
          padding: 7px 20px;
        }

        .products-page-heading {
          padding: 0 10px;
        }

        .asta img,
        .cpri img {
          width: -webkit-fill-available;
        }

        .lssfw .left-col {
          width: auto;
          padding: 0 0 15px 15px;
        }

        .accordion-content {
          padding: 10px 10px 0 0;
        }

        .contact-us-section h2 {
          padding-left: 10px;
        }

        .asta div,
        .cpri div {
          padding: 10px;
        }

        .process-certifications img,
        .asta img {
          width: 100%;
        }
      }

      @media (min-width: 1500px) {
        .slideshow {
          max-width: 1000px;
        }

        .prev,
        .next {
          width: 50px;
          height: 50px;
          font-size: 28px;
        }
      }

      @media (max-width: 600px) {
        .slideshow {
          width: 100%;
        }

        .prev,
        .next {
          top: 45%;
          width: 36px;
          height: 36px;
          font-size: 18px;
        }

        .text {
          font-size: 16px;
        }

        .numbertext {
          font-size: 14px;
        }
      }

      @media (max-width: 768px) {
        .slide-with-text {
          flex-direction: column;
        }
        .slide-section {
          width: 100%;
        }
        .slideshow {
          width: 100% !important;
          margin: 0 auto;
        }
        html{
          overflow-x: hidden;
        }
        #masthead {
          padding: 63px 0 16px 0;
        }  
      }
