html {
  overflow-y: scroll;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-y: auto;
  font-family: "Oswald", "Segoe UI", sans-serif;
}

header {
  margin: 0;
  padding-top: 90px;
}

.meet-team-page main {
  min-height: 420px;
  padding: 40px 10% 96px;
  box-sizing: border-box;
  background: #484152;
  color: #fff;
  text-align: center;
}

.meet-team-page main h1,
.meet-team-page main p {
  color: #fff;
}

.about-us-page main {
  min-height: 420px;
  padding: 40px 10% 0;
  box-sizing: border-box;
  text-align: center;
}

.about-us-page main h1 {
  margin: 0 0 32px;
  color: #4b2d7f;
  font-size: 3rem;
}

.get-involved-content h1 {
  color: #4b2d7f;
  text-align: center;
}

.contact-content {
  min-height: 420px;
  padding: 40px 10% 96px;
  box-sizing: border-box;
  text-align: center;
}

.contact-content h1 {
  margin: 0;
  color: #4b2d7f;
  font-size: 3rem;
}

.contact-links-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto 0;
  text-align: left;
}

.contact-email {
  color: #000;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-social-follow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #484152;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-socials {
  margin-top: 0;
}

.subject-signup-form.contact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 1000px);
  margin: 72px auto 0;
  padding: 40px;
  text-align: left;
}

.contact-form h2 {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  color: #484152;
  font-size: 2rem;
}

.contact-name-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form-field {
  display: grid;
  gap: 8px;
}

.contact-form-field label {
  color: #484152;
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-form-wide {
  grid-column: 1 / -1;
}

.contact-form textarea {
  min-height: 220px;
}

.contact-form .subject-signup-submit,
.contact-form .subject-signup-status {
  grid-column: 1 / -1;
}

.donate-page-content {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  align-items: center;
  gap: 160px;
  max-width: 1280px;
  min-height: 500px;
  margin: 0 auto;
  padding: 56px 6% 80px;
  box-sizing: border-box;
}

.donate-mission-card {
  width: min(100%, 460px);
  overflow: hidden;
  border-radius: 24px;
  background: #f3f0fb;
  box-shadow: 0 8px 24px rgba(72, 65, 82, 0.16);
}

.givebutter-donation-widget {
  display: block;
  width: 100%;
  margin: 0;
}

.donate-mission-card > img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.donate-mission-copy {
  padding: 28px;
}

.donate-mission-copy h1 {
  margin: 0 0 14px;
  color: #4b2d7f;
  font-size: 2rem;
  text-align: center;
}

.donate-mission-copy p {
  margin: 0;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
}

.donate-givebutter-button {
  display: inline-flex;
  margin-top: 24px;
  text-decoration: none;
}

.get-involved-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 6% 80px;
}

.get-involved-content > h1 {
  grid-column: 1 / -1;
  margin: 0 0 40px;
  color: #4b2d7f;
  font-size: 3rem;
  text-align: center;
}

.involvement-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 20px;
  border: 1px solid #d7cceb;
  border-radius: 20px;
  background: #faf9fd;
  text-align: center;
}

.involvement-section h2 {
  margin: 0;
  color: #484152;
  font-size: 1.7rem;
}

.involvement-photo {
  display: block;
  width: 100%;
  height: 220px;
  border: 3px solid #4b2d7f;
  border-radius: 22px;
  object-fit: cover;
  box-sizing: border-box;
}

.involvement-text-box {
  width: 100%;
  padding: 20px;
  border-radius: 14px;
  background: #f3f0fb;
  box-sizing: border-box;
}

.involvement-text-box p {
  margin: 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.involvement-button {
  display: inline-flex;
  margin: 0;
  text-decoration: none;
}

.about-us-page main p {
  max-width: 900px;
  margin: 0 auto;
  color: #484152;
  font-size: 1.3rem;
  line-height: 1.6;
}

.about-us-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-us-images {
  display: flex;
  flex: 0 0 min(40%, 420px);
  flex-direction: column;
  gap: 24px;
}

.about-us-image {
  width: 100%;
  height: 320px;
  border: 8px solid #484152;
  border-radius: 24px;
  box-sizing: border-box;
  object-fit: cover;
}

.about-us-screenshot {
  object-position: center bottom;
}

.about-us-content p {
  flex: 1;
  margin: 0;
  text-align: left;
}

.about-mission-section {
  width: calc(100% + 20vw);
  margin: 48px -10vw 0;
  min-height: 480px;
  padding: 64px 10vw;
  box-sizing: border-box;
  background: #484152;
  color: #fff;
  text-align: center;
}

.about-mission-section h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 2.6rem;
  transform: translateY(20px);
}

