/* =========================================================
   Workshops Page Stylesheet
   Fonts & card design aligned with pricing page (prices.html)
   ========================================================= */

/* ─── Variables (match site palette) ─────────────────────── */
:root {
  --wk-teal:        #116466;
  --wk-teal-light:  #8ed4cc;
  --wk-coral:       #ff7d6e;
  --wk-sand:        #d9b08c;
  --wk-peach:       #ffcb9a;
  --wk-dark:        #2c3531;
  --wk-muted:       #666666;
  --wk-muted-light: #888888;
  --wk-bg-soft:     #f8f8f8;
  --wk-border:      rgba(17, 100, 102, 0.12);
  --wk-shadow-sm:   0 6px 20px rgba(0, 0, 0, 0.03);
  --wk-shadow-md:   0 12px 30px rgba(0, 0, 0, 0.08);
  --wk-transition:  all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ─── Page Typography (match site body / pricing page) ────── */
.workshops-page-content,
.workshops-page-content h2,
.workshops-page-content h3,
.workshops-page-content h4,
.workshops-page-content h5,
.workshops-page-content p,
.workshops-page-content li,
.workshops-page-content span,
.workshops-page-content label {
  font-family: 'Droid Serif', Georgia, serif;
}

.workshops-page-content h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--wk-dark);
}

/* ─── Intro Paragraph ─────────────────────────────────────── */
.workshops-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
  font-family: 'Droid Serif', Georgia, serif;
  font-size: 15px;
  color: var(--wk-muted);
  line-height: 1.7;
}

/* ─── Filter Bar ──────────────────────────────────────────── */
.filters-bar {
  background-color: var(--wk-bg-soft);
  border: 1px solid rgba(17, 100, 102, 0.12);
  border-radius: 12px;
  padding: 28px 30px;
  margin-bottom: 50px;
  box-shadow: var(--wk-shadow-sm);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--wk-muted-light);
  margin-bottom: 8px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background-color: #ffffff;
  font-family: 'Droid Serif', Georgia, serif;
  font-size: 14px;
  color: var(--wk-dark);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  height: 44px;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.filter-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--wk-teal);
  box-shadow: 0 0 0 3px rgba(17, 100, 102, 0.12);
}

.search-wrapper {
  position: relative;
}

.search-wrapper .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wk-muted-light);
  pointer-events: none;
  font-size: 15px;
}

/* Filter Summary Row */
.filters-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(17, 100, 102, 0.15);
}

.results-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--wk-dark);
}

.clear-btn {
  background: none;
  border: 1px solid var(--wk-teal);
  color: var(--wk-teal);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--wk-transition);
}

.clear-btn:hover {
  background-color: var(--wk-teal);
  color: #ffffff;
}

/* ─── Workshops Grid ──────────────────────────────────────── */
.workshops-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
  margin-bottom: 10px;
}

/* ─── Workshop Card  (mirrors .pricing-card) ──────────────── */
.workshop-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--wk-border);
  box-shadow: var(--wk-shadow-sm);
  padding: 30px;
  flex: 1 1 300px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  transition: var(--wk-transition);
  position: relative;
  overflow: hidden;
  /* entrance animation */
  opacity: 0;
  transform: translateY(16px);
  animation: wkCardIn 0.45s ease forwards;
}

@keyframes wkCardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* 4-px gradient top bar — mirrors .pricing-card::before */
.workshop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, #ff7d6e, #d9b08c);
}

.workshop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wk-shadow-md);
  border-color: rgba(249, 163, 146, 0.3);
}

/* ── Card Header (icon circle + title) — mirrors .pricing-card-header ── */
.card-header-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(249, 163, 146, 0.12);
  color: #e28271;
  flex-shrink: 0;
  font-size: 20px;
}

.card-header-text {
  flex-grow: 1;
}

/* Title — mirrors .pricing-card-title */
.workshop-title {
  font-family: 'Raleway', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--wk-dark);
  margin: 0 0 4px 0;
  line-height: 1.4;
}

/* Instructor subtitle — mirrors .pricing-card-subtitle */
.instructor-subtitle {
  font-family: 'Droid Serif', Georgia, serif;
  font-size: 13px;
  color: var(--wk-muted-light);
  margin: 0;
  font-style: italic;
  line-height: 1.4;
}

/* ── Badges Row ──────────────────────────────────────────── */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
}

