/* ═══════════════════════════════════════════════════
   CATECHISM PAGE — catechism.css
═══════════════════════════════════════════════════ */

/* ── HERO ── */
.ccc-hero {
  min-height: 60vh; display: grid; place-items: center;
  text-align: center; padding: 8rem 2rem 5rem;
  position: relative; overflow: hidden; background: var(--navy);
}
.ccc-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(42,60,120,0.7) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 75%, rgba(123,29,29,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 10%, rgba(184,150,62,0.12) 0%, transparent 40%);
  z-index: 0;
}

.ccc-hero-content { position: relative; z-index: 2; max-width: 740px; }

.ccc-hero-content h1 {
  font-family: 'Cinzel', serif; font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400; color: var(--white); letter-spacing: 0.05em;
  line-height: 1.1; margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}

/* ── INTRO ── light ── */
.ccc-intro-section { padding: 5rem 2rem; background: var(--ivory); }
.ccc-intro-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 769px) { .ccc-intro-grid { grid-template-columns: 3fr 2fr; gap: 4rem; } }
.ccc-intro-section p { font-size: 1.05rem; color: var(--text-soft); line-height: 1.75; }

/* How-to card */
.ccc-how-to-card { background: var(--navy); padding: 2rem; border-top: 3px solid var(--gold); }
.ccc-how-to-card h3 {
  font-family: 'Cinzel', serif; font-size: 0.85rem; letter-spacing: 0.12em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 1.25rem; font-weight: 400;
}
.ccc-how-list { display: flex; flex-direction: column; gap: 1.1rem; }
.ccc-how-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding-bottom: 1.1rem; border-bottom: 1px solid rgba(184,150,62,0.1);
}
.ccc-how-item:last-child { border-bottom: none; padding-bottom: 0; }
.ccc-how-num {
  font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--gold);
  min-width: 24px; font-weight: 400; line-height: 1.3;
}
.ccc-how-item strong {
  font-family: 'Lato', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.06em; color: var(--white); display: block; margin-bottom: 0.3rem;
}
.ccc-how-item p {
  font-family: 'EB Garamond', Georgia, serif; font-size: 0.92rem;
  color: rgba(255,255,255,0.55); line-height: 1.65; margin: 0;
}

/* ── PILLARS ── dark via prayers-section ── */
.ccc-pillars-section { padding: 5rem 2rem; }
.ccc-pillars-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1rem;
}
@media (min-width: 640px) { .ccc-pillars-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ccc-pillars-grid { grid-template-columns: repeat(4,1fr); } }

.ccc-pillar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,150,62,0.15);
  border-top: 4px solid var(--gold);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.ccc-pillar-num {
  font-family: 'Cinzel', serif; font-size: 0.65rem;
  letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase;
}
.ccc-pillar-title {
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  color: var(--white); font-weight: 400; line-height: 1.3;
}
.ccc-pillar-subtitle {
  font-family: 'EB Garamond', Georgia, serif; font-size: 0.92rem;
  font-style: italic; color: var(--gold); opacity: 0.75;
}
.ccc-pillar-range {
  font-family: 'Lato', sans-serif; font-size: 0.68rem;
  color: rgba(255,255,255,0.35); letter-spacing: 0.08em;
  padding: 0.4rem 0; border-top: 1px solid rgba(184,150,62,0.12);
  border-bottom: 1px solid rgba(184,150,62,0.12);
}
.ccc-pillar-body {
  font-family: 'EB Garamond', Georgia, serif; font-size: 0.97rem;
  color: rgba(255,255,255,0.65); line-height: 1.75; flex: 1;
}
.ccc-pillar-key {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid rgba(184,150,62,0.12);
}
.ccc-pillar-key-label {
  font-family: 'Lato', sans-serif; font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); display: block; margin-bottom: 0.5rem;
}
.ccc-pillar-key-links {
  display: flex; flex-direction: column; gap: 0.3rem;
}
.ccc-pillar-key-link {
  font-family: 'EB Garamond', Georgia, serif; font-size: 0.9rem;
  color: rgba(255,255,255,0.55); text-decoration: none;
  display: flex; align-items: baseline; gap: 0.4rem;
  transition: color 0.2s;
}
.ccc-pillar-key-link:hover { color: var(--gold-light); }
.ccc-pillar-key-link span {
  font-family: 'Lato', sans-serif; font-size: 0.65rem;
  color: var(--gold); opacity: 0.7; letter-spacing: 0.06em; flex-shrink: 0;
}

