/* Policy Page Styles - matching smart-manufacturing.vn aesthetic */

/* Banner Section */
.policy-banner {
  background-color: #01a94b;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 80px 0 30px 0;
  overflow: hidden;
  position: relative;
}

.policy-banner::before {
  content: "";
  position: absolute;
  top: 100px;
  right: 0;
  background-image: url(/public/decor_general_solution.webp);
  background-repeat: no-repeat;
  background-size: 176px auto;
  width: 176px;
  height: 297px;
  z-index: 0;
  mix-blend-mode: soft-light;
}

.policy-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.policy-banner-content {
  flex: 1;
  max-width: 800px;
}

.policy-banner-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  text-align: left;
}

.policy-banner-media {
  flex: 0 0 55%;
  max-width: 770px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: clamp(0px, 4.68vw, 90px);
}

.policy-banner-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Main Layout */
.policy-main-section {
  background-color: #f3f8ff;
  padding: clamp(30px, 5.2vw, 100px) 0;
  min-height: 80vh;
}

.policy-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

/* Left Content Column */
.policy-content-left {
  background-color: #ffffff;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 64px 40px;
}

.policy-section-item {
  scroll-margin-top: 165px;
  width: 100%;
}

.policy-section-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 42px;
  color: #090909;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
}

.policy-section-body {
  color: #090909;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}

.policy-section-body p {
  margin: 0 0 16px 0;
}

.policy-section-body b,
.policy-section-body strong {
  font-weight: 700;
}

.policy-section-body a {
  color: #01a94b;
  text-decoration: underline;
  transition: color 0.15s ease;
  word-break: break-word;
}

.policy-section-body a:hover {
  color: #01a94b;
}

/* Lists styling */
.policy-section-body ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
  list-style-type: none;
}

.policy-section-body ul>li {
  position: relative;
  margin-top: 12px;
  padding-left: 5px;
  line-height: 150%;
}

.policy-section-body ul>li::before {
  content: " ";
  background: #01a94b;
  width: 10px;
  height: 10px;
  display: inline-block;
  position: absolute;
  top: 9px;
  left: -20px;
}

.policy-section-body ul>li ul {
  padding-left: 20px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.policy-section-body ul>li ul>li::before {
  content: " ";
  background: #090909;
  border-radius: 100%;
  width: 5px;
  height: 5px;
  top: 11px;
  left: -10px;
}

.policy-section-body ol {
  margin: 0 0 16px 0;
  padding-left: 32px;
}

.policy-section-body ol>li {
  position: relative;
  margin-top: 12px;
  padding-left: 5px;
  line-height: 150%;
}

/* Right Sidebar: Table of contents */
.policy-sidebar {
  background-color: #ffffff;
  flex: 0 0 31%;
  min-width: 445px;
  position: sticky;
  top: 165px;
  padding: 64px 40px;
  height: max-content;
  display: flex;
  flex-direction: column;
}

.policy-toc-wrapper {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.policy-toc-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 42px;
  color: #090909;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  text-align: left;
}

.policy-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.policy-toc-nav::-webkit-scrollbar {
  width: 4px;
}

.policy-toc-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.policy-toc-link {
  color: #090909;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  transition: color 0.15s ease, font-weight 0.15s ease;
  display: block;
}

.policy-toc-link:hover {
  color: #01a94b;
  cursor: pointer;
}

.policy-toc-link.active {
  color: #01a94b;
  font-weight: 600;
}

/* Responsive Media Queries matching reference breakpoints */
@media screen and (max-width: 1398px) {
  .policy-content-left {
    padding: 40px 30px;
  }

  .policy-sidebar {
    padding: 40px 30px;
    min-width: 345px;
  }

  .policy-section-title,
  .policy-toc-title {
    font-size: 26px;
  }
}

@media screen and (max-width: 991px) {
  .policy-section-item {
    scroll-margin-top: 100px;
  }

  .policy-banner {
    padding: 60px 0 20px 0;
  }

  .policy-banner-container {
    text-align: center;
    gap: 24px;
  }

  .policy-banner-content {
    max-width: 100%;
  }

  .policy-banner-title {
    font-size: 36px;
    text-align: center;
  }

  .policy-banner-media {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .policy-main-section {
    padding: 30px 0;
  }

  .policy-layout {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .policy-sidebar {
    width: 100%;
    min-width: unset;
    max-width: 100%;
    position: static;
    padding: 24px 16px;
  }

  .policy-toc-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .policy-toc-nav {
    gap: 8px;
  }

  .policy-content-left {
    padding: 24px 16px;
  }

  .policy-section-title {
    font-size: 20px;
  }
}

@media screen and (max-width: 767px) {
  .policy-banner-container {
    flex-direction: column;
  }
}

@media screen and (max-width: 575px) {
  .policy-banner-title {
    font-size: 28px;
  }

  .policy-banner-media {
    max-width: 300px;
  }

  .policy-section-title,
  .policy-toc-title {
    font-size: 18px;
  }

  .policy-section-body,
  .policy-toc-link {
    font-size: 15px;
  }
}