:root {
  --primary-color: #68a5ff;
  --secondary-color: #FF9900;
  --tertiary-color: #A4C8FD;
  --navbar-color: #2060c0;
  --background-color: #EBF3FE;
  --tab-border-radius: 20px;
  --card-border-radius: 15px;
  --card-margin: 1em;
  --card-margin-mobile: 0.5em;
  --card-body-padding: 1rem;
  --fontsize-h3-tab: 1.2rem;
}

::-webkit-scrollbar {
  width: 13px;
}

::-webkit-scrollbar-track {
  width: 13px;
  background: white;
  border-left: 0 solid white;
  border-right: 0 solid white;
}

::-webkit-scrollbar-thumb {
  background-color: var(--tertiary-color);
  width: 0;
  height: 35%;
  transform: .5s ease;
  cursor: pointer;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  overflow-x: hidden;
  transition: .5s;
}

body section {
  margin: 2.5rem 0;
  padding: 1rem 0;
}

body h2 {
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

body h3 {
  font-weight: 500;
  font-size: 1.4rem;
}

/* ======== NAVBAR ======== */
nav.navbar {
  z-index: 999;
  background-color: white;
  max-width: 100vw;
  padding: 0.1rem 0;
  top: 0;
  box-shadow: 0 10px 30px 0 rgba(0,0,0,0.2);
  position: sticky;
}

nav.navbar .container {
  display: flex;
  justify-content: space-between;
}

nav.navbar .navbar-items {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav.navbar .nav-item {
  display: flex;
  justify-content: space-between;
  width: 30%;
}

nav.navbar .nav-item .nav-link {
  cursor: pointer;
  text-transform: capitalize;
  color: white;
}

nav.navbar .nav-item .nav-link:hover {
  font-weight: 600;
} 

nav.navbar .toggle {
  display: none;
}

nav.navbar .logo {
  display: flex;
  align-items: center;
}

nav.navbar .logo a {
  font-size: 1.3rem;
  color: var(--navbar-color);
}

/* ======== HERO ======== */
div.hero {
  margin-bottom: 50px;
  height: 90vh;
}

.hero .swiper-wrapper {
  height: 100%;
}

.hero .swiper-wrapper .swiper-slide {
  display: grid;
  place-items: center;
  height: 90vh;
  overflow: hidden;
}

.hero .swiper-wrapper .swiper-slide img {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero .swiper-wrapper .swiper-slide::before {
  content: ' ';
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.5);
}

.hero .swiper-wrapper .swiper-slide .caption {
  text-align: center;
}



/* ======== SECTION - ABOUT ======== */
section.about {
  padding-top: 5rem;
  margin-top: 0;
}

section.about h3 {
  transition: .3s all ease;
}

section.about p span.tagline-span {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 2rem;
}

section.about .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

section.about .cards .card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15em;
  height: 11em;
  padding: 2em;
  text-align: center;
  margin: var(--card-margin);
  border: 3px solid #ADCEFF;
  border-radius: var(--card-border-radius);
}

section.about .cards .card .counters {
  display: flex;
  justify-content: center;
  padding: 0;
}

section.about .cards .card h3 {
  font-weight: 700;
  font-size: 40px;
  color: var(--secondary-color);
}

/* ======== SECTION - PROGRAM ======== */
section.program .tab {
  background-color: var(--primary-color);
  border-radius: var(--tab-border-radius);
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

section.program .tab .card {
  width: 23em;
  border-radius: var(--card-border-radius);
  padding: 0;
  margin: 10px;
}

section.program .tab .card .header {
  width: 100%;
  background-color: var(--secondary-color);
  padding: 1rem;
  display: grid;
  place-items: center;
  color: white;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

section.program .tab .card .body {
  padding: var(--card-body-padding);
}

/* ======== SECTION - OUR LEARNING SYSTEM ======== */
.content .background-learning-system {
  background-color: var(--primary-color);
  margin-top: 0 !important;
  padding-top: 0 !important;
} 

section.learning-system {
  padding: 2rem 0;
  margin: 0;
}

section.learning-system .raw {
  display: flex;
}

section.learning-system .raw .col-lg-6 img {
  height: 25rem;
  width: auto;
}

section.learning-system .raw .col-lg-6:nth-child(1) .tagline hr {
  width: 100%;
}

section.learning-system .raw .col-lg-6:nth-child(2) {
  color: white;
}

section.learning-system .raw .col-lg-6:nth-child(2) h2 {
  text-align: start;
}

section.learning-system .raw .col-lg-6:nth-child(2) p {
  text-align: justify;
}

section.learning-system .raw .col-lg-6:nth-child(2) .tagline {
  margin-bottom: 1rem;
}

section.learning-system .raw .col-lg-6:nth-child(2) .tagline .tagline-1 {
  background-color: var(--secondary-color);
  padding: 5px 2rem;
  text-align: start;
  border-radius: 0 20px 20px 0;
  font-weight: 600;
}

section.learning-system .raw .col-lg-6:nth-child(2) .tagline .tagline-2 {
  width: 65%;
}

/* ======== SECTION - BLOG ======== */
section.blog .tagline{
  margin-bottom: 2rem;
}

section.blog .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

section.blog .cards .card {
  width: 45%;
  margin: var(--card-margin);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  height: 35rem;
}

section.blog .cards .card .header {
  display: grid;
  place-items: top;
  width: 100%;
  height: 60%;
  overflow: hidden;
}

section.blog .cards .card .header img {
  object-fit: contain;
}

section.blog .cards .card .body {
  padding: var(--card-body-padding);
}

/* ======== SECTION - TESTIMONIAL ======== */
section.testimonial {
  font-size: .85rem;
}

section.testimonial .cards .card {
  border-radius: var(--card-border-radius);
  padding: var(--card-body-padding);
  border: #ADCEFF 3px solid;
  height: 18rem;
  overflow: auto;
}

section.testimonial .cards .card .profile {
  display: flex;
  align-items: center;
}

section.testimonial .swiper-wrapper {
  padding-bottom: 3rem;
}


/* ======== FOOTER ======== */
footer {
  background-color: var(--primary-color);
  color: white;
  border-radius: 3rem 3rem 0 0;
}

footer #promotion {
  background-color: var(--secondary-color);
  font-weight: 600;
  border-radius: 2rem;
}

footer .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

footer .sub {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

footer table tr td:nth-child(1) {
  display: grid;
  place-items: top;
  width: 2rem;
} 

.footer-bottom {
  display: block;
  z-index: 9999;
  bottom: 0;
  background-color: white;
  height: 5rem;
  border-radius: 3rem 3rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom small {
  color: var(--primary-color);
}

/* ======== FLOATING WHATSAPP ======== */
.floating {
  position: fixed;
  display: grid;
  place-items: center;
  right: 2rem;
  bottom: 2rem;
  z-index: 99;
  transition: all .2s;
}

.floating .icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 100px;
  background-color: #25D366;
  cursor: pointer;
  margin-left: 15px;
  z-index: 99;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
}

.floating:hover {
  transform: scale(0.8);
}

.floating .icon i {
  color: white;
  font-size: 25px;
}

@media screen and (max-width: 992px) 
{
  body {
    font-size: .8rem;
  }

  body h3 {
    font-size: var(--fontsize-h3-tab);
  }

  nav.navbar .container .navbar-items {
    width: 40%;
  }

  nav.navbar .toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 21px;
    width: 28px;
    z-index: 999999;
    cursor: pointer;
  }

  nav.navbar .toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--navbar-color);
    border-radius: 3px;
    transition: all .3s ease-in-out;
  }

  nav.navbar .toggle.hamburger-menu span {
    background-color: white;
  }

  nav.navbar .toggle span:nth-child(1) {
    transform-origin: 0 0;
  }
  nav.navbar .toggle span:nth-child(3) {
    transform-origin: 0 100%;
  }
  nav.navbar .hamburger-menu span:nth-child(1) {
    transform: rotate(45deg);
  }
  nav.navbar .hamburger-menu span:nth-child(2) {
    transform: scale(0);
  }
  nav.navbar .hamburger-menu span:nth-child(3) {
    transform: rotate(-45deg);
  }

  nav.navbar .nav-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: start;
    transform: translateY(-100%);
    width: 100%;
    height: 100vh;
    z-index: 999;
    background-color: rgba(0,0,0,0.7);
    top: 0;
    left: 0;
    padding: 5rem;
    transition: all .3s ease-in-out;
    backdrop-filter: blur(5px);
  }
  nav.navbar .nav-item .nav-link {
    margin: 2rem 0;
    font-size: 1.2rem;
  }
  nav.navbar .nav-item .nav-link a {
    color: white;
  }
  nav.navbar .nav-link .dropdown-item a {
    color: var(--navbar-color);
    font-size: .9rem;
  }
  nav.navbar .navbar-items.nav-slide .nav-item {
    backdrop-filter: blur(5px);
    transform: translateX(0);
  }
  nav.navbar .nav-link .dropdown-item {
    right: 1.2rem;
  }

  /* HERO */
  div.hero {
    margin-bottom: 50px;
    height: 40vh;
  }
  .hero .swiper-wrapper {
    height: 100%;
  }
  
  .hero .swiper-wrapper .swiper-slide {
    display: grid;
    place-items: center;
    height: 40vh;
    overflow: hidden;
  }
  
  .hero .swiper-wrapper .swiper-slide img {
    width: 100%;
    height: auto;
    overflow: hidden;
  }
  
  /* ABOUT */
  section.about {
    padding-top: 1rem;
    margin-top: 0;
  }

  section.about .cards .card {
    width: 12.5em;
    height: 10em;
    padding: 1em;
  }

  section.about .cards .card h3 {
    font-size: 35px;
  }

  section.about .cards .card p {
    font-size: .8rem;
  }

  /* LEVEL */
  .content .background-level {
    margin-top: 10rem;
  } 

  section.level {
    margin-bottom: 0;
  }

  section.level .tab {
    transform: translateY(-20%);
  }

  section.level .tab .cards .card {
    width: 23em;
  }

  section.level .tab .cards .card .arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    height: 1rem;
    width: 1rem;
  }

  section.level .tab .cards .card h3 {
    font-size: var(--fontsize-h3-tab);
  }

  /* PROGRAM */
  section.program .tab .card .header {
    padding: .7rem;
  }

  section.program .tab .card .header h3 {
    font-size: var(--fontsize-h3-tab);
  }

  section.learning-system .raw .col-lg-6:nth-child(1) {
    display: none;
  }

  /* BLOG */
  section.blog .cards .card .header {
    height: 40%;
  }

  section.blog .cards .card {
    height: 25rem;
  }
  
}

