* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.form-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 30px auto;
  scroll-margin-top: 50px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Apple SD Gothic Neo", sans-serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-inline: 10px;
}

a {
  text-decoration: none;
  color: #000;
}

.header-top {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-title {
  color: #000;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-top-link {
  color: #406cdc;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid #406cdc;
  background-color: transparent;
  transition: background-color 0.4s ease, color 0.4s ease;

  svg path {
    transition: fill 0.4s ease, stroke 0.4s ease;
  }

  &:hover {
    background-color: #406cdc;
    color: #fff;

    svg path {
      fill: #fff;
      stroke: #fff;
    }
  }
}

.header-bottom {
  padding-block: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;

  a {
    padding-block: 6px;
    position: relative;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    transition: color 0.4s ease;
  }

  a:before {
    content: "";
    position: absolute;
    bottom: 2px;
    background-color: #406cdc;
    height: 2px;
    width: 0%;
    left: 0;
    transition: width 0.4s ease;
  }

  a:hover {
    color: #406cdc;
    &:before {
      width: 100%;
    }
  }
}

.active {
  position: relative;
  color: #406cdc;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;

  &:before {
    content: "";
    position: absolute;
    bottom: -2px;
    background-color: #406cdc;
    height: 2px;
    width: 100% !important;
    left: 0;
  }
}

.w-dot::after {
  content: "";
  background-color: #ff0031;
  position: absolute;
  height: 4px;
  width: 4px;
  border-radius: 50%;
  top: 2px;
  right: -4px;
}

.main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding-top: 120px;
  padding-inline: 12px;
  gap: 50px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.article-container {
  max-width: 680px;
  width: 100%;
}

.sidebar {
  position: relative;
  right: 0;
  top: 20px;
  max-width: 330px;
  width: 100%;
  margin-bottom: 40px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sidebar-title h5 {
  color: #000;
  font-family: "Noto Sans KR";
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  letter-spacing: -2.09px;
  text-transform: uppercase;
}

.sidebar-title h5 span:first-of-type {
  color: #406cdc;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -2.09px;
  text-transform: uppercase;
}

.sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.sidebar-item-title {
  display: flex;
  flex-direction: column;
}

.sidebar-item-title span {
  transition: color 0.4s ease;
}

.sidebar-item-title span:first-of-type {
  color: #000;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -1.76px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.sidebar-item-title span:last-of-type {
  color: #737373;
  font-size: 16px;
  letter-spacing: -1.76px;
  text-transform: uppercase;
}

.sidebar-item {
  padding-block: 10px;
  border-bottom: 1px solid #efeff0;

  &:hover {
    .sidebar-item-title span {
      color: #406cdc;
    }
  }
}

.sidebar-item img {
  max-width: 100px;
  width: 100%;
}

.mb-40 {
  margin-bottom: 40px;
}

.no-mb {
  margin-bottom: 0;
}

.sidebar-sub {
  color: #737373;
  font-size: 12px;
  letter-spacing: -1.32px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sidebar-btns {
  display: flex;
  align-items: center;
  margin-bottom: 10px;

  a {
    flex-basis: 50%;
    text-align: center;
    font-size: 20px;
    letter-spacing: -2.09px;
    padding: 10px 32px;
  }

  a:first-of-type {
    border: 1px solid #406cdc;
    color: #406cdc;
    background-color: #fff;
    transition: color 0.4s ease, background-color 0.4s ease;

    &:hover {
      color: #000;
      background-color: #f5f6fa;
    }
  }

  a:last-of-type {
    background-color: #f5f6fa;
    border-color: transparent;
    transition: border-color 0.4s ease, color 0.4s ease,
      background-color 0.4s ease;
  }

  a:last-of-type:hover {
    border: 1px solid #406cdc;
    border-color: #406cdc;
    color: #406cdc;
    background-color: transparent;
  }
}

.sidebar-item-num {
  color: #000;
  font-family: Inter;
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -1.76px;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.sidebar-item-ac {
  display: flex;
  align-items: center;
  gap: 10px;

  &:hover {
    .sidebar-item-title span,
    .sidebar-item-num {
      color: #406cdc;
    }
  }
}

.comments-top-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;

  a:first-of-type {
    display: flex;
    align-items: center;
    gap: 20px;

    img {
      display: block;
      border-radius: 70px;
      padding: 4px;
      border: 1px solid #c9c9c9;
    }
  }

  a:last-of-type {
    border-radius: 78px;
    background: #303038;
    padding: 4px 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    transition: background-color 0.4s ease, color 0.4s ease;

    &:hover {
      background-color: #406cdc;
      color: #000;
    }
  }
}

.comments-top-counters {
  margin-bottom: 18px;
}

.comments-top-img {
  padding: 10px;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  background: #f9fafb;
  width: 100%;
  margin-bottom: 16px;
}

.comments-top-img img {
  width: 100%;
}

.comments-top-img h5 {
  color: #000;
  font-size: 18px;
  text-transform: uppercase;
}

.comments-body {
  padding: 10px;
}

.comment-body {
  padding: 10px;
  border-bottom: 1px solid #d2d4dd;
}

.comments-top-input input {
  width: 100%;
  padding: 14px 8px;
  font-size: 18px;
  margin-bottom: 16px;
}

.comments-top-input input::placeholder {
  color: #737373;
  font-size: 18px;
  text-transform: uppercase;
}

.comments-top {
  border-top: 1px solid #dee3ee;
  padding-top: 16px;
}

.comments-top-input-disc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #d2d4dd;
  margin-bottom: 16px;
}

.comment-item-btns {
  display: flex;
  gap: 4px;
  align-items: center;
}

.comment-item-btns span {
  border-radius: 36px;
  background: #f4f4f4;
  padding: 4px 10px;
}

.input-disc-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comments-top-robot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  border: 1px solid #c9c9c9;
  padding: 14px 8px;
}

.comments-top-robot span:first-of-type {
  display: flex;
  align-items: center;
  gap: 8px;
}

.green {
  color: #1ed675;
  font-family: "Noto Sans KR";
  font-size: 18px;
  text-transform: uppercase;
}

.comments-top-robot a {
  display: flex;
  align-items: center;
  color: #c9c9c9;
  font-size: 18px;
  text-transform: uppercase;
}

.comments-item-avatar img {
  border-radius: 50%;
}

.comments-item {
  margin-bottom: 16px;
}

.comments-item-top {
  display: flex;
  align-items: flex-start;
  margin-top: 16px;
  margin-bottom: 16px;
}

.comment-item-btns {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.comment-item-top-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 10px;
  gap: 0 10px;
}

.comments-item-date {
  color: #737373;
  font-size: 14px;
  text-transform: lowercase;
  flex-basis: 100%;
}

.comment-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;

  a:first-of-type {
    color: #000;
    font-family: "Noto Sans KR";
    font-size: 17px;
    font-style: normal;
    font-weight: 350;
    line-height: normal;
    text-transform: uppercase;
  }
}

