/**
 * @file
 * CSS Styling preservation for SEO Optimized H1 tags.
 *
 * Ensures that whenever an H2, H3, H4, H5, H6, or .heading is converted
 * to an <h1> tag, its visual presentation (font-size, color, line-height,
 * margins, padding, text-transform, and pseudo-elements) perfectly matches the design.
 */

/* 1. Global SEO H1 reset inside themed components */
h1.seo-h1-optimized,
h1.heading,
.details-banner .slider-with-thumbnail .right-cont h1.heading,
.details-banner .slider-with-thumbnail .right-cont h1 {
  width: 100%;
  margin: 0 0 1.5rem 0;
  padding: 0;
  font-size: 2rem;
  color: #10489C;
  line-height: 1.2;
  font-weight: 600;
  text-align: left;
  position: relative;
  font-family: inherit;
}

.details-banner .slider-with-thumbnail .right-cont h1.heading::after,
.details-banner .slider-with-thumbnail .right-cont h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.75rem;
  width: 4.375rem;
  height: 2px;
  background: #C93128;
}

/* 2. Listing and Product Range Headings */
.listing-dual-col .wrapper .prd-range .heading h1,
.listing-dual-col .wrapper .prd-range h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding: 0;
  color: #10489C;
  line-height: 1.2;
  text-align: left;
  position: relative;
  display: block;
}

.listing-dual-col .wrapper .prd-range .heading h1::after,
.listing-dual-col .wrapper .prd-range h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 4.375rem;
  height: 2px;
  background: #C93128;
}

/* 3. Section and Content Headings */
.section-heading h1,
h1.section-heading,
h1.content-heading {
  width: 100%;
  margin: 0 0 1.5rem 0;
  padding: 0;
  font-size: 2rem;
  color: #10489C;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  position: relative;
}

.section-heading h1::after,
h1.section-heading::after {
  content: "";
  width: 4.375rem;
  height: 2px;
  background: #C93128;
  position: absolute;
  left: 50%;
  top: 120%;
  transform: translateX(-50%);
}

.section-heading.left-align h1,
h1.section-heading.left-align {
  text-align: left;
}

.section-heading.left-align h1::after,
h1.section-heading.left-align::after {
  left: 0;
  transform: translateX(0);
}

/* 4. Responsive adjustments */
@media screen and (max-width: 991px) {
  h1.seo-h1-optimized,
  .details-banner .slider-with-thumbnail .right-cont h1.heading,
  .listing-dual-col .wrapper .prd-range .heading h1,
  .section-heading h1,
  h1.section-heading,
  h1.content-heading {
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 767px) {
  h1.seo-h1-optimized,
  .details-banner .slider-with-thumbnail .right-cont h1.heading,
  .listing-dual-col .wrapper .prd-range .heading h1,
  .section-heading h1,
  h1.section-heading,
  h1.content-heading {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}
