
:root {
  /* Background */
  --body-bg-color: #f5f7fa;
  --body-bg-gradient1: #ffffff;
  --body-bg-gradient2: #e9eef3;

  /* Typography */
  --body-text-color: #334155;
  --heading-color: #102a43;
  --font-family: Calibri, Arial, sans-serif;

  /* Hero */
  --hero-gradient1: #174a67;
  --hero-gradient2: #0f2742;

  /* Header */
  --header-bg-color: #0f2742;
  --header-text-color: #ffffff;
  --nav-link-color: #f1f5f9;

  /* Footer */
  --footer-bg-color: #0f2742;
  --footer-bg-gradient1: #0f2742;
  --footer-bg-gradient2: #091b2c;
  --footer-text-color: #dbe4ee;
  --footer-link-color: #e2bd75;

  /* Links */
  --link-color: #17618a;
  --link-text-color: #ffffff;

  /* Boxes */
  --box-color: #174a67;
  --box-text-color: #ffffff;

  /* Additional accents */
  --accent-color: #a32638;
  --accent-hover-color: #831d2d;
  --gold-color: #c5a15a;
  --border-color: #dbe3eb;
  --card-bg-color: #ffffff;
  --muted-text-color: #64748b;
}

html {
  overflow-x: hidden;
}
body {
  background-color: var(--body-bg-color);
  color: var(--body-text-color) !important;
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
    
}


h1 {
    font-size: clamp(2rem, 4vw, 2.5rem) !important;
}
h2 {
    font-size: clamp(1.6rem, 3vw, 2rem) !important;
}
h3 {
    font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}
p {
  margin-bottom: 0.5rem !important;
}

  section {
  padding: 15px 0;
  scroll-margin-top: 70px;
}

h2, h3 {
  color: var(--heading-color) !important;
}

.content-area a {
  color: var(--link-color) !important;
  text-decoration: none !important;
}

.content-area a:hover {
  color: var(--link-color) !important;
  opacity: 0.8;
}



