/* Banco de Preguntas y Respuestas Bíblicas — Public Styles */
.section-qa-home {
  padding: 68px 0;
  background: linear-gradient(180deg, #F6FAF4 0%, #FFFFFF 100%);
  border-top: 1px solid #E2ECE0;
  border-bottom: 1px solid #E2ECE0;
}
.qa-home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.qa-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #E8F3E5;
  color: #306B34;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.qa-home-head h2 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  color: #193B3C;
  line-height: 1.15;
}
.qa-home-head p {
  margin: 0;
  max-width: 650px;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  line-height: 1.7;
  color: #576D6A;
}
.qa-home-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #1C5253;
  color: #F3FFC6;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease;
}
.qa-home-cta:hover {
  background: #306B34;
  color: #fff;
  transform: translateY(-1px);
}
.qa-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.qa-cat-card {
  background: #fff;
  border: 1px solid #DDE8DA;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 26px rgba(28, 82, 83, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.qa-cat-card:hover {
  transform: translateY(-4px);
  border-color: #B7D4B1;
  box-shadow: 0 16px 36px rgba(28, 82, 83, 0.12);
}
.qa-cat-card-media {
  position: relative;
  height: 196px;
  background: linear-gradient(135deg, #174344 0%, #306B34 100%);
  overflow: hidden;
  display: block;
}
.qa-cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms ease;
}
.qa-cat-card:hover .qa-cat-card-media img {
  transform: scale(1.04);
}
.qa-cat-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #F3FFC6;
  font-size: 46px;
  opacity: 0.72;
}
.qa-cat-count-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 45, 47, 0.86);
  color: #F3FFC6;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.qa-cat-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.qa-cat-card-body h3 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  color: #193B3C;
  line-height: 1.2;
}
.qa-cat-card-body p {
  margin: 0 0 20px;
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  line-height: 1.68;
  color: #576D6A;
  flex: 1;
}
.qa-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  background: #B6174B;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  transition: background 180ms ease, transform 180ms ease;
}
.qa-cat-btn:hover {
  background: #92113B;
  color: #fff;
  transform: translateX(2px);
}

/* Standalone Q&A Bank Page (/preguntas & /preguntas/categoria/<slug>) */
.qa-page {
  background: #F6F8F4;
  color: #193B3C;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.qa-hero {
  position: relative;
  padding: 58px 0 64px;
  background: linear-gradient(125deg, #13393A 0%, #1C5253 56%, #2B6233 100%);
  color: #fff;
  overflow: hidden;
}
.qa-hero-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #CFE6CE;
  margin-bottom: 18px;
}
.qa-hero-breadcrumb a {
  color: #F3FFC6;
  text-decoration: none;
}
.qa-hero-breadcrumb a:hover {
  text-decoration: underline;
}
.qa-hero h1 {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
}
.qa-hero p {
  margin: 0 0 26px;
  max-width: 720px;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.72;
  color: #E3F0E1;
}
.qa-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(200px, 0.8fr) auto;
  gap: 12px;
  background: #fff;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10, 32, 33, 0.22);
  max-width: 860px;
}
.qa-search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}
.qa-search-input-box i {
  position: absolute;
  left: 14px;
  color: #576D6A;
  font-size: 14px;
}
.qa-search-input-box input,
.qa-search-bar select {
  width: 100%;
  height: 44px;
  border: 1px solid #DCE6D9;
  border-radius: 10px;
  font-size: 14px;
  color: #193B3C;
  background: #F9FBF8;
  padding: 0 14px;
}
.qa-search-input-box input {
  padding-left: 38px;
}
.qa-search-submit {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #B6174B;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.qa-search-submit:hover {
  background: #92113B;
}

.qa-main-section {
  padding: 48px 0 72px;
}
.qa-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.qa-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #D7E4D3;
  color: #1C5253;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 150ms ease;
}
.qa-cat-pill:hover {
  border-color: #306B34;
  background: #F0F7EE;
}
.qa-cat-pill.is-active {
  background: #1C5253;
  border-color: #1C5253;
  color: #F3FFC6;
}
.qa-cat-pill small {
  font-size: 11px;
  opacity: 0.85;
}

.qa-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.qa-question-card {
  background: #fff;
  border: 1px solid #DDE7DA;
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(28, 82, 83, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.qa-question-card:hover {
  transform: translateY(-3px);
  border-color: #A8CCA1;
  box-shadow: 0 12px 30px rgba(28, 82, 83, 0.11);
}
.qa-q-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.qa-q-code {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 8px;
  background: #EBF5E7;
  color: #1C5253;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1px solid #CBE1C4;
}
.qa-q-cat {
  font-size: 12px;
  font-weight: 600;
  color: #306B34;
}
.qa-question-card h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.24;
  color: #193B3C;
}
.qa-question-card p {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  line-height: 1.65;
  color: #576D6A;
  flex: 1;
}
.qa-q-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #EEF3EC;
  font-size: 12px;
  color: #576D6A;
}
.qa-q-read {
  color: #B6174B;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Public Answer Detail View (/preguntas/<slug>) */
.qa-detail-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 76px;
}
.qa-detail-card {
  background: #fff;
  border: 1px solid #DDE7DA;
  border-radius: 20px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 12px 38px rgba(28, 82, 83, 0.08);
}
.qa-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.qa-detail-title {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.16;
  color: #193B3C;
}
.qa-detail-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid #E8EFE6;
  font-size: 13px;
  color: #576D6A;
}
.qa-answer-prose {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.85;
  color: #1F3D3E;
}
.qa-answer-prose h2, .qa-answer-prose h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #193B3C;
  margin-top: 28px;
}
.qa-answer-prose blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid #306B34;
  background: #F6FAF4;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #1C5253;
}
.qa-answer-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 18px 0;
}
.qa-answer-prose iframe {
  max-width: 100%;
  border-radius: 12px;
  margin: 18px 0;
}
.qa-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #E8EFE6;
}
.qa-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.qa-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #D9E5D6;
  background: #F7FAF5;
  color: #1C5253;
}
.qa-share-btn:hover {
  background: #1C5253;
  color: #F3FFC6;
}
.qa-author-box {
  margin-top: 30px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #F6FAF4 0%, #FFFFFF 100%);
  border: 1px solid #DCE7D9;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.qa-author-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #C3EB78;
}
.qa-author-initials {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #1C5253;
  color: #F3FFC6;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.qa-author-info h3 {
  margin: 0 0 4px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  color: #193B3C;
}
.qa-author-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #306B34;
  margin-bottom: 8px;
}
.qa-author-bio {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  line-height: 1.65;
  color: #576D6A;
}
.qa-related-wrap {
  margin-top: 38px;
}
.qa-related-wrap h2 {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  color: #193B3C;
}

@media (max-width: 980px) {
  .qa-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa-list-grid { grid-template-columns: minmax(0, 1fr); }
  .qa-search-bar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .qa-cat-grid { grid-template-columns: minmax(0, 1fr); }
  .qa-author-box { flex-direction: column; }
  .section-qa-home { padding: 48px 0; }
}
