@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@500;600;700;800&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  color: #03041b;
}

.page {
  background: #ffffff;
}

.shadow-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 973px;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  font-size: 77px;
  line-height: 84px;
  color: #03041b;
}

.hero .accent {
  color: #fd7e14;
}

.hero p {
  margin: 0;
  width: 885px;
  font-size: 16px;
  line-height: 20px;
  color: #717680;
}

.graduates {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #304e6e;
}

.avatars {
  display: flex;
  align-items: center;
  padding-right: 8px;
}

.avatars img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-left: -8px;
}

.avatars img:first-child {
  margin-left: 0;
}

.stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-bottom: 50px;
  gap: 24px;
}

.stat-card {
  width: 300px;
  background: #ffffff;
  border-radius: 20px;
  padding: 31px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.stat-card:hover {
  background-color: #304e6e;
}
.stat-value {
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  font-size: 80px;
  line-height: 84px;
  color: #fd7e14;
}

.stat-card:hover .stat-title {
  color: #ffffff;
}
.stat-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #03041b;
}

.stat-card:hover .stat-desc {
  /* color: #d0d5dd; */
}
.stat-desc {
  font-size: 12px;
  line-height: 14px;
  color: #a4a7ae;
}

.categories {
  width: 1280px;
  height: 914px;
}

.categories h2 {
  margin-bottom: 40px;
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 32px;
  color: #03041b;
}
.categories__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.category-card {
  flex: 1/3;
  position: relative;
  width: 410px;
  height: 410px;
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
  color: #ffffff;
  cursor: pointer;
}
.cat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.cat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 20px;
}

.cat-content {
  position: relative;
  z-index: 1;
  height: 362px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  line-height: 20px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #e9eaeb;
}

.rating img {
  width: 16px;
  height: 16px;
}

.cat-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 28px;
}

.cat-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  line-height: 20px;
}

.cat-desc {
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  max-height: 0;
  opacity: 0;
  transform: translateY(12px);
  transition:
    max-height 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
  overflow: hidden;
}

.category-card:hover .cat-desc,
.category-card:focus-within .cat-desc {
  max-height: 60px;
  opacity: 1;
  transform: translateY(0);
}

.cat-title {
  transition: transform 0.2s ease;
}

.category-card:hover .cat-title,
.category-card:focus-within .cat-title {
  transform: translateY(-10px);
}

.dot {
  width: 4px;
  height: 4px;
}

