/* =========================================================
   1. DESIGN TOKENS
   Shared colors, shadows, sizing, and animation timing.
========================================================= */

:root {
  --green: #14ad00;
  --red: #dc143c;
  --purple: #40346f;
  --yellow: #ffe66d;
  --cream: #fffaf0;
  --white: #ffffff;
  --dark: #241534;

  --shadow: 0 18px 45px rgba(64, 52, 111, 0.18);
  --radius: 32px;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 180ms ease;
  --transition-smooth: 320ms var(--ease-soft);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================================================
   2. GLOBAL PAGE BEHAVIOR
========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}


/* =========================================================
   3. HEADER AND DESKTOP NAVIGATION
========================================================= */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);


  width: 100%;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);

  position: relative;
  z-index: 1000;

  background-color: white;
  border-bottom: 1px solid gainsboro;

  animation: header-drop 700ms var(--ease-soft) backwards;
}


/* ---------- Logo container ---------- */

.logo {
  flex: 0 0 auto;
}


/* ---------- Logo image ---------- */

.logo img,
#logo > img {
  display: block;

  width: clamp(12rem, 18vw, 16rem);
  max-width: 100%;
  height: auto;

  transform-origin: center;

  animation: logo-pop 900ms 120ms var(--ease-pop) backwards;

  transition:
    transform var(--transition-smooth),
    filter var(--transition-smooth);
}

.logo img:hover {
  transform: translateY(-3px) rotate(-2deg) scale(1.04);
  filter: drop-shadow(0 10px 10px rgba(64, 52, 111, 0.18));
}


/* ---------- Navigation container ---------- */

header nav {
  flex: 1;
  min-width: 0;
}


/* ---------- Navigation list ---------- */

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: clamp(0.35rem, 1.2vw, 1.25rem);

  margin: 0;
  padding: 0;

  list-style: none;
  text-align: center;
  
}


/* ---------- Navigation item animations ---------- */

.nav-list li {
  flex: 0 0 auto;

  opacity: 1;
  animation: nav-item-in 500ms var(--ease-soft) backwards;
  border-bottom: 1px #c7c7c7 solid;
  
}

.nav-list li:nth-child(1) {
  animation-delay: 220ms;
}

.nav-list li:nth-child(2) {
  animation-delay: 300ms;
}

.nav-list li:nth-child(3) {
  animation-delay: 380ms;
}

.nav-list li:nth-child(4) {
  animation-delay: 460ms;
}

.nav-list li:nth-child(5) {
  animation-delay: 540ms;
}

.nav-list li:nth-child(6) {
  animation-delay: 620ms;
}


/* ---------- Navigation links ---------- */

.nav-list a {
  display: block;

  padding: 0.6rem clamp(0.65rem, 1vw, 1rem);
  color: #222;
  background-color: transparent;
  border-radius: 999px;

  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;

  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}



.nav-list a:hover {
  color: white;
  background-color: var(--purple);

  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(64, 52, 111, 0.22);
}


/* ---------- Mobile menu button ---------- */

.menu-button {
  display: none;
  flex: 0 0 auto;

  padding: 0.5rem;

  border: none;
  background: none;

  font-size: 2rem;
  line-height: 1;
  cursor: pointer;

  transform-origin: center;

  transition:
    transform var(--transition-fast),
    color var(--transition-fast);
}

.menu-button:hover {
  color: var(--red);
  transform: rotate(8deg) scale(1.1);
}


/* ---------- Header call link ---------- */

#call {
  flex: 0 0 auto;

  padding: 0.65rem 1rem;

  color: #222;
  border-radius: 999px;

  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;

  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

#call:hover {
  color: white;
  background-color: var(--green);
  transform: translateY(-2px);
}

/* ---------- Keyboard focus styles ---------- */

.nav-list a:focus-visible,
.btn:focus-visible,
.menu-button:focus-visible,
#call:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}


/* =========================================================
   4. SHARED IMAGE CONTAINERS
========================================================= */

.students-table {
  position: relative;
}

.students-table img {
  max-width: 100%;
}


