@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap);
/* Box sizing rules */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role=list],
ol[role=list] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
}

a {
  color: inherit;
}

fieldset {
  border: 0;
  min-width: 0;
}

/* === Colours === */
/* === Fonts === */
html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  background: white;
  margin: 0;
}

body.ns {
  height: 100vh;
  overflow: hidden;
}

footer {
  text-align: center;
  padding: 0 0 50px;
}
footer .footer__mobile {
  margin-bottom: 30px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 769px) {
  footer .footer__mobile {
    display: none;
  }
}
footer .footer__mobile .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  text-decoration: none;
  margin-top: 15px;
  width: auto;
}
footer .socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
footer .socials a {
  text-decoration: none;
  color: #0676ba;
  font-size: 28px;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
}
@media (max-width: 1024px) {
  body {
    font-size: 16px;
    line-height: 22px;
  }
}

h1, h2, h3, h4, h5 {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  padding: 0;
}

/* Sizes */
h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 46px;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  h1 {
    font-size: 24px;
    line-height: 26px;
  }
}

h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 38px;
}
@media (max-width: 768px) {
  h2 {
    font-size: 18px;
    line-height: 28px;
  }
}

p {
  font-size: 18px;
  line-height: 28px;
  font-weight: 300;
}
@media (max-width: 768px) {
  p {
    font-size: 16px;
    line-height: 26px;
  }
}

small {
  font-size: 12px;
  width: 100%;
}
small a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  width: 100%;
  height: 160px;
  position: relative;
}
@media (min-width: 769px) {
  .hero {
    height: 350px;
  }
}
.hero img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
.hero .btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  position: absolute;
  bottom: 30px;
  right: 30px;
  text-decoration: none;
}
@media (max-width: 768px) {
  .hero .btn {
    display: none;
  }
}

.container {
  padding: 40px;
  width: 100%;
  text-align: center;
}
@media (min-width: 769px) {
  .container {
    max-width: 750px;
    margin: 0 auto;
  }
}
.container .donation-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 30px 0;
}
.container form {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}
.container form label {
  flex-shrink: 0;
}
.container form input {
  width: 120px;
  height: 45px;
  padding: 20px;
  border-radius: 5px;
  outline: none;
  border: 1px solid black;
}
@media (min-width: 769px) {
  .container form input {
    width: auto;
  }
}
.container form button {
  width: 100%;
  flex-shrink: 0;
  height: 45px;
  background: #0676ba;
  color: white;
  border-radius: 5px;
  font-weight: 600;
}
@media (min-width: 769px) {
  .container form button {
    max-width: 200px;
  }
}

.back {
  margin-top: 25px;
}
.back .btn {
  height: 45px;
  line-height: 45px;
  text-decoration: none;
  width: 100%;
  display: inline-block;
}
@media (min-width: 769px) {
  .back .btn {
    max-width: 200px;
    margin: 0 auto;
  }
}

.btn {
  height: 45px;
  background: #0676ba;
  color: white;
  border-radius: 5px;
  font-family: "DM Serif Text", serif;
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
  transition: 0.3s ease;
  cursor: pointer;
}
.btn:hover {
  background: #f7c951;
  color: black;
  text-decoration: none;
}

.charities {
  margin-top: 60px;
}
.charities__carousel {
  margin-top: 30px;
}
.charities__carousel--item img {
  height: 70px;
}
