/* Product Page Styles - Pipes */
.product-page {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  font-size: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-size: 42px;
  margin-bottom: 15px;
  text-align: center;
}

h2 {
  font-size: 28px;
  margin-bottom: 10px;
  margin-top: 10px;
  padding: 5px 15px;
  background-color: #cc4b24;
  color: #ffffff;
  border-radius: 0;
  font-weight: bold;
  text-align: center;
}

h3 {
  font-size: 22px;
  text-align: center;
}

p, ul, table {
  margin-bottom: 20px;
  font-size: 18px;
}

a.btn-primary {
  display: inline-block;
  background: #cc4125;
  color: #fff;
  padding: 10px 28px;
  font-size: 18px;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  text-align: center;
}

a.btn-primary:hover {
  background: #a8321d;
}

/* Hero Section Pipes */
.hero {
  background: url('/assets/images/banner-images/pipes_banner_hero.jpg') center center/cover no-repeat;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  background-color: #000;
}

/* Tablet: focus right/abstract part */
@media (max-width: 768px) {
  .hero {
    background-image: url('/assets/images/banner-images/pipes_banner_hero_tablet.jpg');
    background-position: right center;
    height: 250px;
  }
}

/* Mobile: focus right/abstract part */
@media (max-width: 480px) {
  .hero {
    background-image: url('/assets/images/banner-images/pipes_banner_hero_mobile.jpg');
    background-position: right center;
    height: 220px;
    margin-top: 10px; /* Smaller header on mobile */
  }
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 15px;
  max-width: 900px;
  text-align: center;
}

/* Hero Text */
.hero h1,
.hero p {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Responsive Typography */
@media (max-width: 768px) {
  .hero {
    height: 250px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 22px;
    padding: 8px 12px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  p, ul, table, .btn-primary {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 180px;
  }
  
  h1 {
    font-size: 22px;
  }
  
  h2 {
    font-size: 18px;
    padding: 6px 10px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  p {
    font-size: 14px;
  }
  
  a.btn-primary {
    font-size: 14px;
    padding: 10px 18px;
  }
}

/* Composition Grid */
.composition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 25px auto;
  width: 95%;
  max-width: 1000px;
}

.composition-item {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border-top: 3px solid #cc4b24;
}

.composition-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.composition-item h4 {
  color: #333;
  margin-bottom: 10px;
  font-size: 16px;
}

.composition-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #cc4b24;
}

/* Mobile Composition Grid */
@media (max-width: 768px) {
  .composition-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 90%;
  }
  
  .composition-item {
    padding: 15px;
  }
  
  .composition-item h4 {
    font-size: 14px;
  }
  
  .composition-value {
    font-size: 1.5rem;
  }
}

/* Enhanced Responsive Tables - Center Aligned & 95% Width */
.specs-table-container,
.properties-container {
  margin: 30px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  max-width: 1200px;
}

.specs-title,
.property-title {
  color: #cc4b24;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.specs-table-wrapper,
.property-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  width: 100%;
  display: block; /* Ensure it's always visible */
}

/* Center aligned tables with 95% width */
.specs-table,
.property-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  table-layout: auto;
  margin: 0 auto;
  display: table; /* Ensure table display */
}

.specs-table th,
.property-table th {
  background: #cc4b24;
  color: white;
  padding: 16px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  border: none;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
  text-transform: none !important; /* added later earlier not there */
}

.specs-table td,
.property-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  line-height: 1.4;
  text-align: center;
  font-size: 14px;
}

.specs-table tbody tr:nth-child(even),
.property-table tbody tr:nth-child(even) {
  background-color: #f8f8f8;
}

.specs-table tbody tr:hover,
.property-table tbody tr:hover {
  background-color: #fff5f2;
}

/* Ensure all columns are center aligned */
.specs-table td:first-child,
.property-table td:first-child,
.specs-table th:first-child,
.property-table th:first-child {
  text-align: center;
}

/* Property table specific adjustments */
.property-table {
  width: 100%;
}

/* Mobile Table Styles - FIXED: Tables always visible */
@media (max-width: 768px) {
  .specs-table-container,
  .properties-container {
    margin: 20px auto;
    width: 95%;
  }
  
  .specs-title,
  .property-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .specs-table,
  .property-table {
    min-width: 500px; /* Ensure tables are wide enough for scrolling */
  }
  
  .specs-table th,
  .specs-table td,
  .property-table th,
  .property-table td {
    padding: 10px 8px;
    font-size: 13px;
    text-align: center;
  }
  
  .specs-table th,
  .property-table th {
    font-size: 14px;
    padding: 12px 8px;
  }
}

@media (max-width: 480px) {
  .specs-table-container,
  .properties-container {
    margin: 15px auto;
    width: 95%;
  }
  
  .specs-title,
  .property-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  
  .specs-table,
  .property-table {
    min-width: 450px; /* Ensure mobile tables are scrollable */
  }
  
  .specs-table th,
  .specs-table td,
  .property-table th,
  .property-table td {
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
  }
  
  .specs-table th,
  .property-table th {
    font-size: 13px;
    padding: 10px 6px;
  }
}

