.banner {
  position: relative;
  height: 100px;
  margin-bottom: 40px;
}

.banner::before {
  content: "";
  position: absolute;
  top: 4.5px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ccc;
}

.banner::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 120px;
  height: 5px;
  background-color: var(--red);
}

.banner-text {
  position: absolute;
  left: 10px;
  top: 42.5px;
  color: #231815;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.banner-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ccc;
}

.badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 600px;
  height: 80px;
  border-radius: 40px;
  background: #e5211b;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  white-space: nowrap;
}

.title-line {
  height: 1px;
  background: #25395c;
}

.page-title {
  font-size: 50px;
  font-weight: 900;
  color: var(--navy);
  padding: 18px 0;
  white-space: nowrap;
  text-align: center;;
  margin-bottom: 0px;
}

.main-content {
  display: grid;
  grid-template-columns: 40% 60%;
  padding-bottom: 60px;
}

.main-text {
  padding-right: 40px;
}

.main-heading {
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.4;
  margin: 24px 0;
}

.main-body {
  font-size: 20px;
  font-weight: 600;
  color: #231815;
  line-height: 36px;
}

.main-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab;
  font-size: 14px;
  flex-shrink: 0;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.basic-functions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0px 20px;
}

.basic-function-item {
  padding-right: 40px;
  padding-bottom: 40px;
}

.basic-function-title-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.basic-function-bullet {
  color: #e5211b;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.basic-function-title {
  font-size: 26px;
  font-weight: 900;
  color: #26395c;
  line-height: 1.3;
}

.basic-function-body {
  font-size: 18px;
  font-weight: 300;
  color: #231815;
  line-height: 30px;
}

.plugin-section {
  background-color: transparent;
  padding: 0px 20px 50px;
}

.plugin-box {
  display: flex;
  align-items: center;
  height: 80px;
  border: 1px solid #ccc;
  border-radius: 15px;
  overflow: hidden;
}

.plugin-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 100%;
  background: #748c9d;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
  border-radius: 14px 0 0 14px;
}

.plugin-tags {
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 35px;
}

.plugin-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 5px;
  background: #748c9d;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
  white-space: nowrap;
}

#command-filter {
  scroll-margin-top: 160px;
  background-image:
    linear-gradient(to top, rgb(255 255 255 / 50%) 0%, rgb(255 255 255) 50%),
    url(/wp-content/themes/bosco-wp/assets/images/smart-gw/command-filter-background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

#automation {
  scroll-margin-top: 160px;
  padding-top: 40px;
  background-image:
    linear-gradient(to top, rgb(255 255 255 / 50%) 0%, rgb(255 255 255) 50%),
    url(/wp-content/themes/bosco-wp/assets/images/smart-gw/automation-background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

#other {
  padding-top: 40px;
  background-image:
    linear-gradient(to top, rgb(255 255 255 / 50%) 0%, rgb(255 255 255) 50%),
    url(/wp-content/themes/bosco-wp/assets/images/smart-gw/other-background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

@media (max-width: 1023px) {
  .outer { padding: 0 40px; }
  .badge { width: 90%; max-width: 600px; font-size: 22px; height: 64px; }
  .page-title { font-size: 36px; padding-left: 0; text-align: center; }
  .main-content { grid-template-columns: 1fr; }
  .main-image { width: 100%; height: auto; min-height: 240px; }
  .basic-functions-grid { grid-template-columns: 1fr; padding-left: 0; }
  .plugin-section { margin-left: 0; }
  .plugin-box { width: 100%; height: auto; min-height: 80px; flex-wrap: wrap; }
  .plugin-label { width: 100%; min-height: 50px; font-size: 16px; border-radius: 14px 0 0 0; }
  .plugin-tags { padding: 16px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .outer { padding: 0 16px; }
  .badge { font-size: 18px; height: 54px; border-radius: 27px; }
  .page-title { font-size: 28px; }
  .main-heading { font-size: 22px; }
  .main-body { font-size: 17px; line-height: 30px; }
  .basic-function-title { font-size: 22px; }
  .basic-function-body { font-size: 16px; line-height: 26px; }
}
