/* Your Comfort Corner — cards tuck into footer (TSC reference) */

.comfort-corner {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #fff 72%, #f8f4ec 100%);
  padding: 30px 0 0;
  margin-top: 8px;
  z-index: 4;
  overflow: visible;
}

.comfort-corner-inner {
  position: relative;
  z-index: 5;
}

.comfort-corner-head {
  text-align: center;
  padding: 0 16px 14px;
  max-width: 640px;
  margin: 0 auto;
}

.comfort-corner-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  color: #1a150c;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.comfort-corner-sub {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  color: #8a7d6e;
  line-height: 1.4;
}

.comfort-corner-view-all {
  display: none;
}

.comfort-corner-scroll-wrap {
  padding: 0 0 0 16px;
  position: relative;
  z-index: 6;
}

.comfort-corner-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 8px;
  width: 40px;
  background: linear-gradient(90deg, transparent, #fff 90%);
  pointer-events: none;
  z-index: 7;
}

.comfort-corner-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px 0 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.comfort-corner-scroll:active,
.comfort-corner-scroll.is-dragging {
  cursor: grabbing;
}

.comfort-corner-scroll::-webkit-scrollbar {
  display: none;
}

.comfort-corner-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 4px 12px 72px;
}

.comfort-blog-card {
  flex: 0 0 280px;
  width: 280px;
  position: relative;
  z-index: 8;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .comfort-blog-card {
    flex: 0 0 300px;
    width: 300px;
  }
}

.comfort-blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: none;
  box-shadow: 0 6px 24px rgba(26, 35, 50, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.comfort-blog-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(26, 35, 50, 0.16);
}

.comfort-blog-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f5;
}

.comfort-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.35s ease;
}

.comfort-blog-card-link:hover .comfort-blog-img img {
  transform: scale(1.04);
}

.comfort-blog-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

.comfort-blog-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a2b42;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comfort-blog-excerpt {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.79rem;
  line-height: 1.45;
  color: #6d7787;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comfort-blog-btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 18px;
  background: #eef2f6;
  color: #1a2b42;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  pointer-events: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.comfort-blog-card-link:hover .comfort-blog-btn {
  background: #1a2b42;
  color: #fff;
}

/* Cards sink into dark footer */
.comfort-corner-footer-bridge {
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.page-home .comfort-corner {
  margin-bottom: -112px;
  padding-bottom: 112px;
}

.page-home .site-footer {
  margin-top: 0 !important;
  padding-top: 120px;
  position: relative;
  z-index: 2;
}

.comfort-corner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(20, 16, 12, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 767.98px) {
  .comfort-corner {
    padding: 18px 0 0;
    margin-top: 4px;
  }

  .comfort-corner-head {
    padding: 0 14px 10px;
  }

  .comfort-corner-title {
    font-size: 1.4rem;
  }

  .comfort-corner-sub {
    font-size: 0.8rem;
  }

  .comfort-blog-card {
    flex: 0 0 260px;
    width: 260px;
  }

  .comfort-corner-track {
    gap: 12px;
    padding: 2px 10px 64px;
  }

  .page-home .comfort-corner {
    margin-bottom: -82px;
    padding-bottom: 82px;
  }

  .page-home .site-footer {
    padding-top: 92px;
  }

  .comfort-corner::after {
    height: 92px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(20, 16, 12, 0.12) 100%);
  }
}
