body {
  height: 100%;
  margin: 0;
  font-family: "Roboto", "Noto Sans KR", sans-serif;
  background: #edeff0;
  color: #1c1c1c;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  min-height: calc(100vh - 100px);
  margin-block: 50px;
}

.sidebar {
  width: 260px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 15px;
  margin-right: 30px;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
}

.logo {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  padding-block: 40px;
  color: #284e7b;
  border-bottom: 1px solid #c3c3c3;
  cursor: default;
}

.menu {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
  border-bottom: 1px solid #c3c3c3;
}

.menu-item.active {
  background: #2b4d78;
  color: white;
}

.menu-item.active img.icon {
  filter: brightness(0) invert(1);
}

.icon {
  width: 20px;
  height: 20px;
}

ul.submenu {
  margin: 0;
  padding-left: 50px;
  padding-block: 5px;
  background-color: #f3f3f3;
  border-bottom: 1px solid #c3c3c3;
  font-size: 14px;
  list-style: none;
}
ul.submenu li {
  padding-block: 10px;
}
ul.submenu li a {
  color: #1c1c1c;
}

.nav-footer {
  display: inline-flex;
  justify-content: space-between;
  padding: 20px;
  font-size: 14px;
  margin-top: auto;
}

.lang-select-wrapper {
  position: relative;
  display: inline-block;
  width: 70px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 14px;
}
.lang-selected {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
}
.lang-selected img {
  width: 16px;
  height: 16px;
}
.lang-options {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}
.lang-select-wrapper.open .lang-options {
  display: block;
}
.lang-options li {
  padding: 8px 10px;
  text-align: center;
  cursor: pointer;
}
.lang-options li:hover {
  background-color: #f0f0f0;
}

.main-content {
  width: 1040px;
  padding: 40px 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
  text-align: center;
}

.tab-content {
  display: none;
  max-height: calc(100vh - 180px);
  overflow-x: hidden;
  overflow-y: auto;
}
.tab-content.active {
  display: block;
}

.tab-content h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
}
.tab-content h2 {
  font-size: 22px;
  margin-bottom: 40px;
  scroll-margin-top: 20px;
}

.main-image {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 5px;
}

.desc {
  font-size: 16px;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
  word-break: keep-all;
}

.price-content {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  gap: 20px;
}
.price-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 330px;
  padding: 20px 30px;
  border: 1px solid #c3c3c3;
  border-radius: 15px;
  text-align: left;
}
.price-box .badge {
  width: fit-content;
  padding: 5px 20px 3px;
  border: 1px solid #1c1c1c;
  border-radius: 20px;
  font-size: 14px;
}
.price-box .value {
  margin-block: 20px;
  color: #284e7b;
  font-size: 50px;
  font-weight: bold;
}
.price-box .value span {
  font-size: 30px;
  margin-left: 5px;
}
.price-box p {
  line-height: 1.5;
  font-size: 14px;
}
.price-box .request-license {
  display: inline-flex;
  justify-content: center;
  width: calc(100% - 20px);
  background-color: #284e7b;
  border-radius: 20px;
  padding: 10px;
  margin-top: 20px;
  color: #fff;
}

table.table-download {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
table.table-download thead {
  background-color: #f3f3f3;
  font-weight: bold;
}
table.table-download thead th:first-child {
  border-radius: 10px 0 0 10px;
}
table.table-download thead th:last-child {
  border-radius: 0 10px 10px 0;
}
table.table-download th,
table.table-download td {
  padding: 15px 20px;
  text-align: center;
  vertical-align: middle;
}
table.table-download td {
  border-bottom: 1px solid #c3c3c3;
}
table.table-download td a {
  color: #2b4d78;
  font-weight: bold;
}
table.table-download td a img {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  vertical-align: middle;
}

.howto-content {
  width: 800px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.5;
}
.howto-content .howto-tip {
  background-color: #f3f3f3;
  border-radius: 10px;
  padding: 15px 20px;
}
.howto-content h2 {
  margin: 60px 0 10px;
  font-weight: bold;
}
.howto-content img {
  max-width: 780px;
  border: 1px solid #c3c3c3;
  border-radius: 5px;
  margin-top: 10px;
}
.howto-content .howto-half-txt {
  display: flex;
}
.howto-content .howto-half-txt img {
  width: 40%;
}
.howto-content .howto-half-txt p {
  margin-left: 20px;
}
.howto-content .howto-half-img-sm {
  display: flex;
  column-gap: 20px;
  margin-left: 20px;
}
.bg-img {
  padding: 10px;
  background-color: #d9d9d9;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 비율 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.about-image {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 5px;
}

.divider {
  border: none;
  border-top: 1px dashed #c3c3c3;
  margin: 40px 0;
}

.mb-20 {
  margin-bottom: 20px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-40 {
  margin-top: 40px;
}

footer {
  margin-top: -30px;
  margin-left: 260px;
  padding-bottom: 15px;
  text-align: center;
  font-size: 12px;
}

.topbar {
  display: none;
}
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
}

@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin: 20px;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
  }
  .topbar .logo {
    padding-block: 10px;
    font-size: 30px;
    border: none;
  }
  .topbar .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #f3f3f3;
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 999;
  }
  .topbar .menu.show {
    display: flex;
  }
  .topbar .menu-item {
    padding: 12px 20px;
  }
  .topbar .submenu {
    padding-left: 20px;
  }
  .topbar .nav-footer {
    padding: 12px 20px;
  }

  .main-content {
    width: calc(100% - 40px);
    padding: 20px;
  }

  .tab-content {
    height: 100vh;
    max-height: calc(100vh - 150px);
  }

  .price-content {
    flex-direction: column;
    align-items: center;
  }

  .price-box {
    width: 100%;
    max-width: 400px;
  }

  .howto-content,
  .video-wrapper {
    width: 100%;
  }

  .howto-content .howto-half-txt,
  .howto-content .howto-half-img-sm {
    flex-direction: column;
  }

  .howto-content .howto-half-txt img,
  .howto-content .howto-half-img-sm img {
    width: 100%;
    margin-left: 0;
  }

  footer {
    margin-left: 0;
    padding: 10px 0;
    margin-top: -25px;
  }
}