/* =========================================================
   5. HERO SECTION
========================================================= */

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;

  min-height: 100vh;
  padding: clamp(2rem, 6vw, 5rem);

  position: relative;
  overflow: hidden;

  background: linear-gradient(135deg, #fffaf0 0%, #fff4c9 100%);
  border-bottom: 1px solid gainsboro;
}


/* ---------- Decorative hero bubbles ---------- */

main::before,
main::after {
  content: "";
  position: absolute;
  z-index: 0;

  border-radius: 50%;
  pointer-events: none;
}

main::before {
  width: clamp(9rem, 18vw, 18rem);
  aspect-ratio: 1;

  top: -5rem;
  left: -4rem;

  background: rgba(255, 230, 109, 0.62);
  animation: bubble-float 5s ease-in-out infinite;
}

main::after {
  width: clamp(7rem, 14vw, 14rem);
  aspect-ratio: 1;

  right: -3rem;
  bottom: -3rem;

  background: rgba(255, 179, 195, 0.5);
  animation: bubble-float 6s 800ms ease-in-out infinite reverse;
}


/* ---------- Hero text card ---------- */

.text {
  position: relative;
  z-index: 2;

  padding: clamp(2rem, 5vw, 4rem);

  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  will-change: transform, opacity;
  animation: card-in-left 850ms 180ms var(--ease-soft) backwards;

  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.text:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(64, 52, 111, 0.23);
}


/* ---------- Hero title ---------- */

.title-top {
  margin: 0 0 1rem;
  padding: 0;

  position: static;

  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;

  transform-origin: left center;
  animation: title-bounce 850ms 500ms var(--ease-pop) backwards;
}

.sebayte,
.reading {
  display: inline-block;

  transition:
    transform var(--transition-fast),
    text-shadow var(--transition-fast);
}

.sebayte {
  color: var(--green);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
}

.sebayte:hover {
  transform: rotate(-2deg) scale(1.03);
  text-shadow: 0 5px 0 rgba(20, 173, 0, 0.14);
}

.reading {
  margin-left: 0.4rem;

  color: var(--red);
  font-size: clamp(3rem, 8vw, 4rem);
}

.reading:hover {
  transform: rotate(2deg) scale(1.03);
  text-shadow: 0 5px 0 rgba(220, 20, 60, 0.12);
}


.stanford {
 margin-top: 5%;
 padding: 5%;
 font-size: clamp(1rem,2vw,3rem);
 text-align: center;
}



/* ---------- Program labels ---------- */

.program
 {
  opacity: 1;

  animation: reveal-up 650ms var(--ease-soft) backwards;

  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
}

.program {
  display: inline-block;
  position: static;

 
  padding: 2% 10%;

  color: var(--yellow);
  background: var(--red);
  border-radius: 999px;

  font-size: clamp(1rem, 2vw, 1.35rem);
  
  letter-spacing: 1px;
  text-transform: uppercase;

  animation-delay: 650ms;
  text-align: center;
}


.program:hover,
.program-mobile:hover {
  transform: rotate(-1.5deg) scale(1.03);
  box-shadow: 0 8px 0 rgba(64, 52, 111, 0.12);
}


/* ---------- Hero introductory text ---------- */

.intro,
.intro-definition,
.top-intro,
.research,
.btn {
  opacity: 1;
  animation: reveal-up 650ms var(--ease-soft) backwards;
}

.intro {
  margin-top: 0;

  color: var(--purple);

  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.5;

  animation-delay: 740ms;
}

.intro-definition,
.top-intro {
  margin-top: 1.5rem;
  padding: 1.5rem;

  color: var(--dark);
  background-color: #fff8c7;
  border-left: 8px solid var(--yellow);
  border-radius: 24px;

  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;

  animation-delay: 830ms;

  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
}

.intro-definition:hover,
.top-intro:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 25px rgba(64, 52, 111, 0.12);
}


/* ---------- Research callout ---------- */

.research {
  margin-top: 2rem;
  padding: 2rem;

  color: white;
  background-color: var(--purple);
  border-left: 10px solid var(--yellow);
  border-radius: 28px;
  box-shadow: 0 16px 35px rgba(64, 52, 111, 0.25);

  animation-delay: 920ms;

  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
}

