.about-page header #site-logo svg {
  height: 50px;
}

nav #toggle-nav span {
  background-color: var(--white);
}

/* About Hero  */
header {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--dark-green);
  padding-bottom: 5.25rem;
}

header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(26, 59, 45, 0) 0%, #1a3b2d 100%);
  pointer-events: none;
}

header.dark-header h1 {
  color: var(--light-yellow);
}

.overlay-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.2;
  overflow: hidden;
}

.overlay-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main {
  position: relative;
  overflow: hidden;
}

.about-hero-section {
  margin-top: 10rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
}

.about-hero-section .about-hero-text {
  position: relative;
  z-index: 1;
}

.about-hero-section h1 {
  font-size: 11rem;
  font-size: clamp(4rem, 10vw, 11rem);
}

.about-hero-section .about-hero-subtitle {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.about-hero-section .about-hero-subtitle p {
  font-size: var(--font-h5);
  color: var(--light-yellow);
}

.about-hero-section .play-button {
  position: relative;
  height: 3.125rem;
  width: 3.125rem;
  background-color: #fefbe9;
  border-radius: 50%;
}

.about-hero-section .play-button svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 20px;
  width: auto;
}

@media screen and (min-width: 1024px) {
  header.dark-header nav ul li a {
    --text: var(--white);
  }

  header.dark-header nav ul li a.active {
    --text: var(--victory-gold);
  }

  header.dark-header nav ul li a.button {
    --text: var(--font-body);
    --text-hover: var(--font-body);
    --bg: var(--victory-gold);
    --bg-hover: var(--white);
    --border: var(--victory-gold);
  }
}

@media screen and (max-width: 1024px) {
  header nav.active #site-logo svg path {
    fill: var(--campus-green);
  }
}

@media screen and (max-width: 768px) {
  header #site-logo svg {
    height: 40px;
  }

  .about-hero-section .play-button {
    height: 2.5rem;
    width: 2.5rem;
  }

  .about-hero-section .play-button svg {
    height: 15px;
  }
}

@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .about-hero-section.animated h1 {
    animation: 1s cubic-bezier(0.83, 0, 0.17, 1) fade-in-ttb both;
  }

  .about-hero-section.animated .about-hero-subtitle {
    animation: 1s cubic-bezier(0.83, 0, 0.17, 1) fade-in both;
    animation-delay: 0.2s;
  }
}

/* About Intro Section */
.about-intro-section {
  position: relative;
  padding: 7.5rem 0 3.75rem;
}

.about-intro-section .container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-intro-section h2 {
  font-size: var(--font-body);
  text-transform: uppercase;
  color: var(--dark-green);
}

.about-intro-section h3 {
  color: var(--dark-green);
  max-width: 60%;
}

.about-intro-section .about-intro-section--text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 50%;
  margin-left: auto;
}

/* Media Queries */
@media screen and (max-width: 1240px) {
  .about-intro-section .about-intro-section--text {
    max-width: 60%;
  }
}

@media screen and (max-width: 1024px) {
  .about-intro-section {
    padding-block: 3.75rem;
  }

  .about-intro-section h3 {
    max-width: 80%;
  }
}

@media screen and (max-width: 1024px) {
  .about-intro-section h3,
  .about-intro-section .about-intro-section--text {
    max-width: 100%;
  }
}

/* About Mission/Vission Section */
.about-mv-section {
  padding: 3.75rem 0 7.5rem;
}

.about-mv-section .container {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.about-mv-section .card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 1.25rem;
  width: calc(50% - 1.25rem);
  padding: 3.75rem 2rem;
  gap: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.about-mv-section .card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.about-mv-section .mission.card {
  background: var(--light-pink);
}

.about-mv-section .vision.card {
  background: var(--light-purple);
}

.about-mv-section .card h3 {
  position: relative;
  color: var(--dark-green);
  z-index: 1;
  transition: color 0.3s ease;
}

.about-mv-section .card p {
  position: relative;
  color: var(--font-body);
  text-align: center;
  max-width: 350px;
  z-index: 1;
  transition: color 0.3s ease;
}

.about-mv-section .card:hover img {
  opacity: 1;
}

.about-mv-section .card:hover h3,
.about-mv-section .card:hover p {
  color: var(--white);
}

@media screen and (max-width: 768px) {
  .about-mv-section .card {
    width: 100%;
  }
}

/* About Principles Section */
.about-principles-section {
  position: relative;
  padding: 6.25rem 0;
  background-color: var(--dark-green);
}

.about-principles-section .container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  z-index: 1;
}

