* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
}

/* Header */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: #184b94;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-bar ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.nav-bar ul li a {
  color: #fff;
  text-decoration: none;
  padding: 10px;
}

.nav-bar ul li a:hover {
  color: #f1f1f1;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 5px;
}

.nav-bar ul li a.active {
  color: #f1f1f1;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 5px;
}

.connect-button {
  background-color: #fff;
  color: #184b94;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.burger-menu {
  display: none;
}

.connect-button.sidebar {
  display: none;
}
/* Connect Modal */

main {
  position: relative;
}

.connect-modal {
  position: fixed;
  top: 25%;
  left: 25%;
  width: 800px;
  height: 475px;
  background-color: #fff;
  box-shadow: 0px 0px 30px 0px #0000001a;
  color: #111827;
  display: none;
  padding: 50px;
  border-radius: 10px;
}

.connect-modal.show-modal {
  display: block;
  z-index: 1000;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
}

.connect-modal h4 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.connect-modal p {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 500;
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  column-gap: 30px;
  margin: 40px 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 16px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  background-color: #f6f9ff;
  padding: 10px;
  border: 1px solid #eef4ff;
  border-radius: 4px;
}

.form-group input,
.form-group option {
  font-size: 16px;
  font-weight: 500;
}

.form-group input::placeholder {
  color: #c8c8c8;
  font-weight: 500;
  font-size: 17px;
}

input[type="radio"] {
  width: 20px;
  height: 20px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.form-button {
  background-color: #184b94;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-cancel-button {
  background-color: #fff;
  color: #184b94;
  padding: 10px;
  border: 1px solid #184b94;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media screen and (max-width: 1024px) {
  .header img {
    width: 100px;
  }

  .nav-bar ul li a {
    font-size: 14px;
  }

  .connect-button {
    padding: 8px 14px;
    font-size: 14px;
  }

  .connect-modal {
    left: 12%;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header img {
    width: 100px;
  }

  .nav-bar {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: #184b94;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  }

  .nav-bar ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .nav-bar ul li a {
    padding: 10px 0;
  }

  .burger-menu {
    display: block;
  }

  .nav-bar.active {
    display: block;
  }

  .connect-button {
    display: none; /* Hide on smaller screens */
  }

  .connect-button.sidebar {
    display: block; /* Hide on smaller screens */
  }

  .connect-modal {
    left: 0%;
    top: 15%;
    height: max-content;
  }

  .form-container {
    grid-template-columns: 1fr;
  }
  .connect-button {
    display: none; /* Hide on smaller screens */
  }

  .connect-button.sidebar {
    display: block; /* Hide on smaller screens */
  }

  .connect-modal {
    left: 0%;
    top: 15%;
    height: max-content;
  }

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

@media screen and (max-width: 480px) {
  .connect-modal {
    left: 0%;
    top: 10%;
    height: max-content;
    width: 100%;
    padding: 5px;
  }

  .connect-modal h4 {
    font-size: 24px;
  }

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

  .form-group input,
  .form-group select {
    padding: 8px;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-group input::placeholder {
    font-size: 14px;
  }

  .form-button,
  .form-cancel-button {
    padding: 8px;
    font-size: 14px;
  }
}

/* Course Info */

.course-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding: 80px 130px;
  line-height: 2.5;
  position: relative;
}

.course-sidebar-button {
  display: none;
  position: fixed;
  top: 15%;
  right: 5%;
}

.course-text {
  width: 67%;
  display: none;
}

.course-text.active {
  display: block;
}

.course-text h3 {
  color: #002b6a;
  font-size: 28px;
  font-weight: 400;
}

.course-text h4 {
  font-weight: 500;
  margin-bottom: 12px;
}

.course-text p {
  margin-bottom: 8px;
}

.course-text ul {
  list-style-position: inside;
}

.course-text ul li {
  margin-bottom: 5px;
}

.course-toggle {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #7676801f;
  padding: 5px;
  border-radius: 6px;
  width: max-content;
  margin: 30px 0;
}

.course-toggle div {
  cursor: pointer;
  font-weight: 600;
  padding-right: 12px;
  border-radius: 6px;
}

.course-toggle .active {
  background-color: #ffffff;
  padding: 6px 22px;
  color: #184b94;
}

.course-content {
  display: none;
}

.course-content.active {
  display: block;
}

.course-sidebar {
  border-top: 10px solid #184b94;
  align-self: flex-start;
  box-shadow: 0px 14px 18px 7px #d4d4d447;
  flex: 1;
}

.course-sidebar ul {
  list-style: none;
  padding: 20px;
}

.course-sidebar ul li {
  margin-bottom: 10px;
  color: #002b6b;
  font-weight: 400;
  font-size: 16px;
  padding: 25px;
  border-bottom: 1px solid var(--color-grey-91, #e6e7eb);
}

.course-sidebar ul .active {
  font-weight: 600;
  color: #004bba;
}

@media screen and (max-width: 1024px) {
  .course-info {
    padding: 80px 50px;
  }

  .course-text {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .course-info {
    padding: 50px 20px;
    flex-direction: column;
    gap: 30px;
    line-height: 1.5;
  }

  .course-text {
    width: 100%;
  }

  /* .course-sidebar {
  } */

  /* .course-sidebar-button {
    display: block;
  }

  .course-sidebar-button.active {
    right: 75%;
    transform: rotate(180deg);
  } */

  /* .course-sidebar.active {
    display: block;
    right: 0;
  } */

  .course-toggle {
    margin: 0;
    flex-direction: column;
  }
}

/* Footer */

footer {
  background-color: #184b94;

  margin-top: 80px;
  color: #fff;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  padding: 50px 100px;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 400;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.about-links,
.explore-links {
  margin-left: 200px;
}

.copy-right {
  margin-top: 40px;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  padding: 40px 100px;
  border-top: 1px solid #fff;
}

.copy-right p {
  margin-top: 20px;
  font-weight: 400;
}

.footer-logo {
  width: 37%;
}

.footer-link {
  text-decoration: none;
  color: #fff;
}

.about-links,
.explore-links {
  width: 33%;
}

@media screen and (max-width: 1024px) {
  .footer-container {
    gap: 0;
    padding: 42px 34px;
  }
}

@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 50px;
    padding: 20px;
    font-size: 14px;
  }

  .footer-logo,
  .about-links,
  .explore-links {
    width: 100%;
  }

  .footer-img {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
  }

  .footer-container h4 {
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-contact {
    margin-top: 0;
    text-align: center;
  }

  .footer-list {
    margin-top: 0;
    text-align: center;
  }

  .about-links,
  .explore-links {
    margin-left: 0;
  }

  .copy-right {
    padding: 20px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
  }
}
