/*
 * Article details page (CAM design).
 * Navy #29205f, coral #f0444b, Bookmania headings, Poppins body.
 */

.ca-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.ca-container a { text-decoration: none; }

/* ------------------------------------------------------------------ hero */
.ca-hero {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  background: #29205f;
  color: #fff;
  padding: 96px 0 88px;
  text-align: center;
  font-family: var(--rh-font-body, "Poppins", Arial, sans-serif);
}

.ca-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 210px;
  height: 210px;
  background: #f0444b;
  clip-path: polygon(100% 0, 50% 0, 100% 100%);
  pointer-events: none;
}

.ca-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 210px;
  height: 210px;
  background: #e9e9ee;
  clip-path: polygon(0 0, 50% 0, 67% 33%);
  pointer-events: none;
}

.ca-hero-title {
  margin: 0 auto;
  max-width: 900px;
  font-family: var(--rh-font-heading, "Bookmania", Georgia, serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  color: #fff;
  font-weight: 700;
}

/* --------------------------------------------------------- article header */
.ca-header {
  background: #fff;
  font-family: var(--rh-font-body, "Poppins", Arial, sans-serif);
}

.ca-toprow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 40px;
}

.ca-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f0444b;
}

.ca-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ca-tag {
  padding: 8px 18px;
  border-radius: 22px;
  background: #f1f1f4;
  color: #29205f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.ca-tag:hover {
  background: #f0444b;
  color: #fff;
}

.ca-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 22px 0 10px;
}

.ca-excerpt {
  margin: 0;
  max-width: 780px;
  font-family: var(--rh-font-heading, "Bookmania", Georgia, serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.65;
  color: #4b4a55;
}

.ca-contact-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 30px;
  background: #f0444b;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s ease;
}

.ca-contact-btn:hover { background: #d9323b; color: #fff; }

.ca-rule {
  border: 0;
  border-top: 1px solid #e3e3e8;
  margin: 26px 0;
}

.ca-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ca-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ca-avatar {
  border-radius: 50%;
  display: block;
}

.ca-author-name {
  font-family: var(--rh-font-heading, "Bookmania", Georgia, serif);
  font-style: italic;
  font-size: 15px;
  color: #29205f;
}

.ca-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ca-share-label {
  margin-right: 6px;
  font-family: var(--rh-font-heading, "Bookmania", Georgia, serif);
  font-style: italic;
  font-size: 14px;
  color: #29205f;
}

.ca-share-link {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(41, 32, 95, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ca-share-link svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ca-share-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(41, 32, 95, .28);
}

/* ------------------------------------------------------------------ body */
.ca-body-wrap {
  background: #fff;
  padding: 34px 0 70px;
  font-family: var(--rh-font-body, "Poppins", Arial, sans-serif);
}

.ca-body {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #3c3b47;
  font-size: 15.5px;
  line-height: 1.85;
}

.ca-body p { margin: 0 0 20px; }

/* Drop cap on the first paragraph, like the design. */
.ca-body > p:first-of-type::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-family: var(--rh-font-heading, "Bookmania", Georgia, serif);
  font-size: 64px;
  line-height: .8;
  color: #29205f;
  font-weight: 700;
}

.ca-body h2 {
  margin: 40px 0 16px;
  font-family: var(--rh-font-heading, "Bookmania", Georgia, serif);
  font-size: 26px;
  color: #f0444b;
  font-weight: 700;
}

.ca-body h3 {
  margin: 32px 0 14px;
  font-family: var(--rh-font-heading, "Bookmania", Georgia, serif);
  font-size: 20px;
  color: #29205f;
  font-weight: 700;
}

.ca-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.ca-body figure {
  margin: 30px 0;
}

.ca-body figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #8b8a94;
}

.ca-body blockquote {
  margin: 28px 0;
  padding: 6px 26px;
  border-left: 4px solid #f0444b;
  font-family: var(--rh-font-heading, "Bookmania", Georgia, serif);
  font-style: italic;
  font-size: 19px;
  color: #29205f;
}

.ca-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 14px;
}

.ca-body th,
.ca-body td {
  border: 1px solid #e3e3e8;
  padding: 12px 16px;
  text-align: left;
}

.ca-body th {
  background: #f1f1f4;
  color: #29205f;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .5px;
}

.ca-body a { color: #f0444b; text-decoration: underline; }

/* ------------------------------------------------------- contact + CTA */
.ca-endblock {
  width: 100%;
  max-width: none;
  margin: 30px 0 0;
  font-family: var(--rh-font-body, "Poppins", Arial, sans-serif);
}

.ca-end-title {
  font-family: var(--rh-font-heading, "Bookmania", Georgia, serif);
  font-size: 26px;
  color: #29205f;
  font-weight: 700;
  margin: 0 0 14px;
}

.ca-contact-title {
  font-family: var(--rh-font-heading, "Bookmania", Georgia, serif);
  font-size: 19px;
  color: #29205f;
  font-weight: 700;
  margin: 26px 0 12px;
}

.ca-contact-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #3c3b47;
}

.ca-contact-list strong { color: #29205f; }

.ca-cta {
  border-radius: 18px;
  background: linear-gradient(135deg, #29205f 0%, #3a2a68 100%);
  color: #fff;
  padding: 38px 40px;
  text-align: center;
}

.ca-cta h3 {
  margin: 0 0 10px;
  font-family: var(--rh-font-heading, "Bookmania", Georgia, serif);
  font-size: 26px;
  color: #fff;
  font-weight: 700;
}

.ca-cta p {
  margin: 0 auto 22px;
  max-width: 560px;
  font-size: 18px;
  color: rgb(255, 255, 255);
  font-weight: 500;
}

.ca-cta-btn {
  display: inline-flex;
  padding: 13px 30px;
  border-radius: 30px;
  background: #f0444b;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s ease;
}

.ca-cta-btn:hover { background: #d9323b; color: #fff; }

/* ----------------------------------------------------------------- mobile */
@media (max-width: 760px) {
  .ca-container { width: calc(100% - 40px); }
  .ca-hero { padding: 64px 0 56px; }
  .ca-hero::before, .ca-hero::after { width: 130px; height: 130px; }
  .ca-intro { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ca-meta-row { flex-direction: column; align-items: flex-start; }
  .ca-cta { padding: 30px 22px; }
}
