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

body {
  font-family: 'Lato', sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.courses-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 50px 0 100px;
}

/* Page Title */
.page-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  left: 50%;
  transform: translateX(-50%);
  top: -6px;
  z-index: 1;
  margin-bottom: 60px;
}

.subtitle {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1e212c;
}

.main-title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 46px;
  line-height: 1.3;
  color: #1e212c;
}

/* Header Controls */
.header-controls {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1230px;
  margin: 0 auto 60px;
  z-index: 1;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tab {
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active {
  border: 1px solid #ff3f3a;
  box-sizing: border-box;
}

.tab-inner {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  text-align: center;
}

.tab-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  color: #9a9ca5;
}

.tab.active .tab-label {
  color: #ff3f3a;
}

.tab-count {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 10px;
  line-height: 1.5;
  color: #9a9ca5;
}

.tab.active .tab-count {
  color: #ff3f3a;
}

/* Search Input */
.search {
  background: white;
  border: 1px solid #d7dadd;
  border-radius: 4px;
  height: 44px;
  width: 315px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 2px;
  box-sizing: border-box;
}

.search-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 15px;
  box-sizing: border-box;
}

.search-placeholder {
  position: absolute;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #9a9ca5;
  left: 15px;
  top: 10px;
  pointer-events: none;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 13px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Courses Grid */
.courses-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 390px);
  gap: 30px;
  max-width: 1230px;
  margin: 0 auto;
  z-index: 1;
  margin-bottom: 100px;
}

/* Course Card */
.course-card {
  background: #ffffff;
  border: 1px solid #e5e8ed;
  border-radius: 4px;
  width: 390px;
  height: 438px;
  position: relative;
  box-shadow: 0px 80px 80px -20px rgba(154, 156, 165, 0.08),
    0px 30px 24px -10px rgba(154, 156, 165, 0.05),
    0px 12px 10px -6px rgba(154, 156, 165, 0.04), 0px 4px 4px -4px rgba(30, 33, 44, 0.03);
  overflow: hidden;
}

.card-highlight {
  box-shadow: 0px 80px 80px -20px rgba(154, 156, 165, 0.16),
    0px 30px 24px -10px rgba(154, 156, 165, 0.1),
    0px 12px 10px -6px rgba(154, 156, 165, 0.08), 0px 4px 4px -4px rgba(30, 33, 44, 0.05);
}

.card-image {
  height: 240px;
  width: 100%;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.card-content {
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Badge */
.badge {
  padding: 1px 8px;
  border-radius: 4px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.badge p {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

.badge-marketing {
  background: #03cea4;
}

.badge-management {
  background: #5a87fc;
}

.badge-hr {
  background: #f89828;
}

.badge-design {
  background: #f52f6e;
}

.badge-development {
  background: #7772f1;
}

/* Course Title */
.course-title {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: #1e212c;
  width: 100%;
  white-space: pre-wrap;
  margin: 0;
  flex-shrink: 0;
}

/* Info */
.info {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.price {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: #ff4242;
  flex-shrink: 0;
  margin: 0;
}

.divider-container {
  display: flex;
  height: 16px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  width: 16px;
}

.divider {
  width: 16px;
  height: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider img {
  width: 16px;
  height: 16px;
  display: block;
  max-width: none;
  object-fit: contain;
}

.instructor {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: #787a80;
  flex-shrink: 0;
  margin: 0;
}

/* Load More Button */
.load-more {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin: 60px auto 0;
  max-width: fit-content;
  cursor: pointer;
  z-index: 1;
}

.load-more-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-more-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.load-more-text {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  color: #424551;
  white-space: nowrap;
  margin: 0;
}

/* Background decorative elements */
.background {
  position: absolute;
  width: 100%;
  height: 1139px;
  left: 0;
  top: 50px;
  pointer-events: none;
  z-index: 0;
}

.shapes-bottom-right {
  position: absolute;
  bottom: 0;
  right: 3.75%;
  left: 91.82%;
  top: 92.54%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shapes-bottom-right > div {
  width: 85px;
  height: 85px;
  transform: rotate(180deg);
}

.shapes-bottom-right img {
  width: 100%;
  height: 100%;
}

.dots-top-right {
  position: absolute;
  left: 1803px;
  top: 0;
  width: 162.433px;
  height: 176.342px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.dots-top-right > div {
  width: 143px;
  height: 105px;
  transform: rotate(60deg);
}

.dots-top-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shapes-left {
  position: absolute;
  left: 56px;
  top: 637px;
  width: 83px;
  height: 44px;
}

.shapes-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1400px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 20px;
    gap: 20px;
  }

  .course-card {
    width: 100%;
  }

  .header-controls {
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .header-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .search-input {
    width: 100%;
  }

  .main-title {
    font-size: 28px;
  }
}
