/* ══════════════════════════════════════════════════════════════
   DISEASE-ARCHIVE.CSS
   ══════════════════════════════════════════════════════════════ */

/* ── HERO SPLIT ── */
.phi.phi-split {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO SEARCH ── */
.ph-search {
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  max-width: 520px;
  margin: 20px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.ph-search input {
  flex: 1;
  padding: 14px 18px;
  font-size: 14px;
  border: none;
  outline: none;
  font-family: "DM Sans", sans-serif;
  color: #1a1a1a;
}
.ph-search input::placeholder {
  color: #9b9b9b;
}
.ph-search button {
  background: #e67817;
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

/* ── INLINE FILTER SEARCH ── */
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #e4e0d8;
  border-radius: 20px;
  padding: 6px 14px;
  margin-left: auto; /* ← pushes search to the right */
  min-width: 220px;
  transition: border-color 0.15s;
}
.filter-search:focus-within {
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.08);
}
.filter-search input {
  border: none;
  outline: none;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  color: #1a1a1a;
  flex: 1;
  background: transparent;
  min-width: 0;
}
.filter-search input::placeholder {
  color: #9b9b9b;
}
.filter-search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: #9b9b9b;
  font-size: 12px;
  padding: 0;
  display: none;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.filter-search-clear:hover {
  color: #e67817;
}

/* Make filter-wrap responsive */
@media (max-width: 768px) {
  .filter-wrap {
    flex-wrap: wrap;
  }
  .filter-search {
    margin-left: 0;
    width: 100%;
  }
}

/* ── HERO STATS — .ph-stat pattern (consistent with other pages) ── */
.ph-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  overflow: hidden;
}
.ph-stat {
  background: rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.ph-stat-num {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  color: #e67817;
  line-height: 1;
  display: block;
}
.ph-stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  display: block;
  line-height: 1.3;
}

/* ── CATEGORY CARDS ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.cat-card {
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.cc-eye {
  background: linear-gradient(160deg, #1a3d2b, #2d6a4f);
}
.cc-gen {
  background: linear-gradient(160deg, #7a3510, #c45f0a);
}
.cc-gyn {
  background: linear-gradient(160deg, #3d1a5a, #7b3fa0);
}
.cat-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 60%);
}
.cat-body {
  position: relative;
  z-index: 1;
  padding: 20px;
}
.cat-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.cat-title {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.cat-count {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 10px;
}
.cat-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 12px;
}
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: #1a3d2b;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}
.cat-card:hover .cat-link {
  background: #e67817;
  color: #fff;
}

/* ── FILTER ── */
.filter-wrap {
  background: #f9f5f0;
  border: 1px solid #e4e0d8;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.ft {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid #e4e0d8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: #6b6b6b;
  background: #fff;
  transition: all 0.15s;
  font-family: "DM Sans", sans-serif;
}
.ft.active,
.ft:hover {
  background: #2d6a4f;
  border-color: #2d6a4f;
  color: #fff;
}

/* ── FEATURED DISEASE ── */
.featured-disease {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e4e0d8;
  margin-bottom: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}
.fd-img {
  background: linear-gradient(160deg, #1a3d2b, #2d6a4f);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  min-height: 260px;
  position: relative;
}
.fd-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fd-content {
  background: #fff;
  padding: 36px;
}
.fd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a3d2b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}
.fd-cat {
  font-size: 11px;
  font-weight: 700;
  color: #e67817;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.fd-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 12px;
}
.fd-desc {
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.78;
  margin-bottom: 18px;
}
.fd-doshasdc {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ── DISEASE CARDS — template uses .dcdc suffix ── */
.disease-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dcdc {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s,
    transform 0.18s;
  text-decoration: none;
}
.dcdc:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.dc-imgdc {
  height: 130px;
  background: linear-gradient(160deg, #1a3d2b, #2d6a4f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
}

/* Category badge on card image */
.dc-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}
.cb-eye {
  background: #1a3d2b;
  color: #fff;
}
.cb-gen {
  background: #7a3510;
  color: #fff;
}
.cb-gyn {
  background: #3d1a5a;
  color: #fff;
}

.dc-bodydc {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dc-namedc {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.3;
}
.dc-tagdc {
  font-size: 12px;
  color: #6b6b6b;
  line-height: 1.6;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dc-footdc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.dc-doshasdc {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.dc-readdc {
  font-size: 11px;
  font-weight: 600;
  color: #e67817;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.dc-readdc::after {
  content: "→";
}

/* ── DOSHA PILLS ── */
.dosha-pilldc {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}
.dp-vatadc {
  background: #eef2ff;
  color: #3730a3;
}
.dp-pittadc {
  background: #fef3e8;
  color: #c45f0a;
}
.dp-kaphadc {
  background: #f0faf3;
  color: #2d6a4f;
}

/* ── PAGINATION ── */
.pag {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 40px 0 0;
  flex-wrap: wrap;
}
.pag .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1.5px solid #e4e0d8;
  font-size: 13px;
  font-weight: 500;
  color: #6b6b6b;
  background: #fff;
  text-decoration: none;
  transition: all 0.15s;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
}
.pag .page-numbers:hover {
  background: #e67817;
  border-color: #e67817;
  color: #fff;
}
.pag .page-numbers.current {
  background: #e67817;
  border-color: #e67817;
  color: #fff;
  font-weight: 700;
}
.pag .page-numbers.dots {
  border: none;
  background: none;
  cursor: default;
  color: #9b9b9b;
  min-width: 20px;
  padding: 0;
}

/* ── A-Z SECTION ── */
.az-section {
  background: #f9f5f0;
  padding: 56px 0;
}
.az-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.az-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid #e4e0d8;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  transition: all 0.15s;
}
.az-btn.has {
  color: #2d6a4f;
  border-color: #b7e4c7;
  cursor: pointer;
}
.az-btn.has:hover {
  background: #2d6a4f;
  color: #fff;
}
.az-btn.no {
  color: #d4d0ca;
  border-color: #edeae4;
  cursor: default;
}
.az-list {
  columns: 3 220px;
  gap: 24px;
}
.az-group {
  break-inside: avoid;
  margin-bottom: 20px;
}
.az-lh {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: #e67817;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e4e0d8;
}
.az-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #3d3d2a;
  padding: 5px 0;
  border-bottom: 1px solid #f5f3ef;
  text-decoration: none;
  transition: all 0.15s;
}
.az-link:last-child {
  border-bottom: none;
}
.az-link:hover {
  color: #e67817;
  padding-left: 4px;
}
.az-link span {
  font-size: 10px;
  color: #9b9b9b;
  font-weight: 500;
  flex-shrink: 0;
  margin-left: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .featured-disease {
    grid-template-columns: 320px 1fr;
  }
}
@media (max-width: 1000px) {
  .disease-grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured-disease {
    grid-template-columns: 1fr;
  }
  .fd-img {
    min-height: 200px;
  }
}
@media (max-width: 900px) {
  .phi.phi-split {
    grid-template-columns: 1fr;
  }
  .phi-right {
    display: none;
  }
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .az-list {
    columns: 2 180px;
  }
}
@media (max-width: 600px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .disease-grid {
    grid-template-columns: 1fr;
  }
  .az-list {
    columns: 1;
  }
  .ph-search {
    max-width: 100%;
  }
}
