.container {
  max-width: 1280px;
  padding: 0 1.5rem;
  margin: auto;
  overflow: hidden;
}

.btn-main,
.btn-light,
.btn-light-border,
.btn-dark {
  display: inline-block;
  padding: 0.8rem 2rem;
  transition: all 0.5s;
  border: none;
  cursor: pointer;
  border-radius: 3px;
}

.btn-main {
  color: #333;
  background-color: #6fd448;
  border: solid 1px transparent;
  font-size: 1rem;
}
.btn-main:hover {
  background-color: #f4f4f4;
  color: #333;
  border: solid 1px #333;
}

.btn-light {
  color: #333;
  background-color: #f4f4f4;
}
.btn-light-border {
  border: solid 1px #000;
  color: #000;
}
.btn-light-border:hover {
  border: solid 1px transparent;
}

.btn-dark {
  color: #f4f4f4;
  background-color: #333;
}

.bg-main {
  background: #6fd448;
  color: #000;
}

.bg-dark {
  background: #333;
  color: #fff;
}

.bg-light {
  background: #f4f4f4;
  color: #000;
}

.bg-medium {
  background: #ccc;
  color: #000;
}

button[class^='btn-']:hover,
a[class^='btn-']:hover,
input[class^='btn-']:hover {
  background-color: #6fd448;
}

.lead {
  font-size: 1.3rem;
  margin: auto;
  margin-bottom: 2rem;
  font-weight: bold;
}

.invisible {
  color: transparent;
  position: absolute;
}

.project-video {
  border-top: solid 4px #7c7b7b;
  border-bottom: solid 4px #7c7b7b;
  padding: 20px;
  margin-bottom: 15px;
}

.project-video h3 {
  text-transform: none;
  font-family: 'Dosis', sans-serif;
  margin-bottom: 15px;
  font-weight: 500;
}

.project-video h3 a {
  text-decoration: underline;
  color: #000;
}

.other-projects {
  margin-bottom: 15px;
}

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

.py-1 {
  padding: 1rem 0;
}

.py-2 {
  padding: 2rem 0;
}

.py-3 {
  padding: 3rem 0;
}

.py-4 {
  padding: 4rem 0;
}

.my-1 {
  margin: 1rem 0;
}

.my-2 {
  margin: 2rem 0;
}

.my-3 {
  margin: 3rem 0;
}

.my-4 {
  margin: 4rem 0;
}

.mt {
  margin-top: 0.5rem;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mt-4 {
  margin-top: 4rem;
}

.mt-n1 {
  margin-top: -1rem !important;
}

.mt-n2 {
  margin-top: -2rem !important;
}

.mt-n3 {
  margin-top: -3rem !important;
}

.mt-n4 {
  margin-top: -4rem !important;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  display: block;
  padding-bottom: 0.5rem;
  text-align: center;
  font-weight: 100;
  text-transform: uppercase;
}

.section-title.white {
  font-size: 1.7rem;
  display: block;
  padding-bottom: 0;
  margin: auto;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  width: 15%;
}

.bottom-line {
  height: 2px;
  width: 3rem;
  background: #6fd448;
  display: block;
  margin: 0 auto 1rem auto;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Dosis', sans-serif;
  line-height: 1.6;
  background: #fff;
}

a {
  text-decoration: none;
  color: #fff;
}

a:hover {
  text-decoration: underline;
  cursor: pointer;
  color: #fff;
}

ul {
  list-style: none;
}

h2,
h3,
h4 {
  text-transform: uppercase;
}

img {
  width: 100%;
}

#logo a {
  font-family: 'Racing Sans One', cursive;
  font-size: 3rem;
  color: #f4f4f4 !important;
  text-transform: none !important;
  border-bottom: none !important;
}

#logo a:hover {
  border-bottom: none !important;
}

#main-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
}
#main-nav ul {
  display: flex;
}
#main-nav li {
  padding: 1rem 1.5rem;
}
#main-nav a {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  border-bottom: 3px transparent solid;
  padding-bottom: 0.5rem;
  transition: border-color 0.5s;
}
#main-nav a:hover {
  border-color: #ccc;
}
#main-nav a.current {
  border-color: #6fd448;
}

#header-home {
  background: url('../img/showcase.jpg') no-repeat center right/cover;
  height: 70vh;
  color: #fff;
}
#header-home .header-content {
  text-align: center;
  padding-top: 15%;
}
#header-home .header-content a:hover {
  text-decoration: none;
}
#header-home .header-content h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin: -3.2rem auto 2rem;
  width: 50%;
}

#header-home #logo {
  margin-top: -0.5rem;
}

#header-inner {
  background: url('../img/showcase.jpg') no-repeat 60% 10% / cover;
  height: 5.5rem;
  border-bottom: 3px solid #6fd448;
}
#header-inner #logo {
  margin-top: -0.5rem;
}

.txt-type .txt {
  border-right: 0.2rem solid #fff;
}

