@import 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&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
  font-weight: 500;
  scroll-behavior: smooth;
}

:root {
  --card-bg: #ffffff;
  --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  --primary: #ff7334;
  --text-dark: #222;
  --text-light: #303030;
  --radius: 10px;
}

body {
  width: 80vw;
  margin: auto;
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.5;
  overflow-x: hidden;
}

@media (max-width: 800px) {
  body {
    width: 90vw;
    margin: auto;
  }
}

/* Navbar */

@media (max-width: 800px) {
  header #links {
    display: none;
  }
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
}

.header-bar p {
  font-size: 1.5rem;
  font-weight: 600;
}

#links {
  display: flex;
  gap: 20px;
}

#logo-link {
  font-size: 1.5rem;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: black;
  display: block;
}

.course-hover {
  position: relative;
}

.categories-hover-items {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
  top: 120%;
  z-index: 10;
  left: 0;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ffdfc5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease-in;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.course-hover:hover .categories-hover-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.categories-based-items {
  position: relative;
}

.it-categories-hover {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
  top: 0;
  z-index: 10;
  left: 100%;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ffdfc5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease-in;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.categories-based-items:hover .it-categories-hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.categories-hover-items a {
  padding: 5px 10px;
}

.categories-hover-items a:hover {
  background: #ff7300;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.categories-based-items-accounts {
  position: relative;
}

.acc-categories-hover {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
  top: 0;
  z-index: 10;
  left: 100%;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ffdfc5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease-in;
}

.categories-based-items-accounts:hover .acc-categories-hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.di-hover {
  position: relative;
}

.di-hover-items {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
  top: 120%;
  z-index: 10;
  left: 0;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ffdfc5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease-in;
}

.di-hover-items a {
  padding: 6px 10px;
  font-size: 1rem;
}

.di-hover-items a:hover {
  background: #ff7300;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.di-hover:hover .di-hover-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.di-courses-menu {
  display: flex;
  flex-direction: column;
}

.di-courses-menu .di-course-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 5px 0px;
  font-weight: 600;
}

.di-courses {
  display: flex;
  flex-direction: column;
  margin-top: 5px;
}

.di-courses a {
  padding: 10px 5px;
}

@media (min-width: 800px) {
  header #dropdown-btn {
    display: none;
  }
}

#dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

#dropdown-btn button {
  outline: none;
  border: none;
  background: transparent;
  padding: 5px;
  cursor: pointer;
}

#mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  padding: 20px;
  z-index: 10;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

#mobile-menu.active {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.menu-logo {
  font-size: 1.3rem;
  font-weight: 600;
}

.menu-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.menu-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-section {
  border-bottom: 1px solid #f1f1f1;
  padding: 10px 0;
}

.menu-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 0;
}

.menu-content {
  display: none;
  padding-left: 10px;
}

.menu-category {
  margin-top: 10px;
}

.category-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
}

.category-items {
  display: none;
  padding-left: 15px;
}

.category-items p {
  padding: 6px 0;
  font-size: 0.95rem;
  cursor: pointer;
}

.category-items p:hover {
  color: #ff7300;
}

.menu-arrow {
  transition: transform 0.2s ease;
}

.rotate {
  transform: rotate(90deg);
}

.mobile-cat-title {
  font-weight: 600;
  cursor: pointer;
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  margin: 5px 0;
  transition: background 0.2s ease;
}

.mobile-cat-title:hover {
  background: #ff7300;
  color: #fff;
}

.mobile-cat-items {
  display: none;
  padding: 2px 0;
}

.mobile-cat-items p {
  padding: 10px 10px;
  margin: 2px 0;
  font-size: 15px;
  background: #ffd4b1;
  border-radius: 8px;
  border: 1px solid #ff7300;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.mobile-cat-items p:hover {
  background: #ff7300;
  color: #fff;
}

/* Footer */

footer {
  color: #ffffff;
  background: #111111;
  padding: 40px 20px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 20px;
}

.footer-container {
  width: 100%;
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ff7334;
}

.footer-social img {
  width: 15px;
  height: 15px;
}

.footer-col p,
.footer-col a {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #ff7300;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ff7300;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: 0.3s ease;
}

.footer-social a:hover {
  background: #ffffff;
  color: #000000;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #a1a1a1;
  color: #ffffff;
  font-size: 14px;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 40px 15px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-col h3 {
    font-size: 18px;
  }

  .footer-col p,
  .footer-col a {
    font-size: 14px;
  }
}