/* red: color: rgb(105, 30, 30); */
/* blue:#161386 */

body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  /* background-color: rgb(244, 244, 243); */
  background-color: rgb(238, 238, 238);
  color: rgb(206, 0, 0);
  font-family: 'Poppins', sans-serif;
}

#hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  position: absolute;
  left: 30px;
  top: 30px;
  display: none;
}

#close-nav {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 30px;
}

#close-nav img {
  width: 31px;
  opacity: .5;
}

#hamburger-icon .line {
  width: 2rem;
  height: 2px;
  background: #6a6a6a;
  border-radius: 5px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 3% 0;
}

.heading h1 {
  font-size: 4.5rem;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

.heading a {
  color: rgb(206, 0, 0);
  text-decoration: none;
}


nav>a {
  text-decoration: none;
  margin-right: 2.5rem;
  font-size: 1.2rem;
  /* color: #333; */
  color: rgb(206, 0, 0);
}

nav>a:hover {
  color: #161386;
}

.signup-button a,
.signup-button button {
  background-color: #161386;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  text-transform: uppercase;
  padding: 1.2rem 2rem;
}

.signup-button.signup-button-large a,
.signup-button.signup-button-large button {
  padding: 2rem 7rem;
  background-color: white;
  color: rgb(206, 0, 0);
  font-weight: 500;
  display: block;
}

.main {
  text-align: center;
  padding: 50px 10%;
  background-color: #e0e0e0;
}


header h2 {
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin: 0 auto;
}

section.bio {
  width: 70%;
  margin-bottom: 16rem;
}

section.hero {
  margin-bottom: 6rem;
  width: 70%;
  position: relative;
}

section.hero .image-text {
  position: absolute;
  text-align: center;
  line-height: 1.3;
  width: 80%;
  bottom: -5rem;
}

section.hero.no-photo {
  margin-bottom: 0;
}

section.hero.no-photo h2 {
  margin-bottom: 30px;
  text-decoration: underline;
  font-style: italic;
  font-size: 1.6rem;
}

section.register {
  max-width: 1200px;
}

.hero h2 {
  font-weight: 400;
  margin-bottom: 5px;
  margin-top: 0;
  text-transform: uppercase;
}

.hero h3 {
  font-size: 29px;
  margin: 0 0 58px;
  color: #161386;
}

section.testimonials {
  /* background-color: rgb(105, 30, 30); */
  background-color: #161386;
  text-align: center;
  color: white;
  width: 100%;
  padding: 10rem 0;
}

section.testimonials h2 {
  font-size: 2.7rem;
  width: 66%;
  font-weight: 400;
  line-height: 1.2;
}

.bio p {
  font-size: 2.25rem;
  line-height: 1.35;
}

.hero h1 {
  /* color: #333; */
  font-size: 4.5em;
  text-align: left;
  font-weight: 500;
}


.hero img {
  width: 80%;
}

section.services,
section.cta {
  width: 94%;
  margin-bottom: 4rem;
  background-color: rgb(206, 0, 0);
  color: white;
  padding-bottom: 6.6rem;
}

section.cta {
  width: 100%;
  margin: 4rem auto 2rem;
  padding: 4rem 0;
  /* background-color: #161386; */
}

section.cta h1 {
  font-size: 3rem;
  text-align: center;
  margin: 0;
  font-weight: 400;
  margin-bottom: 3rem;
}

section.cta h1:first-of-type {
  font-weight: 600;
  margin-bottom: 0;
}

section.services h3 {
  margin-top: 9rem;
  font-size: 2rem;
}

section.services>p {
  margin-bottom: 4rem;
  width: 40%;
  text-align: center;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  width: 75%;
}

.grid-item {
  align-self: start;
  text-align: center;
  width: 75%;
  margin: auto;
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.col-2 {
  grid-column: span 2;
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

.col-5 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-8 {
  grid-column: span 8;
}

.col-12 {
  grid-column: span 12;
}

/* Add media query for mobile devices */
@media (max-width: 768px) {}

.row-single-column {
  grid-template-columns: 1fr;
  /* Set the grid-template-columns to 1fr for the only child row */
}

.grid-item h2 {
  font-size: 2.5rem;
  margin-top: 0;
  line-height: 1;
}

.grid-item p {
  padding: 2rem 0 8rem;
  font-size: 1.25rem;
}

section.partners {
  margin-top: 4rem;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin: 10rem 0 14rem;

}

.logo-container a {
  margin: 0 33%;
  width: 192px;
  height: 234px;
  position: relative;
  color: #161386;
}

.logo-container a span {
  position: absolute;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
  bottom: 0;
}

.testimonials {
  min-width: 1469px;
}

.testimonials img {
  width: 220px;
}

.testimonials p {
  font-size: 1.4rem;
}

.testimonials img.img-padded {
  padding: 1.1rem 1.4rem;
}

.invisible {
  opacity: 0;
}

.testimonials .padding-right {
  padding-right: 1rem;
}

.testimonials .padding-left {
  padding-left: 1rem;
}

.logo-container img {
  width: 12rem;
}

section.photo {
  height: 92rem;
  position: relative;
}

section.photo-right {
  height: 82rem;
}

.photo .overlay {
  width: 30rem;
  height: auto;
  background-color: white;
  z-index: 200;
  position: absolute;
  top: 36rem;
  padding: 3rem;
}

.photo .overlay.overlay-2 {
  top: 38rem;
  height: 15rem;
}

.photo .overlay p {
  font-size: 1.1rem;
}

.photo-left .overlay {
  left: 55%;
}

.photo-right .overlay {
  right: -2%;
}

.policies {
  /* background-color: #161386; */
  width: 100%;
  /* color: white; */
}

.policies-inner {
  width: 80%;
  margin: 5rem auto 8rem;
}

.policies li {
  width: 100%;
  text-align: left;
}

.image-text {
  position: absolute;
  text-align: center;
  line-height: 1.3;
  width: 58rem;
}

.photo-left .image-text {
  bottom: 10rem;
  left: 12rem;
  right: 22%;
}

.photo-right .image-text {
  bottom: 1rem;
  right: 12rem;
}

.overlay h2 {
  font-size: 2.8rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1rem;
}

.photo img {
  width: 58rem;
  position: absolute;
  z-index: 100;
}

.photo-left img {
  left: 12rem;
}

.photo-right img {
  right: 12rem;
}

.photo.photo-alt img {
  right: 12rem;
}

.photo.photo-alt .overlay {
  right: 55%;
}

footer {
  padding: 2rem 12rem 6rem;
}

.emphasize {
  font-weight: bold;
  text-decoration: underline;
  font-style: italic;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: top;
}

footer h2,
footer h4,
footer p {
  margin-top: 0;
}


.footer-column {
  flex-basis: 30%;
}

.fade-in-animation {
  opacity: 0;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fade-in-up 700ms ease-out forwards;
}

.register-form form label {
  display: block;
  font-size: 1.1rem;
}

.register-form form input {
  display: block;
  width: 93%;
  padding: 10px;
  font-size: 1rem;
}

.register-form form input[type="checkbox"] {
  display: inline;
  vertical-align: middle;
  width: auto;
}

.register-form {
  background-color: rgb(206, 0, 0);
  color: white;
  width: 100%;
  margin: 4rem 0;
}

.register-form h1.success-message {
  margin: 6rem 0rem 0;
  font-size: 2.66rem;
  text-align: center;
}

.register-form p.success-message {
  margin: 3rem 2rem 6rem;
  font-size: 1.35rem;
  text-align: center;
}

.form-row {
  margin-top: 1rem;
}

p label[for="agree"] {
  display: inline;
}

.register-form form {
  width: 76%;
  margin: 3rem auto 6rem;
}

.register h1 {
  font-size: 2.3rem;
  margin: 0;
}

.register h2 {
  width: 100%;
}

.register-sessions {
  width: 100%;
  padding: 0;
  max-width: 1200px;
}

.register-sessions .session {
  margin: 0 auto 20px;
  background-color: #161386;
  border-radius: 10px;
  border: 2px solid #161386;
  padding: 1rem;
  color: #e7e7e7;
  cursor: pointer;
  transition: box-shadow 150ms ease-in-out;
  height: 100%;
  width: 90%;
}

.session p {
  font-size: 1.4rem;
  white-space: pre;
  line-height: 1.2;
}

.register-sessions .session:hover {
  color: white;
  box-shadow: 0px 4px 7px #aaa;
}

.register-sessions .session.selected {
  background-color: white;
  box-shadow: 0px 4px 7px #aaa;
  color: #161386;
}

.register-form .signup-button {
  margin-top: 3rem;
  text-align: center;
  transition: opacity 200ms ease-in-out;
}

.signup-button.disabled {
  opacity: .5;
}

.register-form .signup-button button {
  display: inline-block;
  padding: 1.5rem 6rem;
  font-family: 'Arial', sans-serif;
  color: rgb(206, 0, 0);
  font-family: 'Poppins', sans-serif;
  border: none;
  font-size: 1.1rem;
  transition: opacity 200ms ease-in-out;
}

.register-form .signup-button button:hover {
  cursor: pointer;
  opacity: .95;
}

.register-form p label,
.register-form p a {
  font-size: 1.2rem;
}

.register-form p a {
  color: white;
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .heading h1 {
    font-size: 3.5rem;
  }

  .signup-button a,
  .signup-button button {
    padding: 1rem 1.5rem;
  }

  .main {
    padding: 30px 5%;
  }



  .logo-container a {
    margin: 0 20%;
  }

  .photo .overlay {
    width: 20rem;
    height: 15rem;
  }

  .photo img {
    width: 40rem;
  }

  .register-form form {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .hero img {
    position: static;
    margin: 20px auto;
  }

  .hero h1 {
    text-align: center;
  }

  .heading h1 {
    font-size: 2.5rem;
  }

  .signup-button a,
  .signup-button button {
    padding: 0.8rem 1.2rem;
  }

  .main {
    padding: 20px 3%;
  }

  .logo-container a {
    margin: 0 10%;
  }

  .photo .overlay {
    width: 15rem;
    height: 10rem;
  }

  .photo img {
    width: 30rem;
  }

  .register-form form {
    width: 95%;
  }

  .grid-container {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .row {
    /* grid-template-columns: 1fr; */
    grid-template-columns: repeat(1, 1fr);
  }

  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-8,
  .col-12 {
    grid-column: span 1;
  }

  section.testimonials {
    min-width: 0;
    padding: 3rem 0;
  }

  .testimonials img {
    width: 100px;
  }

  .testimonials p {
    font-size: 1.15rem;
    padding: 0 1rem;
    margin: 1rem 0 0;
  }

  .testimonials .padding-left,
  .testimonials .padding-right {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {


  header {
    padding: 5rem 0 0;
  }

  .heading h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    padding: 0 1rem;
  }

  header .signup-button {
    display: none;
  }

  section.hero {
    width: 100%;
    margin-bottom: 0;
  }

  section.hero .image-text {
    display: none;
    /* bottom: -7rem; */
  }

  .hero h2 {
    margin-bottom: 0;
    font-size: 1.25rem;
  }

  .hero img {
    width: 85%;
    margin-top: 4rem;
  }

  .main {
    padding: 15px 2%;
  }

  section.bio {
    width: 85%;
    margin-bottom: 2rem;
  }

  .bio p {
    font-size: 1.6rem;
    text-align: center;
  }

  section.services h3 {
    margin-top: 2rem;
    font-size: 1.4rem;
  }

  section.services>p {
    width: 85%;
    text-align: center;
  }

  .row {
    width: 100%;
    display: block;
  }

  .logo-container {
    width: 100%;
    margin: 0;
  }

  .logo-container img {
    width: 100%;
  }

  section.partners {
    width: 100%;
  }

  .logo-container a {
    width: 33.33%;
    height: 215px;
    position: relative;
    color: #161386;
  }

  .logo-container {
    margin: 4rem 0;
  }

  .grid-item {
    width: 82%;
  }

  .grid-item h2 {
    font-size: 2rem;
  }

  .grid-item p {
    padding: 0rem 0 3rem;
    font-size: 1.2rem;
  }

  .logo-container a {
    margin: 0 5%;
  }

  .photo .overlay {
    width: 80%;
    height: auto;
  }

  .photo img {
    width: 20rem;
  }

  .register-form form {
    width: 100%;
  }

  .photo img {
    width: 69%;
  }

  section.photo {
    height: 46rem;
  }

  section.photo-right {
    height: 38rem;
  }

  .photo .overlay {
    top: 13rem;
  }

  .photo .overlay.overlay-2 {
    top: 10.5rem;
    height: auto;
  }

  .photo .overlay p {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .overlay h2 {
    line-height: 1;
    font-size: 2.4rem;
  }

  .photo-right img,
  .photo-left img {
    left: 0;
  }

  .photo-left .overlay,
  .photo-right .overlay {
    left: 10%;
    padding: 1.25rem;
  }

  section.cta {
    margin-top: 0;
    margin-bottom: 1rem;
  }

  section.cta h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hide-mobile {
    display: none;
  }

  footer {
    padding: 1rem;
  }

  .copyright {
    margin-top: 2rem;
  }

  .footer-container {
    display: block;
  }

  .register-sessions {
    height: auto;
  }

  .register-sessions .session {
    display: block;
    float: unset;
    width: 85%;
    margin: .5rem auto;
    padding: 0 25px;
  }

  .register-form form {
    margin: 2rem auto 3rem;
    width: 85%;
  }

  nav {
    height: 0;
    background-color: white;
    opacity: 0;
    transition: padding-top 0.3s ease-in-out, height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 100;
    width: 100%;
    position: fixed;
    padding-top: 0;
    overflow: hidden;
    top: 0;
    bottom: 0;
  }

  nav.open {
    padding-top: 3rem;
    z-index: 1000;
    opacity: 1;
    height: 100%;
    transition: padding-top 0.3s ease-in-out, height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  nav a {
    display: block;
    padding: 1rem 3rem;
    font-size: 1.3rem;
  }

  nav.open #close-nav {
    display: inline;
  }

  #hamburger-icon {
    display: flex;
  }
}
