/* LÝ HỌC ĐÔNG PHƯƠNG v1.2.3
   Deliberately limited to font-family and decorations on pseudo-elements.
   No modifications to width, height, padding, margin, font-size/weight, line-height,
   grid/flex configuration, layout templates, responsive breakpoints or images. */

/* Use Cactus Classical Serif (Vietnamese glyphs included by official Google Fonts CSS).
   PANDO font-size, weights, line-height, letter-spacing, and layout rules stay intact. */
:root { --font: "Cactus Classical Serif", "Times New Roman", serif !important; }
body, body button, body input, body textarea, body select,
body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: "Cactus Classical Serif", "Times New Roman", serif !important;
}

/* The decorative line follows existing section heading borders (no new spacing). */
.sec-heading, .pxb-section-heading, .pxn-article-bottom, .pagehero,
.news-row, .pxb-faq, .footer, .navrow { position: relative; }
.sec-heading::after, .pxb-section-heading::after, .pxn-article-bottom::after,
.pagehero::after, .news-row::after, .pxb-faq::after {
  content: "";
  display: block;
  pointer-events: none;
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 118px;
  height: 20px;
  background: url("lyhoc-line-end.svg") center / contain no-repeat;
  opacity: .65;
}
.news-row::after, .pxb-faq::after { width: 80px; height: 15px; bottom: -8px; opacity: .50; }
.pagehero::after { right: max(16px, calc((100vw - 1260px)/2)); bottom: 2px; width: 185px; height: 21px; background-image: url("lyhoc-line.svg"); opacity: .62; }

/* Overlay a delicate vector-only perimeter on existing cards and panels.
   ::after takes up zero layout space; all four corners are independent SVGs. */
.story, .pxb-card, .pxn-sbox, .team-card, .newsletter-form,
.plan, .pxn-contact-card, .pxb-stat, .pxb-hero, .pxn-search-panel,
.hero-main { position: relative; }
.story::after, .pxb-card::after, .pxn-sbox::after, .team-card::after,
.newsletter-form::after, .plan::after, .pxn-contact-card::after,
.pxb-stat::after, .pxb-hero::after, .pxn-search-panel::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    url("lyhoc-corner-tl.svg"), url("lyhoc-corner-tr.svg"),
    url("lyhoc-corner-bl.svg"), url("lyhoc-corner-br.svg");
  background-position: top left, top right, bottom left, bottom right;
  background-repeat: no-repeat;
  background-size: 39px 39px;
  opacity: .48;
}
/* Keep decorative borders thin and not dimension-changing. */
.pxb-card, .pxn-sbox, .team-card, .newsletter-form,
.plan, .pxn-contact-card { box-shadow: inset 0 0 0 1px rgba(170,128,71,.14); }
.story::after { background-size: 29px 29px; opacity: .56; }
.pxn-sbox::after, .pxb-card::after { background-size: 31px 31px; opacity: .60; }
.team-card::after { opacity: .42; }

/* Hero artwork keeps its original source photo; only corners are overlaid. */
.hero-main::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 2;
  pointer-events: none;
  background-image:
    url("lyhoc-corner-tl.svg"), url("lyhoc-corner-tr.svg"),
    url("lyhoc-corner-bl.svg"), url("lyhoc-corner-br.svg");
  background-position: top left, top right, bottom left, bottom right;
  background-repeat: no-repeat;
  background-size: 78px 78px;
  opacity: .70;
}

/* Leiwen geometric trims, not a bitmap: small SVG edges and corners. */
.navrow::after, .footer::before {
  content: "";
  display: block;
  pointer-events: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(270px, 45%);
  height: 20px;
  background: url("lyhoc-line.svg") center / contain no-repeat;
  opacity: .68;
}
.navrow::after { bottom: -10px; }
.footer::before { top: -10px; }

@media(max-width:790px) {
  .hero-main::after { background-size: 49px 49px; }
  .story::after, .pxb-card::after, .pxn-sbox::after,
  .team-card::after, .newsletter-form::after, .plan::after,
  .pxn-contact-card::after, .pxb-stat::after, .pxb-hero::after {
    background-size: 25px 25px;
    opacity: .47;
  }
  .navrow::after { display:none; }
  .pagehero::after { right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  /* Vector details are intentionally static. */
}
