*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Roboto", serif;
  font-weight: 500;
  background-color: #fcfcfc;
}

.container {
  max-width: 1150px;
  width: 95%;
  margin: 0 auto;
}

.flex {
  display: flex;
  align-items: center;
}

.r-16 {
  border-radius: 16px;
}
.r-8 {
  border-radius: 8px;
}
.r-6 {
  border-radius: 6px;
}
img {
  max-width: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

.shadow {
  box-shadow: 1px 2px 2px 1px #f5f2f2;
}
/* SHOP MAIN */

#update-main h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.trial-text {
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-size: 14px;
}
.gen-section {
  align-items: flex-start;
}

.update-courses-section {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  height: calc(100vh - 104px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 2.5rem 0;
}
.update-search-CBT,
.update-search-CBT input {
  width: 100%;
}
.update-search-CBT {
  position: relative;
}
.update-search-CBT input {
  padding: 13.5px 2.5rem;
  border-radius: 8px;
  border: 1px solid #cad1d8dd;
  outline: none;
}
.update-search-CBT img {
  padding: 10px;
  width: 40px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.update-course-controls {
  margin-top: 13px;
  gap: 13px;
  margin-bottom: 1.5rem;
}
.select-higher-institute-container {
  position: relative;
}

.update-course-controls .select-higher-institute,
.update-course-controls .select-semester {
  border: 1px solid #cad1d8dd;
  padding: 10.5px 1rem;
  border-radius: 6px;
  cursor: pointer;
}
.update-course-controls .select-higher-institute small,
.update-course-controls .select-semester small {
  user-select: none;
}
.higher-institutions,
.semesters {
  position: absolute;
  top: 3rem;
  background-color: #fff;
  padding: 1.5rem;
  min-width: 200px;
  width: max-content;
  opacity: 0;
  transform: translateY(-10px);
  z-index: 99;
  color: #656c73;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  pointer-events: none;
}
.higher-institutions[aria-expanded="true"],
.semesters[aria-expanded="true"] {
  display: block;
  opacity: 1;
  transform: translateY(0px);
  pointer-events: auto;
}
.institution,
.semester {
  padding: 0.6rem 0.3rem;
  cursor: pointer;
}
.update-course-controls img {
  width: 18px;
  margin-left: 10px;
  display: block;
}
.update-course-controls small {
  display: block;
  font-weight: 400;
  font-size: 1rem;
}

#update-courses-list {
  width: 100%;
  margin-top: 2.5rem;
}
.update-course {
  width: 100%;
  background-color: #fff;
  justify-content: space-between;
  padding: 0.5rem;
  padding-right: 2rem;
  border-radius: 16px;
  gap: 0.7rem;
}
.update-course + .update-course {
  margin-top: 1.5rem;
}
.update-course h3,
.update-courseh4 {
  color: #353638;
  font-weight: 700;
}
.update-course h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.update-course h4 {
  font-size: 1rem;
  margin-top: 0.75rem;
}
.update-course p {
  font-size: 1rem;
  font-weight: 500;
  color: #656c73;
}
.update-course-thumbnail {
  max-width: 116px;
  min-width: 80px;
  margin-right: 1.25rem;
}
.update-course-thumbnail img {
  display: block;
}
.custom-checkbox {
  display: inline-block;
  height: 20px;
  width: 22px;
  border-radius: 3px;
  position: relative;
  border: 2px solid #a74920;
}

.custom-checkbox input {
  opacity: 0;
  z-index: 2;
}
.custom-checkbox label {
  width: 13px;
  height: 13px;
}
.custom-checkbox input,
.custom-checkbox label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.custom-checkbox input:checked ~ label {
  background-color: #a74920;
}

/* Bought out Courses */

.update-course.bought-out h3,
.update-course.bought-out p,
.update-course.bought-out h4 {
  color: #888886;
}
.update-course.bought-out img {
  mix-blend-mode: luminosity;
}
.update-course.bought-out .custom-checkbox input:checked ~ label {
  background-color: #888886;
}
.update-course.bought-out .custom-checkbox {
  border-color: #888886;
}

/* Pricing */
.update-pricing {
  width: 33%;
  margin-left: 2%;
  padding: 2.5rem 0 1rem;
}
.update-pricing.Single-view {
  height: 50vh;
  align-items: flex-end;
}
.update-pricing-box {
  max-width: 287px;
  min-width: 230px;
  width: 100%;
  background: #fff;
  margin: 0 0 0 auto;
  padding: 1rem 1.5rem;
  border-radius: 16px;
}
.update-pricing-inner-container {
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.update-pricing-selected-course-container {
  width: 100%;
  justify-content: space-between;
  border: 1.25px solid #cad1d8dd;
  padding: 14px 1.5rem;
  border-radius: 8px;
  gap: 0.5rem;
}
.update-course-price-container {
  flex-direction: column;
  align-items: flex-start;
  margin-right: auto;
  margin-left: auto;
}
.update-course-detail {
  width: 100%;
}
.column-display {
  justify-content: space-between;
  width: 100%;
}
.update-course-code-title-container {
  max-width: 220px;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.update-pricing-selected-course-container p {
  font-weight: 700;
}
.update-pricing-selected-course-container p.selected-course-text {
  font-size: 1rem;
  font-weight: 500;
  color: #656c73;
}
.update-pricing-btns {
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.update-pricing-btns button {
  width: 100%;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
}
.update-pricing-btns button:nth-child(1) {
  padding: 12px 0;
  gap: 1rem;
  background-color: #e9e9e9ee;
  font-weight: 600;
  color: #55595a;
}
.update-pricing-btns button:nth-child(2) {
  padding: 14px 0;
  background-color: #a74920;
  color: #fff;
}
.update-pricing-btns button:nth-child(1) img {
  width: 24px;
  display: block;
}
.whatsapp-contact {
  max-width: 320px;
  margin: 0 0 0 auto;
  margin-top: 1rem;
  border-radius: 16px;
  background-color: #fff;
  padding: 1rem;
  flex-direction: column;
  color: #656c73;
}
.whatsapp-contact img {
  width: 32px;
  margin-right: 12px;
}
.whatsapp-contact p {
  font-size: 14px;
  font-weight: 500;
}
.mobile-view-whatsapp-text {
  display: none;
}
.available-always {
  align-self: flex-end;
  margin-top: 0.55rem;
  display: block;
}
.page-navigation {
  width: 100%;
  justify-content: space-between;
  margin-top: 4rem;
}
.page-nav-btns {
  gap: 1.5rem;
}
.page-nav-btn {
  padding: 13.5px 1.5rem;
  border: 1.75px solid #cad1d8dd;
  cursor: pointer;
}

.clear-btn {
  padding: 12px 1.2rem;
  border: 1.75px solid #cad1d8dd;
  cursor: pointer;
  background-color: #CAD1D8DD;
  font-size: 14px;
  font-weight: 500;
  color: #55595a;
}
.page-nav-btn img {
  width: 12px;
  display: block;
}
.page-nav-btn:nth-child(1) {
  background-color: transparent;
}
.page-nav-btn.next-page-btn {
  background-color: #cad1d8dd;
  font-size: 14px;
  font-weight: 500;
  color: #55595a;
}
.page-nav-btn .next-btn-icon {
  margin-left: 1rem;
}

.page-nav-status {
  gap: 0.5rem;
  color: #53535f;
}
.present-page-number {
  padding: 4px 1rem;
  border: 1.75px solid #cad1d8dd;
  min-width: 64px;
}
.page-nav-status-mobile {
  display: none;
}
@media screen and (max-width: 840px) {
  .update-courses-section {
    padding-bottom: 14rem;
  }
  .update-course-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .update-pricing {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    padding: 0;
    margin-left: 0;
  }
  .update-pricing.Single-view {
    height: unset;
  }
  .update-pricing-box {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem;
    border-radius: none;
    display: flex;
  }
  .update-pricing-box h3 {
    display: none;
  }
  .update-pricing-inner-container {
    flex-direction: row;
    gap: 0.8rem;
    margin-right: auto;
    margin-top: 0;
  }
  .update-pricing-selected-course-container {
    max-width: fit-content;
    width: 100%;
    border: none;
    padding: 6px 12.5px;
    border-radius: 3px;
  }
  .update-pricing-selected-course-container:nth-child(1) {
    background-color: #d9d9d9;
  }
  .update-pricing-selected-course-container:nth-child(2) {
    padding: 0;
  }
  .update-pricing-selected-course-container p {
    display: none;
  }
  .update-pricing-btns {
    flex-direction: row;
    gap: 1rem;
    margin-top: 0;
  }
  .update-pricing-btns button {
    width: fit-content;
  }
  .update-pricing-btns button:nth-child(1) {
    flex-direction: column;
    font-size: 12px;
    font-weight: 500;
    background-color: transparent;
    gap: 0.5rem;
  }
  .update-pricing-btns button:nth-child(2) {
    padding: 14px 1rem;
  }
  .update-pricing-btns button .update-amount {
    display: none;
  }
  .update-pricing-btns button:nth-child(2) p {
    font-size: 14px;
    font-weight: 600;
  }
  .whatsapp-contact {
    max-width: max-content;
    margin: 0;
    flex-direction: row;
  }
  .available-always {
    margin-top: 0;
    align-self: center;
    margin-left: 0.5rem;
  }
  .available-always span,
  .desktop-view-whatsapp-text {
    display: none;
  }
  .mobile-view-whatsapp-text {
    display: block;
  }
}

@media screen and (max-width: 630px) {
  .update-course-institution {
    display: none;
  }
  .update-course {
    padding-right: 1rem;
  }
  .column-display {
    flex-direction: column;
    align-items: flex-start;
  }
  .update-course-price-container {
    gap: 0.5rem;
    margin-left: 0;
    flex-direction: row;
  }
  .update-course-price-container p {
    font-size: 0.85rem;
  }
  .update-course h4 {
    margin-top: 0;
  }
  .page-nav-btns {
    gap: 1rem;
    margin: 0 auto;
  }
  .page-nav-btn {
    cursor: pointer;
  }
  .page-nav-btn p {
    display: none;
  }
  .page-nav-btn .next-btn-icon {
    margin: 0;
  }
  .page-nav-status {
    display: none;
  }
  .present-page-number {
    min-width: 55px;
  }
  .page-nav-status-mobile {
    display: flex;
    gap: 0.5rem;
  }
}

@media screen and (max-width: 400px) {
  .update-course-thumbnail {
    max-width: 100px;
  }
  .update-course h3 {
    font-size: 1rem;
  }
  .update-course-thumbnail {
    margin-right: 0.5rem;
  }
}

@media screen and (max-width: 300px) {
  .select-semester small,
  .select-higher-institute small {
    font-size: 0.9rem;
  }
}
