/* The REWRITE Method Workbooks — homepage section only.
   Scoped to .our-services-area.rewrite-workbooks so philosophy, the
   marquee, and About are unaffected. */
.our-services-area.rewrite-workbooks {
  --cream: #f7f7f5;
  --cream-soft: #f0f0ee;
  --gold-line: #989792;
  --gold-border: #c5c428;
  --page-top: #0c0905;
  --page-bot: #0e0905;
  --display: "Cormorant Garamond", "EB Garamond", "Times New Roman", serif;
  --serif: "EB Garamond", "Cormorant Garamond", "Times New Roman", serif;
  --btn: "Cinzel", "Cormorant Garamond", serif;
  font-family: var(--serif);
  color: var(--cream);
  padding: 120px 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background-color: #0c0905;
  background-image:
    linear-gradient(to bottom, #0c0905 0%, rgba(12, 9, 5, 0) 160px),
    linear-gradient(to top, #0e0905 0%, rgba(14, 9, 5, 0) 180px),
    url("/wp-content/themes/sacredsoulhealingjourney/assets/images/workbooks/workbooks-bg.jpg");
  background-size: 100% 100%, 100% 100%, cover;
  background-position: center top, center bottom, center top;
  background-repeat: no-repeat;
}
.our-services-area.rewrite-workbooks *,
.our-services-area.rewrite-workbooks *::before,
.our-services-area.rewrite-workbooks *::after {
  box-sizing: border-box;
}
.our-services-area.rewrite-workbooks .rewrite-workbooks-inner.container,
.our-services-area.rewrite-workbooks .rewrite-workbooks-inner {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
  container-type: inline-size;
  container-name: rw;
}
@media (min-width: 1200px) {
  .our-services-area.rewrite-workbooks .rewrite-workbooks-inner.container,
  .our-services-area.rewrite-workbooks .rewrite-workbooks-inner {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .our-services-area.rewrite-workbooks .rewrite-workbooks-inner.container,
  .our-services-area.rewrite-workbooks .rewrite-workbooks-inner {
    max-width: 1320px;
  }
}
.our-services-area.rewrite-workbooks::after {
  top: 0;
  height: 100%;
  opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.our-services-area.rewrite-workbooks .rw-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.901cqw;
  margin: 0 auto 1.833cqw;
  font-family: var(--display);
  font-size: clamp(16px, 2.534cqw, 42px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  text-align: center;
  line-height: 1.1;
}
.our-services-area.rewrite-workbooks .rw-kicker::before,
.our-services-area.rewrite-workbooks .rw-kicker::after {
  content: "";
  flex: 0 0 9.186cqw;
  width: 9.186cqw;
  height: max(2px, 0.317cqw);
  background: #b8b7b2;
  opacity: 1;
}

.our-services-area.rewrite-workbooks h1.rw-title,
.our-services-area.rewrite-workbooks .rw-title {
  margin: 0 0 2.546cqw;
  font-family: var(--display);
  font-weight: 700 !important;
  font-size: clamp(36px, 5.499cqw, 96px);
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: #f9f8f5 !important;
  -webkit-text-fill-color: #f9f8f5 !important;
  opacity: 1 !important;
  -webkit-text-stroke: 0.012em #f9f8f5;
  text-shadow:
    0 0 0.15em rgba(255, 255, 250, 0.55),
    0 0 0.35em rgba(200, 200, 190, 0.28),
    0 0.04em 0.15em rgba(0, 0, 0, 0.75);
}

.our-services-area.rewrite-workbooks p.rw-intro,
.our-services-area.rewrite-workbooks .rw-intro {
  margin: 0 0 2.138cqw;
  margin-left: 0;
  margin-right: 0;
  font-family: var(--serif);
  font-size: clamp(16px, 2.04cqw, 36px);
  font-weight: 400;
  line-height: 1.368;
  letter-spacing: 0;
  text-align: justify;
  text-align-last: left;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  width: auto;
}
.our-services-area.rewrite-workbooks .rw-intro:last-of-type { margin-bottom: 4.582cqw; }

.our-services-area.rewrite-workbooks .rw-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  align-items: stretch;
  max-width: none;
}

.our-services-area.rewrite-workbooks .rw-card {
  display: flex;
  flex-direction: column;
  height: auto;
  background: rgba(26, 16, 1, 0.88);
  border: 2px solid var(--gold-border);
  border-color: #c5c428 !important;
  border-radius: 12px;
  padding: 10px 9px 14px;
}

.our-services-area.rewrite-workbooks .rw-cover {
  flex: 0 0 auto;
  min-height: 0;
  aspect-ratio: 1 / 1.414;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 11px;
}
.our-services-area.rewrite-workbooks .rw-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.our-services-area.rewrite-workbooks .rw-btns {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 0 0 auto;
}

.our-services-area.rewrite-workbooks a.rw-btn,
.our-services-area.rewrite-workbooks .rw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1.5px solid #e6e6e6;
  border-color: #e6e6e6 !important;
  background: transparent;
  background-color: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  font-family: var(--btn);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none !important;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    filter 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    text-shadow 0.35s ease;
}
.our-services-area.rewrite-workbooks a.rw-btn:hover,
.our-services-area.rewrite-workbooks .rw-btn:hover,
.our-services-area.rewrite-workbooks a.rw-btn.is-hover,
.our-services-area.rewrite-workbooks .rw-btn.is-hover {
  border-color: #ffe09a !important;
  color: #ffe9b0 !important;
  -webkit-text-fill-color: #ffe9b0 !important;
  background: rgba(42, 26, 8, 0.72) !important;
  background-color: rgba(42, 26, 8, 0.72) !important;
  text-shadow:
    0 0 10px rgba(255, 220, 130, 0.95),
    0 0 22px rgba(238, 183, 100, 0.7);
  filter: brightness(1.14);
  box-shadow:
    0 0 0 1px rgba(255, 232, 170, 0.85),
    0 0 12px rgba(255, 220, 130, 0.95),
    0 0 28px rgba(238, 183, 100, 0.8),
    0 0 52px rgba(200, 150, 40, 0.45);
}

@media (min-width: 1200px) {
  .our-services-area.rewrite-workbooks .rw-btn { font-size: 10px; height: 34px; }
}
@media (max-width: 991.98px) {
  .our-services-area.rewrite-workbooks { padding: 60px 0; }
}
@media (max-width: 800px) {
  .our-services-area.rewrite-workbooks .rw-title { font-size: clamp(32px, 9.5vw, 42px); line-height: 1.05; margin-bottom: 22px; }
  .our-services-area.rewrite-workbooks .rw-intro { font-size: clamp(16px, 4.4vw, 18px); line-height: 1.45; text-align: left; text-align-last: left; margin-left: 0; margin-right: 0; }
  .our-services-area.rewrite-workbooks .rw-intro:last-of-type { margin-bottom: 28px; }
  .our-services-area.rewrite-workbooks .rw-kicker { font-size: clamp(16px, 5.5vw, 22px); gap: 10px; margin-bottom: 14px; }
  .our-services-area.rewrite-workbooks .rw-kicker::before,
  .our-services-area.rewrite-workbooks .rw-kicker::after { flex-basis: 56px; width: 56px; }
  .our-services-area.rewrite-workbooks .rw-cards { grid-template-columns: 1fr; max-width: 358px; margin: 0 auto; gap: 22px; }
  .our-services-area.rewrite-workbooks .rw-card { height: auto; }
  .our-services-area.rewrite-workbooks .rw-cover { aspect-ratio: 1 / 1.414; flex: 0 0 auto; }
  .our-services-area.rewrite-workbooks .rw-btn { font-size: 10px; height: 36px; letter-spacing: 0.14em; }
}

/* Additions for cover links + gold hover glow. Append to rewrite-workbooks.css.
   Selectors stay scoped to .our-services-area.rewrite-workbooks. */

.our-services-area.rewrite-workbooks a.rw-cover-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
}

.our-services-area.rewrite-workbooks a.rw-cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.our-services-area.rewrite-workbooks .rw-card {
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    filter 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease;
}

.our-services-area.rewrite-workbooks .rw-card:hover,
.our-services-area.rewrite-workbooks .rw-card.is-hover {
  border-color: #ffe09a !important;
  transform: translateY(-6px);
  filter: brightness(1.16);
  box-shadow:
    0 0 0 1px rgba(255, 232, 170, 0.9),
    0 0 16px rgba(255, 220, 130, 0.95),
    0 0 36px rgba(238, 183, 100, 0.85),
    0 0 72px rgba(238, 183, 100, 0.6),
    0 0 120px rgba(200, 150, 40, 0.4),
    0 14px 28px rgba(0, 0, 0, 0.45);
}