.badge-inperson {
  background-color: rgba(17, 100, 102, 0.08);
  color: var(--wk-teal);
}

.badge-online {
  background-color: rgba(249, 163, 146, 0.12);
  color: #d86955;
}

.badge-lang {
  background-color: #f1f1f1;
  color: #555555;
}

/* ── Meta Items (dates, location) — mirrors .pricing-item rows ── */
.meta-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  flex-grow: 1;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.meta-item:last-child {
  border-bottom: none;
}

.meta-item-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--wk-muted-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex-shrink: 0;
  padding-right: 12px;
  padding-top: 2px;
  min-width: 68px;
}

.meta-item-value {
  font-family: 'Droid Serif', Georgia, serif;
  font-size: 14px;
  color: var(--wk-dark);
  text-align: right;
  line-height: 1.5;
}

.date-line {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--wk-teal);
}

/* ── Price Row — mirrors .pricing-item with price ── */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  margin-top: 4px;
  margin-bottom: 20px;
}

.price-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--wk-muted-light);
}

.price-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #e28271;
  white-space: nowrap;
  text-align: right;
}

/* ── Action Buttons ─────────────────────────────────────── */
.buttons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-card {
  padding: 11px 10px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none !important;
  transition: var(--wk-transition);
  cursor: pointer;
  display: inline-block;
  box-sizing: border-box;
}

.btn-card-register {
  background-color: var(--wk-teal);
  color: #ffffff !important;
  border: 1px solid var(--wk-teal);
}

.btn-card-register:hover {
  background-color: var(--wk-coral);
  border-color: var(--wk-coral);
  transform: translateY(-2px);
}

.btn-card-more {
  background-color: transparent;
  color: var(--wk-teal) !important;
  border: 1px solid var(--wk-teal);
}

.btn-card-more:hover {
  background-color: rgba(17, 100, 102, 0.06);
  transform: translateY(-2px);
}

/* ─── Empty State ─────────────────────────────────────────── */
.no-results {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
  border: 1px dashed rgba(17, 100, 102, 0.2);
  border-radius: 12px;
}

.no-results-icon {
  font-size: 2.8em;
  margin-bottom: 15px;
}

.no-results h3 {
  font-family: 'Raleway', sans-serif;
  color: var(--wk-dark);
  margin-bottom: 10px;
  font-size: 22px;
}

.no-results p {
  font-family: 'Droid Serif', Georgia, serif;
  color: var(--wk-muted);
  max-width: 420px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

/* ─── Load More ────────────────────────────────────────────── */
.load-more-container {
  display: flex;
  justify-content: center;
  margin: 30px 0 60px;
}

.load-more-btn {
  background-color: #ffffff;
  color: var(--wk-teal);
  border: 2px solid var(--wk-teal);
  padding: 13px 32px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--wk-transition);
  box-shadow: var(--wk-shadow-sm);
}

.load-more-btn:hover {
  background-color: var(--wk-teal);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 100, 102, 0.18);
}

.load-more-btn:disabled {
  border-color: #cccccc;
  color: #aaaaaa;
  background-color: var(--wk-bg-soft);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Staggered animation delays ──────────────────────────── */
.workshop-card:nth-child(1)  { animation-delay: 0ms;   }
.workshop-card:nth-child(2)  { animation-delay: 40ms;  }
.workshop-card:nth-child(3)  { animation-delay: 80ms;  }
.workshop-card:nth-child(4)  { animation-delay: 120ms; }
.workshop-card:nth-child(5)  { animation-delay: 160ms; }
.workshop-card:nth-child(6)  { animation-delay: 200ms; }
.workshop-card:nth-child(7)  { animation-delay: 240ms; }
.workshop-card:nth-child(8)  { animation-delay: 280ms; }
.workshop-card:nth-child(9)  { animation-delay: 320ms; }
.workshop-card:nth-child(10) { animation-delay: 360ms; }
.workshop-card:nth-child(11) { animation-delay: 400ms; }
.workshop-card:nth-child(12) { animation-delay: 440ms; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .filters-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workshop-card {
    flex: 1 1 280px;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .filters-bar  { padding: 18px; }
  .filters-grid { grid-template-columns: 1fr; }
  .workshops-grid { flex-direction: column; }
  .workshop-card { max-width: 100%; }
  .buttons-group { grid-template-columns: 1fr; }
}