/* REMOVED the card-based table layout that was hiding tables on mobile */
/* Tables will now always be visible and scrollable on mobile */

/* Pipe Content Sections */
.pipes-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px; /* 0 20px */
  width: 100%; /* original 95% */
}

.pipes-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.pipes-section h1 {
  color: #cc4b24;
  margin-bottom: 20px;
  font-size: 2.2rem;
  border-bottom: 2px solid #f5f5f5;
  padding-bottom: 10px;
}

.pipes-section h2 {
  color: #ffffff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f5f5f5;
  font-size: 1.8rem;
}

.pipes-section h3 {
  color: #cc4b24;
  margin: 25px 0 15px;
  font-size: 1.4rem;
}

.pipes-section h4 {
  color: #cc4b24;
  margin-bottom: 10px;
  text-align: center;
}

.pipes-section p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

.highlight-box {
  background-color: #f5f5f5;
  border-left: 4px solid #cc4b24;
  padding: 20px;
  margin: 20px auto;
  border-radius: 0 8px 8px 0;
  width: 95%;
  max-width: 1000px;
  text-align: left;
}

.uses-list {
  list-style-type: none;
  margin: 20px auto;
  width: 95%;
  max-width: 800px;
  text-align: left;
}

.uses-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 25px;
}

.uses-list li:before {
  content: "✓";
  color: #cc4b24;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.uses-list li strong {
  color: #cc4b24;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin: 25px auto;
  width: 95%;
  max-width: 1200px;
}

.industry-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid #cc4b24;
  text-align: center;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.industry-header {
  background: #cc4b24;
  color: white;
  padding: 15px;
  font-weight: bold;
}

.industry-content {
  padding: 20px;
  text-align: left;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 25px auto;
  width: 95%;
  max-width: 1200px;
}

.comparison-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #e67e22;
  text-align: center;
}

.comparison-card h3 {
  color: #e67e22;
  margin-bottom: 15px;
}

.comparison-list {
  list-style-type: none;
  text-align: left;
}

.comparison-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 25px;
}

.comparison-list li:before {
  content: "•";
  color: #e67e22;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Mobile Section Styles */
@media (max-width: 768px) {
  .pipes-container {
    padding: 0 15px;
    width: 95%;
  }
  
  .pipes-section {
    padding: 20px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
  }
  
  .pipes-section h1 {
    font-size: 1.8rem;
  }
  
  .pipes-section h2 {
    font-size: 1.5rem;
  }
  
  .pipes-section h3 {
    font-size: 1.3rem;
  }
  
  .industries-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 90%;
  }
  
  .highlight-box {
    padding: 15px;
    margin: 15px auto;
    width: 90%;
  }
  
  .industry-card,
  .comparison-card {
    padding: 15px;
  }
  
  .uses-list {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .pipes-container {
    padding: 0 10px;
    width: 95%;
  }
  
  .pipes-section {
    padding: 15px 10px;
    margin-bottom: 15px;
  }
  
  .pipes-section h1 {
    font-size: 1.5rem;
  }
  
  .pipes-section h2 {
    font-size: 1.3rem;
    padding: 8px 10px;
  }
  
  .pipes-section h3 {
    font-size: 1.2rem;
  }
  
  .highlight-box {
    width: 90%;
  }
  
  .uses-list {
    width: 90%;
  }
}

/* Product Grid */
.product_pipe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  padding: 10px 0;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

.product_pipe * {
  box-sizing: border-box;
  margin: 0;
}

.product_pipe .responsive {
  flex: 0 1 calc(25% - 10px);
  margin-bottom: 12px;
}

.product_pipe .gallery {
  border: 1px solid #ccc;
  position: relative;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
  margin: 0;
  text-align: center;
}

.product_pipe .gallery:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.product_pipe .gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product_pipe .gallery:hover img {
  transform: scale(1.05);
}

.product_pipe .desc {
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
  background: #cc4b24;
}

.product_pipe .desc a {
  color: #ffffff;
  text-decoration: none;
}

.product_pipe .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(75, 75, 77, 0.7);
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product_pipe .gallery:hover .overlay {
  height: 100%;
}

.product_pipe .overlay a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 20px;
  text-align: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Product Grid Responsive */
@media only screen and (max-width: 900px) {
  .product_pipe .responsive {
    flex: 0 1 calc(50% - 10px);
  }
}

@media only screen and (max-width: 600px) {
  .product_pipe {
    width: 90%;
  }
  
  .product_pipe .responsive {
    flex: 0 1 100%;
    padding: 0 10px;
  }
  
  .product_pipe .gallery img {
    height: 200px;
  }
  
  .product_pipe .desc {
    font-size: 14px;
    padding: 12px;
  }
}

/* Pipe Drawing Section */
.pipe_drawing {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 800px;
  min-height: 400px;
  background-image: url('/assets/images/flange_manufacturer_India.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  box-sizing: border-box;
}

.dark-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.pipe-heading {
  position: relative;
  color: white;
  font-size: 4rem;
  font-weight: 600;
  z-index: 2;
  margin: 0;
  text-align: center;
  width: 100%;
  padding-top: 10px;
}

.svg-overlay {
  position: relative;
  width: calc(100% - 40px);
  max-width: 1000px;
  height: auto;
  z-index: 2;
  margin: 20px 0;
  text-align: center;
}

/* Pipe Drawing Responsive */
@media (max-width: 768px) {
  .pipe_drawing {
    height: auto;
    min-height: 300px;
    padding: 15px 0;
  }

  .pipe-heading {
    font-size: 1.8rem;
    padding-top: 5px;
  }

  .svg-overlay {
    width: calc(100% - 20px);
  }
}

@media (max-width: 480px) {
  .pipe_drawing {
    min-height: 250px;
  }

  .pipe-heading {
    font-size: 2rem;
  }
}

/* removes 50px padding on top and bottom of hero section */
#main #content-wrap {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

/* CTA */
.cta {
  text-align: center;
  background: #eee;
  padding: 50px 20px;
  border-radius: 8px;
  width: 100%; /* original 95% */
  max-width: 1200px; /* original 1000px */
  margin: 0 auto;
}

/* Background Animation */
.pipe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.pipe-image {
  position: absolute;
  width: 20%;
  height: auto;
  animation: float 45s infinite alternate ease-in-out;
  opacity: 0.5;
  top: 10%;
  left: 5%;
}

@keyframes float {
  0% { top: 10%; left: 5%; transform: rotate(0deg); }
  15% { top: 30%; left: 70%; transform: rotate(10deg); }
  30% { top: 60%; left: 40%; transform: rotate(-5deg); }
  45% { top: 50%; left: 20%; transform: rotate(8deg); }
  60% { top: 70%; left: 80%; transform: rotate(-3deg); }
  75% { top: 40%; left: 10%; transform: rotate(5deg); }
  90% { top: 20%; left: 60%; transform: rotate(-2deg); }
  100% { top: 30%; left: 30%; transform: rotate(0deg); }
}

/* Overlay Wrapper */
.pipe-overlay-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 0;
  text-align: center;
}

/* Overlay Box */
.pipe-overlay {
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 95%;
}

.pipe-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

.pipe-left {
  width: 100%;
  padding: 20px;
  text-align: center;
}

.pipe-left h2 {
  font-size: 24px;
  color: #555;
  margin-bottom: 10px;
}

.pipe-left p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
  text-align: left;
}