.content-area section {
  margin: 15px 0;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.main-section-style-gradient {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
  color: var(--header-text-color);
}

.main-section-style-gradient h2,
.main-section-style-gradient h3,
.main-section-style-gradient p,
.main-section-style-gradient li,
.main-section-style-gradient a {
  color: var(--header-text-color) !important;
}

.main-section-style-gradient a {
  text-decoration: underline !important;
}


.main-section-style-dashed {
  padding: 1.5rem;
  border: 2px dashed color-mix(in srgb, var(--link-color) 55%, transparent);
  border-radius: 12px;
}


.main-section-style-image-bg {
  position: relative;
  overflow: hidden;
  padding: 3.125rem 1.5rem;
  border-radius: 17px;
  background-image: url("/sources/laws-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

.main-section-style-image-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: color-mix(in srgb, #00000091, transparent 30%);
}

.main-section-style-image-bg > :not(.section-style-toolbar) {
  position: relative;
  z-index: 2;
}

.main-section-style-image-bg :is(h2, h3, a) {
  color: #ffffff !important;
}



/* ==========================================
   PREMIUM SOFT LEGAL EDITORIAL SECTION
   ========================================== */

.main-section-style-soft {
  --soft-navy: #102a43;
  --soft-blue: #174a67;
  --soft-red: #a32638;
  --soft-gold: #c5a15a;
  --soft-ink: #34465a;
  --soft-border: #dce5ed;

  position: relative;
  display: flow-root;

  margin: 2.5rem 0;
  padding: 2.4rem 2.5rem 2.3rem;

  color: var(--soft-ink);
  font-family: Calibri, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.85;

  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(197, 161, 90, 0.08),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f5f8fb 65%,
      #edf3f8 100%
    );

  border: 1px solid var(--soft-border);
  border-radius: 12px;

  box-shadow:
    0 8px 35px rgba(15, 39, 66, 0.035),
    0 2px 8px rgba(15, 39, 66, 0.025);

  overflow-wrap: break-word;
}

/* Decorative top accent */

.main-section-style-soft::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2.5rem;

  width: 125px;
  height: 3px;

  background: linear-gradient(
    90deg,
    var(--soft-red),
    var(--soft-gold),
    transparent
  );

  border-radius: 0 0 4px 4px;
}

/* Subtle corner ornament */

.main-section-style-soft::after {
  content: "";
  position: absolute;
  top: 17px;
  right: 20px;

  width: 43px;
  height: 43px;

  border-top: 1px solid rgba(197, 161, 90, 0.35);
  border-right: 1px solid rgba(197, 161, 90, 0.35);

  border-radius: 0 7px 0 0;
  pointer-events: none;
}

/* ==========================================
   HEADINGS
   ========================================== */

.main-section-style-soft h2 {
  position: relative;

  margin: 0 0 1.9rem;
  padding: 0 0 1.1rem;

  color: var(--soft-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;

  border-bottom: 1px solid #d8e1e9;
}

/* Burgundy and gold underline */

.main-section-style-soft h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;

  width: 105px;
  height: 3px;

  background: linear-gradient(
    90deg,
    var(--soft-red),
    var(--soft-gold)
  );
  border-radius: 3px;
}

/* ==========================================
   PARAGRAPHS
   ========================================== */

.main-section-style-soft p {
  margin: 0 0 1.35rem;
  color: var(--soft-ink);
  line-height: 1.9;
}

/* First paragraph */

.main-section-style-soft p:first-of-type {
  color: #263e52;
  font-size: 1.035em;
}

/* Subtle paragraph emphasis */

.main-section-style-soft p + p {
  margin-top: 0.25rem;
}

/* Final paragraph: editorial takeaway */

.main-section-style-soft p:last-of-type {
  display: flow-root;
  clear: none;

  margin: 1.2rem 0 0;
  padding: 1.2rem 1.5rem;

  color: #243e55;
  font-weight: 500;

  background: linear-gradient(
    110deg,
    #eaf1f7,
    rgba(255, 255, 255, 0.75)
  );

  border-left: 3px solid #c5a15a;
  border-top: 1px solid #dce5ed;
  border-bottom: 1px solid #dce5ed;
  border-radius: 0 7px 7px 0;
}

/* ==========================================
   IMPORTANT TERMS
   ========================================== */

.main-section-style-soft strong,
.main-section-style-soft b {
  color: var(--soft-blue);
  font-weight: 700;

  background: linear-gradient(
    transparent 76%,
    rgba(197, 161, 90, 0.25) 76%
  );
}

/* ==========================================
   LINKS
   ========================================== */

.main-section-style-soft a {
  color: #17618a;
  font-weight: 600;

  text-decoration: underline;
  text-decoration-color: #a7c3d5;
  text-underline-offset: 4px;

  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.main-section-style-soft a:hover {
  color: var(--soft-red);
  text-decoration-color: var(--soft-red);
}

.main-section-style-soft a:focus-visible {
  outline: 2px solid var(--soft-red);
  outline-offset: 3px;
}

/* ==========================================
   OPTIONAL ADDITIONAL HEADINGS
   ========================================== */

.main-section-style-soft h3 {
  margin: 2.2rem 0 1rem;
  padding-left: 0.9rem;

  color: var(--soft-navy);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;

  border-left: 3px solid var(--soft-gold);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767.98px) {

  .main-section-style-soft {
    margin: 1.8rem 0;
    padding: 1.6rem 1.3rem;

    font-size: 16px;
    border-radius: 9px;
  }

  .main-section-style-soft::before {
    left: 1.3rem;
    width: 95px;
  }

  .main-section-style-soft::after {
    width: 28px;
    height: 28px;
    top: 12px;
    right: 12px;
  }

  .main-section-style-soft h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .main-section-style-soft p {
    line-height: 1.8;
  }

  .main-section-style-soft p:last-of-type {
    padding: 1rem 1.1rem;
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-section-style-soft a {
    transition: none;
  }
}


.main-section-style-contrast {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--box-color);
}

.main-section-style-contrast,
.main-section-style-contrast :is(h2, h3, h4, h5, h6, p, li, span, strong, em, td, th, a) {
  color: var(--box-text-color, #ffffff) !important;
}

.main-section-style-contrast a {
  text-decoration: underline !important;
}

.main-section-style-contrast a:hover {
  color: var(--box-text-color, #ffffff) !important;
  opacity: 0.8;
}






  
.sidebar-search-box {
  width: 279px;
  margin-bottom: 15px;
}

.sidebar-search-box h3 {
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--body-text-color) !important;
}

.sidebar-search-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-search-box input[type="search"],
.sidebar-search-box input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #ffffff;
  color: #222222 !important;
  font-size: 0.95rem;
  font-family: var(--font-family);
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.sidebar-search-box input[type="search"]:focus,
.sidebar-search-box input[type="email"]:focus {
  border-color: var(--link-color);
  box-shadow: 0 0 0 4px rgba(176, 54, 54, 0.12);
}

.sidebar-search-box input[type="search"]::placeholder,
.sidebar-search-box input[type="email"]::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.sidebar-search-box button {
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--box-color);
  color: var(--box-text-color, white);;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(59, 104, 91, 0.25);
}

.sidebar-newsletter-box p {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--body-text-color);
  opacity: 0.75;
}

      .sidebar-links {
  width: 279px;
  margin-bottom: 15px;
}
.sidebar-links h3 {
  margin: 0 0 20px;
  font-weight: 700;
}

.sidebar-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-page-list li {
  list-style: none;
}

.sidebar-page-list a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--body-text-color);
  background: transparent;
  font-size: 0.98rem;
  font-weight: 500;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.sidebar-page-list a:hover {
  background: rgba(176, 54, 54, 0.08);
  color: var(--link-color);
  transform: translateX(4px);
}

