/* =====================================================================
   Page styles for Mother's Heart Uganda.
   First: basics for the whole site (text, links, text sizes, the
   contact form fields, the SEND button and form messages).
   Then one block per page section; the class name matches the section's
   class in the HTML, e.g. <section class="home-hero">.

   Text size classes used in the HTML:
     text-huge     = 3.4rem  biggest headings (light)
     text-title    = 1.9rem  section titles (light)
     text-subtitle = 1rem    subtitles
     text-body     = 1rem    normal text
     text-small    = 0.8rem  menu and small text (light)
   On screens up to 768px wide the sizes scale down smoothly.
   ===================================================================== */


/* ---------- Basics: page, text, links ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: auto;
  min-height: 100vh;
}
body {
  position: relative;
  margin: 0;
  background-color: #ffffff;
  color: #232323;
  font-family: 'Muli', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  text-align: left;
}
section {
  position: relative;
  background-color: #eeeeee;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1;
  word-break: break-word;
  overflow-wrap: break-word;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
p {
  margin-top: 0;
  margin-bottom: 1rem;
}
ul,
ol {
  margin-top: 0;
  margin-bottom: 2.3125rem;
}
b,
strong {
  font-weight: bold;
}
a {
  color: #444444;
  background-color: transparent;
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}
a:hover {
  color: #444444;
  text-decoration: none;
}
img {
  vertical-align: middle;
  border-style: none;
}
[hidden] {
  display: none !important;
}
:focus {
  outline: none;
}
.text-red {
  color: #e21d1d !important;
}

/* ---------- Basics: buttons and form fields ---------- */
button,
input,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button {
  -webkit-appearance: button;
  border-radius: 0;
  text-transform: none;
}
button:not(:disabled) {
  cursor: pointer;
}
button:focus {
  outline: 5px auto -webkit-focus-ring-color;
}
[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
}
textarea {
  overflow: auto;
  resize: vertical;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition-delay: 9999s;
  transition-property: background-color, color;
}
.form-control {   /* the Name / Email / Message fields (look: see .contact-form) */
  display: block;
  width: 100%;
  min-height: 3.5em;
  background-clip: padding-box;
  font-family: 'Muli', sans-serif;
}
.form-control:focus {
  color: #495057;
}

/* the SEND button: black outline, fills dark grey on hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.4rem 0.8rem;
  padding: 10px 15px;
  border: 2px solid #000000;
  border-radius: 0;
  background: none;
  color: #000000;
  font-size: 1rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 2px;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
  user-select: none;
  transition: 0.3s ease-in-out;
}
.btn:hover,
.btn:focus {
  border-color: #333333;
  background-color: #333333;
  color: #ffffff;
}
.btn:focus {
  outline: 0;
  box-shadow: rgba(0, 123, 255, 0.25) 0 0 0 0.2rem;
}
.btn:disabled {   /* while the message is being sent */
  border-color: #333333;
  background-color: #333333;
  color: #ffffff;
  opacity: 0.65;
}
.btn-icon {       /* the envelope icon in the SEND button */
  margin-right: 0.5rem;
  font-size: 1.6rem;
  cursor: pointer;
}
@media (max-width: 767px) {
  .btn { font-size: 0.75rem !important; }
  .btn-icon { font-size: 1rem; }
}

