
/* =========================================================
 * FoodNo1.com — template custom.css (FULL)
 * Version   : v20251214-1310
 * Updated   : 2025-12-14 13:10
 * Change    : + NFW33 Live Hits Billboard skin (scoped by .nfw33-billboard)
 * Notes     : Safe add-on block; does not affect other pages.
 *
 * CSS INDEX (Quick Jump)
 * [S0] Global imports / base rules (existing)
 * [S1] Membership Pro / Buttons (existing)
 * [S2] Login View + Social Login (existing)
 * [S3] Kunena Forum – Layout & Brand Colors (existing)
 * [S4] Category / Article listings & tags (existing)
 * [S5] CTA / UI utilities (existing)
 * [S7] NFW33 Live Hits Billboard (added at bottom)
 * ========================================================= */

/* Load Ingredient iPage styles globally */
@import url("/media/fno1/css/ingredient.css");
/* =========================================================
 * FoodNo1 Custom Master CSS
 * Version: v20251116-hu-fix-LOGIN-KUNENA-CATEGORIES
 * Last inspected: 2025-11-16 (Toronto)
 * ========================================================= */

/* 加入sandbox gold 顏色 20260316*/
@import url("/media/fno1/css/fno1-gold-theme-live.css");
/* 加入ingredient.css for ipage top 顏色 */
@import url("/media/fno1/css/ingredient.css");
/* 隱藏 introtext（只影響 iPage） */

/* ---------------- 1. Base typography / colors ------------- */

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #333;
  background-color: #fffdf7;
  line-height: 1.8;
}

a {
  color: #c02e00;
  text-decoration: none;
}

a:hover {
  color: #f15a22;
  text-decoration: underline;
}


/* ---------------- 2. Layout fixes (HU header) ------------- */

/* 移除 header 與內容之間多餘空隙 */
.body-innerwrapper {
  padding-top: 0 !important;
}

#sp-main-body {
  padding-top: 20px !important;
  margin-top: 0 !important;
}

/* 保證 header 在最上層 */
#sp-header,
#sp-top-bar {
  position: relative;
  z-index: 100 !important;
}


/* ---------------- 3. Article / page navigation ------------- */

.pagenav,
.pager {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 2rem 0 1rem;
  padding: 0;
}

.pagenav li,
.pager li {
  list-style: none;
}

.pagenav a,
.pager > li > a,
.pagenav a.btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: #444 !important;
  font-weight: 500;
  text-decoration: none;
}

.pagenav a:hover,
.pager > li > a:hover {
  color: #c02e00 !important;
  text-decoration: underline;
}

/* 下方分頁條 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 2rem 0 1rem;
}

.pagination li {
  list-style: none;
}

.pagination a {
  background: transparent;
  color: #444;
  padding: 4px 8px;
}

.pagination a:hover {
  color: #c02e00;
}


/* ---------------- 4. Off-canvas / Mobile menu -------------- */

.sp-offcanvas-menu,
.offcanvas-menu {
  background: #ffffff !important;
  color: #333 !important;
  z-index: 9999;
}

.sp-offcanvas-menu a,
.offcanvas-menu a {
  background: none !important;
  color: #333 !important;
  padding: 10px 16px !important;
  display: block;
  border-bottom: 1px solid #f2f2f2;
}

.sp-offcanvas-menu a:hover,
.offcanvas-menu a:hover {
  background: #fff6da !important;
  color: #c02e00 !important;
}

/* Edge / overlay bug: 避免 offcanvas 遮罩阻礙點擊 */
.offcanvas-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.offcanvas-active .offcanvas-overlay {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


/* ---------------- 5. Helix login 隱藏預設登入 -------------- */

#sp-login,
.sp-login,
.helix-ultimate-sign-in-menu,
a[href*="HELIX_ULTIMATE_SIGN_IN_MENU"] {
  display: none !important;
}


/* ---------------- 6. FoodNo1 common wrappers --------------- */

.fno1-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
}

