.entry-meta,
.posted-on,
.byline {
  display: none !important;
}

/* 固定 Header 在最上方 */
.ast-primary-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* 確保在最上層 */
}
/* 避免內容被 Header 蓋住，增加上方間距 */
.site-content {
  padding-top: 40px; /* 依你的 header 高度調整 */
}
/* 手機 & 平板 取消固定 header */
@media (max-width: 1024px) {
  .main-header-bar {
    position: relative !important;
  }
	/* 避免內容被 Header 蓋住，增加上方間距 */
.site-content {
  padding-top: 0px; /* 依你的 header 高度調整 */
}
}

/* 1. 強制子選單繼承主選單的字體與字型 */
.main-navigation ul li ul li a, 
.main-navigation ul li a {
    font-family: inherit !important; /* 繼承佈景主題設定的字型 */
    font-weight: 400 !important;    /* 字體粗細，可改 300 較細更精緻 */
    font-size: 15px !important;     /* 統一字體大小 */
    letter-spacing: 1.5px !important; /* 統一字間距 */
    text-transform: none !important;  /* 防止自動變成全大寫 */
    text-decoration: none !important;
}

/* 2. 統一子選單的背景與邊框 */
.main-navigation ul ul {
    background-color: #1a2432 !important; /* 配合深藍色底 */
    border-top: 2px solid #D4AF37 !important; /* 加入頂部金線增加輕奢感 */
    padding: 10px 0 !important;
}

/* 3. 統一滑鼠移上去的文字顏色 */
.main-navigation ul li ul li a:hover {
    background-color: rgba(255,255,255,0.05) !important; /* 移上去時背景微亮 */
    color: #D4AF37 !important; /* 變金色 */
}







