/* ===== Course Category 基础样式 ===== */
.course-category {
  padding-bottom: 80px;
}

@media (min-width: 1200px) {
  section.course-category>.container {
    max-width: 1355px;
  }


  .category-items .category-item:not(:last-of-type) {
    margin-right: 17px !important;
  }
}

/* 分类项容器 - 弹性布局居中 */
.category-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 17px;
}

.category-items:not(:last-of-type) {
  margin-bottom: 17px;
}

/* 单个分类项 */
.category-items .category-item:not(:last-of-type) {
  margin-right: 10px;
}

.category-items .category-item a {
  background-color: var(--ed-color-common-white);
  color: var(--ed-color-heading-primary);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  padding: 7.5px 30px 7.5px 5px;
  display: inline-flex;
  align-items: center;
  column-gap: 15px;
  border-radius: 100px;
  border: 1px solid #E0E5EB;
}

@media only screen and (max-width: 767px) {
  .category-items .category-item a {
    font-size: 14px;
    padding: 7.5px 20px 7.5px 5px;
    column-gap: 8px;
  }
}

/* 悬停效果 */
.category-items .category-item a:hover {
  background-color: var(--ed-color-theme-primary);
  color: var(--ed-color-common-white);
}

/* 图标容器 */
.category-items .category-item a span {
  background-color: var(--ed-color-grey-1);
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* 图标图片 */
.category-items .category-item a span img {
  height: 30px;
  width: 30px;
}

/* ===== 标题样式（共用） ===== */
.section-heading {
  margin-bottom: 60px;
}

@media only screen and (max-width: 992px) {
  .section-heading {
    margin-bottom: 40px;
  }
}

.section-heading.text-center {
  text-align: center;
}

.section-heading .sub-heading {
  background-color: var(--ed-color-common-white);
  font-family: var(--ed-ff-heading);
  color: var(--ed-color-heading-primary);
  font-size: 16px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  column-gap: 10px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #E0E5EB;
  padding: 5px 15px 5px 6px;
  border-radius: 100px;
}

.section-heading .sub-heading .heading-icon {
  background-color: rgba(7, 166, 152, 0.15);
  color: var(--ed-color-theme-primary);
  font-size: 14px;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-heading .section-title {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  display: block;
  margin-bottom: 0;
  text-transform: inherit;
  position: relative;
}

@media (max-width: 1200px) {
  .section-heading .section-title {
    font-size: 40px;
  }

  .section-heading .section-title br {
    display: none;
  }
}

@media only screen and (max-width: 992px) {
  .section-heading .section-title {
    font-size: 32px;
  }
}

@media only screen and (max-width: 767px) {
  .section-heading .section-title {
    font-size: 32px;
  }
}

/* ===== CSS 变量定义 ===== */
:root {
  --ed-ff-body: 'Outfit', sans-serif;
  --ed-ff-heading: 'Outfit', serif;
  --ed-color-common-white: #ffffff;
  --ed-color-heading-primary: #162726;
  --ed-color-theme-primary: #07A698;
  --ed-color-grey-1: #F2F4F7;
  --ed-color-border-1: #E0E5EB;
}

/* ===== 通用间距样式 ===== */
.pt-120 {
  padding-top: 120px;
}

@media only screen and (max-width: 992px) {
  .pt-120 {
    padding-top: 70px;
  }
}

@media only screen and (max-width: 767px) {
  .pt-120 {
    padding-top: 60px;
  }
}

.pb-120 {
  padding-bottom: 120px;
}

@media only screen and (max-width: 992px) {
  .pb-120 {
    padding-bottom: 70px;
  }
}

@media only screen and (max-width: 767px) {
  .pb-120 {
    padding-bottom: 60px;
  }
}