* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
/* font-family: 'Open Sans', sans-serif;
  font-family: 'Ubuntu', sans-serif; */

:root {
  --color-primary: #eef2ed;
  --color-secondary: #66b0f0;
  --color-section: #d9d9d9;
  /* --color-primary-darker: #4bbb7d;
  --color-secondary-darker: #ffbb00;
  --color-tertiary-darker: #fd424b; */
}

body {
  background-color: var(--color-primary);
  font-family: "Open Sans", sans-serif;
  color: #111;
}

h1,
h2 {
  font-family: "Ubuntu", sans-serif;
}

a:active {
  -webkit-tap-highlight-color: transparent;
}

/* Nav bar */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 2rem;
}
.nav div {
  display: flex;
  align-items: center;
  padding: 1rem 0;
}
.nav__logo {
  height: 50px;
  width: 50px;
  margin-right: 10px;
}
.logo_name {
  font-size: 1em;
  font-weight: bold;
}
.nav__links {
  display: flex;
  list-style: none;
}
.nav__link:hover {
  color: var(--color-secondary);
}
.nav__item {
  margin-left: 2rem;
}
.nav__link {
  text-decoration: none;
  color: #111;
}

/* Hero section */
#home {
  position: relative;
  height: 100vh;
  width: 100%;
  /* overflow: hidden; */
}
.hero {
  margin: 2rem 0 0 2rem;
  width: 500px;
}
.hero__title {
  font-size: 2.5em;
  position: relative;
}

.hero__title .highlight {
  display: inline-block;
  color: var(--color-secondary);
}

.hero__title img {
  position: absolute;
  top: -25px;
  right: 90px;
}

.hero__subheading {
  font-size: 1.3em;
  font-weight: 500;
  margin-top: 1rem;
}
.hero__info {
  margin: 1rem 0 2rem 0;
  text-align: justify;
}
.hero__button {
  background-color: var(--color-secondary);
  border: none;
  padding: 10px 50px;
  font-weight: bold;
  color: #fff;
  border-radius: 30px;
  box-shadow: 5px 5px #111;
  margin-top: 5rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}
.hero__button:hover {
  transform: translateY(0px) translateX(0px);
  box-shadow: 0 0 0 0 black;
}

.hero__title,
.hero__subheading,
.hero__info,
.hero__button {
  opacity: 0;
  transform: translateY(20px); /* Start below the original position */
  animation-duration: 1s; /* Adjust the duration as needed */
  animation-fill-mode: forwards;
}

.hero__title {
  animation-name: fadeIn;
  animation-delay: 0s;
}

.hero__subheading {
  animation-name: fadeIn;
  animation-delay: 0.5s;
}

.hero__info {
  animation-name: fadeIn;
  animation-delay: 1s;
}

.hero__button {
  animation-name: fadeIn;
  animation-delay: 1.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero_image {
  position: absolute;
  width: 50%;
  right: 0;
  bottom: 0;
}

/* Section 1 */
.heading-4 {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin: 0.67em 0;
}

.section-tabs {
  position: relative;
  margin-top: 1rem;
}

.tab-wrap {
  position: sticky;
  top: 0px;
  overflow: hidden;
  height: 100vh;
}

.tab-list {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tab-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top: 2px solid #d0f0e4;
}

.tab-top {
  width: 100%;
  padding: 1rem 2rem;
}
h2 {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 300;
  color: #66b0f0;
}

.tab-content {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.tab-content-words {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.p {
  margin: 2rem;
  line-height: 1.4;
  font-weight: 100;
}
.tab-image {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

/* Courses */

#courses {
  border-top: 2px solid #d0f0e4;
  border-bottom: 2px solid #d0f0e4;
}
#courses h2 {
  font-size: 2.5rem;
  font-weight: 700;
}
.accordian {
  background-color: white;
  padding: 1rem 2rem;
  margin: 1rem 2rem;
  border-radius: 4px;
  box-shadow: 1px 1px 5px var(--color-secondary);
  cursor: pointer;
}

.question {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon {
  margin-right: 16px;
  transition: transform 0.2s;
}

.icon.active {
  transform: rotate(-180deg);
}

.answer {
  color: #666;
  max-height: 0;
  overflow: hidden;
  padding-top: 1rem;
  transition: max-height 0.2s;
}

/* Testimonials */
#testimonials {
  border-top: 2px solid #d0f0e4;
  border-bottom: 2px solid #d0f0e4;
  width: 100%;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#testimonials h2 {
  font-size: 2.5rem;
  font-weight: 700;
}
.slideshow-container {
  position: relative;
  width: 100%;
}
.mySlides {
  display: none;
  padding: 80px;
  text-align: center;
}
q {
  font-style: italic;
}
.author {
  color: var(--color-secondary);
  margin-top: 1rem;
}
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -30px;
  padding: 16px;
  color: #888;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
.next {
  position: absolute;
  right: 0;
  border-radius: 3px 0 0 3px;
}

.footer {
  min-height: 50vh;
  display: flex;
  padding: 2rem;
  background-color: var(--color-section);
}
.footer h2 {
  width: 100%;
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: #66b0f0;
}
.contact_info {
  text-align: justify;
  margin-bottom: 2rem;
}
.contact_links {
  display: flex;
  flex-direction: column;
}
.contact_links a {
  text-decoration: none;
  color: #111;
  margin: 0.5rem 0;
}
.contact_links .email {
  text-decoration: none;
  color: #111;
}
.credits {
  margin-top: 2rem;
}
.credits a {
  /* text-decoration: none; */
  color: black;
}

@media (max-width: 768px) {
  /* Hero Section */
  .nav__links {
    display: none;
  }
  .hero {
    width: 300px;
  }
  .hero__title {
    font-size: 1.5em;
  }
  .hero__subheading {
    font-size: 1em;
  }
  .hero__info {
    font-size: 16px;
  }
  .hero__button {
    padding: 10px 30px;
  }
  .hero_image {
    width: 100%;
    right: 0;
    bottom: 0;
  }
  .hero__title img {
    height: 100%;
    position: absolute;
    top: -5px;
    right: 70px;
  }

  /* Section - 1 */
  .tab-top {
    padding: 1rem;
  }
  .tab-content {
    flex-direction: column;
  }
  .tab-content-words {
    width: 100%;
  }
  .p {
    margin: 1rem;
    font-size: 1rem;
  }
  .tab-image {
    width: 100%;
  }

  .card_container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .footer {
    flex-direction: column;
  }
  .contact_info {
    margin: 2rem 0;
  }
}