.sidebar-page-list a.active {
  background: var(--box-color);
  color: var(--box-text-color, white);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(59, 104, 91, 0.25);
}
      .twitter-tweet {
  width: 279px !important;
}

.x {
  display: flex;
  justify-content: center;
}


.error_page {
  min-height: 70vh;
}


.footer{
  background: var(--footer-bg-color);
  color: var(--footer-text-color);
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(1.75rem, 2.5vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.footer a{
  color: var(--footer-link-color, var(--link-color));
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .01em;

  transition: opacity .2s ease, text-decoration-color .2s ease;
}

.footer a:hover,
.footer a:focus-visible{
  opacity: .9;
}
.footer .social-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--link-color) 45%, var(--footer-bg-color));
  border-radius: 999px;
  color: var(--footer-link-color, var(--link-color));
  background: color-mix(in srgb, var(--link-color) 20%, var(--footer-bg-color));
  font-size: 1.25rem;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.footer .social-icon:hover,
.footer .social-icon:focus-visible{
  transform: translateY(-3px);
  border-color: var(--link-color);
  color: var(--link-text-color, #fff);
  background: var(--link-color);
}

.footer .footer-divider{
  border: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--footer-text-color) 40%,
    transparent
  );
  margin: 1.25rem 0;
}

.footer .small{
  font-style: italic;
  font-size: .95rem;
}

@media (max-width: 575.98px){
  .footer .social-icon{
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .footer .small{
    font-size: .9rem;
  }
}
  



 .navbar {
  background-color: var(--header-bg-color) !important;
  
}

.hero-section {
  padding: 105px 0;
  position: relative;
  overflow: hidden;
  color: var(--header-text-color);
}

.hero-section.with-bg {
  background-image: url("/sources/laws-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section.with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.404));
  opacity: 0.5;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

  
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }
  
}
  .navbar .navbar-nav .nav-link {
    color: var(--nav-link-color, #141414) !important;
  }

  .navbar .navbar-nav .nav-link.active {
  color: var(--link-color) !important;
  font-weight: bold;
}
@media (max-width: 1199.98px) {
  .navbar-collapse {
    position: fixed;
    top: 61px;
    left: 15px;
    right: 15px;
    background-color: color-mix(in srgb, var(--header-bg-color) 65%, transparent);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 15px;
    margin: 0;
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-item {
    margin: 7px 0;
  }

  .navbar-nav .nav-item:hover {
    transform: translateY(-1px);
  }

  .navbar .navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 0;
  }

  .navbar-toggler {
    z-index: 10000;
    position: relative;
    border: var(--bs-border-width) solid var(--nav-link-color, #141414) !important;
  }
}

.custom-dropdown {
  border: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
  background: color-mix(
    in srgb,
    var(--header-bg-color) 65%,
    transparent
  ) !important;
  backdrop-filter: blur(12px);
}

.custom-dropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  color: var(--nav-link-color, #141414) !important;
  font-weight: 500;
  border-radius: 0;
  text-wrap: wrap;
}
.dropdown-menu {
  display: none;
}

.custom-dropdown .dropdown-item:hover {
  color: #fff;
  background: color-mix(
    in srgb,
    var(--header-bg-color) 95%,
    transparent
  ) !important;
}
.nav-item.dropdown > .nav-link {
  display: flex;
  align-items: center;
}

.nav-item.dropdown > .nav-link .arrow {
  position: relative;
  margin-left: auto;
  border: solid var(--nav-link-color, #141414);
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.25s;
}

.dropdown.open .dropdown-menu {
  display: block;
}

@media (min-width: 1200px) {
  .nav-item.dropdown {
    position: relative;
  }
  .nav-item.dropdown > .nav-link .arrow {
    margin-left: 7px;
  }
  .custom-dropdown.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    z-index: 1000;
  }

  .nav-item.dropdown:hover > .nav-link .arrow {
    transform: rotate(-135deg);
  }
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
  }
}
@media (max-width: 1199px) {
  .nav-item.dropdown > .nav-link .arrow {
    padding: 4px;
  }
}


            

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--link-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--footer-bg-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--link-color), transparent 20%);
  color: var(--footer-bg-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}