/* "Thanks for your message" (green) / error (grey) box above the form */
.alert {
  position: relative;
  margin-bottom: 1.875rem;
  padding: 1.25rem;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
}
.alert-success { background-color: #70c770; }
.alert-danger  { background-color: #767676; }
.alert-form {
  text-align: center;
}
.alert-form::after {   /* small arrow pointing down at the form */
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  display: block;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background-color: inherit;
  transform: rotate(45deg);
}

/* ---------- Basics: text sizes ---------- */
.text-huge,
.text-title,
.text-subtitle,
.text-body,
.text-small {
  font-family: 'Muli', sans-serif;
}
.text-huge,
.text-title,
.text-small {
  font-weight: 300;
  line-height: 1;
  word-break: break-word;
  overflow-wrap: break-word;
}
.text-huge     { font-size: 3.4rem; }
.text-title    { font-size: 1.9rem; }
.text-subtitle { font-size: 1rem; }
.text-body     { font-size: 1rem; }
.text-small    { font-size: 0.8rem; }
/* phones and tablets: size goes smoothly from the 320px value to the 768px value */
@media (max-width: 768px) {
  .text-huge {
    font-size: calc(1.84rem + (3.4 - 1.84) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.4 * (1.84rem + (3.4 - 1.84) * ((100vw - 20rem) / (48 - 20))));
  }
  .text-title {
    font-size: calc(1.315rem + (1.9 - 1.315) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.4 * (1.315rem + (1.9 - 1.315) * ((100vw - 20rem) / (48 - 20))));
  }
  .text-subtitle {
    line-height: 1.4rem;
  }
  .text-small {
    font-size: calc(0.93rem + (0.8 - 0.93) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.4 * (0.93rem + (0.8 - 0.93) * ((100vw - 20rem) / (48 - 20))));
  }
}


/* ---------- .home-hero - Home: big photo + "EVERY LIFE COUNTS!" ----------
   Desktop (992px+): photo 2/3 wide on the left, text 1/3 on the right.
   Smaller screens: photo on top, text below. */
.home-hero {
  display: flex;
  flex-wrap: wrap;
  padding: 4rem 15px 0;
  background-color: #ffffff;
  overflow: hidden;
}
.home-hero > img {
  width: 100%;
  object-fit: cover;
}
.home-hero-text {
  width: 100%;
  padding: 40px 50px 50px;
}
@media (min-width: 992px) {
  .home-hero > img { width: 66.6667%; }
  .home-hero-text { width: 33.3333%; padding: 45px 30px 50px 50px; }
}
@media (min-width: 1440px) {
  .home-hero-text { padding: 60px 100px 0 60px; }
}
@media (max-width: 575px) {
  .home-hero-text { padding: 40px 30px; }
}
.home-hero h1 {
  margin: 0;
  padding-bottom: 157px;
  color: #e21d1d;
}
@media (max-width: 1439px) { .home-hero h1 { padding-bottom: 60px; } }
@media (max-width: 991px)  { .home-hero h1 { padding-bottom: 80px; } }
@media (max-width: 767px)  { .home-hero h1 { padding-bottom: 40px; text-align: center; } }
.home-hero-text > p {
  margin: 25px 0 0;
  color: #303030;
}
@media (min-width: 769px) {
  .home-hero h1 { line-height: 1.2; }
  .home-hero-text > p { line-height: 1.6; }
}
.home-hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  row-gap: 30px;
  padding-top: 30px;
}
.home-hero-facts > div {
  width: 49%;
}
@media (max-width: 767px) {
  .home-hero-facts > div { width: 100%; }
}
.home-hero-facts p {
  margin: 0;
}
.home-hero .fact-number {
  color: #ec111a;
}
.home-hero .fact-label {
  margin-top: 5px;
  color: #303030;
}

/* ---------- .home-tiles - Home: three columns of dark-blue link tiles, some with a photo ---------- */
.home-tiles {
  padding: 2rem 0;
  background-color: #ffffff;
  overflow: hidden;
}
.tile-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 30px;
}
@media (min-width: 768px) {
  .tile-columns { grid-template-columns: repeat(3, 1fr); }
}
.tile-column {
  display: flex;
  flex-direction: column;
  row-gap: 40px;
}
.tile {
  padding: 30px 40px 74px;
  background: #073b4c;
  border: 1px solid #073b4c;
}
@media (max-width: 1199px) {
  .tile { padding: 28px 35px 66px; }
}
.tile p {
  margin: 0;
  color: #ffffff;
}
.tile p:first-child {
  margin-bottom: 7px;
  text-align: left;
}
.tile p.text-body {
  line-height: 1;
}
.tile a {
  color: #ffffff;
}
.tile a:hover,
.tile a:focus {
  color: #b3b3b3;
}
.tile-photo {
  display: block;
  position: relative;
  overflow: hidden;
}
.tile-photo img {
  width: 100%;
  aspect-ratio: calc(407 / (121 * 2));
  object-fit: cover;
  transform: scale(1.01);
  transition: all 0.5s ease-out;
}
.photo-tile:hover .tile-photo img {
  transform: scale(1.05);
}