.txt-type .txt.blink {
  padding-right: 0.5rem;
  animation: cursor-blink 1.5s steps(2) infinite;
}

.txt-type .txt.blink.stop-blink {
  animation: none;
  border-right: 0.2rem solid transparent;
}

#home-a .home-a {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

#home-a .home-icon {
  border-radius: 50%;
  background: #333;
  color: #fff;
  padding: 2rem;
  width: 70px;
  height: 70px;
  line-height: 70px;
  text-align: center;
  position: relative;
  transition: all 1s;
}
#home-a .home-item:hover .home-icon {
  background: #6fd448;
  width: 90px;
  height: 90px;
  line-height: 90px;
}
#home-a .home-item p {
  font-size: 1.1rem;
}

.diploma-link a {
  color: #000 !important;
}

.diploma-link a:hover {
  text-decoration: underline;
}

section.about-articles .bottom-line.courses-line {
  margin-top: 5px !important;
  margin-bottom: 35px !important;
}

.articles-container {
  width: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 50px;
  margin-inline: auto;
}

.articles-container.articles-1 {
  grid-template-columns: 1fr 1fr 1fr;
}

.articles-container .article a img {
  width: 100%;
  max-width: 624px;
}

.articles-container .article {
  background-color: #fff;
  border: #000 solid 1px;
  /* margin-right: 55px; */
  display: inline-block;
  overflow: hidden;
}
.articles-container .article a img {
  display: block;
  transition: 0.5s ease-in-out;
}
.articles-container .article:hover img {
  transform: scale(0.95);
}

#about-a .about-info {
  display: grid;
  grid-template-areas: 'bioimage bioimage bio bio bio';
  gap: 1.2rem;
}

#about-a .bio-image {
  grid-area: bioimage;
}

#about-a .bio {
  grid-area: bio;
  border-left: 3px solid #6fd448;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 3rem;
}
#about-a .bio a {
  font-size: 1rem;
}
#about-a .bio p {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

#about-b h4 {
  margin-top: 1rem;
}

#about-b .progress {
  overflow: hidden;
  height: 20px;
  background: #ccc;
  border-radius: 5px;
  margin-bottom: 0.6rem;
}
#about-b .progress div {
  height: 100%;
  color: #fff;
  text-align: center;
  background: #6fd448;
}

#about-c {
  padding-left: 3rem;
}
#about-c .about-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
#about-c img {
  width: 70%;
}

#about-d .container {
  display: grid;
  grid-template-areas:
    'title title title title title'
    'line line line line line'
    'diploma1 diploma2 diploma3 diploma4 diploma5'
    'diploma6 diploma7 diploma8 diploma9 diploma10';
  gap: 1.2rem;
}

#about-d .section-title {
  grid-area: title;
}

#about-d .bottom-line {
  grid-area: line;
}

#about-d .courses-line {
  margin-top: -1.4rem;
}

#about-d .diploma-1 {
  grid-area: diploma1;
}

#about-d .diploma-2 {
  grid-area: diploma2;
}

#about-d .diploma-3 {
  grid-area: diploma3;
}

#about-d .diploma-4 {
  grid-area: diploma4;
}

#about-d .diploma-5 {
  grid-area: diploma5;
}

#about-d .diploma-6 {
  grid-area: diploma6;
}

#about-d .diploma-7 {
  grid-area: diploma7;
}

#about-d .diploma-8 {
  grid-area: diploma8;
}

#about-d .diploma-9 {
  grid-area: diploma9;
}

#about-d .diploma-10 {
  grid-area: diploma10;
}

#about-d .lni {
  color: #6fd448;
  margin: 1rem;
}

#contact-a .text-fields {
  display: grid;
  grid-template-areas:
    'name email'
    'subject phone'
    'message message'
    'captcha captcha';
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
#contact-a .text-fields .captcha {
  text-align: center;
  width: 100%;
  grid-area: captcha;
}
#contact-a .text-fields .captcha div {
  display: inline-block;
  margin: 0 auto;
}
#contact-a .text-fields .name-input {
  grid-area: name;
}
#contact-a .text-fields .subject-input {
  grid-area: subject;
}
#contact-a .text-fields .email-input {
  grid-area: email;
}
#contact-a .text-fields .phone-input {
  grid-area: phone;
}
#contact-a .text-fields .message-input {
  grid-area: message;
  height: 100px;
  margin-bottom: 1.5rem;
}
#contact-a .text-fields .text-input {
  padding: 0.5rem 1rem;
}

#contact-a form {
  width: 60%;
  margin: 0 auto;
}

#contact-a button[type='submit'] {
  width: 40%;
}

#contact-b .contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

#contact-b .contact-info div {
  text-align: center;
}

#contact-b .contact-info a {
  color: #fff;
}

