/* ---------------------------
   Base scoping to increase specificity
   --------------------------- */
.w3l-content-with-photo-3 .product-gallery,
.w3l-content-with-photo-3 .product-main-row,
.w3l-content-with-photo-3 .product-content,
.w3l-content-with-photo-3 .product-title {}

/* ---------------------------
   Two-column main layout: gallery left, content right
   Scoped (high specificity) to override general rules
   --------------------------- */
.w3l-content-with-photo-3 .product-main-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* left column (gallery) */
.w3l-content-with-photo-3 .product-main-row .product-gallery {
  flex: 0 0 52%;
  max-width: 720px;
}

/* gallery sizing to fully fill left column */
.w3l-content-with-photo-3 .product-main-row .gallery-container,
.w3l-content-with-photo-3 .product-main-row .main-image-wrapper {
  width: 100%;
  height: 520px;
}

/* right column (text) */
.w3l-content-with-photo-3 .product-main-row .product-content {
  flex: 1 1 44%;
  min-width: 280px;
}

/* product title & intro (right column) */
.w3l-content-with-photo-3 .product-main-row .product-title {
  margin-top: 6px;
  font-size: 34px;
  line-height: 1.08;
  margin-bottom: 18px;
  color: #111;
}

/* ensure product title links look like headings, not blue links */
.w3l-content-with-photo-3 .product-main-row .product-title a,
.w3l-products-1 .products1 .column h4 a,
.w3l-content-with-photo-3 .product-content .product-title a {
  color: #111;
  text-decoration: none;
}
.w3l-content-with-photo-3 .product-main-row .product-title a:hover,
.w3l-products-1 .products1 .column h4 a:hover {
  color: var(--btn-color);
}

/* product intro text */
.w3l-content-with-photo-3 .product-main-row .product-intro {
  text-align: justify;
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Tabs container spacing */
.w3l-content-with-photo-3 .product-tabs {
  margin-top: 24px;
}



/* Responsive: stack columns on small screens */
@media (max-width: 980px) {
  .w3l-content-with-photo-3 .product-main-row {
    flex-direction: column;
    gap: 28px;
    padding: 0 18px;
  }
  .w3l-content-with-photo-3 .product-main-row .product-gallery,
  .w3l-content-with-photo-3 .product-main-row .product-content {
    width: 100%;
    flex: none;
  }
  .w3l-content-with-photo-3 .product-main-row .main-image-wrapper {
    height: 420px;
  }
}

/* ---------------------------
   Gallery / slideshow images
   All images use object-fit: cover to stay consistent
   --------------------------- */
.w3l-content-with-photo-3 .gallery-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.w3l-content-with-photo-3 .main-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  height: 100%;
  background: #fff;
}

.w3l-content-with-photo-3 .gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* visible state */
.w3l-content-with-photo-3 .gallery-image.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

/* Transition helper classes (applied by JS) */
.w3l-content-with-photo-3 .gallery-image.fade   { opacity: 1; visibility: visible; }
.w3l-content-with-photo-3 .gallery-image.push   { transform: translateX(0); opacity: 1; visibility: visible; }
.w3l-content-with-photo-3 .gallery-image.wipe   { clip-path: inset(0 0 0 0); opacity: 1; visibility: visible; }
.w3l-content-with-photo-3 .gallery-image.zoom   { transform: scale(1); opacity: 1; visibility: visible; }
.w3l-content-with-photo-3 .gallery-image.slide  { transform: translateX(0); opacity: 1; visibility: visible; }

/* gallery controls (prev/next) */
.w3l-content-with-photo-3 .gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* allow buttons to be pointerable only */
}
.w3l-content-with-photo-3 .gallery-controls .gallery-btn {
  pointer-events: auto;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 6px;
  margin: 0 12px;
  transition: background .2s ease, transform .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.w3l-content-with-photo-3 .gallery-controls .gallery-btn:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-2px);
}

/* thumbnails (if used) */
.w3l-content-with-photo-3 .thumbnails { display:flex; justify-content:center; gap:10px; margin-top:18px; }
.w3l-content-with-photo-3 .thumbnail { width:100px; height:70px; cursor:pointer; opacity:0.7; }
.w3l-content-with-photo-3 .thumbnail img { width:100%; height:100%; object-fit:cover; border-radius:4px; }

/* ---------------------------
   Tabs: look and feel
   --------------------------- */
.w3l-content-with-photo-3 .tabs-nav {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e6e6e6;
}
.w3l-content-with-photo-3 .tabs-nav li {
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  color: #444;
  transition: background .2s;
  border-radius: 4px 4px 0 0;
  margin-right: 8px;
}
.w3l-content-with-photo-3 .tabs-nav li.active {
  background: var(--btn-color);
  color: #fff;
}
.w3l-content-with-photo-3 .tab-content {
  text-align: justify;
  display: none;
  padding: 18px 10px;
}
.w3l-content-with-photo-3 .tab-content.active { 
  text-align: justify;
  display:block; }

/* ---------------------------
   WHY CHOOSE / services cards
   --------------------------- */
.w3l-content-with-photo-3 .why-choose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin: 60px 0;
  
}

.why-choose p{
        text-align: justify;
    }


    