/* ---------- .video-block - photo with a play button that opens a YouTube video (Home, Gallery) ---------- */
.video-block {
  position: relative;
  overflow: hidden;
  background-image: url("../images/whatsapp-image-2025-04-20-at-09.13.47-2000x1500.jpg");
}
.video-block::before {     /* dark layer over the background photo */
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.4;
}
.video-block .wrap {
  position: relative;
}
.video-block.with-heading {   /* Gallery: white heading above the video photo */
  padding: 4rem 0;
}
.video-block.with-heading h2 {
  margin-bottom: 2rem;
  text-align: center;
  color: #ffffff;
}
.video-thumb {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  line-height: inherit;
}
@media (min-width: 992px) {
  .video-thumb { width: calc((100% + 30px) * 5 / 12 - 30px); }
}
.video-thumb img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
}
.video-play {    /* red circle with the play icon */
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 67px;
  min-height: 67px;
  padding: 10px;
  border-radius: 50%;
  background-color: #ec111a;
  transform: translate(-50%, -50%);
  transition: transform 0.5s cubic-bezier(0.24, 0.3, 0, 0.98);
}
.video-thumb:hover .video-play {
  transform: translate(-50%, -50%) scale(1.3);
}
.video-play span {
  font-size: 25px;
  color: #ffffff;
  transition: transform 0.5s cubic-bezier(0.24, 0.3, 0, 0.98);
}
.video-popup {
  display: none;            /* site.js shows it */
  position: fixed;
  z-index: 5000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  background-color: rgba(61, 61, 61, 0.65);
}
.video-popup.open {
  display: flex;
}
@media (max-width: 767px) {
  .video-popup { width: 100vw; height: 100vh; }
}
.video-popup-player {    /* 80% of the screen wide, but never taller than 80% of its height */
  width: min(80vw, 80vh * 16 / 9);
  margin: 0 auto;
}
.video-popup iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}
.video-popup-close {
  position: fixed;
  top: 2.5rem;
  right: 2.5rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: none;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.video-popup-close:hover {
  opacity: 1;
  background: #000;
}


/* ---------- .photo-slider - sliding row of photos/logos (Home, Partnerships, Volunteering, Women Empowerment) ----------
   Slides itself every 5 seconds (settings in the data-... attributes of .embla).
   3 pictures visible on desktop, 2 on tablets, 1 on phones.
   Variants: "partners" (logos, red arrows), "volunteers" and "women" (Women Empowerment)
   (photos with a thin grey border, green arrows). */
.photo-slider {
  padding: 0 0 1rem;
  background-color: #ffffff;
}
.photo-slider.volunteers  { padding-bottom: 5rem; }
.photo-slider.women { padding: 3rem 0; }
.photo-slider h2 {
  margin-bottom: 50px;
  color: #000000;
}
.photo-slider.volunteers h2 {
  color: #018b43;
  text-align: center;
}
@media (max-width: 767px) {
  .photo-slider h2 { text-align: center; }
}
@media (min-width: 769px) {
  .photo-slider h2 { line-height: 1.2; }
}
.photo-slider .embla {
  position: relative;
  width: 100%;
}
.photo-slider .embla__viewport {
  overflow: hidden;
  width: 100%;
  padding: 0 15px;
}
.photo-slider .embla__viewport.is-draggable { cursor: grab; }
.photo-slider .embla__viewport.is-dragging  { cursor: grabbing; }
.photo-slider .embla__container {
  display: flex;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.photo-slider .embla__slide {
  position: relative;
  text-align: center;
  min-width: calc(100vw / 3 - 60px);
  width: calc(100vw / 3 - 60px);
  margin: 0 30px;
}
.photo-slider.volunteers .embla__slide,
.photo-slider.women .embla__slide {
  border: 1px solid #eaeaea;
}
@media (max-width: 991px) {
  .photo-slider .embla__slide { min-width: 50%; width: 50%; }
}
@media (max-width: 768px) {
  .photo-slider .embla__slide { min-width: 100%; width: 100%; }
}
.photo-slider .embla__slide img {   /* picture at its own size, centred, never wider than the slide */
  max-width: 100%;
  aspect-ratio: calc(408 / (114 * 3));
  object-fit: cover;
}
/* round arrow buttons */
.photo-slider .embla__button {
  position: absolute;
  top: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin-top: -1.5rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: rgba(226, 29, 29, 0.5);
  color: #fff;
  font-size: 22px;
  transition: all 0.3s;
}
.photo-slider .embla__button:hover {
  background: #e21d1d;
  color: #FFFFFF;
}
.photo-slider.volunteers .embla__button,
.photo-slider.women .embla__button {
  background-color: rgba(1, 139, 67, 0.5);
}
.photo-slider.volunteers .embla__button:hover,
.photo-slider.women .embla__button:hover {
  background: #018b43;
}
.photo-slider .embla__button:disabled {
  cursor: default;
  display: none;
}
.photo-slider .embla__button--prev { left: 0;  margin-left: 2.5rem; }
.photo-slider .embla__button--next { right: 0; margin-right: 2.5rem; }
@media (max-width: 768px) {
  .photo-slider .embla__button { display: none; }
}

/* ---------- .contact-section - "Reach out to us!": contact details + contact form ----------
   Phones/tablets: details on top, form below.
   Desktop (992px+): form on the left, details on the right.
   Add class "no-top-space" to remove the space above (used on Volunteering). */
.contact-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: #ffffff;
}
.contact-section.no-top-space {
  padding-top: 0;
}
.contact-section h2 {
  margin-bottom: 30px;
  color: #ec111a;
}
@media (min-width: 769px) {
  .contact-section h2 {
    line-height: 1.2;
  }
}
@media (max-width: 767px) {
  .contact-section h2 {
    text-align: center;
  }
}
.contact-columns {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  margin: 0 -15px;
}
.contact-details,
.contact-form {
  position: relative;
  width: 100%;
  padding: 0 15px;
}
@media (min-width: 992px) {
  .contact-details,
  .contact-form {
    width: 50%;
  }
}

/* the two lists of details, side by side (stacked on small phones) */
.contact-details {
  display: flex;
  align-items: flex-start;
  column-gap: 50px;
}
@media (max-width: 991px) {
  .contact-details {
    margin-bottom: 50px;
  }
}
.contact-details ul {
  width: calc(50% - 25px);
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #303030;
}
.contact-details li {
  margin-bottom: 6px;
}
@media (max-width: 575px) {
  .contact-details {
    flex-wrap: wrap;
    row-gap: 27px;
  }
  .contact-details ul {
    width: 100%;
  }
}

/* the form: underlined fields, SEND button on the right */
.contact-form {
  display: flex;
  flex-direction: column;
}
.contact-form .form-control {
  height: 44px;
  margin-bottom: 18px;
  padding: 5px 0;
  border: none !important;
  border-bottom: 2px solid #303030 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
  outline: none !important;
  font-size: 19px;
  font-weight: 400;
  line-height: 28px;
  color: #303030;
  transition: .3s all;
}
.contact-form .form-control::placeholder {
  color: #303030;
}
.contact-form textarea.form-control {
  height: 140px !important;
  min-height: 140px !important;
  resize: none;
}
.contact-form .form-control:focus,
.contact-form .form-control:active {
  background-color: transparent !important;
  border-color: #303030 !important;
  outline: none !important;
}
.contact-form .btn {
  align-self: flex-end;
  margin-right: calc(.8rem - 4px);
}
/* success / error message above the fields */
.contact-form .form-message {
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 8px !important;
  padding-right: 8px !important;
}


/* ---------- .social-bar - round Facebook / Instagram / LinkedIn / email buttons ---------- */
.social-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 30px;
  background-color: #ffffff;
  text-align: center;
}
.social-bar a {
  position: relative;
  width: 55px;
  height: 55px;
  margin: .5rem;
  border: 3px solid #000000;
  border-radius: 50%;
  font-size: 32px;
  line-height: 55px;
  color: #000000;
  cursor: pointer;
  transition: all 0.3s;
}
.social-bar a:hover {
  background: #000000;
}
.social-bar a:hover span {
  color: #ffffff !important;
}
.social-bar .socicon:before {
  line-height: 55px;
}