.fno1-highlight {
  background: #fff8e5;
  border-left: 4px solid #f2b035;
  padding: 1rem;
  border-radius: 8px;
}

.fno1-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #f2b035;
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}


/* ---------------- 7. Recipe section blocks ----------------- */

.fno1-recipe {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  padding: 1.25rem 1.5rem 2rem;
  margin-bottom: 2rem;
}

.fno1-recipe h3 {
  font-size: 1.2rem;
  margin-top: 1.2rem;
  color: #c02e00;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fno1-recipe h3::before {
  content: "🍽";
  font-size: 1rem;
}

.fno1-recipe table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.fno1-recipe table th,
.fno1-recipe table td {
  border: 1px solid #eee;
  padding: 6px 10px;
}

.fno1-recipe table th {
  background: #fff6da;
}

.fno1-tags {
  margin-top: 1.2rem;
}

.fno1-tags a {
  display: inline-block;
  background: #fff6da;
  border-radius: 999px;
  padding: 4px 10px;
  margin: 3px 4px;
  font-size: 0.85rem;
  color: #444;
}

.fno1-tags a:hover {
  background: #ffe89a;
  color: #c02e00;
}


/* ---------------- 8. CTA / buttons ------------------------- */

.btn,
.button,
a.btn,
a.button,
.fno1-cta,
.fno1-cta-main {
  background-color: #e0bf72 !important;
  border-color: #cfa552 !important;
  color: #5a3900 !important;
  border-radius: 999px;
  padding: 8px 20px;
  border-width: 1px;
  border-style: solid;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover,
.button:hover,
a.btn:hover,
a.button:hover,
.fno1-cta:hover,
.fno1-cta-main:hover {
  background-color: #d4b05d !important;
  border-color: #bf9540 !important;
  color: #4a2e00 !important;
}


/* ---------------- 9. EngageBox / popup --------------------- */

.engagebox {
  z-index: 10001 !important;
}

.engagebox .modal-content {
  border-radius: 16px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}


/* ---------------- 10. Health disclaimer block -------------- */

.fno1-health-disclaimer {
  background-color: #fff9f0;
  border: 1px solid #e0cfa0;
  border-left: 4px solid #e89a3c;
  padding: 12px 14px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.fno1-health-disclaimer-title {
  margin: 0 0 6px 0;
  font-weight: 600;
  color: #b5681a;
}


/* ---------------- 11. Footer signature block --------------- */

.fno1-footer-signature {
  background: #f8f1df;
  border-top: 1px solid #e3cda4;
  border-bottom: 1px solid #e3cda4;
  padding: 18px 12px;
  margin-top: 30px;
  font-size: 14px;
  line-height: 1.8;
  color: #5a4528;
  font-style: normal;
  position: relative;
  overflow: hidden;
}

/* 左側金色豎線動畫 */
.fno1-footer-signature::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: linear-gradient(to bottom, #e6b34a, #c48c2b);
  opacity: 0;
  animation: fno1FadeIn 1.2s ease-out 0.2s forwards;
}

.fno1-footer-line {
  margin-left: 20px;
  opacity: 0;
  transform: translateY(6px);
  animation: fno1FadeUp 0.8s ease-out forwards;
}

/* 行逐行浮現延遲 */
.fno1-line-1 { animation-delay: 0.3s; }
.fno1-line-2 { animation-delay: 0.6s; }
.fno1-line-3 { animation-delay: 0.9s; }
.fno1-line-4 { animation-delay: 1.2s; }
.fno1-line-5 { animation-delay: 1.5s; }

.fno1-footer-highlight {
  font-weight: 600;
  color: #b06a1f;
}

/* 動畫關鍵影格 */
@keyframes fno1FadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fno1FadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 若用戶設定「減少動態」，則取消動畫 */
@media (prefers-reduced-motion: reduce) {
  .fno1-footer-signature::before,
  .fno1-footer-line {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* footer 內 <p> 也跟隨動態設定 */
.fno1-footer-signature p {
  margin-left: 20px;
  opacity: 0;
  transform: translateY(6px);
  animation: fno1FadeUp 0.8s ease-out forwards;
}

.fno1-footer-signature p:nth-of-type(1) { animation-delay: 0.3s; }
.fno1-footer-signature p:nth-of-type(2) { animation-delay: 0.6s; }
.fno1-footer-signature p:nth-of-type(3) { animation-delay: 0.9s; }
.fno1-footer-signature p:nth-of-type(4) { animation-delay: 1.2s; }


/* ---------------- 12. Global footer background ------------- */

#sp-bottom,
#sp-footer,
[id*="footer"],
[id*="bottom"] .sp-copyright,
.sp-copyright {
  background: #f8f1df !important;
  border-top: 1px solid #e3cda4 !important;
  color: #5a4528 !important;
}

#sp-bottom a,
#sp-footer a,
[id*="footer"] a,
[id*="bottom"] .sp-copyright a,
.sp-copyright a {
  color: #b06a1f !important;
}

#sp-bottom a:hover,
#sp-footer a:hover,
[id*="footer"] a:hover,
[id*="bottom"] .sp-copyright a:hover,
.sp-copyright a:hover {
  color: #c02e00 !important;
}


/* ---------------- 13. Utility / spacing helpers ----------- */

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }


/* ---------------- 14. Responsive tweaks ------------------- */

@media (max-width: 576px) {

  .fno1-recipe {
    padding: 1rem;
  }

  .pagenav,
  .pager {
    flex-direction: column;
    gap: 8px;
  }

  .pagenav a,
  .pager > li > a {
    width: 100%;
    text-align: center;
  }

  .offcanvas-menu a {
    padding: 12px !important;
  }
}


/* =========================================================
   Membership Pro / Buttons
   ========================================================= */

.osmembership .btn,
.osmembership button,
.osmembership input[type="submit"],
.osmembership .osm-btn,
.osmembership .osm-button,
.osmembership a.btn,
.osmembership a.button {
  background-color: #e0bf72 !important;
  border-color: #cfa552 !important;
  color: #5a3900 !important;
  border-radius: 999px !important;
  padding: 8px 20px !important;
  border-width: 1px !important;
  border-style: solid !important;
}

.osmembership .btn:hover,
.osmembership button:hover,
.osmembership input[type="submit"]:hover,
.osmembership .osm-btn:hover,
.osmembership .osm-button:hover,
.osmembership a.btn:hover,
.osmembership a.button:hover {
  background-color: #d4b05d !important;
  border-color: #bf9540 !important;
  color: #4a2e00 !important;
}


/* =========================================================
   Login View + Akeeba Social Login
   ========================================================= */

/* com-users Login 頁：主登入按鈕柔和灰色 */
body.com-users.view-login .btn,
body.com-users.view-login button,
body.com-users.view-login input[type="submit"],
body.com-users.view-login input[type="button"] {
  background-color: #f5f5f5 !important;
  color: #444 !important;
  border-radius: 8px !important;
  border: 1px solid #ddd !important;
  padding: 8px 18px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
  font-weight: 500;
}

body.com-users.view-login .btn:hover,
body.com-users.view-login button:hover,
body.com-users.view-login input[type="submit"]:hover,
body.com-users.view-login input[type="button"]:hover {
  background-color: #e8e8e8 !important;
  color: #222 !important;
}

/* Akeeba Social Login: provider 橫向排版 (old markup) */
#akeeba-social-login-buttons,
.akeeba-social-login-providers {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  justify-content: flex-start !important;
}

.akeeba-social-login-provider {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fafafa !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  color: #444 !important;
  width: auto !important;
}

.akeeba-social-login-provider img {
  width: 18px !important;
  height: 18px !important;
  margin-right: 6px !important;
}

/* Akeeba Social Login – 新 class 名（保險起見） */
.akeeba-sociallogin-buttons,
.akeeba-sociallogin-buttons ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  margin: 1rem 0;
  list-style: none;
}

.akeeba-sociallogin-buttons li {
  margin: 0;
}

.akeeba-sociallogin-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}


/* =========================================================
   Kunena Forum – Layout & Brand Colors
   ========================================================= */

body.com-kunena #kunena {
  max-width: 1040px;
  margin: 0 auto 40px;
  padding: 0 10px;
}

