/* Hero */
#hero {
  max-height: 100vh;
}

.glider-slide {
  cursor: pointer;
}

@media screen and (min-width: 1280px) {
  #hero {
    max-height: calc(100vh - (52px + 24px));
  }

  .glider.glider-1 {
    max-height: calc(100vh - (52px + 24px));
  }
}

/* About */
#about {
  padding: 48px 16px;
  background: linear-gradient(
    to bottom,
    var(--background-color) 0%,
    rgba(1, 60, 142, 0) 100%
  );
}

#about p {
  text-align: center;
  margin-bottom: 32px;
  font-size: 20px;
}

#about p span {
  font-weight: 600;
}

#about .stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

#about .stats .stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(1, 60, 142, 0.05);
  padding: 24px;
  border-radius: 24px;
}

#about .stat .number {
  font-size: 28px;
  font-weight: 700;
}

#about .stat .label {
  font-size: 20px;
}

@media screen and (min-width: 600px) and (max-width: 1279px) {
  #about {
    padding: 80px 64px;
  }

  #about .stats {
    flex-flow: row wrap;
    gap: 16px;
  }

  #about .stats .stat {
    flex: 0 0 calc(50% - 8px); /* half width minus half the gap */
  }
}

@media screen and (min-width: 1280px) {
  #about {
    padding: 80px 120px;
  }

  #about .stats {
    flex-direction: row;
  }

  #about .stats .stat {
    flex: 1 0;
  }
}

/* Programs */
#programs {
  padding: 48px 16px;
}

#programs-slider {
  position: relative;
}

#programs-slider .slider-wrapper {
  display: flex;
  gap: 16px;
  padding: 0 16px;
  height: 100%;
  width: 100%;
  overflow-x: scroll;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

#programs-slider .btn {
  z-index: 2;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  background-color: rgba(1, 60, 142, 0.7);
  border-radius: 16px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  cursor: pointer;
}

#programs-slider .btn img {
  opacity: 0.7;
}

#programs-slider .left {
  left: 8px;
}

#programs-slider .left img {
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
}

#programs-slider .right {
  right: 8px;
}

#programs-slider .slider-wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar for WebKit browsers */
}

#programs .card {
  position: relative;
  flex-shrink: 0;
  display: flex;
  padding: 0 8px;
  flex-direction: column;
  width: 225px;
}

#programs .card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
}

#programs .card .info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  flex-grow: 1;
}

#programs .card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

#programs .card p {
  font-size: 14px;
}

#programs .card .info button {
  width: 100%;
  padding: 4px 12px;
  background-color: #fff;
  color: var(--primary-color);
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  transition: var(--transition);
}

#programs .card .info button:hover {
  background-color: var(--primary-color);
  color: #fff;
}

#programs .card .info button:active {
  background-color: var(--hover);
}

@media screen and (min-width: 600px) {
  #programs {
    padding: 80px 64px;
  }

  #programs-slider {
    padding: 0 64px;
  }

  #programs-slider .slider-wrapper {
    padding: 0;
  }

  #programs .card {
    width: 288px;
  }

  #programs .card .info {
    padding: 16px;
  }

  #programs .card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
  }

  #programs .card p {
    font-size: 16px;
  }
}

@media screen and (min-width: 1280px) {
  #programs {
    padding: 80px 120px;
  }

  #programs-slider {
    padding: 0 120px;
  }
}

/* Testimonials */
#testimonials-slider {
  position: relative;
}

#testimonials-slider .slider-wrapper {
  display: flex;
  gap: 16px;
  padding: 0 16px;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

#real-container {
  display: flex;
  gap: 16px;
  animation: scroll 45s linear infinite;
  -webkit-animation: scroll 45s linear infinite;
}

.sub-container1,
.sub-container2 {
  display: flex;
  gap: 16px;
}

@media screen and (max-width: 600px) {
  #real-container {
    animation: none;
  }

  .sub-container2 {
    display: none;
  }

  #testimonials-slider .slider-wrapper {
    overflow-x: scroll;
  }
}

#testimonials-slider .slider-wrapper:hover #real-container {
  animation-play-state: paused;
}

#testimonials-slider .slider-wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar for WebKit browsers */
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
  }
}