/* "with-heading" variant (Golden Hill Academy): "Reach out to us!" above the buttons */
.social-bar.with-heading {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.social-bar h2 {
  width: 100%;
  margin-bottom: 3rem;
  text-align: center;
  color: #e21d1d;
}
@media (min-width: 769px) {
  .social-bar h2 { line-height: 1.2; }
}

/* ---------- .site-footer - copyright line at the bottom of every page ---------- */
.site-footer {
  padding: 30px 0;
  background-color: #ffffff;
}
.site-footer p {
  margin-bottom: 0;
  padding: 0 30px;
  text-align: center;
  line-height: 1.6;
  color: #303030;
}


/* ---------- .text-photo - white title + text next to a photo (About us, Women Empowerment, The Clinic) ----------
   Desktop (992px+): text left, photo right ("photo-left" swaps them).
   Smaller screens: text on top, photo below.
   Colour variants: "story" (darkened background photo), "green", "red". */
.text-photo {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
}
.text-photo.page-top { padding-top: calc(3rem + var(--menu-height)); }   /* first on the page: room for the menu */
.text-photo.green { background-color: #018b43; }
.text-photo.red   { background-color: #e21d1d; }
.text-photo.story {
  padding: 7rem 0;
  background-image: url("../images/whatsapp-image-2025-04-20-at-09.13.47-2000x1500.jpg");
}
.text-photo.story::before {     /* dark layer over the background photo */
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.5;
}
.text-photo-columns {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}
.text-photo.photo-left .text-photo-columns {
  flex-direction: row-reverse;
}
.text-photo-text,
.text-photo-image {
  width: 100%;
}
.text-photo-text {
  margin-bottom: 60px;
}
.text-photo-text h2 {
  margin: 0;
  color: #ffffff;
}
.text-photo-text p {
  margin: 16px 0 0;
  line-height: 1.6;
  text-align: left;
  color: #ffffff;
}
.text-photo-text a,
.text-photo-text a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.text-photo-image img {
  width: 100%;
  object-fit: cover;
}
@media (min-width: 769px) {
  .text-photo-text h2 { line-height: 1.2; }
}
@media (max-width: 767px) {
  .text-photo-text h2 { text-align: center; }
}
@media (min-width: 992px) {
  .text-photo-text,
  .text-photo-image { width: 50%; }
  .text-photo-text { margin-bottom: 0; padding-right: 7.5%; }   /* 15% of the text column */
  .text-photo-image { padding-left: 1%; }                        /* 2% of the photo column */
  .text-photo.photo-left .text-photo-text  { padding: 0 0 0 7.5%; }
  .text-photo.photo-left .text-photo-image { padding: 0 1% 0 0; }
}

/* ---------- .intro-band - page title / intro sentence in white on a coloured band ----------
   Green by default; "orange" or "red" for other colours.
   Used on: Women Empowerment, Sponsorship, The Clinic, Gallery. */
.intro-band {
  padding: 2rem 0;
  background-color: #018b43;
}
.intro-band.page-top { padding-top: calc(2rem + var(--menu-height)); }   /* first on the page: room for the menu */
.intro-band.orange { background-color: #ffa200; }
.intro-band.red    { background-color: #e21d1d; }
.intro-band h1,
.intro-band p {
  margin-bottom: 0;
  text-align: center;
  color: #ffffff;
}
.intro-band p + p {
  margin-top: 1rem;
}
@media (min-width: 769px) {
  .intro-band p { line-height: 1.6; }
}

/* ---------- .photo-grid - grid of photos (click a photo to open it full size) ----------
   Square tiles by default; "wide" = landscape tiles (4:3); "full" = whole picture,
   nothing cut off (for designed graphics with text). Optional caption: <figcaption>. */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin: 0 0 1.5rem;
}
.photo-grid figure {
  margin: 0;
}
.photo-grid a {
  display: block;
  overflow: hidden;
}
.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-grid a:hover img {
  transform: scale(1.04);
}
.photo-grid.wide img { aspect-ratio: 4 / 3; }
.photo-grid.full img { aspect-ratio: auto; height: auto; }
.photo-grid.full a:hover img { transform: none; }
.photo-grid figcaption {
  padding-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  color: #444444;
}
.photo-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000000;
}

/* ---------- .file-link - button-style link to a PDF (report, cost overview) ---------- */
.file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0 1.5rem;
  padding: 12px 20px;
  border: 2px solid #018b43;
  color: #018b43;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.file-link:hover {
  background-color: #018b43;
  color: #ffffff;
}
.file-link.light {         /* on a coloured band: white outline */
  border-color: #ffffff;
  color: #ffffff;
  text-decoration: none !important;
}
.file-link.light:hover {
  background-color: #ffffff;
  color: #018b43;
}
.file-link span {
  font-size: 1.4rem;
}

/* ---------- .partnerships-text - Partnerships: "BECOME OUR PARTNER" and "Why Partner with Us?" ---------- */
.partnerships-text {
  padding: 0 0 5rem;
  background-color: #ffffff;
}
.partnerships-text.first {
  padding-top: 7rem;
}
.partnerships-text h2 {
  margin-bottom: 20px;
  color: #050f0f;
}
.partnerships-text p {
  margin-bottom: 0;
  color: #000000;
}
.partnerships-text a {
  color: #e21d1d;
}
.partnerships-text a:hover,
.partnerships-text a:focus {
  color: #881111;
}
@media (min-width: 769px) {
  .partnerships-text h2 { line-height: 1.3; }
  .partnerships-text p  { line-height: 1.6; }
}
.partnerships-text p.text-body {
  line-height: 1.6;
}

/* ---------- .news-ticker - News: big text scrolling sideways (moved by site.js) ---------- */
.news-ticker {
  padding: 5rem 15px;
  overflow: hidden;
  background-color: #ffd9c8;
}
.news-ticker .ticker-line {
  min-height: 90px;
  color: #f24d4a;
}
.news-ticker::after {     /* thin red line under the text */
  content: "";
  display: block;
  height: 2px;
  margin-top: 80px;
  background-color: #f24d4a;
}
@media (max-width: 768px) {
  .news-ticker .ticker-line { min-height: 45px; }
  .news-ticker::after { margin-top: 40px; }
}

/* ---------- .news-latest-issue - News: card linking to the latest report (lifts on hover) ---------- */
.news-latest-issue {
  padding: calc(75px + 1rem) 0;
  background-color: #ffffff;
}
.latest-issue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 2px);
  margin: 0 auto;
  padding: 1rem;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 10px 55px 5px rgba(137, 173, 255, 0.35);
  text-decoration: none !important;
  transition: all 0.3s;
}
@media (min-width: 768px) {
  .latest-issue { width: calc((100% + 30px) / 2 - 32px); }
}
.latest-issue:hover {
  transform: translateY(-1rem);
}
.latest-issue-icon,
.latest-issue-download {     /* icon sits in a normal text line, like the original */
  display: block;
  line-height: 1.5;
}
.latest-issue-icon span {
  font-size: 2.5rem;
  color: rgb(255, 51, 102);
}
.latest-issue-text {
  padding: 0 1rem;
}
.latest-issue-text span {
  display: block;
  font-weight: 500;
  text-align: left;
}
.latest-issue-text .text-subtitle { color: #57468b; }
.latest-issue-text .text-small { color: #716c80; font-weight: 300; }
@media (min-width: 769px) {
  .latest-issue-text .text-subtitle { line-height: 1; }
  .latest-issue-text .text-small { line-height: 1.6; }
}
@media (max-width: 767px) {
  .latest-issue-text span { text-align: center; }
}
.latest-issue-download span {
  color: #82786e;
  transition: all 0.6s;
}
.latest-issue:hover .latest-issue-download span {
  color: #444444;
}

/* ---------- .news-newsletters - News: download links for previous newsletters ---------- */
.news-newsletters {
  padding: 5rem 0;
  background-color: #ffffff;
}
.news-newsletters .newsletter-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0;
}
@media (max-width: 992px) {
  .news-newsletters .newsletter-columns { padding: 0 7px; }
}
.news-newsletters h2,
.newsletter-list {
  width: 100%;
  padding: 0 15px;
}
@media (min-width: 992px) {
  .news-newsletters h2 { width: 33.3333%; }
  .newsletter-list { width: 66.6667%; }
}
.news-newsletters h2 {
  color: #000000;
}
@media (min-width: 769px) {
  .news-newsletters h2 { line-height: 1.2; }
}
@media (max-width: 992px) {
  .news-newsletters h2 { margin-bottom: 32px; }
}
@media (max-width: 767px) {
  .news-newsletters h2 { text-align: center; }
}
.newsletter-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 992px) {
  .newsletter-list { grid-template-columns: 1fr; gap: 32px; }
}
.newsletter {
  display: flex;
  align-items: center;
}
.newsletter-icon {
  display: block;
  margin-right: 22px;
}
.newsletter-icon span {     /* round download button */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid #000000;
  border-radius: 100%;
  font-size: 12px;
  color: #000000;
}
.newsletter p {
  margin-bottom: 0;
  text-align: left;
  color: #000000;
}
.newsletter p a {
  color: #444444;
}
.newsletter p a:hover,
.newsletter p a:focus {
  color: #111111;
}
@media (max-width: 992px) {
  .newsletter { display: block; }
  .newsletter-icon { margin: 0 0 16px; }
}