/* pipe list - 3 columns */
.pipe-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 15px auto;
  padding-left: 0;
  width: 95%;
  max-width: 1000px;
  text-align: left;
}

/* Icons + Button Grid */
.pipe-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 20px;
  margin: 20px auto;
  width: 95%;
  max-width: 1000px;
  text-align: center;
}

.icon-box {
  text-align: center;
  font-size: 18px;
}

.icon-box span {
  font-size: 30px;
  display: block;
  margin-bottom: 5px;
}

/* Email button in grid cell */
.quote-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(to right, #f44336, #ff9800);
  color: #fff;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  text-decoration: none;
  cursor: pointer;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .pipe-list { 
    columns: 2; 
    width: 90%;
  }
  .pipe-icons { 
    grid-template-columns: repeat(2, 1fr); 
    width: 90%;
  }
}

@media (max-width: 768px) {
  .pipe-left { 
    padding: 15px; 
  }
  .pipe-left h2 { 
    font-size: 20px; 
  }
  .pipe-list {
    columns: 1;
    width: 90%;
  }
}

@media (max-width: 400px) {
  .pipe-image { width: 30%; }
  .quote-btn { padding: 12px 20px; font-size: 14px; }
  .icon-box span { font-size: 24px; }
}

/* Utility classes */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 480px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
}

/* Ensure proper viewport scaling */
@viewport {
  width: device-width;
  zoom: 1.0;
}

@-ms-viewport {
  width: device-width;
}

/* Global center alignment for main containers */
.main-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ============================================
   INFO BOX (TEXT SECTION)
============================================ */
.info-box {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ccc;
  border-top: none; /* merges with gallery above */
  padding: 15px; /* includes required top padding */
  margin-top: 0;  /* removes gap between boxes */
  min-height: 270px;
  text-align: left;

  /* Soft shading */
  box-shadow: inset 0 0 12px rgba(0,0,0,0.08);
}

.info-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.65;
}

/* ============================================
   image dropdown wrapper
============================================ */

.dropdown-wrapper {
  margin: 20px auto;
  max-width: 100%;
}

.image-dropdown {
  border-radius: 5px;
  overflow: hidden;
}

.dropdown-header {
  background-color: #cc4b24;
  color: white;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  list-style: none; /* Remove default arrow */
  transition: background-color 0.3s ease;
}

.dropdown-header:hover {
  background-color: #b3411f;
}

.dropdown-text {
  font-size: 16px;
}

.dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* Rotate arrow when details is open */
.image-dropdown[open] .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-top: none;
  text-align: center;
}

.dropdown-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 7px;
}