:root {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
    background-color: #361f58 !important;
    color: #000000 !important;
  }
}
/*START BASIC RESET */
* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans", sans-serif;
  background-color: #361f58;
  color: #000000;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

ol,
ul {
  list-style: none;
  padding-inline-start: 0;
  margin-block: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

/*END BASIC RESET */
.grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 1rem;
  max-width: 1400px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 0rem;
  margin-bottom: 0rem;
}
.grid-container:not(.no-padding) {
  padding-left: 1rem;
  padding-right: 1rem;
}
@media screen and (min-width: 768px) {
  .grid-container:not(.no-padding) {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
@media screen and (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 1rem;
  }
}
.grid-container .full-width {
  grid-column: 1/-1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* START HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  max-height: 70px;
  background-color: #361f58;
  padding-block: 0.875rem;
}
.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}
.header__logo {
  display: flex;
  max-width: 2.625rem;
  width: 100%;
}
.header__logo a {
  display: inline-flex;
}
.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 35px;
  height: 35px;
  z-index: 20;
}
@media screen and (max-width: 768px) {
  .header__menu-toggle {
    display: block;
    position: relative;
    z-index: 20;
  }
}
.header__menu-toggle .header__menu-icon {
  display: block;
  width: 25px;
  height: 2.5px;
  background-color: #ffffff;
  position: relative;
  border-radius: 4px;
  transition: background-color 0.3s ease-in-out;
}
.header__menu-toggle .header__menu-icon::before, .header__menu-toggle .header__menu-icon::after {
  content: "";
  display: block;
  width: 25px;
  height: 2.5px;
  background-color: #ffffff;
  position: absolute;
  border-radius: 4px;
  transition: background-color 0.3s ease-in-out;
}
.header__menu-toggle .header__menu-icon::before {
  top: -8px;
}
.header__menu-toggle .header__menu-icon::after {
  top: 8px;
}
.header__menu-toggle.is-active .header__menu-icon {
  background-color: transparent;
}
.header__menu-toggle.is-active .header__menu-icon::before {
  transform: rotate(45deg);
  top: 0;
  background-color: #ffffff;
}
.header__menu-toggle.is-active .header__menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
  background-color: #ffffff;
}
.header__nav-list {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2.5rem;
}
@media screen and (min-width: 768px) {
  .header__nav-list {
    flex-direction: row;
    gap: 3rem;
  }
}
.header__nav-list .header__nav-link {
  color: #ffffff;
  font-size: 2rem;
  line-height: 2.75rem;
  font-weight: 400;
}
@media screen and (min-width: 768px) {
  .header__nav-list .header__nav-link {
    font-size: 0.875rem;
    line-height: 1.125rem;
  }
}
.header__nav-list .header__nav-link:not(.contact), .header__nav-list .header__nav-link:visited:not(.contact) {
  transition: color 0.3s ease-in-out;
}
.header__nav-list .header__nav-link:not(.contact):hover, .header__nav-list .header__nav-link:not(.contact):focus, .header__nav-list .header__nav-link:visited:not(.contact):hover, .header__nav-list .header__nav-link:visited:not(.contact):focus {
  color: rgb(220.4670658683, 232.2934131737, 250.0329341317);
}
.header__nav-list .header__nav-link.contact, .header__nav-list .header__nav-link:visited.contact {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.625rem 1.5rem;
  background-color: #6d9fea;
  border-radius: 3.75rem;
  border: 1px solid #ffffff;
  transition: background-color 0.3s ease-in-out;
}
.header__nav-list .header__nav-link.contact:hover, .header__nav-list .header__nav-link.contact:focus, .header__nav-list .header__nav-link:visited.contact:hover, .header__nav-list .header__nav-link:visited.contact:focus {
  cursor: pointer;
  background-color: rgb(64.4131736527, 129.6826347305, 227.5868263473);
}
@media screen and (max-width: 768px) {
  .header__nav-list .header__nav-link img {
    width: 2rem;
  }
}
@media screen and (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #361f58;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease-in-out;
    z-index: 10;
  }
}
.header__nav.is-active {
  left: 0;
}