body.com-kunena .kblock {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  margin-bottom: 18px;
  border: 1px solid #f0e4d0;
}

body.com-kunena .kheader {
  background-color: #fff6da;
  color: #5a4528;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid #f0e4d0;
}

body.com-kunena .kbody {
  background-color: #ffffff;
}

body.com-kunena table tr:nth-child(even) {
  background-color: #fffaf0;
}

body.com-kunena table tr:nth-child(odd) {
  background-color: #ffffff;
}

body.com-kunena a {
  color: #c02e00;
}

body.com-kunena a:hover {
  color: #f15a22;
}

/* Stats 區 */
body.com-kunena .kstats {
  background-color: #fffdf7;
  border-radius: 8px;
  border: 1px solid #f0e4d0;
  padding: 10px 14px;
}

/************************************************************
 * FoodNo1 Kunena 顏色重設（淺金 + 深啡）
 * 2025-11-16
 ************************************************************/

/* 品牌色：可以之後微調這兩個值 */
:root {
  --fno1-gold: #f0c46a;   /* 淺金色 */
  --fno1-brown: #8a4b1a; /* 深啡色 */
}

/* 只影響 Kunena 區域 */
#kunena a,
#kunena .nav-link,
#kunena .klink {
  color: var(--fno1-brown);
}

