/* Final responsive overrides. Loaded after the legacy theme styles. */
*, *::before, *::after {
  box-sizing: border-box;
}

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

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

img {
  height: auto;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Certificate page */
.certificate-page {
  padding: 190px 0 80px;
  background: #f5f7fa;
}

.certificate-page__heading {
  position: static;
  width: 100%;
  margin: 0 0 32px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.certificate-page__heading h1 {
  margin: 0 0 8px;
  color: #173f6b;
  font-family: EMprint-Semibold;
  font-size: 38px;
  line-height: 1.2;
}

.certificate-page__heading p {
  margin: 0;
  color: #566c83;
  font-size: 17px;
}

.certificate-page__document {
  width: min(100%, 650px);
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(21, 55, 88, 0.12);
}

.certificate-page__document img {
  display: block;
  width: 100%;
  height: auto;
}

/* Contact page */
.contact-section {
  margin: 0;
  padding: 190px 0 80px;
  background: #f5f7fa;
}

.contact-section__heading {
  margin-bottom: 34px;
  text-align: center;
}

.contact-section__heading h1 {
  margin: 0 0 8px;
  color: #173f6b;
  font-family: EMprint-Semibold;
  font-size: 38px;
  line-height: 1.2;
}

.contact-section__heading p {
  margin: 0;
  color: #566c83;
  font-size: 17px;
}

.contact-section__layout { align-items: stretch; }
.contact-detail { display: grid; height: 100%; gap: 16px; }

.contact-section .contacts {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: 22px;
  background: #1862ad;
  border-radius: 8px;
}

.contact-section .contacts img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
}

.contact-section .contacts h2 {
  margin: 0 0 7px;
  color: #fff;
  font-family: EMprint-Semibold;
  font-size: 19px;
  line-height: 1.25;
}

.contact-section .contacts p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.65;
}

.contact-section .contacts a {
  display: block;
  margin: 0 !important;
  color: #fff;
  overflow-wrap: anywhere;
}

.contact-section .map,
.contact-section .map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
  border-radius: 8px;
}

.contact-section .map {
  overflow: hidden;
  background: #dfe5eb;
  box-shadow: 0 12px 35px rgba(21, 55, 88, 0.12);
}

/* Enquiry page */
.enquiry-page {
  width: 100%;
  margin: 0 !important;
  padding: 190px 0 80px !important;
  background: #f5f7fa;
}

.enquiry-page__heading {
  margin: 0 0 34px;
  text-align: center;
}

.enquiry-page__heading h1 {
  margin: 0 0 8px;
  color: #173f6b;
  font-family: EMprint-Semibold;
  font-size: 38px;
  line-height: 1.2;
}

.enquiry-page__heading p {
  margin: 0;
  color: #566c83;
  font-size: 17px;
}

.enquiry-page .spacing-7 {
  width: min(100%, 920px);
  margin: 0 auto !important;
  padding: 46px 52px !important;
  background-color: #1862ad;
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(21, 55, 88, 0.18);
}

.enquiry-page .section-title {
  margin: 0 0 26px;
  padding: 0;
}

.enquiry-page .section-title h2.title {
  margin: 0;
  color: #fff;
  font-family: EMprint-Semibold;
  font-size: 30px;
  line-height: 1.3;
}

.enquiry-page .ttm-contactform .row {
  margin-right: -10px;
  margin-left: -10px;
}

.enquiry-page .ttm-contactform .row > [class*="col-"] {
  padding-right: 10px;
  padding-left: 10px;
}

.enquiry-page .ttm-contactform label,
.enquiry-page .ttm-contactform .text-input {
  display: block;
  width: 100%;
}

.enquiry-page .ttm-contactform input:not([type="submit"]),
.enquiry-page .ttm-contactform select,
.enquiry-page .ttm-contactform textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 15px;
  color: #1b2e42;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  font-family: EMprint-Regular;
  font-size: 15px;
  line-height: 1.4;
}

.enquiry-page .ttm-contactform textarea {
  min-height: 130px;
  resize: vertical;
}

