@font-face {
  font-family: "SourceSansProNew";
  src: url("https://fonts.gstatic.com/s/sourcesanspro/v14/6xKtdSZaM9iE8KbpRA_hA1QNYuDyPw.woff2")
    format("woff2");
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.academy-page {
  font-family: "Source Sans Pro" !important;
}
.academy-page h1,
.academy-page h2,
.academy-page h3,
.academy-page h4,
.academy-page h5,
.academy-page h6,
.academy-page p,
.academy-page span,
.academy-page div,
.academy-page section {
  font-family: "Source Sans Pro" !important;
}

.academy-page h2 {
  font-size: 45px;
}

.academy-page .text {
  width: 80%;
  font-size: 16px;
}

/* .academy-page h2 {
  font-size: 45px;
} */

/* .academy-page p {
  font-size: 18px;
} */

#main {
  width: 100%;
  padding: 0;
  border: none;
  margin-top: 87px;
}

.w3-margin-left-32 {
  margin-left: 32px;
}

.academy-page .link {
  text-decoration: none;
  font-size: 22px;
  font-weight: 400;
  color: rgba(256, 256, 256, 1);
}

.academy-page .first-link {
  font-size: 30px;
  font-weight: 600;
}

.academy-page .active-link {
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 4px;
}

.academy-page .navigation {
  position: relative;
  width: 100%;
  z-index: 1;
  background-color: rgba(4, 170, 109, 1);
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.4);
}

.academy-page .navigation a:hover,
.academy-page .navigation a:focus,
.academy-page .navigation a:active {
  color: white;
}

.academy-page .container {
  max-width: 1480px;
  margin: 0 auto;
}

.academy-page .accordion-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

.academy-page .bg {
  background: url("images/bg.svg");
  background-repeat: no-repeat;
  background-size: cover;
}

.academy-page .bg-light-gray {
  background: rgba(245, 247, 250, 1);
}

/*w3 utility*/
.w3-font-16 {
  font-size: 16px;
}

.w3-font-32 {
  font-size: 32px;
}

.w3-font-48 {
  font-size: 48px;
}

.w3-font-64 {
  font-size: 64px;
}

.w3-weight-600 {
  font-weight: 600;
}

.w3-weight-500 {
  font-weight: 600;
}

.w3-padding-x-large {
  padding-left: 32px;
  padding-right: 32px;
}

.w3-padding-y-large {
  padding-top: 96px;
  padding-bottom: 96px;
}

.w3-padding-y-xl {
  padding-top: 64px;
  padding-bottom: 64px;
}

.w3-text-center {
  text-align: center;
}

.w3-margin-y-large {
  margin-top: 64px;
  margin-bottom: 64px;
}

/** accordion */
/* Style the buttons that are used to open and close the accordion panel */
.academy-page .accordion {
  background-color: white;
  color: #444;
  cursor: pointer;
  padding: 18px;
  font-size: 20px;
  border: none; /* Ensure no border initially */
  text-align: left;
  outline: none;
  width: 100%;
  margin-top: 16px;
  border-radius: 6px; /* Unified radius */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Initial shadow */
}

.academy-page .active,
.academy-page .accordion:hover {
  background-color: white;
  border-bottom-left-radius: 0; /* Setting to 0 for cleaner transition */
  border-bottom-right-radius: 0;
}

.academy-page .accordion:after {
  font-family: "fontawesome";
  content: "\f054"; /* FontAwesome arrow */
  color: rgba(4, 170, 109, 1);
  font-weight: bold;
  float: right;
  font-size: 16px;
  width: 38px;
  height: 38px;
  padding-left: 14px;
  padding-top: 7.5px;
  border-radius: 50%;
  margin-top: -5px;
}

.academy-page .active:after {
  content: "\f078"; /* Change icon */
  color: white;
  background: rgba(4, 170, 109, 1);
  border-radius: 50%;
  padding-left: 11px;
}

.academy-page .panel {
  padding-right: 36px;
  padding-left: 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border-radius: 0 0 6px 6px; /* Bottom radius only */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Apply shadow to the panel */
  border: none; /* No border until active */
}

.academy-page .panel p {
  font-size: 18px !important;
}

.academy-page .w3-picture {
  max-width: 500px;
  width: 100%;
  height: auto;
  position: relative;

  & .p-1-adjusted {
    float: right;
  }
  & .p-2-adjusted {
    float: left;
    width: 70%;
  }
  & .p-3-adjusted {
    float: right;
  }
  & .p-4-adjusted {
    max-width: 600px;
    float: left;
  }
}

