* {
  margin: 0;
  padding: 0;
}
body,
html {
  margin: 0;
  height: 100%;
  justify-content: center;
  align-items: center;
  touch-action: none;
  overflow-x: hidden;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
}

.image-container {
  position: fixed;
  display: block;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-repeat: no-repeat;
}

.image-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-container::after {
  content: "";
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 255, 0.5);
  pointer-events: none;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 80px;
  background: linear-gradient(to right, #8d0000, #040677);
  box-shadow: 3px 3px 5px rgb(0, 0, 0, 0);
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(16px, 5vw, 80px);
  box-sizing: border-box;
}

nav .logo {
  flex: 0 0 auto;
}

nav .logo a {
  display: flex;
  align-items: center;
  height: auto;
  padding: 0;
}

ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav ul {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 32px;
  gap: 0;
}

nav li {
  height: 80px;
  flex: 0 0 auto;
}

nav a {
  height: 100%;
  padding: 0 clamp(12px, 1.8vw, 30px);
  text-decoration: none;
  display: flex;
  align-items: center;
  color: white;
  font-family: "Inter", sans-serif;
  font-weight: bold;
  font-size: clamp(12px, 1vw, 16px);
  white-space: nowrap;
}

nav :hover {
  color: black;
}

h1 {
  position: absolute;
  top: 40%;
  left: 40%;
  color: white;
  z-index: 3;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
}

.line1 {
  margin-left: 35px;
}
.line2 {
  margin-left: 45px;
}
.liine3 {
  margin-left: 60px;
}

