/* Importing Fonts */
@font-face {
  font-family: "Lato";
  src: url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');
}

@font-face {
  font-family: "Futura";
  src: url('../fonts/FuturaCyrillicBold.ttf');
}

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EBGaramond-VariableFont_wght.ttf");
}
/* Importing Fonts */

/* Basic Parameters */
:root {
  --color-1: #f6f6f6;
  --color-2: #111111;
  --color-3: #001f62;
  --color-4: #0033a0;
  --color-5: #00150f;
  --color-6: #312000;
  --font-1: "Futura";
  --font-2: "Lato";
  --font-3: "EB Garamond";
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 70px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, 0.5);
  border-radius: 70px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 17, 17, 0.7);
}

* {
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

p {
  margin: 0;
}

a {
  color: var(--color-1);
}

a:hover {
  color: var(--color-1);
  text-decoration: underline;
}
/* Basic Parameters */

/* Header */
header {
  background-color: var(--color-1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-content {
  background-color: var(--color-1);
  padding: 15px 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  box-shadow: 4px 0px 30px var(--color-2);
}

.header-mobile {
  display: none;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-color: var(--color-1);
}

.nav-overlay-container * {
  color: var(--color-2);
  font-size: 20px;
  padding-right: 0 !important;
  padding: 10px 10px;
}

.cross {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding-right: 20px !important;
}

.ham {
  display: none;
}

.ham.visible {
  display: block;
}

.nav {
  display: flex;
  flex-direction: row;
}

.nav :not(:last-child) {
  padding-right: 50px;
}

.nav-item {
  font-family: var(--font-2);
  font-weight: 400;
  font-size: 17px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-item {
  padding: 5px 0;
  transition: all 200ms ease-in-out;
  color: var(--color-2) !important;
}

.nav-item:hover {
  color: var(--color-2) !important;
}
.dropdown-menu {
  display: none;
}

.dropdown-menu li {
  padding-right: 10px !important;
  padding: 10px;
}

.dropdown-menu li p, .dropdown-menu li a {
  padding: 0px !important;
}

.dropdown {
  cursor: pointer;
}

.dropdown-elm {
  padding-right: 0px !important;
}

.dropdown-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.next-arr-2 {
  width: 10px;
  height: 10px;
  padding: 0 !important;
}

.dropdown-elm p {
  color: var(--color-2);
}

.dropdown-elm.scrolled p {
  color: var(--color-2);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.next-arr {
  padding: 0 !important;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -40%;
  border-radius: 5px;
  background-color: var(--color-1);
  border: 1px solid rgba(0,0,0,.15);
  color: var(--color-2);
  list-style: none;
  margin: 0;
  min-width: 250px;
}

.sub-dropdown {
  display: none;
  position: absolute;
  left: 100%;
  border-radius: 5px;
  top: 0;
  min-width: 200px;
  list-style: none;
  background-color: var(--color-1);
  border: 1px solid rgba(0,0,0,.15);
  padding-left: 0 !important;
}

.sub-dropdown a:hover {
  color: var(--color-2) !important;
}

.dropdown-menu li:hover .sub-dropdown {
  display: block;
}

.dropdown-menu li a,
.sub-dropdown li a {
  text-decoration: none;
  color: var(--color-2);
  padding: 5px 10px;
}

.dropdown-menu li a:hover,
.sub-dropdown li a:hover {
  background-color: var(--color-1);
}
/* Header */

/* Formation Section */

.formation-section {
  background-color: var(--color-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 95px;
  padding-bottom: 100px;
}

#carousel-formation {
  width: 100%;
  display: block;
  overflow-y: auto;
}

.page-title {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  padding: 0 100px;
  font-family: var(--font-3);
  font-size: 60px;
  font-weight: 600;
  color: var(--color-1);
  background-image: linear-gradient(rgba(0, 20, 15, 0.7), rgba(0, 20, 15, 0.7)),
    url("../images/backgrounds/page-title-background.png");
  box-shadow: inset -30px -30px 20px rgba(17, 17, 17, 0.4),
    inset 30px 30px 20px rgba(17, 17, 17, 0.4);
}

.formation-text {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-2);
  color: var(--color-2);
  width: 100%;
  padding: 0 120px;
  padding-top: 80px;
  padding-bottom: 40px;
  font-size: 23px;
}

.formations-tabs {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 0 120px;
  gap: 30px;
}

.formations-tab {
  padding: 5px 10px;
  font-family: var(--font-2);
  color: var(--color-2);
  background-color: #d7d7d7;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
}

.formations-tab.active {
  color: var(--color-1);
  background-color: var(--color-5);
}

.formation-list {
  width: 100%;
  padding: 0 60px;
}

.formation-container {
  height: 400px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.formation {
  width: 85%;
  height: 85%;
  background-image: linear-gradient(
      rgba(0, 20, 15, 0.85),
      rgba(0, 20, 15, 0.85)
    ),
    url("../images/backgrounds/hero-section-background.png");
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  text-align: center;
  box-shadow: inset -30px -30px 20px rgba(17, 17, 17, 0.4),
    inset 30px 30px 20px rgba(17, 17, 17, 0.4);
  transition: all 200ms ease-in-out;
  overflow: hidden;
}

.formation:hover {
  box-shadow: none;
}

.form-title {
  font-family: var(--font-1);
  color: var(--color-1);
  font-size: 35px;
  position: absolute;
  width: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 300ms ease-in-out;
  z-index: 1;
}

.formation:hover .form-title {
  opacity: 0;
}

.form-content {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  text-align: left;
  width: 70%;
  height: 250px;
  color: var(--color-1);
  font-family: var(--font-2);
  font-size: 20px;
  font-weight: 400;
  transition: all 300ms ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 30px;
  gap: 20px;
  z-index: 2;
}

.formation:hover .form-content {
  opacity: 1;
}

.form-bottom-part {
  width: 100%;
  display: flex;
  justify-content: end;
}

.catalogue-link {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 5px;
  text-align: right;
  width: fit-content;
  color: var(--color-1);
}

.catalogue-link:hover {
  color: var(--color-1);
}

.catalogue-link:active {
  color: var(--color-1);
}
/* Formation Section */

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  background-image: linear-gradient(
      rgba(17, 17, 17, 0.95),
      rgba(17, 17, 17, 0.95)
    ),
    url("../images/backgrounds/footer-image.png");
}

.footer-content {
  padding-right: 150px;
  padding-left: 150px;
  width: 100%;
  min-height: 210px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.logo-desc {
  max-width: 450px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-family: var(--font-2);
  color: var(--color-1);
  font-size: 16.5px;
  font-weight: 500;
  gap: 40px;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.footer-nav p {
  font-family: var(--font-2);
  color: var(--color-1);
  font-size: 16.5px;
  font-weight: 600;
}

.first-col,
.second-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.link {
  display: flex;
  flex-direction: row;
}

.link p {
  margin: 0;
  font-family: var(--font-1);
  color: var(--color-1);
  font-size: 15.5px;
  font-weight: 650;
}

.link-icon {
  padding: 5px;
  border: solid 2px var(--color-1);
  transition: all 200ms ease-in-out;
}

.link:hover .link-icon {
  transform: rotate(45deg);
}

.link-icon img {
  transition: all 200ms ease-in-out;
}

.link:hover .link-icon img {
  transform: rotate(-45deg);
}

.link-name {
  display: none;
  padding-left: 15px;
}

.footer-end {
  padding: 0 100px;
  min-height: 90px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-2);
  color: var(--color-1);
  font-size: 18px;
  font-weight: 600;
}

.separator {
  width: 90%;
  height: 1px;
  background: rgb(246, 246, 246);
  background: linear-gradient(
    90deg,
    rgba(246, 246, 246, 0) 0%,
    rgba(246, 246, 246, 1) 50%,
    rgba(246, 246, 246, 0) 100%
  );
}
/* Footer */

@media screen and (max-width: 1200px) {
  .formations-tabs {
    justify-content: center;
    padding: 0 50px;
  }
}

@media screen and (max-width: 992px) {
  .formations-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .formations-tab {
    width: 50%;
  }
  
  .footer-content {
    padding-right: 50px;
    padding-left: 50px;
  }

  .footer-nav {
    display: none;
  }

  .footer-end {
    padding: 0 50px;
  }
}

@media screen and (max-width: 900px) {
  .header-screen {
    display: none;
  }

  .header-mobile {
    padding: 20px 50px;
    display: flex;
  }
}

@media screen and (max-width: 700px) {
  .formation-text {
    padding: 40px 20px;
  }

  .footer-end {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
  }
}
@media screen and (max-width: 600px) {
  .logo-desc p {
    display: none;
  }

  .social-links {
    flex-direction: row;
    gap: 30px;
  }
}