/* END HEADER */
/* START MAIN */
main {
  flex: 1 0 auto;
  padding-top: 70px;
  position: relative;
  background: linear-gradient(180deg, #543189 9%, #9a87ea 43%, #3972be 100%);
}

.home,
.resources-illustration {
  display: none;
  --box-width: 700px;
}
@media screen and (min-width: 992px) {
  .home,
  .resources-illustration {
    display: block;
    bottom: 0;
    overflow: hidden;
    position: absolute;
    left: 0;
    width: calc((100vw - var(--box-width)) / 2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
  }
  .home img,
  .resources-illustration img {
    max-width: 290px;
    width: 100%;
  }
}
@media screen and (min-width: 1068px) {
  .home,
  .resources-illustration {
    --box-width: 750px;
  }
}
@media screen and (min-width: 1100px) {
  .home,
  .resources-illustration {
    --box-width: 800px;
  }
}
@media screen and (min-width: 1240px) {
  .home,
  .resources-illustration {
    --box-width: 900px;
  }
}

.home img {
  margin-bottom: -10%;
}

.resources-illustration img {
  transform: scaleX(-1);
}

.hero {
  color: white;
  padding-block: 40px 56px;
}
@media screen and (min-width: 768px) {
  .hero {
    padding-block: 64px 48px;
  }
}
.hero__content {
  grid-column: span 6;
}
@media screen and (min-width: 768px) {
  .hero__content {
    grid-column: span 12;
  }
}
@media screen and (min-width: 992px) {
  .hero__content {
    grid-column: 3/11;
  }
}
@media screen and (min-width: 992px) {
  .hero__content.contact {
    grid-column: 5/9;
    text-align: center;
  }
}
.hero__title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  margin-block: 0 1rem;
}
.hero__description {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero__description strong {
  font-weight: 700;
  color: #ffffff;
}
.hero__btn {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.625rem 1.5rem;
  background-color: #6d9fea;
  border-radius: 3.75rem;
  border: 1px solid #ffffff;
  transition: background-color 0.3s ease-in-out;
}
.hero__btn:hover, .hero__btn:focus {
  cursor: pointer;
  background-color: rgb(64.4131736527, 129.6826347305, 227.5868263473);
}

.cards-section {
  margin-bottom: 56px;
}
@media screen and (min-width: 768px) {
  .cards-section {
    margin-bottom: 120px;
  }
}
@media screen and (min-width: 992px) {
  .cards-section {
    margin-bottom: 200px;
  }
}
.cards-section.grid-container {
  grid-row-gap: 2rem;
}
@media screen and (min-width: 768px) {
  .cards-section.grid-container {
    grid-column-gap: 2rem;
  }
}

.card {
  background-color: #ffffff;
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-gap: 1rem;
}
.card.resources, .card.calendar, .card.register-activity, .card.digital-sign, .card.virtual-courses {
  grid-column: span 6;
}
@media screen and (min-width: 768px) {
  .card.resources {
    grid-column: span 12;
  }
}
@media screen and (min-width: 992px) {
  .card.resources {
    grid-column: 3/11;
  }
}
.card.resources .card__body {
  grid-column: span 8;
}
@media screen and (min-width: 768px) {
  .card.resources .card__body {
    grid-column: span 4;
  }
}
.card.calendar .card__bg-pattern, .card.digital-sign .card__bg-pattern {
  transform: rotate(-15deg) scale(1.1);
  height: 120%;
}
@media screen and (min-width: 576px) {
  .card.calendar, .card.digital-sign {
    grid-column: span 3;
  }
}
@media screen and (min-width: 768px) {
  .card.calendar, .card.digital-sign {
    grid-column: span 6;
  }
}
@media screen and (min-width: 992px) {
  .card.calendar, .card.digital-sign {
    grid-column: 3/7;
  }
}
.card.register-activity .card__bg-pattern, .card.virtual-courses .card__bg-pattern {
  transform: rotate(6deg) scale(1.1);
  height: 120%;
}
@media screen and (min-width: 576px) {
  .card.register-activity, .card.virtual-courses {
    grid-column: span 3;
  }
}
@media screen and (min-width: 768px) {
  .card.register-activity, .card.virtual-courses {
    grid-column: span 6;
  }
}
@media screen and (min-width: 992px) {
  .card.register-activity, .card.virtual-courses {
    grid-column: 7/11;
  }
}
.card.calendar .card__body, .card.register-activity .card__body, .card.digital-sign .card__body, .card.virtual-courses .card__body {
  grid-column: span 8;
}
.card.virtual-courses .card__imgs img {
  max-width: 170px;
}
.card.digital-sign .card__imgs {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.card.digital-sign .card__imgs img {
  max-width: 100%;
  height: auto;
  flex-shrink: 1;
}
.card.digital-sign .card__imgs img:first-child {
  max-width: 180px;
  flex-basis: 180px;
}
.card.digital-sign .card__imgs img:last-child {
  max-width: 116px;
  flex-basis: 116px;
}
@media screen and (min-width: 768px) {
  .card.resources.list .card__body {
    grid-column: span 8;
  }
}
.card.resources.list .card__list-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media screen and (min-width: 768px) {
  .card.resources.list .card__list-items {
    grid-template-columns: repeat(2, 1fr);
  }
}
.card.resources.list .card__list-items .card__list-item {
  border: 1px solid #e7e7e7;
  padding: 1rem;
  border-radius: 0.5rem;
}
.card.resources.list .card__list-items .card__list-item a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.card.resources.list .card__list-items .card__list-item span {
  font-size: 1rem;
  line-height: 1.375rem;
  font-weight: 600;
  color: #000000;
}
.card.resources.other-list .card__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media screen and (min-width: 520px) {
  .card.resources.other-list .card__list {
    flex-direction: row;
  }
}
.card.resources.other-list .card__list .item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
}
.card.resources.other-list .card__list .item span {
  font-size: 1rem;
  line-height: 1.375rem;
  font-weight: 600;
  color: #000000;
}
.card.resources.other-list .card__list .divider {
  width: 100%;
  background-color: #e7e7e7;
  height: 1px;
}
@media screen and (min-width: 520px) {
  .card.resources.other-list .card__list .divider {
    width: 1px;
    height: 100%;
  }
}
@media screen and (min-width: 768px) {
  .card.resources.other-list .card__image {
    display: flex;
    justify-content: flex-end;
  }
  .card.resources.other-list .card__image img {
    max-width: 226px;
  }
}
.card__bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("../img/bg-doodles.svg");
  background-repeat: no-repeat;
  background-position: right bottom;
  pointer-events: none;
  z-index: 0;
}
.card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.card__title {
  color: #000;
  font-size: 2rem;
  font-weight: 700;
  margin-block: 0;
  display: inline-block;
  padding-bottom: 0.3125rem;
  width: fit-content;
  position: relative;
}
.card__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  border-radius: 0.25rem;
  height: 0.3125rem;
  background-color: #6272b5;
}
.card__text {
  color: #000000;
  font-size: 0.875rem;
  margin-block: 0;
  line-height: 1.5;
}
.card__image {
  display: none;
}
@media screen and (min-width: 768px) {
  .card__image {
    display: block;
    grid-column: 6/9;
  }
}
.card__action {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}
.card__action a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.625rem 1.5rem;
  background-color: #6272b5;
  color: #ffffff;
  border-radius: 3.75rem;
  border: 1px solid #ffffff;
  transition: background-color 0.3s ease-in-out;
}
.card__action a:hover, .card__action a:focus {
  cursor: pointer;
  background-color: rgb(73.038961039, 88.8311688312, 154.961038961);
}
.card__action-img {
  display: none;
}
@media screen and (min-width: 768px) {
  .card__action-img {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
  }
  .card__action-img img:first-child {
    max-width: 185px;
  }
  .card__action-img img:last-child {
    max-width: 45px;
  }
}
.card__icon-wrapper img {
  max-height: 90px;
  width: auto;
}
.card--centered .card__body {
  align-items: flex-start;
}