#kunena a:hover,
#kunena a:focus,
#kunena .nav-link:hover,
#kunena .nav-link:focus {
  color: var(--fno1-gold);
  text-decoration: none;
}

/* 主要按鈕／「發帖」之類，改回啡金色 */
#kunena .btn-primary,
#kunena .btn-success,
#kunena .kbutton,
#kunena .kbutton-primary,
#kunena .pagination .page-item.active .page-link,
#kunena .badge-primary {
  background-color: var(--fno1-brown);
  border-color: var(--fno1-brown);
  color: #fff;
}

#kunena .btn-primary:hover,
#kunena .btn-success:hover,
#kunena .kbutton:hover,
#kunena .kbutton-primary:hover,
#kunena .pagination .page-item.active .page-link:hover {
  background-color: #653613;   /* 更深一級啡 */
  border-color: #653613;
  color: #fff;
}

/* 分頁、tag、一些 badge 的邊框／label 色調整 */
#kunena .badge,
#kunena .kbadge {
  background-color: var(--fno1-gold);
  color: #472300;
}

#kunena .pagination .page-link {
  border-color: #e6d4ac;
}

#kunena .pagination .page-link:hover {
  border-color: var(--fno1-brown);
}

/* 區塊標題加少少對比，避免「全白好平」 */
#kunena .kblock > .kheader,
#kunena .kblock > .kheader .ktitle {
  background-color: #f8f1e2;
  border-bottom: 1px solid #e0c9a0;
  color: #472300;
}


/* =========================================================
   FoodNo1 Gold System Utilities
   ========================================================= */

/* 1. 主要金棕按鈕（深底白字） */
.btn-gold,
.button-gold {
  background-color: #7F691A;
  color: #FFFFFF;
  border-radius: 999px;
  border: 1px solid #7F691A;
}

.btn-gold:hover,
.button-gold:hover {
  background-color: #4A3E15;
  border-color: #4A3E15;
  color: #FFFFFF;
}

/* 2. 膠囊式 Tag（淺底深字） */
.tag-gold,
.badge-gold {
  background-color: #F7E7C3;
  color: #7F691A;
  border-radius: 999px;
  border: 1px solid #D8C49A;
}