.w3l-content-with-photo-3 .why-choose-list { list-style:none; padding-left:0; }
.w3l-content-with-photo-3 .why-choose-list li { padding-left:28px; position:relative; margin-bottom:12px; }
.w3l-content-with-photo-3 .why-choose-list li::before {
  content: "✓";
  position:absolute;
  left:0;
  color:var(--btn-color);
  font-weight:bold;
  font-size:18px;
}




 @media (max-width: 768px) {

  .w3l-content-with-photo-3 .why-choose {
    grid-template-columns: 1fr;   
    gap: 30px;
    text-align: center;
  }

  .w3l-content-with-photo-3 .why-choose img {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .w3l-content-with-photo-3 .why-choose p {
    text-align: justify;
  }


  .w3l-content-with-photo-3 .why-choose > div:last-child {
    order: 2;
  }
  .w3l-content-with-photo-3 .why-choose > div:first-child {
    order: 1;
  }
}



@media (max-width: 768px) {
  .w3l-content-with-photo-3 .wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* =========================
   RELATED PRODUCTS (Improved)
========================= */

.w3l-products-1 {
  padding: 70px 0;
  background: #f6f6f6;
  margin-bottom: 5px;
  
}

.w3l-products-1 .products1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background: transparent;
}

.w3l-products-1 h3 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--title-color);
}

/* Grid layout */
.w3l-products-1 .products1-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Card */
.w3l-products-1 .products1 .column {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

/* Hover lift */
.w3l-products-1 .products1 .column:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

/* Image */
.w3l-products-1 .products1 .column img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

/* Image zoom on hover */
.w3l-products-1 .products1 .column:hover img {
  transform: scale(1.08);
}

/* Title */
.w3l-products-1 .products1 .column h4 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.w3l-products-1 .products1 .column h4 a {
  color: var(--title-color);
  text-decoration: none;
}

.w3l-products-1 .products1 .column h4 a:hover {
  color: var(--btn-color);
}

/* Responsive */
@media (max-width: 992px) {
  .w3l-products-1 .products1-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .w3l-products-1 .products1-content {
    grid-template-columns: 1fr;
  }

  .w3l-products-1 .products1 .column img {
    height: 180px;
  }
}


/* modal (image viewer) - full screen with prev/next */
#imgModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none; /* shown/hidden by JS */
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
}
#imgModal .modal-inner {
  position: relative;
  width: 90%;
  max-width: 1100px;
  height: 80vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
#imgModal img#modalImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display:block;
  border-radius:6px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}
#imgModal #imgModalClose {
  position:absolute;
  top:18px;
  right:18px;
  font-size:36px;
  color:#fff;
  cursor:pointer;
  background:transparent;
  border:none;
}
#imgModal .modal-nav {
  position:absolute;
  inset:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  pointer-events:none;
}
#imgModal .modal-nav button {
  pointer-events:auto;
  background: rgba(0,0,0,0.45);
  border:none;
  color:#fff;
  width:48px;
  height:48px;
  border-radius:6px;
  font-size:22px;
  cursor:pointer;
}

/* small screens: stack and simplify */
@media (max-width: 768px) {
  .w3l-content-with-photo-3 .product-main-row { padding: 0 14px; gap:20px; }
  .w3l-content-with-photo-3 .product-main-row .gallery-container,
  .w3l-content-with-photo-3 .product-main-row .main-image-wrapper { height: 380px; }
  .w3l-products-1 .products1-content { grid-template-columns: repeat(2,1fr); gap:20px; }
  .w3l-products-1 .product-row { flex-direction: column; align-items: stretch; }
  .w3l-products-1 .product-row .product-img-box { width:100%; height:240px; }
}

/* extra small */
@media (max-width: 480px) {
  .w3l-products-1 .products1-content { grid-template-columns: 1fr; }
  .w3l-content-with-photo-3 .product-main-row .main-image-wrapper { height: 300px; }
  .w3l-products-1 .product-row .product-img-box { height: 180px; }
}

/* final polish */
.w3l-content-with-photo-3 .product-main-row .main-image-wrapper,
.w3l-content-with-photo-3 .product-row .product-img-box {
  background: #f7f7f7;
}

/* Services Section */ 
.ser-sing 
{ 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 30px; margin: 60px auto; 
  padding: 0 15px; 
  max-width: 1100px; 
  justify-content: center; } 

.ser-top 
{ 
  background: #ffffff; 
  border-radius: 12px; 
  padding: 28px 24px; 
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); 
  transition: all 0.3s ease; 
  display: flex; 
  align-items: flex-start; 
  gap: 18px; height: 100%; /* makes all cards same height */ 
  border-bottom: 4px solid transparent; } 

.ser-top:hover 
{ 
  transform: translateY(-8px); 
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); 
  border-bottom: 4px solid var(--btn-color); } 

.ser-left 
{ 
  font-size: 42px; 
  color: var(--btn-color); 
  flex-shrink: 0; 
  margin-top: 4px; } 

.ser-right h4 
{ 
  font-size: 20px; 
  margin: 0 0 10px 0; 
  color: #222; 
  font-weight: 600; }

.ser-right p 
{ 
  margin: 0; 
  font-size: 15px; 
  line-height: 1.6; 
  color: #555; } 


/* Responsive tweak */ 
@media (max-width: 768px) { .ser-sing { grid-template-columns: 1fr; gap: 20px; } .ser-top { padding: 24px 20px; } } 
 
/* Responsive Adjustments */ 
@media (max-width: 992px) { 

.ser-sing { grid-template-columns: 1fr; } 
}

/* base state: hidden image */
.product-row .product-img-box img.p-slide {
    opacity: 0;
    transform: translateX(15px) scale(1.03);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

/* active rotating image */
.product-row .product-img-box img.p-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}


/* ============================ --- IGNORE ---
   END OF PRODUCT PAGE CSS --- IGNORE ---
   ============================ */