@media screen and (max-width: 576px) 
{
  nav.navbar .nav-item {
    padding: 3rem;
  }
  nav.navbar .nav-item .nav-link {
    margin: 1rem 0;
    font-size: 1rem;
  }

  /* HERO */
  div.hero {
    margin-bottom: 30px;
    height: 35vh;
  }
  
  .hero .swiper-wrapper {
    height: 100%;
  }
  
  .hero .swiper-wrapper .swiper-slide {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 35vh;
    overflow: hidden;
  }

  .hero .swiper-wrapper .swiper-slide img {
    width: auto;
    height: 100%;
    overflow: hidden;
  }

  .hero .caption h1 {
    font-size: 1rem;
  }

  .hero .caption p {
    font-size: .7rem;
  }
  
  /* ABOUT */
  section.about .cards .card {
    width: 11em;
    height: 9em;
    padding: .5em;
    margin: var(--card-margin-mobile);
  }

  section.about .cards .card h3 {
    font-size: 30px;
  }

  section.about .cards .card p {
    font-size: .7rem;
  }
  section.level {
    padding: 3.5rem 0;
  }

  section.level .tab {
    transform: translateY(0);
  }

  section.level .tab .cards .card {
    margin: var(--card-margin-mobile);
  }

  section.learning-system .raw .col-lg-6:nth-child(2) .tagline .tagline-1 {
    background-color: var(--secondary-color);
    padding: 5px 1rem;
    text-align: start;
    border-radius: 0 20px 20px 0;
    font-weight: 600;
  }

  /* BLOG */
  section.blog .cards .card {
    width: 100%;
    margin: var(--card-margin-mobile);
  }
  section.blog .cards .card .header {
    height: 60%;
  }

  .content .background-level {
    margin-top: 2rem;
  } 

  /* TESTIMONIAL */
  section.testimonial {
    font-size: .8rem;
  }

  section.testimonial .cards .card {
    height: 19rem;
  }
  
  .footer-bottom {
    height: 3rem;
  }

  footer, .footer-bottom {
    border-radius: 1.5rem 1.5rem 0 0;
  }  

  .modal .modal-body {
    display: flex;
    flex-direction: column;
  }

  .modal .modal-body .modal-image {
    width: 100%;
  }

  .modal .modal-body .modal-description {
    width: 100%;
  }

  .modal .modal-body .modal-description button {
    display: none;
  }
}