/* ============================================================
   Furniture Terms Glossary — Modern Layout
   ============================================================ */

.ft-breadcrumb {
  font-size: 13px;
  color: #888;
  padding: 14px 0 18px 0;
}
.ft-breadcrumb a { color: #888; text-decoration: none; }
.ft-breadcrumb a:hover { color: #d52b2a; }
.ft-breadcrumb span { margin: 0 6px; color: #ccc; }

.ft-layout {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* Hero */
.ft-hero {
  text-align: center;
  padding: 10px 0 28px 0;
}
.ft-title {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
}
.ft-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Controls: search + A-Z */
.ft-controls {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 22px 24px 18px 24px;
  margin-bottom: 28px;
}

/* Search */
.ft-search-form { margin-bottom: 16px; }
.ft-search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  transition: border-color 0.15s;
}
.ft-search-wrap:focus-within {
  border-color: #d52b2a;
  background: #fff;
}
.ft-search-icon {
  width: 18px;
  height: 18px;
  margin: 0 10px 0 12px;
  flex-shrink: 0;
}
.ft-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  padding: 10px 0;
}
.ft-search-input::placeholder { color: #bbb; }
.ft-search-btn {
  background: #d52b2a;
  color: #fff;
  border: none;
  padding: 0 20px;
  height: 42px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.ft-search-btn:hover { background: #b52020; }

/* A-Z nav */
.ft-az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ft-az-link {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  padding: 5px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
}
.ft-az-link:hover {
  background: #d52b2a;
  color: #fff;
  border-color: #d52b2a;
}
.ft-az-link.active {
  background: #d52b2a;
  color: #fff;
  border-color: #d52b2a;
}
.ft-az-nav--bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

/* Terms section */
.ft-terms-section {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 28px 32px;
}
.ft-section-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f0f0;
}

/* Glossary dl */
.ft-glossary { margin: 0; padding: 0; }
.ft-entry {
  padding: 14px 0;
  border-bottom: 1px solid #f4f4f4;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  align-items: baseline;
}
.ft-entry:last-child { border-bottom: none; }
.ft-term {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  padding-left: 16px;
  position: relative;
}
.ft-term::before {
  content: "\f105";
  font-family: FontAwesome;
  color: #d52b2a;
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 12px;
}
.ft-def {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.ft-no-results {
  text-align: center;
  padding: 40px 0;
  color: #888;
  font-size: 15px;
}
.ft-no-results a { color: #d52b2a; text-decoration: none; }
.ft-no-results a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 640px) {
  .ft-controls { padding: 16px; }
  .ft-terms-section { padding: 20px 16px; }
  .ft-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ft-title { font-size: 22px; }
}