.about {
  width: 1280px;
  height: 720px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.about-text h2 {
  margin: 0 0 8px;
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 32px;
}

.about-text p {
  margin: 0;
  width: 709px;
  font-size: 16px;
  line-height: 20px;
  color: #535862;
}

.about-content {
  display: flex;
  gap: 40px;
}

.features {
  width: 672px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
  row-gap: 48px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(253, 126, 20, 0.1);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 32px;
  border: 8px solid rgba(253, 126, 20, 0.1);
  z-index: 1;
}
.feature-icon img {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #101828;
}

.feature-text {
  font-size: 16px;
  line-height: 20px;
  color: #475467;
}

.mockups {
  position: relative;
  width: 576px;
  height: 512px;
}

.mockups-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-mockup {
  position: absolute;
  left: 55px;
  top: 0;
  width: 1024px;
  height: 682px;
  border: 6px solid #101828;
  border-radius: 12px;
  overflow: hidden;
}

.screen-shadow {
  position: absolute;
  inset: 0 8px;
  background: #101828;
  border-radius: 12px;
  box-shadow: 0 32px 64px -12px rgba(16, 24, 40, 0.14);
}

.screen-image {
  position: absolute;
  inset: 0;
  width: 869px;
  height: 579px;
  object-fit: cover;
  border-radius: 12px;
}

.phone-mockup {
  position: absolute;
  left: 0;
  top: 55px;
  width: 313.991px;
  height: 640px;
}

.phone-screen {
  position: absolute;
  left: 5.02%;
  right: 5.26%;
  top: 2.23%;
  bottom: 2.46%;
  background: #ffffff;
  overflow: hidden;
}

.phone-image {
  position: absolute;
  left: 0;
  right: 0;
  top: -3.94%;
  bottom: -3.94%;
  width: 100%;
  height: 107.88%;
  object-fit: cover;
}

.phone-status {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4.68%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
}

.phone-status img {
  height: 100%;
}

.phone-home {
  position: absolute;
  left: 32.27%;
  right: 32%;
  bottom: 6.01px;
  height: 3.756px;
  background: #000000;
  border-radius: 100px;
}

.phone-buttons {
  position: absolute;
  left: 0;
  right: 0.15%;
  top: 15.85%;
  height: 24.01%;
}

.phone-device {
  position: absolute;
  inset: 0.12% 0.86% 0.12% 0.71%;
}

.phone-highlight {
  position: absolute;
  inset: 0.12% 1.09% 0.12% 0.94%;
}

.phone-bg {
  position: absolute;
  inset: 0.58% 2.04% 0.58% 1.89%;
}

.phone-camera {
  position: absolute;
  left: 58.07%;
  right: 38.15%;
  top: 2.8%;
  height: 1.86%;
}

.phone-speaker {
  position: absolute;
  left: 44.14%;
  right: 44.29%;
  top: 3.38%;
  height: 1.02%;
}

.courses {
  position: relative;
  width: 1280px;
  height: 1202px;
}

.courses-header {
  width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.courses-text h2 {
  margin: 0 0 4px;
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 32px;
}

.courses-text p {
  margin: 0;
  width: 459px;
  font-size: 16px;
  line-height: 20px;
  color: #535862;
}

.secondary-btn {
  height: 40px;
  padding: 12px 20px;
  background: #304e6e;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  line-height: 20px;
  width: max-content;
}

.course-card {
  position: absolute;
  width: 411px;
  height: 471px;
  background: #fafafa;
  border-radius: 20px;
  overflow: hidden;
  padding-top: 24px;
}

.card-left {
  left: -1px;
  top: 401px;
}
.card-mid-top {
  left: 434px;
  top: 218px;
}
.card-mid-bottom {
  left: 434px;
  top: 713px;
}
.card-right-top {
  left: 869px;
  top: 37px;
}
.card-right-bottom {
  left: 869px;
  top: 532px;
}

.course-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  color: #535862;
}

.course-rating img {
  width: 16px;
  height: 16px;
}

.bookmark {
  width: 24px;
  height: 24px;
}

.course-card h3 {
  margin: 16px 24px 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 28px;
  color: #03041b;
}

.course-meta {
  display: flex;
  gap: 24px;
  padding: 16px 24px 0;
  font-size: 14px;
  line-height: 20px;
  color: #535862;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item img {
  width: 16px;
  height: 16px;
}

.course-image {
  position: relative;
  height: 299px;
  margin-top: 16px;
  padding: 24px;
}

.course-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.start-btn {
  position: absolute;
  right: 24px;
  bottom: 24px;
  height: 40px;
  padding: 12px 20px;
  background: #fd7e14;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  line-height: 20px;
}

.footer {
}

.my-courses-page {
  height: 1910px;
  background: #fafafa;
}

.my-courses-page .footer {
  top: 1458px;
}

.my-courses-shadow {
  top: 0;
  height: 358px;
}

.my-courses-title {
  position: absolute;
  top: 194px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  font-size: 80px;
  line-height: 84px;
  color: #03041b;
}

.my-courses {
  position: absolute;
  left: 80px;
  top: 398px;
  width: 1280px;
  display: flex;
  gap: 40px;
}

.my-courses-tabs {
  width: 336px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #03041b;
}

.my-courses-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: transparent;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #03041b;
  cursor: pointer;
}

.my-courses-tab.is-active {
  background: #e9eaeb;
}

