/* ============================================================
   CATALUNYAAR — "The Simple Man" Series | Post #5
   Your Kids in Barcelona — /authority mode
   WP CODER: Paste into the CSS tab
   ============================================================ */

.cyr-p5-post * { box-sizing: border-box; margin: 0; padding: 0; }

.cyr-p5-post {
  font-family: 'Space Grotesk', sans-serif;
  color: #1a1a2e;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 60px;
  line-height: 1.7;
}

/* ── SERIES NAV ── */
.cyr-series-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f8;
  flex-wrap: wrap;
  gap: 10px;
}
.cyr-series-prev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.cyr-series-prev:hover { color: #7c3aed; }
.cyr-series-prev .ti { font-size: 15px; }
.cyr-series-current {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4AF37;
}

/* ── HERO — warm purple/amber children theme ── */
.cyr-p5-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, #2e1065 0%, #4c1d95 60%, #2e1065 100%);
  border-radius: 20px;
  padding: 52px 48px;
  margin-bottom: 36px;
  overflow: hidden;
  position: relative;
}
.cyr-p5-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(251,191,36,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cyr-p5-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(167,139,250,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cyr-p5-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 14px;
}
.cyr-p5-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(40px, 6vw, 62px);
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.cyr-p5-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  max-width: 460px;
  margin-bottom: 28px;
  line-height: 1.65;
}

/* ── LANG TOGGLE ── */
.cyr-lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.15);
}
.cyr-lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.cyr-lang-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.cyr-lang-btn.active { background: #D4AF37; color: #2e1065; font-weight: 700; }

/* ── AGE PILLS ── */
.cyr-p5-hero-ages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}
.cyr-age-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}
.cyr-age-active {
  background: rgba(251,191,36,0.18);
  border-color: rgba(251,191,36,0.4);
  color: #fbbf24;
}

/* ── OPENER ── */
.cyr-p5-opener {
  display: flex;
  gap: 20px;
  background: #fdf4ff;
  border-left: 4px solid #7c3aed;
  border-radius: 0 14px 14px 0;
  padding: 28px 32px;
  margin-bottom: 48px;
}
.cyr-p5-opener-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.cyr-p5-opener p {
  font-size: 16px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 14px;
}
.cyr-p5-opener p:last-child { margin-bottom: 0; }

/* ── SECTIONS ── */
.cyr-p5-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1.5px solid #f0f0f8;
}
.cyr-p5-section:last-of-type { border-bottom: none; }
.cyr-p5-sec-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.cyr-p5-sec-num {
  font-family: 'Anton', sans-serif;
  font-size: 52px;
  line-height: 1;
  color: #e8eaf0;
  min-width: 64px;
  letter-spacing: 0.02em;
}
.cyr-p5-sec-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 6px;
  line-height: 1.3;
}
.cyr-p5-sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #7c3aed;
  background: #fdf4ff;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 4px 12px;
}
.cyr-p5-sec-tag .ti { font-size: 14px; }
.cyr-p5-body p { font-size: 16px; color: #374151; line-height: 1.75; margin-bottom: 18px; }
.cyr-p5-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #10143C;
  margin: 28px 0 16px;
}