/* ── SEARCH ── light ── */
.ccc-search-section { padding: 5rem 2rem; background: var(--ivory); }
.ccc-search-lead { font-size: 1.05rem; color: var(--text-soft); max-width: 580px; margin-bottom: 2rem; }
.ccc-search-bar {
  position: relative; max-width: 600px; margin-bottom: 1.5rem;
}
.ccc-search-input {
  width: 100%;
  font-family: 'EB Garamond', Georgia, serif; font-size: 1.05rem;
  background: var(--white); border: 2px solid rgba(26,35,66,0.15);
  color: var(--text); padding: 0.85rem 3rem 0.85rem 1.25rem;
  outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.ccc-search-input:focus { border-color: var(--gold); }
.ccc-search-input::placeholder { color: var(--text-soft); font-style: italic; }
.ccc-search-clear {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-soft);
  font-size: 1rem; cursor: pointer; padding: 0.25rem;
  transition: color 0.2s;
}
.ccc-search-clear:hover { color: var(--navy); }

/* Filter tabs */
.ccc-filter-tabs {
  display: flex; gap: 0; margin-bottom: 2rem; overflow-x: auto;
  border-bottom: 2px solid rgba(26,35,66,0.1);
}
.ccc-filter-btn {
  font-family: 'Lato', sans-serif; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(26,35,66,0.4);
  padding: 0.7rem 1.2rem; border: none; border-bottom: 3px solid transparent;
  margin-bottom: -2px; background: transparent; cursor: pointer;
  white-space: nowrap; transition: all 0.2s;
}
.ccc-filter-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.ccc-filter-btn:hover:not(.active) { color: var(--navy); }

/* Results */
.ccc-results { display: flex; flex-direction: column; gap: 1rem; }
.ccc-result-card {
  background: var(--white); border: 1px solid rgba(26,35,66,0.08);
  border-left: 3px solid var(--gold);
  display: flex; flex-direction: column;
  transition: border-left-color 0.2s;
}
.ccc-result-card:hover { border-left-color: var(--navy); }
.ccc-result-card
/* Top section: topic + pillar label */
.ccc-result-header { padding: 1.25rem 1.5rem 0; }
.ccc-result-topic {
  font-family: 'Cinzel', serif; font-size: 0.95rem;
  color: var(--navy); font-weight: 400;
}
.ccc-result-pillar {
  font-family: 'Lato', sans-serif; font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  display: block; margin-top: 0.15rem;
}

/* Summary: full width */
.ccc-result-summary {
  font-family: 'EB Garamond', Georgia, serif; font-size: 0.97rem;
  color: var(--text-soft); line-height: 1.7;
  padding: 0.75rem 1.5rem 0;
}

/* Footer: paragraph links left, Read button right */
.ccc-result-link-wrap {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(26,35,66,0.06);
  background: rgba(26,35,66,0.02);
}
.ccc-result-paras {
  font-family: 'Lato', sans-serif; font-size: 0.72rem;
  color: rgba(26,35,66,0.45); line-height: 1.6;
  flex: 1;
}
.ccc-result-link {
  font-family: 'Lato', sans-serif; font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  border: 1px solid rgba(26,35,66,0.2);
  padding: 0.35rem 0.75rem; white-space: nowrap;
  flex-shrink: 0; transition: all 0.2s;
}
.ccc-result-link:hover { background: var(--navy); color: var(--white); }

.ccc-no-results {
  font-family: 'EB Garamond', Georgia, serif; font-size: 1rem;
  font-style: italic; color: var(--text-soft); padding: 2rem 0;
}
.ccc-count {
  font-family: 'Lato', sans-serif; font-size: 0.7rem;
  color: rgba(26,35,66,0.35); letter-spacing: 0.08em;
  margin-top: 1.25rem;
}

/* ── VATICAN LINKS ── dark via prayers-section ── */
.ccc-vatican-section { padding: 5rem 2rem; }
.ccc-vatican-inner {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 769px) { .ccc-vatican-inner { grid-template-columns: 2fr 1fr; } }
.ccc-vatican-section .section-title { color: var(--gold-light); }
.ccc-vatican-section p { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.75; }
.ccc-vatican-links { display: flex; flex-direction: column; gap: 1rem; }
.ccc-vatican-btn {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.5rem 1.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,150,62,0.25);
  border-top: 3px solid var(--gold);
  text-decoration: none; transition: background 0.2s;
  font-family: 'Cinzel', serif; font-size: 0.95rem;
  color: var(--white); font-weight: 400;
}
.ccc-vatican-btn span {
  font-family: 'Lato', sans-serif; font-size: 0.65rem;
  color: rgba(255,255,255,0.4); letter-spacing: 0.08em; font-weight: 400;
  font-style: normal;
}
.ccc-vatican-btn:hover { background: rgba(184,150,62,0.08); }
