/*
 * Child theme main stylesheet
 * Page-specific or component-specific CSS should live here first.
 */

.mona-about-page {
  display: block;
}

/* Ajax Loading State */
.is-loading {
  opacity: 0.4;
  pointer-events: none;
  position: relative;
  transition: opacity 0.3s ease;
  min-height: 200px;
}

.is-loading::after {
  content: "";
  position: absolute;
  top: max(30%, 50px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #e3000f;
  border-radius: 50%;
  animation: mona-spin 0.8s linear infinite;
  z-index: 100;
}

@keyframes mona-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.header-nav .menu > .menu-item > .menu-link {
  font-size: 20px;
}
.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item a,
.breadcrumb .breadcrumb-item p {
  font-size: 20px;
}
.header-nav .menu > .menu-item.current_page_parent > .menu-link {
  font-weight: 700;
  color: #dc2626;
}
.security-item .security-content .text-18 {
  font-weight: 700;
}
.intro-item .intro-box_content .text-16 {
  font-size: 20px;
}
.page-template-template-about .text-20.cl-pri {
  font-size: 28px;
}
.commit-list .commit-item .commit-box .title-48 {
  font-size: 40px;
}
.nde .mona-content h2 {
  font-size: 32px;
}
.nde .mona-content h3 {
  font-size: 24px;
}
.nde .mona-content :is(h1, h2, h3, h4, h5, h6) {
  scroll-margin-top: 120px;
}
.prso .prso-img .img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}
.prso .prso-img .img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.prso .prso-content .title-24 {
  font-size: 18px;
}
.prso .prso-content .title-24 a,
.prso .prso-content .title-24 a:link,
.prso .prso-content .title-24 a:visited {
  color: #000 !important;
  transition: color 0.2s ease;
}
.prso .prso-content .title-24 a:hover,
.prso .prso-content .title-24 a:focus {
  color: #dc2626 !important;
}
#ez-toc-container a,
#ez-toc-container a:link,
#ez-toc-container a:visited,
#ez-toc-container a:hover,
#ez-toc-container a:focus,
#ez-toc-container a:active,
.ez-toc-list a,
.ez-toc-list a:link,
.ez-toc-list a:visited,
.ez-toc-list a:hover,
.ez-toc-list a:focus,
.ez-toc-list a:active {
  color: inherit !important;
  opacity: 1 !important;
}

.blocker {
  z-index: calc(var(--z-i-header) + 1) !important;
}
/* .product-content {
    position: unset !important;
} */

/* Gap mo ta ngan trang single product.
   Dung .p-product-detail (class body) de tang specificity,
   vi product-detail.css cua parent load SAU child-theme.css. */
.p-product-detail .prdt-info_desc ul {
  gap: 0.8rem;
}

/* Header dropdown: theme cha chỉ relative cho .menu-dropdown, WP sinh .menu-item-has-children → neo .child theo đúng mục cha */
.header-nav .menu > .menu-item-has-children { position: relative; }
.header-nav .menu > .menu-item-has-children > img { width: 1.2rem; height: 1.2rem; transition: transform .3s; }

/* ===== Header dropdown (menu Hỗ trợ) ===== */
@media screen and (min-width: 1201px) {
  .header-nav .menu > .menu-item-has-children > .child {
    min-width: 24rem;
    padding: 0.8rem;
    border-radius: 1.2rem;
    border: 1px solid #e5e9f0;
    box-shadow: 0 1.6rem 4rem rgba(26, 31, 43, 0.14);
    overflow: visible;
  }
  /* mũi nhọn chỉ lên mục cha */
  .header-nav .menu > .menu-item-has-children > .child::after {
    content: "";
    position: absolute;
    top: -0.7rem;
    left: 50%;
    width: 1.4rem;
    height: 1.4rem;
    background: #fff;
    border-left: 1px solid #e5e9f0;
    border-top: 1px solid #e5e9f0;
    transform: translateX(-50%) rotate(45deg);
  }
  .header-nav .menu > .menu-item-has-children > .child .menu-item { padding: 0; margin: 0; }
  .header-nav .menu > .menu-item-has-children > .child .menu-item::after { display: none; }
  .header-nav .menu > .menu-item-has-children > .child .menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1f2b;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
  }
  .header-nav .menu > .menu-item-has-children > .child .menu-link::before { display: none; }
  .header-nav .menu > .menu-item-has-children > .child .menu-link::after {
    content: "→";
    margin-left: auto;
    padding-left: 1.6rem;
    color: #e63946;
    opacity: 0;
    transform: translateX(-0.4rem);
    transition: 0.2s;
  }
  .header-nav .menu > .menu-item-has-children > .child .menu-link:hover {
    background: #f6f8fb;
    color: #e63946;
  }
  .header-nav .menu > .menu-item-has-children > .child .menu-link:hover::after {
    opacity: 1;
    transform: none;
  }
  .header-nav .menu > .menu-item-has-children > .child .menu-item.current-menu-item > .menu-link {
    background: #fff1f2;
    color: #e63946;
    font-weight: 600;
  }
}
