@font-face {
  font-family: "SelfieBlack";
  src: url(/fonts/Selfie_Black.otf);
}

:root {
  --first-color: #7c3143;
  --second-color: #f6d9da;
  --white: #ffffff;
  --black: #000000;
  --title-font: "SelfieBlack";
  --text-font: Montserrat, "sans-serif";
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: var(--text-font);
}

html {
  scroll-behavior: smooth;
}

.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
  width: 90% !important;
}

@media (max-width: 768px) {
  .container {
    width: 95% !important;
  }
}

.img-responsive {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--second-color);
}

/* TOP HEADER */

/* .top-header {
  padding: 10px 50px;
  width: 100%;
  background-color: var(--second-color);
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 21;
}

.top-header a {
  text-decoration: none;
  color: var(--white);
  font-size: 14px;
}

.top-header .top-header-contact ul{
  display: flex ;
  gap: 15px;
}

.top-header .top-header-contact i {
  margin-right: 10px;
}

.top-header .social-top-header ul {
  display: flex;
  gap: 15px;
}

.top-header .social-top-header i {
  color: var(--second-color);
}

.top-header .social-top-header a {
  padding: 3px 8px;
  background-color: var(--white);
  border-radius: 5px;
}

.top-header li {
  list-style: none;
} */

/* HEADER */

header {
  background-color: var(--first-color);
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  z-index: 20;
  transition: border-bottom 0.3s ease;
  border-bottom: 3px solid transparent;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.281);
}

header.scrolled {
  border-color: var(--second-color);
}

header img {
  height: 95px;
  transition: 0.4s;
}

header img:hover {
  transform: scale(1.1);
}

ul {
  margin-bottom: 0 !important;
}

#menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

#menu a {
  display: block;
  padding: 5px 10px;
  color: var(--white);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  font-family: var(--text-font);
}

#menu #btn-courses {
  color: var(--first-color);
  background-color: var(--second-color);
  padding: 15px 20px;
  margin-left: 20px;
  font-weight: bold;
  border-radius: 15px;
}

#menu .header-line::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--second-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-in-out;
}

#menu .header-line:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

#btn-mobile {
  display: none;
}

@media (max-width: 1080px) {
  #menu {
    display: block;
    position: absolute;
    width: 100%;
    top: 113px;
    right: 0px;
    background: var(--white);
    transition: 0.6s;
    z-index: 1000;
    height: 0px;
    visibility: hidden;
    overflow-y: hidden;
  }

  #menu #btn-courses {
    color: var(--first-color);
    padding: 1rem 0;
    margin: 0 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    background-color: var(--white);
    font-weight: 500;
  }

  #nav.active #menu {
    height: calc(100vh - 70px);
    visibility: visible;
    overflow-y: auto;
  }
  #menu a {
    padding: 1rem 0;
    margin: 0 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    color: var(--first-color);
  }
  #btn-mobile {
    display: flex;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    gap: 0.5rem;
    color: var(--second-color);
  }
  #hamburger {
    border-top: 2px solid;
    width: 20px;
  }

  #hamburger::after,
  #hamburger::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--second-color);
    margin-top: 5px;
    transition: 0.3s;
    position: relative;
  }
  #nav.active #hamburger {
    border-top-color: transparent;
  }
  #nav.active #hamburger::before {
    transform: rotate(135deg);
  }
  #nav.active #hamburger::after {
    transform: rotate(-135deg);
    top: -7px;
  }

  header img {
    height: 70px;
  }
}

.has-submenu {
  position: relative;
  z-index: 999;
}

.has-submenu span {
  color: var(--white);
  font-weight: 500;
  font-family: var(--text-font);
}

.has-submenu i {
  margin-left: 8px;
}

#submenu-cursos {
  background-color: var(--white);
}

#submenu-cursos li a {
  color: var(--first-color);
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.submenu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.95rem;
  text-decoration: none;
}

.submenu a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 1081px) {
  .submenu {
    position: absolute;
    top: 100%;
    left: -30px;
    min-width: 260px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }

  #link-cursos {
    cursor: pointer;
  }
}

@media (max-width: 1080px) {
  .submenu {
    background: var(--white);
  }

  .submenu a {
    color: var(--first-color);
    background: var(--white);
  }

  .submenu.open {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }

  #link-cursos{
    padding: 1rem 0;
    margin: 0 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  }

  #link-cursos span {
    color: var(--first-color) !important;
  }
}

/* whats button */

.whats-button {
  position: fixed;
  bottom: 20px;
  right: 40px;
  z-index: 9999;
  animation: moveRightLeft 2s infinite alternate ease-in-out;
}

.whats-button img {
  height: 80px;
  width: 80px;
}

@keyframes moveRightLeft {
  0% {
    right: 10px;
  }

  50% {
    right: 40px;
  }

  100% {
    right: 10px;
  }
}

/* FOOTER */

footer {
  padding: 80px 0;
  background-color: var(--first-color);
  border-top: 3px solid var(--second-color);
}

footer .content-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

footer .logo-footer {
  display: flex;
  align-items: center;
  height: 170px;
}

footer .logo-footer img {
  width: 280px;
}

footer .content-footer ul {
  padding: 0px !important;
}

footer .content-footer li {
  list-style-type: none;
  margin-top: 5px;
}

footer .content-footer h3 {
  font-size: 18px;
  color: var(--white) !important;
  font-weight: 580;
  font-family: var(--text-font);
}

footer .content-footer a {
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
  transition: 0.4s ease-in-out;
  font-family: var(--text-font);
}

footer .content-footer a:hover {
  color: var(--second-color) !important;
}

footer .content-footer i {
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  margin-right: 8px;
}

footer .line {
  height: 1px;
  margin-top: 60px;
  background-color: var(--second-color);
}

footer .dev {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 0;
}

footer .dev a {
  color: white;
  text-decoration: none;
}

footer .dev i {
  margin-right: 10px;
}

@media (max-width: 1200px) {
  footer {
    width: 100vw;
  }

  footer .content-footer {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  footer li {
    width: 80vw;
  }
}