.research:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 20px 40px rgba(64, 52, 111, 0.3);
}

.research p {
  margin: 0;

  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  line-height: 1.45;
}

.research strong {
  color: var(--yellow);
}


/* ---------- Main call-to-action button ---------- */

.btn {
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: hidden;

  margin-top: 2rem;
  padding: 1rem 1.5rem;

  color: white;
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(220, 20, 60, 0.25);

  font-weight: 900;
  text-align: center;
  text-decoration: none;

  animation-delay: 1.01s;

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.btn::after {
  content: "";
  position: absolute;
  z-index: -1;

  top: -50%;
  left: -35%;

  width: 25%;
  height: 200%;

  background: rgba(255, 255, 255, 0.42);
  transform: rotate(25deg) translateX(-250%);

  transition: transform 650ms var(--ease-soft);
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 30px rgba(220, 20, 60, 0.32);
}

.btn:hover::after {
  transform: rotate(25deg) translateX(700%);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}


/* ---------- Hero article card ---------- */

.article {
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);

  position: relative;
  z-index: 1;
  overflow: hidden;

  color: var(--dark);
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  will-change: transform, opacity;
  animation: card-in-right 850ms 300ms var(--ease-soft) backwards;

  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.article:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(64, 52, 111, 0.23);
}

/*
.article::before {
  content: "";
  position: absolute;

  width: 200px;
  height: 260px;

  top: -90px;
  right: -90px;

  z-index: 0;

  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.8;
}
*/

.article::after {
  content: "";
  position: absolute;
  z-index: 0;

  width: 200px;
  height: 200px;

  bottom: -70px;
  left: -70px;

  background: #ffd6df;
  border-radius: 50%;
  opacity: 0.85;
}

.article-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.article h2,
.article p {
  opacity: 1;
  animation: reveal-up 600ms var(--ease-soft) backwards;
}

.article h2 {
  margin: 0 0 1rem;

  color: var(--red);

  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;

  animation-delay: 850ms;
}

.article p {
  margin: 0;

  color: var(--dark);

  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.55;

  animation-delay: 950ms;
}


/* ---------- Images inside the hero ---------- */

main img {
  width: 100%;
  margin-bottom: 1.5rem;


  box-shadow: var(--shadow);

  animation: image-pop 900ms 520ms var(--ease-pop) backwards;

  transition:
    transform 450ms var(--ease-soft),
    box-shadow 450ms var(--ease-soft),
    filter 450ms var(--ease-soft);
}

main img:hover {
  transform: scale(1.025) rotate(0.6deg);
  box-shadow: 0 24px 50px rgba(64, 52, 111, 0.24);
  filter: saturate(1.05);
}


/* =========================================================
   6. LEARNING-TODAY IMAGE BANNER
========================================================= */

.learningtodayheader {
  width: 100%;
  margin-bottom: 2rem;
  padding: 1rem;

  position: absolute;
  bottom: 0;

  color: rgb(241, 241, 172);
  background: #ff0000bb;

  font-size: clamp(1rem, 4vw, 3rem);
  text-align: center;

  transition:
    background-color var(--transition-smooth),
    transform var(--transition-smooth),
    letter-spacing var(--transition-smooth);
}

.learningtodayheader:hover {
  background-color: rgba(220, 20, 60, 0.88);
  letter-spacing: 0.02em;
  transform: translateY(-3px);
}


/* =========================================================
   7. ABOUT AND MISSION SECTION
========================================================= */

#mission-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #3d336f;
  text-align: center;
}



.about-title {
  padding: 1rem 1rem;
  color: rgb(240, 177, 229);
  background-color: #3d336f;
  font-size: clamp(1rem, 6vw, 4rem);
  text-align: left;
}



.name-owner {
  color: white;
  font-size: 14px;

}

.mission-paragraph {
  max-width: 100rem;
  color: white;
  font-size: clamp(.8rem, 2vw, 1.5rem);
  text-align: left;
  margin: 5%;
}