.about-mission-copy {
  width: min(100%, 900px);
  margin: 72px auto 0;
  padding: 40px 48px;
  border: 1px solid #fff;
  box-sizing: border-box;
}

.about-us-page main .about-mission-section p {
  max-width: none;
  margin: 0 auto;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
}

.lessons-title-banner {
  padding: 36px 10%;
  background: #484152;
  text-align: center;
}

.lessons-title-banner h1 {
  margin: 0;
  color: #fff;
  font-size: 3rem;
}

.lesson-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 6% 64px;
}

.lesson-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 2px solid #a188ff;
}

.lesson-row:last-child {
  border-bottom: 0;
}

.lesson-text-box {
  min-height: 220px;
  padding: 32px;
  border-radius: 20px;
  background: #f3f0fb;
  box-sizing: border-box;
}

.lesson-text-box h2 {
  margin: 0 0 16px;
  color: #484152;
  font-size: 2rem;
}

.lesson-text-box p {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
}

.lesson-signup-btn {
  display: inline-flex;
  margin: 20px 0 0;
  text-decoration: none;
}

.lesson-photo {
  display: block;
  width: 100%;
  height: 300px;
  border: 3px solid #4b2d7f;
  border-radius: 22px;
  box-sizing: border-box;
  object-fit: cover;
}

.subject-signup-content {
  max-width: 1200px;
  min-height: 500px;
  margin: 0 auto;
  padding: 48px 6% 72px;
  text-align: center;
}

.subject-signup-content h1 {
  margin: 0 0 32px;
  color: #484152;
  font-size: 2.8rem;
}

.tutor-signup-intro {
  max-width: 760px;
  margin: 0 auto 32px;
  color: #484152;
  font-size: 1.2rem;
  line-height: 1.6;
}

.subject-signup-photo {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  border: 3px solid #4b2d7f;
  border-radius: 22px;
  box-sizing: border-box;
}

.subject-signup-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 36px;
  border-radius: 22px;
  background: #f3f0fb;
  text-align: left;
  box-sizing: border-box;
}

.subject-signup-form label {
  margin-top: 8px;
  color: #484152;
  font-size: 1.05rem;
  font-weight: 600;
}

.subject-signup-form input,
.subject-signup-form select,
.subject-signup-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #aaa2bb;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font: inherit;
  box-sizing: border-box;
}

.subject-signup-form textarea {
  resize: vertical;
}

.subject-signup-form input:focus,
.subject-signup-form select:focus,
.subject-signup-form textarea:focus {
  border-color: #4b2d7f;
  outline: 2px solid rgba(75, 45, 127, 0.2);
}

