/* Banner styles: full-width responsive banner using an image in ../assets/images/banner.jpg */
.banner {
  width: 100%;
  height: 400px; /* desktop target height */
  background-image: url("../assets/images/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

/* Make sure banner sits below any fixed nav (if navbar becomes fixed) */
.navbar + .banner {
  margin-top: 0;
}

/* Responsive heights */
@media (max-width: 1024px) {
  .banner {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .banner {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 180px;
    background-position: center top;
  }
}

/* Two-column feature block */
.feature-block {
  width: 100%;
  background: transparent;
  display: block;
  padding: 50px 180px; /* spacing around the block */
  box-sizing: border-box;
}

.feature-inner {
  max-width: 1640px;
  height: 320px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.feature-col {
  flex: 1 1 50%;
}

.feature-image {
  background-image: url("../assets/images/Flower Press Workshop 3.jpg"); /* replace with your image file */
  background-size: cover;
  background-position: center;
  /* Ensure the image area has a height when in row layout */
  min-height: 100%;
}

/* Make sure any img inside the feature-image fills the area and keeps cover */
.feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text {
  background: #ffffff;
  display: flex;
  align-items: center;
}

.feature-text-inner {
  padding: 48px;
  max-width: 720px;
}

.feature-text h2 {
  margin-top: 0;
}

.feature-text .btn {
  display: inline-block;
  background: #0078d4;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 4px;
}

/* Responsive adjustments: stack columns on smaller screens */
@media (max-width: 1024px) {
  .feature-inner {
    height: auto;
    flex-direction: column;
    padding: 24px 0;
  }

  .feature-block {
    padding: 24px 16px;
  }

  .feature-image {
    height: 280px;
    min-height: 280px;
  }

  .feature-text-inner {
    padding: 24px;
  }
}

/* Smaller image height for narrow mobile screens */
@media (max-width: 480px) {
  .feature-image {
    height: 160px; /* reduced height on small screens */
    min-height: 160px;
  }

  .feature-image img {
    height: 180px;
  }

  /* tighten paddings on smallest screens */
  .feature-block {
    padding: 16px 12px;
  }

  .feature-text-inner {
    padding: 16px;
  }
}

/* Four-column features block */
.four-features {
  width: 100%;
  padding: 24px 180px; /* reduced top/bottom padding to tighten gap with intro */
  box-sizing: border-box;
  background: transparent;
}

.four-grid {
  max-width: 1640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.feature-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.feature-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-caption {
  padding: 12px 10px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .four-features {
    padding: 24px 16px;
  }
  .four-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .feature-item img {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .four-features {
    padding: 16px 12px;
  }
  .four-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-item img {
    height: 100%;
  }
  .feature-caption {
    font-size: 14px;
    white-space: normal;
  }
}

/* Section intro paragraph placed between feature blocks */
.section-intro {
  font-size: 20px;
  margin: 8px 0 6px; /* smaller top/bottom margin to reduce gap */
  padding: 0 180px; /* match the horizontal padding used by feature sections */
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .section-intro {
    padding: 0 16px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .section-intro {
    padding: 0 12px;
    font-size: 16px;
  }
}

/* Homepage Last Information block styling: wraps intro + main content with background and padding */
.info-block {
  background: #E8E5DC;
  padding: 40px 300px; /* increased left/right padding as requested */
  box-sizing: border-box;
}

/* When inside the info-block the main-content should not add extra horizontal padding */
.info-block .main-content {
  padding: 0; /* rely on .info-block for horizontal spacing */
}

.info-block .section-intro {
  padding: 0; /* remove sectional padding; spacing provided by parent */
  margin: 0 0 12px 0;
}

@media (max-width: 1024px) {
  .info-block {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .info-block {
    padding: 16px 12px;
  }
}