/* 3. 文字金棕色（連結／標題） */
.text-gold {
  color: #7F691A;
}

a.link-gold,
a.link-gold:link,
a.link-gold:visited {
  color: #A68A4F;
}

a.link-gold:hover {
  color: #7F691A;
}


/* =========================================================
   Category Listings & Article Tags (Gold Scheme)
   ========================================================= */

/* Joomla 主分類列表（例：湯水館分類頁） */
.categories-list .category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.categories-list .category > a {
  flex: 1 1 auto;
  min-width: 0;
}

/* 主分類右邊的數字膠囊：深金底 + 白字 */
.categories-list .badge,
.categories-list span.badge {
  background-color: #7F691A !important;
  color: #FFFFFF !important;
  border-radius: 999px;
  border: 1px solid #7F691A;
  min-width: 2.4em;
  text-align: center;
  padding: 2px 10px;
  font-weight: 600;
  flex: 0 0 auto;
}

/* 子分類列表（cat-children，下級分類） */
.cat-children ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-children ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2px 0;
}

.cat-children ul li > a {
  flex: 1 1 auto;
  min-width: 0;
}

/* 子分類數字膠囊，一樣使用深金底 + 白字 */
.cat-children .badge,
.cat-children .badge-info,
.cat-children .label-info {
  background-color: #7F691A !important;
  color: #FFFFFF !important;
  border-radius: 999px;
  border: 1px solid #7F691A;
  min-width: 2.4em;
  text-align: center;
  padding: 2px 10px;
  font-weight: 600;
  flex: 0 0 auto;
}

/* 文章 Tag 膠囊：淺金底＋深金字 */
.tags span.label,
.tags a.label,
.tagspopular ul li a,
.tag-category,
.tag-list .badge {
  background-color: #F7E7C3 !important;
  color: #7F691A !important;
  border-radius: 999px !important;
  border: 1px solid #D8C49A !important;
  padding: 4px 10px;
  display: inline-block;
  margin: 2px 4px;
}

/* Tag 滑過時稍微加深字色 */
.tags a.label:hover,
.tagspopular ul li a:hover,
.tag-category:hover {
  color: #4A3E15 !important;
}
/* ===== Category view: 點擊數 badge（深金土系｜只針對 Hits 欄） =====
 * Updated: 2025-12-14 13:10
 * Note   : 避免影響其他 badge（例如 featured / 系統標籤）
 */
body.com-content.view-category td.list-hits .badge,
body.com-content.view-category td.list-hits span.badge{
  background-color: #6b5312 !important;   /* 深金（土） */
  color: #FFFFFF !important;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 44px;           /* 數字視覺更穩定 */
  max-width: max-content;
  line-height: 1.1;
}

/* hover：微亮，不轉紅 */
body.com-content.view-category tr:hover td.list-hits .badge,
body.com-content.view-category tr:hover td.list-hits span.badge{
  background-color: #8a6a16 !important;
}

/* ===== 下級分類：名稱在左，數字膠囊靠右 ===== */

/* 取消 li 的 flex（之前那段如果有，這裡會蓋過去） */
.cat-children ul li {
  display: block;
  padding: 2px 0;
}

/* ===== Category view: 表頭與標題字色（去除橙紅，改土系深金） =====
 * Updated: 2025-12-14 13:10
 */
body.com-content.view-category table thead th,
body.com-content.view-category table thead th a,
body.com-content.view-category table thead th span{
  color: #6b5312 !important;
  font-weight: 700;
}
body.com-content.view-category table thead th a:hover{
  color: #8a6a16 !important;
  text-decoration: none;
}

/* 文章標題連結（Category List） */
body.com-content.view-category table tbody th.list-title a,
body.com-content.view-category table tbody td a{
  color: #6b5312 !important;
  font-weight: 650;
}
body.com-content.view-category table tbody th.list-title a:hover,
body.com-content.view-category table tbody td a:hover{
  color: #8a6a16 !important;
  text-decoration: underline;
}