/* ==========================================
   PREMIUM LEGAL EDITORIAL DESIGN
   Vietnam Law & Standards Guide
   ========================================== */

.styled-section {
  --legal-navy: #102a43;
  --legal-blue: #174a67;
  --legal-red: #a32638;
  --legal-gold: #c5a15a;
  --legal-gold-light: #ead9b6;
  --legal-ink: #334155;
  --legal-muted: #64748b;
  --legal-border: #dce4ec;
  --legal-surface: #f5f8fb;

  position: relative;
  color: var(--legal-ink);
  font-family: Calibri, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
  display: flow-root;
}

/* ==========================================
   PARAGRAPHS
   ========================================== */

.styled-section p {
  margin: 0 0 1.5rem;
  line-height: 1.9;
}

/* Elegant introduction */

.styled-section > p:first-child {
  position: relative;
  padding: 1.4rem 1.7rem;
  margin-bottom: 1.6rem;

  color: #233d54;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.85;

  background:
    linear-gradient(
      110deg,
      #edf3f8 0%,
      #f8fafc 75%,
      #ffffff 100%
    );

  border-left: 4px solid var(--legal-red);
  border-top: 1px solid #e5ebf1;
  border-bottom: 1px solid #e5ebf1;
  border-radius: 0 8px 8px 0;
}

/* Small decorative gold line */

.styled-section > p:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  width: 4px;
  height: 35%;
  background: var(--legal-gold);
}

/* Second introductory paragraph */

.styled-section > p:nth-child(2) {
  padding: 0.35rem 0 0.35rem 1.35rem;
  margin-bottom: 2.3rem;
  border-left: 2px solid var(--legal-gold-light);
}

/* ==========================================
   SECTION HEADINGS
   ========================================== */

.styled-section h2 {
  position: relative;
  clear: both;

  margin: 3rem 0 1.7rem;
  padding: 0 0 1.15rem 1.15rem;

  color: var(--legal-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;

  border-bottom: 1px solid var(--legal-border);
}

/* Vertical burgundy accent */

.styled-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;

  width: 4px;
  height: 1.15em;
  border-radius: 3px;

  background: linear-gradient(
    180deg,
    var(--legal-red),
    #6f1c2b
  );
}

/* Gold underline */

.styled-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;

  width: 110px;
  height: 3px;

  background: linear-gradient(
    90deg,
    var(--legal-red) 0%,
    var(--legal-gold) 70%,
    transparent 100%
  );
}

/* Smaller headings */

.styled-section h3 {
  position: relative;
  margin: 2.5rem 0 1.1rem;
  padding-bottom: 0.65rem;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--legal-blue);

  border-bottom: 1px dashed #cdd9e3;
}

.styled-section h4 {
  margin: 2rem 0 0.85rem;
  color: var(--legal-navy);
  font-size: 1.16rem;
  font-weight: 700;
}

/* ==========================================
   BOLD TERMS & LINKS
   ========================================== */

.styled-section strong,
.styled-section b {
  color: #123e5c;
  font-weight: 700;
  background: linear-gradient(
    transparent 75%,
    rgba(197, 161, 90, 0.19) 75%
  );
}