/* ---------- .news-photo-banner - News: row of photos on a green-tinted background picture ---------- */
.news-photo-banner {
  position: relative;
  padding-top: 1rem;
  background-image: url("../images/background1.jpg");
}
.news-photo-banner::before {    /* green layer over the background picture */
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgb(1, 139, 67);
  opacity: 0.8;
}
.news-photo-banner .photo-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding: 0 10px;
}
.photo-row > div {
  width: 100%;
  margin-bottom: 10px;
  padding: 0 5px;
}
@media (min-width: 992px) {
  .photo-row > div { width: 33.3333%; }
}
.photo-row img {
  height: 350px;
  object-fit: cover;
  transform: rotate(8deg);      /* every other photo slightly tilted */
}
.photo-row > div:nth-child(2n) img {
  transform: none;
}
@media (max-width: 992px) {
  .photo-row > div { margin-bottom: 16px; }
  .photo-row > div:last-child { margin-bottom: 0; }
  .photo-row img { transform: none; }
}

/* ---------- .volunteering-intro - Volunteering: title + welcome text ---------- */
.volunteering-intro {
  padding: 8rem 120px 24px;    /* 24px = space the old (empty) logo row took */
  background-color: #ffffff;
}
@media (max-width: 992px) {
  .volunteering-intro { padding-left: 15px; padding-right: 15px; }
}
.volunteering-intro h2 {
  margin-bottom: 50px;
  text-align: center;
  color: #018b43;
}
.volunteering-intro p {
  margin-bottom: 50px;
  line-height: 1.6;
  text-align: center;
  color: #000000;
}
@media (max-width: 992px) {
  .volunteering-intro h2,
  .volunteering-intro p { margin-bottom: 20px; }
}
@media (min-width: 769px) {
  .volunteering-intro h2 { line-height: 1.2; }
}