/* ── SCHOOL STAGES ── */
.cyr-school-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.cyr-stage-card {
  background: #fff;
  border: 1.5px solid #e8eaf0;
  border-radius: 14px;
  padding: 18px;
  position: relative;
}
.cyr-stage-free { border-top: 3px solid #7c3aed; }
.cyr-stage-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
  background: #ede9fe;
  color: #6d28d9;
}
.cyr-stage-age {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cyr-stage-name {
  font-size: 15px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 8px;
  line-height: 1.3;
}
.cyr-stage-desc { font-size: 12px; color: #4b5563; line-height: 1.6; margin-bottom: 8px; }
.cyr-stage-lang { font-size: 11px; color: #7c3aed; font-weight: 600; }

/* ── SCHOOL TYPES ── */
.cyr-school-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.cyr-stype-card {
  background: #fff;
  border: 1.5px solid #e8eaf0;
  border-radius: 16px;
  padding: 24px;
  position: relative;
}
.cyr-stype-public { border-top: 4px solid #7c3aed; }
.cyr-stype-concerted { border-top: 4px solid #3b82f6; }
.cyr-stype-private { border-top: 4px solid #9ca3af; }
.cyr-stype-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.cyr-badge-green { background: #dcfce7; color: #166534; }
.cyr-badge-blue { background: #dbeafe; color: #1e40af; }
.cyr-stype-name { font-size: 17px; font-weight: 700; color: #10143C; margin-bottom: 4px; }
.cyr-stype-cost { font-size: 13px; font-weight: 600; color: #7c3aed; margin-bottom: 12px; }
.cyr-stype-desc { font-size: 13px; color: #4b5563; line-height: 1.6; margin-bottom: 14px; }
.cyr-stype-pros { display: flex; flex-direction: column; gap: 7px; }
.cyr-stype-pro, .cyr-stype-con {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  line-height: 1.5;
}
.cyr-stype-pro .ti { color: #7c3aed; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.cyr-stype-con .ti { color: #9ca3af; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.cyr-stype-pro span { color: #374151; }
.cyr-stype-con span { color: #6b7280; }

/* ── ENROLMENT TIMELINE ── */
.cyr-enrol-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
  position: relative;
}
.cyr-enrol-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: #ddd6fe;
}
.cyr-enrol-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 0 0 28px;
  position: relative;
}
.cyr-enrol-step:last-child { padding-bottom: 0; }
.cyr-enrol-dot {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: #7c3aed;
  border-radius: 50%;
  z-index: 1;
  margin-top: 2px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #7c3aed;
}
.cyr-enrol-content { flex: 1; }
.cyr-enrol-when {
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}
.cyr-enrol-action {
  font-size: 16px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 8px;
}
.cyr-enrol-content p { font-size: 14px; color: #4b5563; line-height: 1.65; margin: 0; }

/* ── DOC LIST ── */
.cyr-doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.cyr-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  padding: 10px 14px;
  background: #fdf4ff;
  border-radius: 8px;
  border: 1px solid #ddd6fe;
  line-height: 1.5;
}
.cyr-doc-item .ti { color: #7c3aed; font-size: 16px; margin-top: 1px; flex-shrink: 0; }

/* ── LANGUAGE REALITY ── */
.cyr-lang-reality {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.cyr-lr-card {
  background: #fff;
  border: 1.5px solid #e8eaf0;
  border-radius: 14px;
  padding: 22px;
}
.cyr-lr-age {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin-bottom: 4px;
}
.cyr-lr-title {
  font-size: 16px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 10px;
}
.cyr-lr-card p { font-size: 13px; color: #4b5563; line-height: 1.65; margin-bottom: 12px; }
.cyr-lr-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.cyr-lr-easy { background: #dcfce7; color: #166534; }
.cyr-lr-medium { background: #fef3c7; color: #92400e; }
.cyr-lr-hard { background: #fee2e2; color: #991b1b; }

/* ── PARENT ACTIONS ── */
.cyr-parent-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid #ddd6fe;
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0;
}
.cyr-parent-action {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  background: #fff;
  border-bottom: 1px solid #f0f0f8;
}
.cyr-parent-action:last-child { border-bottom: none; }
.cyr-pa-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: #fdf4ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cyr-pa-icon .ti { color: #7c3aed; font-size: 20px; }
.cyr-parent-action strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 5px;
}
.cyr-parent-action p { font-size: 13px; color: #4b5563; line-height: 1.65; margin: 0; }

/* ── PRACTICAL LIST ── */
.cyr-practical-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cyr-practical-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: #fff;
  border: 1.5px solid #e8eaf0;
  border-radius: 14px;
}
.cyr-practical-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cyr-practical-icon .ti { font-size: 22px; }
.cyr-pi-food { background: #fef3c7; }
.cyr-pi-food .ti { color: #d97706; }
.cyr-pi-religion { background: #ede9fe; }
.cyr-pi-religion .ti { color: #7c3aed; }
.cyr-pi-festivals { background: #fce7f3; }
.cyr-pi-festivals .ti { color: #db2777; }
.cyr-pi-uniform { background: #dbeafe; }
.cyr-pi-uniform .ti { color: #2563eb; }
.cyr-practical-title {
  font-size: 15px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 8px;
}
.cyr-practical-item p { font-size: 13px; color: #4b5563; line-height: 1.65; margin-bottom: 10px; }
.cyr-practical-tip {
  font-size: 12px;
  font-weight: 600;
  color: #7c3aed;
  background: #fdf4ff;
  border-radius: 7px;
  padding: 8px 12px;
}

/* ── CALLOUTS ── */
.cyr-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 20px 0;
}
.cyr-callout .ti { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.cyr-callout strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.cyr-callout p { font-size: 14px; line-height: 1.65; margin: 0; }
.cyr-callout-info { background: #fdf4ff; border: 1.5px solid #ddd6fe; }
.cyr-callout-info .ti, .cyr-callout-info strong { color: #7c3aed; }
.cyr-callout-info p { color: #4c1d95; }
.cyr-callout-warning { background: #fff8f0; border: 1.5px solid #fed7aa; }
.cyr-callout-warning .ti, .cyr-callout-warning strong { color: #ea580c; }
.cyr-callout-warning p { color: #7c2d12; }

/* ── COMMUNITY STRIP ── */
.cyr-p5-community {
  background: linear-gradient(135deg, #2e1065, #4c1d95);
  border-radius: 20px;
  padding: 4px;
  margin-bottom: 44px;
}
.cyr-p5-comm-inner {
  background: linear-gradient(135deg, #2e1065, #4c1d95);
  border-radius: 17px;
  padding: 40px 44px;
  border: 1px solid rgba(167,139,250,0.3);
}
.cyr-p5-comm-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 10px;
}
.cyr-p5-comm-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}
.cyr-quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.cyr-quote-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 18px;
}
.cyr-quote-text {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 10px;
}
.cyr-quote-attr { font-size: 11px; color: rgba(255,255,255,0.45); font-weight: 600; }
.cyr-p5-comm-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
  text-decoration: none;
  border-bottom: 2px solid rgba(251,191,36,0.4);
  transition: border-color 0.2s;
}
.cyr-p5-comm-cta:hover { border-color: #fbbf24; }

/* ── NEXT POST ── */
.cyr-next-post {
  background: #f8f9ff;
  border: 1.5px solid #e8eaf0;
  border-left: 5px solid #D4AF37;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 32px;
}
.cyr-next-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #D4AF37;
  margin-bottom: 8px;
}
.cyr-next-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 8px;
  line-height: 1.4;
}
.cyr-next-post p { font-size: 14px; color: #6b7280; margin-bottom: 14px; line-height: 1.6; }
.cyr-next-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #7c3aed;
  text-decoration: none;
  border-bottom: 2px solid #ddd6fe;
  transition: border-color 0.2s;
}
.cyr-next-cta:hover { border-color: #7c3aed; }

/* ── CTA BLOCK ── */
.cyr-cta-block {
  background: #fdf4ff;
  border: 2px solid #ddd6fe;
  border-radius: 20px;
  padding: 44px;
  text-align: center;
  margin-bottom: 44px;
}
.cyr-cta-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 10px;
}
.cyr-cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  line-height: 1.35;
}
.cyr-cta-body { font-size: 15px; color: #4b5563; max-width: 460px; margin: 0 auto 24px; line-height: 1.65; }
.cyr-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cyr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.cyr-btn-primary:hover { background: #1db954; transform: translateY(-1px); color: #fff; }
.cyr-btn-secondary {
  display: inline-flex;
  background: #fff;
  color: #1a1a2e;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid #e8eaf0;
  transition: border-color 0.2s, transform 0.15s;
}
.cyr-btn-secondary:hover { border-color: #1a1a2e; transform: translateY(-1px); color: #1a1a2e; }

/* ── SOCIAL FOOTER ── */
.cyr-social-footer {
  text-align: center;
  padding: 36px 0 0;
  border-top: 1.5px solid #f0f0f8;
}
.cyr-social-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 18px;
}
.cyr-social-icons { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.cyr-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s, opacity 0.15s;
}
.cyr-social-icon:hover { transform: translateY(-2px); opacity: 0.9; }
.cyr-social-wa { background: #25D366; }
.cyr-social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.cyr-social-yt { background: #FF0000; }
.cyr-social-fb { background: #1877F2; }
.cyr-social-tt { background: #000; }
.cyr-brand-tagline { font-size: 13px; color: #9ca3af; font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .cyr-p5-hero { grid-template-columns: 1fr; padding: 36px 24px 32px; }
  .cyr-p5-hero-ages { flex-direction: row; flex-wrap: wrap; min-width: unset; gap: 6px; }
  .cyr-age-pill { font-size: 11px; padding: 6px 10px; }
  .cyr-p5-title { font-size: 38px; }
  .cyr-p5-sec-num { font-size: 38px; min-width: 48px; }
  .cyr-p5-sec-title { font-size: 19px; }
  .cyr-school-stages { grid-template-columns: 1fr 1fr; }
  .cyr-lang-reality { grid-template-columns: 1fr; }
  .cyr-p5-comm-inner { padding: 28px 24px; }
  .cyr-quote-grid { grid-template-columns: 1fr; }
  .cyr-cta-block { padding: 28px 20px; }
  .cyr-p5-opener { flex-direction: column; gap: 10px; padding: 20px; }
}