.my-courses-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.my-courses-content.is-hidden {
  display: none;
}

.my-courses-heading {
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 28px;
  color: #03041b;
}

.my-courses-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.course-row {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.course-thumb {
  position: relative;
  width: 133px;
  height: 114px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  padding: 8px;
}

.course-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-bookmark {
  position: relative;
  width: 24px;
  height: 24px;
  z-index: 1;
}

.course-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.course-title {
  margin: 0;
  width: 360px;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #03041b;
}

.my-courses-page .course-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  line-height: 20px;
  color: #535862;
}

.my-courses-page .course-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.my-courses-page .course-rating img {
  width: 40px;
  height: 40px;
}

.my-courses-page .course-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.my-courses-page .course-meta-item img {
  width: 24px;
  height: 24px;
}

.course-progress {
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-progress-value {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 20px;
  color: #304e6e;
}

.course-progress-bar {
  position: relative;
  width: 360px;
  height: 20px;
  border-radius: 24px;
  background: #e9eaeb;
  overflow: hidden;
}

.course-progress-fill {
  height: 100%;
  background: #fd7e14;
  border-radius: 24px;
}

.course-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.course-action {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: #fd7e14;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
}

.course-action img {
  width: 16px;
  height: 16px;
}

.course-action.is-secondary {
  background: #304e6e;
}

@media (max-width: 1024px) {
  .page {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 120px 16px 48px;
  }

  .shadow-bg {
    left: 0;
    top: 0;
    width: 100%;
    height: 520px;
  }

  .hero {
    height: auto;
    gap: 16px;
    margin-top: 16px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 52px;
  }

  .hero p {
    width: 100%;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
  }

  .stat-card {
    width: 100%;
  }

  .categories {
    height: auto;
    margin-top: 48px;
  }

  .category-card,
  .cat-1,
  .cat-2,
  .cat-3,
  .cat-4,
  .cat-5,
  .cat-6 {
    position: static;
    width: 100%;
  }

  .categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .categories h2 {
    grid-column: 1 / -1;
    position: static;
    margin: 0 0 12px;
  }

  .about {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: auto;
  }

  .about-content {
    position: static;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .features {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mockups {
    position: static;
    width: 100%;
    display: none;
  }

  .courses {
    margin-top: 48px;
    height: auto;
  }

  .courses-header,
  .course-card,
  .card-left,
  .card-mid-top,
  .card-mid-bottom,
  .card-right-top,
  .card-right-bottom {
    position: static;
    width: 100%;
  }

  .courses-header {
    margin-bottom: 16px;
  }

  .courses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .courses-header,
  .courses-text {
    grid-column: 1 / -1;
  }

  .footer,
  .my-courses-page .footer {
    position: static;
    top: auto;
  }

  .my-courses-page {
    height: auto;
    min-height: 100vh;
    padding: 120px 16px 48px;
  }

  .my-courses-title {
    margin: 0 0 24px;
    font-size: 56px;
    line-height: 60px;
  }

  .my-courses {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .my-courses-tabs {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page,
  .my-courses-page {
    padding-top: 136px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 40px;
  }

  .stats,
  .categories,
  .features,
  .courses {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 56px;
    line-height: 60px;
  }

  .category-card {
    height: 320px;
  }

  .courses-text h2,
  .categories h2,
  .about-text h2 {
    font-size: 36px;
    line-height: 40px;
  }

  .my-courses-title {
    font-size: 40px;
    line-height: 44px;
  }

  .course-row {
    flex-direction: column;
  }

  .course-thumb {
    width: 100%;
    height: 200px;
  }

  .course-title {
    width: 100%;
  }

  .my-courses-page .course-meta-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .course-progress,
  .course-progress-bar {
    width: 100%;
  }

  .course-actions {
    width: 100%;
    align-items: stretch;
  }

  .course-action {
    justify-content: center;
  }
}
