@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

/* VARIABLES */
:root {
  --mid: #d6d1cd;
  --dark: #b3a9a2;
  --black: #191919;
  --light: #e2dedb;
  --lightbeige: #ffffff;
  --link: #223570;
  --darkest: #5b5753;
  --white: #f2f2f2;
}
html {
  scroll-padding-top: 100px; /* Adjust value as needed */
}

/* FONT */

.ibm-plex-sans {
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-variation-settings:
    "width" 100;
}

/* GENERAL */

body {
  width: 100%;
  margin: 0 auto;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  text-align: center;
  background-color: var(--white);
}

.content {
  margin: 0 auto;
  max-width: 70%;
  box-sizing: border-box; 
}
@media (max-width: 768px) {
  .content {
    max-width: 95%;
  }
}

h1 {
  text-align: left;
  vertical-align: center;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(2.2vw, 24px);
  font-weight: 600;
  margin-top: 20px;
}

.imptext {
  text-align: left;
  vertical-align: center;
  font-family: "IBM Plex Sans Condensed", Helvetica, Arial, sans-serif;
  font-size: max(1.2vw, 12px);
  font-weight: 400;
  line-height: max(2.4vw, 22px);
}

/* NEW HEADER */
* { margin: 0; padding: 0; box-sizing: border-box; }
.navbar {
  background-color: var(--dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky; top:0; z-index:1000; width:100%;
  height: clamp(65px, 10vw, 80px);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  position: relative;
}

.menu-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px; height: 21px;
  cursor: pointer;
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  z-index: 12;
}
.hamburger span {
  display: block;
  height: 2px; width: 80%;
  background-color: var(--black);
  border-radius: 3px;
  transition: all 0.3s;
}
.menu-toggle:checked + .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle:checked + .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle:checked + .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-left {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  z-index: 2;
  padding-left: 70px;
}
.nav-link {
  color: var(--black);
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 500;
  font-size: max(1.1vw, 16px);
  transition: color 0.2s;
  display: inline-block;
}
.nav-link:hover { color: white; }

.logo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  height: 60px;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.logo img {
  width: clamp(130px, 12vw, 350px);
  height: auto;
}

.nav-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 2;
  padding-right: 20px;
}
.es-link-desktop {
  color: var(--black);
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 500;
  font-size: max(1.1vw, 16px);
  transition: color 0.2s;
  display: inline-block;
  margin-left: 10px;
}
.es-link-desktop:hover { color: white; }

/* Spanish flag for mobile, absolute right */
.es-link-mobile {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  padding: 0;
}
.es-flag-img {
  display: block;
  width: 30px;
  height: 30px;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: clamp(65px, 10vw, 80px);
  left: 0; width: 100%;
  background-color: var(--mid);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
}
#menu-toggle:checked ~ .mobile-menu { display: block; }
.mobile-menu a {
  display: block;
  padding: 15px 20px;
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 17px;
}
.mobile-menu a:hover { background: rgba(0,0,0,0.05); }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .nav-left, .nav-right { display: none !important; }
  .hamburger { display: flex; }
  .logo { left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); margin: 0 auto; }
  .es-link-mobile { display: block; }
}

@media (min-width: 769px) {
  .hamburger { display: none; }
  .nav-left, .nav-right { display: flex; }
  .es-link-mobile { display: none; }
}

/* NEW SECOND ROW */
/* Category Navigation Bar */
    .category-nav {
      background-color: var(--mid);
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      width: 100%;
    }
    
    .category-container {
      display: flex;
      max-width: 1200px;
      margin: 0 auto;
    }
    
    .category-item {
      flex: 1;
      display: flex;
      align-items: stretch;
      transition: background-color 0.2s ease;
    }
    @media (max-width: 768px) {
    .category-item {
      min-height: 20px; /* Shorter on tablets */
    }
    
    .category-link, .dropbtn {
      padding: 10px 6px;
      font-size: 12px;
      line-height: 1.1;
    }
  }
    
    .category-item:hover {
      background-color: rgba(0, 0, 0, 0.1); /* Darkens the entire cell */
    }
    
    .category-link, .dropbtn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 12px 8px;
      color: var(--black);
      text-decoration: none;
      font-family: "IBM Plex Sans Condensed", Helvetica, Arial, sans-serif;
      font-weight: 400;
      font-size: max(1.1vw, 12px);
      text-align: center;
      white-space: nowrap;
      transition: color 0.2s ease;
    }
    .category-link-esp, .dropbtn-esp {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 12px 8px;
      color: var(--black);
      text-decoration: none;
      font-family: "IBM Plex Sans Condensed", Helvetica, Arial, sans-serif;
      font-weight: 400;
      font-size: max(1vw, 11px);
      text-align: center;
      white-space: nowrap;
      transition: color 0.2s ease;
    }
    .dropbtn, .dropbtn-esp {
      background-color: transparent;
      border: none;
      cursor: pointer;
    }
        
    /* Responsive adjustments */
    @media (max-width: 768px) {
      .category-container {
        flex-wrap: wrap;
      }
      
      .category-item {
        flex-basis: 33.33%;
        min-width: 120px;
      }
      
      .category-link, .dropbtn {
        font-size: 12px;
        padding: 10px 4px;
      }
      .category-link-esp, .dropbtn-esp {
        font-size: 11px;
        padding: 10px 4px;
      }
    }
    
    @media (max-width: 576px) {
      .category-item {
        flex-basis: 50%;
      }
    }



/* DROPDOWN */