.comment-item-body {
  color: #000;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.comment-item-actions-btns {
  display: flex;
  align-items: center;
  gap: 10px;

  a {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

.comment-btn {
  justify-content: flex-end;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 30px;
}

.footer {
  background-color: #f4f6f8;
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-links li:not(:last-of-type) {
  position: relative;

  &::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 100%;
    right: -6px;
    background-color: #c9c9c9;
  }
}

.footer-copy {
  margin-bottom: 8px;
  display: block;
}

.footer-desc {
  margin-bottom: 22px;
  display: block;
}

.link {
  color: #406cdc;
  text-decoration: underline;
  font-weight: 700;
}

.mb-20 {
  margin-bottom: 20px;
}

.article-btn {
  background-color: #000;
  color: #fff;
  display: block;
  max-width: 350px;
  padding: 16px 20px;
  border-radius: 16px;
  width: 100%;
  margin: 20px auto;
  text-align: center;
  font-weight: 700;
  transition: color 0.4s ease, background-color 0.4s ease;

  &:hover {
    background-color: #406cdc;
    color: #000;
  }
}

.article-img {
  width: 100%;
  margin-bottom: 20px;
}

.article-title {
  margin-bottom: 40px;
  font-weight: 700;
}

.article-text {
  font-size: 18px;
  margin-bottom: 10px;
}

#tomorrow {
  font-weight: 700;
}

#link-btn {
  scroll-margin-top: 100px;
}

@media (max-width: 1200px) {
  .main {
    flex-direction: column;
    align-items: center;
  }

  .sidebar {
    max-width: 600px;
  }

  .sidebar-item {
    justify-content: space-between;
  }

  .article-container {
    max-width: 900px;
  }
}

@media (max-width: 1000px) {
  .nav {
    gap: 24px;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .main {
    padding-top: 50px;
  }
}
