@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;
}

/* base elements start */
body {
  position: relative;
  background: #f9f9f9;
  font-family: "Lato", sans-serif;
}

.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

h2,
h3,
h4 {
  margin: 20px 0;
  font-size: 20px;
}

img {
  max-width: 100%;
  height: auto;
}

/* base elements end*/
.main_wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  row-gap: 40px;
  padding-top: 50px;
}

/* header styles start */
.webcooks-courses_header {
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #1F1F35;
  padding: 10px 20px;
}

.logo a {
  color: green;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
}

.search-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-container input[type="text"] {
  width: 100%;
  padding: 8px 15px;
  height: 40px;
  border: 2px solid #1F1F35;
  border-radius: 50px;
  font-size: 16px;
}

#search-link {
  width: 46%;
  display: flex;
  column-gap: 10px;
  justify-content: center;
  padding: 8px 15px;
  height: 40px;
  border: 2px solid #1F1F35;
  border-radius: 50px;
  font-size: 16px;
  color: #fff;
  background-color: #1F1F35;
  transition: all 0.5s linear;
}


.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 20px;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 5px;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #065A4A;
}

.login-btn {
  background-color: #0a7e07;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
}

.secondary-menu {
  width: 100%;
  align-items: center;
  display: grid;
  grid-template-columns: 16% 60% 24%;
  background-color: #ffffff;
  padding: 10px 20px;
  text-align: center;
  transition: all 0.8s linear;
}

.social-icons {
  display: flex;
  align-items: center;

}

.social-icons a {
  color: #fff;
  padding-inline: 10px;
}

.secondary-nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

.secondary-nav-list li {
  padding-inline: 1.5rem;
}

.secondary-nav-list a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.secondary-nav-list a:hover {
  color: #065A4A;
}

.menu-toggle i {
  font-size: 25px;
  color: #fff;
}

.menu-toggle {
  display: none;
}

/* header styles end */

/* sidebar style start */

.main_wrapper .webcooks_courses-list {
  width: 350px;
  height: 100vh;
  position: sticky;
  top: 100px;
  background: #ffffff;
  position: sticky;
  top: 0;
  overflow-y: auto;
  border: 1px solid #d3dce6;
  border-radius: 6px;
  margin-right: 30px;
}

.webcooks_courses-list .courses_menu li h3 {
  padding: 16px 24px;
  border-bottom: 1px solid #d3dce6;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.webcooks_courses-list .courses_menu li>ul li a {
  display: flex;
  align-items: stretch;
  color: #333;
  font-weight: 500;
  padding: 8px 24px;
  transition: all 0.2s ease-in;
  font-size: 14px;
  line-height: 20px;
  text-transform: capitalize;
}

.webcooks_courses-list .courses_menu li>ul li.active a {
  color: #065A4A;
  font-weight: 600;
  background-color: #f0f8f6;
  border-left: 3px solid #065A4A;
}

.webcooks_courses-list .courses_menu li>ul {
  overflow: hidden;
  max-height: 0;
  padding: 0;
  transition: all 0.2s ease-in-out;
}

.webcooks_courses-list .courses_menu li>ul.accordion_ul {
  border-bottom: 1px solid #d3dce6;
  padding: 12px 0;
  max-height: 600px;
  display: block !important;
  transition: all 0.3s ease-in-out;
}

.webcooks_courses-list .courses_menu li h3:after {
  content: "";
  width: 14px;
  height: 14px;
  background-size: 100%;
  transform: rotate(359deg);
  transition: transform 0.3s ease-out;
  background-image: url(/lms/assets/images/arrow.svg);
}

.webcooks_courses-list .courses_menu li .show-accordion:after {
  transform: rotate(180deg);
}

.webcooks_courses-list .courses_menu li h3.show-accordion {
  background: #ffb606;
  color: #fff;
}

.courses_menu .courses_list>a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 24px;
  display: block;
  transition: color 0.3s ease;
}

.courses_menu .courses_list>a:hover {
  color: #065A4A;
  text-decoration: underline;
}

/* sidebar style end*/

/* main content styles start */
.main_wrapper .webcooks_courses-content {
  width: 60%;
  padding: 40px 40px;
  border-radius: 12px;
  box-shadow: #dddbd8 0px 3px 12px;
}

.webcooks_courses-content .course .main_title {
  margin-bottom: 20px;
  text-transform: capitalize;
  font-size: 30px;
  font-weight: 500;
}