.subject-signup-submit {
  justify-self: start;
  margin-top: 12px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: #4b2d7f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.subject-signup-submit:hover,
.subject-signup-submit:focus-visible {
  background: #8d75eb;
}

.subject-signup-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.subject-signup-status {
  margin: 0;
  color: #2c1a4d;
  font-weight: 600;
}
  .resources-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 6% 80px;
    text-align: center;
  }

  .resources-page > h1 {
    margin: 0 0 16px;
    color: #4b2d7f;
    font-size: 3rem;
  }

  .resources-intro {
    max-width: 780px;
    margin: 0 auto 44px;
    color: #484152;
    font-size: 1.25rem;
    line-height: 1.6;
  }

  .resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    text-align: left;
  }

  .resource-card {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #f3f0fb;
    box-shadow: 0 8px 24px rgba(72, 65, 82, 0.14);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    border: 0;
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .resource-card:hover,
  .resource-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(72, 65, 82, 0.2);
    outline: 2px solid #4b2d7f;
    outline-offset: 3px;
  }

  .resource-coming-soon {
    display: block;
    min-height: 100%;
    cursor: default;
  }

  .resource-coming-soon:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(72, 65, 82, 0.14);
    outline: none;
  }

  .resource-card > img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
  }

  .resource-card-content {
    padding: 24px;
  }

  .resource-category {
    color: #4b2d7f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
  }

  .resource-card h2 {
    margin: 10px 0 12px;
    color: #484152;
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .resource-card p {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.55;
  }

  .resource-card .resource-card-meta {
    display: inline;
    margin: 0 0 12px;
    color: #625a6e;
    font-size: 0.85rem;
  }

.resource-dialog {
  position: fixed;
  width: min(90vw, 760px);
  max-height: 82vh;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: #f3f0fb;
  color: #333;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
}

.resource-dialog[open] {
  display: block;
}

.resource-dialog::backdrop {
  background: rgba(30, 22, 42, 0.72);
}

.resource-dialog-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin: 12px 12px -52px 0;
  border: 0;
  border-radius: 50%;
  background: #4b2d7f;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

.resource-article {
  padding: 48px;
  background: #f3f0fb;
}

  .resource-article h2 {
    margin: 10px 0 14px;
    color: #484152;
    font-size: 1.8rem;
  }

  .resource-article .resource-article-meta {
    margin: 0 0 24px;
    color: #625a6e;
    font-size: 0.9rem;
  }

  .resource-article p {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.65;
  }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 430px));
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  width: min(100%, 430px);
  margin: 0;
  padding: 32px;
  box-sizing: border-box;
  border-radius: 28px;
  background: #f3f0fb;
  color: #000;
  text-align: center;
}

.team-card:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
}

.team-card-image {
  width: 150px;
  height: 150px;
  display: block;
  margin: 0 auto 24px;
  border-radius: 16px;
  object-fit: cover;
}

.mikayil-photo {
  object-position: center top;
}

.laura-photo {
  object-position: center 30%;
}

.team-card h2,
.team-card h3,
.meet-team-page main .team-card p {
  color: #000;
}

.team-card h2 {
  margin: 0;
  font-size: 2rem;
}

.team-card h3 {
  margin: 8px 0 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.team-card-divider {
  width: 80px;
  height: 2px;
  margin: 20px auto;
  background: #484152;
}

.team-card p {
  max-width: 320px;
  margin: 0 auto;
  font-size: 0.8rem;
  line-height: 1.5;
}

.team-linkedin {
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
}

.team-linkedin img {
  width: 24px;
  height: 24px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(560px, 1.8fr) minmax(120px, 0.2fr);
  min-height: 540px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.home-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 18% 64px 10%;
  background: #484152;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(#000 0 0), radial-gradient(ellipse 38% 100% at 100% 50%, #000 0 99%, transparent 100%);
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000 0 0), radial-gradient(ellipse 38% 100% at 100% 50%, #000 0 99%, transparent 100%);
  mask-composite: exclude;
  position: relative;
  z-index: 1;
}

.home-hero-panel h2 {
  margin: 0 0 12px;
  color: #000;
  font-size: 4rem;
  line-height: 1;
}

.home-hero-panel h4 {
  margin: 0;
  color: #fff;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 5rem;
  line-height: 0.95;
}

.home-hero-panel p {
  max-width: 320px;
  margin: 0;
  color: #000;
  font-size: 1.15rem;
  line-height: 1.5;
}

.home-hero-image {
  min-height: 0;
  width: 60%;
  height: 100%;
  margin-left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  inset: 0;
  left: auto;
  z-index: 0;
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.home-white-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 420px;
  padding: 64px 10%;
  background: #e6def2;
  box-sizing: border-box;
}

.home-white-content {
  max-width: 1200px;
  text-align: center;
  transform: translateY(20px);
}

.home-section-label {
  color: #4b2d7f;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.home-white-content h2 {
  max-width: 760px;
  margin: 12px auto 18px;
  color: #484152;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 1.05;
}

.home-white-section p {
  max-width: 1100px;
  margin: 0;
  color: #000;
  font-size: 1.25rem;
  line-height: 1.6;
  text-align: center;
  transform: translateY(-20px);
}

.home-vision-heading {
  width: calc(100% + 20%);
  margin: 72px -10% 0;
  padding: 20px 10%;
  box-sizing: border-box;
  background: #aca4d4;
  color: #000;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
}

.home-color-blocks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  gap: 32px;
  width: calc(100% + 20%);
  min-height: 220px;
  flex-shrink: 0;
  margin-top: 40px;
  margin-left: -10%;
  padding: 48px 0 64px 8%;
  background: #e6def2;
  box-sizing: border-box;
}

