/* custom.css
   Add your own styles here.
   This file loads AFTER Bootstrap, so rules here override Bootstrap defaults. */

:root {
  --dais-navy: #16356b;
  --dais-navy-dark: #03489f;
  --dais-peach: #fbf0e3;
  --dais-green: #e9f7ee;
  --dais-blue: #eaf2fb;
}

/* ---------- Typography ---------- */
.heading-serif {
  color: #03489f;
  font-family: "Playfair Display";
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  margin-bottom: 12px;
}

h5.heading-serif {
  font-size: 24px;
}

.text-navy {
  color: var(--dais-navy);
}

/* ---------- Well-being intro cards ---------- */
.wellbeing-card {
  background: #e6f0f8;
  border-radius: 20px;
  border-bottom: 1px solid #03489f;
  padding: 40px 24px;
  height: 100%;
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .wellbeing-card {
    padding: 80px 83px;
  }
}

.wellbeing-card h5 {
  font-family: "Playfair Display";
  font-size: 24px;
  font-weight: 500;
  color: #00243d;
}

.wellbeing-card p {
  font-family: "Open Sans";
  color: #00243d;
}

/* ---------- Quote / info box ---------- */
.quote-box {
  background: var(--dais-navy-dark);
  color: #fff;
  border-radius: 1rem;
  position: relative;
  overflow: visible;
}

.quote-box a {
  color: #fff;
  font-weight: 700;
}

.quote-box h4 {
  font-family: "Playfair Display";
  font-weight: 500;
}

.quote-logo {
  width: 265px;
}

.quote-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.quote-icon {
  position: absolute;
  top: 0;
  right: 32px;
  opacity: 0.05;
  pointer-events: none;
  display: none;
}

@media (min-width: 768px) {
  .quote-icon {
    display: block;
  }
}

/* ---------- Support architecture rows ---------- */
.architecture-intro {
  max-width: 100%;
}

@media (min-width: 768px) {
  .architecture-intro {
    max-width: 700px;
  }
}

/* ---------- Timeline markers (01 / 02 / 03) ---------- */
.timeline-row {
  align-items: stretch;
}

.timeline-marker {
  flex: 0 0 auto;
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-badge {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  font-family: "Playfair Display";
  font-size: 20px;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--dais-navy);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-badge.bg-peach {
  background-color: var(--dais-peach, #fbf0e3);
}

.timeline-badge.bg-green {
  background-color: var(--dais-green, #e9f7ee);
}

.timeline-badge.bg-blue {
  background-color: var(--dais-blue, #eaf2fb);
}

.timeline-line {
  flex: 1 1 auto;
  width: 2px;
  min-height: 1.5rem;
  margin-top: 0.5rem;
  background: var(--dais-blue);
}

/* Fallback connecting vertical line: drawn via ::after so CKEditor stripping empty divs doesn't lose the line */
.timeline-marker::after {
  content: "";
  flex: 1 1 auto;
  width: 2px;
  min-height: 1.5rem;
  margin-top: 0.5rem;
  background: var(--dais-blue);
  display: block;
}

/* Do not show line below the last timeline row (Row 03) */
.timeline-row:last-child .timeline-marker::after,
.timeline-row:last-of-type .timeline-marker::after {
  display: none;
}

.timeline-marker:has(.timeline-line)::after {
  display: none;
}

.support-card {
  border-radius: 20px;
}

.support-card h5 {
  font-family: "Playfair Display";
  font-size: 24px;
  font-weight: 500;
}

.support-card hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: var(--bs-border-width) solid;
  opacity: .25;
}

.support-card.bg-peach {
  background: var(--dais-peach);
}

.support-card.bg-green {
  background: var(--dais-green);
}

.support-card.bg-blue {
  background: var(--dais-blue);
}

.support-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: var(--dais-navy);
  font-weight: 700;
}

.support-badge img {
  object-fit: contain;
}

.support-bullet {
  margin-bottom: 25px;
}

/* ---------- Support architecture photos ---------- */
.support-photo {
  object-fit: cover;
  border-radius: 20px;
  min-height: 260px;
}

/* ---------- How we work steps ---------- */
.how-we-work-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 0;
  padding: 0 0 0.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.how-we-work-item {
  flex: 0 0 auto;
  width: 240px;
}

@media (min-width: 992px) {
  .how-we-work-row {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .how-we-work-item {
    flex: 1 1 0;
    width: auto;
  }
}

.step-badge {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 0.6rem;
  background: var(--dais-blue);
  color: var(--dais-navy);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Pastoral care cards ---------- */
.pastoral-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
}

.pastoral-card h6 {
  font-family: "Playfair Display";
  font-weight: 500;
  font-size: 1rem;
}

/* ---------- Pastoral care carousel (Owl Carousel) ---------- */
.pastoral-carousel .owl-stage {
  display: flex;
  padding-left: 0 !important;
}

.pastoral-carousel .owl-item {
  display: flex;
  height: auto;
}

.pastoral-carousel .pastoral-card {
  width: 100%;
}

@media (min-width: 1200px) {
  .h4, h4 {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
    .p-md-5 {
        padding: 3rem !important;
    }
}


.h4, h4 {
    font-size: calc(1.275rem + .3vw);
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}