/* Products Gallery Styles */
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers all gallery items */
    gap: 10px;
    box-sizing: border-box;
    padding: 10px 0;
}

.products * {
    box-sizing: border-box;
    margin: 0;
}

.products .responsive {
    flex: 0 1 calc(33.333% - 10px); /* 3 per row with spacing */
    margin-bottom: 12px;
}

.products .gallery {
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
    background: #cc4b24;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.products .gallery:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.products .gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.products .gallery:hover img {
    transform: scale(1.05);
}

.products .desc {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
}

.products .desc a {
    color: #ffffff;
    text-decoration: none;
}

.products .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(75, 75, 77, 0.8);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products .gallery:hover .overlay {
    height: 100%;
}

.products .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 Design */
@media only screen and (max-width: 900px) {
    .products .responsive {
        flex: 0 1 calc(50% - 10px);
    }
}

@media only screen and (max-width: 600px) {
    .products .responsive {
        flex: 0 1 100%;
    }
}

.heading h1 {
  background-color: #cc4b24;   /* Orange bar */
  color: #ffffff;              /* White text */
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;

  padding: 14px 20px;
  margin: 0 0 20px 0;

  border-radius: 0;
  line-height: 1.3;
}

/* ================================
   HERO SECTION
================================ */

.hero {
  background: url('/assets/images/banner-images/products_banner_hero.jpg')
    center center / cover no-repeat;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  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);
}

/* ================================
   HERO RESPONSIVE IMAGES
================================ */

/* Tablet */
@media (max-width: 768px) {
  .hero {
    background-image: url('/assets/images/banner-images/products_banner_hero_tablet.jpg');
    background-position: right center;
    height: 250px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero {
    background-image: url('/assets/images/banner-images/products_banner_hero_mobile.jpg');
    background-position: right center;
    height: 180px;
    margin-top: 10px;
  }
}

a.btn-primary {
  display: inline-block;
  background: #cc4125;
  color: #ffffff;
  padding: 10px 28px;
  font-size: 18px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-align: center;

  border: 2px solid #ffffff; /* white border */
  box-sizing: border-box;    /* prevents size jump */
}

a.btn-primary:hover {
  background: #a8321d;
}

/* CTA */
.cta {
  text-align: center;
  background: #eee;
  padding: 50px 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* CTA paragraph text */
.cta p {
  font-size: 18px;
  line-height: 1.6;
}

.cta h2 {
  font-size: 25px;
  line-height: 1.6;
}