#testimonials .card {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  width: 225px;
  background-color: var(--primary-color);
  border-radius: 16px;
  box-shadow: inset 0px 0px 16px #fff;
}

#testimonials .card .review {
  margin-bottom: 12px;
}

#testimonials .card .review div {
  margin-bottom: 8px;
}

#testimonials .card .review p {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

#testimonials .card .student {
  display: flex;
  flex-direction: column;
}

#testimonials .card .student .name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

#testimonials .card .student .title {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

@media screen and (min-width: 600px) {
  #testimonials-slider::before,
  #testimonials-slider::after {
    content: "";
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
  }

  #testimonials-slider::before {
    background: linear-gradient(
      to right,
      #ffffff 0%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  #testimonials-slider::after {
    right: 0;
    left: auto;
    background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
  }

  #testimonials-slider .slider-wrapper {
    padding: 0 64px;
  }

  #testimonials .card {
    width: 288px;
    padding: 24px;
  }
}

/* Gallery */
#gallery {
  background: linear-gradient(
    to bottom,
    rgba(1, 60, 142, 0) 0%,
    var(--background-color) 100%
  );
}

#gallery .images {
  overflow: hidden;
  margin: 0 auto;
  height: calc(250px * 2 + 16px); /* 2 rows, 250px height each, 16px gap */
  width: 100%;
  max-width: calc(200px * 5 + 16px * 4);
  user-select: none;
}

#gallery .images > div:first-child {
  margin-bottom: 16px;
}

#gallery .images .row-1,
#gallery .images .row-2 {
  display: flex;
  gap: 16px;
  width: fit-content;
}

#gallery .images .row-container {
  display: flex;
  justify-content: end;
}

#gallery .images .row-1 {
  animation: moveRightLeft 60s linear infinite;
  -webkit-animation: moveRightLeft 60s linear infinite;
}

#gallery .images .row-2 {
  justify-content: end;
  animation: moveLeftRight 60s linear infinite;
  -webkit-animation: moveLeftRight 60s linear infinite;
}

#gallery .images .row-1:hover,
#gallery .images .row-2:hover {
  animation-play-state: paused;
}

#gallery .images .row-1 div,
#gallery .images .row-2 div {
  background-position: center center;
  background-size: cover;
  flex-shrink: 0;
  height: 250px;
  width: 200px;
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
}

#gallery .images div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
}

@media screen and (min-width: 600px) {
  #gallery {
    padding: 80px 64px;
  }

  #gallery .images {
    height: calc(280px * 2 + 16px); /* 2 rows, 280px height each, 16px gap */
    max-width: calc(220px * 5 + 16px * 4);
  }

  #gallery .images .row-1 div,
  #gallery .images .row-2 div {
    height: 280px;
    width: 220px;
  }
}

@media screen and (min-width: 1280px) {
  #gallery {
    padding: 80px 120px;
  }

  #gallery .images {
    height: calc(300px * 2 + 16px); /* 2 rows, 300px height each, 16px gap */
    max-width: calc(250px * 5 + 16px * 4);
  }

  #gallery .images .row-1 div,
  #gallery .images .row-2 div {
    height: 300px;
    width: 250px;
  }
}

@keyframes moveRightLeft {
  to {
    transform: translateX(calc(-50% - 8px));
    -webkit-transform: translateX(calc(-50% - 8px));
    -moz-transform: translateX(calc(-50% - 8px));
    -ms-transform: translateX(calc(-50% - 8px));
    -o-transform: translateX(calc(-50% - 8px));
  }
}

@keyframes moveLeftRight {
  to {
    transform: translateX(calc(50% + 8px));
    -webkit-transform: translateX(calc(50% + 8px));
    -moz-transform: translateX(calc(50% + 8px));
    -ms-transform: translateX(calc(50% + 8px));
    -o-transform: translateX(calc(50% + 8px));
  }
}

/* Contact */
#contact {
  padding-right: 16px;
  padding-left: 16px;
  background: linear-gradient(
    to bottom,
    rgba(1, 60, 142, 0.1) 0%,
    rgba(1, 60, 142, 0.2) 100%
  );
}

#contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#contact form > div:first-child {
  text-align: center;
}

#contact form > div:first-child h2 {
  margin-bottom: 16px;
}

#contact form > div:first-child p {
  margin-bottom: 32px;
  font-size: 20px;
}

#contact form > div:first-child ul {
  display: flex;
  justify-content: center;
  gap: 16px;
}

#contact form > div:first-child ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 52px;
  border-radius: 8px;
  background: linear-gradient(
    to bottom,
    rgba(1, 60, 142, 0.1) 0%,
    rgba(1, 60, 142, 0.4) 100%
  );
  transition: var(--transition);
}

#contact form > div:first-child ul li:hover {
  background: linear-gradient(
    to bottom,
    rgba(1, 60, 142, 0.2) 0%,
    rgba(1, 60, 142, 0.5) 100%
  );
}

#contact form > div:first-child ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

#contact form > div:nth-child(2),
#contact form > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

#contact form .input {
  display: flex;
  flex-direction: column;
}

#contact form .input label {
  margin-bottom: 8px;
}

#contact form .input input,
#contact form .input textarea {
  width: 100%;
  padding: 8px 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  border: 1px solid var(--text-secondary);
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

#contact form > div:last-child button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  transition: var(--transition);
}

#contact form > div:last-child button:hover {
  background-color: var(--hover);
}

#contact form > div:last-child button:active {
  background-color: var(--active);
}

#contact form > div:last-child button img {
  display: none;
  animation: spin 1s linear infinite;
}

#contact form > div:last-child button.loading {
  cursor: not-allowed;
  opacity: 0.7;
}

#contact form > div:last-child button.loading img {
  display: block;
}

#contact form > div:last-child button.loading span {
  display: none;
}

@media screen and (min-width: 600px) and (max-width: 1279px) {
  #contact {
    padding: 80px 64px;
  }

  #contact form {
    flex-flow: row wrap;
    align-items: stretch;
  }

  #contact form > div:first-child {
    width: 100%;
  }

  #contact form > div:nth-child(2),
  #contact form > div:last-child {
    flex: 0 0 calc(50% - 8px); /* half width minus half the gap */
  }

  #contact form > div:last-child .input {
    flex-grow: 1;
  }

  #contact form > div:last-child .input textarea {
    height: 100%;
  }

  #contact form > div:last-child button {
    height: 38px;
  }
}

@media screen and (min-width: 1280px) {
  #contact {
    padding: 80px 120px;
  }

  #contact form > div {
    width: auto;
    flex: 1 0;
  }

  #contact form > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: start;
  }

  #contact form > div:first-child h2 {
    text-align: start;
    padding: 0;
  }

  #contact form > div:first-child ul {
    display: flex;
    justify-content: space-between;
  }

  #contact form {
    flex-flow: nowrap;
    align-items: stretch;
  }

  #contact form > div:last-child .input {
    flex-grow: 1;
  }

  #contact form > div:last-child .input textarea {
    height: 100%;
  }

  #contact form > div:last-child button {
    height: 38px;
  }
}

/* Map */
#location {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(1, 60, 142, 0.2) 0%,
    rgba(1, 60, 142, 0.4) 100%
  );
}

#location .map-container {
  width: 100%;
  border: 8px solid var(--primary-color);
  border-bottom: none;
  border-radius: 48px 48px 0px 0px;
  -webkit-border-radius: 48px 48px 0px 0px;
  -moz-border-radius: 48px 48px 0px 0px;
  -ms-border-radius: 48px 48px 0px 0px;
  -o-border-radius: 48px 48px 0px 0px;
}

#location .map-container iframe {
  height: 524px;
  width: 100%;
  border-radius: 40px 40px 0px 0px;
  -webkit-border-radius: 40px 40px 0px 0px;
  -moz-border-radius: 40px 40px 0px 0px;
  -ms-border-radius: 40px 40px 0px 0px;
  -o-border-radius: 40px 40px 0px 0px;
}

@media screen and (min-width: 600px) {
  #location {
    padding: 80px 64px 0;
  }
}

@media screen and (min-width: 1280px) {
  #location {
    padding: 80px 120px 0;
  }

  #location .map-container iframe {
    height: 600px;
  }
}
