.castle-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url("https://hnie.blob.core.windows.net/hnie-assets/brand-pages/castlebeds/images/01-Full-screen-hero-banner-gradient.jpg") center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.castle-content {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 740px;
  text-align: center;
  z-index: 10;
}

.castle-logo {
  width: 250px;
  margin: 0 auto 50px;
}

.castle-description {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.6;
}

.craft-section {
  padding: 50px 20px;
  background: #ffffff;
}

.craft-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.craft-title {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  color: #2e2e2e;
}

.craft-description {
  max-width: 658px;
  margin: 35px auto 70px;
  font-size: 12px;
  line-height: 1.6;
  color: #0a0a0a;
}

.craft-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.craft-item {
  text-align: center;
  padding: 0px 40px;
}

.craft-item .craft-icon {
  margin: auto 30px 30px;
  max-width: 80px;
}

.castle-text {
  text-align: center;
  font-size: 30px;
  max-width: 900px;
  margin: 30px auto;
}

.craft-heading {
  margin: 0;
  font-size: 16px;
  color: #111111;
}

.shop-section {
  padding: 10px 20px;
  background: #ffffff;
}

.shop-container {
  max-width: 1240px;
  margin: 0 auto;
}

.shop-title {
  margin: 0 0 30px;
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  color: #111111;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: auto;
  width: 80%;
}

.shop-card {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  width: 100%;
  height: 50vh;
}

.shop-image {
  width: 100%;
  height: 100%; /* Fill the parent */
  object-fit: cover; /* Prevent stretching */
  display: block;
}

.shop-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 18px;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 30%, transparent 50%);
}

.shop-heading {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.shop-text {
  margin: 12px 0 28px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
}

.shop-button {
  display: block;
  width: 100%;
  padding: 10px;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  transition: 0.3s;
}

.banner-shop-btn {
  display: inline-block;
  width: auto;
}

.shop-button:hover {
  background: #f5f5f5;
}

.collection-section {
  padding: 40px 20px;
  background: #ffffff;
}

.collection-container {
  max-width: 1250px;
  margin: 0 auto;
}

.collection-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 80%;
  margin: auto;
  margin-bottom: 50px;
}

.collection-image-box,
.collection-content-box {
  border-radius: 5px;
  overflow: hidden;
}

.collection-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.collection-content-box {
  background: #f5f2ef;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  text-align: center;
}

.collection-title {
  margin: 0 0 20px;
  font-size: 25px;
  font-weight: 700;
  color: #111;
}

.collection-text {
  max-width: 520px;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.6;
  color: #222;
}

.collection-button {
  display: inline-block;
  padding: 12px 33px;
  background: #403d3c;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 12px;
}

.bundle-banner {
  display: flex;
  align-items: center;
  padding: 40px 20px;
  height: 400px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  width: 80%;
  margin: 0 auto;
  background: url(https://hnie.blob.core.windows.net/hnie-assets/brand-pages/castlebeds/images/06-Bundles.jpg) no-repeat center center / cover;
}

.bundle-overlay {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.bundle-content {
  max-width: 508px;
  padding-left: 80px;
}

.bundle-title {
  margin: 0 0 30px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.bundle-text {
  margin-bottom: 40px;
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
}

.bundle-button {
  display: inline-block;
  padding: 10px 25px;
  background: #fff;
  color: #111;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
}
.craft-heading {
  margin: 0;
}

.craft-heading-line1,
.craft-heading-line2 {
  display: block;
  line-height: 1.2em;
}

.craft-heading-line2 {
  margin-top: 4px; /* Optional */
}

@media (min-width: 768px) and (max-width: 1024px) {
  .castle-logo {
    width: 260px;
  }

  .craft-section,
  .shop-section {
    padding: 30px 20px;
  }

  .craft-description {
    margin-bottom: 60px;
  }

  .craft-grid {
    justify-content: center;
    gap: 40px;
  }

  .craft-icon {
    width: 100px;
    height: 100px;
  }

  .collection-image {
    width: 100%;
    margin: auto;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-card {
    height: 40vh;
  }

  .shop-button {
    padding: 16px;
  }

  .collection-content-box {
    padding: 50px 35px;
  }

  .bundle-overlay {
    justify-content: center;
    text-align: center;
  }

  .bundle-content {
    max-width: 389px;
    padding-left: 55px;
  }

  .castle-text {
    margin: 30px 95px;
  }

  .castle-hero {
    min-height: 53vh;
  }
}

@media (max-width: 767px) {
  .bundle-banner {
    padding: 60px 40px;
    height: 650px;
    width: 100%;
    align-items: flex-start;
    background: url(https://hnie.blob.core.windows.net/hnie-assets/brand-pages/castlebeds/images/06-Bundles-mobile.jpg) no-repeat center bottom / cover;
  }

  .castle-hero {
    min-height: 90vh;
    background: url("https://hnie.blob.core.windows.net/hnie-assets/brand-pages/castlebeds/images/Full-screen-hero-banner-gradient-mobile.jpg") center center / cover no-repeat;
  }

  .bundle-image {
    width: 100%;
    height: 80vh;
  }

  .bundle-content {
    padding: 0px;
  }

  .collection-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .bundle-text {
    margin-bottom: 20px;
  }

  .collection-content-box {
    padding: 20px;
  }

  .castle-text {
    font-size: 20px;
    margin: 11px 5px;
  }

  .castle-logo {
    width: 200px;
    margin-bottom: 45px;
  }

  .craft-section {
    padding: 40px 15px;
  }

  .craft-description {
    margin: 25px auto 45px;
  }

  .craft-grid {
    flex-direction: column;
    gap: 20px;
  }

  .craft-icon {
    width: 90px;
    margin-bottom: 20px;
  }

  .shop-section {
    padding: 10px 15px;
  }

  .shop-title {
    margin-bottom: 35px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-overlay {
    padding: 25px 15px;
  }

  .shop-text {
    margin: 10px 0 20px;
  }

  .shop-grid {
    width: 100%;
  }

  .shop-button {
    padding: 15px;
  }

  .shop-card {
    height: 300px;
  }

  .castle-description {
    font-size: 15px;
  }

  .bundle-overlay {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
  }

  .craft-item {
    margin: auto;
  }

  .craft-title {
    font-size: 20px;
  }

  .bundle-content {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
  }
  .bundle-title,
  .bundle-text {
    text-align: center;
  }
}