/* 修正：避免 Hits badge 被 table/flex 拉成「長條」 */
body.com-content.view-category td.list-hits{
  white-space: nowrap;
}

/* 由 <a> 來負責左右兩端對齊 */
.cat-children ul li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

/* 右側數字膠囊固定寬度，不被文字擠壓 */
.cat-children ul li .badge,
.cat-children ul li .badge-info,
.cat-children ul li .label-info {
  flex: 0 0 auto;
  min-width: 2.4em;
  text-align: center;
}
/* Hide featured badge in article view */
.badge.bg-danger.featured-article-badge {
    display: none !important;
}

/* Hide featured badge in category/blog layouts */
.badge-featured,
.badge.bg-danger.badge-featured,
.article-header .badge.bg-danger,
.sp-page-title .badge.bg-danger {
    display: none !important;
}
/* orange-red button 主按鈕金啡色 */
/* =========================================
   FoodNo1 CTA 按鈕主色（金啡色）
   只改「看食譜..」、「加載更多湯水」等掣
   ========================================= */

/* 一般按鈕（看食譜.. 等） */
a.btn-primary.jt-readmore,
button.btn-primary.jt-readmore,
a.btn-info,
button.btn-info,
a.load-more-btn,
button.load-more-btn {
    background-color: #A68B5B !important; /* 金啡 */
    border-color: #A68B5B !important;
    color: #ffffff !important;            /* 字白色 */
}

/* Hover 效果（滑鼠移上去） */
a.btn-primary.jt-readmore:hover,
button.btn-primary.jt-readmore:hover,
a.btn-info:hover,
button.btn-info:hover,
a.load-more-btn:hover,
button.load-more-btn:hover {
    background-color: #8A744D !important; /* 金啡稍深 */
    border-color: #8A744D !important;
    color: #ffffff !important;
}
/* 移除文章最頂部因 JCE 自動加入的空白段落 */
.item-page > p:empty,
.item-page > p:empty:before,
.item-page > p > br {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* =========================================================
 * [S7] FEATURE: NFW33 Live Hits Billboard
 * Page Class : nfw33-billboard   (Menu Item -> Page Class)
 * Version    : v1.0
 * Updated   : 2025-12-14 13:10
 * ========================================================= */

.nfw33-billboard ul.category{
  list-style: none;
  margin: 0;
  padding: 20px 16px;
  background: #0f1115;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  counter-reset: nfwRank;
}

/* each row */
.nfw33-billboard ul.category > li{
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 6px;
  border-bottom: 1px dashed rgba(255,255,255,.10);
}

.nfw33-billboard ul.category > li:last-child{
  border-bottom: none;
}

/* rank number */
.nfw33-billboard ul.category > li::before{
  counter-increment: nfwRank;
  content: counter(nfwRank) ".";
  font-weight: 700;
  color: #ff4d4d;
  font-size: 15px;
  text-align: right;
  opacity: .95;
}

/* title link */
.nfw33-billboard ul.category > li a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: .2px;
  position: relative;
}

/* dotted leader */
.nfw33-billboard ul.category > li a::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:4px;
  height:1px;
  background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  opacity:.5;
  pointer-events:none;
}

/* hits badge (selector safety across templates) */
.nfw33-billboard .hits,
.nfw33-billboard .list-hits,
.nfw33-billboard dd.hits,
.nfw33-billboard span.hits{
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.88);
  font-weight: 700;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 4px 10px;
  border-radius: 999px;
}

/* hide meta */
.nfw33-billboard time,
.nfw33-billboard .list-date,
.nfw33-billboard .list-author{
  display:block !important;
  margin: 0 0 14px 0;
  padding: 14px 16px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
}

