.page-id-services .entry-title, 
.page-template-default .entry-title {
    display: none;
}
/* Hides the Like button and the Related posts section */
.sharedaddy, 
.jp-relatedposts, 
#jp-relatedposts {
    display: none !important;
}


/* 隱藏主題自帶的選單、標誌與喜歡按鈕 */
.site-info, 
.footer-navigation, 
.footer-menu-container, 
.site-footer .social-menu,
.sharedaddy, 
#jp-relatedposts {
    display: none !important;
}

/* 2. HIDE THE "NEXT POST" NAVIGATION */
/* Targets the post-to-post links at the bottom */
.post-navigation, 
.navigation.post-navigation, 
.nav-links,
.pagination {
    display: none !important;
}

/* 3. HIDE JETPACK EXTRAS (LIKES & RELATED) */
/* Targets automated sections often added by plugins */
#jp-relatedposts, 
.sharedaddy, 
.sd-like, 
.sd-sharing {
    display: none !important;
}

/* 4. FORCE CONTENT TO BE THE LAST THING ON PAGE */
/* Prevents any empty space or lines from appearing at the bottom */
.site-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Hides the Archive/Category title header */
.archive-header, 
.page-header, 
.taxonomy-description {
    display: none !important;
}

/* Specifically hides the "Category Archives: CBT" text in Seedlet */
h1.page-title {
    display: none !important;
}

/* Centers the Blog Title and allows it to use the full width */
.entry-header, 
.entry-title {
    max-width: 100% !important;
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensures the header container itself doesn't lean left */
.site-main > article > .entry-header {
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* 使用官方圖片網址，確保 Threads 圖示不變形 */
.threads-icon a {
    display: inline-block;
    width: 20px;
    height: 20px;
    /* 直接調用標準圖示 */
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/9/9d/Threads_(app)_logo.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    text-indent: -9999px;
    vertical-align: middle;
    filter: brightness(0); /* 保持跟其他圖示一樣是黑色 */
    opacity: 0.9;
}




/* Larger Blog Journal Icon Styling */
li.blog-social-icon {
    width: 32px !important; /* Slightly larger container */
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    vertical-align: middle !important;
}

li.blog-social-icon a {
    display: block !important;
    width: 24px !important; /* Increased from 18px to 24px */
    height: 24px !important;
    text-indent: -9999px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    /* Bolder Journal/Article SVG */
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3ZM19 19H5V5H19V19ZM17 8H7V10H17V8ZM17 12H7V14H17V12ZM13 16H7V18H13V16Z" fill="black"/></svg>') !important;
    filter: brightness(0);
    transform: translateY(1px); /* Maintains visual baseline with FB and X */
    transition: opacity 0.3s ease;
}

/* Hover effect */
li.blog-social-icon a:hover {
    opacity: 0.7;
}

/* 1. 統一所有自定義圖示容器 (X, Threads, Blog) */
li.x-social-icon, 
li.threads-icon,
li.blog-social-icon {
    width: 30px !important; 
    height: 30px !important;
    margin: 0 4px !important; /* 這裡控制圖示之間的距離 */
    padding: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    vertical-align: middle !important;
    overflow: visible !important;
}

/* 2. 統一連結樣式與隱藏文字 */
li.x-social-icon a, 
li.threads-icon a,
li.blog-social-icon a {
    display: block !important;
    width: 20px !important; /* 圖示大小一致 */
    height: 20px !important;
    text-indent: -9999px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    border: none !important;
    box-shadow: none !important;
    filter: brightness(0); /* 全部統一為黑色 */
    transition: opacity 0.3s ease;
}

/* 3. 個別圖示路徑設定 */

/* X 圖示 */
li.x-social-icon a {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" fill="black"/></svg>') !important;
    transform: translateY(1px);
}

/* Threads 圖示 */
li.threads-icon a {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/9/9d/Threads_(app)_logo.svg') !important;
    transform: translateY(1px);
}

/* Blog 圖示 (Journal 樣式) */
li.blog-social-icon a {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3ZM19 19H5V5H19V19ZM17 8H7V10H17V8ZM17 12H7V14H17V12ZM13 16H7V18H13V16Z" fill="black"/></svg>') !important;
    transform: translateY(1px);
}

/* 4. 整體菜單對齊修正 */
.social-menu ul, .social-links ul {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

li.x-social-icon a:hover, 
li.threads-icon a:hover, 
li.blog-social-icon a:hover {
    opacity: 0.7;
}

/* Footer 整體容器 */
.footer-container {
    padding: 40px 20px;
    background-color: #f9f9f9; /* 淺灰色背景，區分內容區 */
    text-align: center;
    border-top: 1px solid #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ✅ 強制恢復頁尾顯示 */
#colophon, 
.site-footer {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
}

/* 確保您的自定義 Footer 容器不會被繼承的隱藏指令影響 */
.footer-container {
    display: block !important;
    visibility: visible !important;
}

/* 將 Footer 容器內容水平置中 */
.footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* 水平置中 */
    justify-content: center !important;
    text-align: center !important; /* 確保每一行文字也置中 */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}

/* 確保免責聲明的段落寬度適中且置中 */
.footer-disclaimer p {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 800px !important; 
}

/* 版權文字 */
.footer-copyright p {
    color: #1a365d; /* 使用您的深藍色 */
    font-size: 15px;
    margin-bottom: 15px;
}

/* 免責聲明文字 (字體稍小，保持專業感) */
.footer-disclaimer p {
    color: #718096;
    font-size: 12px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* 底部連結樣式 */
.footer-links {
    font-size: 13px;
}

.footer-links a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1a365d;
    text-decoration: underline;
}

/* 響應式調整 */
@media (max-width: 600px) {
    .footer-container {
        padding: 30px 15px;
    }
}

/* 強制修正 Seedlet 主題的寬度限制 */
.site-footer .widget-area {
    max-width: 100% !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
}

/* 確保自定義容器水平置中 */
.footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    background-color: transparent !important; /* 保持與背景一致 */
}

/* 確保內部文字也是置中的 */
.footer-container p, 
.footer-container div {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.comment-respond, .comments-area {
    display: none !important;
}

/* 隱藏文章下方的作者、日期、分類與標籤資訊 */
.entry-meta, .entry-footer, .post-meta, .meta-wrapper {
    display: none !important;
}

/* 同時確保評論區域也被隱藏 */
#comments, .comments-area, .comment-respond {
    display: none !important;
}

/* 1. 一般內文超連結：深藍色 (Logo 色) */
a {
    color: #2c3e50 !important; 
    text-decoration: underline; 
    transition: all 0.3s ease; 
}

/* 2. 滑鼠移上去時：變為較深的灰紫色 */
a:hover {
    color: #7D6E88 !important; /* 加深後的灰紫色，更有質感 */
    text-decoration: none;     
}

/* 3. 按鈕超連結 (深藍背景 + 白色文字) */
.button-link, a.wp-block-button__link {
    background-color: #2c3e50 !important; 
    color: #ffffff !important;           
    padding: 12px 24px;
    text-decoration: none !important;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 4. 滑鼠移上去按鈕時：背景變為較深的灰紫色，文字維持白色 */
.button-link:hover, a.wp-block-button__link:hover {
    background-color: #7D6E88 !important; /* 按鈕懸停色同步加深 */
    color: #ffffff !important;            
    opacity: 1;                           
}