/* =========================================================================
   Contact Page Styles (Terracotta / Warm Brick Theme)
   ========================================================================= */
.contact-page {
  padding: 14px 18px 24px;
}

.contact-header-card {
  background: linear-gradient(180deg, #fffdfc 0%, #faf4f0 100%);
  border: 1px solid rgba(56, 34, 24, 0.16);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(56, 34, 24, 0.04);
}

.contact-kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a85c48;
  margin-bottom: 8px;
}

.contact-main-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #382218;
  margin: 0 0 8px;
  line-height: 1.25;
}

.contact-lead {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5c4035;
  margin: 0;
  max-width: 820px;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid rgba(56, 34, 24, 0.14);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(56, 34, 24, 0.04);
  display: flex;
  flex-direction: column;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 34, 24, 0.1);
}

.contact-icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, #faf4f0 0%, #f0e3db 100%);
  border: 1px solid rgba(168, 92, 72, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a85c48;
  flex-shrink: 0;
}

.contact-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #382218;
  margin: 0;
}

.contact-card-sub {
  font-size: 0.8rem;
  color: #a85c48;
  font-weight: 600;
}

.contact-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #5c4035;
  margin-bottom: 14px;
}

.contact-middle-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-email-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #faf5f2;
  border: 1px solid rgba(56, 34, 24, 0.12);
  border-radius: 8px;
}

.contact-info-icon {
  color: #a85c48;
  display: flex;
  align-items: center;
}

.contact-info-content {
  display: flex;
  flex-direction: column;
}

.contact-info-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7d5e53;
}

.contact-email-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: #8c4633;
  text-decoration: none;
}

.contact-email-link:hover {
  text-decoration: underline;
}

.contact-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #a85c48 0%, #8c4633 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(140, 70, 51, 0.25);
  transition: all 0.15s ease;
  border: none;
}

.contact-btn-primary:hover {
  background: linear-gradient(180deg, #b86b57 0%, #9c523e 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(140, 70, 51, 0.35);
}

.contact-callout-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: #fbf6f2;
  border-left: 3px solid #a85c48;
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5c4035;
}

.contact-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.contact-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.contact-spec-item strong {
  color: #382218;
  margin-right: 4px;
}

.spec-bullet {
  color: #a85c48;
  font-weight: bold;
}

/* =========================================================================
   Catalogues / Digital Library Page (Terracotta / Warm Brick Theme)
   ========================================================================= */
.catalogues-page {
  padding: 14px 18px 24px;
}

.catalogues-header-card {
  background: linear-gradient(180deg, #fffdfc 0%, #faf4f0 100%);
  border: 1px solid rgba(56, 34, 24, 0.16);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(56, 34, 24, 0.04);
}

.cat-kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a85c48;
  margin-bottom: 8px;
}

.cat-main-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #382218;
  margin: 0 0 8px;
  line-height: 1.25;
}

.cat-lead {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5c4035;
  margin: 0 0 16px;
  max-width: 840px;
}

.cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cat-search-box {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
}

.cat-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7d5e53;
  pointer-events: none;
}

.cat-search-box input {
  width: 100%;
  height: 36px;
  padding: 0 32px 0 36px;
  background: #ffffff;
  border: 1px solid rgba(56, 34, 24, 0.22);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #382218;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cat-search-box input:focus {
  outline: none;
  border-color: #a85c48;
  box-shadow: 0 0 0 3px rgba(168, 92, 72, 0.18);
}

.cat-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 18px;
  color: #7d5e53;
  cursor: pointer;
  padding: 0 4px;
}

.cat-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(56, 34, 24, 0.18);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #382218;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-chip:hover {
  background: #faf4f0;
  border-color: #a85c48;
  color: #8c4633;
}

.cat-chip.is-active {
  background: #a85c48;
  border-color: #8c4633;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(168, 92, 72, 0.3);
}

.cat-chip-count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(56, 34, 24, 0.08);
}

.cat-chip.is-active .cat-chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.cat-results-counter {
  padding: 8px 12px;
  background: #faf4f0;
  border: 1px solid rgba(56, 34, 24, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #382218;
  margin-bottom: 18px;
}

.cat-section {
  margin-bottom: 28px;
}

.cat-section-header {
  margin-bottom: 14px;
}

.cat-section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #382218;
  margin: 0 0 4px;
}

.cat-section-sub {
  font-size: 0.85rem;
  color: #7d5e53;
  margin: 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cat-card {
  background: #ffffff;
  border: 1px solid rgba(56, 34, 24, 0.14);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(56, 34, 24, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 34, 24, 0.10);
  border-color: #a85c48;
}

.cat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.cat-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(168, 92, 72, 0.12);
  color: #8c4633;
}