h3 {
  position: fixed;
  z-index: 8;
  top: 460px;
  left: 668px;
  color: white;
  font-family: "Inter", sans-serif;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

a h3:hover {
  color: black;
}

.rectangle {
  width: 100px;
  height: 35px;
  border: 2px solid #8d0000;
  background: rgba(0, 0, 255, 0.3);
  z-index: 5;
  position: fixed;
  margin-top: 454px;
  left: 656px;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
}

.logo img {
  z-index: 12;
  width: 250px;
  max-width: 100%;
  position: static;
  margin: 0;
  height: auto;
  display: block;
}

footer {
  z-index: 11;
  position: absolute;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 38%;
  margin-left: 8%;
  box-shadow: #8d0000;
}

footer img {
  width: 30px;
  height: auto;
}

footer.footer {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 24px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  box-sizing: border-box;
  transform: translateX(-50%);
}

footer.footer1 {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin: 32px auto 24px;
  padding: 16px;
  box-sizing: border-box;
  transform: none;
}

footer .footer-text {
  transition: color 0.3, transform 0.3s;
}

footer.footer-text:hover {
  color: black;
  cursor: pointer;
  transform: scale(1.1);
}

.sidepic img {
  width: 460px;
  height: 460px;
  object-fit: cover;
  border-radius: 50%;
  position: fixed;
  top: 120px;
  left: -92px;
  margin: 0;
}

.circle {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 2px solid #8d0000;
  position: fixed;
  left: -114px;
  top: 98px;
}

.circle1 {
  width: 80px;
  height: 80px;
  border: 2px solid #040677;
  background: transparent;
  position: fixed;
  top: 150px;
  left: 700px;
}

.circle2 {
  width: 80px;
  height: 80px;
  border: 2px solid #8d0000;
  background: transparent;
  position: fixed;
  top: 410px;
  left: 701px;
}

.rectangle1 {
  width: 500px;
  height: 40px;
  border: 2px solid #040677;
  background: #040677;
  position: fixed;
  top: 160px;
  left: 800px;
  border-radius: 20px;
}

.rectangle2 {
  width: 500px;
  height: 40px;
  border: 2px solid #8d0000;
  background: #8d0000;
  position: fixed;
  top: 420px;
  left: 800px;
  border-radius: 20px;
}

.mission {
  position: fixed;
  color: white;
  font-family: "Inter", sans-serif;
  top: 170px;
  left: 74%;
  font-size: large;
}

.vision {
  position: fixed;
  color: white;
  font-family: "Inter", sans-serif;
  top: 430px;
  left: 74%;
  font-size: large;
}

.statement1 {
  position: fixed;
  color: black;
  font-size: medium;
  font-family: "Inter", sans-serif;
  font-weight: bolder;
  top: 235px;
  left: 805px;
}

.line4 {
  margin-left: 18px;
}

.line5 {
  margin-left: 75px;
}

.line6 {
  margin-left: 192px;
}

.line7 {
  margin-left: 132px;
}

.line8 {
  margin-left: 50px;
}

.line9 {
  margin-left: 3px;
}

.statementpic img {
  width: 60px;
  margin-top: 162px;
  margin-left: 711px;
  position: fixed;
}

.statement2 {
  position: fixed;
  color: black;
  font-size: medium;
  font-family: "Inter", sans-serif;
  font-weight: bolder;
  top: 490px;
  left: 780px;
}

.line10 {
  margin-left: 18px;
}

.line12 {
  margin-left: 242px;
}

.line13 {
  margin-left: 18px;
}

.line15 {
  margin-left: 125px;
}

.statementpic2 img {
  position: fixed;
  width: 60px;
  margin-top: 420px;
  margin-left: 714px;
}

.telephone {
  top: 30%;
  position: fixed;
  left: 400px;
}

.envelop {
  top: 55%;
  position: fixed;
  left: 401px;
}

.callUs {
  font-family: "Inter", sans-serif;
  font-size: larger;
  color: black;
  position: fixed;
  top: 40%;
  left: 392px;
}

.num {
  position: fixed;
  font-size: small;
  color: #8d0000;
  top: 44%;
  left: 388px;
}

.mailUs {
  font-family: "Inter", sans-serif;
  font-size: larger;
  color: black;
  position: fixed;
  top: 64%;
  left: 377px;
}

.mailer {
  position: fixed;
  font-size: small;
  color: #8d0000;
  top: 68%;
  left: 325px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 300px; /* adjust to fit your design */
  margin-left: 800px;
}

input,
textarea {
  width: 100%;
  padding: 12px 15px; /* this puts the text inside the box */
  font-size: 16px;
  border: 2px solid #8d0000; /* your existing red box */
  border-radius: 5px;
  outline: none;
  box-sizing: border-box;
  margin-top: 90px;
  font-family: "Inter", sans-serif;
}

input::placeholder,
textarea::placeholder {
  color: #888;
}

textarea {
  height: 120px; /* size for message box */
  resize: none;
}

button {
  align-self: flex-start;
  background: #0033cc;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  margin-left: 210px;
  font-family: "Inter", sans-serif;
}

button:hover {
  background: #001a80;
}

.name-box {
  margin-top: 200px;
  margin-bottom: -70px;
}

.email-box {
  margin-bottom: -70px;
}

.projectheader {
  color: black;
  font-family: "Inter", sans-serif;
  position: fixed;
  top: 20%;
  left: 41%;
}

.rectangle7 {
  position: absolute;
  color: #8d0000;
  border: 2px solid #8d0000;
  background: #8d0000;
  width: 100%;
  height: 300px;
  left: 3%;
  top: 100%;
  border-radius: 16px;
}

.rectangle8 {
  position: absolute;
  color: #040677;
  border: 2px solid #040677;
  background: #040677;
  width: 100%;
  height: 300px;
  right: 1%;
  top: 150%;
  border-radius: 16px;
}

.drive img {
  position: absolute;
  width: 460px;
  height: 48%;
  top: 100%;
  left: 50px;
}

.drive-text {
  position: absolute;
  top: 100%;
  left: 65%;
  font-size: 30px;
  color: white;
}

.line16 {
  margin-left: 4px;
}

.header {
  position: absolute;
  left: 32%;
  font-family: "Inter", sans-serif;
  top: 28%;
}

.statement3 {
  position: absolute;
  color: white;
  font-size: medium;
  font-family: "Inter", sans-serif;
  left: 34%;
  top: 38%;
}

.line17 {
  margin-left: 50px;
}

.line18 {
  margin-left: 80px;
}

.header2 {
  position: absolute;
  top: 80%;
  font-family: "Inter", sans-serif;
  color: black;
  left: 42%;
}

.statement4 {
  position: absolute;
  top: 118%;
  font-family: "Inter", sans-serif;
  color: white;
  left: 50%;
}

.line19 {
  margin-left: 180px;
}

.line20 {
  margin-left: 170px;
}

.line21 {
  margin-left: 180px;
}

.line22 {
  margin-left: 160px;
}

.line23 {
  margin-left: 160px;
}

.line24 {
  margin-left: 165px;
}

.line25 {
  margin-left: 180px;
}

.line26 {
  margin-left: 255px;
}

.counsil img {
  position: absolute;
  width: 460px;
  height: 48%;
  top: 150%;
  margin-left: 870px;
}

.header3 {
  position: absolute;
  top: 150%;
  font-family: "Inter", sans-serif;
  color: white;
  left: 20%;
}

.statement5 {
  position: absolute;
  top: 165%;
  font-family: "Inter", sans-serif;
  color: white;
  left: 24%;
}

.line27 {
  margin-left: 2px;
}

.line29 {
  margin-left: 88px;
}

.line30 {
  margin-left: 20px;
}

.line31 {
  margin-left: -28px;
}

.donation img {
  position: absolute;
  top: 218%;
  left: 48%;
}

.donate-state {
  position: absolute;
  font-family: "Inter", sans-serif;
  color: #8d0000;
  font-weight: bolder;
  top: 238%;
  left: 49%;
}

.donate-word {
  position: absolute;
  font-family: "Inter", sans-serif;
  color: black;
  top: 245%;
  left: 37%;
}

.line32 {
  margin-left: 66px;
}

.line33 {
  margin-left: 48px;
}
.rectangle9 {
  position: absolute;
  border: 2px #001a80;
  background: #040677;
  border-radius: 50px;
  width: 450px;
  height: 160px;
  top: 255%;
  left: 37%;
}

.donate-pay {
  position: absolute;
  font-family: "Inter", sans-serif;
  top: 258%;
  left: 48%;
}

.donate-pay2 {
  position: absolute;
  font-family: "Inter", sans-serif;
  top: 265%;
  left: 47%;
  color: white;
}

.line34 {
  margin-left: 15px;
}

.line35 {
  margin-left: 4px;
}

.footer2 {
  top: 200%;
}

@media (max-width: 414px) {
  .circle,
  .circle1,
  .circle2,
  .rectangle,
  .rectangle1,
  .rectangle2,
  .rectangle7,
  .rectangle8,
  .rectangle9,
  .sidepic,
  .statementpic,
  .statementpic2 {
    display: none;
  }
}

@media (max-width: 414px) {
  h1 {
    font-size: 22px;
    line-height: 1.3;
    padding: 0 16px;
  }
}

/* Responsive layout for phones, tablets, laptops, and large displays */
html {
  min-width: 0;
  scroll-behavior: smooth;
}

body,
html {
  touch-action: pan-y;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

@media (max-width: 1100px) {
  nav {
    min-height: 64px;
    height: 64px;
    padding: 0 12px;
  }

  nav .logo img {
    width: clamp(110px, 17vw, 160px);
  }

  nav ul {
    justify-content: flex-end;
    box-sizing: border-box;
    margin-left: clamp(8px, 2vw, 24px);
  }

  nav li {
    height: 64px;
  }

  nav a {
    height: 64px;
    padding: 0 clamp(6px, 1.3vw, 14px);
    justify-content: center;
    text-align: center;
    font-size: clamp(10px, 1.25vw, 13px);
  }

  .flex-container {
    width: 100%;
  }
}

@media (max-width: 980px) {
  body {
    min-height: 100vh;
  }

  body:has(.drive) .flex-container {
    display: block;
  }

  nav {
    height: 64px;
  }

  nav ul {
    height: 64px;
  }

  nav li {
    height: 64px;
  }

  nav a {
    min-height: 64px;
    padding: 0 10px;
    font-size: 12px;
  }

  .image-container {
    min-height: 100svh;
  }

  /* Home page */
  body:has(.image-container) h1 {
    position: absolute;
    top: 42%;
    left: 50%;
    width: calc(100% - 32px);
    transform: translate(-50%, -50%);
    margin: 0;
    text-align: center;
  }

  body:has(.image-container) h1 span {
    display: block;
    margin: 0;
  }

  body:has(.image-container) h1 br {
    display: none;
  }

  .flex-container > h3 {
    position: absolute;
    top: calc(42% + 150px);
    left: 50%;
    transform: translateX(-50%);
  }

  .flex-container > a {
    position: absolute;
    z-index: 8;
    top: calc(42% + 150px);
    left: 50%;
    width: 116px;
    height: 40px;
    transform: translateX(-50%);
  }

  .flex-container > a h3 {
    position: static;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .rectangle {
    position: absolute;
    z-index: 7;
    top: calc(42% + 150px);
    left: 50%;
    width: 112px;
    height: 36px;
    margin: 0;
    transform: translateX(-50%);
  }

  .footer {
    position: absolute;
    left: 50%;
    bottom: 24px;
    margin: 0;
    transform: translateX(-50%);
  }

  /* Mission page */
  body:has(.mission) {
    min-height: 1000px;
  }

  .sidepic,
  .statementpic,
  .statementpic2,
  .circle,
  .circle1,
  .circle2,
  .rectangle1,
  .rectangle2 {
    display: none;
  }

  .mission,
  .vision {
    position: relative;
    left: auto;
    top: auto;
    width: fit-content;
    margin: 110px auto 18px;
    color: #040677;
    font-size: 26px;
  }

  .mission {
    border-bottom: 4px solid #8d0000;
  }

  .vision {
    margin-top: 28px;
    border-bottom: 4px solid #040677;
  }

  .statement1,
  .statement2 {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 40px);
    min-height: auto;
    margin: 0 auto 20px;
    color: #111;
    line-height: 1.65;
    text-align: center;
  }

  .statement1 br,
  .statement2 br {
    display: none;
  }

  .statement1 span,
  .statement2 span {
    display: block;
    margin-left: 0 !important;
  }

  /* Projects page */
  .rectangle7,
  .rectangle8,
  .rectangle9 {
    display: none;
  }

  .header,
  .header2,
  .header3,
  .drive-text,
  .statement3,
  .statement4,
  .statement5,
  .donate-state,
  .donate-word,
  .donate-pay,
  .donate-pay2,
  .drive,
  .counsil,
  .donation {
    position: relative;
    left: auto;
    top: auto;
    margin-left: 0;
  }

  .header {
    width: calc(100% - 32px);
    margin: 36px auto 18px;
    color: #040677;
    text-align: center;
  }

  .project-hero {
    width: calc(100% - 40px);
    margin: 16px auto 24px;
  }

  .project-hero img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
  }

  .statement3 {
    width: calc(100% - 40px);
    margin: 0 auto;
    color: #222;
    line-height: 1.6;
    text-align: center;
  }

  .statement3 br {
    display: none;
  }

  .statement3 span {
    margin: 0 !important;
  }

  .header2 {
    width: calc(100% - 32px);
    margin: 52px auto 16px;
    color: #000;
    text-align: center;
  }

  .drive {
    width: calc(100% - 40px);
    margin: 82px auto 18px;
    text-align: center;
  }

  .drive img {
    position: static;
    width: min(460px, 100%);
    height: auto;
  }

  .drive-text {
    width: calc(100% - 32px);
    margin: 18px auto 24px;
    color: #8d0000;
    text-align: center;
  }

  .statement4,
  .statement5 {
    width: calc(100% - 40px);
    margin: 16px auto;
    color: #222;
    line-height: 1.65;
  }

  .statement4 {
    color: #000;
    text-align: center;
  }

  .statement5 {
    color: #000;
    text-align: center;
  }

  .statement4 br,
  .statement5 br {
    display: none;
  }

  .statement4 span,
  .statement5 span {
    display: block;
    margin-left: 0 !important;
  }

  .header3 {
    width: calc(100% - 32px);
    margin: 44px auto 12px;
    color: #040677;
    text-align: center;
  }

  .counsil,
  .donation {
    width: calc(100% - 40px);
    margin: 20px auto;
    text-align: center;
  }

  .counsil img {
    display: block;
    width: min(460px, 100%);
    height: auto;
    margin: 0 auto;
  }

  .counsil img,
  .donation img {
    position: static;
    height: auto;
  }

  .donation img {
    display: block;
    width: min(210px, 60vw);
    max-height: 210px;
    margin: 0 auto;
    object-fit: contain;
  }

  .donate-state {
    width: calc(100% - 32px);
    margin: 36px auto 12px;
    text-align: center;
  }

  .donate-word {
    width: calc(100% - 32px);
    margin: 8px auto 20px;
    font-size: 18px;
    text-align: center;
  }

  .donate-word br {
    display: none;
  }

  .donate-word span {
    display: block;
    margin-left: 0 !important;
  }

  .donate-pay,
  .donate-pay2 {
    width: calc(100% - 64px);
    margin: 0 auto;
    padding: 14px 32px;
    box-sizing: border-box;
    text-align: center;
  }

  .donate-pay {
    position: relative;
    border-radius: 16px 16px 0 0;
    background: #040677;
  }

  body:has(.drive) .donate-pay {
    position: relative;
    top: auto;
    left: 50%;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(-50%);
  }

  .donate-pay2 {
    border-radius: 0 0 16px 16px;
    color: white;
    background: #040677;
  }

  .footer2 {
    position: relative;
    top: auto;
    margin: 36px auto 24px;
  }

  /* Contact page */
  .telephone,
  .envelop,
  .rectangle3,
  .rectangle4,
  .rectangle5,
  .rectangle6 {
    display: none;
  }

  .callUs,
  .num,
  .mailUs,
  .mailer {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .callUs {
    margin-top: 112px;
  }

  .num {
    margin-top: 8px;
  }

  .mailUs {
    margin-top: 32px;
  }

  .mailer {
    margin-top: 8px;
    margin-bottom: 24px;
    overflow-wrap: anywhere;
  }

  form {
    width: calc(100% - 40px);
    max-width: 480px;
    margin: 0 auto 32px;
  }

  input,
  textarea {
    margin-top: 0;
    margin-bottom: 0;
  }

  .name-box,
  .email-box {
    margin-top: 0;
    margin-bottom: 0;
  }

  button {
    align-self: center;
    margin: 0;
  }

  .footer1 {
    position: relative;
    left: auto;
    margin: 24px auto;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0 6px;
  }

  nav .logo img {
    width: clamp(90px, 36vw, 150px);
  }

  nav ul {
    margin-left: 6px;
  }

  nav a {
    min-width: 0;
    padding: 0 clamp(2px, 0.8vw, 4px);
    font-size: clamp(8px, 2vw, 10px);
  }

  body:has(.image-container) h1 {
    font-size: 19px;
  }

  .line1,
  .line2,
  .line3 {
    margin-left: 0;
  }

  .mission,
  .vision,
  .header,
  .header2,
  .header3,
  .drive-text {
    font-size: 22px;
  }

  .statement1,
  .statement2,
  .statement3,
  .statement4,
  .statement5 {
    font-size: 14px;
  }

  .donate-pay,
  .donate-pay2 {
    width: calc(100% - 32px);
  }
}

@media (max-width: 360px) {
  nav .logo img {
    width: clamp(80px, 34vw, 115px);
  }
}

@media (max-width: 300px) {
  nav .logo img {
    width: clamp(72px, 28vw, 84px);
  }
}

@media (min-width: 769px) {
  body:has(.drive) .flex-container {
    display: block;
    width: 100%;
  }

  body:has(.drive) .rectangle7,
  body:has(.drive) .rectangle8,
  body:has(.drive) .rectangle9 {
    display: none;
  }

  body:has(.drive) .drive,
  body:has(.drive) .drive-text,
  body:has(.drive) .project-hero,
  body:has(.drive) .header,
  body:has(.drive) .statement3,
  body:has(.drive) .header2,
  body:has(.drive) .statement4,
  body:has(.drive) .counsil,
  body:has(.drive) .header3,
  body:has(.drive) .statement5,
  body:has(.drive) .donation,
  body:has(.drive) .donate-state,
  body:has(.drive) .donate-word,
  body:has(.drive) .donate-pay,
  body:has(.drive) .donate-pay2,
  body:has(.drive) .footer2 {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }

  body:has(.drive) .drive {
    width: min(460px, 90%);
    margin-top: 108px;
    margin-bottom: 12px;
    text-align: center;
  }

  body:has(.drive) .drive img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  body:has(.drive) .drive-text {
    width: calc(100% - 32px);
    margin-top: 12px;
    margin-bottom: 28px;
    color: #8d0000;
    text-align: center;
  }

  body:has(.drive) .drive-text span {
    margin-left: 0;
  }

  body:has(.drive) .project-hero {
    width: min(1000px, 90%);
    margin-bottom: 36px;
  }

  body:has(.drive) .project-hero img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 12px;
  }

  body:has(.drive) .header,
  body:has(.drive) .header2,
  body:has(.drive) .header3,
  body:has(.drive) .donate-state {
    width: calc(100% - 32px);
    text-align: center;
  }

  body:has(.drive) .header {
    margin-top: 44px;
    margin-bottom: 18px;
    color: #040677;
  }

  body:has(.drive) .statement3 {
    width: min(800px, 90%);
    margin-bottom: 56px;
    color: #000;
    line-height: 1.65;
    text-align: center;
  }

  body:has(.drive) .statement3 br,
  body:has(.drive) .statement4 br,
  body:has(.drive) .statement5 br {
    display: none;
  }

  body:has(.drive) .statement3 span {
    margin: 0;
  }

  body:has(.drive) .header2 {
    margin-bottom: 18px;
    color: #000;
  }

  body:has(.drive) .statement4,
  body:has(.drive) .statement5 {
    width: min(720px, 90%);
    margin-bottom: 22px;
    color: #000;
    line-height: 1.65;
    text-align: center;
  }

  body:has(.drive) .statement4 span,
  body:has(.drive) .statement5 span {
    display: block;
    margin-left: 0 !important;
  }

  body:has(.drive) .counsil {
    width: min(460px, 90%);
    margin-top: 24px;
    margin-bottom: 44px;
  }

  body:has(.drive) .counsil img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  body:has(.drive) .header3 {
    margin-bottom: 12px;
    color: #040677;
  }

  body:has(.drive) .donation {
    width: min(260px, 80%);
    margin-top: 40px;
    margin-bottom: 8px;
    text-align: center;
  }

  body:has(.drive) .donation img {
    position: static;
    display: block;
    width: min(210px, 60vw);
    max-height: 210px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  body:has(.drive) .donate-state {
    margin-top: 20px;
    margin-bottom: 12px;
    color: #8d0000;
  }

  body:has(.drive) .donate-word {
    width: calc(100% - 32px);
    margin-bottom: 20px;
    color: #000;
    text-align: center;
  }

  body:has(.drive) .donate-word span {
    display: block;
    margin-left: 0;
  }

  body:has(.drive) .donate-pay,
  body:has(.drive) .donate-pay2 {
    width: min(450px, calc(100% - 64px));
    margin: 0 auto;
    padding: 14px 32px;
    box-sizing: border-box;
    text-align: center;
    background: #040677;
  }

  body:has(.drive) .donate-pay {
    position: relative;
    border-radius: 16px 16px 0 0;
  }

  body:has(.drive) .donate-pay2 {
    color: #fff;
    border-radius: 0 0 16px 16px;
  }

  body:has(.drive) .footer2 {
    top: auto;
    margin-top: 36px;
    margin-bottom: 24px;
    justify-content: center;
  }
}

@media (min-width: 981px) {
  body:has(.mission) {
    position: relative;
    height: auto;
    min-height: 860px;
    overflow-y: auto;
    touch-action: pan-y;
  }

  body:has(.image-container) h1 {
    top: 50%;
    left: 50%;
    width: fit-content;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1.05;
  }

  body:has(.image-container) h1 span {
    display: block;
    margin-left: 0;
  }

  body:has(.image-container) h1 br {
    display: none;
  }

  body:has(.mission) .mission,
  body:has(.mission) .vision {
    position: absolute;
    left: 73%;
    width: min(500px, calc(46vw - 32px));
    transform: translateX(-50%);
    text-align: center;
  }

  body:has(.mission) .statement1,
  body:has(.mission) .statement2 {
    position: absolute;
    left: 73%;
    width: min(500px, calc(46vw - 32px));
    box-sizing: border-box;
    transform: translateX(-50%);
    text-align: center;
    line-height: 1.5;
  }

  body:has(.mission) .statement1 span,
  body:has(.mission) .statement2 span {
    margin-left: 0 !important;
  }

  body:has(.mission) .vision {
    top: 480px;
  }

  body:has(.mission) .statement2 {
    top: 540px;
  }

  body:has(.mission) .circle1,
  body:has(.mission) .circle2 {
    position: absolute;
    left: calc(73% - 350px);
  }

  body:has(.mission) .circle2 {
    top: 460px;
  }

  body:has(.mission) .rectangle1,
  body:has(.mission) .rectangle2 {
    position: absolute;
    left: calc(73% - 250px);
    width: min(500px, calc(46vw - 32px));
    box-sizing: border-box;
  }

  body:has(.mission) .rectangle2 {
    top: 470px;
  }

  body:has(.mission) .statementpic img,
  body:has(.mission) .statementpic2 img {
    position: absolute;
    left: calc(73% - 339px);
    margin: 0;
  }

  body:has(.mission) .statementpic img {
    top: 162px;
  }

  body:has(.mission) .statementpic2 img {
    top: 470px;
  }

  body:has(.image-container) .flex-container > a {
    position: fixed;
    z-index: 8;
    top: calc(50% + 70px);
    left: 50%;
    display: block;
    width: 120px;
    height: 44px;
    transform: translateX(-50%);
  }

  body:has(.image-container) .flex-container > a h3 {
    position: static;
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    align-items: center;
    justify-content: center;
  }

  body:has(.image-container) .rectangle {
    position: fixed;
    top: calc(50% + 70px);
    left: 50%;
    width: 120px;
    height: 44px;
    margin: 0;
    box-sizing: border-box;
    transform: translateX(-50%);
  }
}

@media (min-width: 981px) and (max-width: 1100px) {
  body:has(.mission) .vision {
    top: 530px;
  }

  body:has(.mission) .statement2 {
    top: 590px;
  }

  body:has(.mission) .circle2 {
    top: 510px;
  }

  body:has(.mission) .rectangle2 {
    top: 520px;
  }

  body:has(.mission) .statementpic2 img {
    top: 520px;
  }
}
