/* Product Page Styles - round-bars */
.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 */
.hero {
  background: url('/assets/images/banner-images/round_bars_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;
}

.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 h1,
.hero p {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* 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;
}

/* Enhanced Responsive Tables - Mobile Optimized */
.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;
}

.specs-table,
.property-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  table-layout: fixed; /* Changed from auto to fixed for better mobile control */
  margin: 0 auto;
  display: table;
  min-width: 300px; /* Minimum width to prevent excessive compression */
}

.specs-table th,
.property-table th {
  background: #cc4b24;
  color: white;
  padding: 12px 8px; /* Reduced padding for mobile */
  text-align: center;
  font-weight: 600;
  font-size: 14px; /* Slightly smaller font for mobile */
  border: none;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
  text-transform: none;
  min-width: 80px; /* Prevent columns from becoming too narrow */
}

.specs-table td,
.property-table td {
  padding: 10px 8px; /* Reduced padding for mobile */
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  line-height: 1.4;
  text-align: center;
  font-size: 13px; /* Slightly smaller font for mobile */
  word-break: break-word; /* Allow long words to break */
  hyphens: auto; /* Enable hyphenation for long words */
}

.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;
}

.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 {
  width: 100%;
}

/* Mobile-specific optimizations */
@media screen and (max-width: 768px) {
  .specs-table,
  .property-table {
    table-layout: auto; /* Switch back to auto for very small screens */
  }
  
  .specs-table th,
  .property-table th {
    padding: 10px 6px;
    font-size: 13px;
  }
  
  .specs-table td,
  .property-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .specs-title,
  .property-title {
    font-size: 1.5rem; /* Smaller title on mobile */
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 480px) {
  .specs-table th,
  .property-table th {
    padding: 8px 4px;
    font-size: 12px;
    min-width: 60px;
  }
  
  .specs-table td,
  .property-table td {
    padding: 6px 4px;
    font-size: 11px;
  }
  
  .specs-table-container,
  .properties-container {
    margin: 20px auto;
  }
}

/* Round Bar Content Sections */
.round-bars-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  width: 100%;
}


.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;
}


/* ============================================
   PRODUCT GRID LAYOUT
============================================ */
.product_round_bars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  box-sizing: border-box;
  padding: 10px 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.product_round_bars * {
  box-sizing: border-box;
  margin: 0;
}

.product_round_bars .responsive {
  flex: 0 1 calc(25% - 30px); /* Adjust this to account for gaps */
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

/* ============================================
   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;
}


/* ============================================
   GALLERY BOX
============================================ */
.product_round_bars .gallery {
  border: 1px solid #ccc;
  border-bottom: none;
  position: relative;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
  text-align: center;
}

.product_round_bars .gallery:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.product_round_bars .gallery img {
  width: 100%;
  height: 250px;
  object-fit: contain; /* Changed from 'cover' to 'contain' */
  display: block;
  transition: transform 0.3s ease;
  padding: 5px; /* Padding around the image only */
}

.product_round_bars .gallery:hover img {
  transform: scale(1.05);
}


/* ============================================
   DESCRIPTION BOX
============================================ */
.product_round_bars .desc {
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
  background: #cc4b24;
}

.product_round_bars .desc a {
  color: #ffffff;
  text-decoration: none;
}


/* ============================================
   OVERLAY HOVER EFFECT - FIXED TO COVER 100%
============================================ */
.product_round_bars .overlay {
  position: absolute;
  top: 0; /* Cover from top edge */
  left: 0; /* Cover from left edge */
  right: 0; /* Cover to right edge */
  bottom: 0; /* Cover to bottom edge */
  background-color: rgba(75, 75, 77, 0.7);
  overflow: hidden;
  width: 100%; /* Full width */
  height: 0; /* Start at 0 height */
  transition: 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product_round_bars .gallery:hover .overlay {
  height: 100%; /* Expand to full height */
}

.product_round_bars .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;
}


/* ============================================
   RESPONSIVE FIXES
============================================ */
@media (max-width: 992px) {
  .product_round_bars .responsive {
    flex: 0 1 calc(33.333% - 14px);
  }
}

@media (max-width: 768px) {
  .product_round_bars .responsive {
    flex: 0 1 calc(50% - 10px);
  }
  
  /* Mobile-specific fix for image display */
  .product_round_bars .gallery img {
    object-fit: contain;
    padding: 5px; /* Keep image padding */
  }
}

@media (max-width: 480px) {
  .product_round_bars .responsive {
    flex: 0 1 100%;
  }
  
  /* Additional mobile adjustments */
  .product_round_bars .gallery img {
    height: 200px; /* Reduce height on mobile for better fit */
    padding: 5px; /* Keep image padding */
  }
}


/* CTA */
.cta {
  text-align: center;
  background: #eee;
  padding: 50px 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Background Animation */
.round-bars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.round-bars-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 */
.round-bars-overlay-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 0;
  text-align: center;
}

/* Overlay Box */
.round-bars-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%;
}