.styled-section a {
  color: #17618a;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(23, 97, 138, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;

  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.styled-section a:hover {
  color: var(--legal-red);
  text-decoration-color: var(--legal-red);
}

.styled-section a:focus-visible {
  outline: 2px solid var(--legal-red);
  outline-offset: 3px;
}

/* ==========================================
   PREMIUM EDITORIAL LISTS
   ========================================== */

.styled-section ul,
.styled-section ol {
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: legal-item;
}

/* List items with number badges */

.styled-section > ul > li,
.styled-section > ol > li {
  position: relative;
  counter-increment: legal-item;

  margin-bottom: 0.75rem;
  padding: 1rem 1.2rem 1rem 4.2rem;
display: flex;
  color: #34465a;
  line-height: 1.7;

  background: linear-gradient(
    110deg,
    #f3f6f9 0%,
    #ffffff 100%
  );

  border: 1px solid #e1e8ee;
  border-left: 3px solid #c5a15a;
  border-radius: 6px;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.styled-section > ul > li::before,
.styled-section > ol > li::before {
  content: counter(legal-item, decimal-leading-zero);

  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 2.35rem;
  height: 2.35rem;

  color: #ffffff;
  background: var(--legal-navy);

  border: 1px solid rgba(197, 161, 90, 0.5);
  border-radius: 5px;

  font-family: Georgia, serif;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Hover interaction */

.styled-section > ul > li:hover,
.styled-section > ol > li:hover {
  background: #f7f9fc;
  border-color: #d0dce6;
  border-left-color: var(--legal-red);

  transform: translateX(3px);

  box-shadow: 0 5px 18px rgba(15, 39, 66, 0.05);
}

/* Nested lists */

.styled-section li ul,
.styled-section li ol {
  margin: 0.85rem 0 0.25rem;
  padding-left: 1.4rem;
  list-style: disc;
}

.styled-section li li {
  margin: 0.4rem 0;
}

.styled-section li li::marker {
  color: var(--legal-red);
}

/* ==========================================
   BLOCKQUOTES
   ========================================== */

.styled-section blockquote {
  position: relative;
  margin: 2.2rem 0;
  padding: 1.5rem 1.7rem 1.5rem 2rem;

  background: linear-gradient(
    115deg,
    #f0f4f8,
    #ffffff
  );

  border-left: 4px solid var(--legal-gold);
  border-radius: 0 7px 7px 0;

  color: #33495c;
  font-family: Georgia, serif;
  font-style: italic;
  line-height: 1.85;
}

/* ==========================================
   TABLES FOR FUTURE LEGAL CONTENT
   ========================================== */

.styled-section table {
  width: 100%;
  margin: 1.8rem 0;
  border-collapse: collapse;

  color: #334155;
  font-size: 0.95rem;

  border: 1px solid var(--legal-border);
}

.styled-section th {
  padding: 0.95rem 1rem;
  background: var(--legal-navy);
  color: #ffffff;

  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--legal-gold);
}

.styled-section td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--legal-border);
}

.styled-section tbody tr:nth-child(even) {
  background: #f3f6fa;
}

.styled-section tbody tr:hover {
  background: #edf3f8;
}

/* ==========================================
   HORIZONTAL RULES
   ========================================== */

.styled-section hr {
  height: 1px;
  margin: 3rem 0;

  border: 0;
  opacity: 1;

  background: linear-gradient(
    90deg,
    var(--legal-gold),
    #dbe3eb 40%,
    transparent
  );
}

/* ==========================================
   INLINE CODE / DOCUMENT NUMBERS
   ========================================== */

.styled-section code {
  padding: 0.2rem 0.45rem;
  color: #8f2537;
  background: #f4f0ed;

  border: 1px solid #e8dcd3;
  border-radius: 4px;

  font-size: 0.87em;
  overflow-wrap: anywhere;
}

/* ==========================================
   TEXT SELECTION
   ========================================== */

