/**
 * Dedicated Stylesheet: Services Directory & Offerings Grid
 * Location: /mansi/assets/css/services_page.css
 * Project: soulguidedbymansi | Inner Light Healing
 * Timezone: Asia/Kolkata (Indian Standard Time)
 */

/* Main Container for Services Page */
.services-page-main {
  max-width: 1320px;
  margin: 30px auto 60px;
  padding: 0 25px;
  box-sizing: border-box;
}

/* Category Filter Bar */
.services-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #ebd9bf;
}

.services-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.service-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #ebd9bf;
  color: #5a3c18;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
}

.service-filter-pill:hover {
  background: #faf4e9;
  border-color: #b47a18;
  color: #2e1d0c;
  transform: translateY(-1px);
}

.service-filter-pill.active {
  background: linear-gradient(135deg, #b47a18 0%, #7b4d17 100%);
  color: #ffffff;
  border-color: #7b4d17;
  box-shadow: 0 4px 12px rgba(180, 122, 24, 0.25);
}

.service-filter-pill .pill-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
}

.service-filter-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.services-search-box {
  position: relative;
  min-width: 240px;
}

.services-search-input {
  width: 100%;
  padding: 9px 16px 9px 36px;
  border: 1px solid #ebd9bf;
  border-radius: 24px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
  color: #2e1d0c;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.services-search-input:focus {
  border-color: #b47a18;
  box-shadow: 0 0 0 3px rgba(180, 122, 24, 0.15);
}

.services-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #8c7b6d;
  pointer-events: none;
}

/* Active Category Alert Banner */
.active-category-banner {
  background: #faf4e9;
  border: 1.5px solid #ebd9bf;
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(123, 77, 23, 0.04);
}

/* Robust Services Grid */
.services-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
  margin-bottom: 40px;
}

/* Individual Service Card in Directory */
.service-directory-card {
  background: #ffffff;
  border: 1.5px solid #ebd9bf;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  box-shadow: 0 4px 16px rgba(123, 77, 23, 0.05);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.service-directory-card:hover {
  transform: translateY(-6px);
  border-color: #b47a18;
  box-shadow: 0 16px 32px rgba(123, 77, 23, 0.12);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.service-card-icon-halo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #faf3e6 0%, #f4e4c7 100%);
  border: 1.5px solid #ecc98a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #7b4d17;
  box-shadow: 0 3px 10px rgba(180, 122, 24, 0.12);
}

.service-card-cat-badge {
  background: #faf4e9;
  color: #5a3c18;
  border: 1px solid #ebd9bf;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card-title {
  font-family: Georgia, serif;
  font-size: 20px;
  color: #2e1d0c;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.3;
}

.service-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.service-card-title a:hover {
  color: #b47a18;
}

.service-card-desc {
  font-family: Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: #6d5843;
  margin: 0 0 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 14px;
  border-top: 1px dashed #ebd9bf;
  border-bottom: 1px dashed #ebd9bf;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card-duration {
  font-size: 12px;
  color: #7b4d17;
  background: #faf4e9;
  padding: 3px 9px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card-video-pill {
  background: #fdf3e2;
  color: #b47a18;
  border: 1px solid #ecc98a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.service-card-price {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #2e1d0c;
}

.service-card-actions-row {
  display: flex;
  gap: 8px;
}

.btn-service-view {
  flex: 1.4;
  text-align: center;
  background: linear-gradient(135deg, #b47a18 0%, #7b4d17 100%);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-service-view:hover {
  background: linear-gradient(135deg, #c98b20 0%, #8f5b1d 100%);
  box-shadow: 0 4px 14px rgba(180, 122, 24, 0.3);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-service-book {
  flex: 1;
  text-align: center;
  background: #ffffff;
  border: 1.5px solid #ebd9bf;
  color: #5a3c18;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-service-book:hover {
  background: #faf4e9;
  border-color: #b47a18;
  color: #2e1d0c;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .services-directory-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .services-directory-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .services-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .services-search-box {
    width: 100%;
  }
}