/* ---------- .volunteering-opportunities - Volunteering: four cards (dark grey on hover) ---------- */
.volunteering-opportunities {
  padding: 1rem 0 2rem;
  background-color: #ffffff;
}
.volunteering-opportunities h2 {
  margin-bottom: 3rem;
  text-align: center;
  color: #e21d1d;
}
@media (min-width: 769px) {
  .volunteering-opportunities h2 { line-height: 1.2; }
}
.opportunity-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 30px;
}
@media (min-width: 768px) { .opportunity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .opportunity-grid { grid-template-columns: repeat(4, 1fr); } }
.opportunity {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #444444;
  background: #ffffff;
  color: #221b35;
  transition: all ease-in-out 0.3s;
}
@media (max-width: 767px) {
  .opportunity { margin-bottom: 1rem; text-align: center; }
  .opportunity-top { margin-bottom: 1rem; }
}
.opportunity:hover {
  background-color: #444444;
}
.opportunity:hover h3,
.opportunity:hover p,
.opportunity:hover span {
  color: #ffffff !important;
  transition: all ease-in-out 0.3s;
}
.opportunity-top {
  display: flex;
  justify-content: space-between;
}
@media (max-width: 1600px) {
  .opportunity-top { flex-direction: column-reverse; }
}
.opportunity h3 {
  margin-bottom: .75rem;
}
.opportunity-icon span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-left: 2rem;
  font-size: 4rem;
  color: #ec111a;
}
@media (max-width: 1700px) {
  .opportunity-icon span { margin: 0 0 1rem; font-size: 3rem; }
}
.opportunity p {
  margin-bottom: 0;
  padding-top: 10rem;
}
@media (max-width: 992px) {
  .opportunity p { padding-top: 5rem; }
}