.home-color-block {
  height: 370px;
  display: block;
  position: relative;
  z-index: 2;
}

.home-color-block h3 {
  margin: 0;
  padding: 32px 32px 14px;
  color: #000;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.home-color-block p {
  max-width: 500px;
  margin: 20px auto 0;
  padding: 0 32px;
  color: #000;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  line-height: 1.5;
  text-align: center;
}

.home-color-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 370px;
}

.home-color-image img {
  width: 100%;
  max-width: 150px;
  max-height: 240px;
  object-fit: contain;
}

.home-color-block-brown {
  background: #754c33;
}

.home-color-block-purple {
  background: #484152;
}

.learn-more-btn {
  display: inline-flex;
  margin-top: 0;
  margin-left: 0;
  text-decoration: none;
}

.home-action-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.home-white-content a.learn-more-btn {
  background-color: #a188ff;
  color: #000;
}

.home-white-content a.get-involved-btn {
  background-color: #4b2d7f;
  color: #fff;
}

.topnav {
  background-color: #a188ff; /* full nav bar color */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  margin: 0;
  padding: 0 20px;
  box-sizing: border-box;
  min-height: 90px;
  gap: 24px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  transform: translateY(0%);
}

.brand-name {
  color: #000;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-block;
  transform: scaleX(1.3);
  transform-origin: left center;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.topnav a {
  color: #000;
  text-decoration: none;
  padding: 30px 24px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  box-sizing: border-box;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: #4b2d7f;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.dropdown-menu a {
  color: #000;
  padding: 14px 18px;
  width: 100%;
  box-sizing: border-box;
  background: #4b2d7f;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: #4b2d7f;
  color: #000;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
}

.dropdown:hover > a,
.dropdown:focus-within > a {
  background-color: #8d75eb;
}

.donate-btn {
  background-color: #4b2d7f;
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px !important;
  margin-left: 8px;
  font-weight: 800;
}

.topnav a:hover,
.topnav a:focus-visible {
  background-color: #8d75eb; /* hover shade */
  color: #000;
  outline: none;
}

.topnav a.active {
  background-color: #4b2d7f; /* darker purple for selected tab */
  color: #fff;
}

.topnav a.donate-btn,
.topnav a.donate-btn:hover,
.topnav a.donate-btn:focus-visible,
.dropdown-menu a,
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: #fff;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(320px, 520px);
  align-items: center;
  column-gap: 32px;
  min-height: 150px;
  padding: 32px 10%;
  box-sizing: border-box;
  background: #a188ff;
  color: #000;
}

.footer-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-socials a {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}

.footer-socials img {
  width: 22px;
  height: 22px;
}

.site-footer .newsletter-container {
  grid-column: 3;
  justify-self: end;
  margin-left: 0;
  width: 100%;
  max-width: 520px;
}

.footer-logo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.footer-brand {
  margin-left: 4px;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-block;
  transform: scaleX(1.3);
  transform-origin: left center;
}

