@media(max-width:768px){
h1#brxe-ikbptd {font-size: var(--text-xl) !important;
}


}



/*search*/
/* 1. Wrapper positioning - fixed 40px block so the header layout NEVER breaks */
.brxe-search.elasarch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 40px; 
  height: 40px; 
  z-index: 9999;
}

/* 2. The form becomes an absolute overlay anchored to the right */
.brxe-search.elasarch .bricks-search-form {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  flex-direction: row-reverse; /* Button stays on the right, input expands left */
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
}

/* 3. Expanded Form State */
.search-open.elasarch .bricks-search-form {
  background: #fff;
  border: 1px solid var(--primary) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

/* 4. Submit button styling */
.brxe-search.elasarch button[type="submit"] {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.brxe-search.elasarch button[type="submit"] i {
  font-size: 20px;
  color: var(--primary);
  transition: color 0.2s ease;
}

/* 5. Hide the input by default */
.brxe-search.elasarch input[type="search"] {
  width: 0;
  min-width: 0;
  max-width: none !important; /* CRITICAL: Overrides Bricks global 100% max-width */
  padding: 0;
  margin: 0;
  opacity: 0;
  border: none;
  background: transparent;
  height: 40px;
  font-size: 15px;
  color: #333;
  outline: none;
  box-shadow: none;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              padding 0.4s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* 6. Expanded input state (Desktop) */
.brxe-search.elasarch.search-open input[type="search"] {
  width: 260px; /* Expands to the left, overlaying the About Us text */
  padding: 8px 15px 8px 15px;
  opacity: 1;
}

/* 7. Expanded input state (Mobile / Tablet) */
@media (max-width: 768px) {
  .brxe-search.elasarch.search-open input[type="search"] {
    /* Uses viewport width to ensure it stretches over the hamburger menu */
    width: calc(100vw - 130px); 
  }
}

/* Remove native clear button in webkit */
.brxe-search.elasarch input[type="search"]::-webkit-search-decoration,
.brxe-search.elasarch input[type="search"]::-webkit-search-cancel-button,
.brxe-search.elasarch input[type="search"]::-webkit-search-results-button,
.brxe-search.elasarch input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* Screen-reader-only label */
.brxe-search.elasarch .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Validation error message */
.brxe-search.elasarch .search-error-msg {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #ffffff;
  color: var(--primary);
  font-size: 13px;
  padding: 6px 12px;
  white-space: nowrap;
  border: 1px solid var(--primary);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  pointer-events: none;
}

.brxe-search.elasarch.show-error .search-error-msg {
  display: block;
}
/* 文字显示一行两行三行 */
.shortp1 {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* Limits the text to 2 lines */
  -webkit-box-orient: vertical;  
  overflow: hidden; /* Hides the text that overflows */
  text-overflow: ellipsis; /* Ensures the ... is added */
}
.shortp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limits the text to 2 lines */
  -webkit-box-orient: vertical;  
  overflow: hidden; /* Hides the text that overflows */
  text-overflow: ellipsis; /* Ensures the ... is added */
}
.shortp3 {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limits the text to 2 lines */
  -webkit-box-orient: vertical;  
  overflow: hidden; /* Hides the text that overflows */
  text-overflow: ellipsis; /* Ensures the ... is added */
}
/* 面包屑 */
 .custom-universal-breadcrumb a {
    color: var(--primary);
    transition: color 0.3s ease;
}

.custom-universal-breadcrumb a:hover {
    color: var(--secondary); /* Or any other variable/color you prefer for hover */
}
/* question search */
/* 搜索表单容器 */
.custom-questions-search {
    width: 100%;
    max-width: 600px; /* 可根据你的实际页面布局调整宽度 */
}

/* 搜索框外部包裹层，模拟输入框外观 */
.custom-questions-search .search-wrapper {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb; /* 浅灰色边框，匹配图片 */
    border-radius: 4px; /* 轻微的圆角 */
    padding: 10px 14px;
    transition: border-color 0.3s ease;
}

/* 鼠标悬停或聚焦时稍微加深边框颜色，提升体验 (可选) */
.custom-questions-search .search-wrapper:focus-within {
    border-color: #d1d5db; 
}

/* 红色搜索图标 */
.custom-questions-search .search-icon {
    flex-shrink: 0;
    margin-right: 12px;
}

/* 输入框本体样式 */
.custom-questions-search .search-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 15px;
    color: #374151;
    padding: 0;
    outline: none; /* 移除默认的焦点黑框 */
    box-shadow: none; /* 移除某些主题自带的阴影 */
}

/* 强制覆盖 WordPress 或主题默认的 focus 样式 */
.custom-questions-search .search-input:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

/* 调整 placeholder 的颜色 */
.custom-questions-search .search-input::placeholder {
    color: #9ca3af;
}

/* 隐藏 Webkit 浏览器默认的搜索清除按钮 (可选，保持图片极简风格) */
.custom-questions-search .search-input::-webkit-search-decoration,
.custom-questions-search .search-input::-webkit-search-cancel-button,
.custom-questions-search .search-input::-webkit-search-results-button,
.custom-questions-search .search-input::-webkit-search-results-decoration {
    display: none;
}






/* Override default Gutenberg block margins */
.editor-styles-wrapper p,
.editor-styles-wrapper ul,
.editor-styles-wrapper ol,
.editor-styles-wrapper .wp-block-paragraph,
.editor-styles-wrapper .wp-block-list {
    margin-top: 0 !important;
    margin-bottom: 10px !important; 
}