.about-principles-section h2 {
  position: relative;
  font-size: var(--font-h6);
  color: #b36500;
  background-color: #ffecca;
  padding: 0.75rem 1rem 0.75rem 2.375rem;
  border-radius: 100px;
  margin-right: auto;
}

.about-principles-section h2:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  background-color: #b36500;
  border-radius: 10px;
}

.about-principles-section--text {
  display: flex;
  gap: 2.5rem;
}

.about-principles-section .principle-list {
  width: calc(58% - 1.25rem);
  display: flex;
  flex-direction: column;
}

.about-principles-section .panel {
  position: absolute;
  width: calc(42% - 1.25rem);
  max-width: 470px;
  padding: 2.5rem;
  opacity: 0;
  transform: translateY(-50);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  will-change: opacity, transform;
}

.about-principles-section .panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

.about-principles-section .panel[hidden] {
  display: block;
}

.about-principles-section .principle-content h3 {
  display: none;
  color: var(--white);
  margin-bottom: 1rem;
}

.about-principles-section .principle-content p {
  font-size: var(--font-h5);
  color: var(--light-yellow);
}

.about-principles-section .tab {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  padding: 2.5rem 2rem 2.5rem 0;
  border-bottom: 1px solid rgba(163, 177, 192, 0.2);
  font-size: var(--font-h3);
  color: var(--white);
  transition: color 0.3s ease-in;
}

.about-principles-section .tab.is-active,
.about-principles-section .tab:hover {
  cursor: pointer;
  color: var(--light-yellow);
}

.about-principles-section .tab::after {
  position: absolute;
  content: "";
  width: 2.75rem;
  height: 2.75rem;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%) translateX(-50%);
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../images/about/principle-arrow.svg");
  opacity: 0;
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

.about-principles-section .tab:hover::after,
.about-principles-section .tab.is-active::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.about-principles-section .overlay-img {
  background-image: url("../images/about/principles.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.05;
}

@media screen and (max-width: 1024px) {
  .about-principles-section {
    padding: 3.75rem 0;
  }

  .about-principles-section--text {
    flex-direction: column;
  }

  .about-principles-section .principle-list {
    display: none;
  }

  .about-principles-section .panel {
    width: 100%;
    max-width: none;
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    padding: 0;
  }

  .about-principles-section .panel:not(:first-of-type) {
    margin-top: 3.5rem;
  }

  .about-principles-section .principle-content h3 {
    display: block;
    color: var(--light-yellow);
  }

  .about-principles-section .principle-content p {
    font-size: var(--font-body);
    color: var(--white);
    max-width: 75%;
  }
}

@media screen and (max-width: 768px) {
  .about-principles-section .principle-content p {
    max-width: 100%;
  }
}

/* TEAM SECTION */
.about-team-section {
  padding: 7.5rem 0;
}

.about-team-section .container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-team-section h2 {
  position: relative;
  font-size: var(--font-h6);
  color: #125f34;
  background-color: #e6f6eb;
  padding: 0.75rem 1rem 0.75rem 2.375rem;
  border-radius: 100px;
  margin-right: auto;
}

.about-team-section h2:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  background-color: #125f34;
  border-radius: 10px;
}

.team-members {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  width: calc(25% - 1.5rem);
}

.team-member-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
}

.team-member-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

.team-member-image img + img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.team-member:hover .team-member-image img + img {
  opacity: 1;
}

.team-member-info h3 {
  font-size: var(--font-h6);
  color: var(--dark-green);
}

.team-member-info p {
  font-size: var(--font-body);
  color: var(--font-body);
}

@media screen and (max-width: 1024px) {
  .about-team-section {
    padding: 3.75rem 0;
  }

  .about-team-section h2 {
    margin-left: auto;
  }

  .team-member {
    width: calc(50% - 1.5rem);
    max-width: 300px;
  }
}

@media screen and (max-width: 480px) {
  .team-member {
    width: 100%;
  }
}