/* 只讓 .zoom-section 區塊裡的圖片 hover 放大 */
.zoom-section img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* 圖片 hover 出現遮罩與文字 */
.wp-block-image.overlay-hover {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.wp-block-image.overlay-hover img {
  display: block;
  width: 100%;
  height: auto;
}

.wp-block-image.overlay-hover::after {
  content: attr(data-text); /* 讀取自訂文字 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 10px;
  box-sizing: border-box;
}

.wp-block-image.overlay-hover:hover::after {
  opacity: 1;
}

/* 控制 Gutenberg 欄位之間的間距 */
.wp-block-columns {
  column-gap: 40px;   /* 欄位間距，數字越大越寬 */
  row-gap: 30px;      /* 上下欄的間距 */
}

/* 如果欄位裡的內容太貼邊，可以加這段 */
.wp-block-column {
  padding: 0 15px;    /* 左右留白 */
  box-sizing: border-box;
}

/* 移除連結底線 */
a,
a:visited,
a:hover,
a:active {
  text-decoration: none !important;
}




/* 服務項目手機版隱藏區塊圖片 */
@media (max-width: 768px) {
  body.page-id-47 .wp-block-image img {
    display: none !important;
  }
}

/* 只有服務項目此頁、手機版：把每一欄變成卡片框，縮小間距 */
@media (max-width: 768px) {
	body.page-id-47 .wp-block-columns { 
    row-gap: 12px !important;   /* 每個卡片之間的距離（原本很高） */
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
  body.page-id-47 .wp-block-column {
    border: 1px solid #334155;  /* 外框 */
    background: #F0F5FA;        /* 淡底色（可改）*/
    border-radius: 12px;
    padding: 14px 16px;         /* 內距，讓文字不要貼邊 */
  }
  body.page-id-47 .wp-block-column > h2,
  body.page-id-47 .wp-block-column > h3,
  body.page-id-47 .wp-block-column > h4 {
    margin: 0 0 6px !important; /* 標題與內文距離更緊 */
    text-align: center;         /* 置中（需要可保留/刪除） */
    line-height: 1.3;
  }
  body.page-id-47 .wp-block-column > p {
    margin: 0 !important;       /* 移除段落多餘空白 */
    line-height: 1.6;           /* 文字行高 */
  }
	
	/* 修改流程區塊背景色 */
body.page-id-47 .wp-block-columns.alignwide.has-ast-global-color-5-background-color {
  /* 先改掉這一層可見到的變數值（會覆寫 root 的定義）*/
  --ast-global-color-5: #334155 !important;
  /* 再直接指定背景，雙保險 */
  background-color: #334155 !important;
	
	padding-top: 10px;
}
	/* 取消手機板空白間格 */
	.wp-block-spacer{
		display: none;
	}
}

/* 1. 讓白框容器具備點擊感 */
.custom-link-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    /* 確保有設定背景與圓角，避免被預設樣式覆蓋 */
    background-color: #ffffff !important;
    border-radius: 40px !important;
}

/* 2. 滑鼠移上去時的效果（可選） */
.custom-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 3. 神奇的點擊層：讓連結撐滿整個白框 */
/* 我們針對區塊內的第一個連結 (a) 進行處理 */
.custom-link-card a::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99; /* 確保在最上層 */
}

/* 4. 修正文字連結底線（美觀用） */
.custom-link-card a {
    text-decoration: none !important;
    color: inherit !important;
}




/* 強制修正手機版影片欄位偏移 */
@media screen and (max-width: 768px) {
    /* 1. 針對 WordPress 欄位容器，強制讓它水平置中且不限制內部寬度 */
    .wp-block-columns {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 2. 讓裝著影片的那個「單一欄位」撐到 100% 寬 */
    .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 15px !important; /* 這裡設定左右對等的縫隙，防止貼邊 */
    }

    /* 3. 確保影片播放器本身沒有被限制寬度 */
    .wp-block-embed__wrapper {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .wp-block-embed__wrapper iframe {
        width: 100% !important;
        height: auto !important;
    }
}















/* 隱藏文章分享分類頁面的標題橫幅 */
/* 強力隱藏 Astra 分類頁面的標題區塊 */
.ast-archive-description, 
.ast-page-header-wrap, 
.page-header {
    display: none !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 移除上方多餘的留白 */
.ast-separate-container .site-content {
    padding-top: 50px !important;
}









/* 手機版：把被誤設為 0.6 的行高強制改回正常 */
@media (max-width: 768px) {
  /* Jetpack 欄位本體 */
  body.page-id-47 .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column {
    line-height: 1.6 !important; 
  }
  /* 欄位內所有文字節點（避免內層 span/strong 帶 inline style） */
  body.page-id-47 .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column * {
    line-height: 1.6 !important; 
  }

  /* 段落與清單再把上下間距縮小 */
  body.page-id-47 .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column p,
  body.page-id-47 .wp-block-jetpack-layout-grid .wp-block-jetpack-layout-grid-column li {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }
}







/* 側邊固定的社群按鈕 */
.social-fixed {
  position: fixed;
  top: 40%;
  right:20px;   /* 如果要放右邊就改成 right:10px; */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.social-fixed a {
  font-size: 20px;
  color: #334155;
  background: #F0F5FA;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  text-decoration: none;
}

/* Facebook hover 藍色 */
.social-fixed a[href*="facebook"]:hover {
  background: #1877f2;
	color: #F0F5FA;
}

/* Instagram hover 漸層色 */
.social-fixed a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
	color: #F0F5FA;
}

/* Youtube hover 紅色 */
.social-fixed a[href*="youtube"]:hover {
  background: #D10404;
	color: #F0F5FA;
}
/* 手機版隱藏浮動社群側邊欄 */
@media (max-width: 768px) {
  .social-fixed {
    display: none !important;
  }
}




/* footer的文字排列設定 */
.footer-contact {
  display: flex;              /* 橫向排列 */
  justify-content: center;    /* 置中 */
  gap: 30px;                  /* 每個項目之間的間距 */
  font-size: 16px;            /* 字體大小 */
  color: #334155;
  flex-wrap: wrap;            /* 小螢幕自動換行 */
}

.footer-contact a {
  color: #334155;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}


/* 文章分享 footer 調整 */
body.blog #colophon.site-footer {
  background-color: #334155 !important;
}
body.blog #colophon.site-footer * {
  color: #F0F5FA !important;
}
/* 只作用在「文章列表頁」 */
body.blog #colophon.site-footer,
body.blog #colophon.site-footer .site-primary-footer-wrap,
body.blog #colophon.site-footer .site-below-footer-wrap,
body.blog #colophon.site-footer .ast-builder-grid-row-container,
body.blog #colophon.site-footer .ast-builder-grid-row-container-inner,
body.blog #colophon.site-footer .ast-footer-overlay,
body.blog #colophon.site-footer::before {
  background-color: #334155 !important;
  background-image: none !important; /* 有些版位用漸層/圖覆蓋 */
	border-color: #334155;
}

/* 文章分享頁（文章列表頁）的 Footer 換 LOGO */
.blog #colophon.site-footer .ast-footer-html-1 .footer-logo a {
  display: inline-block !important;
  width: 220px !important;       /* LOGO 寬度，可調整 */
  height: 80px !important;       /* LOGO 高度，可調整 */
  background: url("https://fengplaceinterior.com/wp-content/uploads/2025/09/cropped-烽域LOGO_2550913白-02-02.png") no-repeat center / contain !important;
}

/* 隱藏原本 img，避免兩張 logo 疊在一起 */
.blog #colophon.site-footer .ast-footer-html-1 .footer-logo img {
  display: none !important;
}







/* 內文與連結顏色（如果要） */
body.blog #colophon.site-footer,
body.blog #colophon.site-footer * {
  color: #F0F5FA !important;
}


/* 手機版 footer 調整 */
@media (max-width: 768px) {
  .footer-contact {
    gap: 12px;             /* 減少項目之間的間距 */
    font-size: 14px;       /* 字體稍微縮小 */
    line-height: 1;      /* 行距變緊湊 */
		margin: 10px 30px;
  }
	
}