.mission-image img {
  display: block;
  width: clamp(25rem, 45vw, 50rem);
  max-width: 100%;
  height: auto;
  padding-bottom: 3%;
  margin: 0 auto;

}

.mission-image-B img {
  display: block;
  width: clamp(25rem, 45vw, 50rem);
  max-width: 75%;
  height: auto;
  padding-bottom: 3%;
  margin-top: 2rem;
 
}


.owner img {
  position: relative;
  max-width: 20rem;
  border: 5px solid pink;
  margin: 0 auto;
}

.image-caption {
  font-size: 15px;
  
}

/* ---------- Mission and owner interactions ---------- */

.about-title,
.mission-paragraph,
.mission-image,
.owner {
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.mission-image img,
.owner img {
  transition:
    transform 450ms var(--ease-soft),
    box-shadow 450ms var(--ease-soft),
    filter 450ms var(--ease-soft);
}

.mission-image img:hover {
  transform: translateY(-7px) rotate(-0.8deg) scale(1.015);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.24);
}

.owner img:hover {
  transform: rotate(2deg) scale(1.04);
  box-shadow: 0 16px 30px rgba(255, 192, 203, 0.28);
}


/* =========================================================
   8. WHY CHOOSE SEBAYTE SECTION
========================================================= */

.why-choose-title-container {
  display: grid;
  grid-template-columns: 1fr auto;

  position: relative;

  color: #401804;
}

.books {
  display: grid;
  grid-template-columns: 1fr auto;

  width: 100%;

  background-color: rgb(238, 235, 231);
}

.books img {
  max-width: clamp(4rem, 20vw, 12rem);
  margin: 0 auto;

  animation: book-float 3.8s ease-in-out infinite;

  transition:
    transform 450ms var(--ease-soft),
    box-shadow 450ms var(--ease-soft),
    filter 450ms var(--ease-soft);
}

.books img:hover {
  rotate: -4deg;
  scale: 1.08;
  filter: saturate(1.08);
}

#why-choose-title {
  padding: 1rem;

  color: var(--red);
  background-color: #eeebe7;

  font-size: clamp(0.8rem, 2vw, 3rem);
  text-align: left;
}

#why-us-container {
  display: grid;
  grid-template-columns: 1fr 1fr;

  padding: 2rem;

  color: #401804;
  background-color: #eeebe7;

  font-size: clamp(.8rem, 2vw, 2.5rem);
  list-style: circle;
}

.bottom-text-container {
  display: grid;
  grid-template-rows: 1fr;

  padding: 2rem;

  color: #401804;
  background-color: rgb(238, 235, 231);

  font-size: clamp(.8rem, 2vw, 2rem);
  list-style: circle;
}

.getstartedtoday {
  margin-top: 3%;
}

.whyus-bullets-left {

  max-width: 30rem;

}


/* ---------- Why-choose interactions ---------- */