.enquiry-page .ttm-contactform .text-input,
.enquiry-page .ttm-contactform .form-group {
  margin: 0 0 18px;
  padding: 0;
}

.enquiry-page .ttm-contactform input[type="submit"] {
  display: inline-block;
  min-width: 170px;
  margin: 8px 0 0;
  padding: 14px 28px;
  color: #173f6b;
  background: #fff;
  border: 0;
  border-radius: 5px;
  font-family: EMprint-Semibold;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-page .ttm-contactform input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

/* About page */
.about-page {
  margin: 0;
  padding: 190px 0 80px;
  background: #f5f7fa;
}

.about-page > .container-fluid {
  max-width: 1320px;
  margin: 0 auto;
  padding-right: 30px;
  padding-left: 30px;
}

.about-page .row {
  align-items: center;
}

.about-page .about-content1 {
  width: calc(100% + 60px);
  margin: 0;
  padding: 38px 45px;
  background: #fff;
  box-shadow: 5px 5px 0 #1862ad;
  position: relative;
  z-index: 2;
}

.about-page .about-content1 h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
}

.about-page .about-content1 p {
  margin-bottom: 14px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.about-page .about-us-img {
  overflow: hidden;
  border-radius: 8px;
}

.about-page .about-us-img img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 540px;
  object-fit: cover;
}

input, select, textarea, button {
  max-width: 100%;
}

@media (max-width: 1199px) {
  .header .container,
  .site-footer .container,
  footer .container {
    max-width: 100%;
  }

  .nav-wrap > ul > li:not(:last-child) {
    margin-right: 16px;
  }
}

@media (max-width: 919px) {
  .fusion-secondary-header .row {
    justify-content: center;
  }

  .fusion-alignright,
  .fusion-secondary-menu,
  .fusion-secondary-menu .menu {
    width: 100%;
  }

  .fusion-secondary-menu .menu {
    padding: 6px 12px;
    margin: 0;
    text-align: center;
  }

  .fusion-secondary-menu .menu-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 10px;
    font-size: 12px;
    line-height: 1.5;
  }

  #site-header {
    width: 100%;
    z-index: 10000;
  }

  #site-header nav {
    min-height: 72px;
    padding: 8px 0;
  }

  #site-header .logo img {
    width: 96px;
    padding: 4px 0;
  }

  #site-header .nav-wrap {
    display: flex;
    align-items: center;
  }

  #site-header .nav-button {
    display: block;
    margin: 0 8px 0 20px;
  }

  #site-header .nav-wrap ul.top_nav {
    top: 100%;
    max-height: calc(100vh - 72px);
    height: auto;
    z-index: 10001;
  }

  #site-header .nav-wrap > ul > li a {
    padding: 14px 6%;
    font-size: 16px;
  }

  #site-header .nav-wrap ul.sub-nav {
    position: static;
    width: 100%;
  }

  #site-header .nav-wrap ul.sub-nav a {
    padding-left: 10%;
    font-size: 15px;
    background: #0c1c33;
  }

  /* Desktop links already contain a Font Awesome chevron. The script adds a
     larger touch target on mobile, so hide the decorative duplicate. */
  #site-header .nav-wrap > ul.top_nav > li.has-submenu > a > i.fa-angle-down {
    display: none !important;
  }

  #site-header .down-arrow {
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 50px;
    z-index: 2;
    cursor: pointer;
  }

  #site-header .down-arrow::after {
    content: "\f107";
    position: absolute;
    top: 13px;
    right: 20px;
    color: #fff;
    font: normal normal normal 20px/1 FontAwesome;
  }

  #site-header .submenu-active > .down-arrow::after {
    transform: rotate(180deg);
  }

  #section-1,
  #section-1 .content-slider,
  #section-1 .content-slider .slider,
  #section-1 .content-slider .slider .banner {
    min-height: 0;
  }

  #section-1 {
    /* The legacy 165px padding and 100vh inner slider caused the image to
       overflow its section. Keep one fluid, bounded slider box instead. */
    width: 100%;
    height: clamp(260px, 52vw, 430px);
    margin-top: 105px;
    padding-top: 0;
    overflow: hidden;
  }

  #section-1 .content-slider,
  #section-1 .content-slider .slider,
  #section-1 .content-slider .slider .banner {
    width: 100%;
    height: 100%;
  }

  #section-1 .content-slider .slider {
    margin-top: 0;
  }

  #section-1 .content-slider .slider .banner {
    background-position: center;
    background-size: cover;
    margin-bottom: 0;
  }

  #section-1 .content-slider .slider #top-banner-1 {
    background-position: 55% center;
  }

  .welcome {
    margin-top: 0;
    padding-top: 24px;
  }

  .wel-top {
    margin-bottom: 20px;
  }

  .about-content {
    margin-top: 0;
  }

  .about-us1 .about-main-div,
  .about-us1 .about-sub-div {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-us1 .about-sub-div {
    margin-top: 35px;
  }

  .about-us1 .about-sub-div .about-div {
    margin: 0;
  }

  .ct-image-small {
    display: none;
  }

  .row > [class*="col-"] {
    min-width: 0;
  }
}

