/* -------------------------------------------------------
   Dr Wheeler Procedure Library
------------------------------------------------------- */

.drw-procedure-library {
  width: 100%;
}

.drw-procedure-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
  padding: 22px;
  background: #f7f9fa;
  border: 1px solid #dfe8ec;
  border-radius: 18px;
}

.drw-procedure-filters label {
  display: block;
}

.drw-procedure-filters span {
  display: block;
  margin-bottom: 7px;
  color: #0f2f3f;
  font-size: 13px;
  font-weight: 700;
}

.drw-procedure-filters input,
.drw-procedure-filters select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d5e1e6;
  border-radius: 12px;
  background: #ffffff;
  color: #263238;
  font-size: 15px;
}

.drw-procedure-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drw-procedure-filter-actions button {
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #0f2f3f;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.drw-procedure-filter-actions button:hover {
  background: #2f6f8f;
}

.drw-procedure-filter-actions a {
  color: #2f6f8f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.drw-procedure-count {
  margin-bottom: 18px;
  color: #6d7b82;
  font-size: 14px;
  font-weight: 600;
}

.drw-procedure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.drw-procedure-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dfe8ec;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(15, 47, 63, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drw-procedure-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 45px rgba(15, 47, 63, 0.12);
}

.drw-procedure-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eaf4f8;
}

.drw-procedure-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drw-procedure-card-content {
  padding: 22px;
}

.drw-procedure-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.drw-procedure-card-tags span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf4f8;
  color: #0f2f3f;
  font-size: 12px;
  font-weight: 700;
}

.drw-procedure-card h3 {
  margin: 0 0 10px;
  color: #0f2f3f;
  font-size: 22px;
  line-height: 1.2;
}

.drw-procedure-card h3 a {
  color: inherit;
  text-decoration: none;
}

.drw-procedure-card p {
  margin: 0 0 18px;
  color: #53636b;
  line-height: 1.6;
}

.drw-procedure-read-more {
  display: inline-flex;
  align-items: center;
  color: #2f6f8f;
  font-weight: 800;
  text-decoration: none;
}

.drw-procedure-read-more:hover {
  color: #0f2f3f;
}

.drw-procedure-empty {
  padding: 24px;
  background: #f7f9fa;
  border: 1px solid #dfe8ec;
  border-radius: 18px;
}

/* Single procedure Wix-style details output */

.drw-procedure-single-details {
  width: 100%;
}

.drw-procedure-wix-layout {
  --drw-blue: #006da6;
  --drw-dark-blue: #0f2f3f;
}

.drw-procedure-overview-section {
  max-width: 900px;
  margin: 0 auto 34px;
}

.drw-procedure-expect-section {
  margin: 30px auto 54px;
}

.drw-procedure-expect-section > h2,
.drw-procedure-wide-section > h2 {
  margin: 0 0 28px;
  color: var(--drw-blue);
  font-size: 36px;
  line-height: 1.15;
  text-align: center;
  font-weight: 800;
}

.drw-procedure-expect-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.drw-procedure-expect-card {
  min-height: 310px;
  padding: 38px 28px;
  background: #ffffff;
  border: 1px solid #111111;
  color: var(--drw-blue);
}

.drw-procedure-expect-card h3 {
  margin: 0 0 18px;
  color: var(--drw-blue);
  font-size: 19px;
  line-height: 1.2;
  text-align: center;
  font-weight: 800;
}

.drw-procedure-expect-card-content,
.drw-procedure-section-content {
  color: var(--drw-blue);
  font-size: 14px;
  line-height: 1.55;
}

.drw-procedure-expect-card-content p,
.drw-procedure-section-content p {
  margin: 0 0 12px;
}

.drw-procedure-expect-card-content ul,
.drw-procedure-section-content ul,
.drw-procedure-expect-card-content ol,
.drw-procedure-section-content ol {
  margin: 0;
  padding-left: 18px;
}

.drw-procedure-expect-card-content li,
.drw-procedure-section-content li {
  margin: 0 0 5px;
}

.drw-procedure-wide-section {
  max-width: 820px;
  margin: 64px auto;
}

.drw-procedure-cta-note {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 24px;
  background: #eaf4f8;
  border-radius: 18px;
  color: var(--drw-dark-blue);
  font-weight: 600;
}

/* Responsive */

@media (max-width: 1100px) {
  .drw-procedure-filters {
    grid-template-columns: 1fr 1fr;
  }

  .drw-procedure-filter-actions {
    grid-column: 1 / -1;
  }

  .drw-procedure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drw-procedure-expect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .drw-procedure-filters {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .drw-procedure-grid,
  .drw-procedure-expect-grid {
    grid-template-columns: 1fr;
  }

  .drw-procedure-expect-card {
    min-height: auto;
  }

  .drw-procedure-expect-section > h2,
  .drw-procedure-wide-section > h2 {
    font-size: 28px;
  }
}