/* Dropdown Button */
.thick-arrow-down {
  width: max(0.5em,5px);
  height: max(0.5em,5px);
  border: max(0.15em,2px) solid var(--black);
  border-left: 0;
  border-top: 0;
  transform: translateY(-15%) rotate(45deg);
  display:inline-block;
}

/* Dropdown Container */
.dropdown {
  position: relative;
  display: inline-block;
  margin: 0 10px;
  width: 100%; /* Ensure dropdown container takes full width */
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content, .dropdown-content-esp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  
  background-color: var(--light);
  width: max(12vw, 140px);
  z-index: 10;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

/* Dropdown Links */
.dropdown-content a {
  font-family: "IBM Plex Sans Condensed", Helvetica, Arial, sans-serif;
  color: var(--black);
  padding: clamp(4px, 1vw, 8px) clamp(8px, 1.5vw, 12px); /* Responsive padding */
  text-decoration: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: max(12px, 1.1vw); /* Responsive font size */
  font-weight: 400;
  line-height: 1.4; /* Responsive line height */
  border-radius: clamp(3px, 0.5vw, 5px); /* Responsive border radius */
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  margin-bottom: clamp(2px, 0.5vw, 5px); /* Responsive margin */
}
.dropdown-content-esp a {
  font-family: "IBM Plex Sans Condensed", Helvetica, Arial, sans-serif;
  color: var(--black);
  padding: clamp(4px, 1vw, 8px) clamp(8px, 1.5vw, 12px); /* Responsive padding */
  text-decoration: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: max(11px, 1vw); /* Responsive font size */
  font-weight: 400;
  line-height: 1.4; /* Responsive line height */
  border-radius: clamp(3px, 0.5vw, 5px); /* Responsive border radius */
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  margin-bottom: clamp(2px, 0.5vw, 5px); /* Responsive margin */
}

/* Alternative: Media query approach for more control */
@media (max-width: 768px) {
  .dropdown-content a{
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 2px;
    border-radius: 3px;
  }
  .dropdown-content-esp a{
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 2px;
    border-radius: 3px;
  }
}

/* Remove margin from last item */
.dropdown-content a:last-child {
  margin-bottom: 0;
}
.dropdown-content-esp a:last-child {
  margin-bottom: 0;
}

/* Hover Effects */
.dropdown-content a:hover {
  background-color: var(--mid);
}
.dropdown-content-esp a:hover {
  background-color: var(--mid);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
}
.dropdown:hover .dropdown-content-esp {
  opacity: 1;
  visibility: visible;
}

/* Dropdown Button Hover Effect */
.dropdown:hover .dropbtn {
  color: var(--black);
}

/* Rotating Arrow */
.expand-arrow {
  width: max(0.5em,5px);
  height: max(0.5em,5px);
  border: max(0.15em,2px) solid currentColor;
  border-left: 0;
  border-top: 0;
  transform: translateY(-15%) rotate(45deg);
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

/* Optional: Rotate arrow when dropdown is hovered */
.dropdown:hover .expand-arrow {
  transform: translateY(30%) rotate(225deg);
}

/* NEW FOOTER */
.footer {
  background: var(--darkest); /* Black background */
  color: #e2dedb;      /* Soft light text */
  font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  padding: 10px 0 0 0;
  box-shadow: 0 -8px 10px rgba(0,0,0,0.1);
  text-align: center;;
  margin-top: 30px;
}
.footer__container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding: 0 3vw;
}
.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.footer__column {
  min-width: 0;
  margin-bottom: 0;
}
.footer h1 {
  font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  font-weight: 550;
  font-size: max(1.6vw, 18px);
  color: var(--mid);
  margin-bottom: 34px;
  text-shadow:  0px 4px 8px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.footer__about h2, .footer__column h2 {
  font-family: 'IBM Plex Sans Condensed', Helvetica, Arial, sans-serif;
  font-weight: 450;
  font-size: max(1.3vw, 16px);
  color: var(--white);
  margin-bottom: 8px;
}
.footer__about p {
  font-family: 'IBM Plex Sans Condensed', Helvetica, Arial, sans-serif;
  color: --;
  font-size: max(1.1vw, 14px);
  line-height: 1.45;
  margin-bottom: 32px;
  margin-top: 32px;
  text-align: justify;
}
.footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__column ul li {
  font-size: max(1.1vw, 14px);
  line-height: 1.5;
  color: var(--white);
  transition: color 0.2s;
  text-align: center;
}
.footer__column ul li a {
  color: var(--white);
  text-decoration: underline;
  transition: color 0.2s;
  font-weight: 300;
}
.footer__column ul li a:hover {
  color: var(--dark);
  text-decoration: underline;
}
.footer hr {
  border: none;
  border-top: 2px solid #d6d1cd;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 24px;
}
.footer__copyright {
  font-family: 'IBM Plex Sans Condensed', Helvetica, Arial, sans-serif;
  padding: 28px 3vw 28px 3vw;
  color: #d6d1cd;
  font-size: 0.8vw;
  font-weight: 350;
  text-align: center;
  letter-spacing: 1px;
}
@media (max-width: 1000px) {
  .footer__container {
    flex-direction: column;
    gap: 0px;
  }
  .footer__column {
    margin-bottom: 36px;
    min-width: unset;
  }
  .footer__about h2, .footer__column h2 {
    font-family: 'IBM Plex Sans Condensed', Helvetica, Arial, sans-serif;
    font-size: max(1.4vw, 18px);

  }
  .footer__about p, .footer__about address {
    font-size: max(1.1vw, 14px);
  }
  .footer__column ul li {
    font-size: max(1.1vw, 14px);
  }
  .footer__copyright {
    font-size: max(1.1vw, 14px);
  }
}
@media (max-width: 650px) {
  .footer {
    padding-top: 5px;
  }
  .footer__container {
    padding: 0 4vw;
  }
  .footer__about h2, .footer__column h2 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  .footer__about p, .footer__about address {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
  .footer__column ul li {
    font-size: 0.75rem;
  }
  .footer__copyright {
    font-size: 0.75rem;
  }
}

.hrstyle {
  width: max(30%, 50px);
  margin: 15px auto;
  border-top: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
  border-left: solid var(--dark);
  border-right: solid var(--dark);
  border-style: solid;
}

/* FLOATING CONTACT *?

/* Contact Floating Button */
    .contact-toggle {
      position: fixed;
      bottom: 25px;
      right: 25px;
      z-index: 999;
      background: var(--dark);
      color: white;
      border: none;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      transition: transform 0.3s ease, background-color 0.3s ease;
      outline: none;
    }
    
    .contact-toggle:hover {
      transform: scale(1.05);
      background: #9e968f;
    }
    
    .contact-toggle svg {
      width: 28px;
      height: 28px;
      transition: transform 0.3s ease;
    }
    
    .contact-active .contact-toggle svg {
      transform: rotate(135deg);
    }
    
    /* Contact Overlay */
    .contact-overlay {
      position: fixed;
      bottom: 100px;
      right: 25px;
      width: 320px;
      background: white;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
      z-index: 998;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
    
    .contact-active .contact-overlay {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    
    .contact-header {
      background: var(--darkest);
      color: white;
      padding: 20px;
      display: flex;
      align-items: center;
    }
    
    .contact-header-icon {
      width: 42px;
      height: 42px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 15px;
    }
    
    .contact-header-icon svg {
      width: 24px;
      height: 24px;
    }
    
    .contact-title {
      font-family: "IBM Plex Sans Condensed", Helvetica, Arial, sans-serif;
      font-size: 18px;
      font-weight: 500;
      margin: 0;
    }
    
    .contact-body {
      padding: 20px;
      padding-top: 12px;
    }
    
    .contact-list {
      list-style: none;
    }
    
    .contact-item {
      display: flex;
      align-items: center;
      margin-bottom: 6px;
      border-bottom: 1px solid var(--dark);
      padding-bottom: 6px;
    }
    
    .contact-item:last-child {
      margin-bottom: 0;
      border-bottom: none;
      padding-bottom: 0;
    }
    
    .contact-icon {
      width: 36px;
      height: 36px;
      background: var(--darkest);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 12px;
      flex-shrink: 0;
    }
    
    .contact-icon svg {
      width: 18px;
      height: 18px;
    }
    
    .contact-info {
      flex-grow: 1;
    }
    
    .contact-label {
      font-family: "IBM Plex Sans Condensed", Helvetica, Arial, sans-serif;
      font-size: 14px;
      color: var(--black);
      margin-bottom: 2px;
    }
    
    .contact-value {
      font-size: 15px;
      color: var(--black);
    }
    
    .contact-value a {
      color: var(--darkest);
      text-decoration: none;
      transition: color 0.2s ease;
    }
    
    .contact-value a:hover {
      color: var(--mid);
    }
    
    .contact-footer {
      background: var(--light);
      padding: 12px 20px;
      display: flex;
      justify-content: center;
      border-radius: 5px;
    }
    
    .contact-social {
      display: flex;
      gap: 10px;
    }
    
    .social-icon {
      width: 32px;
      height: 32px;
      background: white;
      color: var(--darkest);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, color 0.2s ease;
    }
    
    .social-icon:hover {
      background: var(--darkest);
      color: white;
    }
    
    .contact-action {
      background: var(--darkest);
      color: white;
      border: none;
      border-radius: 4px;
      padding: 6px 6px;
      font-family: "IBM Plex Sans Condensed", Helvetica, Arial, sans-serif;
      font-size: 14px;
      cursor: pointer;
      transition: background 0.2s ease;
    }
    .contact-action a{
      text-decoration: none;
    }
    
    .contact-action:hover {
      background: var(--dark);
    }
    
    /* Responsive adjustments */
    @media (max-width: 480px) {
      .contact-overlay {
        width: calc(100% - 50px);
        bottom: 90px;
      }
      
      .contact-toggle {
        width: 50px;
        height: 50px;
      }
      
      .contact-toggle svg {
        width: 24px;
        height: 24px;
      }
    }

/* CAROUSEL */

/**
  * Style variables
  * Control & indicator mixin
**/
.carousel {
  height: 33.75vw;
  width: 45vw;
  overflow: hidden;
  text-align: center;
  position: relative;
  padding: 0;
  list-style: none;
  text-align: center;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(3.5vw, 25px);
  margin-top: auto;
  margin-bottom: auto;
  color: var(--black);
}

@media screen and (max-width: 768px) {
  .carousel {
    height: 67.5vw;
    width: 90vw;
  }
}
/**
    * Control element - right/left arrows
    * Element for holding slide indicators
    * Indicator for indicating active slide
    * Create rules for when slides are contained within a track
**/

.carousel__controls, .carousel__activator {
  display: none;
}
.carousel__activator:nth-of-type(1):checked ~ .carousel__track {
  transform: translateX(0%);
}
.carousel__activator:nth-of-type(1):checked ~ .carousel__slide:nth-of-type(1), .carousel__activator:nth-of-type(1):checked ~ .carousel__slide__esp:nth-of-type(1) {
  transition: opacity 0.5s, transform 0.5s;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
  transform: scale(1);
}
.carousel__activator:nth-of-type(1):checked ~ .carousel__controls:nth-of-type(1) {
  display: block;
  opacity: 1;
}
.carousel__activator:nth-of-type(1):checked ~ .carousel__indicators .carousel__indicator:nth-of-type(1) {
  opacity: 1;
}
.carousel__activator:nth-of-type(2):checked ~ .carousel__track {
  transform: translateX(-100%);
}
.carousel__activator:nth-of-type(2):checked ~ .carousel__slide:nth-of-type(2), .carousel__activator:nth-of-type(2):checked ~ .carousel__slide__esp:nth-of-type(2) {
  transition: opacity 0.5s, transform 0.5s;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
  transform: scale(1);
}
.carousel__activator:nth-of-type(2):checked ~ .carousel__controls:nth-of-type(2) {
  display: block;
  opacity: 1;
}
.carousel__activator:nth-of-type(2):checked ~ .carousel__indicators .carousel__indicator:nth-of-type(2) {
  opacity: 1;
}
.carousel__activator:nth-of-type(3):checked ~ .carousel__track {
  transform: translateX(-200%);
}
.carousel__activator:nth-of-type(3):checked ~ .carousel__slide:nth-of-type(3), .carousel__activator:nth-of-type(3):checked ~ .carousel__slide__esp:nth-of-type(3) {
  transition: opacity 0.5s, transform 0.5s;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
  transform: scale(1);
}
.carousel__activator:nth-of-type(3):checked ~ .carousel__controls:nth-of-type(3) {
  display: block;
  opacity: 1;
}
.carousel__activator:nth-of-type(3):checked ~ .carousel__indicators .carousel__indicator:nth-of-type(3) {
  opacity: 1;
}
.carousel__activator:nth-of-type(4):checked ~ .carousel__track {
  transform: translateX(-300%);
}
.carousel__activator:nth-of-type(4):checked ~ .carousel__slide:nth-of-type(4), .carousel__activator:nth-of-type(4):checked ~ .carousel__slide__esp:nth-of-type(4) {
  transition: opacity 0.5s, transform 0.5s;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
  transform: scale(1);
}
.carousel__activator:nth-of-type(4):checked ~ .carousel__controls:nth-of-type(4) {
  display: block;
  opacity: 1;
}
.carousel__activator:nth-of-type(4):checked ~ .carousel__indicators .carousel__indicator:nth-of-type(4) {
  opacity: 1;
}
.carousel__activator:nth-of-type(5):checked ~ .carousel__track {
  transform: translateX(-400%);
}
.carousel__activator:nth-of-type(5):checked ~ .carousel__slide:nth-of-type(5), .carousel__activator:nth-of-type(5):checked ~ .carousel__slide__esp:nth-of-type(5) {
  transition: opacity 0.5s, transform 0.5s;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
  transform: scale(1);
}
.carousel__activator:nth-of-type(5):checked ~ .carousel__controls:nth-of-type(5) {
  display: block;
  opacity: 1;
}
.carousel__activator:nth-of-type(5):checked ~ .carousel__indicators .carousel__indicator:nth-of-type(5) {
  opacity: 1;
}
.carousel__activator:nth-of-type(6):checked ~ .carousel__track {
  transform: translateX(-500%);
}
.carousel__activator:nth-of-type(6):checked ~ .carousel__slide:nth-of-type(6),  .carousel__activator:nth-of-type(6):checked ~ .carousel__slide__esp:nth-of-type(6) {
  transition: opacity 0.5s, transform 0.5s;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
  transform: scale(1);
}
.carousel__activator:nth-of-type(6):checked ~ .carousel__controls:nth-of-type(6) {
  display: block;
  opacity: 1;
}
.carousel__activator:nth-of-type(6):checked ~ .carousel__indicators .carousel__indicator:nth-of-type(6) {
  opacity: 1;
}
.carousel__activator:nth-of-type(7):checked ~ .carousel__track {
  transform: translateX(-600%);
}
.carousel__activator:nth-of-type(7):checked ~ .carousel__slide:nth-of-type(7), .carousel__activator:nth-of-type(7):checked ~ .carousel__slide__esp:nth-of-type(7) {
  transition: opacity 0.5s, transform 0.5s;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
  transform: scale(1);
}
.carousel__activator:nth-of-type(7):checked ~ .carousel__controls:nth-of-type(7) {
  display: block;
  opacity: 1;
}
.carousel__activator:nth-of-type(7):checked ~ .carousel__indicators .carousel__indicator:nth-of-type(7) {
  opacity: 1;
}
.carousel__activator:nth-of-type(8):checked ~ .carousel__track {
  transform: translateX(-700%);
}
.carousel__activator:nth-of-type(8):checked ~ .carousel__slide:nth-of-type(8), .carousel__activator:nth-of-type(8):checked ~ .carousel__slide__esp:nth-of-type(8) {
  transition: opacity 0.5s, transform 0.5s;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
  transform: scale(1);
}
.carousel__activator:nth-of-type(8):checked ~ .carousel__controls:nth-of-type(8) {
  display: block;
  opacity: 1;
}
.carousel__activator:nth-of-type(8):checked ~ .carousel__indicators .carousel__indicator:nth-of-type(8) {
  opacity: 1;
}
.carousel__activator:nth-of-type(9):checked ~ .carousel__track {
  transform: translateX(-800%);
}
.carousel__activator:nth-of-type(9):checked ~ .carousel__slide:nth-of-type(9), .carousel__activator:nth-of-type(9):checked ~ .carousel__slide__esp:nth-of-type(9) {
  transition: opacity 0.5s, transform 0.5s;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
  transform: scale(1);
}
.carousel__activator:nth-of-type(9):checked ~ .carousel__controls:nth-of-type(9) {
  display: block;
  opacity: 1;
}
.carousel__activator:nth-of-type(9):checked ~ .carousel__indicators .carousel__indicator:nth-of-type(9) {
  opacity: 1;
}
.carousel__activator:nth-of-type(10):checked ~ .carousel__track {
  transform: translateX(-900%);
}
.carousel__activator:nth-of-type(10):checked ~ .carousel__slide:nth-of-type(10), .carousel__activator:nth-of-type(10):checked ~ .carousel__slide__esp:nth-of-type(10) {
  transition: opacity 0.5s, transform 0.5s;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
  transform: scale(1);
}
.carousel__activator:nth-of-type(10):checked ~ .carousel__controls:nth-of-type(10) {
  display: block;
  opacity: 1;
}
.carousel__activator:nth-of-type(10):checked ~ .carousel__indicators .carousel__indicator:nth-of-type(10) {
  opacity: 1;
}

.carousel__control {
  height: clamp(13px, 2vw, 30px);
  width: clamp(13px, 2vw, 30px);
  margin-top: -15px;
  top: 50%;
  position: absolute;
  display: block;
  cursor: pointer;
  border-width: clamp(3px, 0.5vw, 5px) clamp(3px, 0.5vw, 5px) 0 0;
  border-style: solid;
  border-color: var(--white);
  opacity: 0.5;
  outline: 0;
  z-index: 3;
  margin-left: 5px;
  margin-right: 5px;
  transition: opacity 0.1s ease-in-out
}
.carousel__control::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;    /* Size of hitbox */
  height: 100px;
  transform: translate(-50%, -50%);
  background: transparent;
  pointer-events: auto;
  border-radius: 50%; /* If you want a circular hitbox */
}
.carousel__control {
  pointer-events: auto; /* make sure pointer events are enabled */
}
@media screen and (max-width: 768px) {
  .carousel__control {
    margin-top: -7px;
  }
}

.carousel__control:hover {
  opacity: 1;
}
.carousel__control--backward {
  left: 10px;
  transform: rotate(-135deg);
}
.carousel__control--forward {
  right: 10px;
  transform: rotate(45deg);
}
.carousel__indicators {
  position: absolute;
  bottom: 0px;
  width: 100%;
  text-align: center;
}
.carousel__indicator {
  height: clamp(8px,1vw, 12px);
  width: clamp(8px,1vw, 12px);
  border-radius: 100%;
  display: inline-block;
  z-index: 2;
  cursor: pointer;
  opacity: 0.45;
  margin: 0 2px 0 2px;
  padding: 5px
}
.carousel__indicator:hover {
  opacity: 0.8;
  transform: scale(1.2);
}
.carousel__track {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0;
  margin: 0;
  transition: transform 0.5s ease 0s;
}
.carousel__track .carousel__slide, .carousel__track .carousel__slide__esp {
  display: block;
  top: 0;
  left: 0;
  right: 0;
  opacity: 1;
}
.carousel__track .carousel__slide:nth-of-type(1), .carousel__track .carousel__slide__esp:nth-of-type(1) {
  transform: translateX(0%);
}
.carousel__track .carousel__slide:nth-of-type(2), .carousel__track .carousel__slide__esp:nth-of-type(2) {
  transform: translateX(100%);
}
.carousel__track .carousel__slide:nth-of-type(3), .carousel__track .carousel__slide__esp:nth-of-type(3) {
  transform: translateX(200%);
}
.carousel__track .carousel__slide:nth-of-type(4), .carousel__track .carousel__slide__esp:nth-of-type(4) {
  transform: translateX(300%);
}
.carousel__track .carousel__slide:nth-of-type(5), .carousel__track .carousel__slide__esp:nth-of-type(5) {
  transform: translateX(400%);
}
.carousel__track .carousel__slide:nth-of-type(6), .carousel__track .carousel__slide__esp:nth-of-type(6) {
  transform: translateX(500%);
}
.carousel__track .carousel__slide:nth-of-type(7), .carousel__track .carousel__slide__esp:nth-of-type(7) {
  transform: translateX(600%);
}
.carousel__track .carousel__slide:nth-of-type(8), .carousel__track .carousel__slide__esp:nth-of-type(8) {
  transform: translateX(700%);
}
.carousel__track .carousel__slide:nth-of-type(9), .carousel__track .carousel__slide__esp:nth-of-type(9) {
  transform: translateX(800%);
}
.carousel__track .carousel__slide:nth-of-type(10), .carousel__track .carousel__slide__esp:nth-of-type(10) {
  transform: translateX(900%);
}
.carousel--scale .carousel__slide, .carousel--scale .carousel__slide__esp {
  transform: scale(0);
}
.carousel__slide, .carousel__slide__esp {
  height: 100%;
  position: absolute;
  overflow-y: auto;
  opacity: 0;
}

/* Theming */

.carousel-container {
  display: inline-block;
}
.my-carousel {
  border-radius: 5px;
  margin-top: 30px;
  margin-bottom: 30px;
}
.carousel__slide, .carousel__slide__esp {
  overflow: hidden;
}
.carousel--thumb .carousel__indicator {
  height: 30px;
  width: 30px;
}
.carousel__indicator {
  background-color: var(--black);
}
.carousel__slide:nth-of-type(1), 
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(1) {
  background-image: url("../Photos/Marquee/AERM_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide:nth-of-type(2),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(2) {
  background-image: url("../Photos/Marquee/McTools_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide:nth-of-type(3),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(3) {
  background-image: url("../Photos/Marquee/SmallScale_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide:nth-of-type(4),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(4) {
  background-image: url("../Photos/Marquee/Jewelry_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide:nth-of-type(5),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(5) {
  background-image: url("../Photos/Marquee/Woodworking_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide:nth-of-type(6),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(6) {
  background-image: url("../Photos/Marquee/Const_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide:nth-of-type(7),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(7) {
  background-image: url("../Photos/Marquee/Plastic_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide:nth-of-type(8),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(8) {
  background-image: url("../Photos/Marquee/Pharma_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide:nth-of-type(9),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(9) {
  background-image: url("../Photos/Marquee/FoodInd_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide:nth-of-type(10),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(10) {
  background-image: url("../Photos/Marquee/Welding_car.jpg");
  background-size: cover;
  background-position: center;
}


.carousel__slide__esp:nth-of-type(1), 
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(1) {
  background-image: url("../Photos/Marquee/AERM_esp_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide__esp:nth-of-type(2),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(2) {
  background-image: url("../Photos/Marquee/McTools_esp_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide__esp:nth-of-type(3),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(3) {
  background-image: url("../Photos/Marquee/SmallScale_esp_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide__esp:nth-of-type(4),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(4) {
  background-image: url("../Photos/Marquee/Jewelry_esp_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide__esp:nth-of-type(5),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(5) {
  background-image: url("../Photos/Marquee/WoodWork_esp_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide__esp:nth-of-type(6),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(6) {
  background-image: url("../Photos/Marquee/Const_esp_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide__esp:nth-of-type(7),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(7) {
  background-image: url("../Photos/Marquee/Plastic_esp_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide__esp:nth-of-type(8),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(8) {
  background-image: url("../Photos/Marquee/Pharma_esp_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide__esp:nth-of-type(9),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(9) {
  background-image: url("../Photos/Marquee/FoodInd_esp_car.jpg");
  background-size: cover;
  background-position: center;
}
.carousel__slide__esp:nth-of-type(10),
.carousel--thumb .carousel__indicators .carousel__indicator:nth-of-type(10) {
  background-image: url("../Photos/Marquee/Welding_esp_car.jpg");
  background-size: cover;
  background-position: center;
}

/* Fix for initial control visibility */
.carousel__activator:first-of-type:checked ~ .carousel__controls:first-of-type,
.carousel__controls:first-of-type {
  display: block !important;
  opacity: 1 !important;
}

/* CONTACT US */

.contact-left {
  float: left;
  width: max(50%,400px);
  padding-left: 2.5%;
  padding-right: 2.5%;
  padding-top: 2.5%;
  padding-bottom: 2.5%;
  background-color: var(--white);
}

.contact-right {
  float:left;
  width: max(50%,400px);
  padding-left: 2.5%;
  padding-right: 2.5%;
  padding-top: 2.5%;
  padding-bottom: 2.5%;
  background-color: var(--white);
}

form {
  padding: 2rem;
  margin: 0 auto;
}

.formtable {
  border:0;
  padding: 0px;
  transform: translateY(-5%);
}
.formtable .instruction {
  text-align: right;
  font-weight: 400;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1vw,10px);
  color:var(--black);
  vertical-align: center;
}
.formtable .input {
  text-align: left;
  font-weight: 300;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 0.8vw;
  color:var(--black);
}

input, textarea {
  width: 100%;
  padding: .5rem;
  border: 1px solid silver;
  border-radius: 6px;
  font-weight: 300;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(0.9vw,9px);
  color:var(--black);
}
input[type=submit] {
  padding: .5rem;
  border-radius: 6px;
  background-color: var(--dark);
  cursor: pointer;
  font-weight: 400;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1vw,10px);
  color:var(--black);
}
input[type=reset] {
  padding: .5rem;
  border-radius: 6px;
  background-color: var(--mid);
  cursor: pointer;
  font-weight: 400;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1vw,11px);
  color:var(--black);
}

label, small {
  font-size: small;
}

/* SITEMAP */

.rangeheader {
  padding-left: 2.5%;
  padding-right: 2.5%;
  padding-top: 1.5%;
  padding-bottom: 0%;
  background-color: var(--white);
}
.rangetable {
  border:0;
  padding: 0px;
  border-spacing: 0;
  display: inline-block;
  background-color: var(--white);
}

.rangetext {
  color: var(--black);
  text-align: left;
  font-weight: 450;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1vw,12px);
}
.rangetext a{
  color: var(--black);
  text-decoration: underline;
}

.rangedropbtn {
  color: var(--black);
  text-align: left;
  font-weight: 400;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1vw,12px);
  border:3px var(--black);
  border-radius: 6px;
  padding: 2px;
}


.rangedropdown {
  position: relative;
  display: inline-block;
  padding:0;
  margin:0;
  border:1px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.05);
}

/* Dropdown Content (Hidden by Default) */
.rangedropdown-content {
  display: none;
  position: absolute;
  background-color: var(--mid);
  min-width: 200px;
  z-index: 1;
  left: 50% !important;
  right: auto !important;
  text-align: left !important;
  transform: translate(-50%, 0) !important;
  padding: 3px 3px;
  border-radius: 6px;
}

/* Links inside the dropdown */
.rangedropdown-content a {
  color: var(--black);
  padding: 1px 2px;
  text-decoration: none;
  display: block;
  font-size: max(0.8vw, 8px);
  font-weight: 350;
  line-height: 20px;
  border-radius: 5px;
}


/* Show the dropdown menu on hover */
.rangedropdown:hover .rangedropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.rangedropdown:hover .rangedropbtn {color: var(--black);}

.rangeselect {
  border:1px;
  color: var(--black);
  text-align: left;
  font-weight: 400;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1vw,12px);
  background-color: var(--mid);
  border-radius:6px;
  width:80%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 4px;
  padding-left: 8px;
}

.rangego {
  border:2px var(--black);
  color: var(--black);
  text-align: left;
  font-weight: 400;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1vw,12px);
  background-color: var(--dark);
  border-radius:6px;
  width: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Directory */

.maindirectory { 
  max-width: 75vw; 
  margin: 20px auto; 
  padding:1%;
} 

.directory-tiles-container { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 20px; 
} 

.directorytile { 
  flex: 1 0 175px; 
  background-color: white; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 12px; 
  border-radius: 10px; 
  transition: transform 0.3s ease-in-out; 
} 

.directorytile:hover { 
  transform: scale(1.04); 
  box-shadow: rgba(0, 0, 0, 0.22) 0px 5px 15px;
} 
.directorysubheading {
  text-align: center;
  font-weight: 500;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1.3vw,14px);
}
.tiletext {
  text-align: center;
  font-weight: 400;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1.2vw,14px);
  text-decoration: none;
}
.tileimage {
  width: 144px;
  height: 144px; /*Min should be image res ideally */
  object-fit: contain;
  max-height: 150px;
}
.infotable {
  padding-left: 15vw;
  padding-right: 15vw;
  line-height: 1.5;
  border: 5px var(--black);
  text-align: left;
  padding-bottom: 15px;
  width:100%;
}
.infotable tr td {
  border: 3px var(--black);
}

/*Machine Pages*/
.mainimage, .secondaryimage, .secondaryimagetall, .secondaryimagewide, .machinepictableimg {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border: 2px solid #b5b5b5;
  box-sizing: border-box;
  background: #fff;
  margin: 6px auto;
}

.machinepictableimg {
  border: none;
}
.machinepictable .secondaryimage, .machinepictable .secondaryimagewide, .machinepictable .secondaryimagetall, .machinepictable .mainimage {
  border: none;
}

.mainimage {
  max-width: 60vw;  
  min-width: 200px;
}

.secondaryimage, .secondaryimagewide {
  max-width: 60vw;    
  min-width: 50px;
  height: auto;
}
.secondaryimagetall {
  max-height: 60vh; 
  min-height: 150px;
  width: auto;
}

@media (min-width: 768px) {
  .mainimage {
    max-width: 90vw;  
  }
  .secondaryimage {
    max-width: 60vw; 
    height: auto; 
  }
  .secondaryimagewide {
    max-width: 80vw; 
    height: auto;
  }
   .secondaryimagetall {
    max-height: 30vh; 
    min-width: 50px;
    width: auto;
   }
  
  .machinepictableimg {
    max-width: 25vw;
  }
}

/* Text */

.machinetitle, .machinesubtitle, .machinethirdtitle, .machinesubtitlecentre, .machinesubtitleleft,
.machinesubtitleleft, .machinecaption, .machineimagetable th, .machineimagetable td {
  margin-top:0;
  margin-bottom: 10px;
  max-width: 100%;
}

.machinetitle {
  text-align: center;
  font-weight: 550;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(2vw, 16px);
  color: var(--black);
  margin-top: 20px;
  padding: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.machinesubtitlecentre {
  text-align: center;
  font-weight: 500;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1.3vw, 14px);
  color: var(--black);
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  border-top: 2px solid var(--dark);
  border-bottom: 2px solid var(--dark);
  line-height: 1.5;
}

.machinethirdtitle,
.machinesubtitleleft {
  text-align: center;
  font-weight: 400;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1.1vw, 12px);
  color: var(--black);
  text-decoration: underline;
  padding-top: 5px;
  padding-bottom: 0px;
}

.machinecaption, .machineimagetable th, .machineimagetable td {
  text-align: center;
  font-weight: 450;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: max(1vw,12px);
  color: var(--black);
  padding-bottom:5px;
}

.machineimagetable th, .machineimagetable td {
  padding:0px
}

.machinebody{
  text-align: left;
  font-weight: 350;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif; 
  font-size: max(1vw,12px);
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
  /*padding: 5px 40px 10px 40px;  */
  max-width: 50%;
}

@media (max-width: 768px) {
  .machinebody {
    max-width: 95%;
    padding-left: 20px;
  }
}
@media (max-width: 992px) {
  .machinebody {
    max-width: 80%;
    padding-left: 20px;
  }
}

.machinebody ul {
  margin: 0;
  padding-left: 40px;
}
.content table, .machinepage table {
  margin: 15px auto;
}

.machinespectable {
  border-width: 1px;
  width: auto;
  vertical-align: center;
  border-style: solid;
  border-collapse: collapse;
  border-radius: 4px;
  min-width: 200px;
  max-width: 85vw;
  table-layout: auto; /* <-- add this */
  margin: 10px auto;
}

.machinespectable th, .machinespectable td {
  min-width: 80px;
  max-width: 400px;
  padding: 4px;
  line-height: 18px;
  text-align: left;
  vertical-align: top;
  border: 1px solid;
  white-space: normal;         /* allow wrapping */
  word-break: break-word;      /* break long content */
  overflow: hidden;            /* hide overflow */
  text-overflow: ellipsis;          /* for truncated text */
  font-size: max(1vw, 12px);
}
.machinespectable td p,
.machinespectable th p {
  margin: 0;
  padding: 0;
  line-height: 1; /* Keep this for tight spacing */
}

.machinespectable th{
  font-weight: bold;
  background-color: var(--mid);
}
.machinespectable col:hover{
  background-color: rgba(0, 0, 0, 0.07);
}
.machinedirecttable {
  width: 90%;
  max-width: 1200px;
  padding: 8px;
  border-collapse: collapse; /* Prevents inner border overflow */
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  margin: 20px auto;
  background-color: var(--dark);
  overflow: hidden; /* Hides any inner border overflow */
}

.machinedirecttable td, 
.machinedirecttable th {
  border: 1px solid rgba(0, 0, 0, 0.3);
  padding: 10px;
  text-align: center;
  background-color: var(--dark);
  font-size: max(1vw,10px);
}

/* Links */
.machinedirecttable a {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  
}

.machinedirecttable a:hover {
  color: var(--dark-dark);
  text-decoration: underline;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .machinedirecttable {
    width: 95%;
    font-size: 14px;
  }

  .machinedirecttable td, 
  .machinedirecttable th {
    padding: 8px;
  }
}

.machineimagetable {
  margin: auto;
  max-width: 75vw;
  padding: 0px;
  border-spacing: 10px;
  padding-bottom: 5px;
}
@media (max-width: 768px) {
  .machineimagetable {
    max-width: 95vw;
  }
}

/* Table container */
.machinepictable {
  border-width: 1px;
  width: 100%;           /* Changed from 65vw to fill container */
  max-width: 1000px;     /* Absolute max-width for large screens */
  padding: 10px;
  vertical-align: middle;
  border-style: solid;
  border-collapse: collapse;
  border-radius: 4px;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  text-align: left;
  font-size: max(1vw, 12px);
  box-sizing: border-box;
  overflow-x: auto;      /* Enables horizontal scrolling */
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* Table cells */
.machinepictable th, 
.machinepictable td {
  min-width: 100px;
  padding: 8px;
  line-height: 16px;
  text-align: center;
  border: 1px solid;
  vertical-align: middle;
  text-align: center;
}
.machinepictable img {
  margin: auto
}

.machinepictable td {
  background-color: white;
}

.machinepictable th {
  font-weight: normal;
  background-color: var(--mid);
  color: var(--black);        
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .machinepictable {
    max-width: 90%;      /* Percentage-based for mid-sized screens */
  }
}

@media (max-width: 768px) {
  .machinepictable {
    max-width: 95%;      /* Nearly full width on tablets */
    padding: 8px;        /* Slightly reduced padding */
  }
  
  .machinepictable th, 
  .machinepictable td {
    padding: 6px;        /* Reduced cell padding */
    min-width: 80px;     /* Smaller minimum width */
  }
}

@media (max-width: 576px) {
  .machinepictable {
    width: 100%;         /* Full width on mobile */
    max-width: 100%;     /* No maximum */
    padding: 5px;        /* Minimal padding */
    font-size: 12px;     /* Fixed font size */
  }
  
  .machinepictable th, 
  .machinepictable td {
    padding: 4px;        /* Minimal cell padding */
    min-width: 70px;     /* Even smaller minimum width */
  }
}

.infoleft, .inforight {
  float: left;
  width: 50%;
  min-width: 400px; /* Ensures sections don't shrink too much */
  padding-left: 5%;
  padding-right: 2.5%;
  background-color: var(--white);
  display: block;
  box-sizing: border-box; /* Prevents padding from affecting width */
  padding-bottom: 20px;
}

/* Right section adjustment */
.inforight {
  padding-left: 2.5%;
  padding-right: 5%;
}

/* Add to your CSS */
.infocontainer::after {
  content: "";
  display: table;
  clear: both;
}
/* If possible, remove or reduce min-width on .infoleft/.inforight, or ensure parent is wide enough */

/* Ensure stacking on smaller screens */
@media (max-width: 850px) {
  .infoleft, .inforight {
    width: 100%; /* Full width on small screens */
    float: none; /* Stops floating behavior */
    min-width: unset; /* Allows width to adjust naturally */
  }
}
.machinepage {
  background-color: var(--white);
}
.machineyt {
  display: block;
  width: max(38.5vw, 350px);
  height: max(21.67vw, 200px);
  border: 4px solid var(--dark);
  margin-top: 10px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .machineyt {
    width: 85%; /* Full width on small screens */
    height: auto; /* Adjust height to maintain aspect ratio */
    border: 3px solid var(--dark);
  }
}

.centrediv {
  width: max(50vw, 400px);
  margin: auto;
}

.content div {
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* CSS */
.search-btn {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid #888;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  outline: none;
  display: inline-block;
}

.search-btn::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid #444;
  border-radius: 50%;
}

.search-btn::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 24px;
  width: 8px;
  height: 2px;
  background: #444;
  border-radius: 2px;
  transform: rotate(45deg);
}

.cse-style {
  width:50%; 
  margin: 0 auto; 
}
@media (max-width: 768px) { 
  .cse-style { width: 100%;}
}