.cat-badge-partner {
  background: rgba(56, 34, 24, 0.08);
  color: #382218;
}

.cat-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.cat-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #382218;
  margin: 0 0 6px;
  line-height: 1.35;
}

.cat-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #5c4035;
  margin: 0;
}

.cat-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.cat-btn-primary {
  flex: 1 1 auto;
  background: linear-gradient(180deg, #a85c48 0%, #8c4633 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(140, 70, 51, 0.2);
}

.cat-btn-primary:hover {
  background: linear-gradient(180deg, #b86b57 0%, #9c523e 100%);
  box-shadow: 0 4px 8px rgba(140, 70, 51, 0.3);
}

.cat-btn-primary.full-width {
  width: 100%;
}

.cat-btn-secondary {
  width: 32px;
  padding: 0;
  background: #faf5f2;
  border: 1px solid rgba(56, 34, 24, 0.18);
  color: #8c4633 !important;
}

.cat-btn-secondary:hover {
  background: #f3eae4;
  border-color: #a85c48;
}

.cat-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  text-align: center;
  color: #7d5e53;
  background: #ffffff;
  border: 1px dashed rgba(56, 34, 24, 0.2);
  border-radius: 12px;
  gap: 12px;
}

/* =========================================================================
   Intro Page Styles (Terracotta / Warm Brick Theme)
   ========================================================================= */
.intro-page {
  padding: 14px 18px 24px;
}

.intro-header-card {
  background: linear-gradient(180deg, #fffdfc 0%, #faf4f0 100%);
  border: 1px solid rgba(56, 34, 24, 0.16);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(56, 34, 24, 0.04);
}

.intro-kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a85c48;
  margin-bottom: 8px;
}

.intro-main-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #382218;
  margin: 0 0 8px;
  line-height: 1.25;
}

.intro-lead {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5c4035;
  margin: 0;
  max-width: 820px;
}

.intro-card {
  background: #ffffff;
  border: 1px solid rgba(56, 34, 24, 0.14);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 4px 14px rgba(56, 34, 24, 0.04);
  line-height: 1.7;
  font-size: 0.95rem;
  color: #382218;
}

.intro-card p {
  margin-bottom: 14px;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

#layoutFooter .footer-admin-link {
  float: left;
  font-size: 11.5px;
  font-weight: 600;
  color: #382218;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

#layoutFooter .footer-admin-link:hover {
  color: #1a0b05;
  background: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

/* -------------------------------------------------------------------------
   Search Page Styles (MEW Redesign)
   ------------------------------------------------------------------------- */
.search-hero-card {
  background: #ffffff;
  border: 1px solid rgba(56, 34, 24, 0.14);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(56, 34, 24, 0.05);
  margin-bottom: 20px;
}

.search-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 92, 72, 0.1);
  color: #a85c48;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.search-hero-title {
  font-size: 26px;
  font-weight: 700;
  color: #382218;
  margin: 0 0 6px 0;
}

.search-hero-lead {
  font-size: 14px;
  line-height: 1.5;
  color: #6b574e;
  margin: 0 0 18px 0;
  max-width: 720px;
}

.search-form-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 6px;
}

.search-input-wrap {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}

.search-icon-svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a756b;
  pointer-events: none;
}

.search-text-input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  font-size: 14px;
  font-family: inherit;
  color: #2c1e10;
  background: #fbf9f7;
  border: 1px solid rgba(56, 34, 24, 0.22);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.search-text-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #a85c48;
  box-shadow: 0 0 0 3px rgba(168, 92, 72, 0.18);
}

.search-select-wrap {
  flex: 0 1 200px;
  min-width: 160px;
}

.search-year-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: #2c1e10;
  background: #fbf9f7;
  border: 1px solid rgba(56, 34, 24, 0.22);
  border-radius: 8px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-year-select:focus {
  outline: none;
  background: #ffffff;
  border-color: #a85c48;
  box-shadow: 0 0 0 3px rgba(168, 92, 72, 0.18);
}

.search-btn-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.search-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(180deg, #ba7562 0%, #a85c48 100%);
  border: 1px solid #8c4633;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(168, 92, 72, 0.28);
  transition: transform 0.1s ease, filter 0.15s ease;
}

.search-submit-btn:hover {
  filter: brightness(1.08);
}

.search-submit-btn:active {
  transform: translateY(1px);
}

.search-reset-btn {
  font-size: 13px;
  color: #8a756b;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-reset-btn:hover {
  color: #a85c48;
  background: rgba(168, 92, 72, 0.08);
}