#why-choose-title,
#why-us-container,
.bottom-text-container {
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

#why-us-container li,
.bottom-text-container li {
  transition:
    transform var(--transition-fast),
    color var(--transition-fast);
}

#why-us-container li:hover,
.bottom-text-container li:hover {
  color: var(--red);
  transform: translateX(8px);
}


/* =========================================================
   9. STUDENTS-OUTSIDE IMAGE SECTION
========================================================= */

.students-outside {
  max-width: 100%;
  position: relative;

  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.students-outside img {
  max-width: 100%;

  transition:
    transform 450ms var(--ease-soft),
    box-shadow 450ms var(--ease-soft),
    filter 450ms var(--ease-soft);
}

.outsidetext {
  width: 100%;
  margin-bottom: 2rem;
  padding: 1rem;

  position: absolute;
  bottom: 0;

  color: rgb(241, 241, 172);
  background: #ff0000bb;

  font-size: clamp(1rem, 4vw, 2rem);
  text-align: center;

  transition:
    background-color var(--transition-smooth),
    transform var(--transition-smooth),
    letter-spacing var(--transition-smooth);
}

.outsidetext:hover {
  background-color: rgba(220, 20, 60, 0.88);
  letter-spacing: 0.02em;
  transform: translateY(-3px);
}


/* =========================================================
   10. ANIMATION KEYFRAMES
========================================================= */

@keyframes header-drop {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-pop {
  0% {
    opacity: 0;
    transform: scale(0.72) rotate(-7deg);
  }

  70% {
    transform: scale(1.06) rotate(2deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes nav-item-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes card-in-left {
  from {
    opacity: 0;
    transform: translateX(-45px) rotate(-1.5deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes card-in-right {
  from {
    opacity: 0;
    transform: translateX(45px) rotate(1.5deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes title-bounce {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.9) rotate(-2deg);
  }

  70% {
    transform: translateY(-4px) scale(1.025) rotate(0.5deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes image-pop {
  0% {
    opacity: 0;
    transform: scale(0.88) rotate(2deg);
  }

  75% {
    transform: scale(1.02) rotate(-0.5deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes bubble-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(10px, -12px, 0) scale(1.04);
  }
}

@keyframes book-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes mobile-menu-drop {
  from {
    opacity: 0;
    transform: translate(-50%, -0.75rem) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes mobile-link-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   11. RESPONSIVE STYLES
========================================================= */


/* ---------------------------------------------------------
   11A. TABLET AND MOBILE NAVIGATION
   Applies at 1024px and smaller.
--------------------------------------------------------- */

@media (max-width: 1024px) {
  header {
    flex-direction: column;
    gap: 1rem;
    height: 10rem;
  }

  .menu-button {
    display: block;
    position: relative;
    z-index: 10000;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 9999;

    padding: 1rem;

    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translate(-50%, -0.75rem);

    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  .nav-list.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;

    transform: translate(-50%, 0);
    animation: mobile-menu-drop 380ms var(--ease-soft) both;
  }

  .nav-list.active li {
    animation: mobile-link-in 350ms var(--ease-soft) both;
  }

  .nav-list.active li:nth-child(1) {
    animation-delay: 70ms;
  }

  .nav-list.active li:nth-child(2) {
    animation-delay: 120ms;
  }

  .nav-list.active li:nth-child(3) {
    animation-delay: 170ms;
  }

  .nav-list.active li:nth-child(4) {
    animation-delay: 220ms;
  }

  .nav-list.active li:nth-child(5) {
    animation-delay: 270ms;
  }

  .nav-list.active li:nth-child(6) {
    animation-delay: 320ms;
  }

  .nav-list a {
    min-width: min(22rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0.75rem 1rem;

    border: none;
  }

  .atwork2 {
    width: 100%;
    margin-top: 8rem;
    padding: 1rem;

    position: relative;
    bottom: unset;
  }

  #call {
    display: none;
  }

  main img {
    width: 60%;
    height: auto;
    margin: 0 auto 1.5rem;
  }
}


/* ---------------------------------------------------------
   11B. SMALL TABLETS
   Applies at 900px and smaller.
--------------------------------------------------------- */

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1rem;
    text-align: center;
  }

  .text {
    padding: 2rem 1.25rem;
  }

  .title-top {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .reading {
    display: block;
    margin-left: 0;
  }

  .research {
    border-top: 8px solid var(--yellow);
    border-left: none;
  }

  main {
    grid-template-columns: 1fr;
    position: relative;
    border-bottom: 1px solid gainsboro;
  }

  main img {
    width: 60%;
  }

  .atwork2 {
    width: 100%;
    margin-top: 20rem;
    padding: 1rem;
    bottom: unset;
    border: 3px solid yellow;
    
  }

  #mission-container {
    grid-template-columns: 1fr;
    padding: 2rem;
    text-align: center;
    
  }

  .mission-image-B img {
    display: block;
    width: min(100%, 50rem);
    height: auto;
    margin-inline: auto;
    padding-bottom: 3%;
  }

  .why-choose-title-container {
    grid-template-columns: 1fr;
    position: relative;
  }

  .why-choose-title-container img {
    position: absolute;
    top: 30rem;
    right: 5rem;
  }
}




/* =========================================================
   12. REDUCED-MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}