/* Product Page Styles - Flanges */

.product-page {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  font-size: 18px; /* Bigger base font */
}

h1 {
  font-size: 42px;
  margin-bottom: 15px;
}
h2 {
  font-size: 28px;
  margin-bottom: 10px;
  margin-top: 10px;              /* spacing above, not inside */
  padding: 5px 15px;            /* inner spacing */
  background-color: #cc4b24;     /* full-width background */
  color: #ffffff;                /* white text */
  border-radius: 0;              /* no rounded edges */
  font-weight: bold;
}
h3 {
  font-size: 22px;
}

p, ul, table {
  margin-bottom: 20px;
  font-size: 18px;
}

a.btn-primary {
  display: inline-block;
  background: #cc4125;
  color: #fff;
  padding: 14px 28px;
  font-size: 18px;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}
a.btn-primary:hover {
  background: #a8321d;
}

/* Hero Section Flanges */
.hero {
  background: url('/assets/images/banner-images/flanges_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; /* fallback */
}

/* Tablet: focus right/abstract part */
@media (max-width: 768px) {
  .hero {
    background-image: url('/assets/images/banner-images/flanges_banner_hero_tablet.jpg');
    background-position: right center;   /* crop left, keep right */
    height: 250px;
  }
}

/* Mobile: focus right/abstract part */
@media (max-width: 480px) {
  .hero {
    background-image: url('/assets/images/banner-images/flanges_banner_hero_mobile.jpg');
    background-position: right center;   /* focus on abstract */
    height: 180px;
  }
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0); /* original 0,0,0,0.55 */
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 15px;
  max-width: 900px;
}

/* Hero Text */
.hero h1,
.hero p {
  color: #ffffff !important; /* force white text */
  text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* add subtle shadow for contrast */
}

/* Responsive Banner */
@media (max-width: 768px) {
  .hero {
    height: 250px; /* smaller height on tablets */
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 22px;
  }
  p, ul, table, .btn-primary {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .hero {
    height: 180px; /* smaller height on mobile */
  }
  h1 {
    font-size: 22px;
  }
  p {
    font-size: 14px;
  }
  a.btn-primary {
    font-size: 14px;
    padding: 10px 18px;
  }
}


/* Hero Section Flanges only for flange landing page */
.fl-hero {
  background: url('/assets/images/banner-images/flanges_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; /* fallback */
}

/* Tablet: focus right/abstract part */
@media (max-width: 768px) {
  .fl-hero {
    background-image: url('/assets/images/banner-images/flanges_banner_hero_tablet.jpg');
    background-position: right center;   /* crop left, keep right */
    height: 250px;
  }
}

/* Mobile: focus right/abstract part */
@media (max-width: 480px) {
  .fl-hero {
    background-image: url('/assets/images/banner-images/flanges_banner_hero_mobile.jpg');
    background-position: right center;   /* focus on abstract */
    height: 180px;
  }
}

.fl-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0); /* original 0,0,0,0.55 */
}

.fl-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 15px;
  max-width: 900px;
}

/* Hero Text */
.fl-hero h1,
.fl-hero p {
  color: #ffffff !important; /* force white text */
  text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* add subtle shadow for contrast */
}

/* Responsive Banner */
@media (max-width: 768px) {
  .fl-hero {
    height: 250px; /* smaller height on tablets */
  }
  .fl-hero h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 22px;
  }
  p, ul, table, .btn-primary {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .fl-hero {
    height: 180px; /* smaller height on mobile */
  }
  .fl-hero h1 {
    font-size: 22px;
  }
  .fl-hero p {
    font-size: 14px;
  }
  a.btn-primary {
    font-size: 14px;
    padding: 10px 18px;
  }
}

/* Types Grid */
.flange-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.flange-card {
  background: #ffffff; /* #f9f9f9 original */
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  transition: 0.3s;
}
.flange-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.flange-card img {
  max-width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* Table */
.specs table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 16px;
}
.specs th, .specs td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}
.specs th {
  background: #f1f1f1;
}

/* Applications */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}
.app-grid div {
  background: #f4f4f4;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
}

/* FAQ */
.faq-item {
  margin-bottom: 15px;
}
.faq-item h3 {
  margin-bottom: 5px;
  font-size: 18px;
  color: #444;
}

/* CTA */
.cta {
  text-align: center;
  background: #eee;
  padding: 50px 20px;
  border-radius: 8px;
}

/* Responsive Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

.table-responsive table {
  width: 100%;
  min-width: 600px; /* prevents squishing on small screens */
  border-collapse: collapse;
}

.specs th, .specs td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
  white-space: nowrap; /* keeps text in one line */
}