.webcooks_courses-content .course p {
  font-size: 16px;
  line-height: 30px;
  margin-bottom: 16px;
}

.webcooks_courses-content .course li {
  list-style: circle;
  margin-bottom: 20px;
}

.text-area {
  padding: 16px;
  border-radius: 4px;
  border: 1px solid #d3dce6;
  background-color: #383b40;
  margin-bottom: 16px;
  overflow: auto;
  font-size: 14px;
  line-height: 20px;
  color: #d5d5d5;
  position: relative;
}

.text-area pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 100%;
}

.text-area::after {
  content: "";
  background-image: url(./images/copy.svg);
  background-repeat: no-repeat;
  background-size: 14px 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1c2130;
  content: '';
  position: absolute;
  right: 8px;
  top: 8px;
  background-repeat: no-repeat;
  background-position: 8px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, .2);
  cursor: pointer;
}

.webcooks_footer {
  margin-top: 40px;
  background-color: #000000;
  color: #fff;
  padding: 20px;
}

.webcooks_footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.webcooks_footer .footer-container .footer-column {
  flex: 1;
  min-width: 200px;
  margin: 10px;
}

.webcooks_footer .footer-container .footer-column h2 {
  padding-bottom: 10px;
}

.webcooks_footer .footer-container .footer-column ul {
  padding: 0;
}

.webcooks_footer .footer-container .footer-column ul li {
  margin: 8px 0;
}

.webcooks_footer .footer-container .footer-column a {
  color: #fff;
  text-decoration: none;
}

.webcooks_footer .footer-container .footer-column a:hover {
  text-decoration: underline;
}

/* search page styles start */
.search-main .search-wrapper {
  text-align: center;
  padding-block: 50px;
}

.search-main .search-wrapper #course-search {
  width: 30%;
  padding: 8px 15px;
  height: 40px;
  border: 2px solid #1F1F35;
  border-radius: 50px;
  font-size: 16px;
  color: #333;
  margin-bottom: 40px;
}

.search-main .search-wrapper h1 {
  font-size: 30px;
  margin-bottom: 30px;
}

.search-main .search-wrapper .search-results .course-title {
  font-size: 20px;
  display: block;
  margin: 10px 0;
  text-decoration: none;
  color: #1c2130;
  font-weight: 700;
}

.search-main .search-wrapper .search-results {
  grid-template-columns: 1fr 1fr 1fr;
  display: grid;
  margin-top: 20px;
  gap: 30px;
}

.search-main .search-wrapper .search-results .course-description {
  height: 100%;
  margin-bottom: 20px;
}

.search-wrapper .search-results .search-card {
  padding: 18px 22px;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.search-results .search-card .course-btn {
  padding: 12px 18px;
  border: 1px solid #1c2130;
  font-size: 16px;
  position: relative;
  margin-top: auto;
  width: 100%;
  text-align: center;
  color: #000000;
  font-weight: 600;
  text-transform: capitalize;
  width: 200px;
  margin: 0 auto;
}

/* search page styles end */
/* Responsive adjustments */
@media (max-width: 768px) {
  .search-container {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .logo {
    display: none;
  }

  .nav-list {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: #001d28;
    width: 200px;
    height: 100vh;
    padding-top: 20px;
    transition: left 0.3s ease;
  }

  .nav-list.active {
    left: 0;
  }

  .secondary-menu {
    height: 100vh;
    z-index: 5;
    left: -100%;
    width: 100%;
    position: absolute;
    background-color: #333;
    transition: all 0.8s linear;
  }


  .secondary-menu.active {
    left: 0;
    opacity: 1;
    display: flex;
    align-items: flex-start;
  }

  .secondary-menu.active .secondary-nav-list {
    flex-direction: column;
    width: 100%;
  }

  .secondary-menu.active .secondary-nav-list li {
    padding-block: 18px;
  }

  .secondary-menu.active .secondary-nav-list li a {
    color: #fff;
  }

  .navbar {
    flex-direction: row-reverse;
    padding-block: 20px;
    justify-content: space-between;
  }

  .footer-container {
    flex-direction: column;
  }

  .main_wrapper .webcooks_courses-content,
  .main_wrapper .webcooks_courses-list {
    position: relative;
    width: 100%;
    margin: 0;
  }
}