/* mobile */
@media (max-width:640px){
  .nfw33-billboard ul.category > li{
    grid-template-columns: 42px 1fr;
    grid-template-areas:
      "rank title"
      "rank hits";
  }
  .nfw33-billboard ul.category > li::before{ grid-area: rank; }
  .nfw33-billboard ul.category > li a{ grid-area: title; }
  .nfw33-billboard .hits,
  .nfw33-billboard .list-hits{
    grid-area: hits;
    justify-self: start;
    margin-top: 6px;
  }
}
/* nfw-hero-img -20251215-1350 */
.nfw-hero .nfw-hero-img img{
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  float:none !important;
}
/* nfw33 page class 先會用到-20251215-1455 */
body.nfw33 .nfw-loadmore-bar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  margin:24px 0 8px;
}
body.nfw33 .nfw-loadmore-btn{
  padding:12px 18px;
  border-radius:999px;
  border:0;
  cursor:pointer;
}
body.nfw33 .nfw-loadmore-status{
  opacity:.75;
  font-size:14px;
}
/* 解決「太貼底下模組」+ Button 可點（全站通用，唔係單一文章）-20251215-1730 */
.nfw-loadmore-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  margin:24px 0 48px; /* 底下留多啲氣位 */
}

.nfw-loadmore-btn{
  padding:10px 16px;
  border:1px solid #222;
  background:#fff;
  border-radius:6px;
  cursor:pointer;
}

.nfw-loadmore-btn[disabled]{
  opacity:.5;
  cursor:not-allowed;
}

.nfw-loadmore-stat{
  font-size:14px;
  opacity:.8;
}
.nfw-loadmore-wrap{
  display:flex;
  align-items:center;
  gap:14px;
  margin:26px 0 70px;   /* 下方留多啲空位 */
  position:relative;
  z-index:5;
}
.nfw-loadmore-btn{
  padding:10px 16px;
  border:1px solid #222;
  background:#fff;
  border-radius:999px;
  cursor:pointer;
}
.nfw-loadmore-btn[disabled]{ opacity:.55; cursor:not-allowed; }
/* Ai-Chatbot 更改頂部標題列顏色 */
.ai-chatbot-header { background-color: #f1c40f !important; } 
/* 更改開始對話按鈕顏色 */
.ai-chatbot-button { background-color: #f1c40f !important; }
/* 更改對話氣泡顏色 */
.ai-chatbot-message-user { background-color: #f1c40f !important; }

.ipage-hidden{
  display:none !important;
}
/* 隱藏  iPage imported readmore） */
.item-page hr#system-readmore{
  display:none !important;
}
/* category blog / blog list: hide iPage intro placeholder + readmore */
.view-category .items-row .ipage-hidden,
.view-category .blog-item .ipage-hidden,
.view-category .item-content .ipage-hidden,
.view-category .introtext .ipage-hidden,
.blog .ipage-hidden,
.blog-category .ipage-hidden {
  display: none !important;
}

/* if placeholder text still renders as plain text */
.view-category .items-row p:first-of-type,
.view-category .blog-item p:first-of-type,
.view-category .item-content p:first-of-type,
.blog .item-content p:first-of-type,
.blog-category .item-content p:first-of-type {
  display: none !important;
}

/* hide readmore hr in category/blog cards */
.view-category hr#system-readmore,
.blog hr#system-readmore,
.blog-category hr#system-readmore {
  display: none !important;
}

/* hide readmore link in category/blog cards */
.view-category .readmore,
.view-category p.readmore,
.blog .readmore,
.blog p.readmore,
.blog-category .readmore,
.blog-category p.readmore {
  display: none !important;
}
/* ===  Membership Pro -MP 綠色背景 FINAL REMOVE === */
body div#restricted_info{
  background:#fffdf7 !important;
  background-color:#fffdf7 !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
  min-height:0 !important;
  height:auto !important;
}
/* ==================================
HU template - light gold polish
append bottom only
================================== */