.w3-margin-auto {
  margin: 0 auto;
}

.w3-margin-top-med {
  margin-top: 48px;
}

.w3-margin-top-large {
  margin-top: 64px;
}

.w3-margin-top-xl {
  margin-top: 128px;
}

.w3-margin-top-neg-large {
  margin-top: calc(-100%);
}

.w3-text-bold-600 {
  font-weight: 600;
}

.w3-text-bold {
  font-weight: 600;
}

.academy-page .read-more {
  background: rgba(4, 170, 109, 1);
  color: white;
  border-radius: 8px;
  padding: 10px 40px;
  text-decoration: none;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 18px;
  font-weight: 400;

  &:hover {
    color: white;
    text-decoration: none;
    cursor: pointer;
  }
}

.academy-page .student-count {
  margin-right: 10px;
  font-size: 20px;
  color: #6e6e6e;
}

.academy-page .profile-pictures {
  margin-left: 20px;
}

.academy-page .profile-picture {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: -30px;
  border: 2px solid white; /* For white border between overlapping images */
}

.academy-page .text-column,
.academy-page .image-column {
  width: 50%; /* Each column takes 50% of the container */
  box-sizing: border-box; /* Includes padding inside the width */
}

.academy-page .responsive-image {
  width: 100%; /* Let the image take full width of its column */
  height: auto; /* Maintain the aspect ratio */
}

.academy-page .desktop-section {
  display: block;
}

.academy-page .mobile-section {
  display: none;
}

.academy-page .heart {
  max-width: 160px;
}

/** MEDIA QUERIES */
@media screen and (min-width: 1408px) and (max-width: 1600px) {
  .academy-page .w3-picture {
    /* max-width: 900px; */
    /* width: auto; */
    /* height: auto; */
    /* display: block; */
    /* position: relative; */

    & .p-1-adjusted {
      /* margin-top: calc(-60% + 20px);
      margin-left: 124px; */
    }
    & .p-2-adjusted {
      /* margin-top: calc(-50% + 20px);
      margin-left: -230px; */
    }
    & .p-3-adjusted {
      /* margin-top: calc(-50% + 20px);
      margin-left: 20px; */
    }
    & .p-4-adjusted {
      /* margin-left: -120px; */
    }
  }
}

@media screen and (min-width: 1091px) and (max-width: 1407px) {
  .academy-page .w3-picture {
    max-width: 500px;
    width: auto;
    height: auto;
    display: block;
    position: relative;

    & .p-1-adjusted {
      /* margin-top: calc(-40% + 20px);
      margin-left: 124px; */
    }
    & .p-2-adjusted {
      /* margin-top: calc(-40% + 20px);
      margin-left: -130px; */
    }
    & .p-3-adjusted {
      /* margin-top: calc(-40% + 20px);
      margin-left: 80px; */
    }
    & .p-4-adjusted {
      /* margin-left: -120px; */
    }
  }
}