#main-footer {
  background: #333;
  color: #fff;
  height: 5rem;
}
#main-footer .footer-content {
  display: flex;
  justify-content: space-between;
  height: 5rem;
  align-items: center;
}
#main-footer .footer-content .social .fab,
#main-footer .footer-content .social .fas {
  margin-right: 1rem;
  border: 2px #fff solid;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  line-height: 30px;
  text-align: center;
  color: #fff;
}
#main-footer .footer-content .social .fab:hover,
#main-footer .footer-content .social .fas:hover {
  background: #6fd448;
}

@media (max-width: 1600px) {
  #header-home .header-content h1 {
    margin-top: -7.5rem;
  }
}

@media (max-width: 1200px) {
  .item-text-description {
    display: none;
  }
  #about-a .bio-image {
    grid-area: bioimage;
    width: 30%;
    margin: auto;
    border-radius: 50%;
  }
  #about-a .about-info {
    display: grid;
    grid-template-areas:
      'bioimage bioimage bioimage'
      'bio bio bio' !important;
  }
}

@media (max-width: 1000px) {
  .hide-md {
    display: none;
  }

  .section-title.white {
    width: 100%;
  }

  #about-a .bio-image {
    width: 60%;
  }

  #header-home .header-content h1 {
    margin-top: -15px;
    font-size: 3rem;
    width: 50%;
  }

  #header-home {
    height: 30rem;
  }
  #header-home #logo {
    margin-top: -0.8rem !important;
  }
  #header-home .header-content {
    padding-top: 5rem;
  }
  #header-inner #logo {
    margin-top: -0.8rem !important;
  }
  .about-articles h2.section-title {
    font-size: 1.5rem;
  }

  .articles-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .articles-container .article {
    margin-right: 0;
    margin-bottom: 25px;
  }

  .articles-container .article:first-of-type {
    margin-left: 0;
  }

  .articles-container .article:last-of-type {
    margin-bottom: 0;
  }

  .articles-container .article a img {
    width: 350px;
  }

  .other-projects,
  .project-video {
    display: none;
  }
  .items {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .item-text-title,
  .item-text-category {
    margin-bottom: -0.5rem !important;
  }
  #about-a .bio {
    grid-area: bio;
    width: 80%;
    padding: 1.5rem 4.5rem;
    margin: auto;
  }
  #about-c .about-logos .mt-4 {
    margin-top: 2rem;
  }
  #contact-a .text-fields {
    grid-template-areas:
      'name'
      'email'
      'phone'
      'subject'
      'message'
      'captcha';
  }

  #about-e .articles-container {
    max-width: 90%;
    margin: 0 auto;
  }
}

@keyframes cursor-blink {
  0% {
    border-right: 0.2rem solid rgba(255, 255, 255, 0.5);
  }
}

@media (max-width: 600px) {
  #main-nav {
    flex-direction: column;
    align-items: center;
  }
  #main-nav li {
    padding: 1rem;
  }
  #header-home {
    height: 26.5rem;
    border-bottom: 3px solid #6fd448;
    background-position: 60% 10%;
  }
  #header-home .header-content {
    padding-top: 1rem;
  }
  #header-home .header-content h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 2.6rem auto 1rem;
    height: 13rem;
    width: 95%;
  }
  #header-home .header-content p {
    font-size: 1rem;
  }
  #header-inner {
    height: 10rem;
  }
  #about-a .bio {
    width: 80%;
    text-align: left;
    padding: 1.5rem 1.5rem;
  }
  #about-a .bio p {
    font-size: 1rem;
  }
  #about-c {
    padding-left: 1.5rem;
  }
  #about-c .about-logos {
    grid-template-columns: repeat(2, 1fr);
  }
  #home-a .home-a,
  #projects-a .items,
  #contact-b .contact-info {
    grid-template-columns: 1fr !important;
  }
  .item-text-title {
    font-size: 1.5rem !important;
  }
  .item-text-category {
    font-size: 0.85rem !important;
  }
  .item-text-description {
    font-size: 1.15rem !important;
  }


  #about-e h2 {
    width: 60%;
    margin-inline: auto;
  }

  #about-d .container {
    grid-template-areas:
      'title'
      'line'
      'diploma1'
      'diploma2'
      'diploma3'
      'diploma4'
      'diploma5'
      'diploma6'
      'diploma7'
      'diploma8'
      'diploma9'
      'diploma10';
  }
  #contact-a form {
    width: 100%;
  }
  #contact-b div {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px #fff dotted;
  }
  #contact-b div:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  #main-footer {
    height: 7rem;
  }
  #main-footer .footer-content {
    flex-direction: column;
    padding: 1rem;
    height: 5rem;
  }
}

@media (max-height: 580px) {
  #header-home .header-content {
    padding-top: 3rem;
  }
}

@media (max-height: 375px) {
  #header-home #logo {
    font-size: 1.5rem;
    margin-top: 0.5rem !important;
  }
  #header-home .header-content h1 {
    font-size: 2rem;
  }
  #header-inner #logo {
    font-size: 1.5rem;
    margin-top: 0.5rem !important;
  }
}