#form-container,
#success-message {
  grid-column: span 6;
}
@media screen and (min-width: 768px) {
  #form-container,
  #success-message {
    grid-column: span 12;
  }
}
@media screen and (min-width: 992px) {
  #form-container,
  #success-message {
    grid-column: 5/9;
  }
}

.form-img {
  display: none;
  grid-column: span 6;
}
@media screen and (min-width: 768px) {
  .form-img {
    display: block;
    grid-column: span 12;
  }
}
@media screen and (min-width: 992px) {
  .form-img {
    grid-column: 4/10;
  }
}
.form-img img {
  display: block;
}

#success-message {
  display: flex;
  flex-direction: column;
  border: 1px solid #e7e7e7;
  border-radius: 1.5rem;
  padding: 1.5rem;
  background-color: rgba(231, 231, 231, 0.6);
}
#success-message p {
  font-size: 1rem;
  line-height: 22px;
  font-weight: 400;
  color: #543189;
  margin-block: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid #e7e7e7;
  border-radius: 1.5rem;
  padding: 1.5rem;
  background-color: rgba(231, 231, 231, 0.6);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group__form-label {
  font-size: 1rem;
  line-height: 22px;
  font-weight: 400;
  color: #000000;
}
.form-group__form-input, .form-group__form-textarea {
  font-family: "Noto Sans", serif;
  font-size: 1rem;
  line-height: 22px;
  font-weight: 400;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #000000;
  background-color: #ffffff;
  outline: none;
  border: none;
}
.form-group__form-input::placeholder, .form-group__form-textarea::placeholder {
  color: #b3b3b3;
}
.form-group__form-textarea {
  resize: none;
}
.form__button {
  display: flex;
  border-radius: 1.875rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #ffffff;
  background-color: #6d9fea;
  transition: background-color 0.3s ease-in-out;
  outline: none;
  border: none;
}
.form__button:hover, .form__button:focus {
  cursor: pointer;
  background-color: rgb(86.7065868263, 144.3413173653, 230.7934131737);
}

/* END MAIN */
/* START FOOTER */
.footer {
  background-color: #361f58;
  color: white;
  padding: 3rem 0;
  margin-top: auto;
}
.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.footer__social {
  display: flex;
  gap: 2rem;
  padding-bottom: 2rem;
  width: 100%;
  justify-content: center;
  border-bottom: 1px solid #ffffff;
}
.footer__social-link {
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}
.footer__social-link:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}
.footer__social-icon {
  width: 28px;
  height: 28px;
  display: block;
}
.footer__partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
@media screen and (min-width: 768px) {
  .footer__partners {
    flex-direction: row;
  }
}
.footer__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}
.footer__logos-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
@media screen and (min-width: 768px) {
  .footer__logos-wrapper {
    flex-direction: row;
  }
}
.footer__logo {
  height: 40px;
  width: auto;
}

/* END FOOTER */