/* Internal pages: tablet layout */
@media (max-width: 991px) {
  .about-page {
    padding: 145px 0 55px;
  }

  .about-page > .container-fluid {
    padding-right: 24px;
    padding-left: 24px;
  }

  .about-page .row > .col-lg-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .about-page .about-content1 {
    width: 100%;
    margin: 0 0 30px;
    padding: 32px;
  }

  .about-page .about-us-img img {
    min-height: 0;
    max-height: 520px;
    object-position: center;
  }

  .enquiry-page {
    padding: 145px 0 55px !important;
  }

  .enquiry-page .spacing-7 {
    width: min(100%, 760px);
    padding: 38px 34px !important;
  }

  .certificate-page {
    padding: 145px 0 55px;
  }

  .certificate-page__document {
    width: min(100%, 600px);
    padding: 18px;
  }

  .service-page {
    margin: 130px 0 55px;
  }

  .service-page > .container > .row,
  .service-page .row {
    align-items: center;
  }

  .service-img,
  .service-content,
  .service-img1,
  .service-content1 {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0 15px;
    flex: 0 0 100%;
  }

  .service-img img,
  .service-img1 img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    transform: none;
    float: none;
  }

  .service-img .image__title {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px;
  }

  .service-page h2,
  .content {
    margin-top: 30px;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.25;
  }

  .page1 {
    margin-top: 0;
    padding-top: 15px;
  }

  .support-team {
    margin-left: -8px;
    margin-right: -8px;
  }

  .support-team > .col-md-3 {
    width: 50% !important;
    max-width: 50%;
    flex: 0 0 50%;
    padding-left: 8px;
    padding-right: 8px;
  }

  .support-team img {
    width: 100%;
    height: auto;
  }

  .contact-section {
    margin: 0;
    padding: 145px 0 55px;
  }

  .contact-detail {
    margin-bottom: 25px;
  }

  .contacts {
    height: 100%;
    overflow-wrap: anywhere;
  }

  .map iframe,
  .contact-section iframe {
    width: 100%;
    min-height: 360px;
  }

  .careers {
    padding: 45px 0 70px;
    margin-top: 125px;
  }

  .careers-left,
  .careers-right {
    width: 100%;
    height: auto;
    float: none;
  }

  .careers-left {
    margin-bottom: 30px;
  }

  .careers-form-inputs {
    width: calc(50% - 12px);
    margin-right: 24px;
  }

  .careers-form-inputs:nth-of-type(even) {
    margin-right: 0;
  }

  .enquirybox {
    width: min(100% - 32px, 900px);
    margin: 140px auto 40px;
    padding: 20px;
  }

  .learn-more-button1,
  .enquirybox .learn-more-button1 {
    width: 100%;
    margin: 0 !important;
    padding: 15px;
    float: none;
  }

  .careers-left1 {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 10px;
    float: none;
  }

  .careers-left1 img {
    width: 100%;
  }

  .deck,
  .deck1 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 40px 0 0;
  }

  .card,
  .card1 {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .facilities-1 .facilities-main,
  .mini-sub .mini-sub-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .sub-facilities .sub-facilities-main {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-left: 0;
  }

  .facilities-1 .facilities-main .facilities-div,
  .sub-facilities .sub-facilities-main .sub-facilities-div,
  .mini-sub .mini-sub-main .mini-sub-div {
    width: 100%;
    margin-top: 10px;
  }

  .facilities-main .facilities-div h3,
  .sub-facilities .sub-facilities-main .sub-facilities-div h3,
  .mini-sub .mini-sub-main .mini-sub-div h3 {
    width: auto;
    margin-left: 0 !important;
    text-align: center;
  }

  .facilities-1 h2,
  .sub-facilities h2,
  .mini-sub h2 {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 25px;
  }

  .learn-more-button12 a {
    display: table;
    margin: 20px auto !important;
  }

  .quality-image {
    margin: 0;
    padding: 15px 0;
  }

  .quality-image p {
    margin: 0;
    padding: 12px 0;
  }

  .smbanner24 {
    padding: 30px 24px;
  }

  .smbanner24 h1,
  .smbanner24 ul {
    float: none;
    margin: 0 0 16px;
  }

  .footer__top,
  .footer__bottom,
  .footer__links {
    width: 100%;
  }

  .footer {
    height: auto !important;
    padding: 30px 0 20px;
  }

  .footer__top,
  .footer__menu {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-navigation .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
    padding: 0;
    margin: 0;
  }

  .footer-navigation .menu > li,
  .footer-navigation .menu > li:not(:first-child) {
    margin: 0;
  }

  .footer-navigation a {
    padding: 6px 4px;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 0;
    margin: 20px auto 0;
  }

  .footer__social li,
  .footer__social li:not(:last-child) {
    padding: 0;
    margin: 0;
  }

  .footer__bottom,
  .footer__links {
    float: none;
    margin: 16px 0 0;
    text-align: center;
  }

  .waicon {
    right: 20px;
    bottom: 20px;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .about-page {
    padding: 120px 0 40px;
  }

  .about-page > .container-fluid {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .about-page .about-content1 {
    margin-bottom: 24px;
    padding: 24px 20px;
    box-shadow: 4px 4px 0 #1862ad;
  }

  .about-page .about-content1 h2 {
    margin-bottom: 16px;
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .about-page .about-content1 p {
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
  }

  .about-page .about-us-img {
    margin: 0;
  }

  .certificate-page {
    padding: 120px 0 40px;
  }

  .certificate-page__heading {
    margin-bottom: 22px;
  }

  .certificate-page__heading h1 {
    font-size: 30px;
  }

  .certificate-page__heading p {
    font-size: 15px;
  }

  .certificate-page__document {
    padding: 10px;
  }

  body {
    font-size: 16px;
  }

  .container,
  .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  section {
    max-width: 100%;
  }

  h1 { font-size: clamp(28px, 8vw, 40px); }
  h2 { font-size: clamp(24px, 7vw, 32px); }
  h3 { font-size: clamp(20px, 6vw, 26px); }

  .welcome,
  .about-us,
  .about-us1 {
    padding-left: 0;
    padding-right: 0;
  }

  .welcome {
    margin-top: 0;
    padding-top: 18px;
  }

  .wel-top {
    margin-bottom: 12px;
  }

  .welcome h2,
  .about-us h2,
  .section-title h2 {
    overflow-wrap: anywhere;
  }

  .about-img,
  .about-us-image {
    margin-top: 30px;
  }

  .about-img img,
  .about-us-image img,
  .gallery-item img,
  .product-item img,
  .service-item img {
    width: 100%;
    object-fit: cover;
  }

  .ct-banner-meta {
    display: none;
  }

  form .form-control,
  form input:not([type="checkbox"]):not([type="radio"]),
  form select,
  form textarea {
    width: 100%;
  }

  .site-footer,
  footer {
    text-align: left;
  }

  .service-page {
    margin-top: 115px;
  }

  .support-team > .col-md-3 {
    width: 100% !important;
    max-width: 100%;
    flex-basis: 100%;
  }

  .title-holder {
    display: none;
  }

  .contact-section {
    margin: 0;
    padding: 120px 0 40px;
  }

  .contacts {
    align-items: flex-start;
    padding: 16px;
  }

  .contacts img {
    flex: 0 0 42px;
  }

  .map iframe,
  .contact-section iframe {
    min-height: 280px;
  }

  .careers {
    margin-top: 110px;
  }

  .careers-form-inputs {
    width: 100%;
    margin-right: 0;
    float: none;
  }

  label[for="fileupload"] {
    max-width: 100%;
  }

  .ttm-row.contact-form-section,
  .spacing-7,
  .ttm-contactform {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .enquiry-page {
    padding: 120px 0 40px !important;
  }

  .enquiry-page__heading {
    margin-bottom: 22px;
  }

  .enquiry-page__heading h1 {
    font-size: 30px;
  }

  .enquiry-page__heading p {
    font-size: 15px;
  }

  .enquiry-page .spacing-7 {
    padding: 28px 18px !important;
  }

  .enquiry-page .section-title h2.title {
    font-size: 24px;
  }

  .deck,
  .deck1,
  .facilities-1 .facilities-main,
  .sub-facilities .sub-facilities-main,
  .mini-sub .mini-sub-main {
    grid-template-columns: 1fr;
  }

  .card,
  .card1 {
    height: auto;
    min-height: 250px;
  }

  .smbanner {
    margin-top: 105px;
    padding: 30px 16px;
    background-position: center;
    background-size: cover;
  }

  .smbanner24 {
    padding: 24px 16px;
  }

  .smbanner24 ul {
    padding-left: 20px !important;
    text-align: left;
  }

  .footer-navigation .menu {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
  }

  .footer-navigation {
    width: 100%;
    text-align: center;
  }

  .footer-navigation .menu > li,
  .footer-navigation .menu > li:not(:first-child) {
    width: 100%;
    margin-left: 0;
  }

  .footer__links a,
  .footer__links a[style] {
    display: block;
    width: 100%;
    float: none !important;
    margin-bottom: 8px;
    text-align: center;
  }

  /* Manufacturing page: flatten the legacy nested desktop grids. */
  .facilities-1 {
    width: 100% !important;
    padding: 32px 0 40px;
    overflow: hidden;
  }

  .facilities-1 > .container {
    width: 100%;
    max-width: 100%;
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .facilities-1 .row {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .facilities-1 p {
    width: 100%;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
    overflow-wrap: break-word;
  }

  .facilities-1 > .container > .row > h2 {
    display: block;
    width: 100%;
    margin: 24px 0 !important;
    padding: 10px 14px;
    font-size: 25px;
    line-height: 1.3;
    text-align: center;
  }

  .facilities-1 .facilities-main,
  .facilities-1 .facilities-main .facilities-main {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .facilities-1 .facilities-main > div:not(.new-right) {
    width: 100%;
    min-width: 0;
    margin: 0 0 26px;
    padding: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(21, 55, 88, 0.1);
  }

  .facilities-1 .facilities-main img {
    display: block;
    width: 100%;
    max-height: 280px;
    margin: 0 auto 15px;
    object-fit: contain;
  }

  .facilities-1 .facilities-main h3,
  .facilities-1 .facilities-main h3[style] {
    width: 100%;
    margin: 0 0 12px !important;
    font-size: 19px;
    line-height: 1.35;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .facilities-1 .new-right {
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .facilities-1 .line {
    margin-bottom: 12px;
  }

  .facilities-1 table,
  .facilities-1 table[style] {
    display: table;
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    overflow: visible;
  }

  .facilities-1 table td {
    width: 50%;
    padding: 9px 7px;
    border: 1px solid #dfe5eb;
    font-size: 13px;
    line-height: 1.4;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .facilities-1 br {
    display: none;
  }
}

@media (max-width: 480px) {
  #section-1 {
    height: clamp(210px, 58vw, 260px);
    margin-top: 96px;
  }

  .fusion-secondary-menu .menu-item {
    flex-direction: column;
    gap: 2px;
  }

  #site-header .logo img {
    width: 88px;
  }
}
