/* ---------------------------
   IWSS Templates: Filters + Slider
   Clean, responsive styles for filters + slides
   --------------------------- */

/* Container */
.iwss-templates-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 12px;
  box-sizing: border-box;
}

/* ---------------------------
   Filter buttons - Desktop / Tablet
   --------------------------- */
.iwss-template-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
  padding: 6px 8px;
}

/* Pill button style */
.iwss-template-filters .filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #f6f7f8;
  color: #222;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(19,19,24,0.04);
  transition: transform .08s ease, background .12s ease, color .12s ease;
  white-space: nowrap;
}

/* subtle hover */
.iwss-template-filters .filter-btn:hover {
  transform: translateY(-2px);
  background: #eef6ff;
}

/* Active state */
.iwss-template-filters .filter-btn.active {
  background: #0d6efd; /* blue */
  color: #fff;
  box-shadow: 0 6px 18px rgba(13,110,253,0.12);
  border-color: rgba(13,110,253,0.18);
}

/* ---------------------------
   Small screen: horizontal scroll
   --------------------------- */
@media (max-width: 780px) {
  .iwss-template-filters {
    display: block;
    margin-bottom: 12px;
    padding: 8px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .iwss-template-filters .filter-btn {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    font-size: 13px;
    padding: 8px 12px;
  }

  /* remove wrap on small screens */
  .iwss-template-filters .filter-btn:last-child {
    margin-right: 24px;
  }
}

/* hide ugly scrollbar in modern browsers (optional polish) */
.iwss-template-filters::-webkit-scrollbar {
  height: 8px;
}
.iwss-template-filters::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
}

/* ---------------------------
   Slide card
   --------------------------- */
.iwss-template-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(23,23,23,0.06);
  overflow: hidden;
  text-align: center;
  padding: 18px;
  box-sizing: border-box;
  height: 100%; /* helps equal-height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* image */
.iwss-template-img {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
  display: block;
}

/* title */
.iwss-template-title {
  font-size: 18px;
  margin: 8px 0 12px;
  color: #222;
  font-weight: 600;
}

/* Actions (buttons) */
.iwss-template-actions {
  margin-top: auto; /* push to bottom */
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Buttons */
.iwss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  min-width: 110px;
  box-sizing: border-box;
  transition: transform .08s ease, opacity .12s ease;
}

.iwss-btn:hover { transform: translateY(-2px); }

.iwss-btn-demo {
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid rgba(31,41,55,0.05);
}

.iwss-btn-start {
  background: #0d6efd;
  color: #fff;
  border: 1px solid rgba(13,110,253,0.12);
  box-shadow: 0 6px 14px rgba(13,110,253,0.12);
}

/* pagination & controls spacing */
.swiper-pagination {
  margin-top: 12px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #0d6efd;
}

/* ---------------------------
   Mobile-specific card tweaks
   --------------------------- */
@media (max-width: 780px) {
  .iwss-template-card {
    padding: 14px;
  }

  .iwss-template-img {
    max-height: 160px;
    margin-bottom: 10px;
  }

  .iwss-template-title {
    font-size: 16px;
    margin: 6px 0 10px;
  }

  .iwss-template-actions {
    gap: 8px;
    flex-direction: column;
  }

  .iwss-btn {
    min-width: 140px;
    width: 85%;
    padding: 10px 12px;
    font-size: 15px;
  }

  .swiper-button-next, .swiper-button-prev {
    display: none; /* hide arrows on small screens; rely on swipe */
  }
}

/* ---------------------------
   Extra polish for very small screens
   --------------------------- */
@media (max-width: 420px) {
  .iwss-template-filters .filter-btn {
    padding: 7px 10px;
    font-size: 13px;
  }

  .iwss-btn {
    font-size: 14px;
  }
}



/* .iwss-template-filters {
  text-align: center;
  margin-bottom: 20px;
}
.filter-btn {
  padding: 8px 16px;
  margin: 0 6px;
  border: none;
  background: #eee;
  border-radius: 6px;
  cursor: pointer;
}
.filter-btn.active {
  background: #0073e6;
  color: #fff;
}
.iwss-template-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding: 16px;
}
.iwss-template-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}
.iwss-template-title {
  font-size: 18px;
  margin: 10px 0;
}
.iwss-template-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.iwss-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.iwss-btn-demo {
  background: #f0f0f0;
  color: #333;
}
.iwss-btn-start {
  background: #0073e6;
  color: #fff;
} */