@media screen and (max-width: 1090px) {
  .mobile-academy .button-container {
    margin-left: 16px !important;
  }

  .mobile-academy .button-container div {
    display: inline-block;
    margin-left: 16px;
  }

  .academy-page .desktop-section {
    display: none;
  }

  .academy-page .mobile-section {
    display: block;
  }

  .academy-page .m-width-30 {
    width: 30%;
  }

  .academy-page .m-width-50 {
    width: 50%;
  }

  .academy-page .m-width-70 {
    width: 70%;
  }

  .w3-padding-y-xl {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .w3-margin-top-neg-large {
    margin-top: -180px;
  }
  .academy-page .w3-half {
    width: 100%;
  }
  .academy-page .w3-picture {
    max-width: 400px;
    width: 100%;
    float: none;
    margin: 0 auto;
    display: block;
    & .p-1-adjusted {
      float: none;
      margin: 0 auto;
      margin-top: 18px;
      margin-bottom: 38px;
    }
    & .p-2-adjusted {
      float: none;
      margin: 0 auto;
      margin-top: 18px;
      margin-bottom: 38px;
    }
    & .p-3-adjusted {
      margin-top: 18px;
      margin-bottom: 38px;
    }
    & .p-4-adjusted {
      margin-top: 18px;
      margin-bottom: 38px;
    }
  }

  .academy-page .academy {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .academy-page .icon-container {
    position: absolute;
    top: 150px;
    width: fit-content;
    right: 20%;
  }

  .academy-page .heart {
    width: fit-content;
    margin-top: 60px;
  }

  .academy-page .hat {
    width: fit-content;
    margin: auto;
    margin-top: 20px;
  }

  .academy-page .cert {
    width: fit-content;
    margin-top: 40px;
    margin-left: 35%;
  }

  .w3-padding-top-reset-mobile {
    padding-top: 0;
  }

  .w3-margin-top-reset-mobile {
    margin-top: 0;
  }
}

@media screen and (max-width: 600px) {
  .mobile-academy .button-container div {
    display: block;
  }

  .academy-page .text {
    width: 100%;
    font-size: 16px;
  }
  .academy-page .academy {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .academy-page .accordion span {
    display: inline-block;
    font-size: 18px;
    width: 85%;
  }
  .w3-margin-top-neg-large {
    margin-top: -180px;
  }
  .academy-page .w3-half {
    width: 100%;
  }
  .academy-page .w3-picture {
    margin: 0;
    & .p-3-adjusted {
      margin-top: 32px;
    }
    & .p-4-adjusted {
      max-width: 500px;
    }
  }

  .academy-page .panel p {
    font-size: 15px !important;
  }

  .academy-page .heart img {
    width: 80px;
  }

  .academy-page .heart {
    margin-top: 190px;
  }

  .academy-page .hat img {
    width: 60px;
  }

  .academy-page .hat {
    margin-top: 20px;
    margin-left: -40px;
  }

  .academy-page .cert img {
    width: 50px;
  }

  .academy-page .cert {
    width: fit-content;
    margin-top: 40px;
    margin-left: 35%;
  }

  .academy-page .mobile-academy p:first-child {
    font-size: 20px;
  }

  .academy-page .icon-container {
    top: 30px;
    right: 10%;
  }

  .academy-page .navigation {
    position: relative;
  }

  .academy-page .navigation a:first-child {
    display: block;
    margin-top: 8px;
  }

  .academy-page .navigation a {
    display: inline-block;
    margin-top: 8px;
  }

  .academy-page h2 {
    font-size: 32px;
  }
}

@media screen and (max-width: 440px) {
  .academy-page .mobile-academy .icon-container {
    margin-top: 20px;
    right: 0px;
  }

  .academy-page .mobile-academy .icon-container .heart {
    margin-left: 20px;
  }
  .academy-page .mobile-academy .icon-container .hat {
    margin-left: 0px;
  }
  .academy-page .mobile-academy .icon-container .cert {
    margin-left: 20px;
  }

  .academy-page .mobile-academy .icon-container .heart img {
    margin-top: 50px;
    width: 50%;
  }
  .academy-page .mobile-academy .icon-container .hat img {
    margin-top: 10px !important;
    width: 50%;
  }
  .academy-page .mobile-academy .icon-container .cert img {
    margin-top: -10px !important;
    width: 60%;
  }

  .academy-page .mobile-academy p {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .academy-page .mobile-academy h2 {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .academy-page p {
    font-size: 16px;
  }

  .padding-left-reset-mobile {
    padding-left: 0;
  }
}

#user-profile-bottom-wrapper {
  display: none;
}

.academy-page .w3-academy-heading {
  font-size: 40px !important;
  font-weight: 600;
  line-height: 52px;
  font-family: "Source Sans Pro", sans-serif;
}

.academy-page .w3-academy-subcopy {
  font-size: 18px !important;
  font-weight: 400;
  line-height: 27px;
  font-family: "Source Sans Pro", sans-serif;
}

.academy-page .w3-academy-hero-large {
  font-size: 64px !important;
  font-weight: 600;
  line-height: 73px !important;
  font-family: "Source Sans Pro", sans-serif;
}

/** Dark mode */

body.darkpagetheme .academy-page h2 {
  color: white !important;
}

body.darkpagetheme .academy-page .boolean_girl {
  background: rgba(45, 55, 72, 1) !important;
}

body.darkpagetheme .academy-page .accordion, body.darkpagetheme .academy-page .panel {
  color: white !important;
  background: rgba(45, 55, 72, 1) !important;
}

/* When darkpagetheme class is on the body, switch the image */
body.darkpagetheme .academy-page .w3-picture .p-1-adjusted {
  content: url('images/academy_1_darkmode.png') !important;
}
body.darkpagetheme .academy-page .w3-picture .p-2-adjusted {
  content: url('images/academy_2_darkmode.png') !important;
}
body.darkpagetheme .academy-page .w3-picture .p-3-adjusted {
  content: url('images/academy_3_darkmode.png') !important;
}
body.darkpagetheme .academy-page .w3-picture .p-4-adjusted {
  content: url('images/academy_4_darkmode.png') !important;
}
