/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;

  /*===== Colors =====*/
  --first-color: #142c54;
  --second-color:#b01f24;
  --first-color-light: #cbc7ce;
  --dark-color: #241d23;
  --white-color: #FBFBFB;

  --transition: all 300ms ease;

  /*===== Font and typography =====*/
  --body-font: 'Montserrat', sans-serif;
  /* font-family: 'Montserrat', sans-serif; */
  --nav-name-font-size: 1.5rem;
  --normal-font-size: .9rem;

  /*===== z index =====*/
  --z-fixed: 100;
}

* {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  :root {
    --nav-name-font-size: 1rem;
    --normal-font-size: 1rem;
  }
}

/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-style: var(--first-color-light);
}

h1,
h2,
h3,
h4,
h5 {
    
    line-height: 1.2;
}

h1 {
    font-size: 2.2rem;
    text-transform: uppercase;
    color: var(--second-color);
    margin: 0 auto;
}


h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.4rem;
    color: var(--second-color);
    margin: 0 auto;
}

h4 {
    font-size: 0.9rem;
}

h5 {
    color: var(--dark-color);
    font-size: 0.86rem;
}

p {
    line-height: 1.8;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

.bd-grid {
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}



.container {
  width: 80%;
  margin: 0 auto;
}


section {
  padding: 5rem 0 3rem;
  max-width: 100vw;
  overflow-x: hidden;
}

section h1 {
  text-align: center;
  display: block;
  margin-bottom: 1rem;
}


section .container-line {
  width: 12%;
  margin: 5px auto;
  grid-template-columns: repeat(3, 1fr);

}

section .container-line .f1 {
  margin-bottom: 2rem;
  border-bottom: 5px solid var(--second-color);
}


img {
  width: 100%;
}

.btn {
  padding: 1.4rem 3.4rem;
  font-size: 1.1rem;
  color: var(--dark-color);
  background: var(--white-color);
  display: inline-block;
  margin: 2rem 0;
  transition: var(--transition);
}


.btn:hover {
  box-shadow: 0 1rem 1rem var(--first-color);
}

.btn-primary {
  background: var(--first-color-light);
  color: var(--first-color);
  font-weight: 800;
}

.btn-primary:hover {
  background: var(--second-color);
  color: var(--white-color);
}

 /* ============= SLIDER SECTION ============= */
 .slider{
  max-width: 100vw;
  height: 80vh;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.list{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  width: max-content;
  transition: 1s;
}

.list img{
  max-width: 100vw;
  object-fit: cover;
}

.buttons{
  position: absolute;
  top: 45%;
  left: 5%;
  width: 90%;
  display: flex;
  justify-content: space-between;
}

.buttons button{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff5;
  color:var(--white-color);
  border: none;
  font-family: monospace;
  font-weight: bolder;
}

.dots{
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.dots li{
  list-style: none;
  width: 10px;
  height: 10px;
  background-color: var(--first-color-light);
  margin: 20px;
  border-radius: 20px;
  transition: 1s;
}

.dots li.active{
  width: 30px;
  background-color: var(--second-color);
}



/*===== HEADER =====*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0 1rem;
  background-color: #FFF;
  z-index: var(--z-fixed);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header__logo {
  color: var(--dark-color);
}

.header__toggle {
  font-size: 1.7rem;
  cursor: pointer;
}

/*===== NAV =====*/
@media screen and (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    background-color: var(--white-color);
    width: 80%;
    height: 100vh;
    padding: 2rem 0;
    z-index: var(--z-fixed);
    transition: .5s;
    overflow-y: auto;
  }
}

.nav__content {
  display: flex;
  flex-direction: column;
}

.nav__perfil {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.nav__img {
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.nav__img img {
  width: 70px;
}

.nav__name {
  display: block;
  font-size: var(--nav-name-font-size);
  color: var(--white-color);
}

.nav__item {
  margin-bottom: 2rem;
}

.nav__link {
  color: var(--dark-color);
}

.nav__link:hover {
  color: var(--second-color);
}

/*Show menu*/
.show {
  left: 0;
}

/*Active link*/
.active {
  color: var(--second-color);
}

section .container-line {
  width: 12%;
  margin: 5px auto;
  grid-template-columns: repeat(3, 1fr);

}

section .container-line .f1 {
  margin-bottom: 2rem;
  border-bottom: 5px solid var(--first-color);
}

/* ============= ABOUT SECTION ============= */
section.about {
  background: var(--white-color);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: justify;
}

section.about .container {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 26rem auto;
  gap: 5rem;
}

section.about .container h1 {
  margin: 0;

}

section.about .container .read-more {
  display: block;
  margin: 1rem 0 2rem;
  color: var(--first-color);
  cursor: pointer;
}

section.about .container .read-more:hover {
  text-decoration: underline;
}


/* ============= SERVICES SECTION ============= */
section.services {
  background: var(--first-color-light);
}

section.services .container {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

section.services .container h1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

section.services .container .service {
  background: var(--white-color);
  box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  background-repeat: no-repeat;
  background-position: 0 0.82rem;
  padding: 3rem 2rem;
  text-align: justify;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  cursor: default;
  transition: var(--transition);
}

section.services .container .service h3 {
  text-align: center;
}

section.services .container .service:hover {
  background-position: 0;
}

section.services .container .service span {
  background: var(--first-color);
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white-color);
}

section.services .container .service span:before {
  position: absolute;
  content: "";
  width: 5rem;
  height: 5rem;
}

section.services .container .service:hover span:before {
  width: 5rem;
  width: 5rem;
  border-radius: 50%;
  transition: var(--transition);
}

section.services .container .service ul {
  list-style: var(--color-black);
}

section.services .container .service ul li {
  font-size: 1.1rem;
  line-height: 1.5em;
  letter-spacing: 0.25em;
  text-align: left;
}

section.services .container .service ul li:hover {
  line-height: 1.7em;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-align: center;
  color: var(--color-black);
}
/* ============= BANNER SECTION ============= */
section.banner{
  background: rgb(2,0,36);
  background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%); 
  height: 60vh;
  padding: 2rem 1.5rem;
}

section.banner .container{
  color: var(--white-color);
}
section.banner .container .training h1 a{
  color: var(--second-color);
}
section.banner .container .training h4{
  font-size: 1.2rem;
  color: var(--white-color);
  font-weight: 600;
}


/* ============= BLOG SECTION ============= */
section.blog .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.date {
    color: var(--second-color);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

section.blog .container article a{
  color: var(--dark-color);
  margin-top: 1.5rem;
}


section.blog .container article a:hover{
  color: var(--second-color);
  font-weight: 400;
  cursor: pointer;
}

section.blog .container article p{
    color: var(--dark-color);
    font-size: 0.85rem;
    text-align: justify;
    line-height: 1.2em;
}


section.blog .page {
    width: 80%;
    margin: 0 auto;
}

section.blog .page article{
    text-align: justify;
    line-height: 2em;
}

section.blog .page .comment{
    margin-top: 2rem;
}

 .register{
    font-weight: 600;
}

hr {
    margin-top: 2rem;
    border-top: 1px solid gray;
}


/* ============= CONTACT ============= */
section.contact {
  /* background: linear-gradient(0deg, #142c54 10px, transparent 10px); */
  padding: 0;
  max-width: 100vw;
}

section.contact .overlay {
  width: 100%;
  height: 100%;
  background: rgba(20,44,84, 0.3);
  padding: 7rem 0 7rem;
}

section.contact .container {
  width: 40%;
  margin-top: 3rem;
}

section.contact .container h1 {
  margin: 0;
  color: var(--first-color);
}

section.contact .container p {
  text-align: center;
  color: var(--dark-color);
  opacity: 0.8;
  margin-top: 0.5rem;
}

section.contact form {
  margin-top: 3rem;
}

section.contact form input,
section.contact form textarea {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 1.6rem;
  border: 1px solid var(--dark-color);
  background: transparent;
  color: var(--dark-color);
  transition: var(--transition);
}

section.contact form textarea {
  height: 10rem;
}

section.contact form input:focus,
section.contact form textarea:focus {
  background: var(--white-color);
  color: var(--dark-color);
}

section.contact form input::placeholder,
section.contact form textarea::placeholder {
  color: var(--dark-color);
}

section.contact form .btn {
  width: 14rem;
  border: none;
  background: var(--second-color);
  color: var(--white-color);
  margin: 2rem auto 0;
}

section.contact form .btn:hover {
  background: var(--first-color);
  cursor: pointer;
  color: var(--white-color);
}

/* ========= FOOTER ==========*/
footer {
  background: var(--first-color);
  padding-top: 5rem;
  font-size: 0.9rem;
  color: var(--first-color-light);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5rem;
  justify-content: space-between;
}

footer .container h4 {
  color: var(--white-color);
  margin-bottom: 1.6rem;
}

footer .container p {
  color: var(--white-color);
}

footer .container .f1 .logo {
  width: 6rem;
}

footer .container .f1 p {
  margin: 1rem 0 2rem;
}

footer .container .f1 .subscribe {
  border: 1px solid var(--white-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3rem;
}

footer .container .f1 .subscribe input {
  background: transparent;
  color: var(--white-color);
  margin-left: 1rem;
}

footer .container .f1 .subscribe input::placeholder {
  color: var(--first-color-light);
}

footer .container .f1 .subscribe button {
  background: var(--white-color);
  transition: all 300ms ease;
  width: 3rem;
  height: 100%;
  font-size: 1.3rem;
}

footer .container .f1 .subscribe button:hover {
  background: var(--first-color);
  color: var(--white-color);
  cursor: pointer;
}

footer .container ul li {
  margin-bottom: 1rem;
}

footer .container ul li a {
  color: var(--first-color-light);
}

footer .container ul li a:hover {
  color: var(--white-color);
  text-decoration: underline;
}


footer .container .f3{
  color: var(--white-color);
}

footer .container .f3 span {
  vertical-align: middle;
  font-size: 1.2rem;
  line-height: 2.2rem;
  margin-right: 0.8rem;
}

footer .container .f4 p {
  margin-bottom: 1.6rem;
}

footer .container .socials {
  display: flex;
  gap: 1rem;
  font-size: 1.4rem;
}

footer .copyright {
  text-align: center;
  margin-top: 4rem;
  padding: 1.2rem 0;
  color: var(--white-color);
  border-top: 0.4px solid var(--first-color-light);
}



/* ===== MEDIA QUERIES=====*/
@media screen and (min-width: 576px) {
  .nav {
    width: 288px;
  }
  
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .header {
    height: calc(var(--header-height) + 1rem);
  }
  .header__logo, .header__toggle {
    display: none;
  }
  .nav {
    width: 100%;
  }
  .nav__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .nav__perfil {
    flex-direction: row;
    text-align: initial;
    margin-bottom: 0;
  }
  .nav__img {
    margin-right: .5rem;
    margin-bottom: 0;
  }
  .nav__img img {
    width: 200px;
  }
  .nav__name {
    color: var(--dark-color);
  }
  .nav__list {
    display: flex;
    align-items: center;
  }
  .nav__item {
    margin: 0 1.5rem;
    padding: 1.4rem 0;
  }
  .nav__link {
    color: var(--dark-color);
  }
  .nav__link:hover {
    color: var(--second-color);
  }
  /*Active link new color*/
  .active {
    color: var(--second-color);
  }

  
}

@media screen and (min-width: 1024px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }



}
