/* =========================
   Full Polished Homepage CSS
   - H1 slightly smaller
   - Thumbnail hover on entire block
   - Larger fonts, bullets, CTA buttons
   - Tighter spacing
   - LFAM & Cut Center alignment
   - Equal height flex rows
   - Improved spacing between H5 and bullets
   - Responsive
========================= */

/* ===== Main Heading & Subheading ===== */
.headline h1#effect-2 {
  font-size: 2.6rem; /* slightly smaller for better balance */
  line-height: 1.2;
  margin-bottom: 0.75em;
  font-weight: 700;
}

.headline h2#our-machines {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 1em;
  font-weight: 600;
}

/* Row container for equal height blocks */
.row.margin-bottom-5 {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 3.5em;
}

/* ===== Thumbnail Styling ===== */
.thumbnails {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* equal height for all blocks */
}

/* Entire thumbnail hover effect */
.thumbnails:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  transform: translateY(-4px);
  filter: brightness(1.06);
}

/* Caption styling */
.thumbnails .caption {
  padding: 0.85em 0.6em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1; /* ensures even stretching for equal height */
}

/* Thumbnail main headings */
.thumbnails .caption h2 {
  margin: 0 0 0.6em 0;
  font-size: 1.85rem;
  line-height: 1.3;
  font-weight: 600;
}

/* Subheadings (machine-description h5) */
.machine-description h5 {
  margin: 0 0 0.75em 0; /* increased spacing to bullets */
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 600;
}

/* Bullet lists */
.machine-description ul {
  margin: 0;
  padding-left: 1.5em;
  line-height: 1.55;
}

.machine-description ul li {
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 0.35em;
}

/* Thumbnail images */
.thumbnails .thumbnail-img img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1em;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.thumbnails .thumbnail-img:hover img {
  transform: scale(1.02);
}

/* ===== Red CTA Buttons ===== */
.thumbnails .btn-more {
  display: inline-block;
  margin-top: auto; /* aligns buttons at bottom */
  padding: 0.55em 1.15em;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
}

.thumbnails .btn-more:hover {
  background: linear-gradient(135deg, #f0434e 0%, #e63946 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.thumbnails .btn-more:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(230,57,70,0.4);
}

/* ===== Mobile & Tablet Responsive Adjustments ===== */
@media (max-width: 992px) {
  .col-md-3.col-sm-6 {
    width: 50%;
    margin-bottom: 1.8em;
  }
  .row.margin-bottom-5 {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .col-md-3.col-sm-6 {
    width: 100%;
    margin-bottom: 1.8em;
  }
  .machine-description h5 {
    font-size: 1.25rem;
  }
  .thumbnails .btn-more {
    font-size: 1.05rem;
  }
  .machine-description ul li {
    font-size: 1.2rem;
  }
  .thumbnails .caption h2 {
    font-size: 1.65rem;
  }
}