@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .about-team-section.animated .team-member {
    --x: 120px;
    animation: 0.6s ease-out fade-in-ttb both;
  }

  .about-team-section.animated .team-member:nth-child(2) {
    animation-delay: 0.2s;
  }

  .about-team-section.animated .team-member:nth-child(3) {
    animation-delay: 0.4s;
  }

  .about-team-section.animated .team-member:nth-child(4) {
    animation-delay: 0.6s;
  }
}

/* CTA */
.cta {
  position: relative;
  padding: 7.5rem 0;
  text-align: center;
}

.cta .container {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-family: "Kanit", sans-serif;
  font-size: var(--font-h1);
  color: var(--dark-green);
  line-height: var(--line-height-thinnest);
  margin-bottom: 1.25rem;
  max-width: 870px;
  margin-inline: auto;
  text-transform: uppercase;
}

.cta p {
  max-width: 500px;
  margin: 0 auto;
}

.cta .button-group {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta .svg-overlay svg.top {
  position: absolute;
  top: calc(-120px / 500px * 100%);
  right: calc(-155px / 1440px * 100%);
  width: calc(811.69px / 1440px * 100%);
  max-width: 800px;
  height: auto;
  transform: rotate(170deg);
}

.cta .svg-overlay svg.bottom {
  position: absolute;
  bottom: calc(-40px / 436.85px * 100%);
  left: calc(-315px / 1440px * 100%);
  width: calc(827.5px / 1440px * 100%);
  max-width: 830px;
  height: auto;
  transform: rotate(-20deg);
}

.main-svg {
  position: absolute;
  top: -10px;
  left: -10px;
  /* right: calc(115px / 1440px * 100%); */
  width: calc(1308.54px / 1440px * 100%);
  height: auto;
  max-width: 1308.54px;
}

@media screen and (max-width: 1024px) {
  .main-svg {
    width: auto;
  }
}

@media screen and (max-width: 769px) {
  .cta .svg-overlay svg.top {
    right: calc(-155px / 1024px * 100%);
    width: calc(811.69px / 1024px * 100%);
    top: -20px;
  }

  .cta .svg-overlay svg.bottom {
    left: calc(-315px / 1024px * 100%);
    width: calc(827.5px / 1024px * 100%);
  }
}

@media screen and (max-width: 480px) {
  .cta .svg-overlay svg.top,
  .cta .svg-overlay svg.bottom {
    width: auto;
  }
}

/* Animations */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .cta.animate svg.top .top-path,
  .cta.animate svg.bottom .bottom-path {
    opacity: 0;
  }
  .cta.animated svg.top .top-path {
    --draw-length: 2686.301px;
    opacity: 0.4;
    stroke-dasharray: var(--draw-length);
    stroke-dashoffset: var(--draw-length);
    animation: draw-svg 1.6s ease-in forwards;
    animation-delay: 0.3s;
  }

  .cta.animated svg.bottom .bottom-path {
    --draw-length: 2350.703px;
    opacity: 0.4;
    stroke-dasharray: var(--draw-length);
    stroke-dashoffset: var(--draw-length);
    animation: draw-svg 1.2s ease-in forwards;
    animation-delay: 0.6s;
  }

  .cta.animated h2 {
    animation: 1s cubic-bezier(0.83, 0, 0.17, 1) fade-in-ttb both;
  }

  .cta.animated p,
  .cta.animated .button-group {
    animation: 1s cubic-bezier(0.83, 0, 0.17, 1) fade-in both;
  }

  .cta.animated .button-group {
    animation-delay: 0.3s;
  }

  .svg-overlay.animated .main-svg .main-svg-path {
    --draw-length: 2774.063px;
    stroke-dasharray: var(--draw-length);
    stroke-dashoffset: var(--draw-length);
    animation: draw-svg 1.6s ease-in forwards;
    animation-delay: 0.6s;
  }

  .about-intro-section.animated .about-intro-section--text {
    animation-delay: 0.4s;
  }

  .about-mv-section.animated .mission.card,
  .about-mv-section.animated .vision.card {
    --x: 120px;
    animation: 0.6s ease-out fade-in-btt both;
  }

  .about-mv-section.animated .vision.card {
    animation-delay: 0.3s;
  }
}

@keyframes draw-svg {
  0% {
    stroke-dashoffset: var(--draw-length);
  }
  100% {
    stroke-dashoffset: 0;
  }
}