.round-bars-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

.round-bars-left {
  width: 100%;
  padding: 20px;
  text-align: center;
}

.round-bars-left h2 {
  font-size: 24px;
  color: #555;
  margin-bottom: 10px;
}

.round-bars-left p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
  text-align: left;
}

/* round bar list - 3 columns */
.round-bars-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 */
.round-bars-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.icon-box {
  text-align: center;
  font-size: 18px;
}

.icon-box span {
  font-size: 30px;
  display: block;
  margin-bottom: 5px;
}

.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 Design round-bars  */
@media (max-width: 1024px) {
  .round-bars-list { 
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
  }
  .round-bars-icons { 
    grid-template-columns: repeat(2, 1fr); 
    width: 90%;
  }
}

@media (max-width: 768px) {
  .hero {
    background-image: url('/assets/images/banner-images/round_bars_banner_hero_tablet.jpg');
    background-position: right center;
    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;
  }
  
  .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;
  }
  
  .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;
  }
  
  .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;
  }
  
  .round-bars-container {
    padding: 0 15px;
    width: 95%;
  }
  
/* =====================================
   ROUND BAR GRID CONTAINER
===================================== */
.round-bars-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin: 40px 0;
    padding: 30px;

    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* =====================================
   INDIVIDUAL CARDS
===================================== */
.round-bars-section > section {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

/* =====================================
   HEADINGS
===================================== */
.round-bars-section h1 {
    grid-column: 1 / -1; /* Full width heading if used */
    color: #cc4b24;
    margin-bottom: 20px;
    font-size: 2.2rem;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 10px;
    text-align: center;
}

.round-bars-section h2 {
    color: #cc4b24;
    margin-bottom: 12px;
    font-size: 1.25rem;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 6px;
}

.round-bars-section h3 {
    color: #cc4b24;
    margin: 15px 0 10px;
    font-size: 1.1rem;
}

.round-bars-section h4 {
    color: #cc4b24;
    margin-bottom: 10px;
    text-align: center;
}

/* =====================================
   TEXT
===================================== */
.round-bars-section p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
}

/* =====================================
   LISTS
===================================== */
.round-bars-section ul {
    padding-left: 18px;
    margin-top: 10px;
}

.round-bars-section ul li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =====================================
   RESPONSIVE GRID
===================================== */

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .round-bars-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .round-bars-section h1 {
        font-size: 1.8rem;
    }

    .round-bars-section h2 {
        font-size: 1.2rem;
    }

    .round-bars-section h3 {
        font-size: 1rem;
    }
}

/* Mobile: 1 column */
@media (max-width: 576px) {
    .round-bars-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .round-bars-section h1 {
        font-size: 1.6rem;
    }

    .round-bars-section h2 {
        font-size: 1.1rem;
    }

    .round-bars-section h3 {
        font-size: 0.95rem;
    }
}


  
  .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%;
  }
  
  .product_round_bars .responsive {
    flex: 0 1 calc(50% - 10px);
  }

  .round-bars-heading {
    font-size: 1.8rem;
    padding-top: 5px;
  }

  .svg-overlay {
    width: calc(100% - 20px);
  }
  
  .round-bars-left { 
    padding: 15px; 
  }
  
  .round-bars-left h2 { 
    font-size: 20px; 
  }
  
  .round-bars-list {
    grid-template-columns: 1fr;
    width: 90%;
  }
}

@media (max-width: 600px) {
  .product_round_bars {
    width: 90%;
  }
  
  .product_round_bars .responsive {
    flex: 0 1 100%;
    padding: 0 10px;
  }
  
  .product_round_bars .gallery img {
    height: 200px;
  }
  
  .product_round_bars .desc {
    font-size: 14px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    background-image: url('/assets/images/banner-images/round_bars_banner_hero_mobile.jpg');
    background-position: right center;
    height: 180px;
    margin-top: 10px;
  }
  
  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;
  }
  
  .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;
  }
  
  .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;
  }
  
  .round-bars-container {
    padding: 0 10px;
    width: 95%;
  }
  
  .round-bars-section {
    padding: 15px 10px;
    margin-bottom: 15px;
  }
  
  .round-bars-section h1 {
    font-size: 1.5rem;
  }
  
  .round-bars-section h2 {
    font-size: 1.3rem;
    padding: 8px 10px;
  }
  
  .round-bars-section h3 {
    font-size: 1.2rem;
  }
  
  .highlight-box {
    width: 90%;
  }
  
  .uses-list {
    width: 90%;
  }

  .round-bars-heading {
    font-size: 2rem;
  }
  
  .round-bars-image { 
    width: 30%; 
  }
  
  .quote-btn { 
    padding: 12px 20px; 
    font-size: 14px; 
  }
  
  .icon-box span { 
    font-size: 24px; 
  }
}

@media (max-width: 400px) {
  .round-bars-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;
}

/* removes 50px padding on top and bottom of hero section */
#main #content-wrap {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}