.site-footer p {
  margin: 0;
  font-size: 1.1rem;
  text-align: right;
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  header {
    padding-top: 0;
  }

  .topnav {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 12px 12px;
  }

  .brand-wrap {
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 8px 0;
  }

  .brand {
    width: 64px;
    height: 58px;
    padding: 0;
  }

  .brand img {
    height: 100%;
  }

  .brand-name {
    font-size: 1.55rem;
    letter-spacing: 0.04em;
    transform: scaleX(1.1);
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    gap: 2px;
  }

  .nav-links > a,
  .nav-item,
  .nav-item > a {
    width: 100%;
    min-width: 0;
  }

  .topnav a {
    justify-content: center;
    padding: 12px 8px;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-align: center;
  }

  .nav-links > .donate-btn {
    grid-column: 1 / -1;
    width: auto;
    justify-self: center;
    margin: 6px 0 0;
    padding: 10px 24px !important;
  }

  .dropdown-menu {
    min-width: 0;
    width: 100%;
  }

  .dropdown-menu a {
    padding: 10px 6px;
    font-size: 0.9rem;
  }

  .home-hero {
    display: block;
    min-height: 0;
  }

  .home-hero-panel {
    width: 100%;
    min-height: 250px;
    padding: 40px 24px;
    box-sizing: border-box;
    border-radius: 0 0 50% 50% / 0 0 24% 24%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .home-hero-panel h2 {
    font-size: 2.5rem;
  }

  .home-hero-panel h4 {
    max-width: 100%;
    font-size: 2rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .subject-signup-form {
    padding: 24px 18px;
  }

  .team-grid {
    grid-template-columns: minmax(0, 430px);
  }

  .donate-page-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .givebutter-donation-widget {
    width: 100%;
  }

  .get-involved-content {
    grid-template-columns: 1fr;
    padding: 32px 24px 56px;
  }

  .get-involved-content > h1 {
    font-size: 2.4rem;
  }

  .contact-links-row,
  .contact-social-follow {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .contact-social-follow {
    gap: 8px;
  }

  .contact-socials {
    flex-direction: row;
  }

  .subject-signup-form.contact-form {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .contact-name-row {
    grid-template-columns: 1fr;
  }

  .involvement-photo {
    height: 220px;
  }

  .involvement-text-box {
    padding: 20px;
  }

  .resources-page {
    padding: 36px 24px 56px;
  }

  .resources-page > h1 {
    font-size: 2.4rem;
  }

  .resources-intro {
    margin-bottom: 32px;
    font-size: 1.1rem;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .resource-article {
    padding: 36px 24px;
  }

  .about-us-content {
    flex-direction: column;
    gap: 24px;
  }

  .about-us-image {
    width: 100%;
    max-width: 420px;
    height: 260px;
  }

  .about-us-images {
    width: 100%;
    flex-basis: auto;
    align-items: center;
  }

  .about-us-content p {
    text-align: center;
  }

  .lessons-title-banner h1 {
    font-size: 2.4rem;
  }

  .lesson-list {
    padding: 12px 24px 40px;
  }

  .lesson-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }

  .lesson-photo {
    height: auto;
    min-height: 220px;
    max-height: 360px;
    object-fit: contain;
  }

  .home-vision-heading {
    width: calc(100% + 64px);
    margin: 48px -32px 0;
    padding: 18px 32px;
    font-size: 2.4rem;
  }

  .home-hero-image {
    min-height: 300px;
    width: auto;
    height: auto;
    margin-left: 0;
    position: relative;
    inset: auto;
    right: auto;
  }

  .home-hero-image img {
    min-height: 300px;
  }

  .home-color-blocks {
    width: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-left: 0;
    padding: 0 32px 48px;
  }

  .home-color-image {
    height: 140px;
    order: 2;
  }

  .home-color-block-brown {
    order: 1;
  }

  .home-color-block-purple {
    order: 3;
  }

  .home-action-buttons {
    flex-wrap: wrap;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 180px;
    padding: 32px;
    text-align: center;
  }

  .site-footer .newsletter-container {
    margin-left: 0;
    width: 100%;
  }

  .footer-logo {
    width: 64px;
    height: 64px;
  }

  .site-footer p {
    text-align: center;
  }

  .footer-brand {
    margin-left: 0;
  }

  .footer-identity {
    align-items: center;
  }

  .footer-socials {
    margin-top: 12px;
  }

}

/* Container styling */
.newsletter-container {
  background: rgba(255, 255, 255, 0.45);
  padding: 24px;
  border-radius: 10px;
  box-sizing: border-box;
  text-align: left;
  max-width: 620px;
  width: 100%;
}

.newsletter-container h2 {
    color: #000;
    margin-bottom: 10px;
    font-size: 24px;
}

.newsletter-container p {
    color: #000;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: left;
}

  .newsletter-status {
    font-weight: 600;
  }

/* Form styling */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input[type="email"] {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: #007bff;
}

.newsletter-form button {
    background-color: #4b2d7f;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #8d75eb;
}

/* Desktop layout adjustment */
@media (min-width: 480px) {
    .newsletter-form {
        flex-direction: row;
        gap: 0;
    }

      .newsletter-form input[type="email"] {
        flex: 1;
        border-radius: 6px 0 0 6px;
        border-right: none;
    }
    
    .newsletter-form button {
        border-radius: 0 6px 6px 0;
        padding: 0 25px;
    }
}