.styled-section ::selection {
  background: #dbe8f1;
  color: var(--legal-navy);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767.98px) {

  .styled-section {
    font-size: 16px;
    line-height: 1.8;
  }

  .styled-section > p:first-child {
    padding: 1.15rem 1.2rem;
    font-size: 1.02rem;
  }

  .styled-section > p:nth-child(2) {
    padding-left: 1rem;
  }

  .styled-section h2 {
    margin-top: 2.4rem;
    font-size: 1.55rem;
    padding-left: 0.95rem;
  }

  .styled-section > ul > li,
  .styled-section > ol > li {
    padding: 0.95rem 0.9rem 0.95rem 3.65rem;
  }

  .styled-section > ul > li::before,
  .styled-section > ol > li::before {
    left: 0.7rem;
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.8rem;
  }

  .styled-section > ul > li:hover,
  .styled-section > ol > li:hover {
    transform: none;
  }

  .styled-section blockquote {
    padding: 1.2rem 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .styled-section *,
  .styled-section *::before,
  .styled-section *::after {
    transition: none !important;
  }
}

/* ==========================================
   PREMIUM SIDEBAR NEWSLETTER
   Vietnam Law & Standards Guide
   ========================================== */

.newsletter {
  --nl-navy: #102a43;
  --nl-blue: #174a67;
  --nl-red: #a32638;
  --nl-gold: #c5a15a;
  --nl-border: #dce5ed;
  --nl-muted: #64748b;

  position: relative;
  overflow: hidden;

  padding: 1.7rem 1.4rem 1.4rem;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(197, 161, 90, 0.11),
      transparent 48%
    ),
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f3f7fb 100%
    );

  border: 1px solid var(--nl-border);
  border-radius: 12px;

  box-shadow:
    0 8px 28px rgba(16, 42, 67, 0.045),
    0 2px 6px rgba(16, 42, 67, 0.025);

  font-family: Calibri, Arial, sans-serif;
}

/* Top decorative line */

.newsletter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.4rem;

  width: 95px;
  height: 3px;

  background: linear-gradient(
    90deg,
    var(--nl-red),
    var(--nl-gold)
  );
  border-radius: 0 0 3px 3px;
}

/* ==========================================
   HEADER
   ========================================== */

.newsletter-header {
  margin-bottom: 1.4rem;
}