/* 1) breadcrumb 灰底 -> light gold */
.breadcrumb,
.mod-breadcrumbs,
.breadcrumbs,
nav[aria-label="breadcrumb"] {
  background: #f3e3b7 !important;
  border: 1px solid #e2cc94 !important;
  color: #7a4c00 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.breadcrumb a,
.mod-breadcrumbs a,
.breadcrumbs a,
nav[aria-label="breadcrumb"] a {
  color: #8a5a00 !important;
}

/* 2) 左上橙色圓形 edit / action button -> light gold */
a.btn,
button.btn,
.btn-primary,
.btn-warning,
.btn-info,
.btn-edit,
.btn-floating,
.toolbar .btn,
[class*="edit"],
[class*="pencil"] {
  background: #e6c27a !important;
  border-color: #d7b061 !important;
  color: #6a4300 !important;
  box-shadow: none !important;
}

a.btn:hover,
button.btn:hover,
.btn-primary:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-edit:hover,
.btn-floating:hover,
.toolbar .btn:hover {
  background: #dcb564 !important;
  border-color: #cfa552 !important;
  color: #5a3900 !important;
}

/* 3) 右上 user/profile 區塊 -> light gold */
.header-right .btn,
.header-right .dropdown-toggle,
.header-right .login,
.header-right .user,
.header-right .profile,
.header-right .profile-box,
.header-right .userbox,
.topbar .dropdown-toggle,
.topbar .user-menu,
.topbar .profile-menu {
  background: #f5e7c3 !important;
  border: 1px solid #e2cc94 !important;
  color: #6a4300 !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

/* 4) 藍色 user icon -> gold/brown */
.fa-user,
.fa-user-circle,
.fa-user-o,
.fa-user-plus,
.icon-user,
.glyphicon-user {
  color: #8a5a00 !important;
}

/* ==================================
FoodNo1 HU FINAL HARMONY OVERRIDE
Version: 20260420-1450
Notes: unified earth-gold polish for site-wide HU template
================================== */

/* Breadcrumb */
.breadcrumb,
.mod-breadcrumbs,
.breadcrumbs,
nav[aria-label="breadcrumb"] {
  background: #f4e7c4 !important;
  border: 1px solid #e2c98d !important;
  color: #7a5200 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.breadcrumb a,
.mod-breadcrumbs a,
.breadcrumbs a,
nav[aria-label="breadcrumb"] a {
  color: #8a5a00 !important;
}

/* Unified site buttons */
.btn,
.button,
a.btn,
a.button,
.fno1-cta,
.fno1-cta-main {
  background-color: #e0bf72 !important;
  border-color: #cfa552 !important;
  color: #5a3900 !important;
  border-radius: 999px;
  padding: 8px 20px;
  border-width: 1px;
  border-style: solid;
  transition: background 0.25s, border-color 0.25s;
}

.btn:hover,
.button:hover,
a.btn:hover,
a.button:hover,
.fno1-cta:hover,
.fno1-cta-main:hover {
  background-color: #d4b05d !important;
  border-color: #bf9540 !important;
  color: #4a2e00 !important;
}

/* Header / profile / user trigger */
.header-right .btn,
.header-right .dropdown-toggle,
.header-right .login,
.header-right .user,
.header-right .profile,
.header-right .profile-box,
.header-right .userbox,
.topbar .dropdown-toggle,
.topbar .user-menu,
.topbar .profile-menu {
  background: #f5e7c3 !important;
  border: 1px solid #e2cc94 !important;
  color: #6a4300 !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

/* User icon harmony */
.fa-user,
.fa-user-circle,
.fa-user-o,
.fa-user-plus,
.icon-user,
.glyphicon-user {
  color: #8a5a00 !important;
}

/* Android / mobile tighter side spacing */
@media (max-width: 480px) {
  #sp-main-body > .container,
  #sp-main-body > .container-fluid,
  .container,
  .container-fluid {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  #sp-main-body > .container,
  #sp-main-body > .container-fluid,
  .container,
  .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
