/* Products page */
.products-sub-heading{
  display: flex;
  width: 55vw;
  justify-content: space-between;
  align-items: center;
  margin-top: 100px;

  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 2s ease-out forwards;
}
.products-sub-htxt{
  display: flex;
  align-items: center;
}
.products-sub-htxt h2{
  font-family: 'Black Han Sans';
}
.products-sub-htxt h2:first-child{
  border-bottom-left-radius: 15px;
  border-top-left-radius: 15px;
  padding: 10px;
  background: white;
}
.products-sub-htxt h2:last-child{
  border-bottom-right-radius: 15px;
  border-top-right-radius: 15px;
  padding: 10px;
  background: #165487;
  color: white;
}
.products-main-heading{
  display: flex;
  align-items: center;
  width: 100vw;
  justify-content: center;
  margin-top: 50px;

  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 2s ease-out forwards;
}
.products-main-heading h2{
  font-family: 'Black Han Sans';
}
.products-main-heading h2:first-child{
  border-bottom-left-radius: 15px;
  border-top-left-radius: 15px;
  padding: 10px;
  background: #FFB8B8;
}
.products-main-heading h2:last-child{
  border-bottom-right-radius: 15px;
  border-top-right-radius: 15px;
  padding: 10px;
  background: #165487;
  color: white;
}
.products-type-row {
  display: flex;
  gap: 150px;
  justify-content: center;
  margin: 30px 0;
}
.product-type-box {
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(60,100,120,0.07);
  width: 350px;
  /* padding: 0 18px 19px 18px; */
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 19px 0;

  opacity: 0;
  transform: translateY(50px);
  /* animation: slideUp 2s ease-out forwards; */
  transition: opacity 1s ease-out, transform 1.4s ease-out;
}
.product-type-box.active{
  opacity: 1;
  transform: translateY(0);
}
.product-type-box-heading{
  background: #165487;
  color: white;
  margin-bottom: 20px;
  padding: 0 0 0 0;
  width: 100%;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.product-type-box img {
  width: 300px;
  height: 240px;
  object-fit: cover;
  border-radius: 11px;
  transition: 1s;
} 
.product-type-box img:hover{
  transform: scale(1.3);
}

.img-wrapper{
  width: 300px;
  height: 240px;
  overflow: hidden;
  border-radius: 11px;
}

.product-type-desc {
  margin: 18px 10px 12px 10px;
  font-size: 1.1rem;
  color: #333;
}
.type-link-btn {
  /* background: #6592ab;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  padding: 8px 30px;
  font-weight: 600;
  font-size: 1.05rem;
  display: inline-block; */
  
  font-family: Black Ops One;
  font-weight: 400;
  text-decoration: none;
  display: flex;
  font-size: 1.5em;
  align-items: center;
  gap: 15px;
  background: #165487;
  padding: 10px;
  border-radius: 15px;
  color: white;
  height: 45px;
  width: 140px;
  transition: 0.5s;
}
.type-link-btn:hover{
  background: #4ca1e6;
  font-size: 1.7em;
  gap: 10px;
}
.type-link-btn img{
  height: 40px; width: 40px;
}
.product-sub-alignment{
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.product-sub-alignment img{
  width: 80%;
  height: 400px;
  border-radius: 20px;
}
/* Table styling */
.product-table {
  width: 80%;
  margin: 40px auto;
  border-collapse: collapse;
  background: #fff;
  /* border-radius: 16px; */
  overflow: hidden;
  box-shadow: 0 1px 9px rgba(60,100,120,0.09);
}
.product-table th, .product-table td {
  font-size: 1.07rem;
  padding: 13px 16px;
  text-align: left;
  /* border-bottom: 1px solid #eee; */
  border: 1px solid black;
}
.product-table th {
  background: #e3e7ed;
  font-weight: bold;
}
.arrow-btn {
  color: #fff;
  background: #6592ab;
  font-size: 1.3rem;
  padding: 5px 15px;
  border-radius: 7px;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s;
}
.arrow-btn:hover {
  background: #436385;
}
.product-detail-box img {
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 13px;
  display: block;
  margin-bottom: 18px;
}
.product-detail-box {
  background: #fff;
  margin: 50px auto;
  padding: 32px;
  border-radius: 15px;
  max-width: 500px;
  box-shadow: 0 2px 18px rgba(80,100,120,0.15);
  text-align: center;
}
.img-of-items{
  max-width: 300px;
  max-height: 200px;
  border-radius: 10px;
}
.back-btn-products img{
  height: 50px;
  width: 50px;
  margin-left: 3vw;
  background: black;;
  border-radius: 5px;
}
.banner-overlap{
  position: relative;
  text-align: center;
}
.banner-overlap h1{
  position: absolute; 
  /* top: 100px; */
  top: 40%;
  left: 100px;
  background-color: #ffffffe3;
  padding: 10px 30px;
  border-radius: 10px;
  font-family: Arbutus;
  font-size: 3rem;

  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 1s ease-out forwards;
}
.aproducts{
  padding: 20px;
  display: flex;
  align-items: center;
  background-color: #165487;
  text-decoration: none;
  border-radius: 15px;
  /* width: 350px; */
  /* height: 100px; */
  justify-self: center;
  gap: 35px;
  height: 100px;
  transition: 1.5s;
  width: 370px;
}
.aproducts img{
  height: 100px;
  width: 100px;
  border-radius: 5px;
  transition: 1.5s;
}
.aproducts h4{
  color: #fff;
  font-family: Black Ops One;
  font-weight: 400;
  font-size: 3em;
  transition: 1s;
}
.aproducts:hover{
  h4{
    /* color: rgba(249, 249, 36, 0.977); */
    font-size: 3.5em;
  }
  /* box-shadow: 5px 5px 10px rgba(249, 249, 36, 0.977); */
  gap: 15px;
  background: #4ca1e6;
}
.aproducts img:hover{
  transform: scale(1.3);
}






/* Home page */
.train-slider-section {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 90vh;
  min-height: 630px;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 0; /* Changed from 80px */
  /* height: 100vh; */
}

.train-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.train-slide {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s;
  animation-duration: 1s;
}
.train-slide.active {
  opacity: 1;
  z-index: 1;
}

.train-slider-left-shadow {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 55vw;
  background: linear-gradient(to right, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.32) 70%, rgba(0,0,0,0.09) 100%);
  z-index: 2;
}

.train-slider-content {
  position: absolute;
  top: 38px;
  left: 52px;
  max-width: 38vw;
  z-index: 4;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.service-label {
  background: #165487;
  color: #fff;
  font-weight: 600;
  font-size: 1.48rem;
  padding: 16px 52px 16px 10px;       /* Wider */
  border-radius: 9px;
  display: inline-block;
  margin-top: 40px;
  /* margin-bottom: 10px; */
  letter-spacing: 1px;

  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 2s ease-out forwards;
}

@keyframes slideUp{
  0%{
    opacity: 0;
    transform: translateY(50px);
  }
  100%{
    opacity: 1;
    transform: translateY(0);
  }
}

.service-title {
  font-weight: bold;
  font-size: 2.3rem;
  margin-bottom: 18px;     /* Less gap to button */
  color: #fff;
  line-height: 1.1em;

  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 1s ease-out forwards;
}
.slider-learn-btn {
  display: inline-flex;
  align-items: center;
  background: #165487;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 600;
  /* padding: 20px 65px;  */
  border-radius: 13px;
  text-decoration: none;
  margin-top: 60%;
  letter-spacing: 1px;
  gap: 14px;
  /* margin-top: 100px; */

  width: 230px;
  padding: 15px;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 1s ease-out forwards;
}
.slider-learn-btn:hover{
  background: #1f7ac5;  
  .learnmore-arrow-img{
    background: #ffffff;
  }
}
.learnmore-arrow-img {
  height: 32px;
  width: 32px;
  margin-left: 6px;

  background: rgba(255, 255, 255, 0.745);
  border-radius: 10px;
  padding: 15px;
}

/* Responsive adjustments */
@media (max-width: 900px){
  .train-slider-section { min-height: 320px; height: 310px; }
  .train-slider-content { left: 10px; max-width: 95vw; gap: 16px; }
  .service-title { font-size: 1.19rem; }
  .service-label { font-size: 1em; padding: 6px 16px; }
  .slider-learn-btn { padding: 10px 20px; font-size: 1rem; border-radius: 8px; margin-top: 50%;}
  .learnmore-arrow-img { height: 22px; width: 22px; }
  .train-slider-left-shadow { width: 87vw; }
}
@media(min-width: 630px){
  .slider-learn-btn{margin-top: 45%;}
}
.home-about{
  background: white;
  padding: 15px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px; /* Reduced from 50px */
  padding-top: 30px; /* Added to create consistent spacing */
  padding-bottom: 30px; /* Added to create consistent spacing */
}
.home-about h1{
  font-family: Autour One;
  font-weight: 400;
  font-style: Regular;
  font-size: 60px;
  /* leading-trim: NONE;  */
  line-height: 100%;
  letter-spacing: 0%;
  margin-left: 30px;
  margin-bottom: 40px;
}
.habt-slide{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 120px;
  justify-content: space-evenly;
  margin-bottom: 20px; /* Reduced from 40px */

  opacity: 0;
  transform: translateY(50px);
  /* animation: slideUp 2s ease-out forwards; */
  transition: opacity 1s ease-out, transform 1.4s ease-out;
}
.habt-slide.active{
  opacity: 1;
  transform: translateY(0);
}
.habt-slide:hover{
  .habt-slide-tbox-heading img{
      transform: rotateY(180deg);
  }
  /* .habt-slide-tbox-heading.unique1 img{
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  } */
}
.habt-slide-tbox-heading{
  display: flex;
  flex-direction: row;
  align-items: center;
}
.habt-slide-tbox-heading.unique1 h2{
  background: #FFB6B6;
  padding: 11px 5px;
}
/*.habt-slide-tbox-heading.unique1 img{
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
} */
.habt-slide-tbox-heading.unique1{
  background-color: #FFB6B6;
  width: 360px;
  border-radius: 10px;
  height: 60px;
}
.habt-slide-tbox-heading h2{
  color: white;
}
.habt-slide-tbox-heading img{
  width: 30px;
  height: 30px;
  background-color: #FFB6B6;
  border-radius: 10px;
  padding: 10px;
  overflow: visible;

  transition: 1s;
}
.habt-slide-tbox-heading img:hover{
  transform: rotateY(180deg);
}
.habt-slide-tbox-heading h2{
  background-color: #165487;
  padding: 5px;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}
.habt-slide-tbox{
  background-color: white;
  border-radius: 15px;
  padding-left: 15px;
  /* border: 1px solid black; */
  box-shadow: 0px 4px 100px 0px #00000040;
}
.habt-slide-tbox-text{
  width: 740px;
  height: 150px;
  padding: 10px;
}
.habt-slide-tbox-text.unique{
  height: 280px;
}
.habt-slide-tbox-text p{
  font-family: Autour One;
  font-weight: 400;
  font-style: Regular;
  font-size: 22px;
  line-height: 35px;
  letter-spacing: 0%;
}
.img-wrapper1{
  height: 251px;
  width: 381px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0px 4px 100px 0px #00000040;
}
.img-wrapper1 img{
  transition: 0.5s;
  height: 251px; width: 381px; border-radius: 20px;
}
.img-wrapper1 img:hover{
  transform: scale(1.2);
}
hr{display: none;}




/* Responsive styles for home page */
@media (max-width: 900px) {
  /* Header */
  .nav-container {
    justify-content: center;
    padding: 0.5em;
  }
  
  .nav-list {
    display: none;
  }

  .logo-name {
    justify-content: center;
  }

  /* Slider section */
  .train-slider-section {
    height: 60vh;
    min-height: 400px;

    width: 100%;
  }

  .train-slider-content {
    left: 20px;
    max-width: 80vw;
  }

  .service-label {
    font-size: 1.2rem;
    padding: 12px 30px 12px 8px;
    margin-top: 20px;
  }

  .service-title {
    font-size: 1.8rem;
  }

  .slider-learn-btn {
    margin-top: 30%;
    width: 180px;
    font-size: 1rem;
    visibility: hidden;
  }

  /* About section */
  .home-about {
    padding: 10px;
    gap: 30px;
  }

  .home-about h1 {
    font-size: 40px;
    margin-left: 15px;
    margin-bottom: 20px;
  }

  .habt-slide {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 20px;
  }

  .img-wrapper1 {
    display: none;
  }

  .habt-slide-tbox {
    width: 100%;
    padding: 10px;
  }

  .habt-slide-tbox-text {
    width: auto;
    height: auto;
    padding: 15px;
  }

  .habt-slide-tbox-text p {
    font-size: 18px;
    line-height: 28px;
  }

  /* Products section */
  .products-type-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .product-type-box {
    width: 90%;
    max-width: 350px;
  }

  /* Logo sliders */
  .logos-section-container {
    width: 90%;
    height: auto;
    padding: 20px;
    margin: 30px auto; /* Changed from larger margins */
  }

  .section-title {
    font-size: 1.5rem;
    padding: 15px 25px;
  }

  .logo-carousel-track img {
    height: 100px;
    margin: 0 10px;
    padding: 10px;
  }

  .back-btn-products.back-btn-1{
    display: none;
  }

  hr{display: none;}
  .footer-content1{display: none;}
  .footer-content0{display: none;}
}
@media (min-width: 900px){
  .back-btn-products.back-btn-2{
    display: none;
  }
}
/* Tablet view */
@media (min-width: 769px) and (max-width: 1024px) {
  .train-slider-section {
    height: 70vh;
  }

  .habt-slide {
    gap: 60px;
  }

  .habt-slide-tbox-text {
    width: 100%;
  }

  .products-type-row {
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-type-box {
    flex: 0 1 calc(50% - 80px);
  }

  .logos-section-container {
    width: 85%;
  }
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    padding: 20px;
    gap: 30px;

    display: none;
  }

  .footer-section {
    width: 100%;
    text-align: center;
  }

  .footer-section.about,
  .footer-section.items,
  .footer-section.contacts {
    margin: 0;
    padding: 0;
  }

  .footer-section h2 {
    margin-left: 0;
  }

  .footer-content1 {
    justify-content: center;
    padding: 20px 0;
    /* flex-direction: column; */
  }
  .footer-content1 span{
    display: none;
  }
  .footer-content1 img {
    height: 40px;
  }

  .footer-copy {
    font-size: 1em;
  }

  .footer-contact.c1 {
    justify-content: center;
  }
}

/* Update hr spacing */
.home-section-gap {
  margin: 30px 0; /* Changed from 70px */
  border: none;
  height: 1px;
  background-color: #e0e0e0;
}




/* responsive for table */
/* Product pages responsive styles - Mobile and Tablet */
@media (max-width: 768px) {
  /* Banner section */
  .banner-overlap {
    height: auto;
  }
  
  .banner-overlap img {
    height: 40vh;
    object-fit: cover;
  }

  .banner-overlap h1 {
    font-size: 1.8rem;
    left: 15px;
    top: 35%;
    padding: 8px 15px;
  }

  /* Product heading and back button */
  .products-sub-heading {
    width: 95vw;
    margin-top: 30px;
    flex-direction: row;
    gap: 15px;
    padding: 0 10px;
  }

  .back-btn-products img {
    height: 40px;
    width: 40px;
    margin-left: 0;
  }

  .products-sub-htxt h2 {
    font-size: 1.2rem;
    padding: 8px;
  }

  /* Product table styling */
  .product-sub-alignment {
    padding: 10px;
  }

  .product-table {
    width: 100%;
    margin: 20px 0;
    font-size: 0.9rem;
  }

  .product-table th, 
  .product-table td {
    padding: 8px;
    font-size: 0.85rem;
  }

  .product-table td:first-child {
    width: 50px;
  }

  .img-of-items {
    max-width: 120px;
    max-height: 80px;
  }

  /* Force table to not be like tables anymore */
  .product-table, 
  .product-table thead, 
  .product-table tbody, 
  .product-table th, 
  .product-table td, 
  .product-table tr { 
    display: block; 
  }
  
  /* Hide table headers */
  .product-table thead tr { 
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .product-table tr { 
    border: 1px solid #ccc;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
  }
  
  .product-table td { 
    border: none;
    border-bottom: 1px solid #eee; 
    position: relative;
    padding-left: 50%; 
    text-align: left;
  }
  
  .product-table td:before { 
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%; 
    padding-right: 10px; 
    white-space: nowrap;
    font-weight: bold;
  }
  
  /* Add labels */
  .product-table td:nth-of-type(1):before { content: "Serial No."; }
  .product-table td:nth-of-type(2):before { content: "Product Name"; }
  .product-table td:nth-of-type(3):before { content: "Image"; }
  .all-products-table td:nth-of-type(3):before { content: "Status"; }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .banner-overlap h1 {
    font-size: 2.2rem;
    left: 30px;
  }

  .products-sub-heading {
    width: 85vw;
  }

  .product-table {
    width: 90%;
  }

  .img-of-items {
    max-width: 180px;
    max-height: 120px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .banner-overlap h1 {
    font-size: 1.4rem;
    left: 10px;
    padding: 5px 10px;
  }

  .products-sub-htxt h2 {
    font-size: 1rem;
    padding: 5px;
  }

  .product-table td {
    font-size: 0.8rem;
  }

  .img-of-items {
    max-width: 100px;
    max-height: 70px;
  }
}