.newsletter-label {
  display: inline-block;
  margin-bottom: 0.7rem;

  color: var(--nl-red);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.newsletter-header h3 {
  margin: 0 0 0.8rem;

  color: var(--nl-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.newsletter-header p {
  margin: 0;

  color: #536579;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================
   FORM
   ========================================== */

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form label {
  margin: 0;

  color: #34465a;
  font-size: 0.79rem;
  font-weight: 700;
}

.newsletter-form input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 46px;

  padding: 0 0.9rem;

  color: var(--nl-navy);
  background: #ffffff;

  border: 1px solid #ccd8e3;
  border-radius: 6px;

  font-family: inherit;
  font-size: 0.88rem;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.newsletter-form input::placeholder {
  color: #94a3b8;
}

.newsletter-form input:focus {
  border-color: var(--nl-blue);
  box-shadow: 0 0 0 3px rgba(23, 74, 103, 0.1);
}

/* ==========================================
   SUBSCRIBE BUTTON
   ========================================== */

.newsletter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;

  width: 100%;
  min-height: 47px;

  margin-top: 0.25rem;
  padding: 0.75rem 1rem;

  color: #ffffff;

  background: linear-gradient(
    110deg,
    #174a67,
    #102a43
  );

  border: 1px solid #102a43;
  border-radius: 6px;

  font-family: inherit;
  font-size: 0.87rem;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 4px 12px rgba(16, 42, 67, 0.12);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.newsletter-button span {
  color: #e4c48b;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

.newsletter-button:hover {
  background: linear-gradient(
    110deg,
    #205877,
    #174a67
  );

  transform: translateY(-1px);

  box-shadow:
    0 6px 16px rgba(16, 42, 67, 0.16);
}

.newsletter-button:focus-visible {
  outline: 2px solid var(--nl-gold);
  outline-offset: 3px;
}

.newsletter-button:active {
  transform: translateY(0);
}

/* ==========================================
   FOOTER / TRUST MESSAGE
   ========================================== */

.newsletter-footer {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;

  margin-top: 1.35rem;
  padding-top: 1rem;

  border-top: 1px solid #e0e7ee;

  color: var(--nl-muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.newsletter-footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  width: 17px;
  height: 17px;

  color: #ffffff;
  background: var(--nl-blue);

  border-radius: 50%;

  font-size: 0.65rem;
  font-weight: 700;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767.98px) {
  .newsletter {
    padding: 1.5rem 1.2rem 1.25rem;
  }

  .newsletter::before {
    left: 1.2rem;
  }

  .newsletter-header h3 {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-button,
  .newsletter-form input {
    transition: none;
  }
}

/* ==========================================
   PREMIUM SIDEBAR NAVIGATION
   Vietnam Law & Standards Guide
   ========================================== */

.sidebar-linking {
  --side-navy: #102a43;
  --side-blue: #174a67;
  --side-red: #a32638;
  --side-gold: #c5a15a;
  --side-border: #dce5ed;

  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem 1.2rem;

  background: linear-gradient(
    145deg,
    #ffffff 0%,
    #f4f8fb 100%
  );

  border: 1px solid var(--side-border);
  border-radius: 12px;

  box-shadow:
    0 6px 24px rgba(16, 42, 67, 0.04),
    0 2px 6px rgba(16, 42, 67, 0.025);

  font-family: Calibri, Arial, sans-serif;
}

/* Decorative top accent */

.sidebar-linking::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.2rem;
  width: 90px;
  height: 3px;

  background: linear-gradient(
    90deg,
    var(--side-red),
    var(--side-gold)
  );

  border-radius: 0 0 3px 3px;
}

/* ==========================================
   SECTION HEADING
   ========================================== */

.sidebar-linking h3 {
  position: relative;
  margin: 0 0 1.25rem;
  padding: 0 0 0.9rem;

  color: var(--side-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;

  border-bottom: 1px solid #dce5ed;
}

.sidebar-linking h3::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 55px;
  height: 2px;
  background: var(--side-gold);
}

/* ==========================================
   NAVIGATION LIST
   ========================================== */

.sidebar-linking .sidebar-pages {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;

  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-linking .sidebar-pages li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================
   NAVIGATION LINKS
   ========================================== */

.sidebar-linking .sidebar-pages a {
  position: relative;

  display: flex;
  align-items: center;
  gap: 0.75rem;

  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;

  color: #344b60;
  background: transparent;

  border: 1px solid transparent;
  border-radius: 7px;

  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Small gold navigation marker */

.sidebar-linking .sidebar-pages a::before {
  content: "";
  display: block;
  flex-shrink: 0;

  width: 6px;
  height: 6px;

  background: var(--side-gold);
  border-radius: 2px;
  transform: rotate(45deg);

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

/* Hover effects */

.sidebar-linking .sidebar-pages a:hover {
  color: var(--side-navy);
  background: #edf3f8;

  border-color: #dce5ed;

  transform: translateX(3px);
}

.sidebar-linking .sidebar-pages a:hover::before {
  background: var(--side-red);
  transform: rotate(45deg) scale(1.25);
}

/* ==========================================
   CURRENT / ACTIVE PAGE
   ========================================== */

.sidebar-linking .sidebar-pages a.active,
.sidebar-linking .sidebar-pages a[aria-current="page"] {
  color: #ffffff;

  background: linear-gradient(
    110deg,
    #174a67,
    #102a43
  );

  border-color: #102a43;

  box-shadow:
    0 4px 12px rgba(16, 42, 67, 0.12);
}

.sidebar-linking .sidebar-pages a.active::before,
.sidebar-linking .sidebar-pages a[aria-current="page"]::before {
  background: #e4c48b;
}

.sidebar-linking .sidebar-pages a.active:hover,
.sidebar-linking .sidebar-pages a[aria-current="page"]:hover {
  color: #ffffff;
  transform: none;
}

/* Keyboard accessibility */

.sidebar-linking .sidebar-pages a:focus-visible {
  outline: 2px solid var(--side-gold);
  outline-offset: 3px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767.98px) {
  .sidebar-linking {
    padding: 1.3rem 1rem;
    border-radius: 9px;
  }

  .sidebar-linking::before {
    left: 1rem;
  }

  .sidebar-linking h3 {
    font-size: 1.3rem;
  }

  .sidebar-linking .sidebar-pages a {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-linking .sidebar-pages a,
  .sidebar-linking .sidebar-pages a::before {
    transition: none;
  }
}
/* LOGO ABOVE MENU - SINGLE ROW */

@media (min-width: 1200px) {

  .navbar .navbar-custom-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  /* Logo centered */
  .navbar .navbar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  /* Navigation below logo */
  .navbar #navbarNav {
    width: 100%;
    flex-basis: auto;
    justify-content: center;
  }

  /* All links on ONE ROW */
  .navbar .navbar-two-rows {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .navbar .navbar-two-rows .nav-link {
    padding: 8px 10px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
  }

  .navbar .navbar-two-rows .nav-link:hover {
    color: #e2bd75 !important;
  }
}