/* ---------- .school-hero - Golden Hill Academy: full-screen photo with the school name ---------- */
.school-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 0;
  background-image: url("../images/1737384005508-2000x1499.jpg");
}
.school-hero::before {      /* grey layer over the photo */
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgb(48, 48, 48);
  opacity: 0.5;
}
.school-hero .wrap {
  position: relative;
  text-align: center;
}
.school-hero h1,
.school-hero h2 {
  margin-bottom: 20px;
}
.school-hero h1 { color: #ffa200; }
.school-hero h2 { color: #ffffff; }
.school-hero p {
  margin-bottom: 0;
  line-height: 1.6;
  color: #fafafa;
}
@media (min-width: 769px) {
  .school-hero h1 { line-height: 1.2; }
  .school-hero h2 { line-height: 1.3; }
}

/* ---------- .card-section / .content-card - white text cards on a light grey background (Golden Hill Academy, News, Sponsorship, The Clinic, Women Empowerment, Gallery) ----------
   Title colour: "orange", "green" or "red".
   "with-photo": photo centred under the text. "photo-only": just a photo.
   "appeal": less space above the title, more below the text.
   Section: "space-top" / "space-bottom" add room above / below the card. */
.card-section {
  background-color: #edefeb;
}
.card-section.space-top    { padding-top: 3rem; }
.card-section.space-bottom { padding-bottom: 5rem; }
.content-card {
  display: flow-root;        /* keeps the title's top margin inside the white card */
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  background: #ffffff;
}
@media (min-width: 768px) {
  .content-card { padding: 2.25rem 2.25rem 1rem; }
}
@media (min-width: 992px) {
  .content-card { width: calc((100% + 30px) * 10 / 12 - 30px); padding: 4rem 4rem 2rem; }
}
.content-card h2 {
  margin: 1rem 0 1.5rem;
  text-align: left;
}
.content-card.orange h2 { color: #ffa200; }
.content-card.green h2  { color: #018b43; }
.content-card.red h2    { color: #ec111a; }
.content-card h3 {
  margin-bottom: 1rem;
  text-align: left;
  color: #000000;
}
@media (min-width: 769px) {
  .content-card h3 { line-height: 1.3; }
}
.content-card p {
  margin-bottom: 0;
  padding-bottom: 1rem;
  line-height: 1.6;
  text-align: left;
  color: #000000;
}
.content-card.with-photo {
  padding-bottom: 0;
}
.card-photo {              /* photo centred under the text */
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.card-photo img,
.content-card.photo-only img {   /* shrink photos to fit on phones */
  max-width: 100%;
  height: auto;
}
.card-photo img { max-height: 400px; }   /* News hospital photo: 400px tall on big screens */
.card-photo.large img { max-height: none; }   /* Golden Hill: photo at its own size */
.card-photo + p { padding-top: 1.5rem; }      /* text continuing below a photo */
@media (min-width: 992px) {
  .card-photo { margin-top: 2rem; }
}
.content-card.appeal { padding: 0 1.5rem 1.5rem; }
@media (min-width: 768px) {
  .content-card.appeal { padding: 0 2.25rem 2.25rem; }
}
@media (min-width: 992px) {
  .content-card.appeal { padding: 1rem 4rem 4rem; }
}
.content-card.photo-only {
  display: flex;
  justify-content: center;
  padding: calc(1.5rem + 1rem) 0 0;
}
@media (min-width: 768px) {
  .content-card.photo-only { padding: calc(2.25rem + 1rem) 0 0; }
}
@media (min-width: 992px) {
  .content-card.photo-only { padding: calc(5rem + 1rem) 0 0; }
}

/* ---------- .school-day-routine - Golden Hill Academy: photo + timetable ---------- */
.school-day-routine {
  padding-top: 2rem;
  background-color: #ffffff;
}
.school-day-routine .routine-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding: 0;
}
.routine-photo,
.routine-text {
  width: 100%;
  padding: 0 15px;
}
@media (min-width: 992px) {
  .routine-photo,
  .routine-text { width: 50%; }
}
.routine-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.routine-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 9.3% 11% 10% 11%;
  background-color: #f6f6f6;
}
@media (max-width: 991px) {
  .routine-box { height: auto; margin-top: 7%; }
}
@media (max-width: 767px) {
  .routine-box { padding: 35px 25px; }
}
@media (max-width: 575px) {
  .routine-box { padding: 35px 16px; }
}
.routine-box h2 {
  margin-bottom: 0;
  color: #303030;
}
@media (min-width: 769px) {
  .routine-box h2 { line-height: 1.2; }
}
@media (max-width: 767px) {
  .routine-box h2 { text-align: center; }
}
.routine-lists {
  display: flex;
  align-items: flex-start;
  column-gap: 25px;
  padding-top: 100px;
}
@media (max-width: 767px) {
  .routine-lists { flex-wrap: wrap; row-gap: 12px; }
}
@media (max-width: 575px) {
  .routine-lists { padding-top: 50px; }
}
.routine-lists ul {
  width: max-content;
  max-width: calc(50% - 25px / 2);
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #303030;
}
@media (max-width: 767px) {
  .routine-lists ul { width: 100%; max-width: 100%; }
}
.routine-lists li {
  position: relative;
  padding-left: 32px;
}
.routine-lists li::before {   /* small round bullet image */
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url("../images/mbr-1811x1920.png");
  background-size: 100% 100%;
}
.routine-lists li + li {
  margin-top: 12px;
}

/* ---------- .about-heading - About us: centred section headings ----------
   "vision" = orange band, "mission" = green band, plain = white. */
.about-heading {
  display: flow-root;        /* keeps the heading's bottom margin inside the coloured band */
  padding-top: 15px;
  background-color: #ffffff;
}
.about-heading h2 {
  text-align: center;
  color: #444444;
}
.about-heading.vision {
  padding-top: 90px;
  background-color: #ffa200;
}
.about-heading.mission {
  background-color: #02a650;
}
.about-heading.vision h2,
.about-heading.mission h2 {
  color: #ffffff;
}
@media (min-width: 769px) {
  .about-heading h2 { line-height: 1.2; }
}

/* ---------- .about-vision - About us: the vision quote (orange band) ---------- */
.about-vision {
  display: flow-root;        /* keeps the 40px space below the quote inside the orange band */
  padding-top: 2rem;
  background-color: #ffa200;
}
@media (max-width: 992px) {
  .about-vision .wrap { padding: 0 26px; }
}
.about-vision p {
  margin: 0 auto 40px;
  text-align: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.about-vision p:hover {
  color: #baab99;
}
@media (min-width: 992px) {
  .about-vision p { width: calc((100% + 30px) * 10 / 12 - 30px); }
}

/* ---------- .about-mission - About us: the mission quote (green band) ---------- */
.about-mission {
  background-color: #02a650;
}
.mission-quote {
  position: relative;
  width: 80%;
  margin: 0 auto;
}
.mission-quote p {
  min-height: 10rem;
  margin: 0;
  padding: 2rem 0;
  letter-spacing: 0.03em;
  text-align: center;
  color: #ffffff;
}
.mission-quote span {      /* big faint quote marks */
  position: absolute;
  z-index: 1;
  font-size: 9rem;
  color: #efefef;
  opacity: .1;
  user-select: none;
  pointer-events: none;
}
.mission-quote .mbri-quote-left  { left: -1rem;  top: -1rem; }
.mission-quote .mbri-quote-right { right: -1rem; bottom: -1rem; }
@media (max-width: 767px) {
  .mission-quote { width: 100%; }
  .mission-quote span { font-size: 6rem; }
}

/* ---------- .about-values - About us: six values, each with an icon ---------- */
.about-values {
  padding: 5rem 0;
  background-color: #ffffff;
}
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px 30px;
}
@media (min-width: 992px) {
  .value-grid { grid-template-columns: repeat(3, 1fr); }
}
.value {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}
.value span {
  font-size: 82px;
  color: #018b43;
}
.value p {
  margin: 10px 0 0;
  padding-left: 28px;
  color: #303030;
}

/* ---------- .about-objectives - About us: four numbered key objectives ---------- */
.about-objectives {
  padding: 1rem 0 2rem;
  background-color: #ffffff;
}
.objective-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px 30px;
}
@media (min-width: 992px) {
  .objective-grid { grid-template-columns: repeat(4, 1fr); }
}
.objective {
  display: flex;
  align-items: flex-start;
}
.objective p {
  margin: 0;
  color: #303030;
}
.objective p:last-child {
  margin-top: 15px;
  padding-top: 4px;
}
.objective .objective-number {
  max-width: 50%;
  margin-right: 36px;
  color: #018b43;
  word-break: normal;
}

/* ---------- .about-founder - About us: round photo + "Meet Jeremiah, the founder" ---------- */
.about-founder {
  padding: 105px 0;
  background-color: #ffffff;
}
.about-founder .founder-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;                /* the columns below carry the 15px side space */
}
.founder-photo,
.founder-text {
  width: 100%;
  padding: 0 15px;
}
.founder-photo {
  display: flex;
}
.founder-photo img {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.founder-text {
  margin: auto;
}
.founder-text h2 {
  padding-bottom: .5rem;
}
.founder-text p {
  padding-bottom: 1.5rem;
  line-height: 1.6;
}
@media (min-width: 769px) {
  .founder-text h2 { line-height: 1.2; }
}
@media (min-width: 992px) {
  .founder-photo,
  .founder-text { width: 50%; }
}
@media (max-width: 767px) {
  .founder-photo img { width: 200px; height: 200px; }
  .founder-text h2,
  .founder-text p { text-align: center; }
}

/* ---------- .about-pillars - About us: four green "core pillar" cards with big red numbers ----------
   2 columns on desktop (every 2nd card a bit lower), 1 column below 993px. */
.about-pillars {
  padding: 10rem 0 5rem;
  background-color: #ffffff;
}
.about-pillars .pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 150px 60px;
  padding: 0 145px;          /* 15px page margin + 130px */
}
@media (max-width: 1440px) {
  .about-pillars .pillar-grid { padding: 0 75px; }
}
@media (max-width: 1200px) {
  .about-pillars .pillar-grid { padding: 0 15px; }
}
@media (max-width: 992px) {
  .about-pillars .pillar-grid { grid-template-columns: 1fr; gap: 100px 40px; }
}
.pillar {
  position: relative;
  align-self: start;         /* each card only as tall as its own text */
  padding: 50px;
  background-color: #018b43;
  color: #ffffff;
}
.pillar:nth-child(2n) {
  margin-top: 70px;
}
@media (max-width: 992px) {
  .pillar { padding: 40px 20px; }
  .pillar:nth-child(2n) { margin-top: 0; }
}
.pillar-number {
  position: absolute;
  top: -5rem;
  left: 0;
  width: 100%;
  color: #ec111a;
}
@media (max-width: 992px) {
  .pillar-number { top: -4.5rem; }
}
.pillar-icon {
  margin-bottom: 30px;
}
.pillar-icon span {
  display: inline-flex;
  font-size: 45px;
  color: #fafafa;
}
.pillar h3 {
  margin-bottom: 40px;
}
.pillar p:last-child {
  margin-bottom: 0;
}



/* ---------- .coming-soon - placeholder heading on pages that are not finished yet ---------- */
.coming-soon {
  margin-top: 25vw;
  margin-bottom: 25vw;
  font-size: 50px;
  text-align: center;
}
